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_zeroshark 660 JVM_FEATURES_zero 661 JVM_FEATURES_minimal 662 JVM_FEATURES_core 663 JVM_FEATURES_client 664 JVM_FEATURES_server 665 INCLUDE_GRAAL 666 STLPORT_LIB 667 LIBZIP_CAN_USE_MMAP 668 LIBDL 669 LIBM 670 USE_EXTERNAL_LCMS 671 LCMS_LIBS 672 LCMS_CFLAGS 673 USE_EXTERNAL_LIBZ 674 USE_EXTERNAL_LIBPNG 675 PNG_LIBS 676 PNG_CFLAGS 677 USE_EXTERNAL_LIBGIF 678 USE_EXTERNAL_LIBJPEG 679 LLVM_LIBS 680 LLVM_LDFLAGS 681 LLVM_CFLAGS 682 LLVM_CONFIG 683 LIBFFI_LIB_FILE 684 ENABLE_LIBFFI_BUNDLING 685 LIBFFI_LIBS 686 LIBFFI_CFLAGS 687 ALSA_LIBS 688 ALSA_CFLAGS 689 FREETYPE_LICENSE 690 FREETYPE_BUNDLE_LIB_PATH 691 FREETYPE_LIBS 692 FREETYPE_CFLAGS 693 CUPS_CFLAGS 694 X_EXTRA_LIBS 695 X_LIBS 696 X_PRE_LIBS 697 X_CFLAGS 698 XMKMF 699 MSVCP_DLL 700 MSVCR_DLL 701 LIBCXX 702 FIXPATH_DETACH_FLAG 703 FIXPATH 704 BUILD_GTEST 705 ENABLE_AOT 706 GCOV_ENABLED 707 ZIP_EXTERNAL_DEBUG_SYMBOLS 708 COPY_DEBUG_SYMBOLS 709 COMPILE_WITH_DEBUG_SYMBOLS 710 CFLAGS_WARNINGS_ARE_ERRORS 711 BUILD_CC_DISABLE_WARNING_PREFIX 712 DISABLE_WARNING_PREFIX 713 WARNINGS_AS_ERRORS 714 COMPILER_SUPPORTS_TARGET_BITS_FLAG 715 LDFLAGS_TESTEXE 716 LDFLAGS_TESTLIB 717 CXXFLAGS_TESTEXE 718 CXXFLAGS_TESTLIB 719 CFLAGS_TESTEXE 720 CFLAGS_TESTLIB 721 OPENJDK_BUILD_JVM_LIBS 722 OPENJDK_BUILD_JVM_ASFLAGS 723 OPENJDK_BUILD_JVM_LDFLAGS 724 OPENJDK_BUILD_JVM_CFLAGS 725 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 726 OPENJDK_BUILD_LDFLAGS_CXX_JDK 727 OPENJDK_BUILD_JDKEXE_LIBS 728 OPENJDK_BUILD_JDKLIB_LIBS 729 OPENJDK_BUILD_LDFLAGS_JDKEXE 730 OPENJDK_BUILD_LDFLAGS_JDKLIB 731 OPENJDK_BUILD_CXXFLAGS_JDKEXE 732 OPENJDK_BUILD_CXXFLAGS_JDKLIB 733 OPENJDK_BUILD_CFLAGS_JDKEXE 734 OPENJDK_BUILD_CFLAGS_JDKLIB 735 OPENJDK_BUILD_CXXSTD_CXXFLAG 736 JVM_LIBS 737 JVM_ASFLAGS 738 JVM_LDFLAGS 739 JVM_CFLAGS 740 LDFLAGS_HASH_STYLE 741 LDFLAGS_CXX_JDK 742 JDKEXE_LIBS 743 JDKLIB_LIBS 744 LDFLAGS_JDKEXE 745 LDFLAGS_JDKLIB 746 CXXFLAGS_JDKEXE 747 CXXFLAGS_JDKLIB 748 CFLAGS_JDKEXE 749 CFLAGS_JDKLIB 750 MACOSX_VERSION_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 LIPO 822 ac_ct_AR 823 AR 824 AS 825 LDCXX 826 LD 827 CXXCPP 828 CPP 829 CXX_VERSION_NUMBER 830 CC_VERSION_NUMBER 831 ac_ct_CXX 832 CXXFLAGS 833 CXX 834 TOOLCHAIN_PATH_CXX 835 POTENTIAL_CXX 836 OBJEXT 837 EXEEXT 838 ac_ct_CC 839 CPPFLAGS 840 LDFLAGS 841 CFLAGS 842 CC 843 TOOLCHAIN_PATH_CC 844 POTENTIAL_CC 845 TOOLCHAIN_VERSION 846 VS_LIB 847 VS_INCLUDE 848 VS_PATH 849 CYGWIN_LINK 850 SYSROOT_LDFLAGS 851 SYSROOT_CFLAGS 852 EXTRA_LDFLAGS 853 EXTRA_CXXFLAGS 854 EXTRA_CFLAGS 855 EXE_SUFFIX 856 OBJ_SUFFIX 857 STATIC_LIBRARY 858 SHARED_LIBRARY 859 STATIC_LIBRARY_SUFFIX 860 SHARED_LIBRARY_SUFFIX 861 LIBRARY_PREFIX 862 TOOLCHAIN_TYPE 863 STATIC_BUILD 864 IMPORT_MODULES_MAKE 865 IMPORT_MODULES_SRC 866 IMPORT_MODULES_MAN 867 IMPORT_MODULES_LEGAL 868 IMPORT_MODULES_CONF 869 IMPORT_MODULES_LIBS 870 IMPORT_MODULES_CMDS 871 IMPORT_MODULES_CLASSES 872 BUILD_OUTPUT 873 JDK_TOPDIR 874 NASHORN_TOPDIR 875 HOTSPOT_TOPDIR 876 JAXWS_TOPDIR 877 JAXP_TOPDIR 878 CORBA_TOPDIR 879 LANGTOOLS_TOPDIR 880 EXTERNAL_BUILDJDK 881 BUILD_JDK 882 CREATE_BUILDJDK 883 JLINK 884 JMOD 885 JAVAC_FLAGS 886 BOOT_JDK_MODULAR 887 BOOT_JDK_SOURCETARGET 888 JARSIGNER 889 JAR 890 JAVAH 891 JAVAC 892 JAVA 893 BOOT_JDK 894 JAVA_CHECK 895 JAVAC_CHECK 896 VERSION_IS_GA 897 VERSION_SHORT 898 VERSION_STRING 899 VERSION_NUMBER_FOUR_POSITIONS 900 VERSION_NUMBER 901 VERSION_OPT 902 VERSION_BUILD 903 VERSION_PRE 904 VERSION_PATCH 905 VERSION_SECURITY 906 VERSION_MINOR 907 VERSION_MAJOR 908 MACOSX_BUNDLE_ID_BASE 909 MACOSX_BUNDLE_NAME_BASE 910 HOTSPOT_VM_DISTRO 911 COMPANY_NAME 912 JDK_RC_PLATFORM_NAME 913 PRODUCT_SUFFIX 914 PRODUCT_NAME 915 LAUNCHER_NAME 916 JLINK_KEEP_PACKAGED_MODULES 917 COPYRIGHT_YEAR 918 COMPRESS_JARS 919 INCLUDE_SA 920 UNLIMITED_CRYPTO 921 CACERTS_FILE 922 ENABLE_FULL_DOCS 923 ENABLE_HEADLESS_ONLY 924 DEFAULT_MAKE_TARGET 925 OS_VERSION_MICRO 926 OS_VERSION_MINOR 927 OS_VERSION_MAJOR 928 PKG_CONFIG 929 BASH_ARGS 930 SETFILE 931 CODESIGN 932 XATTR 933 DSYMUTIL 934 IS_GNU_TIME 935 PATCH 936 DTRACE 937 FLOCK 938 TIME 939 STAT 940 HG 941 DOT 942 READELF 943 OTOOL 944 LDD 945 ZIPEXE 946 UNZIP 947 TAR_SUPPORTS_TRANSFORM 948 TAR_INCLUDE_PARAM 949 TAR_CREATE_EXTRA_PARAM 950 TAR_TYPE 951 FIND_DELETE 952 OUTPUT_SYNC 953 OUTPUT_SYNC_SUPPORTED 954 CHECK_TOOLSDIR_MAKE 955 CHECK_TOOLSDIR_GMAKE 956 CHECK_MAKE 957 CHECK_GMAKE 958 MAKE 959 PKGHANDLER 960 CONFIGURESUPPORT_OUTPUTDIR 961 OUTPUT_ROOT 962 CONF_NAME 963 SPEC 964 SDKROOT 965 XCODEBUILD 966 JVM_VARIANT_MAIN 967 VALID_JVM_VARIANTS 968 JVM_VARIANTS 969 DEBUG_LEVEL 970 HOTSPOT_DEBUG_LEVEL 971 JDK_VARIANT 972 USERNAME 973 CANONICAL_TOPDIR 974 ORIGINAL_TOPDIR 975 TOPDIR 976 PATH_SEP 977 HOTSPOT_BUILD_CPU_DEFINE 978 HOTSPOT_BUILD_CPU_ARCH 979 HOTSPOT_BUILD_CPU 980 HOTSPOT_BUILD_OS_TYPE 981 HOTSPOT_BUILD_OS 982 OPENJDK_BUILD_BUNDLE_PLATFORM 983 OPENJDK_BUILD_OS_EXPORT_DIR 984 OPENJDK_BUILD_CPU_OSARCH 985 OPENJDK_BUILD_CPU_ISADIR 986 OPENJDK_BUILD_CPU_LEGACY_LIB 987 OPENJDK_BUILD_CPU_LEGACY 988 HOTSPOT_TARGET_CPU_DEFINE 989 HOTSPOT_TARGET_CPU_ARCH 990 HOTSPOT_TARGET_CPU 991 HOTSPOT_TARGET_OS_TYPE 992 HOTSPOT_TARGET_OS 993 DEFINE_CROSS_COMPILE_ARCH 994 OPENJDK_TARGET_BUNDLE_PLATFORM 995 OPENJDK_TARGET_OS_EXPORT_DIR 996 OPENJDK_TARGET_CPU_OSARCH 997 OPENJDK_TARGET_CPU_ISADIR 998 OPENJDK_TARGET_CPU_LEGACY_LIB 999 OPENJDK_TARGET_CPU_LEGACY 1000 RELEASE_FILE_OS_ARCH 1001 RELEASE_FILE_OS_NAME 1002 OPENJDK_MODULE_TARGET_PLATFORM 1003 COMPILE_TYPE 1004 OPENJDK_TARGET_CPU_ENDIAN 1005 OPENJDK_TARGET_CPU_BITS 1006 OPENJDK_TARGET_CPU_ARCH 1007 OPENJDK_TARGET_CPU 1008 OPENJDK_TARGET_OS_ENV 1009 OPENJDK_TARGET_OS_TYPE 1010 OPENJDK_TARGET_OS 1011 OPENJDK_BUILD_CPU_ENDIAN 1012 OPENJDK_BUILD_CPU_BITS 1013 OPENJDK_BUILD_CPU_ARCH 1014 OPENJDK_BUILD_CPU 1015 OPENJDK_BUILD_OS_ENV 1016 OPENJDK_BUILD_OS_TYPE 1017 OPENJDK_BUILD_OS 1018 OPENJDK_BUILD_AUTOCONF_NAME 1019 OPENJDK_TARGET_AUTOCONF_NAME 1020 target_os 1021 target_vendor 1022 target_cpu 1023 target 1024 host_os 1025 host_vendor 1026 host_cpu 1027 host 1028 build_os 1029 build_vendor 1030 build_cpu 1031 build 1032 PANDOC 1033 NICE 1034 CPIO 1035 DF 1036 READLINK 1037 CYGPATH 1038 SED 1039 FGREP 1040 EGREP 1041 GREP 1042 AWK 1043 XARGS 1044 WHICH 1045 WC 1046 UNIQ 1047 UNAME 1048 TR 1049 TOUCH 1050 TEE 1051 TAR 1052 TAIL 1053 SORT 1054 SH 1055 RMDIR 1056 RM 1057 PRINTF 1058 NAWK 1059 MV 1060 MKTEMP 1061 MKDIR 1062 LS 1063 LN 1064 GZIP 1065 GUNZIP 1066 HEAD 1067 FIND 1068 FILE 1069 EXPR 1070 ECHO 1071 DIRNAME 1072 DIFF 1073 DATE 1074 CUT 1075 CP 1076 COMM 1077 CMP 1078 CHMOD 1079 CAT 1080 BASH 1081 BASENAME 1082 DATE_WHEN_CONFIGURED 1083 ORIGINAL_PATH 1084 CONFIGURE_COMMAND_LINE 1085 target_alias 1086 host_alias 1087 build_alias 1088 LIBS 1089 ECHO_T 1090 ECHO_N 1091 ECHO_C 1092 DEFS 1093 mandir 1094 localedir 1095 libdir 1096 psdir 1097 pdfdir 1098 dvidir 1099 htmldir 1100 infodir 1101 docdir 1102 oldincludedir 1103 includedir 1104 localstatedir 1105 sharedstatedir 1106 sysconfdir 1107 datadir 1108 datarootdir 1109 libexecdir 1110 sbindir 1111 bindir 1112 program_transform_name 1113 prefix 1114 exec_prefix 1115 PACKAGE_URL 1116 PACKAGE_BUGREPORT 1117 PACKAGE_STRING 1118 PACKAGE_VERSION 1119 PACKAGE_TARNAME 1120 PACKAGE_NAME 1121 PATH_SEPARATOR 1122 SHELL' 1123 ac_subst_files='' 1124 ac_user_opts=' 1125 enable_option_checking 1126 with_target_bits 1127 enable_openjdk_only 1128 with_custom_make_dir 1129 with_jdk_variant 1130 enable_debug 1131 with_debug_level 1132 with_jvm_variants 1133 with_cpu_port 1134 with_devkit 1135 with_sys_root 1136 with_sysroot 1137 with_tools_dir 1138 with_toolchain_path 1139 with_extra_path 1140 with_sdk_name 1141 with_conf_name 1142 with_output_sync 1143 with_default_make_target 1144 enable_headless_only 1145 enable_full_docs 1146 with_cacerts_file 1147 enable_unlimited_crypto 1148 with_copyright_year 1149 enable_keep_packaged_modules 1150 with_milestone 1151 with_update_version 1152 with_user_release_suffix 1153 with_build_number 1154 with_version_string 1155 with_version_pre 1156 with_version_opt 1157 with_version_build 1158 with_version_major 1159 with_version_minor 1160 with_version_security 1161 with_version_patch 1162 with_boot_jdk 1163 with_build_jdk 1164 with_add_source_root 1165 with_override_source_root 1166 with_adds_and_overrides 1167 with_override_langtools 1168 with_override_corba 1169 with_override_jaxp 1170 with_override_jaxws 1171 with_override_hotspot 1172 with_override_nashorn 1173 with_override_jdk 1174 with_import_hotspot 1175 with_import_modules 1176 enable_static_build 1177 with_toolchain_type 1178 with_extra_cflags 1179 with_extra_cxxflags 1180 with_extra_ldflags 1181 with_toolchain_version 1182 with_build_devkit 1183 with_jtreg 1184 with_jib 1185 with_abi_profile 1186 with_macosx_version_max 1187 enable_warnings_as_errors 1188 with_native_debug_symbols 1189 enable_debug_symbols 1190 enable_zip_debug_info 1191 enable_native_coverage 1192 enable_dtrace 1193 enable_aot 1194 enable_hotspot_gtest 1195 with_stdc__lib 1196 with_msvcr_dll 1197 with_msvcp_dll 1198 with_x 1199 with_cups 1200 with_cups_include 1201 with_freetype 1202 with_freetype_include 1203 with_freetype_lib 1204 with_freetype_src 1205 enable_freetype_bundling 1206 with_freetype_license 1207 with_alsa 1208 with_alsa_include 1209 with_alsa_lib 1210 with_libffi 1211 with_libffi_include 1212 with_libffi_lib 1213 enable_libffi_bundling 1214 with_libjpeg 1215 with_giflib 1216 with_libpng 1217 with_zlib 1218 with_lcms 1219 with_dxsdk 1220 with_dxsdk_lib 1221 with_dxsdk_include 1222 with_jvm_features 1223 with_jvm_interpreter 1224 enable_jtreg_failure_handler 1225 enable_generate_classlist 1226 with_num_cores 1227 with_memory_size 1228 with_jobs 1229 with_test_jobs 1230 with_boot_jdk_jvmargs 1231 with_sjavac_server_java 1232 enable_sjavac 1233 enable_javac_server 1234 enable_icecc 1235 enable_precompiled_headers 1236 enable_ccache 1237 with_ccache_dir 1238 ' 1239 ac_precious_vars='build_alias 1240 host_alias 1241 target_alias 1242 BASENAME 1243 BASH 1244 CAT 1245 CHMOD 1246 CMP 1247 COMM 1248 CP 1249 CUT 1250 DATE 1251 DIFF 1252 DIRNAME 1253 ECHO 1254 EXPR 1255 FILE 1256 FIND 1257 HEAD 1258 GUNZIP 1259 GZIP 1260 LN 1261 LS 1262 MKDIR 1263 MKTEMP 1264 MV 1265 NAWK 1266 PRINTF 1267 RM 1268 RMDIR 1269 SH 1270 SORT 1271 TAIL 1272 TAR 1273 TEE 1274 TOUCH 1275 TR 1276 UNAME 1277 UNIQ 1278 WC 1279 WHICH 1280 XARGS 1281 AWK 1282 GREP 1283 EGREP 1284 FGREP 1285 SED 1286 CYGPATH 1287 READLINK 1288 DF 1289 CPIO 1290 NICE 1291 PANDOC 1292 MAKE 1293 UNZIP 1294 ZIPEXE 1295 LDD 1296 OTOOL 1297 READELF 1298 DOT 1299 HG 1300 STAT 1301 TIME 1302 FLOCK 1303 DTRACE 1304 PATCH 1305 DSYMUTIL 1306 XATTR 1307 CODESIGN 1308 SETFILE 1309 PKG_CONFIG 1310 JAVA 1311 JAVAC 1312 JAVAH 1313 JAR 1314 JARSIGNER 1315 CC 1316 CFLAGS 1317 LDFLAGS 1318 LIBS 1319 CPPFLAGS 1320 CXX 1321 CXXFLAGS 1322 CCC 1323 CPP 1324 CXXCPP 1325 AS 1326 AR 1327 LIPO 1328 STRIP 1329 NM 1330 GNM 1331 OBJCOPY 1332 OBJDUMP 1333 BUILD_CC 1334 BUILD_CXX 1335 BUILD_NM 1336 BUILD_AR 1337 BUILD_OBJCOPY 1338 BUILD_STRIP 1339 JTREGEXE 1340 XMKMF 1341 FREETYPE_CFLAGS 1342 FREETYPE_LIBS 1343 ALSA_CFLAGS 1344 ALSA_LIBS 1345 LIBFFI_CFLAGS 1346 LIBFFI_LIBS 1347 PNG_CFLAGS 1348 PNG_LIBS 1349 LCMS_CFLAGS 1350 LCMS_LIBS 1351 ICECC_CMD 1352 ICECC_CREATE_ENV 1353 ICECC_WRAPPER 1354 CCACHE' 1355 1356 1357 # Initialize some variables set by options. 1358 ac_init_help= 1359 ac_init_version=false 1360 ac_unrecognized_opts= 1361 ac_unrecognized_sep= 1362 # The variables have the same names as the options, with 1363 # dashes changed to underlines. 1364 cache_file=/dev/null 1365 exec_prefix=NONE 1366 no_create= 1367 no_recursion= 1368 prefix=NONE 1369 program_prefix=NONE 1370 program_suffix=NONE 1371 program_transform_name=s,x,x, 1372 silent= 1373 site= 1374 srcdir= 1375 verbose= 1376 x_includes=NONE 1377 x_libraries=NONE 1378 1379 # Installation directory options. 1380 # These are left unexpanded so users can "make install exec_prefix=/foo" 1381 # and all the variables that are supposed to be based on exec_prefix 1382 # by default will actually change. 1383 # Use braces instead of parens because sh, perl, etc. also accept them. 1384 # (The list follows the same order as the GNU Coding Standards.) 1385 bindir='${exec_prefix}/bin' 1386 sbindir='${exec_prefix}/sbin' 1387 libexecdir='${exec_prefix}/libexec' 1388 datarootdir='${prefix}/share' 1389 datadir='${datarootdir}' 1390 sysconfdir='${prefix}/etc' 1391 sharedstatedir='${prefix}/com' 1392 localstatedir='${prefix}/var' 1393 includedir='${prefix}/include' 1394 oldincludedir='/usr/include' 1395 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1396 infodir='${datarootdir}/info' 1397 htmldir='${docdir}' 1398 dvidir='${docdir}' 1399 pdfdir='${docdir}' 1400 psdir='${docdir}' 1401 libdir='${exec_prefix}/lib' 1402 localedir='${datarootdir}/locale' 1403 mandir='${datarootdir}/man' 1404 1405 ac_prev= 1406 ac_dashdash= 1407 for ac_option 1408 do 1409 # If the previous option needs an argument, assign it. 1410 if test -n "$ac_prev"; then 1411 eval $ac_prev=\$ac_option 1412 ac_prev= 1413 continue 1414 fi 1415 1416 case $ac_option in 1417 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1418 *=) ac_optarg= ;; 1419 *) ac_optarg=yes ;; 1420 esac 1421 1422 # Accept the important Cygnus configure options, so we can diagnose typos. 1423 1424 case $ac_dashdash$ac_option in 1425 --) 1426 ac_dashdash=yes ;; 1427 1428 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1429 ac_prev=bindir ;; 1430 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1431 bindir=$ac_optarg ;; 1432 1433 -build | --build | --buil | --bui | --bu) 1434 ac_prev=build_alias ;; 1435 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1436 build_alias=$ac_optarg ;; 1437 1438 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1439 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1440 ac_prev=cache_file ;; 1441 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1442 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1443 cache_file=$ac_optarg ;; 1444 1445 --config-cache | -C) 1446 cache_file=config.cache ;; 1447 1448 -datadir | --datadir | --datadi | --datad) 1449 ac_prev=datadir ;; 1450 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1451 datadir=$ac_optarg ;; 1452 1453 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1454 | --dataroo | --dataro | --datar) 1455 ac_prev=datarootdir ;; 1456 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1457 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1458 datarootdir=$ac_optarg ;; 1459 1460 -disable-* | --disable-*) 1461 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1462 # Reject names that are not valid shell variable names. 1463 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1464 as_fn_error $? "invalid feature name: $ac_useropt" 1465 ac_useropt_orig=$ac_useropt 1466 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1467 case $ac_user_opts in 1468 *" 1469 "enable_$ac_useropt" 1470 "*) ;; 1471 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1472 ac_unrecognized_sep=', ';; 1473 esac 1474 eval enable_$ac_useropt=no ;; 1475 1476 -docdir | --docdir | --docdi | --doc | --do) 1477 ac_prev=docdir ;; 1478 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1479 docdir=$ac_optarg ;; 1480 1481 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1482 ac_prev=dvidir ;; 1483 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1484 dvidir=$ac_optarg ;; 1485 1486 -enable-* | --enable-*) 1487 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1488 # Reject names that are not valid shell variable names. 1489 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1490 as_fn_error $? "invalid feature name: $ac_useropt" 1491 ac_useropt_orig=$ac_useropt 1492 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1493 case $ac_user_opts in 1494 *" 1495 "enable_$ac_useropt" 1496 "*) ;; 1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1498 ac_unrecognized_sep=', ';; 1499 esac 1500 eval enable_$ac_useropt=\$ac_optarg ;; 1501 1502 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1503 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1504 | --exec | --exe | --ex) 1505 ac_prev=exec_prefix ;; 1506 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1507 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1508 | --exec=* | --exe=* | --ex=*) 1509 exec_prefix=$ac_optarg ;; 1510 1511 -gas | --gas | --ga | --g) 1512 # Obsolete; use --with-gas. 1513 with_gas=yes ;; 1514 1515 -help | --help | --hel | --he | -h) 1516 ac_init_help=long ;; 1517 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1518 ac_init_help=recursive ;; 1519 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1520 ac_init_help=short ;; 1521 1522 -host | --host | --hos | --ho) 1523 ac_prev=host_alias ;; 1524 -host=* | --host=* | --hos=* | --ho=*) 1525 host_alias=$ac_optarg ;; 1526 1527 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1528 ac_prev=htmldir ;; 1529 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1530 | --ht=*) 1531 htmldir=$ac_optarg ;; 1532 1533 -includedir | --includedir | --includedi | --included | --include \ 1534 | --includ | --inclu | --incl | --inc) 1535 ac_prev=includedir ;; 1536 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1537 | --includ=* | --inclu=* | --incl=* | --inc=*) 1538 includedir=$ac_optarg ;; 1539 1540 -infodir | --infodir | --infodi | --infod | --info | --inf) 1541 ac_prev=infodir ;; 1542 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1543 infodir=$ac_optarg ;; 1544 1545 -libdir | --libdir | --libdi | --libd) 1546 ac_prev=libdir ;; 1547 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1548 libdir=$ac_optarg ;; 1549 1550 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1551 | --libexe | --libex | --libe) 1552 ac_prev=libexecdir ;; 1553 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1554 | --libexe=* | --libex=* | --libe=*) 1555 libexecdir=$ac_optarg ;; 1556 1557 -localedir | --localedir | --localedi | --localed | --locale) 1558 ac_prev=localedir ;; 1559 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1560 localedir=$ac_optarg ;; 1561 1562 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1563 | --localstate | --localstat | --localsta | --localst | --locals) 1564 ac_prev=localstatedir ;; 1565 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1566 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1567 localstatedir=$ac_optarg ;; 1568 1569 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1570 ac_prev=mandir ;; 1571 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1572 mandir=$ac_optarg ;; 1573 1574 -nfp | --nfp | --nf) 1575 # Obsolete; use --without-fp. 1576 with_fp=no ;; 1577 1578 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1579 | --no-cr | --no-c | -n) 1580 no_create=yes ;; 1581 1582 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1583 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1584 no_recursion=yes ;; 1585 1586 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1587 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1588 | --oldin | --oldi | --old | --ol | --o) 1589 ac_prev=oldincludedir ;; 1590 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1591 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1592 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1593 oldincludedir=$ac_optarg ;; 1594 1595 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1596 ac_prev=prefix ;; 1597 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1598 prefix=$ac_optarg ;; 1599 1600 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1601 | --program-pre | --program-pr | --program-p) 1602 ac_prev=program_prefix ;; 1603 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1604 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1605 program_prefix=$ac_optarg ;; 1606 1607 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1608 | --program-suf | --program-su | --program-s) 1609 ac_prev=program_suffix ;; 1610 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1611 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1612 program_suffix=$ac_optarg ;; 1613 1614 -program-transform-name | --program-transform-name \ 1615 | --program-transform-nam | --program-transform-na \ 1616 | --program-transform-n | --program-transform- \ 1617 | --program-transform | --program-transfor \ 1618 | --program-transfo | --program-transf \ 1619 | --program-trans | --program-tran \ 1620 | --progr-tra | --program-tr | --program-t) 1621 ac_prev=program_transform_name ;; 1622 -program-transform-name=* | --program-transform-name=* \ 1623 | --program-transform-nam=* | --program-transform-na=* \ 1624 | --program-transform-n=* | --program-transform-=* \ 1625 | --program-transform=* | --program-transfor=* \ 1626 | --program-transfo=* | --program-transf=* \ 1627 | --program-trans=* | --program-tran=* \ 1628 | --progr-tra=* | --program-tr=* | --program-t=*) 1629 program_transform_name=$ac_optarg ;; 1630 1631 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1632 ac_prev=pdfdir ;; 1633 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1634 pdfdir=$ac_optarg ;; 1635 1636 -psdir | --psdir | --psdi | --psd | --ps) 1637 ac_prev=psdir ;; 1638 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1639 psdir=$ac_optarg ;; 1640 1641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1642 | -silent | --silent | --silen | --sile | --sil) 1643 silent=yes ;; 1644 1645 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1646 ac_prev=sbindir ;; 1647 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1648 | --sbi=* | --sb=*) 1649 sbindir=$ac_optarg ;; 1650 1651 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1652 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1653 | --sharedst | --shareds | --shared | --share | --shar \ 1654 | --sha | --sh) 1655 ac_prev=sharedstatedir ;; 1656 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1657 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1658 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1659 | --sha=* | --sh=*) 1660 sharedstatedir=$ac_optarg ;; 1661 1662 -site | --site | --sit) 1663 ac_prev=site ;; 1664 -site=* | --site=* | --sit=*) 1665 site=$ac_optarg ;; 1666 1667 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1668 ac_prev=srcdir ;; 1669 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1670 srcdir=$ac_optarg ;; 1671 1672 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1673 | --syscon | --sysco | --sysc | --sys | --sy) 1674 ac_prev=sysconfdir ;; 1675 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1676 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1677 sysconfdir=$ac_optarg ;; 1678 1679 -target | --target | --targe | --targ | --tar | --ta | --t) 1680 ac_prev=target_alias ;; 1681 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1682 target_alias=$ac_optarg ;; 1683 1684 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1685 verbose=yes ;; 1686 1687 -version | --version | --versio | --versi | --vers | -V) 1688 ac_init_version=: ;; 1689 1690 -with-* | --with-*) 1691 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1692 # Reject names that are not valid shell variable names. 1693 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1694 as_fn_error $? "invalid package name: $ac_useropt" 1695 ac_useropt_orig=$ac_useropt 1696 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1697 case $ac_user_opts in 1698 *" 1699 "with_$ac_useropt" 1700 "*) ;; 1701 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1702 ac_unrecognized_sep=', ';; 1703 esac 1704 eval with_$ac_useropt=\$ac_optarg ;; 1705 1706 -without-* | --without-*) 1707 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1708 # Reject names that are not valid shell variable names. 1709 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1710 as_fn_error $? "invalid package name: $ac_useropt" 1711 ac_useropt_orig=$ac_useropt 1712 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1713 case $ac_user_opts in 1714 *" 1715 "with_$ac_useropt" 1716 "*) ;; 1717 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1718 ac_unrecognized_sep=', ';; 1719 esac 1720 eval with_$ac_useropt=no ;; 1721 1722 --x) 1723 # Obsolete; use --with-x. 1724 with_x=yes ;; 1725 1726 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1727 | --x-incl | --x-inc | --x-in | --x-i) 1728 ac_prev=x_includes ;; 1729 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1730 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1731 x_includes=$ac_optarg ;; 1732 1733 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1734 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1735 ac_prev=x_libraries ;; 1736 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1737 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1738 x_libraries=$ac_optarg ;; 1739 1740 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1741 Try \`$0 --help' for more information" 1742 ;; 1743 1744 *=*) 1745 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1746 # Reject names that are not valid shell variable names. 1747 case $ac_envvar in #( 1748 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1749 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1750 esac 1751 eval $ac_envvar=\$ac_optarg 1752 export $ac_envvar ;; 1753 1754 *) 1755 # FIXME: should be removed in autoconf 3.0. 1756 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1757 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1758 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1759 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1760 ;; 1761 1762 esac 1763 done 1764 1765 if test -n "$ac_prev"; then 1766 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1767 as_fn_error $? "missing argument to $ac_option" 1768 fi 1769 1770 if test -n "$ac_unrecognized_opts"; then 1771 case $enable_option_checking in 1772 no) ;; 1773 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1774 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1775 esac 1776 fi 1777 1778 # Check all directory arguments for consistency. 1779 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1780 datadir sysconfdir sharedstatedir localstatedir includedir \ 1781 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1782 libdir localedir mandir 1783 do 1784 eval ac_val=\$$ac_var 1785 # Remove trailing slashes. 1786 case $ac_val in 1787 */ ) 1788 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1789 eval $ac_var=\$ac_val;; 1790 esac 1791 # Be sure to have absolute directory names. 1792 case $ac_val in 1793 [\\/$]* | ?:[\\/]* ) continue;; 1794 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1795 esac 1796 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1797 done 1798 1799 # There might be people who depend on the old broken behavior: `$host' 1800 # used to hold the argument of --host etc. 1801 # FIXME: To remove some day. 1802 build=$build_alias 1803 host=$host_alias 1804 target=$target_alias 1805 1806 # FIXME: To remove some day. 1807 if test "x$host_alias" != x; then 1808 if test "x$build_alias" = x; then 1809 cross_compiling=maybe 1810 elif test "x$build_alias" != "x$host_alias"; then 1811 cross_compiling=yes 1812 fi 1813 fi 1814 1815 ac_tool_prefix= 1816 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1817 1818 test "$silent" = yes && exec 6>/dev/null 1819 1820 1821 ac_pwd=`pwd` && test -n "$ac_pwd" && 1822 ac_ls_di=`ls -di .` && 1823 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1824 as_fn_error $? "working directory cannot be determined" 1825 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1826 as_fn_error $? "pwd does not report name of working directory" 1827 1828 1829 # Find the source files, if location was not specified. 1830 if test -z "$srcdir"; then 1831 ac_srcdir_defaulted=yes 1832 # Try the directory containing this script, then the parent directory. 1833 ac_confdir=`$as_dirname -- "$as_myself" || 1834 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1835 X"$as_myself" : 'X\(//\)[^/]' \| \ 1836 X"$as_myself" : 'X\(//\)$' \| \ 1837 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1838 $as_echo X"$as_myself" | 1839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1840 s//\1/ 1841 q 1842 } 1843 /^X\(\/\/\)[^/].*/{ 1844 s//\1/ 1845 q 1846 } 1847 /^X\(\/\/\)$/{ 1848 s//\1/ 1849 q 1850 } 1851 /^X\(\/\).*/{ 1852 s//\1/ 1853 q 1854 } 1855 s/.*/./; q'` 1856 srcdir=$ac_confdir 1857 if test ! -r "$srcdir/$ac_unique_file"; then 1858 srcdir=.. 1859 fi 1860 else 1861 ac_srcdir_defaulted=no 1862 fi 1863 if test ! -r "$srcdir/$ac_unique_file"; then 1864 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1865 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1866 fi 1867 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1868 ac_abs_confdir=`( 1869 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1870 pwd)` 1871 # When building in place, set srcdir=. 1872 if test "$ac_abs_confdir" = "$ac_pwd"; then 1873 srcdir=. 1874 fi 1875 # Remove unnecessary trailing slashes from srcdir. 1876 # Double slashes in file names in object file debugging info 1877 # mess up M-x gdb in Emacs. 1878 case $srcdir in 1879 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1880 esac 1881 for ac_var in $ac_precious_vars; do 1882 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1883 eval ac_env_${ac_var}_value=\$${ac_var} 1884 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1885 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1886 done 1887 1888 # 1889 # Report the --help message. 1890 # 1891 if test "$ac_init_help" = "long"; then 1892 # Omit some internal or obsolete options to make the list less imposing. 1893 # This message is too long to be a string in the A/UX 3.1 sh. 1894 cat <<_ACEOF 1895 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1896 1897 Usage: $0 [OPTION]... [VAR=VALUE]... 1898 1899 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1900 VAR=VALUE. See below for descriptions of some of the useful variables. 1901 1902 Defaults for the options are specified in brackets. 1903 1904 Configuration: 1905 -h, --help display this help and exit 1906 --help=short display options specific to this package 1907 --help=recursive display the short help of all the included packages 1908 -V, --version display version information and exit 1909 -q, --quiet, --silent do not print \`checking ...' messages 1910 --cache-file=FILE cache test results in FILE [disabled] 1911 -C, --config-cache alias for \`--cache-file=config.cache' 1912 -n, --no-create do not create output files 1913 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1914 1915 Installation directories: 1916 --prefix=PREFIX install architecture-independent files in PREFIX 1917 [$ac_default_prefix] 1918 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1919 [PREFIX] 1920 1921 By default, \`make install' will install all the files in 1922 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1923 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1924 for instance \`--prefix=\$HOME'. 1925 1926 For better control, use the options below. 1927 1928 Fine tuning of the installation directories: 1929 --bindir=DIR user executables [EPREFIX/bin] 1930 --sbindir=DIR system admin executables [EPREFIX/sbin] 1931 --libexecdir=DIR program executables [EPREFIX/libexec] 1932 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1933 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1934 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1935 --libdir=DIR object code libraries [EPREFIX/lib] 1936 --includedir=DIR C header files [PREFIX/include] 1937 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1938 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1939 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1940 --infodir=DIR info documentation [DATAROOTDIR/info] 1941 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1942 --mandir=DIR man documentation [DATAROOTDIR/man] 1943 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1944 --htmldir=DIR html documentation [DOCDIR] 1945 --dvidir=DIR dvi documentation [DOCDIR] 1946 --pdfdir=DIR pdf documentation [DOCDIR] 1947 --psdir=DIR ps documentation [DOCDIR] 1948 _ACEOF 1949 1950 cat <<\_ACEOF 1951 1952 X features: 1953 --x-includes=DIR X include files are in DIR 1954 --x-libraries=DIR X library files are in DIR 1955 1956 System types: 1957 --build=BUILD configure for building on BUILD [guessed] 1958 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1959 --target=TARGET configure for building compilers for TARGET [HOST] 1960 _ACEOF 1961 fi 1962 1963 if test -n "$ac_init_help"; then 1964 case $ac_init_help in 1965 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1966 esac 1967 cat <<\_ACEOF 1968 1969 Optional Features: 1970 --disable-option-checking ignore unrecognized --enable/--with options 1971 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1972 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1973 --enable-openjdk-only suppress building custom source even if present 1974 [disabled] 1975 --enable-debug set the debug level to fastdebug (shorthand for 1976 --with-debug-level=fastdebug) [disabled] 1977 --enable-headless-only only build headless (no GUI) support [disabled] 1978 --enable-full-docs build complete documentation [enabled if all tools 1979 found] 1980 --disable-unlimited-crypto 1981 Disable unlimited crypto policy [enabled] 1982 --disable-keep-packaged-modules 1983 Do not keep packaged modules in jdk image [enable] 1984 --enable-static-build enable static library build [disabled] 1985 --disable-warnings-as-errors 1986 do not consider native warnings to be an error 1987 [enabled] 1988 --enable-debug-symbols Deprecated. Option is kept for backwards 1989 compatibility and is ignored 1990 --enable-zip-debug-info Deprecated. Option is kept for backwards 1991 compatibility and is ignored 1992 --enable-native-coverage 1993 enable native compilation with code coverage 1994 data[disabled] 1995 --enable-dtrace[=yes/no/auto] 1996 enable dtrace. Default is auto, where dtrace is 1997 enabled if all dependencies are present. 1998 --enable-aot[=yes/no/auto] 1999 enable ahead of time compilation feature. Default is 2000 auto, where aot is enabled if all dependencies are 2001 present. 2002 --disable-hotspot-gtest Disables building of the Hotspot unit tests 2003 --disable-freetype-bundling 2004 disable bundling of the freetype library with the 2005 build result [enabled on Windows or when using 2006 --with-freetype, disabled otherwise] 2007 --enable-libffi-bundling 2008 enable bundling of libffi.so to make the built JDK 2009 runnable on more systems 2010 --enable-jtreg-failure-handler 2011 forces build of the jtreg failure handler to be 2012 enabled, missing dependencies become fatal errors. 2013 Default is auto, where the failure handler is built 2014 if all dependencies are present and otherwise just 2015 disabled. 2016 --disable-generate-classlist 2017 forces enabling or disabling of the generation of a 2018 CDS classlist at build time. Default is to generate 2019 it when either the server or client JVMs are built. 2020 --enable-sjavac use sjavac to do fast incremental compiles 2021 [disabled] 2022 --disable-javac-server disable javac server [enabled] 2023 --enable-icecc enable distribted compilation of native code using 2024 icecc/icecream [disabled] 2025 --disable-precompiled-headers 2026 disable using precompiled headers when compiling C++ 2027 [enabled] 2028 --enable-ccache enable using ccache to speed up recompilations 2029 [disabled] 2030 2031 Optional Packages: 2032 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2033 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2034 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2035 support it), e.g. --with-target-bits=32 [guessed] 2036 --with-custom-make-dir Deprecated. Option is kept for backwards 2037 compatibility and is ignored 2038 --with-jdk-variant JDK variant to build (normal) [normal] 2039 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2040 optimized) [release] 2041 --with-jvm-variants JVM variants (separated by commas) to build 2042 (server,client,minimal,core,zero,zeroshark,custom) 2043 [server] 2044 --with-cpu-port specify sources to use for Hotspot 64-bit ARM port 2045 (arm64,aarch64) [aarch64] 2046 --with-devkit use this devkit for compilers, tools and resources 2047 --with-sys-root alias for --with-sysroot for backwards compatability 2048 --with-sysroot use this directory as sysroot 2049 --with-tools-dir alias for --with-toolchain-path for backwards 2050 compatibility 2051 --with-toolchain-path prepend these directories when searching for 2052 toolchain binaries (compilers etc) 2053 --with-extra-path prepend these directories to the default path 2054 --with-sdk-name use the platform SDK of the given name. [macosx] 2055 --with-conf-name use this as the name of the configuration [generated 2056 from important configuration options] 2057 --with-output-sync set make output sync type if supported by make. 2058 [recurse] 2059 --with-default-make-target 2060 set the default make target [exploded-image] 2061 --with-cacerts-file specify alternative cacerts file 2062 --with-copyright-year Set copyright year value for build [current year] 2063 --with-milestone Deprecated. Option is kept for backwards 2064 compatibility and is ignored 2065 --with-update-version Deprecated. Option is kept for backwards 2066 compatibility and is ignored 2067 --with-user-release-suffix 2068 Deprecated. Option is kept for backwards 2069 compatibility and is ignored 2070 --with-build-number Deprecated. Option is kept for backwards 2071 compatibility and is ignored 2072 --with-version-string Set version string [calculated] 2073 --with-version-pre Set the base part of the version 'PRE' field 2074 (pre-release identifier) ['internal'] 2075 --with-version-opt Set version 'OPT' field (build metadata) 2076 [<timestamp>.<user>.<dirname>] 2077 --with-version-build Set version 'BUILD' field (build number) [not 2078 specified] 2079 --with-version-major Set version 'MAJOR' field (first number) [current 2080 source value] 2081 --with-version-minor Set version 'MINOR' field (second number) [current 2082 source value] 2083 --with-version-security Set version 'SECURITY' field (third number) [current 2084 source value] 2085 --with-version-patch Set version 'PATCH' field (fourth number) [not 2086 specified] 2087 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2088 --with-build-jdk path to JDK of same version as is being built[the 2089 newly built JDK] 2090 --with-add-source-root Deprecated. Option is kept for backwards 2091 compatibility and is ignored 2092 --with-override-source-root 2093 Deprecated. Option is kept for backwards 2094 compatibility and is ignored 2095 --with-adds-and-overrides 2096 Deprecated. Option is kept for backwards 2097 compatibility and is ignored 2098 --with-override-langtools 2099 Deprecated. Option is kept for backwards 2100 compatibility and is ignored 2101 --with-override-corba Deprecated. Option is kept for backwards 2102 compatibility and is ignored 2103 --with-override-jaxp Deprecated. Option is kept for backwards 2104 compatibility and is ignored 2105 --with-override-jaxws Deprecated. Option is kept for backwards 2106 compatibility and is ignored 2107 --with-override-hotspot Deprecated. Option is kept for backwards 2108 compatibility and is ignored 2109 --with-override-nashorn Deprecated. Option is kept for backwards 2110 compatibility and is ignored 2111 --with-override-jdk Deprecated. Option is kept for backwards 2112 compatibility and is ignored 2113 --with-import_hotspot Deprecated. Option is kept for backwards 2114 compatibility and is ignored 2115 --with-import-modules import a set of prebuilt modules either as a zip 2116 file or an exploded directory 2117 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2118 to show possible values [platform dependent] 2119 --with-extra-cflags extra flags to be used when compiling jdk c-files 2120 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2121 --with-extra-ldflags extra flags to be used when linking jdk 2122 --with-toolchain-version 2123 the version of the toolchain to look for, use 2124 '--help' to show possible values [platform 2125 dependent] 2126 --with-build-devkit Devkit to use for the build platform toolchain 2127 --with-jtreg Regression Test Harness [probed] 2128 --with-jib Jib dependency management tool [not used] 2129 --with-abi-profile specify ABI profile for ARM builds 2130 (arm-vfp-sflt,arm-vfp-hflt,arm-sflt, 2131 armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64) 2132 [toolchain dependent] 2133 --with-macosx-version-max 2134 error on use of newer functionality. [macosx] 2135 --with-native-debug-symbols 2136 set the native debug symbol configuration (none, 2137 internal, external, zipped) [varying] 2138 --with-stdc++lib=<static>,<dynamic>,<default> 2139 force linking of the C++ runtime on Linux to either 2140 static or dynamic, default is static with dynamic as 2141 fallback 2142 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2143 (Windows only) [probed] 2144 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2145 (Windows only) [probed] 2146 --with-x use the X Window System 2147 --with-cups specify prefix directory for the cups package 2148 (expecting the headers under PATH/include) 2149 --with-cups-include specify directory for the cups include files 2150 --with-freetype specify prefix directory for the freetype package 2151 (expecting the libraries under PATH/lib and the 2152 headers under PATH/include) 2153 --with-freetype-include specify directory for the freetype include files 2154 --with-freetype-lib specify directory for the freetype library 2155 --with-freetype-src specify directory with freetype sources to 2156 automatically build the library (experimental, 2157 Windows-only) 2158 --with-freetype-license if bundling freetype, also bundle this license file 2159 --with-alsa specify prefix directory for the alsa package 2160 (expecting the libraries under PATH/lib and the 2161 headers under PATH/include) 2162 --with-alsa-include specify directory for the alsa include files 2163 --with-alsa-lib specify directory for the alsa library 2164 --with-libffi specify prefix directory for the libffi package 2165 (expecting the libraries under PATH/lib and the 2166 headers under PATH/include) 2167 --with-libffi-include specify directory for the libffi include files 2168 --with-libffi-lib specify directory for the libffi library 2169 --with-libjpeg use libjpeg from build system or OpenJDK source 2170 (system, bundled) [bundled] 2171 --with-giflib use giflib from build system or OpenJDK source 2172 (system, bundled) [bundled] 2173 --with-libpng use libpng from build system or OpenJDK source 2174 (system, bundled) [bundled] 2175 --with-zlib use zlib from build system or OpenJDK source 2176 (system, bundled) [bundled] 2177 --with-lcms use lcms2 from build system or OpenJDK source 2178 (system, bundled) [bundled] 2179 --with-dxsdk Deprecated. Option is kept for backwards 2180 compatibility and is ignored 2181 --with-dxsdk-lib Deprecated. Option is kept for backwards 2182 compatibility and is ignored 2183 --with-dxsdk-include Deprecated. Option is kept for backwards 2184 compatibility and is ignored 2185 --with-jvm-features additional JVM features to enable (separated by 2186 comma), use '--help' to show possible values [none] 2187 --with-jvm-interpreter Deprecated. Option is kept for backwards 2188 compatibility and is ignored 2189 --with-num-cores number of cores in the build system, e.g. 2190 --with-num-cores=8 [probed] 2191 --with-memory-size memory (in MB) available in the build system, e.g. 2192 --with-memory-size=1024 [probed] 2193 --with-jobs number of parallel jobs to let make run [calculated 2194 based on cores and memory] 2195 --with-test-jobs number of parallel tests jobs to run [based on build 2196 jobs] 2197 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2198 invocations of boot JDK, overriding the default 2199 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2200 -enableassertions" 2201 --with-sjavac-server-java 2202 use this java binary for running the sjavac 2203 background server [Boot JDK java] 2204 --with-ccache-dir where to store ccache files [~/.ccache] 2205 2206 Some influential environment variables: 2207 BASENAME Override default value for BASENAME 2208 BASH Override default value for BASH 2209 CAT Override default value for CAT 2210 CHMOD Override default value for CHMOD 2211 CMP Override default value for CMP 2212 COMM Override default value for COMM 2213 CP Override default value for CP 2214 CUT Override default value for CUT 2215 DATE Override default value for DATE 2216 DIFF Override default value for DIFF 2217 DIRNAME Override default value for DIRNAME 2218 ECHO Override default value for ECHO 2219 EXPR Override default value for EXPR 2220 FILE Override default value for FILE 2221 FIND Override default value for FIND 2222 HEAD Override default value for HEAD 2223 GUNZIP Override default value for GUNZIP 2224 GZIP Override default value for GZIP 2225 LN Override default value for LN 2226 LS Override default value for LS 2227 MKDIR Override default value for MKDIR 2228 MKTEMP Override default value for MKTEMP 2229 MV Override default value for MV 2230 NAWK Override default value for NAWK 2231 PRINTF Override default value for PRINTF 2232 RM Override default value for RM 2233 RMDIR Override default value for RMDIR 2234 SH Override default value for SH 2235 SORT Override default value for SORT 2236 TAIL Override default value for TAIL 2237 TAR Override default value for TAR 2238 TEE Override default value for TEE 2239 TOUCH Override default value for TOUCH 2240 TR Override default value for TR 2241 UNAME Override default value for UNAME 2242 UNIQ Override default value for UNIQ 2243 WC Override default value for WC 2244 WHICH Override default value for WHICH 2245 XARGS Override default value for XARGS 2246 AWK Override default value for AWK 2247 GREP Override default value for GREP 2248 EGREP Override default value for EGREP 2249 FGREP Override default value for FGREP 2250 SED Override default value for SED 2251 CYGPATH Override default value for CYGPATH 2252 READLINK Override default value for READLINK 2253 DF Override default value for DF 2254 CPIO Override default value for CPIO 2255 NICE Override default value for NICE 2256 PANDOC Override default value for PANDOC 2257 MAKE Override default value for MAKE 2258 UNZIP Override default value for UNZIP 2259 ZIPEXE Override default value for ZIPEXE 2260 LDD Override default value for LDD 2261 OTOOL Override default value for OTOOL 2262 READELF Override default value for READELF 2263 DOT Override default value for DOT 2264 HG Override default value for HG 2265 STAT Override default value for STAT 2266 TIME Override default value for TIME 2267 FLOCK Override default value for FLOCK 2268 DTRACE Override default value for DTRACE 2269 PATCH Override default value for PATCH 2270 DSYMUTIL Override default value for DSYMUTIL 2271 XATTR Override default value for XATTR 2272 CODESIGN Override default value for CODESIGN 2273 SETFILE Override default value for SETFILE 2274 PKG_CONFIG path to pkg-config utility 2275 JAVA Override default value for JAVA 2276 JAVAC Override default value for JAVAC 2277 JAVAH Override default value for JAVAH 2278 JAR Override default value for JAR 2279 JARSIGNER Override default value for JARSIGNER 2280 CC C compiler command 2281 CFLAGS C compiler flags 2282 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2283 nonstandard directory <lib dir> 2284 LIBS libraries to pass to the linker, e.g. -l<library> 2285 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2286 you have headers in a nonstandard directory <include dir> 2287 CXX C++ compiler command 2288 CXXFLAGS C++ compiler flags 2289 CPP C preprocessor 2290 CXXCPP C++ preprocessor 2291 AS Override default value for AS 2292 AR Override default value for AR 2293 LIPO Override default value for LIPO 2294 STRIP Override default value for STRIP 2295 NM Override default value for NM 2296 GNM Override default value for GNM 2297 OBJCOPY Override default value for OBJCOPY 2298 OBJDUMP Override default value for OBJDUMP 2299 BUILD_CC Override default value for BUILD_CC 2300 BUILD_CXX Override default value for BUILD_CXX 2301 BUILD_NM Override default value for BUILD_NM 2302 BUILD_AR Override default value for BUILD_AR 2303 BUILD_OBJCOPY 2304 Override default value for BUILD_OBJCOPY 2305 BUILD_STRIP Override default value for BUILD_STRIP 2306 JTREGEXE Override default value for JTREGEXE 2307 XMKMF Path to xmkmf, Makefile generator for X Window System 2308 FREETYPE_CFLAGS 2309 C compiler flags for FREETYPE, overriding pkg-config 2310 FREETYPE_LIBS 2311 linker flags for FREETYPE, overriding pkg-config 2312 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2313 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2314 LIBFFI_CFLAGS 2315 C compiler flags for LIBFFI, overriding pkg-config 2316 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2317 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2318 PNG_LIBS linker flags for PNG, overriding pkg-config 2319 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2320 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2321 ICECC_CMD Override default value for ICECC_CMD 2322 ICECC_CREATE_ENV 2323 Override default value for ICECC_CREATE_ENV 2324 ICECC_WRAPPER 2325 Override default value for ICECC_WRAPPER 2326 CCACHE Override default value for CCACHE 2327 2328 Use these variables to override the choices made by `configure' or to help 2329 it to find libraries and programs with nonstandard names/locations. 2330 2331 Report bugs to <build-dev@openjdk.java.net>. 2332 OpenJDK home page: <http://openjdk.java.net>. 2333 _ACEOF 2334 ac_status=$? 2335 fi 2336 2337 if test "$ac_init_help" = "recursive"; then 2338 # If there are subdirs, report their specific --help. 2339 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2340 test -d "$ac_dir" || 2341 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2342 continue 2343 ac_builddir=. 2344 2345 case "$ac_dir" in 2346 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2347 *) 2348 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2349 # A ".." for each directory in $ac_dir_suffix. 2350 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2351 case $ac_top_builddir_sub in 2352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2354 esac ;; 2355 esac 2356 ac_abs_top_builddir=$ac_pwd 2357 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2358 # for backward compatibility: 2359 ac_top_builddir=$ac_top_build_prefix 2360 2361 case $srcdir in 2362 .) # We are building in place. 2363 ac_srcdir=. 2364 ac_top_srcdir=$ac_top_builddir_sub 2365 ac_abs_top_srcdir=$ac_pwd ;; 2366 [\\/]* | ?:[\\/]* ) # Absolute name. 2367 ac_srcdir=$srcdir$ac_dir_suffix; 2368 ac_top_srcdir=$srcdir 2369 ac_abs_top_srcdir=$srcdir ;; 2370 *) # Relative name. 2371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2372 ac_top_srcdir=$ac_top_build_prefix$srcdir 2373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2374 esac 2375 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2376 2377 cd "$ac_dir" || { ac_status=$?; continue; } 2378 # Check for guested configure. 2379 if test -f "$ac_srcdir/configure.gnu"; then 2380 echo && 2381 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2382 elif test -f "$ac_srcdir/configure"; then 2383 echo && 2384 $SHELL "$ac_srcdir/configure" --help=recursive 2385 else 2386 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2387 fi || ac_status=$? 2388 cd "$ac_pwd" || { ac_status=$?; break; } 2389 done 2390 fi 2391 2392 test -n "$ac_init_help" && exit $ac_status 2393 if $ac_init_version; then 2394 cat <<\_ACEOF 2395 OpenJDK configure jdk9 2396 generated by GNU Autoconf 2.69 2397 2398 Copyright (C) 2012 Free Software Foundation, Inc. 2399 This configure script is free software; the Free Software Foundation 2400 gives unlimited permission to copy, distribute and modify it. 2401 _ACEOF 2402 exit 2403 fi 2404 2405 ## ------------------------ ## 2406 ## Autoconf initialization. ## 2407 ## ------------------------ ## 2408 2409 # ac_fn_c_try_compile LINENO 2410 # -------------------------- 2411 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2412 ac_fn_c_try_compile () 2413 { 2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2415 rm -f conftest.$ac_objext 2416 if { { ac_try="$ac_compile" 2417 case "(($ac_try" in 2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2419 *) ac_try_echo=$ac_try;; 2420 esac 2421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2422 $as_echo "$ac_try_echo"; } >&5 2423 (eval "$ac_compile") 2>conftest.err 2424 ac_status=$? 2425 if test -s conftest.err; then 2426 grep -v '^ *+' conftest.err >conftest.er1 2427 cat conftest.er1 >&5 2428 mv -f conftest.er1 conftest.err 2429 fi 2430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2431 test $ac_status = 0; } && { 2432 test -z "$ac_c_werror_flag" || 2433 test ! -s conftest.err 2434 } && test -s conftest.$ac_objext; then : 2435 ac_retval=0 2436 else 2437 $as_echo "$as_me: failed program was:" >&5 2438 sed 's/^/| /' conftest.$ac_ext >&5 2439 2440 ac_retval=1 2441 fi 2442 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2443 as_fn_set_status $ac_retval 2444 2445 } # ac_fn_c_try_compile 2446 2447 # ac_fn_cxx_try_compile LINENO 2448 # ---------------------------- 2449 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2450 ac_fn_cxx_try_compile () 2451 { 2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2453 rm -f conftest.$ac_objext 2454 if { { ac_try="$ac_compile" 2455 case "(($ac_try" in 2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2457 *) ac_try_echo=$ac_try;; 2458 esac 2459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2460 $as_echo "$ac_try_echo"; } >&5 2461 (eval "$ac_compile") 2>conftest.err 2462 ac_status=$? 2463 if test -s conftest.err; then 2464 grep -v '^ *+' conftest.err >conftest.er1 2465 cat conftest.er1 >&5 2466 mv -f conftest.er1 conftest.err 2467 fi 2468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2469 test $ac_status = 0; } && { 2470 test -z "$ac_cxx_werror_flag" || 2471 test ! -s conftest.err 2472 } && test -s conftest.$ac_objext; then : 2473 ac_retval=0 2474 else 2475 $as_echo "$as_me: failed program was:" >&5 2476 sed 's/^/| /' conftest.$ac_ext >&5 2477 2478 ac_retval=1 2479 fi 2480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2481 as_fn_set_status $ac_retval 2482 2483 } # ac_fn_cxx_try_compile 2484 2485 # ac_fn_c_try_cpp LINENO 2486 # ---------------------- 2487 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2488 ac_fn_c_try_cpp () 2489 { 2490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2491 if { { ac_try="$ac_cpp conftest.$ac_ext" 2492 case "(($ac_try" in 2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2494 *) ac_try_echo=$ac_try;; 2495 esac 2496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2497 $as_echo "$ac_try_echo"; } >&5 2498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2499 ac_status=$? 2500 if test -s conftest.err; then 2501 grep -v '^ *+' conftest.err >conftest.er1 2502 cat conftest.er1 >&5 2503 mv -f conftest.er1 conftest.err 2504 fi 2505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2506 test $ac_status = 0; } > conftest.i && { 2507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2508 test ! -s conftest.err 2509 }; then : 2510 ac_retval=0 2511 else 2512 $as_echo "$as_me: failed program was:" >&5 2513 sed 's/^/| /' conftest.$ac_ext >&5 2514 2515 ac_retval=1 2516 fi 2517 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2518 as_fn_set_status $ac_retval 2519 2520 } # ac_fn_c_try_cpp 2521 2522 # ac_fn_cxx_try_cpp LINENO 2523 # ------------------------ 2524 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2525 ac_fn_cxx_try_cpp () 2526 { 2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2528 if { { ac_try="$ac_cpp conftest.$ac_ext" 2529 case "(($ac_try" in 2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2531 *) ac_try_echo=$ac_try;; 2532 esac 2533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2534 $as_echo "$ac_try_echo"; } >&5 2535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2536 ac_status=$? 2537 if test -s conftest.err; then 2538 grep -v '^ *+' conftest.err >conftest.er1 2539 cat conftest.er1 >&5 2540 mv -f conftest.er1 conftest.err 2541 fi 2542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2543 test $ac_status = 0; } > conftest.i && { 2544 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2545 test ! -s conftest.err 2546 }; then : 2547 ac_retval=0 2548 else 2549 $as_echo "$as_me: failed program was:" >&5 2550 sed 's/^/| /' conftest.$ac_ext >&5 2551 2552 ac_retval=1 2553 fi 2554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2555 as_fn_set_status $ac_retval 2556 2557 } # ac_fn_cxx_try_cpp 2558 2559 # ac_fn_c_try_link LINENO 2560 # ----------------------- 2561 # Try to link conftest.$ac_ext, and return whether this succeeded. 2562 ac_fn_c_try_link () 2563 { 2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2565 rm -f conftest.$ac_objext conftest$ac_exeext 2566 if { { ac_try="$ac_link" 2567 case "(($ac_try" in 2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2569 *) ac_try_echo=$ac_try;; 2570 esac 2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2572 $as_echo "$ac_try_echo"; } >&5 2573 (eval "$ac_link") 2>conftest.err 2574 ac_status=$? 2575 if test -s conftest.err; then 2576 grep -v '^ *+' conftest.err >conftest.er1 2577 cat conftest.er1 >&5 2578 mv -f conftest.er1 conftest.err 2579 fi 2580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2581 test $ac_status = 0; } && { 2582 test -z "$ac_c_werror_flag" || 2583 test ! -s conftest.err 2584 } && test -s conftest$ac_exeext && { 2585 test "$cross_compiling" = yes || 2586 test -x conftest$ac_exeext 2587 }; then : 2588 ac_retval=0 2589 else 2590 $as_echo "$as_me: failed program was:" >&5 2591 sed 's/^/| /' conftest.$ac_ext >&5 2592 2593 ac_retval=1 2594 fi 2595 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2596 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2597 # interfere with the next link command; also delete a directory that is 2598 # left behind by Apple's compiler. We do this before executing the actions. 2599 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2601 as_fn_set_status $ac_retval 2602 2603 } # ac_fn_c_try_link 2604 2605 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2606 # --------------------------------------------------------- 2607 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2608 # the include files in INCLUDES and setting the cache variable VAR 2609 # accordingly. 2610 ac_fn_cxx_check_header_mongrel () 2611 { 2612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2613 if eval \${$3+:} false; then : 2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2615 $as_echo_n "checking for $2... " >&6; } 2616 if eval \${$3+:} false; then : 2617 $as_echo_n "(cached) " >&6 2618 fi 2619 eval ac_res=\$$3 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2621 $as_echo "$ac_res" >&6; } 2622 else 2623 # Is the header compilable? 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2625 $as_echo_n "checking $2 usability... " >&6; } 2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2627 /* end confdefs.h. */ 2628 $4 2629 #include <$2> 2630 _ACEOF 2631 if ac_fn_cxx_try_compile "$LINENO"; then : 2632 ac_header_compiler=yes 2633 else 2634 ac_header_compiler=no 2635 fi 2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2638 $as_echo "$ac_header_compiler" >&6; } 2639 2640 # Is the header present? 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2642 $as_echo_n "checking $2 presence... " >&6; } 2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2644 /* end confdefs.h. */ 2645 #include <$2> 2646 _ACEOF 2647 if ac_fn_cxx_try_cpp "$LINENO"; then : 2648 ac_header_preproc=yes 2649 else 2650 ac_header_preproc=no 2651 fi 2652 rm -f conftest.err conftest.i conftest.$ac_ext 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2654 $as_echo "$ac_header_preproc" >&6; } 2655 2656 # So? What about this header? 2657 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2658 yes:no: ) 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2660 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2662 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2663 ;; 2664 no:yes:* ) 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2666 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2668 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2670 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2672 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2674 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2675 ( $as_echo "## ----------------------------------------- ## 2676 ## Report this to build-dev@openjdk.java.net ## 2677 ## ----------------------------------------- ##" 2678 ) | sed "s/^/$as_me: WARNING: /" >&2 2679 ;; 2680 esac 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2682 $as_echo_n "checking for $2... " >&6; } 2683 if eval \${$3+:} false; then : 2684 $as_echo_n "(cached) " >&6 2685 else 2686 eval "$3=\$ac_header_compiler" 2687 fi 2688 eval ac_res=\$$3 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2690 $as_echo "$ac_res" >&6; } 2691 fi 2692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2693 2694 } # ac_fn_cxx_check_header_mongrel 2695 2696 # ac_fn_cxx_try_run LINENO 2697 # ------------------------ 2698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2699 # that executables *can* be run. 2700 ac_fn_cxx_try_run () 2701 { 2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2703 if { { ac_try="$ac_link" 2704 case "(($ac_try" in 2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2706 *) ac_try_echo=$ac_try;; 2707 esac 2708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2709 $as_echo "$ac_try_echo"; } >&5 2710 (eval "$ac_link") 2>&5 2711 ac_status=$? 2712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2714 { { case "(($ac_try" in 2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2716 *) ac_try_echo=$ac_try;; 2717 esac 2718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2719 $as_echo "$ac_try_echo"; } >&5 2720 (eval "$ac_try") 2>&5 2721 ac_status=$? 2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2723 test $ac_status = 0; }; }; then : 2724 ac_retval=0 2725 else 2726 $as_echo "$as_me: program exited with status $ac_status" >&5 2727 $as_echo "$as_me: failed program was:" >&5 2728 sed 's/^/| /' conftest.$ac_ext >&5 2729 2730 ac_retval=$ac_status 2731 fi 2732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2734 as_fn_set_status $ac_retval 2735 2736 } # ac_fn_cxx_try_run 2737 2738 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2739 # --------------------------------------------------------- 2740 # Tests whether HEADER exists and can be compiled using the include files in 2741 # INCLUDES, setting the cache variable VAR accordingly. 2742 ac_fn_cxx_check_header_compile () 2743 { 2744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2746 $as_echo_n "checking for $2... " >&6; } 2747 if eval \${$3+:} false; then : 2748 $as_echo_n "(cached) " >&6 2749 else 2750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2751 /* end confdefs.h. */ 2752 $4 2753 #include <$2> 2754 _ACEOF 2755 if ac_fn_cxx_try_compile "$LINENO"; then : 2756 eval "$3=yes" 2757 else 2758 eval "$3=no" 2759 fi 2760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2761 fi 2762 eval ac_res=\$$3 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2764 $as_echo "$ac_res" >&6; } 2765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2766 2767 } # ac_fn_cxx_check_header_compile 2768 2769 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2770 # ---------------------------------------------- 2771 # Tries to find the compile-time value of EXPR in a program that includes 2772 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2773 # computed 2774 ac_fn_cxx_compute_int () 2775 { 2776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2777 if test "$cross_compiling" = yes; then 2778 # Depending upon the size, compute the lo and hi bounds. 2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2780 /* end confdefs.h. */ 2781 $4 2782 int 2783 main () 2784 { 2785 static int test_array [1 - 2 * !(($2) >= 0)]; 2786 test_array [0] = 0; 2787 return test_array [0]; 2788 2789 ; 2790 return 0; 2791 } 2792 _ACEOF 2793 if ac_fn_cxx_try_compile "$LINENO"; then : 2794 ac_lo=0 ac_mid=0 2795 while :; do 2796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2797 /* end confdefs.h. */ 2798 $4 2799 int 2800 main () 2801 { 2802 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2803 test_array [0] = 0; 2804 return test_array [0]; 2805 2806 ; 2807 return 0; 2808 } 2809 _ACEOF 2810 if ac_fn_cxx_try_compile "$LINENO"; then : 2811 ac_hi=$ac_mid; break 2812 else 2813 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2814 if test $ac_lo -le $ac_mid; then 2815 ac_lo= ac_hi= 2816 break 2817 fi 2818 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2819 fi 2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2821 done 2822 else 2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2824 /* end confdefs.h. */ 2825 $4 2826 int 2827 main () 2828 { 2829 static int test_array [1 - 2 * !(($2) < 0)]; 2830 test_array [0] = 0; 2831 return test_array [0]; 2832 2833 ; 2834 return 0; 2835 } 2836 _ACEOF 2837 if ac_fn_cxx_try_compile "$LINENO"; then : 2838 ac_hi=-1 ac_mid=-1 2839 while :; do 2840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2841 /* end confdefs.h. */ 2842 $4 2843 int 2844 main () 2845 { 2846 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2847 test_array [0] = 0; 2848 return test_array [0]; 2849 2850 ; 2851 return 0; 2852 } 2853 _ACEOF 2854 if ac_fn_cxx_try_compile "$LINENO"; then : 2855 ac_lo=$ac_mid; break 2856 else 2857 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2858 if test $ac_mid -le $ac_hi; then 2859 ac_lo= ac_hi= 2860 break 2861 fi 2862 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2863 fi 2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2865 done 2866 else 2867 ac_lo= ac_hi= 2868 fi 2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2870 fi 2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2872 # Binary search between lo and hi bounds. 2873 while test "x$ac_lo" != "x$ac_hi"; do 2874 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2876 /* end confdefs.h. */ 2877 $4 2878 int 2879 main () 2880 { 2881 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2882 test_array [0] = 0; 2883 return test_array [0]; 2884 2885 ; 2886 return 0; 2887 } 2888 _ACEOF 2889 if ac_fn_cxx_try_compile "$LINENO"; then : 2890 ac_hi=$ac_mid 2891 else 2892 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2893 fi 2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2895 done 2896 case $ac_lo in #(( 2897 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2898 '') ac_retval=1 ;; 2899 esac 2900 else 2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2902 /* end confdefs.h. */ 2903 $4 2904 static long int longval () { return $2; } 2905 static unsigned long int ulongval () { return $2; } 2906 #include <stdio.h> 2907 #include <stdlib.h> 2908 int 2909 main () 2910 { 2911 2912 FILE *f = fopen ("conftest.val", "w"); 2913 if (! f) 2914 return 1; 2915 if (($2) < 0) 2916 { 2917 long int i = longval (); 2918 if (i != ($2)) 2919 return 1; 2920 fprintf (f, "%ld", i); 2921 } 2922 else 2923 { 2924 unsigned long int i = ulongval (); 2925 if (i != ($2)) 2926 return 1; 2927 fprintf (f, "%lu", i); 2928 } 2929 /* Do not output a trailing newline, as this causes \r\n confusion 2930 on some platforms. */ 2931 return ferror (f) || fclose (f) != 0; 2932 2933 ; 2934 return 0; 2935 } 2936 _ACEOF 2937 if ac_fn_cxx_try_run "$LINENO"; then : 2938 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2939 else 2940 ac_retval=1 2941 fi 2942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2943 conftest.$ac_objext conftest.beam conftest.$ac_ext 2944 rm -f conftest.val 2945 2946 fi 2947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2948 as_fn_set_status $ac_retval 2949 2950 } # ac_fn_cxx_compute_int 2951 2952 # ac_fn_cxx_try_link LINENO 2953 # ------------------------- 2954 # Try to link conftest.$ac_ext, and return whether this succeeded. 2955 ac_fn_cxx_try_link () 2956 { 2957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2958 rm -f conftest.$ac_objext conftest$ac_exeext 2959 if { { ac_try="$ac_link" 2960 case "(($ac_try" in 2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2962 *) ac_try_echo=$ac_try;; 2963 esac 2964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2965 $as_echo "$ac_try_echo"; } >&5 2966 (eval "$ac_link") 2>conftest.err 2967 ac_status=$? 2968 if test -s conftest.err; then 2969 grep -v '^ *+' conftest.err >conftest.er1 2970 cat conftest.er1 >&5 2971 mv -f conftest.er1 conftest.err 2972 fi 2973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2974 test $ac_status = 0; } && { 2975 test -z "$ac_cxx_werror_flag" || 2976 test ! -s conftest.err 2977 } && test -s conftest$ac_exeext && { 2978 test "$cross_compiling" = yes || 2979 test -x conftest$ac_exeext 2980 }; then : 2981 ac_retval=0 2982 else 2983 $as_echo "$as_me: failed program was:" >&5 2984 sed 's/^/| /' conftest.$ac_ext >&5 2985 2986 ac_retval=1 2987 fi 2988 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2989 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2990 # interfere with the next link command; also delete a directory that is 2991 # left behind by Apple's compiler. We do this before executing the actions. 2992 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2994 as_fn_set_status $ac_retval 2995 2996 } # ac_fn_cxx_try_link 2997 2998 # ac_fn_cxx_check_func LINENO FUNC VAR 2999 # ------------------------------------ 3000 # Tests whether FUNC exists, setting the cache variable VAR accordingly 3001 ac_fn_cxx_check_func () 3002 { 3003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3005 $as_echo_n "checking for $2... " >&6; } 3006 if eval \${$3+:} false; then : 3007 $as_echo_n "(cached) " >&6 3008 else 3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3010 /* end confdefs.h. */ 3011 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 3012 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3013 #define $2 innocuous_$2 3014 3015 /* System header to define __stub macros and hopefully few prototypes, 3016 which can conflict with char $2 (); below. 3017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3018 <limits.h> exists even on freestanding compilers. */ 3019 3020 #ifdef __STDC__ 3021 # include <limits.h> 3022 #else 3023 # include <assert.h> 3024 #endif 3025 3026 #undef $2 3027 3028 /* Override any GCC internal prototype to avoid an error. 3029 Use char because int might match the return type of a GCC 3030 builtin and then its argument prototype would still apply. */ 3031 #ifdef __cplusplus 3032 extern "C" 3033 #endif 3034 char $2 (); 3035 /* The GNU C library defines this for functions which it implements 3036 to always fail with ENOSYS. Some functions are actually named 3037 something starting with __ and the normal name is an alias. */ 3038 #if defined __stub_$2 || defined __stub___$2 3039 choke me 3040 #endif 3041 3042 int 3043 main () 3044 { 3045 return $2 (); 3046 ; 3047 return 0; 3048 } 3049 _ACEOF 3050 if ac_fn_cxx_try_link "$LINENO"; then : 3051 eval "$3=yes" 3052 else 3053 eval "$3=no" 3054 fi 3055 rm -f core conftest.err conftest.$ac_objext \ 3056 conftest$ac_exeext conftest.$ac_ext 3057 fi 3058 eval ac_res=\$$3 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3060 $as_echo "$ac_res" >&6; } 3061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3062 3063 } # ac_fn_cxx_check_func 3064 3065 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3066 # ------------------------------------------------------- 3067 # Tests whether HEADER exists and can be compiled using the include files in 3068 # INCLUDES, setting the cache variable VAR accordingly. 3069 ac_fn_c_check_header_compile () 3070 { 3071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3073 $as_echo_n "checking for $2... " >&6; } 3074 if eval \${$3+:} false; then : 3075 $as_echo_n "(cached) " >&6 3076 else 3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3078 /* end confdefs.h. */ 3079 $4 3080 #include <$2> 3081 _ACEOF 3082 if ac_fn_c_try_compile "$LINENO"; then : 3083 eval "$3=yes" 3084 else 3085 eval "$3=no" 3086 fi 3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3088 fi 3089 eval ac_res=\$$3 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3091 $as_echo "$ac_res" >&6; } 3092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3093 3094 } # ac_fn_c_check_header_compile 3095 cat >config.log <<_ACEOF 3096 This file contains any messages produced by compilers while 3097 running configure, to aid debugging if configure makes a mistake. 3098 3099 It was created by OpenJDK $as_me jdk9, which was 3100 generated by GNU Autoconf 2.69. Invocation command line was 3101 3102 $ $0 $@ 3103 3104 _ACEOF 3105 exec 5>>config.log 3106 { 3107 cat <<_ASUNAME 3108 ## --------- ## 3109 ## Platform. ## 3110 ## --------- ## 3111 3112 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3113 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3114 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3115 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3116 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3117 3118 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3119 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3120 3121 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3122 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3123 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3124 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3125 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3126 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3127 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3128 3129 _ASUNAME 3130 3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3132 for as_dir in $PATH 3133 do 3134 IFS=$as_save_IFS 3135 test -z "$as_dir" && as_dir=. 3136 $as_echo "PATH: $as_dir" 3137 done 3138 IFS=$as_save_IFS 3139 3140 } >&5 3141 3142 cat >&5 <<_ACEOF 3143 3144 3145 ## ----------- ## 3146 ## Core tests. ## 3147 ## ----------- ## 3148 3149 _ACEOF 3150 3151 3152 # Keep a trace of the command line. 3153 # Strip out --no-create and --no-recursion so they do not pile up. 3154 # Strip out --silent because we don't want to record it for future runs. 3155 # Also quote any args containing shell meta-characters. 3156 # Make two passes to allow for proper duplicate-argument suppression. 3157 ac_configure_args= 3158 ac_configure_args0= 3159 ac_configure_args1= 3160 ac_must_keep_next=false 3161 for ac_pass in 1 2 3162 do 3163 for ac_arg 3164 do 3165 case $ac_arg in 3166 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3168 | -silent | --silent | --silen | --sile | --sil) 3169 continue ;; 3170 *\'*) 3171 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3172 esac 3173 case $ac_pass in 3174 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3175 2) 3176 as_fn_append ac_configure_args1 " '$ac_arg'" 3177 if test $ac_must_keep_next = true; then 3178 ac_must_keep_next=false # Got value, back to normal. 3179 else 3180 case $ac_arg in 3181 *=* | --config-cache | -C | -disable-* | --disable-* \ 3182 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3183 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3184 | -with-* | --with-* | -without-* | --without-* | --x) 3185 case "$ac_configure_args0 " in 3186 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3187 esac 3188 ;; 3189 -* ) ac_must_keep_next=true ;; 3190 esac 3191 fi 3192 as_fn_append ac_configure_args " '$ac_arg'" 3193 ;; 3194 esac 3195 done 3196 done 3197 { ac_configure_args0=; unset ac_configure_args0;} 3198 { ac_configure_args1=; unset ac_configure_args1;} 3199 3200 # When interrupted or exit'd, cleanup temporary files, and complete 3201 # config.log. We remove comments because anyway the quotes in there 3202 # would cause problems or look ugly. 3203 # WARNING: Use '\'' to represent an apostrophe within the trap. 3204 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3205 trap 'exit_status=$? 3206 # Save into config.log some information that might help in debugging. 3207 { 3208 echo 3209 3210 $as_echo "## ---------------- ## 3211 ## Cache variables. ## 3212 ## ---------------- ##" 3213 echo 3214 # The following way of writing the cache mishandles newlines in values, 3215 ( 3216 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3217 eval ac_val=\$$ac_var 3218 case $ac_val in #( 3219 *${as_nl}*) 3220 case $ac_var in #( 3221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3223 esac 3224 case $ac_var in #( 3225 _ | IFS | as_nl) ;; #( 3226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3227 *) { eval $ac_var=; unset $ac_var;} ;; 3228 esac ;; 3229 esac 3230 done 3231 (set) 2>&1 | 3232 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3233 *${as_nl}ac_space=\ *) 3234 sed -n \ 3235 "s/'\''/'\''\\\\'\'''\''/g; 3236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3237 ;; #( 3238 *) 3239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3240 ;; 3241 esac | 3242 sort 3243 ) 3244 echo 3245 3246 $as_echo "## ----------------- ## 3247 ## Output variables. ## 3248 ## ----------------- ##" 3249 echo 3250 for ac_var in $ac_subst_vars 3251 do 3252 eval ac_val=\$$ac_var 3253 case $ac_val in 3254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3255 esac 3256 $as_echo "$ac_var='\''$ac_val'\''" 3257 done | sort 3258 echo 3259 3260 if test -n "$ac_subst_files"; then 3261 $as_echo "## ------------------- ## 3262 ## File substitutions. ## 3263 ## ------------------- ##" 3264 echo 3265 for ac_var in $ac_subst_files 3266 do 3267 eval ac_val=\$$ac_var 3268 case $ac_val in 3269 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3270 esac 3271 $as_echo "$ac_var='\''$ac_val'\''" 3272 done | sort 3273 echo 3274 fi 3275 3276 if test -s confdefs.h; then 3277 $as_echo "## ----------- ## 3278 ## confdefs.h. ## 3279 ## ----------- ##" 3280 echo 3281 cat confdefs.h 3282 echo 3283 fi 3284 test "$ac_signal" != 0 && 3285 $as_echo "$as_me: caught signal $ac_signal" 3286 $as_echo "$as_me: exit $exit_status" 3287 } >&5 3288 rm -f core *.core core.conftest.* && 3289 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3290 exit $exit_status 3291 ' 0 3292 for ac_signal in 1 2 13 15; do 3293 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3294 done 3295 ac_signal=0 3296 3297 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3298 rm -f -r conftest* confdefs.h 3299 3300 $as_echo "/* confdefs.h */" > confdefs.h 3301 3302 # Predefined preprocessor variables. 3303 3304 cat >>confdefs.h <<_ACEOF 3305 #define PACKAGE_NAME "$PACKAGE_NAME" 3306 _ACEOF 3307 3308 cat >>confdefs.h <<_ACEOF 3309 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3310 _ACEOF 3311 3312 cat >>confdefs.h <<_ACEOF 3313 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3314 _ACEOF 3315 3316 cat >>confdefs.h <<_ACEOF 3317 #define PACKAGE_STRING "$PACKAGE_STRING" 3318 _ACEOF 3319 3320 cat >>confdefs.h <<_ACEOF 3321 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3322 _ACEOF 3323 3324 cat >>confdefs.h <<_ACEOF 3325 #define PACKAGE_URL "$PACKAGE_URL" 3326 _ACEOF 3327 3328 3329 # Let the site file select an alternate cache file if it wants to. 3330 # Prefer an explicitly selected file to automatically selected ones. 3331 ac_site_file1=NONE 3332 ac_site_file2=NONE 3333 if test -n "$CONFIG_SITE"; then 3334 # We do not want a PATH search for config.site. 3335 case $CONFIG_SITE in #(( 3336 -*) ac_site_file1=./$CONFIG_SITE;; 3337 */*) ac_site_file1=$CONFIG_SITE;; 3338 *) ac_site_file1=./$CONFIG_SITE;; 3339 esac 3340 elif test "x$prefix" != xNONE; then 3341 ac_site_file1=$prefix/share/config.site 3342 ac_site_file2=$prefix/etc/config.site 3343 else 3344 ac_site_file1=$ac_default_prefix/share/config.site 3345 ac_site_file2=$ac_default_prefix/etc/config.site 3346 fi 3347 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3348 do 3349 test "x$ac_site_file" = xNONE && continue 3350 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3352 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3353 sed 's/^/| /' "$ac_site_file" >&5 3354 . "$ac_site_file" \ 3355 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3357 as_fn_error $? "failed to load site script $ac_site_file 3358 See \`config.log' for more details" "$LINENO" 5; } 3359 fi 3360 done 3361 3362 if test -r "$cache_file"; then 3363 # Some versions of bash will fail to source /dev/null (special files 3364 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3365 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3367 $as_echo "$as_me: loading cache $cache_file" >&6;} 3368 case $cache_file in 3369 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3370 *) . "./$cache_file";; 3371 esac 3372 fi 3373 else 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3375 $as_echo "$as_me: creating cache $cache_file" >&6;} 3376 >$cache_file 3377 fi 3378 3379 # Check that the precious variables saved in the cache have kept the same 3380 # value. 3381 ac_cache_corrupted=false 3382 for ac_var in $ac_precious_vars; do 3383 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3384 eval ac_new_set=\$ac_env_${ac_var}_set 3385 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3386 eval ac_new_val=\$ac_env_${ac_var}_value 3387 case $ac_old_set,$ac_new_set in 3388 set,) 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3390 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3391 ac_cache_corrupted=: ;; 3392 ,set) 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3394 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3395 ac_cache_corrupted=: ;; 3396 ,);; 3397 *) 3398 if test "x$ac_old_val" != "x$ac_new_val"; then 3399 # differences in whitespace do not lead to failure. 3400 ac_old_val_w=`echo x $ac_old_val` 3401 ac_new_val_w=`echo x $ac_new_val` 3402 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3404 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3405 ac_cache_corrupted=: 3406 else 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3408 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3409 eval $ac_var=\$ac_old_val 3410 fi 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3412 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3413 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3414 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3415 fi;; 3416 esac 3417 # Pass precious variables to config.status. 3418 if test "$ac_new_set" = set; then 3419 case $ac_new_val in 3420 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3421 *) ac_arg=$ac_var=$ac_new_val ;; 3422 esac 3423 case " $ac_configure_args " in 3424 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3425 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3426 esac 3427 fi 3428 done 3429 if $ac_cache_corrupted; then 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3433 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3434 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3435 fi 3436 ## -------------------- ## 3437 ## Main body of script. ## 3438 ## -------------------- ## 3439 3440 ac_ext=c 3441 ac_cpp='$CPP $CPPFLAGS' 3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3445 3446 3447 3448 ac_aux_dir= 3449 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3450 if test -f "$ac_dir/install-sh"; then 3451 ac_aux_dir=$ac_dir 3452 ac_install_sh="$ac_aux_dir/install-sh -c" 3453 break 3454 elif test -f "$ac_dir/install.sh"; then 3455 ac_aux_dir=$ac_dir 3456 ac_install_sh="$ac_aux_dir/install.sh -c" 3457 break 3458 elif test -f "$ac_dir/shtool"; then 3459 ac_aux_dir=$ac_dir 3460 ac_install_sh="$ac_aux_dir/shtool install -c" 3461 break 3462 fi 3463 done 3464 if test -z "$ac_aux_dir"; then 3465 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5 3466 fi 3467 3468 # These three variables are undocumented and unsupported, 3469 # and are intended to be withdrawn in a future Autoconf release. 3470 # They can cause serious problems if a builder's source tree is in a directory 3471 # whose full name contains unusual characters. 3472 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3473 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3474 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3475 3476 3477 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3478 3479 # 3480 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3481 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3482 # 3483 # This code is free software; you can redistribute it and/or modify it 3484 # under the terms of the GNU General Public License version 2 only, as 3485 # published by the Free Software Foundation. Oracle designates this 3486 # particular file as subject to the "Classpath" exception as provided 3487 # by Oracle in the LICENSE file that accompanied this code. 3488 # 3489 # This code is distributed in the hope that it will be useful, but WITHOUT 3490 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3491 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3492 # version 2 for more details (a copy is included in the LICENSE file that 3493 # accompanied this code). 3494 # 3495 # You should have received a copy of the GNU General Public License version 3496 # 2 along with this work; if not, write to the Free Software Foundation, 3497 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3498 # 3499 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3500 # or visit www.oracle.com if you need additional information or have any 3501 # questions. 3502 # 3503 3504 # 3505 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3506 # 3507 # This program is free software; you can redistribute it and/or modify 3508 # it under the terms of the GNU General Public License as published by 3509 # the Free Software Foundation; either version 2 of the License, or 3510 # (at your option) any later version. 3511 # 3512 # This program is distributed in the hope that it will be useful, but 3513 # WITHOUT ANY WARRANTY; without even the implied warranty of 3514 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3515 # General Public License for more details. 3516 # 3517 # You should have received a copy of the GNU General Public License 3518 # along with this program; if not, write to the Free Software 3519 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3520 # 3521 # As a special exception to the GNU General Public License, if you 3522 # distribute this file as part of a program that contains a 3523 # configuration script generated by Autoconf, you may include it under 3524 # the same distribution terms that you use for the rest of that program. 3525 3526 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3527 # ---------------------------------- 3528 # PKG_PROG_PKG_CONFIG 3529 3530 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3531 # 3532 # Check to see whether a particular set of modules exists. Similar 3533 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3534 # 3535 # 3536 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3537 # this or PKG_CHECK_MODULES is called, or make sure to call 3538 # PKG_CHECK_EXISTS manually 3539 # -------------------------------------------------------------- 3540 3541 3542 3543 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3544 # --------------------------------------------- 3545 # _PKG_CONFIG 3546 3547 # _PKG_SHORT_ERRORS_SUPPORTED 3548 # ----------------------------- 3549 # _PKG_SHORT_ERRORS_SUPPORTED 3550 3551 3552 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3553 # [ACTION-IF-NOT-FOUND]) 3554 # 3555 # 3556 # Note that if there is a possibility the first call to 3557 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3558 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3559 # 3560 # 3561 # -------------------------------------------------------------- 3562 # PKG_CHECK_MODULES 3563 3564 3565 # Include these first... 3566 # 3567 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3568 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3569 # 3570 # This code is free software; you can redistribute it and/or modify it 3571 # under the terms of the GNU General Public License version 2 only, as 3572 # published by the Free Software Foundation. Oracle designates this 3573 # particular file as subject to the "Classpath" exception as provided 3574 # by Oracle in the LICENSE file that accompanied this code. 3575 # 3576 # This code is distributed in the hope that it will be useful, but WITHOUT 3577 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3578 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3579 # version 2 for more details (a copy is included in the LICENSE file that 3580 # accompanied this code). 3581 # 3582 # You should have received a copy of the GNU General Public License version 3583 # 2 along with this work; if not, write to the Free Software Foundation, 3584 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3585 # 3586 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3587 # or visit www.oracle.com if you need additional information or have any 3588 # questions. 3589 # 3590 3591 # Create a function/macro that takes a series of named arguments. The call is 3592 # similar to AC_DEFUN, but the setup of the function looks like this: 3593 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3594 # ... do something 3595 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3596 # ]) 3597 # A star (*) in front of a named argument means that it is required and it's 3598 # presence will be verified. To pass e.g. the first value as a normal indexed 3599 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3600 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3601 # "ARG_FOO". 3602 # 3603 # The generated function can be called like this: 3604 # MYFUNC(FOO: [foo-val], 3605 # BAR: [ 3606 # $ECHO hello world 3607 # ]) 3608 # Note that the argument value must start on the same line as the argument name. 3609 # 3610 # Argument 1: Name of the function to define 3611 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3612 # Argument 3: Argument array to treat as named, typically $@ 3613 # Argument 4: The main function body 3614 3615 3616 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3617 # If so, then append $1 to $2 \ 3618 # Also set JVM_ARG_OK to true/false depending on outcome. 3619 3620 3621 # Appends a string to a path variable, only adding the : when needed. 3622 3623 3624 # Prepends a string to a path variable, only adding the : when needed. 3625 3626 3627 # This will make sure the given variable points to a full and proper 3628 # path. This means: 3629 # 1) There will be no spaces in the path. On unix platforms, 3630 # spaces in the path will result in an error. On Windows, 3631 # the path will be rewritten using short-style to be space-free. 3632 # 2) The path will be absolute, and it will be in unix-style (on 3633 # cygwin). 3634 # $1: The name of the variable to fix 3635 3636 3637 # This will make sure the given variable points to a executable 3638 # with a full and proper path. This means: 3639 # 1) There will be no spaces in the path. On unix platforms, 3640 # spaces in the path will result in an error. On Windows, 3641 # the path will be rewritten using short-style to be space-free. 3642 # 2) The path will be absolute, and it will be in unix-style (on 3643 # cygwin). 3644 # Any arguments given to the executable is preserved. 3645 # If the input variable does not have a directory specification, then 3646 # it need to be in the PATH. 3647 # $1: The name of the variable to fix 3648 3649 3650 3651 3652 # Register a --with argument but mark it as deprecated 3653 # $1: The name of the with argument to deprecate, not including --with- 3654 3655 3656 # Register a --enable argument but mark it as deprecated 3657 # $1: The name of the with argument to deprecate, not including --enable- 3658 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3659 # $3: Messages to user. 3660 3661 3662 3663 3664 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3665 # $1: variable to check 3666 3667 3668 # Check that there are no unprocessed overridden variables left. 3669 # If so, they are an incorrect argument and we will exit with an error. 3670 3671 3672 # Setup a tool for the given variable. If correctly specified by the user, 3673 # use that value, otherwise search for the tool using the supplied code snippet. 3674 # $1: variable to set 3675 # $2: code snippet to call to look for the tool 3676 # $3: code snippet to call if variable was used to find tool 3677 3678 3679 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3680 # $1: variable to set 3681 # $2: executable name (or list of names) to look for 3682 # $3: [path] 3683 3684 3685 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3686 # $1: variable to set 3687 # $2: executable name (or list of names) to look for 3688 3689 3690 # Like BASIC_PATH_PROGS but fails if no tool was found. 3691 # $1: variable to set 3692 # $2: executable name (or list of names) to look for 3693 # $3: [path] 3694 3695 3696 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3697 # $1: variable to set 3698 # $2: autoconf macro to call to look for the special tool 3699 3700 3701 # Setup the most fundamental tools that relies on not much else to set up, 3702 # but is used by much of the early bootstrap code. 3703 3704 3705 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3706 3707 3708 # Evaluates platform specific overrides for devkit variables. 3709 # $1: Name of variable 3710 3711 3712 3713 3714 3715 3716 #%%% Simple tools %%% 3717 3718 # Check if we have found a usable version of make 3719 # $1: the path to a potential make binary (or empty) 3720 # $2: the description on how we found this 3721 3722 3723 3724 3725 # Goes looking for a usable version of GNU make. 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 # Check if build directory is on local disk. If not possible to determine, 3737 # we prefer to claim it's local. 3738 # Argument 1: directory to test 3739 # Argument 2: what to do if it is on local disk 3740 # Argument 3: what to do otherwise (remote disk or failure) 3741 3742 3743 # Check that source files have basic read permissions set. This might 3744 # not be the case in cygwin in certain conditions. 3745 3746 3747 3748 3749 # Check for support for specific options in bash 3750 3751 3752 ################################################################################ 3753 # 3754 # Default make target 3755 # 3756 3757 3758 # Code to run after AC_OUTPUT 3759 3760 3761 # 3762 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3763 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3764 # 3765 # This code is free software; you can redistribute it and/or modify it 3766 # under the terms of the GNU General Public License version 2 only, as 3767 # published by the Free Software Foundation. Oracle designates this 3768 # particular file as subject to the "Classpath" exception as provided 3769 # by Oracle in the LICENSE file that accompanied this code. 3770 # 3771 # This code is distributed in the hope that it will be useful, but WITHOUT 3772 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3773 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3774 # version 2 for more details (a copy is included in the LICENSE file that 3775 # accompanied this code). 3776 # 3777 # You should have received a copy of the GNU General Public License version 3778 # 2 along with this work; if not, write to the Free Software Foundation, 3779 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3780 # 3781 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3782 # or visit www.oracle.com if you need additional information or have any 3783 # questions. 3784 # 3785 3786 3787 3788 3789 3790 # Helper function which possibly converts a path using DOS-style short mode. 3791 # If so, the updated path is stored in $new_path. 3792 # $1: The path to check 3793 3794 3795 # Helper function which possibly converts a path using DOS-style short mode. 3796 # If so, the updated path is stored in $new_path. 3797 # $1: The path to check 3798 3799 3800 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3801 # and could probably be heavily simplified. However, all changes in this 3802 # area tend to need lot of testing in different scenarios, and in lack of 3803 # proper unit testing, cleaning this up has not been deemed worth the effort 3804 # at the moment. 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3815 3816 3817 3818 3819 # ... then the rest 3820 # 3821 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3822 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3823 # 3824 # This code is free software; you can redistribute it and/or modify it 3825 # under the terms of the GNU General Public License version 2 only, as 3826 # published by the Free Software Foundation. Oracle designates this 3827 # particular file as subject to the "Classpath" exception as provided 3828 # by Oracle in the LICENSE file that accompanied this code. 3829 # 3830 # This code is distributed in the hope that it will be useful, but WITHOUT 3831 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3832 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3833 # version 2 for more details (a copy is included in the LICENSE file that 3834 # accompanied this code). 3835 # 3836 # You should have received a copy of the GNU General Public License version 3837 # 2 along with this work; if not, write to the Free Software Foundation, 3838 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3839 # 3840 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3841 # or visit www.oracle.com if you need additional information or have any 3842 # questions. 3843 # 3844 3845 ######################################################################## 3846 # This file handles detection of the Boot JDK. The Boot JDK detection 3847 # process has been developed as a response to solve a complex real-world 3848 # problem. Initially, it was simple, but it has grown as platform after 3849 # platform, idiosyncracy after idiosyncracy has been supported. 3850 # 3851 # The basic idea is this: 3852 # 1) You need an acceptable *) JDK to use as a Boot JDK 3853 # 2) There are several ways to locate a JDK, that are mostly platform 3854 # dependent **) 3855 # 3) You can have multiple JDKs installed 3856 # 4) If possible, configure should try to dig out an acceptable JDK 3857 # automatically, without having to resort to command-line options 3858 # 3859 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3860 # javac) and not a JRE, etc. 3861 # 3862 # **) On Windows we typically use a well-known path. 3863 # On MacOSX we typically use the tool java_home. 3864 # On Linux we typically find javac in the $PATH, and then follow a 3865 # chain of symlinks that often ends up in a real JDK. 3866 # 3867 # This leads to the code where we check in different ways to locate a 3868 # JDK, and if one is found, check if it is acceptable. If not, we print 3869 # our reasons for rejecting it (useful when debugging non-working 3870 # configure situations) and continue checking the next one. 3871 ######################################################################## 3872 3873 # Execute the check given as argument, and verify the result 3874 # If the Boot JDK was previously found, do nothing 3875 # $1 A command line (typically autoconf macro) to execute 3876 3877 3878 # Test: Is bootjdk explicitly set by command line arguments? 3879 3880 3881 # Test: Is $JAVA_HOME set? 3882 3883 3884 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3885 3886 3887 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3888 # $1: Argument to the java_home binary (optional) 3889 3890 3891 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3892 3893 3894 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3895 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3896 # $1 = Path to directory containing jdk installations. 3897 # $2 = String to append to the found JDK directory to get the proper JDK home 3898 3899 3900 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3901 # environmental variable as base for where to look. 3902 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3903 3904 3905 # Test: Is there a JDK installed in default, well-known locations? 3906 3907 3908 # Check that a command-line tool in the Boot JDK is correct 3909 # $1 = name of variable to assign 3910 # $2 = name of binary 3911 3912 3913 ############################################################################### 3914 # 3915 # We need a Boot JDK to bootstrap the build. 3916 # 3917 3918 3919 3920 3921 3922 # BUILD_JDK: the location of the latest JDK that can run 3923 # on the host system and supports the target class file version 3924 # generated in this JDK build. This variable should only be 3925 # used after the launchers are built. 3926 # 3927 3928 # Execute the check given as argument, and verify the result. 3929 # If the JDK was previously found, do nothing. 3930 # $1 A command line (typically autoconf macro) to execute 3931 3932 3933 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3934 # is different than the host system doing the build (e.g. cross-compilation), 3935 # a special BUILD_JDK is built as part of the build process. An external 3936 # prebuilt BUILD_JDK can also be supplied. 3937 3938 3939 # 3940 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3941 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3942 # 3943 # This code is free software; you can redistribute it and/or modify it 3944 # under the terms of the GNU General Public License version 2 only, as 3945 # published by the Free Software Foundation. Oracle designates this 3946 # particular file as subject to the "Classpath" exception as provided 3947 # by Oracle in the LICENSE file that accompanied this code. 3948 # 3949 # This code is distributed in the hope that it will be useful, but WITHOUT 3950 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3951 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3952 # version 2 for more details (a copy is included in the LICENSE file that 3953 # accompanied this code). 3954 # 3955 # You should have received a copy of the GNU General Public License version 3956 # 2 along with this work; if not, write to the Free Software Foundation, 3957 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3958 # 3959 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3960 # or visit www.oracle.com if you need additional information or have any 3961 # questions. 3962 # 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 ################################################################################ 3981 # 3982 # Runs icecc-create-env once and prints the error if it fails 3983 # 3984 # $1: arguments to icecc-create-env 3985 # $2: log file 3986 # 3987 3988 3989 ################################################################################ 3990 # 3991 # Optionally enable distributed compilation of native code using icecc/icecream 3992 # 3993 3994 3995 3996 3997 3998 3999 4000 # 4001 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4002 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4003 # 4004 # This code is free software; you can redistribute it and/or modify it 4005 # under the terms of the GNU General Public License version 2 only, as 4006 # published by the Free Software Foundation. Oracle designates this 4007 # particular file as subject to the "Classpath" exception as provided 4008 # by Oracle in the LICENSE file that accompanied this code. 4009 # 4010 # This code is distributed in the hope that it will be useful, but WITHOUT 4011 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4012 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4013 # version 2 for more details (a copy is included in the LICENSE file that 4014 # accompanied this code). 4015 # 4016 # You should have received a copy of the GNU General Public License version 4017 # 2 along with this work; if not, write to the Free Software Foundation, 4018 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4019 # 4020 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4021 # or visit www.oracle.com if you need additional information or have any 4022 # questions. 4023 # 4024 4025 ################################################################################ 4026 # 4027 # Setup ABI profile (for arm) 4028 # 4029 4030 4031 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 4032 # corresponding configure arguments instead 4033 4034 4035 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4036 # that configure can use them while detecting compilers. 4037 # TOOLCHAIN_TYPE is available here. 4038 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4039 4040 4041 4042 4043 4044 4045 # Documentation on common flags used for solstudio in HIGHEST. 4046 # 4047 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4048 # done with care, there are some assumptions below that need to 4049 # be understood about the use of pointers, and IEEE behavior. 4050 # 4051 # -fns: Use non-standard floating point mode (not IEEE 754) 4052 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4053 # -fsingle: Use single precision floating point with 'float' 4054 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4055 # (Source with excessing pointer casting and data access with mixed 4056 # pointer types are not recommended) 4057 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4058 # (If you expect perfect errno behavior, do not use this) 4059 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4060 # -xrestrict: Pointer parameters to functions do not overlap 4061 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4062 # If you pass in multiple pointers to the same data, do not use this) 4063 # -xlibmil: Inline some library routines 4064 # (If you expect perfect errno behavior, do not use this) 4065 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4066 # (If you expect perfect errno behavior, do not use this) 4067 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4068 4069 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4070 # Bug? 4071 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4072 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4073 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4074 #fi 4075 4076 4077 4078 4079 4080 4081 ################################################################################ 4082 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4083 # conditionals against. 4084 # $2 - Optional prefix for each variable defined. 4085 4086 4087 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4088 # IF_FALSE: [RUN-IF-FALSE]) 4089 # ------------------------------------------------------------ 4090 # Check that the C compiler supports an argument 4091 4092 4093 4094 4095 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4096 # IF_FALSE: [RUN-IF-FALSE]) 4097 # ------------------------------------------------------------ 4098 # Check that the C++ compiler supports an argument 4099 4100 4101 4102 4103 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4104 # IF_FALSE: [RUN-IF-FALSE]) 4105 # ------------------------------------------------------------ 4106 # Check that the C and C++ compilers support an argument 4107 4108 4109 4110 4111 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4112 # IF_FALSE: [RUN-IF-FALSE]) 4113 # ------------------------------------------------------------ 4114 # Check that the linker support an argument 4115 4116 4117 4118 4119 4120 4121 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX]) 4122 # Arguments: 4123 # $1 - Optional prefix for each variable defined. 4124 4125 4126 # 4127 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4128 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4129 # 4130 # This code is free software; you can redistribute it and/or modify it 4131 # under the terms of the GNU General Public License version 2 only, as 4132 # published by the Free Software Foundation. Oracle designates this 4133 # particular file as subject to the "Classpath" exception as provided 4134 # by Oracle in the LICENSE file that accompanied this code. 4135 # 4136 # This code is distributed in the hope that it will be useful, but WITHOUT 4137 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4138 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4139 # version 2 for more details (a copy is included in the LICENSE file that 4140 # accompanied this code). 4141 # 4142 # You should have received a copy of the GNU General Public License version 4143 # 2 along with this work; if not, write to the Free Software Foundation, 4144 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4145 # 4146 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4147 # or visit www.oracle.com if you need additional information or have any 4148 # questions. 4149 # 4150 4151 4152 4153 4154 4155 cygwin_help() { 4156 case $1 in 4157 unzip) 4158 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4159 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4160 ;; 4161 zip) 4162 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4163 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4164 ;; 4165 make) 4166 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4167 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4168 ;; 4169 freetype) 4170 HELP_MSG=" 4171 The freetype library can now be build during the configure process. 4172 Download the freetype sources and unpack them into an arbitrary directory: 4173 4174 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4175 tar -xzf freetype-2.5.3.tar.gz 4176 4177 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4178 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4179 builds or into '<freetype_src>/lib32' for 32-bit builds. 4180 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4181 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4182 4183 Alternatively you can unpack the sources like this to use the default directory: 4184 4185 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4186 ;; 4187 esac 4188 } 4189 4190 msys_help() { 4191 PKGHANDLER_COMMAND="" 4192 } 4193 4194 apt_help() { 4195 case $1 in 4196 reduced) 4197 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4198 devkit) 4199 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4200 openjdk) 4201 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4202 alsa) 4203 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4204 cups) 4205 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4206 freetype) 4207 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4208 ffi) 4209 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4210 x11) 4211 PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4212 ccache) 4213 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4214 dtrace) 4215 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4216 esac 4217 } 4218 4219 yum_help() { 4220 case $1 in 4221 devkit) 4222 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4223 openjdk) 4224 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4225 alsa) 4226 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4227 cups) 4228 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4229 freetype) 4230 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4231 x11) 4232 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4233 ccache) 4234 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4235 esac 4236 } 4237 4238 brew_help() { 4239 case $1 in 4240 openjdk) 4241 PKGHANDLER_COMMAND="brew cask install java" ;; 4242 freetype) 4243 PKGHANDLER_COMMAND="brew install freetype" ;; 4244 ccache) 4245 PKGHANDLER_COMMAND="brew install ccache" ;; 4246 esac 4247 } 4248 4249 port_help() { 4250 PKGHANDLER_COMMAND="" 4251 } 4252 4253 pkgutil_help() { 4254 PKGHANDLER_COMMAND="" 4255 } 4256 4257 pkgadd_help() { 4258 PKGHANDLER_COMMAND="" 4259 } 4260 4261 # This function will check if we're called from the "configure" wrapper while 4262 # printing --help. If so, we will print out additional information that can 4263 # only be extracted within the autoconf script, and then exit. This must be 4264 # called at the very beginning in configure.ac. 4265 4266 4267 4268 4269 4270 4271 # 4272 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4273 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4274 # 4275 # This code is free software; you can redistribute it and/or modify it 4276 # under the terms of the GNU General Public License version 2 only, as 4277 # published by the Free Software Foundation. Oracle designates this 4278 # particular file as subject to the "Classpath" exception as provided 4279 # by Oracle in the LICENSE file that accompanied this code. 4280 # 4281 # This code is distributed in the hope that it will be useful, but WITHOUT 4282 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4283 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4284 # version 2 for more details (a copy is included in the LICENSE file that 4285 # accompanied this code). 4286 # 4287 # You should have received a copy of the GNU General Public License version 4288 # 2 along with this work; if not, write to the Free Software Foundation, 4289 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4290 # 4291 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4292 # or visit www.oracle.com if you need additional information or have any 4293 # questions. 4294 # 4295 4296 # All valid JVM features, regardless of platform 4297 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \ 4298 graal fprof vm-structs jni-check services management all-gcs nmt cds \ 4299 static-build link-time-opt aot" 4300 4301 # All valid JVM variants 4302 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom" 4303 4304 ############################################################################### 4305 # Check if the specified JVM variant should be built. To be used in shell if 4306 # constructs, like this: 4307 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4308 # 4309 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4310 4311 # Definition kept in one line to allow inlining in if statements. 4312 # Additional [] needed to keep m4 from mangling shell constructs. 4313 4314 4315 ############################################################################### 4316 # Check if the specified JVM features are explicitly enabled. To be used in 4317 # shell if constructs, like this: 4318 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4319 # 4320 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4321 4322 # Definition kept in one line to allow inlining in if statements. 4323 # Additional [] needed to keep m4 from mangling shell constructs. 4324 4325 4326 ############################################################################### 4327 # Check which variants of the JVM that we want to build. Available variants are: 4328 # server: normal interpreter, and a tiered C1/C2 compiler 4329 # client: normal interpreter, and C1 (no C2 compiler) 4330 # minimal: reduced form of client with optional features stripped out 4331 # core: normal interpreter only, no compiler 4332 # zero: C++ based interpreter only, no compiler 4333 # zeroshark: C++ based interpreter, and a llvm-based compiler 4334 # custom: baseline JVM with no default features 4335 # 4336 4337 4338 ############################################################################### 4339 # Check if dtrace should be enabled and has all prerequisites present. 4340 # 4341 4342 4343 ################################################################################ 4344 # Check if AOT should be enabled 4345 # 4346 4347 4348 ############################################################################### 4349 # Set up all JVM features for each JVM variant. 4350 # 4351 4352 4353 ############################################################################### 4354 # Validate JVM features once all setup is complete, including custom setup. 4355 # 4356 4357 4358 ################################################################################ 4359 # 4360 # Specify which sources will be used to build the 64-bit ARM port 4361 # 4362 # --with-cpu-port=arm64 will use hotspot/src/cpu/arm 4363 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64 4364 # 4365 4366 4367 4368 ################################################################################ 4369 # Check if gtest should be built 4370 # 4371 4372 4373 # 4374 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4375 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4376 # 4377 # This code is free software; you can redistribute it and/or modify it 4378 # under the terms of the GNU General Public License version 2 only, as 4379 # published by the Free Software Foundation. Oracle designates this 4380 # particular file as subject to the "Classpath" exception as provided 4381 # by Oracle in the LICENSE file that accompanied this code. 4382 # 4383 # This code is distributed in the hope that it will be useful, but WITHOUT 4384 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4385 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4386 # version 2 for more details (a copy is included in the LICENSE file that 4387 # accompanied this code). 4388 # 4389 # You should have received a copy of the GNU General Public License version 4390 # 2 along with this work; if not, write to the Free Software Foundation, 4391 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4392 # 4393 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4394 # or visit www.oracle.com if you need additional information or have any 4395 # questions. 4396 # 4397 4398 ############################################################################### 4399 # Check which variant of the JDK that we want to build. 4400 # Currently we have: 4401 # normal: standard edition 4402 # but the custom make system may add other variants 4403 # 4404 # Effectively the JDK variant gives a name to a specific set of 4405 # modules to compile into the JDK. 4406 4407 4408 ############################################################################### 4409 # Set the debug level 4410 # release: no debug information, all optimizations, no asserts. 4411 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4412 # fastdebug: debug information (-g), all optimizations, all asserts 4413 # slowdebug: debug information (-g), no optimizations, all asserts 4414 4415 4416 ############################################################################### 4417 # 4418 # Should we build only OpenJDK even if closed sources are present? 4419 # 4420 4421 4422 4423 4424 ############################################################################### 4425 # 4426 # Enable or disable the elliptic curve crypto implementation 4427 # 4428 4429 4430 4431 4432 ################################################################################ 4433 # 4434 # Gcov coverage data for hotspot 4435 # 4436 4437 4438 ################################################################################ 4439 # 4440 # Static build support. When enabled will generate static 4441 # libraries instead of shared libraries for all JDK libs. 4442 # 4443 4444 4445 ################################################################################ 4446 # 4447 # jlink options. 4448 # We always keep packaged modules in JDK image. 4449 # 4450 4451 4452 ################################################################################ 4453 # 4454 # Check if building of the jtreg failure handler should be enabled. 4455 # 4456 4457 4458 ################################################################################ 4459 # 4460 # Enable or disable generation of the classlist at build time 4461 # 4462 4463 4464 # 4465 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. 4466 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4467 # 4468 # This code is free software; you can redistribute it and/or modify it 4469 # under the terms of the GNU General Public License version 2 only, as 4470 # published by the Free Software Foundation. Oracle designates this 4471 # particular file as subject to the "Classpath" exception as provided 4472 # by Oracle in the LICENSE file that accompanied this code. 4473 # 4474 # This code is distributed in the hope that it will be useful, but WITHOUT 4475 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4476 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4477 # version 2 for more details (a copy is included in the LICENSE file that 4478 # accompanied this code). 4479 # 4480 # You should have received a copy of the GNU General Public License version 4481 # 2 along with this work; if not, write to the Free Software Foundation, 4482 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4483 # 4484 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4485 # or visit www.oracle.com if you need additional information or have any 4486 # questions. 4487 # 4488 4489 ############################################################################### 4490 # 4491 # Setup version numbers 4492 # 4493 4494 # Verify that a given string represents a valid version number, and assign it 4495 # to a variable. 4496 4497 # Argument 1: the variable to assign to 4498 # Argument 2: the value given by the user 4499 4500 4501 4502 4503 # 4504 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4505 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4506 # 4507 # This code is free software; you can redistribute it and/or modify it 4508 # under the terms of the GNU General Public License version 2 only, as 4509 # published by the Free Software Foundation. Oracle designates this 4510 # particular file as subject to the "Classpath" exception as provided 4511 # by Oracle in the LICENSE file that accompanied this code. 4512 # 4513 # This code is distributed in the hope that it will be useful, but WITHOUT 4514 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4515 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4516 # version 2 for more details (a copy is included in the LICENSE file that 4517 # accompanied this code). 4518 # 4519 # You should have received a copy of the GNU General Public License version 4520 # 2 along with this work; if not, write to the Free Software Foundation, 4521 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4522 # 4523 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4524 # or visit www.oracle.com if you need additional information or have any 4525 # questions. 4526 # 4527 4528 # Major library component reside in separate files. 4529 # 4530 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4531 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4532 # 4533 # This code is free software; you can redistribute it and/or modify it 4534 # under the terms of the GNU General Public License version 2 only, as 4535 # published by the Free Software Foundation. Oracle designates this 4536 # particular file as subject to the "Classpath" exception as provided 4537 # by Oracle in the LICENSE file that accompanied this code. 4538 # 4539 # This code is distributed in the hope that it will be useful, but WITHOUT 4540 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4541 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4542 # version 2 for more details (a copy is included in the LICENSE file that 4543 # accompanied this code). 4544 # 4545 # You should have received a copy of the GNU General Public License version 4546 # 2 along with this work; if not, write to the Free Software Foundation, 4547 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4548 # 4549 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4550 # or visit www.oracle.com if you need additional information or have any 4551 # questions. 4552 # 4553 4554 ################################################################################ 4555 # Setup alsa (Advanced Linux Sound Architecture) 4556 ################################################################################ 4557 4558 4559 # 4560 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4561 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4562 # 4563 # This code is free software; you can redistribute it and/or modify it 4564 # under the terms of the GNU General Public License version 2 only, as 4565 # published by the Free Software Foundation. Oracle designates this 4566 # particular file as subject to the "Classpath" exception as provided 4567 # by Oracle in the LICENSE file that accompanied this code. 4568 # 4569 # This code is distributed in the hope that it will be useful, but WITHOUT 4570 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4571 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4572 # version 2 for more details (a copy is included in the LICENSE file that 4573 # accompanied this code). 4574 # 4575 # You should have received a copy of the GNU General Public License version 4576 # 2 along with this work; if not, write to the Free Software Foundation, 4577 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4578 # 4579 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4580 # or visit www.oracle.com if you need additional information or have any 4581 # questions. 4582 # 4583 4584 ################################################################################ 4585 # Setup bundled libraries. 4586 # 4587 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4588 # OpenJDK repository. Default is to use these libraries as bundled, but they 4589 # might be replaced by en external version by the user. 4590 ################################################################################ 4591 4592 4593 ################################################################################ 4594 # Setup libjpeg 4595 ################################################################################ 4596 4597 4598 ################################################################################ 4599 # Setup giflib 4600 ################################################################################ 4601 4602 4603 ################################################################################ 4604 # Setup libpng 4605 ################################################################################ 4606 4607 4608 ################################################################################ 4609 # Setup zlib 4610 ################################################################################ 4611 4612 4613 ################################################################################ 4614 # Setup lcms (Little CMS) 4615 ################################################################################ 4616 4617 4618 # 4619 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4620 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4621 # 4622 # This code is free software; you can redistribute it and/or modify it 4623 # under the terms of the GNU General Public License version 2 only, as 4624 # published by the Free Software Foundation. Oracle designates this 4625 # particular file as subject to the "Classpath" exception as provided 4626 # by Oracle in the LICENSE file that accompanied this code. 4627 # 4628 # This code is distributed in the hope that it will be useful, but WITHOUT 4629 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4630 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4631 # version 2 for more details (a copy is included in the LICENSE file that 4632 # accompanied this code). 4633 # 4634 # You should have received a copy of the GNU General Public License version 4635 # 2 along with this work; if not, write to the Free Software Foundation, 4636 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4637 # 4638 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4639 # or visit www.oracle.com if you need additional information or have any 4640 # questions. 4641 # 4642 4643 ################################################################################ 4644 # Setup cups (Common Unix Printing System) 4645 ################################################################################ 4646 4647 4648 # 4649 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4650 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4651 # 4652 # This code is free software; you can redistribute it and/or modify it 4653 # under the terms of the GNU General Public License version 2 only, as 4654 # published by the Free Software Foundation. Oracle designates this 4655 # particular file as subject to the "Classpath" exception as provided 4656 # by Oracle in the LICENSE file that accompanied this code. 4657 # 4658 # This code is distributed in the hope that it will be useful, but WITHOUT 4659 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4660 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4661 # version 2 for more details (a copy is included in the LICENSE file that 4662 # accompanied this code). 4663 # 4664 # You should have received a copy of the GNU General Public License version 4665 # 2 along with this work; if not, write to the Free Software Foundation, 4666 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4667 # 4668 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4669 # or visit www.oracle.com if you need additional information or have any 4670 # questions. 4671 # 4672 4673 ################################################################################ 4674 # Setup libffi (Foreign Function Interface) 4675 ################################################################################ 4676 4677 4678 # 4679 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4680 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4681 # 4682 # This code is free software; you can redistribute it and/or modify it 4683 # under the terms of the GNU General Public License version 2 only, as 4684 # published by the Free Software Foundation. Oracle designates this 4685 # particular file as subject to the "Classpath" exception as provided 4686 # by Oracle in the LICENSE file that accompanied this code. 4687 # 4688 # This code is distributed in the hope that it will be useful, but WITHOUT 4689 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4690 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4691 # version 2 for more details (a copy is included in the LICENSE file that 4692 # accompanied this code). 4693 # 4694 # You should have received a copy of the GNU General Public License version 4695 # 2 along with this work; if not, write to the Free Software Foundation, 4696 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4697 # 4698 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4699 # or visit www.oracle.com if you need additional information or have any 4700 # questions. 4701 # 4702 4703 ################################################################################ 4704 # Build the freetype lib from source 4705 ################################################################################ 4706 4707 4708 ################################################################################ 4709 # Check if a potential freeype library match is correct and usable 4710 ################################################################################ 4711 4712 4713 ################################################################################ 4714 # Setup freetype (The FreeType2 font rendering library) 4715 ################################################################################ 4716 4717 4718 # 4719 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4720 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4721 # 4722 # This code is free software; you can redistribute it and/or modify it 4723 # under the terms of the GNU General Public License version 2 only, as 4724 # published by the Free Software Foundation. Oracle designates this 4725 # particular file as subject to the "Classpath" exception as provided 4726 # by Oracle in the LICENSE file that accompanied this code. 4727 # 4728 # This code is distributed in the hope that it will be useful, but WITHOUT 4729 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4730 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4731 # version 2 for more details (a copy is included in the LICENSE file that 4732 # accompanied this code). 4733 # 4734 # You should have received a copy of the GNU General Public License version 4735 # 2 along with this work; if not, write to the Free Software Foundation, 4736 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4737 # 4738 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4739 # or visit www.oracle.com if you need additional information or have any 4740 # questions. 4741 # 4742 4743 ################################################################################ 4744 # Setup the standard C/C++ runtime libraries. 4745 # 4746 # Most importantly, determine if stdc++ should be linked statically or 4747 # dynamically. 4748 ################################################################################ 4749 4750 4751 # 4752 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4753 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4754 # 4755 # This code is free software; you can redistribute it and/or modify it 4756 # under the terms of the GNU General Public License version 2 only, as 4757 # published by the Free Software Foundation. Oracle designates this 4758 # particular file as subject to the "Classpath" exception as provided 4759 # by Oracle in the LICENSE file that accompanied this code. 4760 # 4761 # This code is distributed in the hope that it will be useful, but WITHOUT 4762 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4763 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4764 # version 2 for more details (a copy is included in the LICENSE file that 4765 # accompanied this code). 4766 # 4767 # You should have received a copy of the GNU General Public License version 4768 # 2 along with this work; if not, write to the Free Software Foundation, 4769 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4770 # 4771 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4772 # or visit www.oracle.com if you need additional information or have any 4773 # questions. 4774 # 4775 4776 ################################################################################ 4777 # Setup X11 Windows system 4778 ################################################################################ 4779 4780 4781 4782 ################################################################################ 4783 # Determine which libraries are needed for this configuration 4784 ################################################################################ 4785 4786 4787 ################################################################################ 4788 # Parse library options, and setup needed libraries 4789 ################################################################################ 4790 4791 4792 ################################################################################ 4793 # Setup llvm (Low-Level VM) 4794 ################################################################################ 4795 4796 4797 ################################################################################ 4798 # Setup various libraries, typically small system libraries 4799 ################################################################################ 4800 4801 4802 ################################################################################ 4803 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4804 # redistribute it in the test image. 4805 ################################################################################ 4806 4807 4808 4809 # 4810 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4811 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4812 # 4813 # This code is free software; you can redistribute it and/or modify it 4814 # under the terms of the GNU General Public License version 2 only, as 4815 # published by the Free Software Foundation. Oracle designates this 4816 # particular file as subject to the "Classpath" exception as provided 4817 # by Oracle in the LICENSE file that accompanied this code. 4818 # 4819 # This code is distributed in the hope that it will be useful, but WITHOUT 4820 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4821 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4822 # version 2 for more details (a copy is included in the LICENSE file that 4823 # accompanied this code). 4824 # 4825 # You should have received a copy of the GNU General Public License version 4826 # 2 along with this work; if not, write to the Free Software Foundation, 4827 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4828 # 4829 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4830 # or visit www.oracle.com if you need additional information or have any 4831 # questions. 4832 # 4833 4834 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4835 # Converts autoconf style CPU name to OpenJDK style, into 4836 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4837 4838 4839 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4840 # Converts autoconf style OS name to OpenJDK style, into 4841 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4842 4843 4844 # Expects $host_os $host_cpu $build_os and $build_cpu 4845 # and $with_target_bits to have been setup! 4846 # 4847 # Translate the standard triplet(quadruplet) definition 4848 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4849 # OPENJDK_BUILD_OS, etc. 4850 4851 4852 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4853 # accordingly. Must be done after setting up build and target system, but before 4854 # doing anything else with these values. 4855 4856 4857 # Setup the legacy variables, for controlling the old makefiles. 4858 # 4859 4860 4861 # $1 - Either TARGET or BUILD to setup the variables for. 4862 4863 4864 4865 4866 4867 4868 #%%% Build and target systems %%% 4869 4870 4871 4872 4873 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4874 # Add -mX to various FLAGS variables. 4875 4876 4877 4878 4879 4880 4881 # 4882 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4883 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4884 # 4885 # This code is free software; you can redistribute it and/or modify it 4886 # under the terms of the GNU General Public License version 2 only, as 4887 # published by the Free Software Foundation. Oracle designates this 4888 # particular file as subject to the "Classpath" exception as provided 4889 # by Oracle in the LICENSE file that accompanied this code. 4890 # 4891 # This code is distributed in the hope that it will be useful, but WITHOUT 4892 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4893 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4894 # version 2 for more details (a copy is included in the LICENSE file that 4895 # accompanied this code). 4896 # 4897 # You should have received a copy of the GNU General Public License version 4898 # 2 along with this work; if not, write to the Free Software Foundation, 4899 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4900 # 4901 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4902 # or visit www.oracle.com if you need additional information or have any 4903 # questions. 4904 # 4905 4906 4907 4908 4909 4910 4911 4912 ################################################################################ 4913 # Define a mechanism for importing extra prebuilt modules 4914 # 4915 4916 4917 4918 # 4919 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4920 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4921 # 4922 # This code is free software; you can redistribute it and/or modify it 4923 # under the terms of the GNU General Public License version 2 only, as 4924 # published by the Free Software Foundation. Oracle designates this 4925 # particular file as subject to the "Classpath" exception as provided 4926 # by Oracle in the LICENSE file that accompanied this code. 4927 # 4928 # This code is distributed in the hope that it will be useful, but WITHOUT 4929 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4930 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4931 # version 2 for more details (a copy is included in the LICENSE file that 4932 # accompanied this code). 4933 # 4934 # You should have received a copy of the GNU General Public License version 4935 # 2 along with this work; if not, write to the Free Software Foundation, 4936 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4937 # 4938 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4939 # or visit www.oracle.com if you need additional information or have any 4940 # questions. 4941 # 4942 4943 ######################################################################## 4944 # This file is responsible for detecting, verifying and setting up the 4945 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4946 # proper paths to the binaries, but it will not setup any flags. 4947 # 4948 # The binaries used is determined by the toolchain type, which is the family of 4949 # compilers and related tools that are used. 4950 ######################################################################## 4951 4952 4953 # All valid toolchains, regardless of platform (used by help.m4) 4954 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4955 4956 # These toolchains are valid on different platforms 4957 VALID_TOOLCHAINS_linux="gcc clang" 4958 VALID_TOOLCHAINS_solaris="solstudio" 4959 VALID_TOOLCHAINS_macosx="gcc clang" 4960 VALID_TOOLCHAINS_aix="xlc" 4961 VALID_TOOLCHAINS_windows="microsoft" 4962 4963 # Toolchain descriptions 4964 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4965 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4966 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4967 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4968 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4969 4970 # Minimum supported versions, empty means unspecified 4971 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 4972 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7" 4973 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010 4974 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13" 4975 TOOLCHAIN_MINIMUM_VERSION_xlc="" 4976 4977 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4978 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4979 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4980 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4981 4982 4983 # Check if the configured compiler (C and C++) is of a specific version or 4984 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4985 # 4986 # Arguments: 4987 # VERSION: The version string to check against the found version 4988 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 4989 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 4990 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 4991 4992 4993 4994 4995 # Setup a number of variables describing how native output files are 4996 # named on this platform/toolchain. 4997 4998 4999 # Determine which toolchain type to use, and make sure it is valid for this 5000 # platform. Setup various information about the selected toolchain. 5001 5002 5003 # Before we start detecting the toolchain executables, we might need some 5004 # special setup, e.g. additional paths etc. 5005 5006 5007 # Restore path, etc 5008 5009 5010 # Check if a compiler is of the toolchain type we expect, and save the version 5011 # information from it. If the compiler does not match the expected type, 5012 # this function will abort using AC_MSG_ERROR. If it matches, the version will 5013 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 5014 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 5015 # 5016 # $1 = compiler to test (CC or CXX) 5017 # $2 = human readable name of compiler (C or C++) 5018 5019 5020 # Try to locate the given C or C++ compiler in the path, or otherwise. 5021 # 5022 # $1 = compiler to test (CC or CXX) 5023 # $2 = human readable name of compiler (C or C++) 5024 # $3 = compiler name to search for 5025 5026 5027 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 5028 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 5029 # archiver (AR). Verify that the compilers are correct according to the 5030 # toolchain type. 5031 5032 5033 # Setup additional tools that is considered a part of the toolchain, but not the 5034 # core part. Many of these are highly platform-specific and do not exist, 5035 # and/or are not needed on all platforms. 5036 5037 5038 # Setup the build tools (i.e, the compiler and linker used to build programs 5039 # that should be run on the build platform, not the target platform, as a build 5040 # helper). Since the non-cross-compile case uses the normal, target compilers 5041 # for this, we can only do this after these have been setup. 5042 5043 5044 # Do some additional checks on the detected tools. 5045 5046 5047 # Setup the JTReg Regression Test Harness. 5048 5049 5050 # Setup the JIB dependency resolver 5051 5052 5053 # 5054 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 5055 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5056 # 5057 # This code is free software; you can redistribute it and/or modify it 5058 # under the terms of the GNU General Public License version 2 only, as 5059 # published by the Free Software Foundation. Oracle designates this 5060 # particular file as subject to the "Classpath" exception as provided 5061 # by Oracle in the LICENSE file that accompanied this code. 5062 # 5063 # This code is distributed in the hope that it will be useful, but WITHOUT 5064 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5065 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5066 # version 2 for more details (a copy is included in the LICENSE file that 5067 # accompanied this code). 5068 # 5069 # You should have received a copy of the GNU General Public License version 5070 # 2 along with this work; if not, write to the Free Software Foundation, 5071 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5072 # 5073 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5074 # or visit www.oracle.com if you need additional information or have any 5075 # questions. 5076 # 5077 5078 ################################################################################ 5079 # The order of these defines the priority by which we try to find them. 5080 VALID_VS_VERSIONS="2013 2012 2010" 5081 5082 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5083 VS_VERSION_INTERNAL_2010=100 5084 VS_MSVCR_2010=msvcr100.dll 5085 # We don't use msvcp on Visual Studio 2010 5086 #VS_MSVCP_2010=msvcp100.dll 5087 VS_ENVVAR_2010="VS100COMNTOOLS" 5088 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5089 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5090 VS_VS_PLATFORM_NAME_2010="v100" 5091 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5092 5093 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5094 VS_VERSION_INTERNAL_2012=110 5095 VS_MSVCR_2012=msvcr110.dll 5096 VS_MSVCP_2012=msvcp110.dll 5097 VS_ENVVAR_2012="VS110COMNTOOLS" 5098 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5099 VS_SDK_INSTALLDIR_2012= 5100 VS_VS_PLATFORM_NAME_2012="v110" 5101 VS_SDK_PLATFORM_NAME_2012= 5102 5103 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5104 VS_VERSION_INTERNAL_2013=120 5105 VS_MSVCR_2013=msvcr120.dll 5106 VS_MSVCP_2013=msvcp120.dll 5107 VS_ENVVAR_2013="VS120COMNTOOLS" 5108 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5109 VS_SDK_INSTALLDIR_2013= 5110 VS_VS_PLATFORM_NAME_2013="v120" 5111 VS_SDK_PLATFORM_NAME_2013= 5112 5113 ################################################################################ 5114 5115 5116 5117 ################################################################################ 5118 5119 5120 5121 ################################################################################ 5122 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5123 # build environment and assigns it to VS_ENV_CMD 5124 5125 5126 ################################################################################ 5127 5128 5129 5130 ################################################################################ 5131 # Check if the VS env variables were setup prior to running configure. 5132 # If not, then find vcvarsall.bat and run it automatically, and integrate 5133 # the set env variables into the spec file. 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 # This line needs to be here, verbatim, after all includes and the dummy hook 5149 # definitions. It is replaced with custom functionality when building 5150 # custom sources. 5151 #CUSTOM_AUTOCONF_INCLUDE 5152 5153 # Do not change or remove the following line, it is needed for consistency checks: 5154 DATE_WHEN_GENERATED=1504187184 5155 5156 ############################################################################### 5157 # 5158 # Initialization / Boot-strapping 5159 # 5160 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5161 # thus it jumps back and forth, each time gaining something needed later on. 5162 # 5163 ############################################################################### 5164 5165 # If we are requested to print additional help, do that and then exit. 5166 # This must be the very first call. 5167 5168 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5169 5170 # Print available toolchains 5171 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5172 $PRINTF "Which are valid to use depends on the build platform.\n" 5173 for toolchain in $VALID_TOOLCHAINS_all; do 5174 # Use indirect variable referencing 5175 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5176 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5177 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5178 done 5179 $PRINTF "\n" 5180 5181 # Print available jvm features 5182 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5183 $PRINTF "Which are valid to use depends on the target platform.\n " 5184 $PRINTF "%s " $VALID_JVM_FEATURES 5185 $PRINTF "\n" 5186 5187 # And now exit directly 5188 exit 0 5189 fi 5190 5191 5192 # Basic initialization that must happen first of all in the normal process. 5193 5194 # Save the original command line. This is passed to us by the wrapper configure script. 5195 5196 # Save the path variable before it gets changed 5197 ORIGINAL_PATH="$PATH" 5198 5199 DATE_WHEN_CONFIGURED=`LANG=C date` 5200 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5202 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5204 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5205 5206 5207 # Start with tools that do not need have cross compilation support 5208 # and can be expected to be found in the default PATH. These tools are 5209 # used by configure. 5210 5211 # First are all the simple required tools. 5212 5213 5214 5215 # Publish this variable in the help. 5216 5217 5218 if [ -z "${BASENAME+x}" ]; then 5219 # The variable is not set by user, try to locate tool using the code snippet 5220 for ac_prog in basename 5221 do 5222 # Extract the first word of "$ac_prog", so it can be a program name with args. 5223 set dummy $ac_prog; ac_word=$2 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5225 $as_echo_n "checking for $ac_word... " >&6; } 5226 if ${ac_cv_path_BASENAME+:} false; then : 5227 $as_echo_n "(cached) " >&6 5228 else 5229 case $BASENAME in 5230 [\\/]* | ?:[\\/]*) 5231 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5232 ;; 5233 *) 5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5235 for as_dir in $PATH 5236 do 5237 IFS=$as_save_IFS 5238 test -z "$as_dir" && as_dir=. 5239 for ac_exec_ext in '' $ac_executable_extensions; do 5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5241 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5243 break 2 5244 fi 5245 done 5246 done 5247 IFS=$as_save_IFS 5248 5249 ;; 5250 esac 5251 fi 5252 BASENAME=$ac_cv_path_BASENAME 5253 if test -n "$BASENAME"; then 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5255 $as_echo "$BASENAME" >&6; } 5256 else 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5258 $as_echo "no" >&6; } 5259 fi 5260 5261 5262 test -n "$BASENAME" && break 5263 done 5264 5265 else 5266 # The variable is set, but is it from the command line or the environment? 5267 5268 # Try to remove the string !BASENAME! from our list. 5269 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5270 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5271 # If it failed, the variable was not from the command line. Ignore it, 5272 # but warn the user (except for BASH, which is always set by the calling BASH). 5273 if test "xBASENAME" != xBASH; then 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5275 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5276 fi 5277 # Try to locate tool using the code snippet 5278 for ac_prog in basename 5279 do 5280 # Extract the first word of "$ac_prog", so it can be a program name with args. 5281 set dummy $ac_prog; ac_word=$2 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5283 $as_echo_n "checking for $ac_word... " >&6; } 5284 if ${ac_cv_path_BASENAME+:} false; then : 5285 $as_echo_n "(cached) " >&6 5286 else 5287 case $BASENAME in 5288 [\\/]* | ?:[\\/]*) 5289 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5290 ;; 5291 *) 5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5293 for as_dir in $PATH 5294 do 5295 IFS=$as_save_IFS 5296 test -z "$as_dir" && as_dir=. 5297 for ac_exec_ext in '' $ac_executable_extensions; do 5298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5299 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5301 break 2 5302 fi 5303 done 5304 done 5305 IFS=$as_save_IFS 5306 5307 ;; 5308 esac 5309 fi 5310 BASENAME=$ac_cv_path_BASENAME 5311 if test -n "$BASENAME"; then 5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5313 $as_echo "$BASENAME" >&6; } 5314 else 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5316 $as_echo "no" >&6; } 5317 fi 5318 5319 5320 test -n "$BASENAME" && break 5321 done 5322 5323 else 5324 # If it succeeded, then it was overridden by the user. We will use it 5325 # for the tool. 5326 5327 # First remove it from the list of overridden variables, so we can test 5328 # for unknown variables in the end. 5329 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5330 5331 # Check if we try to supply an empty value 5332 if test "x$BASENAME" = x; then 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5334 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5336 $as_echo_n "checking for BASENAME... " >&6; } 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5338 $as_echo "disabled" >&6; } 5339 else 5340 # Check if the provided tool contains a complete path. 5341 tool_specified="$BASENAME" 5342 tool_basename="${tool_specified##*/}" 5343 if test "x$tool_basename" = "x$tool_specified"; then 5344 # A command without a complete path is provided, search $PATH. 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5346 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5347 # Extract the first word of "$tool_basename", so it can be a program name with args. 5348 set dummy $tool_basename; ac_word=$2 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5350 $as_echo_n "checking for $ac_word... " >&6; } 5351 if ${ac_cv_path_BASENAME+:} false; then : 5352 $as_echo_n "(cached) " >&6 5353 else 5354 case $BASENAME in 5355 [\\/]* | ?:[\\/]*) 5356 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5357 ;; 5358 *) 5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5360 for as_dir in $PATH 5361 do 5362 IFS=$as_save_IFS 5363 test -z "$as_dir" && as_dir=. 5364 for ac_exec_ext in '' $ac_executable_extensions; do 5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5366 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5368 break 2 5369 fi 5370 done 5371 done 5372 IFS=$as_save_IFS 5373 5374 ;; 5375 esac 5376 fi 5377 BASENAME=$ac_cv_path_BASENAME 5378 if test -n "$BASENAME"; then 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5380 $as_echo "$BASENAME" >&6; } 5381 else 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5383 $as_echo "no" >&6; } 5384 fi 5385 5386 5387 if test "x$BASENAME" = x; then 5388 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5389 fi 5390 else 5391 # Otherwise we believe it is a complete path. Use it as it is. 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5393 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5395 $as_echo_n "checking for BASENAME... " >&6; } 5396 if test ! -x "$tool_specified"; then 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5398 $as_echo "not found" >&6; } 5399 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5400 fi 5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5402 $as_echo "$tool_specified" >&6; } 5403 fi 5404 fi 5405 fi 5406 5407 fi 5408 5409 5410 5411 if test "x$BASENAME" = x; then 5412 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5413 fi 5414 5415 5416 5417 5418 5419 # Publish this variable in the help. 5420 5421 5422 if [ -z "${BASH+x}" ]; then 5423 # The variable is not set by user, try to locate tool using the code snippet 5424 for ac_prog in bash 5425 do 5426 # Extract the first word of "$ac_prog", so it can be a program name with args. 5427 set dummy $ac_prog; ac_word=$2 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5429 $as_echo_n "checking for $ac_word... " >&6; } 5430 if ${ac_cv_path_BASH+:} false; then : 5431 $as_echo_n "(cached) " >&6 5432 else 5433 case $BASH in 5434 [\\/]* | ?:[\\/]*) 5435 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5436 ;; 5437 *) 5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5439 for as_dir in $PATH 5440 do 5441 IFS=$as_save_IFS 5442 test -z "$as_dir" && as_dir=. 5443 for ac_exec_ext in '' $ac_executable_extensions; do 5444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5445 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5447 break 2 5448 fi 5449 done 5450 done 5451 IFS=$as_save_IFS 5452 5453 ;; 5454 esac 5455 fi 5456 BASH=$ac_cv_path_BASH 5457 if test -n "$BASH"; then 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5459 $as_echo "$BASH" >&6; } 5460 else 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5462 $as_echo "no" >&6; } 5463 fi 5464 5465 5466 test -n "$BASH" && break 5467 done 5468 5469 else 5470 # The variable is set, but is it from the command line or the environment? 5471 5472 # Try to remove the string !BASH! from our list. 5473 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5474 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5475 # If it failed, the variable was not from the command line. Ignore it, 5476 # but warn the user (except for BASH, which is always set by the calling BASH). 5477 if test "xBASH" != xBASH; then 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5479 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5480 fi 5481 # Try to locate tool using the code snippet 5482 for ac_prog in bash 5483 do 5484 # Extract the first word of "$ac_prog", so it can be a program name with args. 5485 set dummy $ac_prog; ac_word=$2 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5487 $as_echo_n "checking for $ac_word... " >&6; } 5488 if ${ac_cv_path_BASH+:} false; then : 5489 $as_echo_n "(cached) " >&6 5490 else 5491 case $BASH in 5492 [\\/]* | ?:[\\/]*) 5493 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5494 ;; 5495 *) 5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5497 for as_dir in $PATH 5498 do 5499 IFS=$as_save_IFS 5500 test -z "$as_dir" && as_dir=. 5501 for ac_exec_ext in '' $ac_executable_extensions; do 5502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5503 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5505 break 2 5506 fi 5507 done 5508 done 5509 IFS=$as_save_IFS 5510 5511 ;; 5512 esac 5513 fi 5514 BASH=$ac_cv_path_BASH 5515 if test -n "$BASH"; then 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5517 $as_echo "$BASH" >&6; } 5518 else 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5520 $as_echo "no" >&6; } 5521 fi 5522 5523 5524 test -n "$BASH" && break 5525 done 5526 5527 else 5528 # If it succeeded, then it was overridden by the user. We will use it 5529 # for the tool. 5530 5531 # First remove it from the list of overridden variables, so we can test 5532 # for unknown variables in the end. 5533 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5534 5535 # Check if we try to supply an empty value 5536 if test "x$BASH" = x; then 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5538 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5540 $as_echo_n "checking for BASH... " >&6; } 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5542 $as_echo "disabled" >&6; } 5543 else 5544 # Check if the provided tool contains a complete path. 5545 tool_specified="$BASH" 5546 tool_basename="${tool_specified##*/}" 5547 if test "x$tool_basename" = "x$tool_specified"; then 5548 # A command without a complete path is provided, search $PATH. 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5550 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5551 # Extract the first word of "$tool_basename", so it can be a program name with args. 5552 set dummy $tool_basename; ac_word=$2 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5554 $as_echo_n "checking for $ac_word... " >&6; } 5555 if ${ac_cv_path_BASH+:} false; then : 5556 $as_echo_n "(cached) " >&6 5557 else 5558 case $BASH in 5559 [\\/]* | ?:[\\/]*) 5560 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5561 ;; 5562 *) 5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5564 for as_dir in $PATH 5565 do 5566 IFS=$as_save_IFS 5567 test -z "$as_dir" && as_dir=. 5568 for ac_exec_ext in '' $ac_executable_extensions; do 5569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5570 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5572 break 2 5573 fi 5574 done 5575 done 5576 IFS=$as_save_IFS 5577 5578 ;; 5579 esac 5580 fi 5581 BASH=$ac_cv_path_BASH 5582 if test -n "$BASH"; then 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5584 $as_echo "$BASH" >&6; } 5585 else 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5587 $as_echo "no" >&6; } 5588 fi 5589 5590 5591 if test "x$BASH" = x; then 5592 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5593 fi 5594 else 5595 # Otherwise we believe it is a complete path. Use it as it is. 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5597 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5599 $as_echo_n "checking for BASH... " >&6; } 5600 if test ! -x "$tool_specified"; then 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5602 $as_echo "not found" >&6; } 5603 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5604 fi 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5606 $as_echo "$tool_specified" >&6; } 5607 fi 5608 fi 5609 fi 5610 5611 fi 5612 5613 5614 5615 if test "x$BASH" = x; then 5616 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5617 fi 5618 5619 5620 5621 5622 5623 # Publish this variable in the help. 5624 5625 5626 if [ -z "${CAT+x}" ]; then 5627 # The variable is not set by user, try to locate tool using the code snippet 5628 for ac_prog in cat 5629 do 5630 # Extract the first word of "$ac_prog", so it can be a program name with args. 5631 set dummy $ac_prog; ac_word=$2 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5633 $as_echo_n "checking for $ac_word... " >&6; } 5634 if ${ac_cv_path_CAT+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636 else 5637 case $CAT in 5638 [\\/]* | ?:[\\/]*) 5639 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5640 ;; 5641 *) 5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5643 for as_dir in $PATH 5644 do 5645 IFS=$as_save_IFS 5646 test -z "$as_dir" && as_dir=. 5647 for ac_exec_ext in '' $ac_executable_extensions; do 5648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5649 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5651 break 2 5652 fi 5653 done 5654 done 5655 IFS=$as_save_IFS 5656 5657 ;; 5658 esac 5659 fi 5660 CAT=$ac_cv_path_CAT 5661 if test -n "$CAT"; then 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5663 $as_echo "$CAT" >&6; } 5664 else 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5666 $as_echo "no" >&6; } 5667 fi 5668 5669 5670 test -n "$CAT" && break 5671 done 5672 5673 else 5674 # The variable is set, but is it from the command line or the environment? 5675 5676 # Try to remove the string !CAT! from our list. 5677 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5678 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5679 # If it failed, the variable was not from the command line. Ignore it, 5680 # but warn the user (except for BASH, which is always set by the calling BASH). 5681 if test "xCAT" != xBASH; then 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5683 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5684 fi 5685 # Try to locate tool using the code snippet 5686 for ac_prog in cat 5687 do 5688 # Extract the first word of "$ac_prog", so it can be a program name with args. 5689 set dummy $ac_prog; ac_word=$2 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5691 $as_echo_n "checking for $ac_word... " >&6; } 5692 if ${ac_cv_path_CAT+:} false; then : 5693 $as_echo_n "(cached) " >&6 5694 else 5695 case $CAT in 5696 [\\/]* | ?:[\\/]*) 5697 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5698 ;; 5699 *) 5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5701 for as_dir in $PATH 5702 do 5703 IFS=$as_save_IFS 5704 test -z "$as_dir" && as_dir=. 5705 for ac_exec_ext in '' $ac_executable_extensions; do 5706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5707 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5709 break 2 5710 fi 5711 done 5712 done 5713 IFS=$as_save_IFS 5714 5715 ;; 5716 esac 5717 fi 5718 CAT=$ac_cv_path_CAT 5719 if test -n "$CAT"; then 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5721 $as_echo "$CAT" >&6; } 5722 else 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5724 $as_echo "no" >&6; } 5725 fi 5726 5727 5728 test -n "$CAT" && break 5729 done 5730 5731 else 5732 # If it succeeded, then it was overridden by the user. We will use it 5733 # for the tool. 5734 5735 # First remove it from the list of overridden variables, so we can test 5736 # for unknown variables in the end. 5737 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5738 5739 # Check if we try to supply an empty value 5740 if test "x$CAT" = x; then 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5742 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5744 $as_echo_n "checking for CAT... " >&6; } 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5746 $as_echo "disabled" >&6; } 5747 else 5748 # Check if the provided tool contains a complete path. 5749 tool_specified="$CAT" 5750 tool_basename="${tool_specified##*/}" 5751 if test "x$tool_basename" = "x$tool_specified"; then 5752 # A command without a complete path is provided, search $PATH. 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5754 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5755 # Extract the first word of "$tool_basename", so it can be a program name with args. 5756 set dummy $tool_basename; ac_word=$2 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758 $as_echo_n "checking for $ac_word... " >&6; } 5759 if ${ac_cv_path_CAT+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761 else 5762 case $CAT in 5763 [\\/]* | ?:[\\/]*) 5764 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5765 ;; 5766 *) 5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768 for as_dir in $PATH 5769 do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5774 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778 done 5779 done 5780 IFS=$as_save_IFS 5781 5782 ;; 5783 esac 5784 fi 5785 CAT=$ac_cv_path_CAT 5786 if test -n "$CAT"; then 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5788 $as_echo "$CAT" >&6; } 5789 else 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5791 $as_echo "no" >&6; } 5792 fi 5793 5794 5795 if test "x$CAT" = x; then 5796 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5797 fi 5798 else 5799 # Otherwise we believe it is a complete path. Use it as it is. 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5801 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5803 $as_echo_n "checking for CAT... " >&6; } 5804 if test ! -x "$tool_specified"; then 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5806 $as_echo "not found" >&6; } 5807 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5808 fi 5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5810 $as_echo "$tool_specified" >&6; } 5811 fi 5812 fi 5813 fi 5814 5815 fi 5816 5817 5818 5819 if test "x$CAT" = x; then 5820 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5821 fi 5822 5823 5824 5825 5826 5827 # Publish this variable in the help. 5828 5829 5830 if [ -z "${CHMOD+x}" ]; then 5831 # The variable is not set by user, try to locate tool using the code snippet 5832 for ac_prog in chmod 5833 do 5834 # Extract the first word of "$ac_prog", so it can be a program name with args. 5835 set dummy $ac_prog; ac_word=$2 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5837 $as_echo_n "checking for $ac_word... " >&6; } 5838 if ${ac_cv_path_CHMOD+:} false; then : 5839 $as_echo_n "(cached) " >&6 5840 else 5841 case $CHMOD in 5842 [\\/]* | ?:[\\/]*) 5843 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5844 ;; 5845 *) 5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5847 for as_dir in $PATH 5848 do 5849 IFS=$as_save_IFS 5850 test -z "$as_dir" && as_dir=. 5851 for ac_exec_ext in '' $ac_executable_extensions; do 5852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5853 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5855 break 2 5856 fi 5857 done 5858 done 5859 IFS=$as_save_IFS 5860 5861 ;; 5862 esac 5863 fi 5864 CHMOD=$ac_cv_path_CHMOD 5865 if test -n "$CHMOD"; then 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5867 $as_echo "$CHMOD" >&6; } 5868 else 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5870 $as_echo "no" >&6; } 5871 fi 5872 5873 5874 test -n "$CHMOD" && break 5875 done 5876 5877 else 5878 # The variable is set, but is it from the command line or the environment? 5879 5880 # Try to remove the string !CHMOD! from our list. 5881 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5882 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5883 # If it failed, the variable was not from the command line. Ignore it, 5884 # but warn the user (except for BASH, which is always set by the calling BASH). 5885 if test "xCHMOD" != xBASH; then 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5887 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5888 fi 5889 # Try to locate tool using the code snippet 5890 for ac_prog in chmod 5891 do 5892 # Extract the first word of "$ac_prog", so it can be a program name with args. 5893 set dummy $ac_prog; ac_word=$2 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5895 $as_echo_n "checking for $ac_word... " >&6; } 5896 if ${ac_cv_path_CHMOD+:} false; then : 5897 $as_echo_n "(cached) " >&6 5898 else 5899 case $CHMOD in 5900 [\\/]* | ?:[\\/]*) 5901 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5902 ;; 5903 *) 5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5905 for as_dir in $PATH 5906 do 5907 IFS=$as_save_IFS 5908 test -z "$as_dir" && as_dir=. 5909 for ac_exec_ext in '' $ac_executable_extensions; do 5910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5911 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5913 break 2 5914 fi 5915 done 5916 done 5917 IFS=$as_save_IFS 5918 5919 ;; 5920 esac 5921 fi 5922 CHMOD=$ac_cv_path_CHMOD 5923 if test -n "$CHMOD"; then 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5925 $as_echo "$CHMOD" >&6; } 5926 else 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5928 $as_echo "no" >&6; } 5929 fi 5930 5931 5932 test -n "$CHMOD" && break 5933 done 5934 5935 else 5936 # If it succeeded, then it was overridden by the user. We will use it 5937 # for the tool. 5938 5939 # First remove it from the list of overridden variables, so we can test 5940 # for unknown variables in the end. 5941 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5942 5943 # Check if we try to supply an empty value 5944 if test "x$CHMOD" = x; then 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5946 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5948 $as_echo_n "checking for CHMOD... " >&6; } 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5950 $as_echo "disabled" >&6; } 5951 else 5952 # Check if the provided tool contains a complete path. 5953 tool_specified="$CHMOD" 5954 tool_basename="${tool_specified##*/}" 5955 if test "x$tool_basename" = "x$tool_specified"; then 5956 # A command without a complete path is provided, search $PATH. 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5958 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5959 # Extract the first word of "$tool_basename", so it can be a program name with args. 5960 set dummy $tool_basename; ac_word=$2 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5962 $as_echo_n "checking for $ac_word... " >&6; } 5963 if ${ac_cv_path_CHMOD+:} false; then : 5964 $as_echo_n "(cached) " >&6 5965 else 5966 case $CHMOD in 5967 [\\/]* | ?:[\\/]*) 5968 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5969 ;; 5970 *) 5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5972 for as_dir in $PATH 5973 do 5974 IFS=$as_save_IFS 5975 test -z "$as_dir" && as_dir=. 5976 for ac_exec_ext in '' $ac_executable_extensions; do 5977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5978 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5980 break 2 5981 fi 5982 done 5983 done 5984 IFS=$as_save_IFS 5985 5986 ;; 5987 esac 5988 fi 5989 CHMOD=$ac_cv_path_CHMOD 5990 if test -n "$CHMOD"; then 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5992 $as_echo "$CHMOD" >&6; } 5993 else 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5995 $as_echo "no" >&6; } 5996 fi 5997 5998 5999 if test "x$CHMOD" = x; then 6000 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6001 fi 6002 else 6003 # Otherwise we believe it is a complete path. Use it as it is. 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 6005 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 6007 $as_echo_n "checking for CHMOD... " >&6; } 6008 if test ! -x "$tool_specified"; then 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6010 $as_echo "not found" >&6; } 6011 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 6012 fi 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6014 $as_echo "$tool_specified" >&6; } 6015 fi 6016 fi 6017 fi 6018 6019 fi 6020 6021 6022 6023 if test "x$CHMOD" = x; then 6024 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 6025 fi 6026 6027 6028 6029 6030 6031 # Publish this variable in the help. 6032 6033 6034 if [ -z "${CMP+x}" ]; then 6035 # The variable is not set by user, try to locate tool using the code snippet 6036 for ac_prog in cmp 6037 do 6038 # Extract the first word of "$ac_prog", so it can be a program name with args. 6039 set dummy $ac_prog; ac_word=$2 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6041 $as_echo_n "checking for $ac_word... " >&6; } 6042 if ${ac_cv_path_CMP+:} false; then : 6043 $as_echo_n "(cached) " >&6 6044 else 6045 case $CMP in 6046 [\\/]* | ?:[\\/]*) 6047 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6048 ;; 6049 *) 6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6051 for as_dir in $PATH 6052 do 6053 IFS=$as_save_IFS 6054 test -z "$as_dir" && as_dir=. 6055 for ac_exec_ext in '' $ac_executable_extensions; do 6056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6057 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6059 break 2 6060 fi 6061 done 6062 done 6063 IFS=$as_save_IFS 6064 6065 ;; 6066 esac 6067 fi 6068 CMP=$ac_cv_path_CMP 6069 if test -n "$CMP"; then 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6071 $as_echo "$CMP" >&6; } 6072 else 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6074 $as_echo "no" >&6; } 6075 fi 6076 6077 6078 test -n "$CMP" && break 6079 done 6080 6081 else 6082 # The variable is set, but is it from the command line or the environment? 6083 6084 # Try to remove the string !CMP! from our list. 6085 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6086 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6087 # If it failed, the variable was not from the command line. Ignore it, 6088 # but warn the user (except for BASH, which is always set by the calling BASH). 6089 if test "xCMP" != xBASH; then 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6091 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6092 fi 6093 # Try to locate tool using the code snippet 6094 for ac_prog in cmp 6095 do 6096 # Extract the first word of "$ac_prog", so it can be a program name with args. 6097 set dummy $ac_prog; ac_word=$2 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6099 $as_echo_n "checking for $ac_word... " >&6; } 6100 if ${ac_cv_path_CMP+:} false; then : 6101 $as_echo_n "(cached) " >&6 6102 else 6103 case $CMP in 6104 [\\/]* | ?:[\\/]*) 6105 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6106 ;; 6107 *) 6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6109 for as_dir in $PATH 6110 do 6111 IFS=$as_save_IFS 6112 test -z "$as_dir" && as_dir=. 6113 for ac_exec_ext in '' $ac_executable_extensions; do 6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6115 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6117 break 2 6118 fi 6119 done 6120 done 6121 IFS=$as_save_IFS 6122 6123 ;; 6124 esac 6125 fi 6126 CMP=$ac_cv_path_CMP 6127 if test -n "$CMP"; then 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6129 $as_echo "$CMP" >&6; } 6130 else 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6132 $as_echo "no" >&6; } 6133 fi 6134 6135 6136 test -n "$CMP" && break 6137 done 6138 6139 else 6140 # If it succeeded, then it was overridden by the user. We will use it 6141 # for the tool. 6142 6143 # First remove it from the list of overridden variables, so we can test 6144 # for unknown variables in the end. 6145 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6146 6147 # Check if we try to supply an empty value 6148 if test "x$CMP" = x; then 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6150 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6152 $as_echo_n "checking for CMP... " >&6; } 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6154 $as_echo "disabled" >&6; } 6155 else 6156 # Check if the provided tool contains a complete path. 6157 tool_specified="$CMP" 6158 tool_basename="${tool_specified##*/}" 6159 if test "x$tool_basename" = "x$tool_specified"; then 6160 # A command without a complete path is provided, search $PATH. 6161 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6162 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6163 # Extract the first word of "$tool_basename", so it can be a program name with args. 6164 set dummy $tool_basename; ac_word=$2 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6166 $as_echo_n "checking for $ac_word... " >&6; } 6167 if ${ac_cv_path_CMP+:} false; then : 6168 $as_echo_n "(cached) " >&6 6169 else 6170 case $CMP in 6171 [\\/]* | ?:[\\/]*) 6172 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6173 ;; 6174 *) 6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6176 for as_dir in $PATH 6177 do 6178 IFS=$as_save_IFS 6179 test -z "$as_dir" && as_dir=. 6180 for ac_exec_ext in '' $ac_executable_extensions; do 6181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6182 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6184 break 2 6185 fi 6186 done 6187 done 6188 IFS=$as_save_IFS 6189 6190 ;; 6191 esac 6192 fi 6193 CMP=$ac_cv_path_CMP 6194 if test -n "$CMP"; then 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6196 $as_echo "$CMP" >&6; } 6197 else 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6199 $as_echo "no" >&6; } 6200 fi 6201 6202 6203 if test "x$CMP" = x; then 6204 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6205 fi 6206 else 6207 # Otherwise we believe it is a complete path. Use it as it is. 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6209 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6211 $as_echo_n "checking for CMP... " >&6; } 6212 if test ! -x "$tool_specified"; then 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6214 $as_echo "not found" >&6; } 6215 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6216 fi 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6218 $as_echo "$tool_specified" >&6; } 6219 fi 6220 fi 6221 fi 6222 6223 fi 6224 6225 6226 6227 if test "x$CMP" = x; then 6228 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6229 fi 6230 6231 6232 6233 6234 6235 # Publish this variable in the help. 6236 6237 6238 if [ -z "${COMM+x}" ]; then 6239 # The variable is not set by user, try to locate tool using the code snippet 6240 for ac_prog in comm 6241 do 6242 # Extract the first word of "$ac_prog", so it can be a program name with args. 6243 set dummy $ac_prog; ac_word=$2 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6245 $as_echo_n "checking for $ac_word... " >&6; } 6246 if ${ac_cv_path_COMM+:} false; then : 6247 $as_echo_n "(cached) " >&6 6248 else 6249 case $COMM in 6250 [\\/]* | ?:[\\/]*) 6251 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6252 ;; 6253 *) 6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6255 for as_dir in $PATH 6256 do 6257 IFS=$as_save_IFS 6258 test -z "$as_dir" && as_dir=. 6259 for ac_exec_ext in '' $ac_executable_extensions; do 6260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6261 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6263 break 2 6264 fi 6265 done 6266 done 6267 IFS=$as_save_IFS 6268 6269 ;; 6270 esac 6271 fi 6272 COMM=$ac_cv_path_COMM 6273 if test -n "$COMM"; then 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6275 $as_echo "$COMM" >&6; } 6276 else 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6278 $as_echo "no" >&6; } 6279 fi 6280 6281 6282 test -n "$COMM" && break 6283 done 6284 6285 else 6286 # The variable is set, but is it from the command line or the environment? 6287 6288 # Try to remove the string !COMM! from our list. 6289 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6290 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6291 # If it failed, the variable was not from the command line. Ignore it, 6292 # but warn the user (except for BASH, which is always set by the calling BASH). 6293 if test "xCOMM" != xBASH; then 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6295 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6296 fi 6297 # Try to locate tool using the code snippet 6298 for ac_prog in comm 6299 do 6300 # Extract the first word of "$ac_prog", so it can be a program name with args. 6301 set dummy $ac_prog; ac_word=$2 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6303 $as_echo_n "checking for $ac_word... " >&6; } 6304 if ${ac_cv_path_COMM+:} false; then : 6305 $as_echo_n "(cached) " >&6 6306 else 6307 case $COMM in 6308 [\\/]* | ?:[\\/]*) 6309 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6310 ;; 6311 *) 6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6313 for as_dir in $PATH 6314 do 6315 IFS=$as_save_IFS 6316 test -z "$as_dir" && as_dir=. 6317 for ac_exec_ext in '' $ac_executable_extensions; do 6318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6319 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6321 break 2 6322 fi 6323 done 6324 done 6325 IFS=$as_save_IFS 6326 6327 ;; 6328 esac 6329 fi 6330 COMM=$ac_cv_path_COMM 6331 if test -n "$COMM"; then 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6333 $as_echo "$COMM" >&6; } 6334 else 6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6336 $as_echo "no" >&6; } 6337 fi 6338 6339 6340 test -n "$COMM" && break 6341 done 6342 6343 else 6344 # If it succeeded, then it was overridden by the user. We will use it 6345 # for the tool. 6346 6347 # First remove it from the list of overridden variables, so we can test 6348 # for unknown variables in the end. 6349 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6350 6351 # Check if we try to supply an empty value 6352 if test "x$COMM" = x; then 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6354 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6356 $as_echo_n "checking for COMM... " >&6; } 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6358 $as_echo "disabled" >&6; } 6359 else 6360 # Check if the provided tool contains a complete path. 6361 tool_specified="$COMM" 6362 tool_basename="${tool_specified##*/}" 6363 if test "x$tool_basename" = "x$tool_specified"; then 6364 # A command without a complete path is provided, search $PATH. 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6366 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6367 # Extract the first word of "$tool_basename", so it can be a program name with args. 6368 set dummy $tool_basename; ac_word=$2 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6370 $as_echo_n "checking for $ac_word... " >&6; } 6371 if ${ac_cv_path_COMM+:} false; then : 6372 $as_echo_n "(cached) " >&6 6373 else 6374 case $COMM in 6375 [\\/]* | ?:[\\/]*) 6376 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6377 ;; 6378 *) 6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6380 for as_dir in $PATH 6381 do 6382 IFS=$as_save_IFS 6383 test -z "$as_dir" && as_dir=. 6384 for ac_exec_ext in '' $ac_executable_extensions; do 6385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6386 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6388 break 2 6389 fi 6390 done 6391 done 6392 IFS=$as_save_IFS 6393 6394 ;; 6395 esac 6396 fi 6397 COMM=$ac_cv_path_COMM 6398 if test -n "$COMM"; then 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6400 $as_echo "$COMM" >&6; } 6401 else 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6403 $as_echo "no" >&6; } 6404 fi 6405 6406 6407 if test "x$COMM" = x; then 6408 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6409 fi 6410 else 6411 # Otherwise we believe it is a complete path. Use it as it is. 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6413 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6415 $as_echo_n "checking for COMM... " >&6; } 6416 if test ! -x "$tool_specified"; then 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6418 $as_echo "not found" >&6; } 6419 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6420 fi 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6422 $as_echo "$tool_specified" >&6; } 6423 fi 6424 fi 6425 fi 6426 6427 fi 6428 6429 6430 6431 if test "x$COMM" = x; then 6432 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6433 fi 6434 6435 6436 6437 6438 6439 # Publish this variable in the help. 6440 6441 6442 if [ -z "${CP+x}" ]; then 6443 # The variable is not set by user, try to locate tool using the code snippet 6444 for ac_prog in cp 6445 do 6446 # Extract the first word of "$ac_prog", so it can be a program name with args. 6447 set dummy $ac_prog; ac_word=$2 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6449 $as_echo_n "checking for $ac_word... " >&6; } 6450 if ${ac_cv_path_CP+:} false; then : 6451 $as_echo_n "(cached) " >&6 6452 else 6453 case $CP in 6454 [\\/]* | ?:[\\/]*) 6455 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6456 ;; 6457 *) 6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6459 for as_dir in $PATH 6460 do 6461 IFS=$as_save_IFS 6462 test -z "$as_dir" && as_dir=. 6463 for ac_exec_ext in '' $ac_executable_extensions; do 6464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6465 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6467 break 2 6468 fi 6469 done 6470 done 6471 IFS=$as_save_IFS 6472 6473 ;; 6474 esac 6475 fi 6476 CP=$ac_cv_path_CP 6477 if test -n "$CP"; then 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6479 $as_echo "$CP" >&6; } 6480 else 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6482 $as_echo "no" >&6; } 6483 fi 6484 6485 6486 test -n "$CP" && break 6487 done 6488 6489 else 6490 # The variable is set, but is it from the command line or the environment? 6491 6492 # Try to remove the string !CP! from our list. 6493 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6494 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6495 # If it failed, the variable was not from the command line. Ignore it, 6496 # but warn the user (except for BASH, which is always set by the calling BASH). 6497 if test "xCP" != xBASH; then 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6499 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6500 fi 6501 # Try to locate tool using the code snippet 6502 for ac_prog in cp 6503 do 6504 # Extract the first word of "$ac_prog", so it can be a program name with args. 6505 set dummy $ac_prog; ac_word=$2 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6507 $as_echo_n "checking for $ac_word... " >&6; } 6508 if ${ac_cv_path_CP+:} false; then : 6509 $as_echo_n "(cached) " >&6 6510 else 6511 case $CP in 6512 [\\/]* | ?:[\\/]*) 6513 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6514 ;; 6515 *) 6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6517 for as_dir in $PATH 6518 do 6519 IFS=$as_save_IFS 6520 test -z "$as_dir" && as_dir=. 6521 for ac_exec_ext in '' $ac_executable_extensions; do 6522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6523 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6525 break 2 6526 fi 6527 done 6528 done 6529 IFS=$as_save_IFS 6530 6531 ;; 6532 esac 6533 fi 6534 CP=$ac_cv_path_CP 6535 if test -n "$CP"; then 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6537 $as_echo "$CP" >&6; } 6538 else 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6540 $as_echo "no" >&6; } 6541 fi 6542 6543 6544 test -n "$CP" && break 6545 done 6546 6547 else 6548 # If it succeeded, then it was overridden by the user. We will use it 6549 # for the tool. 6550 6551 # First remove it from the list of overridden variables, so we can test 6552 # for unknown variables in the end. 6553 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6554 6555 # Check if we try to supply an empty value 6556 if test "x$CP" = x; then 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6558 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6560 $as_echo_n "checking for CP... " >&6; } 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6562 $as_echo "disabled" >&6; } 6563 else 6564 # Check if the provided tool contains a complete path. 6565 tool_specified="$CP" 6566 tool_basename="${tool_specified##*/}" 6567 if test "x$tool_basename" = "x$tool_specified"; then 6568 # A command without a complete path is provided, search $PATH. 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6570 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6571 # Extract the first word of "$tool_basename", so it can be a program name with args. 6572 set dummy $tool_basename; ac_word=$2 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6574 $as_echo_n "checking for $ac_word... " >&6; } 6575 if ${ac_cv_path_CP+:} false; then : 6576 $as_echo_n "(cached) " >&6 6577 else 6578 case $CP in 6579 [\\/]* | ?:[\\/]*) 6580 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6581 ;; 6582 *) 6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6584 for as_dir in $PATH 6585 do 6586 IFS=$as_save_IFS 6587 test -z "$as_dir" && as_dir=. 6588 for ac_exec_ext in '' $ac_executable_extensions; do 6589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6590 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6592 break 2 6593 fi 6594 done 6595 done 6596 IFS=$as_save_IFS 6597 6598 ;; 6599 esac 6600 fi 6601 CP=$ac_cv_path_CP 6602 if test -n "$CP"; then 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6604 $as_echo "$CP" >&6; } 6605 else 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6607 $as_echo "no" >&6; } 6608 fi 6609 6610 6611 if test "x$CP" = x; then 6612 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6613 fi 6614 else 6615 # Otherwise we believe it is a complete path. Use it as it is. 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6617 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6619 $as_echo_n "checking for CP... " >&6; } 6620 if test ! -x "$tool_specified"; then 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6622 $as_echo "not found" >&6; } 6623 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6624 fi 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6626 $as_echo "$tool_specified" >&6; } 6627 fi 6628 fi 6629 fi 6630 6631 fi 6632 6633 6634 6635 if test "x$CP" = x; then 6636 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6637 fi 6638 6639 6640 6641 6642 6643 # Publish this variable in the help. 6644 6645 6646 if [ -z "${CUT+x}" ]; then 6647 # The variable is not set by user, try to locate tool using the code snippet 6648 for ac_prog in cut 6649 do 6650 # Extract the first word of "$ac_prog", so it can be a program name with args. 6651 set dummy $ac_prog; ac_word=$2 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6653 $as_echo_n "checking for $ac_word... " >&6; } 6654 if ${ac_cv_path_CUT+:} false; then : 6655 $as_echo_n "(cached) " >&6 6656 else 6657 case $CUT in 6658 [\\/]* | ?:[\\/]*) 6659 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6660 ;; 6661 *) 6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6663 for as_dir in $PATH 6664 do 6665 IFS=$as_save_IFS 6666 test -z "$as_dir" && as_dir=. 6667 for ac_exec_ext in '' $ac_executable_extensions; do 6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6669 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6671 break 2 6672 fi 6673 done 6674 done 6675 IFS=$as_save_IFS 6676 6677 ;; 6678 esac 6679 fi 6680 CUT=$ac_cv_path_CUT 6681 if test -n "$CUT"; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6683 $as_echo "$CUT" >&6; } 6684 else 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686 $as_echo "no" >&6; } 6687 fi 6688 6689 6690 test -n "$CUT" && break 6691 done 6692 6693 else 6694 # The variable is set, but is it from the command line or the environment? 6695 6696 # Try to remove the string !CUT! from our list. 6697 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6698 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6699 # If it failed, the variable was not from the command line. Ignore it, 6700 # but warn the user (except for BASH, which is always set by the calling BASH). 6701 if test "xCUT" != xBASH; then 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6703 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6704 fi 6705 # Try to locate tool using the code snippet 6706 for ac_prog in cut 6707 do 6708 # Extract the first word of "$ac_prog", so it can be a program name with args. 6709 set dummy $ac_prog; ac_word=$2 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6711 $as_echo_n "checking for $ac_word... " >&6; } 6712 if ${ac_cv_path_CUT+:} false; then : 6713 $as_echo_n "(cached) " >&6 6714 else 6715 case $CUT in 6716 [\\/]* | ?:[\\/]*) 6717 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6718 ;; 6719 *) 6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6721 for as_dir in $PATH 6722 do 6723 IFS=$as_save_IFS 6724 test -z "$as_dir" && as_dir=. 6725 for ac_exec_ext in '' $ac_executable_extensions; do 6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6727 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6729 break 2 6730 fi 6731 done 6732 done 6733 IFS=$as_save_IFS 6734 6735 ;; 6736 esac 6737 fi 6738 CUT=$ac_cv_path_CUT 6739 if test -n "$CUT"; then 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6741 $as_echo "$CUT" >&6; } 6742 else 6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6744 $as_echo "no" >&6; } 6745 fi 6746 6747 6748 test -n "$CUT" && break 6749 done 6750 6751 else 6752 # If it succeeded, then it was overridden by the user. We will use it 6753 # for the tool. 6754 6755 # First remove it from the list of overridden variables, so we can test 6756 # for unknown variables in the end. 6757 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6758 6759 # Check if we try to supply an empty value 6760 if test "x$CUT" = x; then 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6762 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6764 $as_echo_n "checking for CUT... " >&6; } 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6766 $as_echo "disabled" >&6; } 6767 else 6768 # Check if the provided tool contains a complete path. 6769 tool_specified="$CUT" 6770 tool_basename="${tool_specified##*/}" 6771 if test "x$tool_basename" = "x$tool_specified"; then 6772 # A command without a complete path is provided, search $PATH. 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6774 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6775 # Extract the first word of "$tool_basename", so it can be a program name with args. 6776 set dummy $tool_basename; ac_word=$2 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6778 $as_echo_n "checking for $ac_word... " >&6; } 6779 if ${ac_cv_path_CUT+:} false; then : 6780 $as_echo_n "(cached) " >&6 6781 else 6782 case $CUT in 6783 [\\/]* | ?:[\\/]*) 6784 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6785 ;; 6786 *) 6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6788 for as_dir in $PATH 6789 do 6790 IFS=$as_save_IFS 6791 test -z "$as_dir" && as_dir=. 6792 for ac_exec_ext in '' $ac_executable_extensions; do 6793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6794 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6796 break 2 6797 fi 6798 done 6799 done 6800 IFS=$as_save_IFS 6801 6802 ;; 6803 esac 6804 fi 6805 CUT=$ac_cv_path_CUT 6806 if test -n "$CUT"; then 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6808 $as_echo "$CUT" >&6; } 6809 else 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6811 $as_echo "no" >&6; } 6812 fi 6813 6814 6815 if test "x$CUT" = x; then 6816 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6817 fi 6818 else 6819 # Otherwise we believe it is a complete path. Use it as it is. 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6821 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6823 $as_echo_n "checking for CUT... " >&6; } 6824 if test ! -x "$tool_specified"; then 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6826 $as_echo "not found" >&6; } 6827 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6828 fi 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6830 $as_echo "$tool_specified" >&6; } 6831 fi 6832 fi 6833 fi 6834 6835 fi 6836 6837 6838 6839 if test "x$CUT" = x; then 6840 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6841 fi 6842 6843 6844 6845 6846 6847 # Publish this variable in the help. 6848 6849 6850 if [ -z "${DATE+x}" ]; then 6851 # The variable is not set by user, try to locate tool using the code snippet 6852 for ac_prog in date 6853 do 6854 # Extract the first word of "$ac_prog", so it can be a program name with args. 6855 set dummy $ac_prog; ac_word=$2 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6857 $as_echo_n "checking for $ac_word... " >&6; } 6858 if ${ac_cv_path_DATE+:} false; then : 6859 $as_echo_n "(cached) " >&6 6860 else 6861 case $DATE in 6862 [\\/]* | ?:[\\/]*) 6863 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6864 ;; 6865 *) 6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6867 for as_dir in $PATH 6868 do 6869 IFS=$as_save_IFS 6870 test -z "$as_dir" && as_dir=. 6871 for ac_exec_ext in '' $ac_executable_extensions; do 6872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6873 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6875 break 2 6876 fi 6877 done 6878 done 6879 IFS=$as_save_IFS 6880 6881 ;; 6882 esac 6883 fi 6884 DATE=$ac_cv_path_DATE 6885 if test -n "$DATE"; then 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6887 $as_echo "$DATE" >&6; } 6888 else 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6890 $as_echo "no" >&6; } 6891 fi 6892 6893 6894 test -n "$DATE" && break 6895 done 6896 6897 else 6898 # The variable is set, but is it from the command line or the environment? 6899 6900 # Try to remove the string !DATE! from our list. 6901 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6902 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6903 # If it failed, the variable was not from the command line. Ignore it, 6904 # but warn the user (except for BASH, which is always set by the calling BASH). 6905 if test "xDATE" != xBASH; then 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6907 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6908 fi 6909 # Try to locate tool using the code snippet 6910 for ac_prog in date 6911 do 6912 # Extract the first word of "$ac_prog", so it can be a program name with args. 6913 set dummy $ac_prog; ac_word=$2 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6915 $as_echo_n "checking for $ac_word... " >&6; } 6916 if ${ac_cv_path_DATE+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918 else 6919 case $DATE in 6920 [\\/]* | ?:[\\/]*) 6921 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6922 ;; 6923 *) 6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6925 for as_dir in $PATH 6926 do 6927 IFS=$as_save_IFS 6928 test -z "$as_dir" && as_dir=. 6929 for ac_exec_ext in '' $ac_executable_extensions; do 6930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6931 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6933 break 2 6934 fi 6935 done 6936 done 6937 IFS=$as_save_IFS 6938 6939 ;; 6940 esac 6941 fi 6942 DATE=$ac_cv_path_DATE 6943 if test -n "$DATE"; then 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6945 $as_echo "$DATE" >&6; } 6946 else 6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6948 $as_echo "no" >&6; } 6949 fi 6950 6951 6952 test -n "$DATE" && break 6953 done 6954 6955 else 6956 # If it succeeded, then it was overridden by the user. We will use it 6957 # for the tool. 6958 6959 # First remove it from the list of overridden variables, so we can test 6960 # for unknown variables in the end. 6961 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6962 6963 # Check if we try to supply an empty value 6964 if test "x$DATE" = x; then 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6966 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6968 $as_echo_n "checking for DATE... " >&6; } 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6970 $as_echo "disabled" >&6; } 6971 else 6972 # Check if the provided tool contains a complete path. 6973 tool_specified="$DATE" 6974 tool_basename="${tool_specified##*/}" 6975 if test "x$tool_basename" = "x$tool_specified"; then 6976 # A command without a complete path is provided, search $PATH. 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6978 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6979 # Extract the first word of "$tool_basename", so it can be a program name with args. 6980 set dummy $tool_basename; ac_word=$2 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6982 $as_echo_n "checking for $ac_word... " >&6; } 6983 if ${ac_cv_path_DATE+:} false; then : 6984 $as_echo_n "(cached) " >&6 6985 else 6986 case $DATE in 6987 [\\/]* | ?:[\\/]*) 6988 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6989 ;; 6990 *) 6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6992 for as_dir in $PATH 6993 do 6994 IFS=$as_save_IFS 6995 test -z "$as_dir" && as_dir=. 6996 for ac_exec_ext in '' $ac_executable_extensions; do 6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6998 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7000 break 2 7001 fi 7002 done 7003 done 7004 IFS=$as_save_IFS 7005 7006 ;; 7007 esac 7008 fi 7009 DATE=$ac_cv_path_DATE 7010 if test -n "$DATE"; then 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 7012 $as_echo "$DATE" >&6; } 7013 else 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7015 $as_echo "no" >&6; } 7016 fi 7017 7018 7019 if test "x$DATE" = x; then 7020 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7021 fi 7022 else 7023 # Otherwise we believe it is a complete path. Use it as it is. 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 7025 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 7027 $as_echo_n "checking for DATE... " >&6; } 7028 if test ! -x "$tool_specified"; then 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7030 $as_echo "not found" >&6; } 7031 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 7032 fi 7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7034 $as_echo "$tool_specified" >&6; } 7035 fi 7036 fi 7037 fi 7038 7039 fi 7040 7041 7042 7043 if test "x$DATE" = x; then 7044 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 7045 fi 7046 7047 7048 7049 7050 7051 # Publish this variable in the help. 7052 7053 7054 if [ -z "${DIFF+x}" ]; then 7055 # The variable is not set by user, try to locate tool using the code snippet 7056 for ac_prog in gdiff diff 7057 do 7058 # Extract the first word of "$ac_prog", so it can be a program name with args. 7059 set dummy $ac_prog; ac_word=$2 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7061 $as_echo_n "checking for $ac_word... " >&6; } 7062 if ${ac_cv_path_DIFF+:} false; then : 7063 $as_echo_n "(cached) " >&6 7064 else 7065 case $DIFF in 7066 [\\/]* | ?:[\\/]*) 7067 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7068 ;; 7069 *) 7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7071 for as_dir in $PATH 7072 do 7073 IFS=$as_save_IFS 7074 test -z "$as_dir" && as_dir=. 7075 for ac_exec_ext in '' $ac_executable_extensions; do 7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7077 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7079 break 2 7080 fi 7081 done 7082 done 7083 IFS=$as_save_IFS 7084 7085 ;; 7086 esac 7087 fi 7088 DIFF=$ac_cv_path_DIFF 7089 if test -n "$DIFF"; then 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7091 $as_echo "$DIFF" >&6; } 7092 else 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7094 $as_echo "no" >&6; } 7095 fi 7096 7097 7098 test -n "$DIFF" && break 7099 done 7100 7101 else 7102 # The variable is set, but is it from the command line or the environment? 7103 7104 # Try to remove the string !DIFF! from our list. 7105 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7106 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7107 # If it failed, the variable was not from the command line. Ignore it, 7108 # but warn the user (except for BASH, which is always set by the calling BASH). 7109 if test "xDIFF" != xBASH; then 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7111 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7112 fi 7113 # Try to locate tool using the code snippet 7114 for ac_prog in gdiff diff 7115 do 7116 # Extract the first word of "$ac_prog", so it can be a program name with args. 7117 set dummy $ac_prog; ac_word=$2 7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7119 $as_echo_n "checking for $ac_word... " >&6; } 7120 if ${ac_cv_path_DIFF+:} false; then : 7121 $as_echo_n "(cached) " >&6 7122 else 7123 case $DIFF in 7124 [\\/]* | ?:[\\/]*) 7125 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7126 ;; 7127 *) 7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7129 for as_dir in $PATH 7130 do 7131 IFS=$as_save_IFS 7132 test -z "$as_dir" && as_dir=. 7133 for ac_exec_ext in '' $ac_executable_extensions; do 7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7135 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7137 break 2 7138 fi 7139 done 7140 done 7141 IFS=$as_save_IFS 7142 7143 ;; 7144 esac 7145 fi 7146 DIFF=$ac_cv_path_DIFF 7147 if test -n "$DIFF"; then 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7149 $as_echo "$DIFF" >&6; } 7150 else 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7152 $as_echo "no" >&6; } 7153 fi 7154 7155 7156 test -n "$DIFF" && break 7157 done 7158 7159 else 7160 # If it succeeded, then it was overridden by the user. We will use it 7161 # for the tool. 7162 7163 # First remove it from the list of overridden variables, so we can test 7164 # for unknown variables in the end. 7165 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7166 7167 # Check if we try to supply an empty value 7168 if test "x$DIFF" = x; then 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7170 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7172 $as_echo_n "checking for DIFF... " >&6; } 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7174 $as_echo "disabled" >&6; } 7175 else 7176 # Check if the provided tool contains a complete path. 7177 tool_specified="$DIFF" 7178 tool_basename="${tool_specified##*/}" 7179 if test "x$tool_basename" = "x$tool_specified"; then 7180 # A command without a complete path is provided, search $PATH. 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7182 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7183 # Extract the first word of "$tool_basename", so it can be a program name with args. 7184 set dummy $tool_basename; ac_word=$2 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7186 $as_echo_n "checking for $ac_word... " >&6; } 7187 if ${ac_cv_path_DIFF+:} false; then : 7188 $as_echo_n "(cached) " >&6 7189 else 7190 case $DIFF in 7191 [\\/]* | ?:[\\/]*) 7192 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7193 ;; 7194 *) 7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7196 for as_dir in $PATH 7197 do 7198 IFS=$as_save_IFS 7199 test -z "$as_dir" && as_dir=. 7200 for ac_exec_ext in '' $ac_executable_extensions; do 7201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7202 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7204 break 2 7205 fi 7206 done 7207 done 7208 IFS=$as_save_IFS 7209 7210 ;; 7211 esac 7212 fi 7213 DIFF=$ac_cv_path_DIFF 7214 if test -n "$DIFF"; then 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7216 $as_echo "$DIFF" >&6; } 7217 else 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7219 $as_echo "no" >&6; } 7220 fi 7221 7222 7223 if test "x$DIFF" = x; then 7224 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7225 fi 7226 else 7227 # Otherwise we believe it is a complete path. Use it as it is. 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7229 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7231 $as_echo_n "checking for DIFF... " >&6; } 7232 if test ! -x "$tool_specified"; then 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7234 $as_echo "not found" >&6; } 7235 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7236 fi 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7238 $as_echo "$tool_specified" >&6; } 7239 fi 7240 fi 7241 fi 7242 7243 fi 7244 7245 7246 7247 if test "x$DIFF" = x; then 7248 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7249 fi 7250 7251 7252 7253 7254 7255 # Publish this variable in the help. 7256 7257 7258 if [ -z "${DIRNAME+x}" ]; then 7259 # The variable is not set by user, try to locate tool using the code snippet 7260 for ac_prog in dirname 7261 do 7262 # Extract the first word of "$ac_prog", so it can be a program name with args. 7263 set dummy $ac_prog; ac_word=$2 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7265 $as_echo_n "checking for $ac_word... " >&6; } 7266 if ${ac_cv_path_DIRNAME+:} false; then : 7267 $as_echo_n "(cached) " >&6 7268 else 7269 case $DIRNAME in 7270 [\\/]* | ?:[\\/]*) 7271 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7272 ;; 7273 *) 7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7275 for as_dir in $PATH 7276 do 7277 IFS=$as_save_IFS 7278 test -z "$as_dir" && as_dir=. 7279 for ac_exec_ext in '' $ac_executable_extensions; do 7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7281 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7283 break 2 7284 fi 7285 done 7286 done 7287 IFS=$as_save_IFS 7288 7289 ;; 7290 esac 7291 fi 7292 DIRNAME=$ac_cv_path_DIRNAME 7293 if test -n "$DIRNAME"; then 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7295 $as_echo "$DIRNAME" >&6; } 7296 else 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7298 $as_echo "no" >&6; } 7299 fi 7300 7301 7302 test -n "$DIRNAME" && break 7303 done 7304 7305 else 7306 # The variable is set, but is it from the command line or the environment? 7307 7308 # Try to remove the string !DIRNAME! from our list. 7309 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7310 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7311 # If it failed, the variable was not from the command line. Ignore it, 7312 # but warn the user (except for BASH, which is always set by the calling BASH). 7313 if test "xDIRNAME" != xBASH; then 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7315 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7316 fi 7317 # Try to locate tool using the code snippet 7318 for ac_prog in dirname 7319 do 7320 # Extract the first word of "$ac_prog", so it can be a program name with args. 7321 set dummy $ac_prog; ac_word=$2 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7323 $as_echo_n "checking for $ac_word... " >&6; } 7324 if ${ac_cv_path_DIRNAME+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326 else 7327 case $DIRNAME in 7328 [\\/]* | ?:[\\/]*) 7329 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7330 ;; 7331 *) 7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7333 for as_dir in $PATH 7334 do 7335 IFS=$as_save_IFS 7336 test -z "$as_dir" && as_dir=. 7337 for ac_exec_ext in '' $ac_executable_extensions; do 7338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7339 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7341 break 2 7342 fi 7343 done 7344 done 7345 IFS=$as_save_IFS 7346 7347 ;; 7348 esac 7349 fi 7350 DIRNAME=$ac_cv_path_DIRNAME 7351 if test -n "$DIRNAME"; then 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7353 $as_echo "$DIRNAME" >&6; } 7354 else 7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7356 $as_echo "no" >&6; } 7357 fi 7358 7359 7360 test -n "$DIRNAME" && break 7361 done 7362 7363 else 7364 # If it succeeded, then it was overridden by the user. We will use it 7365 # for the tool. 7366 7367 # First remove it from the list of overridden variables, so we can test 7368 # for unknown variables in the end. 7369 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7370 7371 # Check if we try to supply an empty value 7372 if test "x$DIRNAME" = x; then 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7374 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7376 $as_echo_n "checking for DIRNAME... " >&6; } 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7378 $as_echo "disabled" >&6; } 7379 else 7380 # Check if the provided tool contains a complete path. 7381 tool_specified="$DIRNAME" 7382 tool_basename="${tool_specified##*/}" 7383 if test "x$tool_basename" = "x$tool_specified"; then 7384 # A command without a complete path is provided, search $PATH. 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7386 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7387 # Extract the first word of "$tool_basename", so it can be a program name with args. 7388 set dummy $tool_basename; ac_word=$2 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7390 $as_echo_n "checking for $ac_word... " >&6; } 7391 if ${ac_cv_path_DIRNAME+:} false; then : 7392 $as_echo_n "(cached) " >&6 7393 else 7394 case $DIRNAME in 7395 [\\/]* | ?:[\\/]*) 7396 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7397 ;; 7398 *) 7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7400 for as_dir in $PATH 7401 do 7402 IFS=$as_save_IFS 7403 test -z "$as_dir" && as_dir=. 7404 for ac_exec_ext in '' $ac_executable_extensions; do 7405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7406 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7408 break 2 7409 fi 7410 done 7411 done 7412 IFS=$as_save_IFS 7413 7414 ;; 7415 esac 7416 fi 7417 DIRNAME=$ac_cv_path_DIRNAME 7418 if test -n "$DIRNAME"; then 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7420 $as_echo "$DIRNAME" >&6; } 7421 else 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7423 $as_echo "no" >&6; } 7424 fi 7425 7426 7427 if test "x$DIRNAME" = x; then 7428 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7429 fi 7430 else 7431 # Otherwise we believe it is a complete path. Use it as it is. 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7433 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7435 $as_echo_n "checking for DIRNAME... " >&6; } 7436 if test ! -x "$tool_specified"; then 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7438 $as_echo "not found" >&6; } 7439 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7440 fi 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7442 $as_echo "$tool_specified" >&6; } 7443 fi 7444 fi 7445 fi 7446 7447 fi 7448 7449 7450 7451 if test "x$DIRNAME" = x; then 7452 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7453 fi 7454 7455 7456 7457 7458 7459 # Publish this variable in the help. 7460 7461 7462 if [ -z "${ECHO+x}" ]; then 7463 # The variable is not set by user, try to locate tool using the code snippet 7464 for ac_prog in echo 7465 do 7466 # Extract the first word of "$ac_prog", so it can be a program name with args. 7467 set dummy $ac_prog; ac_word=$2 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7469 $as_echo_n "checking for $ac_word... " >&6; } 7470 if ${ac_cv_path_ECHO+:} false; then : 7471 $as_echo_n "(cached) " >&6 7472 else 7473 case $ECHO in 7474 [\\/]* | ?:[\\/]*) 7475 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7476 ;; 7477 *) 7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7479 for as_dir in $PATH 7480 do 7481 IFS=$as_save_IFS 7482 test -z "$as_dir" && as_dir=. 7483 for ac_exec_ext in '' $ac_executable_extensions; do 7484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7485 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7487 break 2 7488 fi 7489 done 7490 done 7491 IFS=$as_save_IFS 7492 7493 ;; 7494 esac 7495 fi 7496 ECHO=$ac_cv_path_ECHO 7497 if test -n "$ECHO"; then 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7499 $as_echo "$ECHO" >&6; } 7500 else 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7502 $as_echo "no" >&6; } 7503 fi 7504 7505 7506 test -n "$ECHO" && break 7507 done 7508 7509 else 7510 # The variable is set, but is it from the command line or the environment? 7511 7512 # Try to remove the string !ECHO! from our list. 7513 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7514 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7515 # If it failed, the variable was not from the command line. Ignore it, 7516 # but warn the user (except for BASH, which is always set by the calling BASH). 7517 if test "xECHO" != xBASH; then 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7519 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7520 fi 7521 # Try to locate tool using the code snippet 7522 for ac_prog in echo 7523 do 7524 # Extract the first word of "$ac_prog", so it can be a program name with args. 7525 set dummy $ac_prog; ac_word=$2 7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7527 $as_echo_n "checking for $ac_word... " >&6; } 7528 if ${ac_cv_path_ECHO+:} false; then : 7529 $as_echo_n "(cached) " >&6 7530 else 7531 case $ECHO in 7532 [\\/]* | ?:[\\/]*) 7533 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7534 ;; 7535 *) 7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7537 for as_dir in $PATH 7538 do 7539 IFS=$as_save_IFS 7540 test -z "$as_dir" && as_dir=. 7541 for ac_exec_ext in '' $ac_executable_extensions; do 7542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7543 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7545 break 2 7546 fi 7547 done 7548 done 7549 IFS=$as_save_IFS 7550 7551 ;; 7552 esac 7553 fi 7554 ECHO=$ac_cv_path_ECHO 7555 if test -n "$ECHO"; then 7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7557 $as_echo "$ECHO" >&6; } 7558 else 7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7560 $as_echo "no" >&6; } 7561 fi 7562 7563 7564 test -n "$ECHO" && break 7565 done 7566 7567 else 7568 # If it succeeded, then it was overridden by the user. We will use it 7569 # for the tool. 7570 7571 # First remove it from the list of overridden variables, so we can test 7572 # for unknown variables in the end. 7573 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7574 7575 # Check if we try to supply an empty value 7576 if test "x$ECHO" = x; then 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7578 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7580 $as_echo_n "checking for ECHO... " >&6; } 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7582 $as_echo "disabled" >&6; } 7583 else 7584 # Check if the provided tool contains a complete path. 7585 tool_specified="$ECHO" 7586 tool_basename="${tool_specified##*/}" 7587 if test "x$tool_basename" = "x$tool_specified"; then 7588 # A command without a complete path is provided, search $PATH. 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7590 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7591 # Extract the first word of "$tool_basename", so it can be a program name with args. 7592 set dummy $tool_basename; ac_word=$2 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7594 $as_echo_n "checking for $ac_word... " >&6; } 7595 if ${ac_cv_path_ECHO+:} false; then : 7596 $as_echo_n "(cached) " >&6 7597 else 7598 case $ECHO in 7599 [\\/]* | ?:[\\/]*) 7600 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7601 ;; 7602 *) 7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7604 for as_dir in $PATH 7605 do 7606 IFS=$as_save_IFS 7607 test -z "$as_dir" && as_dir=. 7608 for ac_exec_ext in '' $ac_executable_extensions; do 7609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7610 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7612 break 2 7613 fi 7614 done 7615 done 7616 IFS=$as_save_IFS 7617 7618 ;; 7619 esac 7620 fi 7621 ECHO=$ac_cv_path_ECHO 7622 if test -n "$ECHO"; then 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7624 $as_echo "$ECHO" >&6; } 7625 else 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7627 $as_echo "no" >&6; } 7628 fi 7629 7630 7631 if test "x$ECHO" = x; then 7632 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7633 fi 7634 else 7635 # Otherwise we believe it is a complete path. Use it as it is. 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7637 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7639 $as_echo_n "checking for ECHO... " >&6; } 7640 if test ! -x "$tool_specified"; then 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7642 $as_echo "not found" >&6; } 7643 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7644 fi 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7646 $as_echo "$tool_specified" >&6; } 7647 fi 7648 fi 7649 fi 7650 7651 fi 7652 7653 7654 7655 if test "x$ECHO" = x; then 7656 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7657 fi 7658 7659 7660 7661 7662 7663 # Publish this variable in the help. 7664 7665 7666 if [ -z "${EXPR+x}" ]; then 7667 # The variable is not set by user, try to locate tool using the code snippet 7668 for ac_prog in expr 7669 do 7670 # Extract the first word of "$ac_prog", so it can be a program name with args. 7671 set dummy $ac_prog; ac_word=$2 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7673 $as_echo_n "checking for $ac_word... " >&6; } 7674 if ${ac_cv_path_EXPR+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676 else 7677 case $EXPR in 7678 [\\/]* | ?:[\\/]*) 7679 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7680 ;; 7681 *) 7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7683 for as_dir in $PATH 7684 do 7685 IFS=$as_save_IFS 7686 test -z "$as_dir" && as_dir=. 7687 for ac_exec_ext in '' $ac_executable_extensions; do 7688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7689 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7691 break 2 7692 fi 7693 done 7694 done 7695 IFS=$as_save_IFS 7696 7697 ;; 7698 esac 7699 fi 7700 EXPR=$ac_cv_path_EXPR 7701 if test -n "$EXPR"; then 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7703 $as_echo "$EXPR" >&6; } 7704 else 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7706 $as_echo "no" >&6; } 7707 fi 7708 7709 7710 test -n "$EXPR" && break 7711 done 7712 7713 else 7714 # The variable is set, but is it from the command line or the environment? 7715 7716 # Try to remove the string !EXPR! from our list. 7717 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7718 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7719 # If it failed, the variable was not from the command line. Ignore it, 7720 # but warn the user (except for BASH, which is always set by the calling BASH). 7721 if test "xEXPR" != xBASH; then 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7723 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7724 fi 7725 # Try to locate tool using the code snippet 7726 for ac_prog in expr 7727 do 7728 # Extract the first word of "$ac_prog", so it can be a program name with args. 7729 set dummy $ac_prog; ac_word=$2 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7731 $as_echo_n "checking for $ac_word... " >&6; } 7732 if ${ac_cv_path_EXPR+:} false; then : 7733 $as_echo_n "(cached) " >&6 7734 else 7735 case $EXPR in 7736 [\\/]* | ?:[\\/]*) 7737 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7738 ;; 7739 *) 7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7741 for as_dir in $PATH 7742 do 7743 IFS=$as_save_IFS 7744 test -z "$as_dir" && as_dir=. 7745 for ac_exec_ext in '' $ac_executable_extensions; do 7746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7747 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7749 break 2 7750 fi 7751 done 7752 done 7753 IFS=$as_save_IFS 7754 7755 ;; 7756 esac 7757 fi 7758 EXPR=$ac_cv_path_EXPR 7759 if test -n "$EXPR"; then 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7761 $as_echo "$EXPR" >&6; } 7762 else 7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7764 $as_echo "no" >&6; } 7765 fi 7766 7767 7768 test -n "$EXPR" && break 7769 done 7770 7771 else 7772 # If it succeeded, then it was overridden by the user. We will use it 7773 # for the tool. 7774 7775 # First remove it from the list of overridden variables, so we can test 7776 # for unknown variables in the end. 7777 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7778 7779 # Check if we try to supply an empty value 7780 if test "x$EXPR" = x; then 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7782 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7784 $as_echo_n "checking for EXPR... " >&6; } 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7786 $as_echo "disabled" >&6; } 7787 else 7788 # Check if the provided tool contains a complete path. 7789 tool_specified="$EXPR" 7790 tool_basename="${tool_specified##*/}" 7791 if test "x$tool_basename" = "x$tool_specified"; then 7792 # A command without a complete path is provided, search $PATH. 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7794 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7795 # Extract the first word of "$tool_basename", so it can be a program name with args. 7796 set dummy $tool_basename; ac_word=$2 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7798 $as_echo_n "checking for $ac_word... " >&6; } 7799 if ${ac_cv_path_EXPR+:} false; then : 7800 $as_echo_n "(cached) " >&6 7801 else 7802 case $EXPR in 7803 [\\/]* | ?:[\\/]*) 7804 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7805 ;; 7806 *) 7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7808 for as_dir in $PATH 7809 do 7810 IFS=$as_save_IFS 7811 test -z "$as_dir" && as_dir=. 7812 for ac_exec_ext in '' $ac_executable_extensions; do 7813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7814 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7816 break 2 7817 fi 7818 done 7819 done 7820 IFS=$as_save_IFS 7821 7822 ;; 7823 esac 7824 fi 7825 EXPR=$ac_cv_path_EXPR 7826 if test -n "$EXPR"; then 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7828 $as_echo "$EXPR" >&6; } 7829 else 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7831 $as_echo "no" >&6; } 7832 fi 7833 7834 7835 if test "x$EXPR" = x; then 7836 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7837 fi 7838 else 7839 # Otherwise we believe it is a complete path. Use it as it is. 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7841 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7843 $as_echo_n "checking for EXPR... " >&6; } 7844 if test ! -x "$tool_specified"; then 7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7846 $as_echo "not found" >&6; } 7847 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7848 fi 7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7850 $as_echo "$tool_specified" >&6; } 7851 fi 7852 fi 7853 fi 7854 7855 fi 7856 7857 7858 7859 if test "x$EXPR" = x; then 7860 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7861 fi 7862 7863 7864 7865 7866 7867 # Publish this variable in the help. 7868 7869 7870 if [ -z "${FILE+x}" ]; then 7871 # The variable is not set by user, try to locate tool using the code snippet 7872 for ac_prog in file 7873 do 7874 # Extract the first word of "$ac_prog", so it can be a program name with args. 7875 set dummy $ac_prog; ac_word=$2 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7877 $as_echo_n "checking for $ac_word... " >&6; } 7878 if ${ac_cv_path_FILE+:} false; then : 7879 $as_echo_n "(cached) " >&6 7880 else 7881 case $FILE in 7882 [\\/]* | ?:[\\/]*) 7883 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7884 ;; 7885 *) 7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7887 for as_dir in $PATH 7888 do 7889 IFS=$as_save_IFS 7890 test -z "$as_dir" && as_dir=. 7891 for ac_exec_ext in '' $ac_executable_extensions; do 7892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7893 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7895 break 2 7896 fi 7897 done 7898 done 7899 IFS=$as_save_IFS 7900 7901 ;; 7902 esac 7903 fi 7904 FILE=$ac_cv_path_FILE 7905 if test -n "$FILE"; then 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7907 $as_echo "$FILE" >&6; } 7908 else 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7910 $as_echo "no" >&6; } 7911 fi 7912 7913 7914 test -n "$FILE" && break 7915 done 7916 7917 else 7918 # The variable is set, but is it from the command line or the environment? 7919 7920 # Try to remove the string !FILE! from our list. 7921 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7922 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7923 # If it failed, the variable was not from the command line. Ignore it, 7924 # but warn the user (except for BASH, which is always set by the calling BASH). 7925 if test "xFILE" != xBASH; then 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7927 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7928 fi 7929 # Try to locate tool using the code snippet 7930 for ac_prog in file 7931 do 7932 # Extract the first word of "$ac_prog", so it can be a program name with args. 7933 set dummy $ac_prog; ac_word=$2 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7935 $as_echo_n "checking for $ac_word... " >&6; } 7936 if ${ac_cv_path_FILE+:} false; then : 7937 $as_echo_n "(cached) " >&6 7938 else 7939 case $FILE in 7940 [\\/]* | ?:[\\/]*) 7941 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7942 ;; 7943 *) 7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7945 for as_dir in $PATH 7946 do 7947 IFS=$as_save_IFS 7948 test -z "$as_dir" && as_dir=. 7949 for ac_exec_ext in '' $ac_executable_extensions; do 7950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7951 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7953 break 2 7954 fi 7955 done 7956 done 7957 IFS=$as_save_IFS 7958 7959 ;; 7960 esac 7961 fi 7962 FILE=$ac_cv_path_FILE 7963 if test -n "$FILE"; then 7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7965 $as_echo "$FILE" >&6; } 7966 else 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7968 $as_echo "no" >&6; } 7969 fi 7970 7971 7972 test -n "$FILE" && break 7973 done 7974 7975 else 7976 # If it succeeded, then it was overridden by the user. We will use it 7977 # for the tool. 7978 7979 # First remove it from the list of overridden variables, so we can test 7980 # for unknown variables in the end. 7981 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7982 7983 # Check if we try to supply an empty value 7984 if test "x$FILE" = x; then 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 7986 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7988 $as_echo_n "checking for FILE... " >&6; } 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7990 $as_echo "disabled" >&6; } 7991 else 7992 # Check if the provided tool contains a complete path. 7993 tool_specified="$FILE" 7994 tool_basename="${tool_specified##*/}" 7995 if test "x$tool_basename" = "x$tool_specified"; then 7996 # A command without a complete path is provided, search $PATH. 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7998 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7999 # Extract the first word of "$tool_basename", so it can be a program name with args. 8000 set dummy $tool_basename; ac_word=$2 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8002 $as_echo_n "checking for $ac_word... " >&6; } 8003 if ${ac_cv_path_FILE+:} false; then : 8004 $as_echo_n "(cached) " >&6 8005 else 8006 case $FILE in 8007 [\\/]* | ?:[\\/]*) 8008 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 8009 ;; 8010 *) 8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8012 for as_dir in $PATH 8013 do 8014 IFS=$as_save_IFS 8015 test -z "$as_dir" && as_dir=. 8016 for ac_exec_ext in '' $ac_executable_extensions; do 8017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8018 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8020 break 2 8021 fi 8022 done 8023 done 8024 IFS=$as_save_IFS 8025 8026 ;; 8027 esac 8028 fi 8029 FILE=$ac_cv_path_FILE 8030 if test -n "$FILE"; then 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 8032 $as_echo "$FILE" >&6; } 8033 else 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8035 $as_echo "no" >&6; } 8036 fi 8037 8038 8039 if test "x$FILE" = x; then 8040 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8041 fi 8042 else 8043 # Otherwise we believe it is a complete path. Use it as it is. 8044 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 8045 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8047 $as_echo_n "checking for FILE... " >&6; } 8048 if test ! -x "$tool_specified"; then 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8050 $as_echo "not found" >&6; } 8051 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 8052 fi 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8054 $as_echo "$tool_specified" >&6; } 8055 fi 8056 fi 8057 fi 8058 8059 fi 8060 8061 8062 8063 if test "x$FILE" = x; then 8064 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8065 fi 8066 8067 8068 8069 8070 8071 # Publish this variable in the help. 8072 8073 8074 if [ -z "${FIND+x}" ]; then 8075 # The variable is not set by user, try to locate tool using the code snippet 8076 for ac_prog in find 8077 do 8078 # Extract the first word of "$ac_prog", so it can be a program name with args. 8079 set dummy $ac_prog; ac_word=$2 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8081 $as_echo_n "checking for $ac_word... " >&6; } 8082 if ${ac_cv_path_FIND+:} false; then : 8083 $as_echo_n "(cached) " >&6 8084 else 8085 case $FIND in 8086 [\\/]* | ?:[\\/]*) 8087 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8088 ;; 8089 *) 8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8091 for as_dir in $PATH 8092 do 8093 IFS=$as_save_IFS 8094 test -z "$as_dir" && as_dir=. 8095 for ac_exec_ext in '' $ac_executable_extensions; do 8096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8097 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8099 break 2 8100 fi 8101 done 8102 done 8103 IFS=$as_save_IFS 8104 8105 ;; 8106 esac 8107 fi 8108 FIND=$ac_cv_path_FIND 8109 if test -n "$FIND"; then 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8111 $as_echo "$FIND" >&6; } 8112 else 8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8114 $as_echo "no" >&6; } 8115 fi 8116 8117 8118 test -n "$FIND" && break 8119 done 8120 8121 else 8122 # The variable is set, but is it from the command line or the environment? 8123 8124 # Try to remove the string !FIND! from our list. 8125 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8126 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8127 # If it failed, the variable was not from the command line. Ignore it, 8128 # but warn the user (except for BASH, which is always set by the calling BASH). 8129 if test "xFIND" != xBASH; then 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8131 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8132 fi 8133 # Try to locate tool using the code snippet 8134 for ac_prog in find 8135 do 8136 # Extract the first word of "$ac_prog", so it can be a program name with args. 8137 set dummy $ac_prog; ac_word=$2 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8139 $as_echo_n "checking for $ac_word... " >&6; } 8140 if ${ac_cv_path_FIND+:} false; then : 8141 $as_echo_n "(cached) " >&6 8142 else 8143 case $FIND in 8144 [\\/]* | ?:[\\/]*) 8145 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8146 ;; 8147 *) 8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8149 for as_dir in $PATH 8150 do 8151 IFS=$as_save_IFS 8152 test -z "$as_dir" && as_dir=. 8153 for ac_exec_ext in '' $ac_executable_extensions; do 8154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8155 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8157 break 2 8158 fi 8159 done 8160 done 8161 IFS=$as_save_IFS 8162 8163 ;; 8164 esac 8165 fi 8166 FIND=$ac_cv_path_FIND 8167 if test -n "$FIND"; then 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8169 $as_echo "$FIND" >&6; } 8170 else 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8172 $as_echo "no" >&6; } 8173 fi 8174 8175 8176 test -n "$FIND" && break 8177 done 8178 8179 else 8180 # If it succeeded, then it was overridden by the user. We will use it 8181 # for the tool. 8182 8183 # First remove it from the list of overridden variables, so we can test 8184 # for unknown variables in the end. 8185 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8186 8187 # Check if we try to supply an empty value 8188 if test "x$FIND" = x; then 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8190 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8192 $as_echo_n "checking for FIND... " >&6; } 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8194 $as_echo "disabled" >&6; } 8195 else 8196 # Check if the provided tool contains a complete path. 8197 tool_specified="$FIND" 8198 tool_basename="${tool_specified##*/}" 8199 if test "x$tool_basename" = "x$tool_specified"; then 8200 # A command without a complete path is provided, search $PATH. 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8202 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8203 # Extract the first word of "$tool_basename", so it can be a program name with args. 8204 set dummy $tool_basename; ac_word=$2 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8206 $as_echo_n "checking for $ac_word... " >&6; } 8207 if ${ac_cv_path_FIND+:} false; then : 8208 $as_echo_n "(cached) " >&6 8209 else 8210 case $FIND in 8211 [\\/]* | ?:[\\/]*) 8212 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8213 ;; 8214 *) 8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8216 for as_dir in $PATH 8217 do 8218 IFS=$as_save_IFS 8219 test -z "$as_dir" && as_dir=. 8220 for ac_exec_ext in '' $ac_executable_extensions; do 8221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8222 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8224 break 2 8225 fi 8226 done 8227 done 8228 IFS=$as_save_IFS 8229 8230 ;; 8231 esac 8232 fi 8233 FIND=$ac_cv_path_FIND 8234 if test -n "$FIND"; then 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8236 $as_echo "$FIND" >&6; } 8237 else 8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8239 $as_echo "no" >&6; } 8240 fi 8241 8242 8243 if test "x$FIND" = x; then 8244 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8245 fi 8246 else 8247 # Otherwise we believe it is a complete path. Use it as it is. 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8249 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8251 $as_echo_n "checking for FIND... " >&6; } 8252 if test ! -x "$tool_specified"; then 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8254 $as_echo "not found" >&6; } 8255 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8256 fi 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8258 $as_echo "$tool_specified" >&6; } 8259 fi 8260 fi 8261 fi 8262 8263 fi 8264 8265 8266 8267 if test "x$FIND" = x; then 8268 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8269 fi 8270 8271 8272 8273 8274 8275 # Publish this variable in the help. 8276 8277 8278 if [ -z "${HEAD+x}" ]; then 8279 # The variable is not set by user, try to locate tool using the code snippet 8280 for ac_prog in head 8281 do 8282 # Extract the first word of "$ac_prog", so it can be a program name with args. 8283 set dummy $ac_prog; ac_word=$2 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8285 $as_echo_n "checking for $ac_word... " >&6; } 8286 if ${ac_cv_path_HEAD+:} false; then : 8287 $as_echo_n "(cached) " >&6 8288 else 8289 case $HEAD in 8290 [\\/]* | ?:[\\/]*) 8291 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8292 ;; 8293 *) 8294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8295 for as_dir in $PATH 8296 do 8297 IFS=$as_save_IFS 8298 test -z "$as_dir" && as_dir=. 8299 for ac_exec_ext in '' $ac_executable_extensions; do 8300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8301 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8303 break 2 8304 fi 8305 done 8306 done 8307 IFS=$as_save_IFS 8308 8309 ;; 8310 esac 8311 fi 8312 HEAD=$ac_cv_path_HEAD 8313 if test -n "$HEAD"; then 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8315 $as_echo "$HEAD" >&6; } 8316 else 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8318 $as_echo "no" >&6; } 8319 fi 8320 8321 8322 test -n "$HEAD" && break 8323 done 8324 8325 else 8326 # The variable is set, but is it from the command line or the environment? 8327 8328 # Try to remove the string !HEAD! from our list. 8329 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8330 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8331 # If it failed, the variable was not from the command line. Ignore it, 8332 # but warn the user (except for BASH, which is always set by the calling BASH). 8333 if test "xHEAD" != xBASH; then 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8335 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8336 fi 8337 # Try to locate tool using the code snippet 8338 for ac_prog in head 8339 do 8340 # Extract the first word of "$ac_prog", so it can be a program name with args. 8341 set dummy $ac_prog; ac_word=$2 8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8343 $as_echo_n "checking for $ac_word... " >&6; } 8344 if ${ac_cv_path_HEAD+:} false; then : 8345 $as_echo_n "(cached) " >&6 8346 else 8347 case $HEAD in 8348 [\\/]* | ?:[\\/]*) 8349 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8350 ;; 8351 *) 8352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8353 for as_dir in $PATH 8354 do 8355 IFS=$as_save_IFS 8356 test -z "$as_dir" && as_dir=. 8357 for ac_exec_ext in '' $ac_executable_extensions; do 8358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8359 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8361 break 2 8362 fi 8363 done 8364 done 8365 IFS=$as_save_IFS 8366 8367 ;; 8368 esac 8369 fi 8370 HEAD=$ac_cv_path_HEAD 8371 if test -n "$HEAD"; then 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8373 $as_echo "$HEAD" >&6; } 8374 else 8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8376 $as_echo "no" >&6; } 8377 fi 8378 8379 8380 test -n "$HEAD" && break 8381 done 8382 8383 else 8384 # If it succeeded, then it was overridden by the user. We will use it 8385 # for the tool. 8386 8387 # First remove it from the list of overridden variables, so we can test 8388 # for unknown variables in the end. 8389 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8390 8391 # Check if we try to supply an empty value 8392 if test "x$HEAD" = x; then 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8394 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8396 $as_echo_n "checking for HEAD... " >&6; } 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8398 $as_echo "disabled" >&6; } 8399 else 8400 # Check if the provided tool contains a complete path. 8401 tool_specified="$HEAD" 8402 tool_basename="${tool_specified##*/}" 8403 if test "x$tool_basename" = "x$tool_specified"; then 8404 # A command without a complete path is provided, search $PATH. 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8406 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8407 # Extract the first word of "$tool_basename", so it can be a program name with args. 8408 set dummy $tool_basename; ac_word=$2 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8410 $as_echo_n "checking for $ac_word... " >&6; } 8411 if ${ac_cv_path_HEAD+:} false; then : 8412 $as_echo_n "(cached) " >&6 8413 else 8414 case $HEAD in 8415 [\\/]* | ?:[\\/]*) 8416 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8417 ;; 8418 *) 8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8420 for as_dir in $PATH 8421 do 8422 IFS=$as_save_IFS 8423 test -z "$as_dir" && as_dir=. 8424 for ac_exec_ext in '' $ac_executable_extensions; do 8425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8426 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8428 break 2 8429 fi 8430 done 8431 done 8432 IFS=$as_save_IFS 8433 8434 ;; 8435 esac 8436 fi 8437 HEAD=$ac_cv_path_HEAD 8438 if test -n "$HEAD"; then 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8440 $as_echo "$HEAD" >&6; } 8441 else 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8443 $as_echo "no" >&6; } 8444 fi 8445 8446 8447 if test "x$HEAD" = x; then 8448 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8449 fi 8450 else 8451 # Otherwise we believe it is a complete path. Use it as it is. 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8453 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8455 $as_echo_n "checking for HEAD... " >&6; } 8456 if test ! -x "$tool_specified"; then 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8458 $as_echo "not found" >&6; } 8459 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8460 fi 8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8462 $as_echo "$tool_specified" >&6; } 8463 fi 8464 fi 8465 fi 8466 8467 fi 8468 8469 8470 8471 if test "x$HEAD" = x; then 8472 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8473 fi 8474 8475 8476 8477 8478 8479 # Publish this variable in the help. 8480 8481 8482 if [ -z "${GUNZIP+x}" ]; then 8483 # The variable is not set by user, try to locate tool using the code snippet 8484 for ac_prog in gunzip 8485 do 8486 # Extract the first word of "$ac_prog", so it can be a program name with args. 8487 set dummy $ac_prog; ac_word=$2 8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8489 $as_echo_n "checking for $ac_word... " >&6; } 8490 if ${ac_cv_path_GUNZIP+:} false; then : 8491 $as_echo_n "(cached) " >&6 8492 else 8493 case $GUNZIP in 8494 [\\/]* | ?:[\\/]*) 8495 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8496 ;; 8497 *) 8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8499 for as_dir in $PATH 8500 do 8501 IFS=$as_save_IFS 8502 test -z "$as_dir" && as_dir=. 8503 for ac_exec_ext in '' $ac_executable_extensions; do 8504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8505 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8507 break 2 8508 fi 8509 done 8510 done 8511 IFS=$as_save_IFS 8512 8513 ;; 8514 esac 8515 fi 8516 GUNZIP=$ac_cv_path_GUNZIP 8517 if test -n "$GUNZIP"; then 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8519 $as_echo "$GUNZIP" >&6; } 8520 else 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8522 $as_echo "no" >&6; } 8523 fi 8524 8525 8526 test -n "$GUNZIP" && break 8527 done 8528 8529 else 8530 # The variable is set, but is it from the command line or the environment? 8531 8532 # Try to remove the string !GUNZIP! from our list. 8533 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8534 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8535 # If it failed, the variable was not from the command line. Ignore it, 8536 # but warn the user (except for BASH, which is always set by the calling BASH). 8537 if test "xGUNZIP" != xBASH; then 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8539 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8540 fi 8541 # Try to locate tool using the code snippet 8542 for ac_prog in gunzip 8543 do 8544 # Extract the first word of "$ac_prog", so it can be a program name with args. 8545 set dummy $ac_prog; ac_word=$2 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8547 $as_echo_n "checking for $ac_word... " >&6; } 8548 if ${ac_cv_path_GUNZIP+:} false; then : 8549 $as_echo_n "(cached) " >&6 8550 else 8551 case $GUNZIP in 8552 [\\/]* | ?:[\\/]*) 8553 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8554 ;; 8555 *) 8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8557 for as_dir in $PATH 8558 do 8559 IFS=$as_save_IFS 8560 test -z "$as_dir" && as_dir=. 8561 for ac_exec_ext in '' $ac_executable_extensions; do 8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8563 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8565 break 2 8566 fi 8567 done 8568 done 8569 IFS=$as_save_IFS 8570 8571 ;; 8572 esac 8573 fi 8574 GUNZIP=$ac_cv_path_GUNZIP 8575 if test -n "$GUNZIP"; then 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8577 $as_echo "$GUNZIP" >&6; } 8578 else 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8580 $as_echo "no" >&6; } 8581 fi 8582 8583 8584 test -n "$GUNZIP" && break 8585 done 8586 8587 else 8588 # If it succeeded, then it was overridden by the user. We will use it 8589 # for the tool. 8590 8591 # First remove it from the list of overridden variables, so we can test 8592 # for unknown variables in the end. 8593 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8594 8595 # Check if we try to supply an empty value 8596 if test "x$GUNZIP" = x; then 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8598 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8600 $as_echo_n "checking for GUNZIP... " >&6; } 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8602 $as_echo "disabled" >&6; } 8603 else 8604 # Check if the provided tool contains a complete path. 8605 tool_specified="$GUNZIP" 8606 tool_basename="${tool_specified##*/}" 8607 if test "x$tool_basename" = "x$tool_specified"; then 8608 # A command without a complete path is provided, search $PATH. 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8610 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8611 # Extract the first word of "$tool_basename", so it can be a program name with args. 8612 set dummy $tool_basename; ac_word=$2 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8614 $as_echo_n "checking for $ac_word... " >&6; } 8615 if ${ac_cv_path_GUNZIP+:} false; then : 8616 $as_echo_n "(cached) " >&6 8617 else 8618 case $GUNZIP in 8619 [\\/]* | ?:[\\/]*) 8620 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8621 ;; 8622 *) 8623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8624 for as_dir in $PATH 8625 do 8626 IFS=$as_save_IFS 8627 test -z "$as_dir" && as_dir=. 8628 for ac_exec_ext in '' $ac_executable_extensions; do 8629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8630 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8632 break 2 8633 fi 8634 done 8635 done 8636 IFS=$as_save_IFS 8637 8638 ;; 8639 esac 8640 fi 8641 GUNZIP=$ac_cv_path_GUNZIP 8642 if test -n "$GUNZIP"; then 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8644 $as_echo "$GUNZIP" >&6; } 8645 else 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8647 $as_echo "no" >&6; } 8648 fi 8649 8650 8651 if test "x$GUNZIP" = x; then 8652 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8653 fi 8654 else 8655 # Otherwise we believe it is a complete path. Use it as it is. 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8657 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8659 $as_echo_n "checking for GUNZIP... " >&6; } 8660 if test ! -x "$tool_specified"; then 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8662 $as_echo "not found" >&6; } 8663 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8664 fi 8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8666 $as_echo "$tool_specified" >&6; } 8667 fi 8668 fi 8669 fi 8670 8671 fi 8672 8673 8674 8675 if test "x$GUNZIP" = x; then 8676 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8677 fi 8678 8679 8680 8681 8682 8683 # Publish this variable in the help. 8684 8685 8686 if [ -z "${GZIP+x}" ]; then 8687 # The variable is not set by user, try to locate tool using the code snippet 8688 for ac_prog in pigz gzip 8689 do 8690 # Extract the first word of "$ac_prog", so it can be a program name with args. 8691 set dummy $ac_prog; ac_word=$2 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8693 $as_echo_n "checking for $ac_word... " >&6; } 8694 if ${ac_cv_path_GZIP+:} false; then : 8695 $as_echo_n "(cached) " >&6 8696 else 8697 case $GZIP in 8698 [\\/]* | ?:[\\/]*) 8699 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8700 ;; 8701 *) 8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8703 for as_dir in $PATH 8704 do 8705 IFS=$as_save_IFS 8706 test -z "$as_dir" && as_dir=. 8707 for ac_exec_ext in '' $ac_executable_extensions; do 8708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8709 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8711 break 2 8712 fi 8713 done 8714 done 8715 IFS=$as_save_IFS 8716 8717 ;; 8718 esac 8719 fi 8720 GZIP=$ac_cv_path_GZIP 8721 if test -n "$GZIP"; then 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8723 $as_echo "$GZIP" >&6; } 8724 else 8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8726 $as_echo "no" >&6; } 8727 fi 8728 8729 8730 test -n "$GZIP" && break 8731 done 8732 8733 else 8734 # The variable is set, but is it from the command line or the environment? 8735 8736 # Try to remove the string !GZIP! from our list. 8737 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8738 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8739 # If it failed, the variable was not from the command line. Ignore it, 8740 # but warn the user (except for BASH, which is always set by the calling BASH). 8741 if test "xGZIP" != xBASH; then 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8743 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8744 fi 8745 # Try to locate tool using the code snippet 8746 for ac_prog in pigz gzip 8747 do 8748 # Extract the first word of "$ac_prog", so it can be a program name with args. 8749 set dummy $ac_prog; ac_word=$2 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8751 $as_echo_n "checking for $ac_word... " >&6; } 8752 if ${ac_cv_path_GZIP+:} false; then : 8753 $as_echo_n "(cached) " >&6 8754 else 8755 case $GZIP in 8756 [\\/]* | ?:[\\/]*) 8757 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8758 ;; 8759 *) 8760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8761 for as_dir in $PATH 8762 do 8763 IFS=$as_save_IFS 8764 test -z "$as_dir" && as_dir=. 8765 for ac_exec_ext in '' $ac_executable_extensions; do 8766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8767 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8769 break 2 8770 fi 8771 done 8772 done 8773 IFS=$as_save_IFS 8774 8775 ;; 8776 esac 8777 fi 8778 GZIP=$ac_cv_path_GZIP 8779 if test -n "$GZIP"; then 8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8781 $as_echo "$GZIP" >&6; } 8782 else 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8784 $as_echo "no" >&6; } 8785 fi 8786 8787 8788 test -n "$GZIP" && break 8789 done 8790 8791 else 8792 # If it succeeded, then it was overridden by the user. We will use it 8793 # for the tool. 8794 8795 # First remove it from the list of overridden variables, so we can test 8796 # for unknown variables in the end. 8797 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8798 8799 # Check if we try to supply an empty value 8800 if test "x$GZIP" = x; then 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8802 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8804 $as_echo_n "checking for GZIP... " >&6; } 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8806 $as_echo "disabled" >&6; } 8807 else 8808 # Check if the provided tool contains a complete path. 8809 tool_specified="$GZIP" 8810 tool_basename="${tool_specified##*/}" 8811 if test "x$tool_basename" = "x$tool_specified"; then 8812 # A command without a complete path is provided, search $PATH. 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8814 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8815 # Extract the first word of "$tool_basename", so it can be a program name with args. 8816 set dummy $tool_basename; ac_word=$2 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8818 $as_echo_n "checking for $ac_word... " >&6; } 8819 if ${ac_cv_path_GZIP+:} false; then : 8820 $as_echo_n "(cached) " >&6 8821 else 8822 case $GZIP in 8823 [\\/]* | ?:[\\/]*) 8824 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8825 ;; 8826 *) 8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8828 for as_dir in $PATH 8829 do 8830 IFS=$as_save_IFS 8831 test -z "$as_dir" && as_dir=. 8832 for ac_exec_ext in '' $ac_executable_extensions; do 8833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8834 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8836 break 2 8837 fi 8838 done 8839 done 8840 IFS=$as_save_IFS 8841 8842 ;; 8843 esac 8844 fi 8845 GZIP=$ac_cv_path_GZIP 8846 if test -n "$GZIP"; then 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8848 $as_echo "$GZIP" >&6; } 8849 else 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8851 $as_echo "no" >&6; } 8852 fi 8853 8854 8855 if test "x$GZIP" = x; then 8856 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8857 fi 8858 else 8859 # Otherwise we believe it is a complete path. Use it as it is. 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8861 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8863 $as_echo_n "checking for GZIP... " >&6; } 8864 if test ! -x "$tool_specified"; then 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8866 $as_echo "not found" >&6; } 8867 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8868 fi 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8870 $as_echo "$tool_specified" >&6; } 8871 fi 8872 fi 8873 fi 8874 8875 fi 8876 8877 8878 8879 if test "x$GZIP" = x; then 8880 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8881 fi 8882 8883 8884 8885 8886 8887 # Publish this variable in the help. 8888 8889 8890 if [ -z "${LN+x}" ]; then 8891 # The variable is not set by user, try to locate tool using the code snippet 8892 for ac_prog in ln 8893 do 8894 # Extract the first word of "$ac_prog", so it can be a program name with args. 8895 set dummy $ac_prog; ac_word=$2 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8897 $as_echo_n "checking for $ac_word... " >&6; } 8898 if ${ac_cv_path_LN+:} false; then : 8899 $as_echo_n "(cached) " >&6 8900 else 8901 case $LN in 8902 [\\/]* | ?:[\\/]*) 8903 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8904 ;; 8905 *) 8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8907 for as_dir in $PATH 8908 do 8909 IFS=$as_save_IFS 8910 test -z "$as_dir" && as_dir=. 8911 for ac_exec_ext in '' $ac_executable_extensions; do 8912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8913 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8915 break 2 8916 fi 8917 done 8918 done 8919 IFS=$as_save_IFS 8920 8921 ;; 8922 esac 8923 fi 8924 LN=$ac_cv_path_LN 8925 if test -n "$LN"; then 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8927 $as_echo "$LN" >&6; } 8928 else 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8930 $as_echo "no" >&6; } 8931 fi 8932 8933 8934 test -n "$LN" && break 8935 done 8936 8937 else 8938 # The variable is set, but is it from the command line or the environment? 8939 8940 # Try to remove the string !LN! from our list. 8941 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8942 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8943 # If it failed, the variable was not from the command line. Ignore it, 8944 # but warn the user (except for BASH, which is always set by the calling BASH). 8945 if test "xLN" != xBASH; then 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8947 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8948 fi 8949 # Try to locate tool using the code snippet 8950 for ac_prog in ln 8951 do 8952 # Extract the first word of "$ac_prog", so it can be a program name with args. 8953 set dummy $ac_prog; ac_word=$2 8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8955 $as_echo_n "checking for $ac_word... " >&6; } 8956 if ${ac_cv_path_LN+:} false; then : 8957 $as_echo_n "(cached) " >&6 8958 else 8959 case $LN in 8960 [\\/]* | ?:[\\/]*) 8961 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8962 ;; 8963 *) 8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8965 for as_dir in $PATH 8966 do 8967 IFS=$as_save_IFS 8968 test -z "$as_dir" && as_dir=. 8969 for ac_exec_ext in '' $ac_executable_extensions; do 8970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8971 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8973 break 2 8974 fi 8975 done 8976 done 8977 IFS=$as_save_IFS 8978 8979 ;; 8980 esac 8981 fi 8982 LN=$ac_cv_path_LN 8983 if test -n "$LN"; then 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8985 $as_echo "$LN" >&6; } 8986 else 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8988 $as_echo "no" >&6; } 8989 fi 8990 8991 8992 test -n "$LN" && break 8993 done 8994 8995 else 8996 # If it succeeded, then it was overridden by the user. We will use it 8997 # for the tool. 8998 8999 # First remove it from the list of overridden variables, so we can test 9000 # for unknown variables in the end. 9001 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9002 9003 # Check if we try to supply an empty value 9004 if test "x$LN" = x; then 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 9006 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9008 $as_echo_n "checking for LN... " >&6; } 9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9010 $as_echo "disabled" >&6; } 9011 else 9012 # Check if the provided tool contains a complete path. 9013 tool_specified="$LN" 9014 tool_basename="${tool_specified##*/}" 9015 if test "x$tool_basename" = "x$tool_specified"; then 9016 # A command without a complete path is provided, search $PATH. 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 9018 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 9019 # Extract the first word of "$tool_basename", so it can be a program name with args. 9020 set dummy $tool_basename; ac_word=$2 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9022 $as_echo_n "checking for $ac_word... " >&6; } 9023 if ${ac_cv_path_LN+:} false; then : 9024 $as_echo_n "(cached) " >&6 9025 else 9026 case $LN in 9027 [\\/]* | ?:[\\/]*) 9028 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9029 ;; 9030 *) 9031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9032 for as_dir in $PATH 9033 do 9034 IFS=$as_save_IFS 9035 test -z "$as_dir" && as_dir=. 9036 for ac_exec_ext in '' $ac_executable_extensions; do 9037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9038 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9040 break 2 9041 fi 9042 done 9043 done 9044 IFS=$as_save_IFS 9045 9046 ;; 9047 esac 9048 fi 9049 LN=$ac_cv_path_LN 9050 if test -n "$LN"; then 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9052 $as_echo "$LN" >&6; } 9053 else 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9055 $as_echo "no" >&6; } 9056 fi 9057 9058 9059 if test "x$LN" = x; then 9060 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9061 fi 9062 else 9063 # Otherwise we believe it is a complete path. Use it as it is. 9064 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9065 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9067 $as_echo_n "checking for LN... " >&6; } 9068 if test ! -x "$tool_specified"; then 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9070 $as_echo "not found" >&6; } 9071 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9072 fi 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9074 $as_echo "$tool_specified" >&6; } 9075 fi 9076 fi 9077 fi 9078 9079 fi 9080 9081 9082 9083 if test "x$LN" = x; then 9084 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9085 fi 9086 9087 9088 9089 9090 9091 # Publish this variable in the help. 9092 9093 9094 if [ -z "${LS+x}" ]; then 9095 # The variable is not set by user, try to locate tool using the code snippet 9096 for ac_prog in ls 9097 do 9098 # Extract the first word of "$ac_prog", so it can be a program name with args. 9099 set dummy $ac_prog; ac_word=$2 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9101 $as_echo_n "checking for $ac_word... " >&6; } 9102 if ${ac_cv_path_LS+:} false; then : 9103 $as_echo_n "(cached) " >&6 9104 else 9105 case $LS in 9106 [\\/]* | ?:[\\/]*) 9107 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9108 ;; 9109 *) 9110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9111 for as_dir in $PATH 9112 do 9113 IFS=$as_save_IFS 9114 test -z "$as_dir" && as_dir=. 9115 for ac_exec_ext in '' $ac_executable_extensions; do 9116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9117 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9119 break 2 9120 fi 9121 done 9122 done 9123 IFS=$as_save_IFS 9124 9125 ;; 9126 esac 9127 fi 9128 LS=$ac_cv_path_LS 9129 if test -n "$LS"; then 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9131 $as_echo "$LS" >&6; } 9132 else 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9134 $as_echo "no" >&6; } 9135 fi 9136 9137 9138 test -n "$LS" && break 9139 done 9140 9141 else 9142 # The variable is set, but is it from the command line or the environment? 9143 9144 # Try to remove the string !LS! from our list. 9145 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9146 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9147 # If it failed, the variable was not from the command line. Ignore it, 9148 # but warn the user (except for BASH, which is always set by the calling BASH). 9149 if test "xLS" != xBASH; then 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9151 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9152 fi 9153 # Try to locate tool using the code snippet 9154 for ac_prog in ls 9155 do 9156 # Extract the first word of "$ac_prog", so it can be a program name with args. 9157 set dummy $ac_prog; ac_word=$2 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9159 $as_echo_n "checking for $ac_word... " >&6; } 9160 if ${ac_cv_path_LS+:} false; then : 9161 $as_echo_n "(cached) " >&6 9162 else 9163 case $LS in 9164 [\\/]* | ?:[\\/]*) 9165 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9166 ;; 9167 *) 9168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9169 for as_dir in $PATH 9170 do 9171 IFS=$as_save_IFS 9172 test -z "$as_dir" && as_dir=. 9173 for ac_exec_ext in '' $ac_executable_extensions; do 9174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9175 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9177 break 2 9178 fi 9179 done 9180 done 9181 IFS=$as_save_IFS 9182 9183 ;; 9184 esac 9185 fi 9186 LS=$ac_cv_path_LS 9187 if test -n "$LS"; then 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9189 $as_echo "$LS" >&6; } 9190 else 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9192 $as_echo "no" >&6; } 9193 fi 9194 9195 9196 test -n "$LS" && break 9197 done 9198 9199 else 9200 # If it succeeded, then it was overridden by the user. We will use it 9201 # for the tool. 9202 9203 # First remove it from the list of overridden variables, so we can test 9204 # for unknown variables in the end. 9205 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9206 9207 # Check if we try to supply an empty value 9208 if test "x$LS" = x; then 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9210 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9212 $as_echo_n "checking for LS... " >&6; } 9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9214 $as_echo "disabled" >&6; } 9215 else 9216 # Check if the provided tool contains a complete path. 9217 tool_specified="$LS" 9218 tool_basename="${tool_specified##*/}" 9219 if test "x$tool_basename" = "x$tool_specified"; then 9220 # A command without a complete path is provided, search $PATH. 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9222 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9223 # Extract the first word of "$tool_basename", so it can be a program name with args. 9224 set dummy $tool_basename; ac_word=$2 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9226 $as_echo_n "checking for $ac_word... " >&6; } 9227 if ${ac_cv_path_LS+:} false; then : 9228 $as_echo_n "(cached) " >&6 9229 else 9230 case $LS in 9231 [\\/]* | ?:[\\/]*) 9232 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9233 ;; 9234 *) 9235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9236 for as_dir in $PATH 9237 do 9238 IFS=$as_save_IFS 9239 test -z "$as_dir" && as_dir=. 9240 for ac_exec_ext in '' $ac_executable_extensions; do 9241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9242 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9244 break 2 9245 fi 9246 done 9247 done 9248 IFS=$as_save_IFS 9249 9250 ;; 9251 esac 9252 fi 9253 LS=$ac_cv_path_LS 9254 if test -n "$LS"; then 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9256 $as_echo "$LS" >&6; } 9257 else 9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9259 $as_echo "no" >&6; } 9260 fi 9261 9262 9263 if test "x$LS" = x; then 9264 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9265 fi 9266 else 9267 # Otherwise we believe it is a complete path. Use it as it is. 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9269 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9271 $as_echo_n "checking for LS... " >&6; } 9272 if test ! -x "$tool_specified"; then 9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9274 $as_echo "not found" >&6; } 9275 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9276 fi 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9278 $as_echo "$tool_specified" >&6; } 9279 fi 9280 fi 9281 fi 9282 9283 fi 9284 9285 9286 9287 if test "x$LS" = x; then 9288 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9289 fi 9290 9291 9292 9293 9294 9295 # Publish this variable in the help. 9296 9297 9298 if [ -z "${MKDIR+x}" ]; then 9299 # The variable is not set by user, try to locate tool using the code snippet 9300 for ac_prog in mkdir 9301 do 9302 # Extract the first word of "$ac_prog", so it can be a program name with args. 9303 set dummy $ac_prog; ac_word=$2 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9305 $as_echo_n "checking for $ac_word... " >&6; } 9306 if ${ac_cv_path_MKDIR+:} false; then : 9307 $as_echo_n "(cached) " >&6 9308 else 9309 case $MKDIR in 9310 [\\/]* | ?:[\\/]*) 9311 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9312 ;; 9313 *) 9314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9315 for as_dir in $PATH 9316 do 9317 IFS=$as_save_IFS 9318 test -z "$as_dir" && as_dir=. 9319 for ac_exec_ext in '' $ac_executable_extensions; do 9320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9321 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9323 break 2 9324 fi 9325 done 9326 done 9327 IFS=$as_save_IFS 9328 9329 ;; 9330 esac 9331 fi 9332 MKDIR=$ac_cv_path_MKDIR 9333 if test -n "$MKDIR"; then 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9335 $as_echo "$MKDIR" >&6; } 9336 else 9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9338 $as_echo "no" >&6; } 9339 fi 9340 9341 9342 test -n "$MKDIR" && break 9343 done 9344 9345 else 9346 # The variable is set, but is it from the command line or the environment? 9347 9348 # Try to remove the string !MKDIR! from our list. 9349 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9350 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9351 # If it failed, the variable was not from the command line. Ignore it, 9352 # but warn the user (except for BASH, which is always set by the calling BASH). 9353 if test "xMKDIR" != xBASH; then 9354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9355 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9356 fi 9357 # Try to locate tool using the code snippet 9358 for ac_prog in mkdir 9359 do 9360 # Extract the first word of "$ac_prog", so it can be a program name with args. 9361 set dummy $ac_prog; ac_word=$2 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9363 $as_echo_n "checking for $ac_word... " >&6; } 9364 if ${ac_cv_path_MKDIR+:} false; then : 9365 $as_echo_n "(cached) " >&6 9366 else 9367 case $MKDIR in 9368 [\\/]* | ?:[\\/]*) 9369 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9370 ;; 9371 *) 9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9373 for as_dir in $PATH 9374 do 9375 IFS=$as_save_IFS 9376 test -z "$as_dir" && as_dir=. 9377 for ac_exec_ext in '' $ac_executable_extensions; do 9378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9379 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9381 break 2 9382 fi 9383 done 9384 done 9385 IFS=$as_save_IFS 9386 9387 ;; 9388 esac 9389 fi 9390 MKDIR=$ac_cv_path_MKDIR 9391 if test -n "$MKDIR"; then 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9393 $as_echo "$MKDIR" >&6; } 9394 else 9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9396 $as_echo "no" >&6; } 9397 fi 9398 9399 9400 test -n "$MKDIR" && break 9401 done 9402 9403 else 9404 # If it succeeded, then it was overridden by the user. We will use it 9405 # for the tool. 9406 9407 # First remove it from the list of overridden variables, so we can test 9408 # for unknown variables in the end. 9409 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9410 9411 # Check if we try to supply an empty value 9412 if test "x$MKDIR" = x; then 9413 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9414 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9416 $as_echo_n "checking for MKDIR... " >&6; } 9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9418 $as_echo "disabled" >&6; } 9419 else 9420 # Check if the provided tool contains a complete path. 9421 tool_specified="$MKDIR" 9422 tool_basename="${tool_specified##*/}" 9423 if test "x$tool_basename" = "x$tool_specified"; then 9424 # A command without a complete path is provided, search $PATH. 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9426 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9427 # Extract the first word of "$tool_basename", so it can be a program name with args. 9428 set dummy $tool_basename; ac_word=$2 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9430 $as_echo_n "checking for $ac_word... " >&6; } 9431 if ${ac_cv_path_MKDIR+:} false; then : 9432 $as_echo_n "(cached) " >&6 9433 else 9434 case $MKDIR in 9435 [\\/]* | ?:[\\/]*) 9436 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9437 ;; 9438 *) 9439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9440 for as_dir in $PATH 9441 do 9442 IFS=$as_save_IFS 9443 test -z "$as_dir" && as_dir=. 9444 for ac_exec_ext in '' $ac_executable_extensions; do 9445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9446 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9448 break 2 9449 fi 9450 done 9451 done 9452 IFS=$as_save_IFS 9453 9454 ;; 9455 esac 9456 fi 9457 MKDIR=$ac_cv_path_MKDIR 9458 if test -n "$MKDIR"; then 9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9460 $as_echo "$MKDIR" >&6; } 9461 else 9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9463 $as_echo "no" >&6; } 9464 fi 9465 9466 9467 if test "x$MKDIR" = x; then 9468 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9469 fi 9470 else 9471 # Otherwise we believe it is a complete path. Use it as it is. 9472 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9473 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9475 $as_echo_n "checking for MKDIR... " >&6; } 9476 if test ! -x "$tool_specified"; then 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9478 $as_echo "not found" >&6; } 9479 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9480 fi 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9482 $as_echo "$tool_specified" >&6; } 9483 fi 9484 fi 9485 fi 9486 9487 fi 9488 9489 9490 9491 if test "x$MKDIR" = x; then 9492 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9493 fi 9494 9495 9496 9497 9498 9499 # Publish this variable in the help. 9500 9501 9502 if [ -z "${MKTEMP+x}" ]; then 9503 # The variable is not set by user, try to locate tool using the code snippet 9504 for ac_prog in mktemp 9505 do 9506 # Extract the first word of "$ac_prog", so it can be a program name with args. 9507 set dummy $ac_prog; ac_word=$2 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9509 $as_echo_n "checking for $ac_word... " >&6; } 9510 if ${ac_cv_path_MKTEMP+:} false; then : 9511 $as_echo_n "(cached) " >&6 9512 else 9513 case $MKTEMP in 9514 [\\/]* | ?:[\\/]*) 9515 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9516 ;; 9517 *) 9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9519 for as_dir in $PATH 9520 do 9521 IFS=$as_save_IFS 9522 test -z "$as_dir" && as_dir=. 9523 for ac_exec_ext in '' $ac_executable_extensions; do 9524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9525 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9527 break 2 9528 fi 9529 done 9530 done 9531 IFS=$as_save_IFS 9532 9533 ;; 9534 esac 9535 fi 9536 MKTEMP=$ac_cv_path_MKTEMP 9537 if test -n "$MKTEMP"; then 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9539 $as_echo "$MKTEMP" >&6; } 9540 else 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9542 $as_echo "no" >&6; } 9543 fi 9544 9545 9546 test -n "$MKTEMP" && break 9547 done 9548 9549 else 9550 # The variable is set, but is it from the command line or the environment? 9551 9552 # Try to remove the string !MKTEMP! from our list. 9553 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9554 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9555 # If it failed, the variable was not from the command line. Ignore it, 9556 # but warn the user (except for BASH, which is always set by the calling BASH). 9557 if test "xMKTEMP" != xBASH; then 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9559 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9560 fi 9561 # Try to locate tool using the code snippet 9562 for ac_prog in mktemp 9563 do 9564 # Extract the first word of "$ac_prog", so it can be a program name with args. 9565 set dummy $ac_prog; ac_word=$2 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9567 $as_echo_n "checking for $ac_word... " >&6; } 9568 if ${ac_cv_path_MKTEMP+:} false; then : 9569 $as_echo_n "(cached) " >&6 9570 else 9571 case $MKTEMP in 9572 [\\/]* | ?:[\\/]*) 9573 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9574 ;; 9575 *) 9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9577 for as_dir in $PATH 9578 do 9579 IFS=$as_save_IFS 9580 test -z "$as_dir" && as_dir=. 9581 for ac_exec_ext in '' $ac_executable_extensions; do 9582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9583 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9585 break 2 9586 fi 9587 done 9588 done 9589 IFS=$as_save_IFS 9590 9591 ;; 9592 esac 9593 fi 9594 MKTEMP=$ac_cv_path_MKTEMP 9595 if test -n "$MKTEMP"; then 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9597 $as_echo "$MKTEMP" >&6; } 9598 else 9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9600 $as_echo "no" >&6; } 9601 fi 9602 9603 9604 test -n "$MKTEMP" && break 9605 done 9606 9607 else 9608 # If it succeeded, then it was overridden by the user. We will use it 9609 # for the tool. 9610 9611 # First remove it from the list of overridden variables, so we can test 9612 # for unknown variables in the end. 9613 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9614 9615 # Check if we try to supply an empty value 9616 if test "x$MKTEMP" = x; then 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9618 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9620 $as_echo_n "checking for MKTEMP... " >&6; } 9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9622 $as_echo "disabled" >&6; } 9623 else 9624 # Check if the provided tool contains a complete path. 9625 tool_specified="$MKTEMP" 9626 tool_basename="${tool_specified##*/}" 9627 if test "x$tool_basename" = "x$tool_specified"; then 9628 # A command without a complete path is provided, search $PATH. 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9630 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9631 # Extract the first word of "$tool_basename", so it can be a program name with args. 9632 set dummy $tool_basename; ac_word=$2 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9634 $as_echo_n "checking for $ac_word... " >&6; } 9635 if ${ac_cv_path_MKTEMP+:} false; then : 9636 $as_echo_n "(cached) " >&6 9637 else 9638 case $MKTEMP in 9639 [\\/]* | ?:[\\/]*) 9640 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9641 ;; 9642 *) 9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9644 for as_dir in $PATH 9645 do 9646 IFS=$as_save_IFS 9647 test -z "$as_dir" && as_dir=. 9648 for ac_exec_ext in '' $ac_executable_extensions; do 9649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9650 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9652 break 2 9653 fi 9654 done 9655 done 9656 IFS=$as_save_IFS 9657 9658 ;; 9659 esac 9660 fi 9661 MKTEMP=$ac_cv_path_MKTEMP 9662 if test -n "$MKTEMP"; then 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9664 $as_echo "$MKTEMP" >&6; } 9665 else 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9667 $as_echo "no" >&6; } 9668 fi 9669 9670 9671 if test "x$MKTEMP" = x; then 9672 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9673 fi 9674 else 9675 # Otherwise we believe it is a complete path. Use it as it is. 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9677 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9679 $as_echo_n "checking for MKTEMP... " >&6; } 9680 if test ! -x "$tool_specified"; then 9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9682 $as_echo "not found" >&6; } 9683 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9684 fi 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9686 $as_echo "$tool_specified" >&6; } 9687 fi 9688 fi 9689 fi 9690 9691 fi 9692 9693 9694 9695 if test "x$MKTEMP" = x; then 9696 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9697 fi 9698 9699 9700 9701 9702 9703 # Publish this variable in the help. 9704 9705 9706 if [ -z "${MV+x}" ]; then 9707 # The variable is not set by user, try to locate tool using the code snippet 9708 for ac_prog in mv 9709 do 9710 # Extract the first word of "$ac_prog", so it can be a program name with args. 9711 set dummy $ac_prog; ac_word=$2 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9713 $as_echo_n "checking for $ac_word... " >&6; } 9714 if ${ac_cv_path_MV+:} false; then : 9715 $as_echo_n "(cached) " >&6 9716 else 9717 case $MV in 9718 [\\/]* | ?:[\\/]*) 9719 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9720 ;; 9721 *) 9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9723 for as_dir in $PATH 9724 do 9725 IFS=$as_save_IFS 9726 test -z "$as_dir" && as_dir=. 9727 for ac_exec_ext in '' $ac_executable_extensions; do 9728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9729 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9731 break 2 9732 fi 9733 done 9734 done 9735 IFS=$as_save_IFS 9736 9737 ;; 9738 esac 9739 fi 9740 MV=$ac_cv_path_MV 9741 if test -n "$MV"; then 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9743 $as_echo "$MV" >&6; } 9744 else 9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9746 $as_echo "no" >&6; } 9747 fi 9748 9749 9750 test -n "$MV" && break 9751 done 9752 9753 else 9754 # The variable is set, but is it from the command line or the environment? 9755 9756 # Try to remove the string !MV! from our list. 9757 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9758 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9759 # If it failed, the variable was not from the command line. Ignore it, 9760 # but warn the user (except for BASH, which is always set by the calling BASH). 9761 if test "xMV" != xBASH; then 9762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9763 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9764 fi 9765 # Try to locate tool using the code snippet 9766 for ac_prog in mv 9767 do 9768 # Extract the first word of "$ac_prog", so it can be a program name with args. 9769 set dummy $ac_prog; ac_word=$2 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9771 $as_echo_n "checking for $ac_word... " >&6; } 9772 if ${ac_cv_path_MV+:} false; then : 9773 $as_echo_n "(cached) " >&6 9774 else 9775 case $MV in 9776 [\\/]* | ?:[\\/]*) 9777 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9778 ;; 9779 *) 9780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9781 for as_dir in $PATH 9782 do 9783 IFS=$as_save_IFS 9784 test -z "$as_dir" && as_dir=. 9785 for ac_exec_ext in '' $ac_executable_extensions; do 9786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9787 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9789 break 2 9790 fi 9791 done 9792 done 9793 IFS=$as_save_IFS 9794 9795 ;; 9796 esac 9797 fi 9798 MV=$ac_cv_path_MV 9799 if test -n "$MV"; then 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9801 $as_echo "$MV" >&6; } 9802 else 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9804 $as_echo "no" >&6; } 9805 fi 9806 9807 9808 test -n "$MV" && break 9809 done 9810 9811 else 9812 # If it succeeded, then it was overridden by the user. We will use it 9813 # for the tool. 9814 9815 # First remove it from the list of overridden variables, so we can test 9816 # for unknown variables in the end. 9817 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9818 9819 # Check if we try to supply an empty value 9820 if test "x$MV" = x; then 9821 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9822 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9824 $as_echo_n "checking for MV... " >&6; } 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9826 $as_echo "disabled" >&6; } 9827 else 9828 # Check if the provided tool contains a complete path. 9829 tool_specified="$MV" 9830 tool_basename="${tool_specified##*/}" 9831 if test "x$tool_basename" = "x$tool_specified"; then 9832 # A command without a complete path is provided, search $PATH. 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9834 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9835 # Extract the first word of "$tool_basename", so it can be a program name with args. 9836 set dummy $tool_basename; ac_word=$2 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9838 $as_echo_n "checking for $ac_word... " >&6; } 9839 if ${ac_cv_path_MV+:} false; then : 9840 $as_echo_n "(cached) " >&6 9841 else 9842 case $MV in 9843 [\\/]* | ?:[\\/]*) 9844 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9845 ;; 9846 *) 9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9848 for as_dir in $PATH 9849 do 9850 IFS=$as_save_IFS 9851 test -z "$as_dir" && as_dir=. 9852 for ac_exec_ext in '' $ac_executable_extensions; do 9853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9854 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9856 break 2 9857 fi 9858 done 9859 done 9860 IFS=$as_save_IFS 9861 9862 ;; 9863 esac 9864 fi 9865 MV=$ac_cv_path_MV 9866 if test -n "$MV"; then 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9868 $as_echo "$MV" >&6; } 9869 else 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9871 $as_echo "no" >&6; } 9872 fi 9873 9874 9875 if test "x$MV" = x; then 9876 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9877 fi 9878 else 9879 # Otherwise we believe it is a complete path. Use it as it is. 9880 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9881 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9883 $as_echo_n "checking for MV... " >&6; } 9884 if test ! -x "$tool_specified"; then 9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9886 $as_echo "not found" >&6; } 9887 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9888 fi 9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9890 $as_echo "$tool_specified" >&6; } 9891 fi 9892 fi 9893 fi 9894 9895 fi 9896 9897 9898 9899 if test "x$MV" = x; then 9900 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9901 fi 9902 9903 9904 9905 9906 9907 # Publish this variable in the help. 9908 9909 9910 if [ -z "${NAWK+x}" ]; then 9911 # The variable is not set by user, try to locate tool using the code snippet 9912 for ac_prog in nawk gawk awk 9913 do 9914 # Extract the first word of "$ac_prog", so it can be a program name with args. 9915 set dummy $ac_prog; ac_word=$2 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9917 $as_echo_n "checking for $ac_word... " >&6; } 9918 if ${ac_cv_path_NAWK+:} false; then : 9919 $as_echo_n "(cached) " >&6 9920 else 9921 case $NAWK in 9922 [\\/]* | ?:[\\/]*) 9923 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9924 ;; 9925 *) 9926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9927 for as_dir in $PATH 9928 do 9929 IFS=$as_save_IFS 9930 test -z "$as_dir" && as_dir=. 9931 for ac_exec_ext in '' $ac_executable_extensions; do 9932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9933 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9935 break 2 9936 fi 9937 done 9938 done 9939 IFS=$as_save_IFS 9940 9941 ;; 9942 esac 9943 fi 9944 NAWK=$ac_cv_path_NAWK 9945 if test -n "$NAWK"; then 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9947 $as_echo "$NAWK" >&6; } 9948 else 9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9950 $as_echo "no" >&6; } 9951 fi 9952 9953 9954 test -n "$NAWK" && break 9955 done 9956 9957 else 9958 # The variable is set, but is it from the command line or the environment? 9959 9960 # Try to remove the string !NAWK! from our list. 9961 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9962 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9963 # If it failed, the variable was not from the command line. Ignore it, 9964 # but warn the user (except for BASH, which is always set by the calling BASH). 9965 if test "xNAWK" != xBASH; then 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9967 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9968 fi 9969 # Try to locate tool using the code snippet 9970 for ac_prog in nawk gawk awk 9971 do 9972 # Extract the first word of "$ac_prog", so it can be a program name with args. 9973 set dummy $ac_prog; ac_word=$2 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9975 $as_echo_n "checking for $ac_word... " >&6; } 9976 if ${ac_cv_path_NAWK+:} false; then : 9977 $as_echo_n "(cached) " >&6 9978 else 9979 case $NAWK in 9980 [\\/]* | ?:[\\/]*) 9981 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9982 ;; 9983 *) 9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9985 for as_dir in $PATH 9986 do 9987 IFS=$as_save_IFS 9988 test -z "$as_dir" && as_dir=. 9989 for ac_exec_ext in '' $ac_executable_extensions; do 9990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9991 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9993 break 2 9994 fi 9995 done 9996 done 9997 IFS=$as_save_IFS 9998 9999 ;; 10000 esac 10001 fi 10002 NAWK=$ac_cv_path_NAWK 10003 if test -n "$NAWK"; then 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10005 $as_echo "$NAWK" >&6; } 10006 else 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10008 $as_echo "no" >&6; } 10009 fi 10010 10011 10012 test -n "$NAWK" && break 10013 done 10014 10015 else 10016 # If it succeeded, then it was overridden by the user. We will use it 10017 # for the tool. 10018 10019 # First remove it from the list of overridden variables, so we can test 10020 # for unknown variables in the end. 10021 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10022 10023 # Check if we try to supply an empty value 10024 if test "x$NAWK" = x; then 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 10026 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10028 $as_echo_n "checking for NAWK... " >&6; } 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10030 $as_echo "disabled" >&6; } 10031 else 10032 # Check if the provided tool contains a complete path. 10033 tool_specified="$NAWK" 10034 tool_basename="${tool_specified##*/}" 10035 if test "x$tool_basename" = "x$tool_specified"; then 10036 # A command without a complete path is provided, search $PATH. 10037 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 10038 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 10039 # Extract the first word of "$tool_basename", so it can be a program name with args. 10040 set dummy $tool_basename; ac_word=$2 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10042 $as_echo_n "checking for $ac_word... " >&6; } 10043 if ${ac_cv_path_NAWK+:} false; then : 10044 $as_echo_n "(cached) " >&6 10045 else 10046 case $NAWK in 10047 [\\/]* | ?:[\\/]*) 10048 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10049 ;; 10050 *) 10051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10052 for as_dir in $PATH 10053 do 10054 IFS=$as_save_IFS 10055 test -z "$as_dir" && as_dir=. 10056 for ac_exec_ext in '' $ac_executable_extensions; do 10057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10058 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10060 break 2 10061 fi 10062 done 10063 done 10064 IFS=$as_save_IFS 10065 10066 ;; 10067 esac 10068 fi 10069 NAWK=$ac_cv_path_NAWK 10070 if test -n "$NAWK"; then 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10072 $as_echo "$NAWK" >&6; } 10073 else 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10075 $as_echo "no" >&6; } 10076 fi 10077 10078 10079 if test "x$NAWK" = x; then 10080 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10081 fi 10082 else 10083 # Otherwise we believe it is a complete path. Use it as it is. 10084 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10085 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10087 $as_echo_n "checking for NAWK... " >&6; } 10088 if test ! -x "$tool_specified"; then 10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10090 $as_echo "not found" >&6; } 10091 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10092 fi 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10094 $as_echo "$tool_specified" >&6; } 10095 fi 10096 fi 10097 fi 10098 10099 fi 10100 10101 10102 10103 if test "x$NAWK" = x; then 10104 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10105 fi 10106 10107 10108 10109 10110 10111 # Publish this variable in the help. 10112 10113 10114 if [ -z "${PRINTF+x}" ]; then 10115 # The variable is not set by user, try to locate tool using the code snippet 10116 for ac_prog in printf 10117 do 10118 # Extract the first word of "$ac_prog", so it can be a program name with args. 10119 set dummy $ac_prog; ac_word=$2 10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10121 $as_echo_n "checking for $ac_word... " >&6; } 10122 if ${ac_cv_path_PRINTF+:} false; then : 10123 $as_echo_n "(cached) " >&6 10124 else 10125 case $PRINTF in 10126 [\\/]* | ?:[\\/]*) 10127 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10128 ;; 10129 *) 10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10131 for as_dir in $PATH 10132 do 10133 IFS=$as_save_IFS 10134 test -z "$as_dir" && as_dir=. 10135 for ac_exec_ext in '' $ac_executable_extensions; do 10136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10137 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10139 break 2 10140 fi 10141 done 10142 done 10143 IFS=$as_save_IFS 10144 10145 ;; 10146 esac 10147 fi 10148 PRINTF=$ac_cv_path_PRINTF 10149 if test -n "$PRINTF"; then 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10151 $as_echo "$PRINTF" >&6; } 10152 else 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10154 $as_echo "no" >&6; } 10155 fi 10156 10157 10158 test -n "$PRINTF" && break 10159 done 10160 10161 else 10162 # The variable is set, but is it from the command line or the environment? 10163 10164 # Try to remove the string !PRINTF! from our list. 10165 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10166 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10167 # If it failed, the variable was not from the command line. Ignore it, 10168 # but warn the user (except for BASH, which is always set by the calling BASH). 10169 if test "xPRINTF" != xBASH; then 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10171 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10172 fi 10173 # Try to locate tool using the code snippet 10174 for ac_prog in printf 10175 do 10176 # Extract the first word of "$ac_prog", so it can be a program name with args. 10177 set dummy $ac_prog; ac_word=$2 10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10179 $as_echo_n "checking for $ac_word... " >&6; } 10180 if ${ac_cv_path_PRINTF+:} false; then : 10181 $as_echo_n "(cached) " >&6 10182 else 10183 case $PRINTF in 10184 [\\/]* | ?:[\\/]*) 10185 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10186 ;; 10187 *) 10188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10189 for as_dir in $PATH 10190 do 10191 IFS=$as_save_IFS 10192 test -z "$as_dir" && as_dir=. 10193 for ac_exec_ext in '' $ac_executable_extensions; do 10194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10195 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10197 break 2 10198 fi 10199 done 10200 done 10201 IFS=$as_save_IFS 10202 10203 ;; 10204 esac 10205 fi 10206 PRINTF=$ac_cv_path_PRINTF 10207 if test -n "$PRINTF"; then 10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10209 $as_echo "$PRINTF" >&6; } 10210 else 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10212 $as_echo "no" >&6; } 10213 fi 10214 10215 10216 test -n "$PRINTF" && break 10217 done 10218 10219 else 10220 # If it succeeded, then it was overridden by the user. We will use it 10221 # for the tool. 10222 10223 # First remove it from the list of overridden variables, so we can test 10224 # for unknown variables in the end. 10225 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10226 10227 # Check if we try to supply an empty value 10228 if test "x$PRINTF" = x; then 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10230 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10232 $as_echo_n "checking for PRINTF... " >&6; } 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10234 $as_echo "disabled" >&6; } 10235 else 10236 # Check if the provided tool contains a complete path. 10237 tool_specified="$PRINTF" 10238 tool_basename="${tool_specified##*/}" 10239 if test "x$tool_basename" = "x$tool_specified"; then 10240 # A command without a complete path is provided, search $PATH. 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10242 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10243 # Extract the first word of "$tool_basename", so it can be a program name with args. 10244 set dummy $tool_basename; ac_word=$2 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10246 $as_echo_n "checking for $ac_word... " >&6; } 10247 if ${ac_cv_path_PRINTF+:} false; then : 10248 $as_echo_n "(cached) " >&6 10249 else 10250 case $PRINTF in 10251 [\\/]* | ?:[\\/]*) 10252 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10253 ;; 10254 *) 10255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10256 for as_dir in $PATH 10257 do 10258 IFS=$as_save_IFS 10259 test -z "$as_dir" && as_dir=. 10260 for ac_exec_ext in '' $ac_executable_extensions; do 10261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10262 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10264 break 2 10265 fi 10266 done 10267 done 10268 IFS=$as_save_IFS 10269 10270 ;; 10271 esac 10272 fi 10273 PRINTF=$ac_cv_path_PRINTF 10274 if test -n "$PRINTF"; then 10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10276 $as_echo "$PRINTF" >&6; } 10277 else 10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10279 $as_echo "no" >&6; } 10280 fi 10281 10282 10283 if test "x$PRINTF" = x; then 10284 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10285 fi 10286 else 10287 # Otherwise we believe it is a complete path. Use it as it is. 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10289 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10291 $as_echo_n "checking for PRINTF... " >&6; } 10292 if test ! -x "$tool_specified"; then 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10294 $as_echo "not found" >&6; } 10295 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10296 fi 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10298 $as_echo "$tool_specified" >&6; } 10299 fi 10300 fi 10301 fi 10302 10303 fi 10304 10305 10306 10307 if test "x$PRINTF" = x; then 10308 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10309 fi 10310 10311 10312 10313 10314 10315 # Publish this variable in the help. 10316 10317 10318 if [ -z "${RM+x}" ]; then 10319 # The variable is not set by user, try to locate tool using the code snippet 10320 for ac_prog in rm 10321 do 10322 # Extract the first word of "$ac_prog", so it can be a program name with args. 10323 set dummy $ac_prog; ac_word=$2 10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10325 $as_echo_n "checking for $ac_word... " >&6; } 10326 if ${ac_cv_path_RM+:} false; then : 10327 $as_echo_n "(cached) " >&6 10328 else 10329 case $RM in 10330 [\\/]* | ?:[\\/]*) 10331 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10332 ;; 10333 *) 10334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10335 for as_dir in $PATH 10336 do 10337 IFS=$as_save_IFS 10338 test -z "$as_dir" && as_dir=. 10339 for ac_exec_ext in '' $ac_executable_extensions; do 10340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10341 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10343 break 2 10344 fi 10345 done 10346 done 10347 IFS=$as_save_IFS 10348 10349 ;; 10350 esac 10351 fi 10352 RM=$ac_cv_path_RM 10353 if test -n "$RM"; then 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10355 $as_echo "$RM" >&6; } 10356 else 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10358 $as_echo "no" >&6; } 10359 fi 10360 10361 10362 test -n "$RM" && break 10363 done 10364 10365 else 10366 # The variable is set, but is it from the command line or the environment? 10367 10368 # Try to remove the string !RM! from our list. 10369 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10370 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10371 # If it failed, the variable was not from the command line. Ignore it, 10372 # but warn the user (except for BASH, which is always set by the calling BASH). 10373 if test "xRM" != xBASH; then 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10375 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10376 fi 10377 # Try to locate tool using the code snippet 10378 for ac_prog in rm 10379 do 10380 # Extract the first word of "$ac_prog", so it can be a program name with args. 10381 set dummy $ac_prog; ac_word=$2 10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10383 $as_echo_n "checking for $ac_word... " >&6; } 10384 if ${ac_cv_path_RM+:} false; then : 10385 $as_echo_n "(cached) " >&6 10386 else 10387 case $RM in 10388 [\\/]* | ?:[\\/]*) 10389 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10390 ;; 10391 *) 10392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10393 for as_dir in $PATH 10394 do 10395 IFS=$as_save_IFS 10396 test -z "$as_dir" && as_dir=. 10397 for ac_exec_ext in '' $ac_executable_extensions; do 10398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10399 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10401 break 2 10402 fi 10403 done 10404 done 10405 IFS=$as_save_IFS 10406 10407 ;; 10408 esac 10409 fi 10410 RM=$ac_cv_path_RM 10411 if test -n "$RM"; then 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10413 $as_echo "$RM" >&6; } 10414 else 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10416 $as_echo "no" >&6; } 10417 fi 10418 10419 10420 test -n "$RM" && break 10421 done 10422 10423 else 10424 # If it succeeded, then it was overridden by the user. We will use it 10425 # for the tool. 10426 10427 # First remove it from the list of overridden variables, so we can test 10428 # for unknown variables in the end. 10429 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10430 10431 # Check if we try to supply an empty value 10432 if test "x$RM" = x; then 10433 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10434 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10436 $as_echo_n "checking for RM... " >&6; } 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10438 $as_echo "disabled" >&6; } 10439 else 10440 # Check if the provided tool contains a complete path. 10441 tool_specified="$RM" 10442 tool_basename="${tool_specified##*/}" 10443 if test "x$tool_basename" = "x$tool_specified"; then 10444 # A command without a complete path is provided, search $PATH. 10445 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10446 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10447 # Extract the first word of "$tool_basename", so it can be a program name with args. 10448 set dummy $tool_basename; ac_word=$2 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10450 $as_echo_n "checking for $ac_word... " >&6; } 10451 if ${ac_cv_path_RM+:} false; then : 10452 $as_echo_n "(cached) " >&6 10453 else 10454 case $RM in 10455 [\\/]* | ?:[\\/]*) 10456 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10457 ;; 10458 *) 10459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10460 for as_dir in $PATH 10461 do 10462 IFS=$as_save_IFS 10463 test -z "$as_dir" && as_dir=. 10464 for ac_exec_ext in '' $ac_executable_extensions; do 10465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10466 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10468 break 2 10469 fi 10470 done 10471 done 10472 IFS=$as_save_IFS 10473 10474 ;; 10475 esac 10476 fi 10477 RM=$ac_cv_path_RM 10478 if test -n "$RM"; then 10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10480 $as_echo "$RM" >&6; } 10481 else 10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10483 $as_echo "no" >&6; } 10484 fi 10485 10486 10487 if test "x$RM" = x; then 10488 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10489 fi 10490 else 10491 # Otherwise we believe it is a complete path. Use it as it is. 10492 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10493 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10495 $as_echo_n "checking for RM... " >&6; } 10496 if test ! -x "$tool_specified"; then 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10498 $as_echo "not found" >&6; } 10499 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10500 fi 10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10502 $as_echo "$tool_specified" >&6; } 10503 fi 10504 fi 10505 fi 10506 10507 fi 10508 10509 10510 10511 if test "x$RM" = x; then 10512 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10513 fi 10514 10515 10516 10517 10518 10519 # Publish this variable in the help. 10520 10521 10522 if [ -z "${RMDIR+x}" ]; then 10523 # The variable is not set by user, try to locate tool using the code snippet 10524 for ac_prog in rmdir 10525 do 10526 # Extract the first word of "$ac_prog", so it can be a program name with args. 10527 set dummy $ac_prog; ac_word=$2 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10529 $as_echo_n "checking for $ac_word... " >&6; } 10530 if ${ac_cv_path_RMDIR+:} false; then : 10531 $as_echo_n "(cached) " >&6 10532 else 10533 case $RMDIR in 10534 [\\/]* | ?:[\\/]*) 10535 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10536 ;; 10537 *) 10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10539 for as_dir in $PATH 10540 do 10541 IFS=$as_save_IFS 10542 test -z "$as_dir" && as_dir=. 10543 for ac_exec_ext in '' $ac_executable_extensions; do 10544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10545 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10547 break 2 10548 fi 10549 done 10550 done 10551 IFS=$as_save_IFS 10552 10553 ;; 10554 esac 10555 fi 10556 RMDIR=$ac_cv_path_RMDIR 10557 if test -n "$RMDIR"; then 10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10559 $as_echo "$RMDIR" >&6; } 10560 else 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10562 $as_echo "no" >&6; } 10563 fi 10564 10565 10566 test -n "$RMDIR" && break 10567 done 10568 10569 else 10570 # The variable is set, but is it from the command line or the environment? 10571 10572 # Try to remove the string !RMDIR! from our list. 10573 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10574 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10575 # If it failed, the variable was not from the command line. Ignore it, 10576 # but warn the user (except for BASH, which is always set by the calling BASH). 10577 if test "xRMDIR" != xBASH; then 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10579 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10580 fi 10581 # Try to locate tool using the code snippet 10582 for ac_prog in rmdir 10583 do 10584 # Extract the first word of "$ac_prog", so it can be a program name with args. 10585 set dummy $ac_prog; ac_word=$2 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10587 $as_echo_n "checking for $ac_word... " >&6; } 10588 if ${ac_cv_path_RMDIR+:} false; then : 10589 $as_echo_n "(cached) " >&6 10590 else 10591 case $RMDIR in 10592 [\\/]* | ?:[\\/]*) 10593 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10594 ;; 10595 *) 10596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10597 for as_dir in $PATH 10598 do 10599 IFS=$as_save_IFS 10600 test -z "$as_dir" && as_dir=. 10601 for ac_exec_ext in '' $ac_executable_extensions; do 10602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10603 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10605 break 2 10606 fi 10607 done 10608 done 10609 IFS=$as_save_IFS 10610 10611 ;; 10612 esac 10613 fi 10614 RMDIR=$ac_cv_path_RMDIR 10615 if test -n "$RMDIR"; then 10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10617 $as_echo "$RMDIR" >&6; } 10618 else 10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10620 $as_echo "no" >&6; } 10621 fi 10622 10623 10624 test -n "$RMDIR" && break 10625 done 10626 10627 else 10628 # If it succeeded, then it was overridden by the user. We will use it 10629 # for the tool. 10630 10631 # First remove it from the list of overridden variables, so we can test 10632 # for unknown variables in the end. 10633 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10634 10635 # Check if we try to supply an empty value 10636 if test "x$RMDIR" = x; then 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10638 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10640 $as_echo_n "checking for RMDIR... " >&6; } 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10642 $as_echo "disabled" >&6; } 10643 else 10644 # Check if the provided tool contains a complete path. 10645 tool_specified="$RMDIR" 10646 tool_basename="${tool_specified##*/}" 10647 if test "x$tool_basename" = "x$tool_specified"; then 10648 # A command without a complete path is provided, search $PATH. 10649 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10650 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10651 # Extract the first word of "$tool_basename", so it can be a program name with args. 10652 set dummy $tool_basename; ac_word=$2 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10654 $as_echo_n "checking for $ac_word... " >&6; } 10655 if ${ac_cv_path_RMDIR+:} false; then : 10656 $as_echo_n "(cached) " >&6 10657 else 10658 case $RMDIR in 10659 [\\/]* | ?:[\\/]*) 10660 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10661 ;; 10662 *) 10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10664 for as_dir in $PATH 10665 do 10666 IFS=$as_save_IFS 10667 test -z "$as_dir" && as_dir=. 10668 for ac_exec_ext in '' $ac_executable_extensions; do 10669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10670 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10672 break 2 10673 fi 10674 done 10675 done 10676 IFS=$as_save_IFS 10677 10678 ;; 10679 esac 10680 fi 10681 RMDIR=$ac_cv_path_RMDIR 10682 if test -n "$RMDIR"; then 10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10684 $as_echo "$RMDIR" >&6; } 10685 else 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10687 $as_echo "no" >&6; } 10688 fi 10689 10690 10691 if test "x$RMDIR" = x; then 10692 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10693 fi 10694 else 10695 # Otherwise we believe it is a complete path. Use it as it is. 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10697 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10699 $as_echo_n "checking for RMDIR... " >&6; } 10700 if test ! -x "$tool_specified"; then 10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10702 $as_echo "not found" >&6; } 10703 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10704 fi 10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10706 $as_echo "$tool_specified" >&6; } 10707 fi 10708 fi 10709 fi 10710 10711 fi 10712 10713 10714 10715 if test "x$RMDIR" = x; then 10716 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10717 fi 10718 10719 10720 10721 10722 10723 # Publish this variable in the help. 10724 10725 10726 if [ -z "${SH+x}" ]; then 10727 # The variable is not set by user, try to locate tool using the code snippet 10728 for ac_prog in sh 10729 do 10730 # Extract the first word of "$ac_prog", so it can be a program name with args. 10731 set dummy $ac_prog; ac_word=$2 10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10733 $as_echo_n "checking for $ac_word... " >&6; } 10734 if ${ac_cv_path_SH+:} false; then : 10735 $as_echo_n "(cached) " >&6 10736 else 10737 case $SH in 10738 [\\/]* | ?:[\\/]*) 10739 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10740 ;; 10741 *) 10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10743 for as_dir in $PATH 10744 do 10745 IFS=$as_save_IFS 10746 test -z "$as_dir" && as_dir=. 10747 for ac_exec_ext in '' $ac_executable_extensions; do 10748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10749 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10751 break 2 10752 fi 10753 done 10754 done 10755 IFS=$as_save_IFS 10756 10757 ;; 10758 esac 10759 fi 10760 SH=$ac_cv_path_SH 10761 if test -n "$SH"; then 10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10763 $as_echo "$SH" >&6; } 10764 else 10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10766 $as_echo "no" >&6; } 10767 fi 10768 10769 10770 test -n "$SH" && break 10771 done 10772 10773 else 10774 # The variable is set, but is it from the command line or the environment? 10775 10776 # Try to remove the string !SH! from our list. 10777 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10778 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10779 # If it failed, the variable was not from the command line. Ignore it, 10780 # but warn the user (except for BASH, which is always set by the calling BASH). 10781 if test "xSH" != xBASH; then 10782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10783 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10784 fi 10785 # Try to locate tool using the code snippet 10786 for ac_prog in sh 10787 do 10788 # Extract the first word of "$ac_prog", so it can be a program name with args. 10789 set dummy $ac_prog; ac_word=$2 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10791 $as_echo_n "checking for $ac_word... " >&6; } 10792 if ${ac_cv_path_SH+:} false; then : 10793 $as_echo_n "(cached) " >&6 10794 else 10795 case $SH in 10796 [\\/]* | ?:[\\/]*) 10797 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10798 ;; 10799 *) 10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10801 for as_dir in $PATH 10802 do 10803 IFS=$as_save_IFS 10804 test -z "$as_dir" && as_dir=. 10805 for ac_exec_ext in '' $ac_executable_extensions; do 10806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10807 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10809 break 2 10810 fi 10811 done 10812 done 10813 IFS=$as_save_IFS 10814 10815 ;; 10816 esac 10817 fi 10818 SH=$ac_cv_path_SH 10819 if test -n "$SH"; then 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10821 $as_echo "$SH" >&6; } 10822 else 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10824 $as_echo "no" >&6; } 10825 fi 10826 10827 10828 test -n "$SH" && break 10829 done 10830 10831 else 10832 # If it succeeded, then it was overridden by the user. We will use it 10833 # for the tool. 10834 10835 # First remove it from the list of overridden variables, so we can test 10836 # for unknown variables in the end. 10837 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10838 10839 # Check if we try to supply an empty value 10840 if test "x$SH" = x; then 10841 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10842 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10844 $as_echo_n "checking for SH... " >&6; } 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10846 $as_echo "disabled" >&6; } 10847 else 10848 # Check if the provided tool contains a complete path. 10849 tool_specified="$SH" 10850 tool_basename="${tool_specified##*/}" 10851 if test "x$tool_basename" = "x$tool_specified"; then 10852 # A command without a complete path is provided, search $PATH. 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10854 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10855 # Extract the first word of "$tool_basename", so it can be a program name with args. 10856 set dummy $tool_basename; ac_word=$2 10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10858 $as_echo_n "checking for $ac_word... " >&6; } 10859 if ${ac_cv_path_SH+:} false; then : 10860 $as_echo_n "(cached) " >&6 10861 else 10862 case $SH in 10863 [\\/]* | ?:[\\/]*) 10864 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10865 ;; 10866 *) 10867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10868 for as_dir in $PATH 10869 do 10870 IFS=$as_save_IFS 10871 test -z "$as_dir" && as_dir=. 10872 for ac_exec_ext in '' $ac_executable_extensions; do 10873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10874 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10876 break 2 10877 fi 10878 done 10879 done 10880 IFS=$as_save_IFS 10881 10882 ;; 10883 esac 10884 fi 10885 SH=$ac_cv_path_SH 10886 if test -n "$SH"; then 10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10888 $as_echo "$SH" >&6; } 10889 else 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10891 $as_echo "no" >&6; } 10892 fi 10893 10894 10895 if test "x$SH" = x; then 10896 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10897 fi 10898 else 10899 # Otherwise we believe it is a complete path. Use it as it is. 10900 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10901 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10903 $as_echo_n "checking for SH... " >&6; } 10904 if test ! -x "$tool_specified"; then 10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10906 $as_echo "not found" >&6; } 10907 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10908 fi 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10910 $as_echo "$tool_specified" >&6; } 10911 fi 10912 fi 10913 fi 10914 10915 fi 10916 10917 10918 10919 if test "x$SH" = x; then 10920 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10921 fi 10922 10923 10924 10925 10926 10927 # Publish this variable in the help. 10928 10929 10930 if [ -z "${SORT+x}" ]; then 10931 # The variable is not set by user, try to locate tool using the code snippet 10932 for ac_prog in sort 10933 do 10934 # Extract the first word of "$ac_prog", so it can be a program name with args. 10935 set dummy $ac_prog; ac_word=$2 10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10937 $as_echo_n "checking for $ac_word... " >&6; } 10938 if ${ac_cv_path_SORT+:} false; then : 10939 $as_echo_n "(cached) " >&6 10940 else 10941 case $SORT in 10942 [\\/]* | ?:[\\/]*) 10943 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10944 ;; 10945 *) 10946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10947 for as_dir in $PATH 10948 do 10949 IFS=$as_save_IFS 10950 test -z "$as_dir" && as_dir=. 10951 for ac_exec_ext in '' $ac_executable_extensions; do 10952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10953 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10955 break 2 10956 fi 10957 done 10958 done 10959 IFS=$as_save_IFS 10960 10961 ;; 10962 esac 10963 fi 10964 SORT=$ac_cv_path_SORT 10965 if test -n "$SORT"; then 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10967 $as_echo "$SORT" >&6; } 10968 else 10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10970 $as_echo "no" >&6; } 10971 fi 10972 10973 10974 test -n "$SORT" && break 10975 done 10976 10977 else 10978 # The variable is set, but is it from the command line or the environment? 10979 10980 # Try to remove the string !SORT! from our list. 10981 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 10982 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10983 # If it failed, the variable was not from the command line. Ignore it, 10984 # but warn the user (except for BASH, which is always set by the calling BASH). 10985 if test "xSORT" != xBASH; then 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 10987 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 10988 fi 10989 # Try to locate tool using the code snippet 10990 for ac_prog in sort 10991 do 10992 # Extract the first word of "$ac_prog", so it can be a program name with args. 10993 set dummy $ac_prog; ac_word=$2 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10995 $as_echo_n "checking for $ac_word... " >&6; } 10996 if ${ac_cv_path_SORT+:} false; then : 10997 $as_echo_n "(cached) " >&6 10998 else 10999 case $SORT in 11000 [\\/]* | ?:[\\/]*) 11001 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11002 ;; 11003 *) 11004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11005 for as_dir in $PATH 11006 do 11007 IFS=$as_save_IFS 11008 test -z "$as_dir" && as_dir=. 11009 for ac_exec_ext in '' $ac_executable_extensions; do 11010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11011 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11013 break 2 11014 fi 11015 done 11016 done 11017 IFS=$as_save_IFS 11018 11019 ;; 11020 esac 11021 fi 11022 SORT=$ac_cv_path_SORT 11023 if test -n "$SORT"; then 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11025 $as_echo "$SORT" >&6; } 11026 else 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11028 $as_echo "no" >&6; } 11029 fi 11030 11031 11032 test -n "$SORT" && break 11033 done 11034 11035 else 11036 # If it succeeded, then it was overridden by the user. We will use it 11037 # for the tool. 11038 11039 # First remove it from the list of overridden variables, so we can test 11040 # for unknown variables in the end. 11041 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11042 11043 # Check if we try to supply an empty value 11044 if test "x$SORT" = x; then 11045 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 11046 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11048 $as_echo_n "checking for SORT... " >&6; } 11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11050 $as_echo "disabled" >&6; } 11051 else 11052 # Check if the provided tool contains a complete path. 11053 tool_specified="$SORT" 11054 tool_basename="${tool_specified##*/}" 11055 if test "x$tool_basename" = "x$tool_specified"; then 11056 # A command without a complete path is provided, search $PATH. 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 11058 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 11059 # Extract the first word of "$tool_basename", so it can be a program name with args. 11060 set dummy $tool_basename; ac_word=$2 11061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11062 $as_echo_n "checking for $ac_word... " >&6; } 11063 if ${ac_cv_path_SORT+:} false; then : 11064 $as_echo_n "(cached) " >&6 11065 else 11066 case $SORT in 11067 [\\/]* | ?:[\\/]*) 11068 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11069 ;; 11070 *) 11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11072 for as_dir in $PATH 11073 do 11074 IFS=$as_save_IFS 11075 test -z "$as_dir" && as_dir=. 11076 for ac_exec_ext in '' $ac_executable_extensions; do 11077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11078 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11080 break 2 11081 fi 11082 done 11083 done 11084 IFS=$as_save_IFS 11085 11086 ;; 11087 esac 11088 fi 11089 SORT=$ac_cv_path_SORT 11090 if test -n "$SORT"; then 11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11092 $as_echo "$SORT" >&6; } 11093 else 11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11095 $as_echo "no" >&6; } 11096 fi 11097 11098 11099 if test "x$SORT" = x; then 11100 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11101 fi 11102 else 11103 # Otherwise we believe it is a complete path. Use it as it is. 11104 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11105 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11107 $as_echo_n "checking for SORT... " >&6; } 11108 if test ! -x "$tool_specified"; then 11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11110 $as_echo "not found" >&6; } 11111 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11112 fi 11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11114 $as_echo "$tool_specified" >&6; } 11115 fi 11116 fi 11117 fi 11118 11119 fi 11120 11121 11122 11123 if test "x$SORT" = x; then 11124 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11125 fi 11126 11127 11128 11129 11130 11131 # Publish this variable in the help. 11132 11133 11134 if [ -z "${TAIL+x}" ]; then 11135 # The variable is not set by user, try to locate tool using the code snippet 11136 for ac_prog in tail 11137 do 11138 # Extract the first word of "$ac_prog", so it can be a program name with args. 11139 set dummy $ac_prog; ac_word=$2 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11141 $as_echo_n "checking for $ac_word... " >&6; } 11142 if ${ac_cv_path_TAIL+:} false; then : 11143 $as_echo_n "(cached) " >&6 11144 else 11145 case $TAIL in 11146 [\\/]* | ?:[\\/]*) 11147 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11148 ;; 11149 *) 11150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11151 for as_dir in $PATH 11152 do 11153 IFS=$as_save_IFS 11154 test -z "$as_dir" && as_dir=. 11155 for ac_exec_ext in '' $ac_executable_extensions; do 11156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11157 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11159 break 2 11160 fi 11161 done 11162 done 11163 IFS=$as_save_IFS 11164 11165 ;; 11166 esac 11167 fi 11168 TAIL=$ac_cv_path_TAIL 11169 if test -n "$TAIL"; then 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11171 $as_echo "$TAIL" >&6; } 11172 else 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11174 $as_echo "no" >&6; } 11175 fi 11176 11177 11178 test -n "$TAIL" && break 11179 done 11180 11181 else 11182 # The variable is set, but is it from the command line or the environment? 11183 11184 # Try to remove the string !TAIL! from our list. 11185 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11186 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11187 # If it failed, the variable was not from the command line. Ignore it, 11188 # but warn the user (except for BASH, which is always set by the calling BASH). 11189 if test "xTAIL" != xBASH; then 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11191 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11192 fi 11193 # Try to locate tool using the code snippet 11194 for ac_prog in tail 11195 do 11196 # Extract the first word of "$ac_prog", so it can be a program name with args. 11197 set dummy $ac_prog; ac_word=$2 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11199 $as_echo_n "checking for $ac_word... " >&6; } 11200 if ${ac_cv_path_TAIL+:} false; then : 11201 $as_echo_n "(cached) " >&6 11202 else 11203 case $TAIL in 11204 [\\/]* | ?:[\\/]*) 11205 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11206 ;; 11207 *) 11208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11209 for as_dir in $PATH 11210 do 11211 IFS=$as_save_IFS 11212 test -z "$as_dir" && as_dir=. 11213 for ac_exec_ext in '' $ac_executable_extensions; do 11214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11215 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11217 break 2 11218 fi 11219 done 11220 done 11221 IFS=$as_save_IFS 11222 11223 ;; 11224 esac 11225 fi 11226 TAIL=$ac_cv_path_TAIL 11227 if test -n "$TAIL"; then 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11229 $as_echo "$TAIL" >&6; } 11230 else 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11232 $as_echo "no" >&6; } 11233 fi 11234 11235 11236 test -n "$TAIL" && break 11237 done 11238 11239 else 11240 # If it succeeded, then it was overridden by the user. We will use it 11241 # for the tool. 11242 11243 # First remove it from the list of overridden variables, so we can test 11244 # for unknown variables in the end. 11245 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11246 11247 # Check if we try to supply an empty value 11248 if test "x$TAIL" = x; then 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11250 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11252 $as_echo_n "checking for TAIL... " >&6; } 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11254 $as_echo "disabled" >&6; } 11255 else 11256 # Check if the provided tool contains a complete path. 11257 tool_specified="$TAIL" 11258 tool_basename="${tool_specified##*/}" 11259 if test "x$tool_basename" = "x$tool_specified"; then 11260 # A command without a complete path is provided, search $PATH. 11261 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11262 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11263 # Extract the first word of "$tool_basename", so it can be a program name with args. 11264 set dummy $tool_basename; ac_word=$2 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11266 $as_echo_n "checking for $ac_word... " >&6; } 11267 if ${ac_cv_path_TAIL+:} false; then : 11268 $as_echo_n "(cached) " >&6 11269 else 11270 case $TAIL in 11271 [\\/]* | ?:[\\/]*) 11272 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11273 ;; 11274 *) 11275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11276 for as_dir in $PATH 11277 do 11278 IFS=$as_save_IFS 11279 test -z "$as_dir" && as_dir=. 11280 for ac_exec_ext in '' $ac_executable_extensions; do 11281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11282 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11284 break 2 11285 fi 11286 done 11287 done 11288 IFS=$as_save_IFS 11289 11290 ;; 11291 esac 11292 fi 11293 TAIL=$ac_cv_path_TAIL 11294 if test -n "$TAIL"; then 11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11296 $as_echo "$TAIL" >&6; } 11297 else 11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11299 $as_echo "no" >&6; } 11300 fi 11301 11302 11303 if test "x$TAIL" = x; then 11304 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11305 fi 11306 else 11307 # Otherwise we believe it is a complete path. Use it as it is. 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11309 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11311 $as_echo_n "checking for TAIL... " >&6; } 11312 if test ! -x "$tool_specified"; then 11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11314 $as_echo "not found" >&6; } 11315 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11316 fi 11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11318 $as_echo "$tool_specified" >&6; } 11319 fi 11320 fi 11321 fi 11322 11323 fi 11324 11325 11326 11327 if test "x$TAIL" = x; then 11328 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11329 fi 11330 11331 11332 11333 11334 11335 # Publish this variable in the help. 11336 11337 11338 if [ -z "${TAR+x}" ]; then 11339 # The variable is not set by user, try to locate tool using the code snippet 11340 for ac_prog in gtar tar 11341 do 11342 # Extract the first word of "$ac_prog", so it can be a program name with args. 11343 set dummy $ac_prog; ac_word=$2 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11345 $as_echo_n "checking for $ac_word... " >&6; } 11346 if ${ac_cv_path_TAR+:} false; then : 11347 $as_echo_n "(cached) " >&6 11348 else 11349 case $TAR in 11350 [\\/]* | ?:[\\/]*) 11351 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11352 ;; 11353 *) 11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11355 for as_dir in $PATH 11356 do 11357 IFS=$as_save_IFS 11358 test -z "$as_dir" && as_dir=. 11359 for ac_exec_ext in '' $ac_executable_extensions; do 11360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11361 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11363 break 2 11364 fi 11365 done 11366 done 11367 IFS=$as_save_IFS 11368 11369 ;; 11370 esac 11371 fi 11372 TAR=$ac_cv_path_TAR 11373 if test -n "$TAR"; then 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11375 $as_echo "$TAR" >&6; } 11376 else 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11378 $as_echo "no" >&6; } 11379 fi 11380 11381 11382 test -n "$TAR" && break 11383 done 11384 11385 else 11386 # The variable is set, but is it from the command line or the environment? 11387 11388 # Try to remove the string !TAR! from our list. 11389 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11390 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11391 # If it failed, the variable was not from the command line. Ignore it, 11392 # but warn the user (except for BASH, which is always set by the calling BASH). 11393 if test "xTAR" != xBASH; then 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11395 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11396 fi 11397 # Try to locate tool using the code snippet 11398 for ac_prog in gtar tar 11399 do 11400 # Extract the first word of "$ac_prog", so it can be a program name with args. 11401 set dummy $ac_prog; ac_word=$2 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11403 $as_echo_n "checking for $ac_word... " >&6; } 11404 if ${ac_cv_path_TAR+:} false; then : 11405 $as_echo_n "(cached) " >&6 11406 else 11407 case $TAR in 11408 [\\/]* | ?:[\\/]*) 11409 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11410 ;; 11411 *) 11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11413 for as_dir in $PATH 11414 do 11415 IFS=$as_save_IFS 11416 test -z "$as_dir" && as_dir=. 11417 for ac_exec_ext in '' $ac_executable_extensions; do 11418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11419 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11421 break 2 11422 fi 11423 done 11424 done 11425 IFS=$as_save_IFS 11426 11427 ;; 11428 esac 11429 fi 11430 TAR=$ac_cv_path_TAR 11431 if test -n "$TAR"; then 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11433 $as_echo "$TAR" >&6; } 11434 else 11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11436 $as_echo "no" >&6; } 11437 fi 11438 11439 11440 test -n "$TAR" && break 11441 done 11442 11443 else 11444 # If it succeeded, then it was overridden by the user. We will use it 11445 # for the tool. 11446 11447 # First remove it from the list of overridden variables, so we can test 11448 # for unknown variables in the end. 11449 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11450 11451 # Check if we try to supply an empty value 11452 if test "x$TAR" = x; then 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11454 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11456 $as_echo_n "checking for TAR... " >&6; } 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11458 $as_echo "disabled" >&6; } 11459 else 11460 # Check if the provided tool contains a complete path. 11461 tool_specified="$TAR" 11462 tool_basename="${tool_specified##*/}" 11463 if test "x$tool_basename" = "x$tool_specified"; then 11464 # A command without a complete path is provided, search $PATH. 11465 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11466 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11467 # Extract the first word of "$tool_basename", so it can be a program name with args. 11468 set dummy $tool_basename; ac_word=$2 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11470 $as_echo_n "checking for $ac_word... " >&6; } 11471 if ${ac_cv_path_TAR+:} false; then : 11472 $as_echo_n "(cached) " >&6 11473 else 11474 case $TAR in 11475 [\\/]* | ?:[\\/]*) 11476 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11477 ;; 11478 *) 11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11480 for as_dir in $PATH 11481 do 11482 IFS=$as_save_IFS 11483 test -z "$as_dir" && as_dir=. 11484 for ac_exec_ext in '' $ac_executable_extensions; do 11485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11486 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11488 break 2 11489 fi 11490 done 11491 done 11492 IFS=$as_save_IFS 11493 11494 ;; 11495 esac 11496 fi 11497 TAR=$ac_cv_path_TAR 11498 if test -n "$TAR"; then 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11500 $as_echo "$TAR" >&6; } 11501 else 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11503 $as_echo "no" >&6; } 11504 fi 11505 11506 11507 if test "x$TAR" = x; then 11508 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11509 fi 11510 else 11511 # Otherwise we believe it is a complete path. Use it as it is. 11512 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11513 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11515 $as_echo_n "checking for TAR... " >&6; } 11516 if test ! -x "$tool_specified"; then 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11518 $as_echo "not found" >&6; } 11519 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11520 fi 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11522 $as_echo "$tool_specified" >&6; } 11523 fi 11524 fi 11525 fi 11526 11527 fi 11528 11529 11530 11531 if test "x$TAR" = x; then 11532 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11533 fi 11534 11535 11536 11537 11538 11539 # Publish this variable in the help. 11540 11541 11542 if [ -z "${TEE+x}" ]; then 11543 # The variable is not set by user, try to locate tool using the code snippet 11544 for ac_prog in tee 11545 do 11546 # Extract the first word of "$ac_prog", so it can be a program name with args. 11547 set dummy $ac_prog; ac_word=$2 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11549 $as_echo_n "checking for $ac_word... " >&6; } 11550 if ${ac_cv_path_TEE+:} false; then : 11551 $as_echo_n "(cached) " >&6 11552 else 11553 case $TEE in 11554 [\\/]* | ?:[\\/]*) 11555 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11556 ;; 11557 *) 11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11559 for as_dir in $PATH 11560 do 11561 IFS=$as_save_IFS 11562 test -z "$as_dir" && as_dir=. 11563 for ac_exec_ext in '' $ac_executable_extensions; do 11564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11565 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11567 break 2 11568 fi 11569 done 11570 done 11571 IFS=$as_save_IFS 11572 11573 ;; 11574 esac 11575 fi 11576 TEE=$ac_cv_path_TEE 11577 if test -n "$TEE"; then 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11579 $as_echo "$TEE" >&6; } 11580 else 11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11582 $as_echo "no" >&6; } 11583 fi 11584 11585 11586 test -n "$TEE" && break 11587 done 11588 11589 else 11590 # The variable is set, but is it from the command line or the environment? 11591 11592 # Try to remove the string !TEE! from our list. 11593 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11594 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11595 # If it failed, the variable was not from the command line. Ignore it, 11596 # but warn the user (except for BASH, which is always set by the calling BASH). 11597 if test "xTEE" != xBASH; then 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11599 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11600 fi 11601 # Try to locate tool using the code snippet 11602 for ac_prog in tee 11603 do 11604 # Extract the first word of "$ac_prog", so it can be a program name with args. 11605 set dummy $ac_prog; ac_word=$2 11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11607 $as_echo_n "checking for $ac_word... " >&6; } 11608 if ${ac_cv_path_TEE+:} false; then : 11609 $as_echo_n "(cached) " >&6 11610 else 11611 case $TEE in 11612 [\\/]* | ?:[\\/]*) 11613 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11614 ;; 11615 *) 11616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11617 for as_dir in $PATH 11618 do 11619 IFS=$as_save_IFS 11620 test -z "$as_dir" && as_dir=. 11621 for ac_exec_ext in '' $ac_executable_extensions; do 11622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11623 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11625 break 2 11626 fi 11627 done 11628 done 11629 IFS=$as_save_IFS 11630 11631 ;; 11632 esac 11633 fi 11634 TEE=$ac_cv_path_TEE 11635 if test -n "$TEE"; then 11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11637 $as_echo "$TEE" >&6; } 11638 else 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11640 $as_echo "no" >&6; } 11641 fi 11642 11643 11644 test -n "$TEE" && break 11645 done 11646 11647 else 11648 # If it succeeded, then it was overridden by the user. We will use it 11649 # for the tool. 11650 11651 # First remove it from the list of overridden variables, so we can test 11652 # for unknown variables in the end. 11653 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11654 11655 # Check if we try to supply an empty value 11656 if test "x$TEE" = x; then 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11658 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11660 $as_echo_n "checking for TEE... " >&6; } 11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11662 $as_echo "disabled" >&6; } 11663 else 11664 # Check if the provided tool contains a complete path. 11665 tool_specified="$TEE" 11666 tool_basename="${tool_specified##*/}" 11667 if test "x$tool_basename" = "x$tool_specified"; then 11668 # A command without a complete path is provided, search $PATH. 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11670 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11671 # Extract the first word of "$tool_basename", so it can be a program name with args. 11672 set dummy $tool_basename; ac_word=$2 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11674 $as_echo_n "checking for $ac_word... " >&6; } 11675 if ${ac_cv_path_TEE+:} false; then : 11676 $as_echo_n "(cached) " >&6 11677 else 11678 case $TEE in 11679 [\\/]* | ?:[\\/]*) 11680 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11681 ;; 11682 *) 11683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11684 for as_dir in $PATH 11685 do 11686 IFS=$as_save_IFS 11687 test -z "$as_dir" && as_dir=. 11688 for ac_exec_ext in '' $ac_executable_extensions; do 11689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11690 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11692 break 2 11693 fi 11694 done 11695 done 11696 IFS=$as_save_IFS 11697 11698 ;; 11699 esac 11700 fi 11701 TEE=$ac_cv_path_TEE 11702 if test -n "$TEE"; then 11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11704 $as_echo "$TEE" >&6; } 11705 else 11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11707 $as_echo "no" >&6; } 11708 fi 11709 11710 11711 if test "x$TEE" = x; then 11712 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11713 fi 11714 else 11715 # Otherwise we believe it is a complete path. Use it as it is. 11716 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11717 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11719 $as_echo_n "checking for TEE... " >&6; } 11720 if test ! -x "$tool_specified"; then 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11722 $as_echo "not found" >&6; } 11723 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11724 fi 11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11726 $as_echo "$tool_specified" >&6; } 11727 fi 11728 fi 11729 fi 11730 11731 fi 11732 11733 11734 11735 if test "x$TEE" = x; then 11736 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11737 fi 11738 11739 11740 11741 11742 11743 # Publish this variable in the help. 11744 11745 11746 if [ -z "${TOUCH+x}" ]; then 11747 # The variable is not set by user, try to locate tool using the code snippet 11748 for ac_prog in touch 11749 do 11750 # Extract the first word of "$ac_prog", so it can be a program name with args. 11751 set dummy $ac_prog; ac_word=$2 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11753 $as_echo_n "checking for $ac_word... " >&6; } 11754 if ${ac_cv_path_TOUCH+:} false; then : 11755 $as_echo_n "(cached) " >&6 11756 else 11757 case $TOUCH in 11758 [\\/]* | ?:[\\/]*) 11759 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11760 ;; 11761 *) 11762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11763 for as_dir in $PATH 11764 do 11765 IFS=$as_save_IFS 11766 test -z "$as_dir" && as_dir=. 11767 for ac_exec_ext in '' $ac_executable_extensions; do 11768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11769 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11771 break 2 11772 fi 11773 done 11774 done 11775 IFS=$as_save_IFS 11776 11777 ;; 11778 esac 11779 fi 11780 TOUCH=$ac_cv_path_TOUCH 11781 if test -n "$TOUCH"; then 11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11783 $as_echo "$TOUCH" >&6; } 11784 else 11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11786 $as_echo "no" >&6; } 11787 fi 11788 11789 11790 test -n "$TOUCH" && break 11791 done 11792 11793 else 11794 # The variable is set, but is it from the command line or the environment? 11795 11796 # Try to remove the string !TOUCH! from our list. 11797 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11798 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11799 # If it failed, the variable was not from the command line. Ignore it, 11800 # but warn the user (except for BASH, which is always set by the calling BASH). 11801 if test "xTOUCH" != xBASH; then 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11803 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11804 fi 11805 # Try to locate tool using the code snippet 11806 for ac_prog in touch 11807 do 11808 # Extract the first word of "$ac_prog", so it can be a program name with args. 11809 set dummy $ac_prog; ac_word=$2 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11811 $as_echo_n "checking for $ac_word... " >&6; } 11812 if ${ac_cv_path_TOUCH+:} false; then : 11813 $as_echo_n "(cached) " >&6 11814 else 11815 case $TOUCH in 11816 [\\/]* | ?:[\\/]*) 11817 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11818 ;; 11819 *) 11820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11821 for as_dir in $PATH 11822 do 11823 IFS=$as_save_IFS 11824 test -z "$as_dir" && as_dir=. 11825 for ac_exec_ext in '' $ac_executable_extensions; do 11826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11827 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11829 break 2 11830 fi 11831 done 11832 done 11833 IFS=$as_save_IFS 11834 11835 ;; 11836 esac 11837 fi 11838 TOUCH=$ac_cv_path_TOUCH 11839 if test -n "$TOUCH"; then 11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11841 $as_echo "$TOUCH" >&6; } 11842 else 11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11844 $as_echo "no" >&6; } 11845 fi 11846 11847 11848 test -n "$TOUCH" && break 11849 done 11850 11851 else 11852 # If it succeeded, then it was overridden by the user. We will use it 11853 # for the tool. 11854 11855 # First remove it from the list of overridden variables, so we can test 11856 # for unknown variables in the end. 11857 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11858 11859 # Check if we try to supply an empty value 11860 if test "x$TOUCH" = x; then 11861 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11862 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11864 $as_echo_n "checking for TOUCH... " >&6; } 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11866 $as_echo "disabled" >&6; } 11867 else 11868 # Check if the provided tool contains a complete path. 11869 tool_specified="$TOUCH" 11870 tool_basename="${tool_specified##*/}" 11871 if test "x$tool_basename" = "x$tool_specified"; then 11872 # A command without a complete path is provided, search $PATH. 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11874 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11875 # Extract the first word of "$tool_basename", so it can be a program name with args. 11876 set dummy $tool_basename; ac_word=$2 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11878 $as_echo_n "checking for $ac_word... " >&6; } 11879 if ${ac_cv_path_TOUCH+:} false; then : 11880 $as_echo_n "(cached) " >&6 11881 else 11882 case $TOUCH in 11883 [\\/]* | ?:[\\/]*) 11884 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11885 ;; 11886 *) 11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11888 for as_dir in $PATH 11889 do 11890 IFS=$as_save_IFS 11891 test -z "$as_dir" && as_dir=. 11892 for ac_exec_ext in '' $ac_executable_extensions; do 11893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11894 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11896 break 2 11897 fi 11898 done 11899 done 11900 IFS=$as_save_IFS 11901 11902 ;; 11903 esac 11904 fi 11905 TOUCH=$ac_cv_path_TOUCH 11906 if test -n "$TOUCH"; then 11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11908 $as_echo "$TOUCH" >&6; } 11909 else 11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11911 $as_echo "no" >&6; } 11912 fi 11913 11914 11915 if test "x$TOUCH" = x; then 11916 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11917 fi 11918 else 11919 # Otherwise we believe it is a complete path. Use it as it is. 11920 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11921 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11923 $as_echo_n "checking for TOUCH... " >&6; } 11924 if test ! -x "$tool_specified"; then 11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11926 $as_echo "not found" >&6; } 11927 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11928 fi 11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11930 $as_echo "$tool_specified" >&6; } 11931 fi 11932 fi 11933 fi 11934 11935 fi 11936 11937 11938 11939 if test "x$TOUCH" = x; then 11940 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11941 fi 11942 11943 11944 11945 11946 11947 # Publish this variable in the help. 11948 11949 11950 if [ -z "${TR+x}" ]; then 11951 # The variable is not set by user, try to locate tool using the code snippet 11952 for ac_prog in tr 11953 do 11954 # Extract the first word of "$ac_prog", so it can be a program name with args. 11955 set dummy $ac_prog; ac_word=$2 11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11957 $as_echo_n "checking for $ac_word... " >&6; } 11958 if ${ac_cv_path_TR+:} false; then : 11959 $as_echo_n "(cached) " >&6 11960 else 11961 case $TR in 11962 [\\/]* | ?:[\\/]*) 11963 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11964 ;; 11965 *) 11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11967 for as_dir in $PATH 11968 do 11969 IFS=$as_save_IFS 11970 test -z "$as_dir" && as_dir=. 11971 for ac_exec_ext in '' $ac_executable_extensions; do 11972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11973 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11975 break 2 11976 fi 11977 done 11978 done 11979 IFS=$as_save_IFS 11980 11981 ;; 11982 esac 11983 fi 11984 TR=$ac_cv_path_TR 11985 if test -n "$TR"; then 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11987 $as_echo "$TR" >&6; } 11988 else 11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11990 $as_echo "no" >&6; } 11991 fi 11992 11993 11994 test -n "$TR" && break 11995 done 11996 11997 else 11998 # The variable is set, but is it from the command line or the environment? 11999 12000 # Try to remove the string !TR! from our list. 12001 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 12002 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12003 # If it failed, the variable was not from the command line. Ignore it, 12004 # but warn the user (except for BASH, which is always set by the calling BASH). 12005 if test "xTR" != xBASH; then 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 12007 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 12008 fi 12009 # Try to locate tool using the code snippet 12010 for ac_prog in tr 12011 do 12012 # Extract the first word of "$ac_prog", so it can be a program name with args. 12013 set dummy $ac_prog; ac_word=$2 12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12015 $as_echo_n "checking for $ac_word... " >&6; } 12016 if ${ac_cv_path_TR+:} false; then : 12017 $as_echo_n "(cached) " >&6 12018 else 12019 case $TR in 12020 [\\/]* | ?:[\\/]*) 12021 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12022 ;; 12023 *) 12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12025 for as_dir in $PATH 12026 do 12027 IFS=$as_save_IFS 12028 test -z "$as_dir" && as_dir=. 12029 for ac_exec_ext in '' $ac_executable_extensions; do 12030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12031 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12033 break 2 12034 fi 12035 done 12036 done 12037 IFS=$as_save_IFS 12038 12039 ;; 12040 esac 12041 fi 12042 TR=$ac_cv_path_TR 12043 if test -n "$TR"; then 12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12045 $as_echo "$TR" >&6; } 12046 else 12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12048 $as_echo "no" >&6; } 12049 fi 12050 12051 12052 test -n "$TR" && break 12053 done 12054 12055 else 12056 # If it succeeded, then it was overridden by the user. We will use it 12057 # for the tool. 12058 12059 # First remove it from the list of overridden variables, so we can test 12060 # for unknown variables in the end. 12061 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12062 12063 # Check if we try to supply an empty value 12064 if test "x$TR" = x; then 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12066 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12068 $as_echo_n "checking for TR... " >&6; } 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12070 $as_echo "disabled" >&6; } 12071 else 12072 # Check if the provided tool contains a complete path. 12073 tool_specified="$TR" 12074 tool_basename="${tool_specified##*/}" 12075 if test "x$tool_basename" = "x$tool_specified"; then 12076 # A command without a complete path is provided, search $PATH. 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12078 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12079 # Extract the first word of "$tool_basename", so it can be a program name with args. 12080 set dummy $tool_basename; ac_word=$2 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12082 $as_echo_n "checking for $ac_word... " >&6; } 12083 if ${ac_cv_path_TR+:} false; then : 12084 $as_echo_n "(cached) " >&6 12085 else 12086 case $TR in 12087 [\\/]* | ?:[\\/]*) 12088 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12089 ;; 12090 *) 12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12092 for as_dir in $PATH 12093 do 12094 IFS=$as_save_IFS 12095 test -z "$as_dir" && as_dir=. 12096 for ac_exec_ext in '' $ac_executable_extensions; do 12097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12098 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12100 break 2 12101 fi 12102 done 12103 done 12104 IFS=$as_save_IFS 12105 12106 ;; 12107 esac 12108 fi 12109 TR=$ac_cv_path_TR 12110 if test -n "$TR"; then 12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12112 $as_echo "$TR" >&6; } 12113 else 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12115 $as_echo "no" >&6; } 12116 fi 12117 12118 12119 if test "x$TR" = x; then 12120 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12121 fi 12122 else 12123 # Otherwise we believe it is a complete path. Use it as it is. 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12125 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12127 $as_echo_n "checking for TR... " >&6; } 12128 if test ! -x "$tool_specified"; then 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12130 $as_echo "not found" >&6; } 12131 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12132 fi 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12134 $as_echo "$tool_specified" >&6; } 12135 fi 12136 fi 12137 fi 12138 12139 fi 12140 12141 12142 12143 if test "x$TR" = x; then 12144 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12145 fi 12146 12147 12148 12149 12150 12151 # Publish this variable in the help. 12152 12153 12154 if [ -z "${UNAME+x}" ]; then 12155 # The variable is not set by user, try to locate tool using the code snippet 12156 for ac_prog in uname 12157 do 12158 # Extract the first word of "$ac_prog", so it can be a program name with args. 12159 set dummy $ac_prog; ac_word=$2 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12161 $as_echo_n "checking for $ac_word... " >&6; } 12162 if ${ac_cv_path_UNAME+:} false; then : 12163 $as_echo_n "(cached) " >&6 12164 else 12165 case $UNAME in 12166 [\\/]* | ?:[\\/]*) 12167 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12168 ;; 12169 *) 12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12171 for as_dir in $PATH 12172 do 12173 IFS=$as_save_IFS 12174 test -z "$as_dir" && as_dir=. 12175 for ac_exec_ext in '' $ac_executable_extensions; do 12176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12177 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12179 break 2 12180 fi 12181 done 12182 done 12183 IFS=$as_save_IFS 12184 12185 ;; 12186 esac 12187 fi 12188 UNAME=$ac_cv_path_UNAME 12189 if test -n "$UNAME"; then 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12191 $as_echo "$UNAME" >&6; } 12192 else 12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12194 $as_echo "no" >&6; } 12195 fi 12196 12197 12198 test -n "$UNAME" && break 12199 done 12200 12201 else 12202 # The variable is set, but is it from the command line or the environment? 12203 12204 # Try to remove the string !UNAME! from our list. 12205 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12206 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12207 # If it failed, the variable was not from the command line. Ignore it, 12208 # but warn the user (except for BASH, which is always set by the calling BASH). 12209 if test "xUNAME" != xBASH; then 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12211 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12212 fi 12213 # Try to locate tool using the code snippet 12214 for ac_prog in uname 12215 do 12216 # Extract the first word of "$ac_prog", so it can be a program name with args. 12217 set dummy $ac_prog; ac_word=$2 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12219 $as_echo_n "checking for $ac_word... " >&6; } 12220 if ${ac_cv_path_UNAME+:} false; then : 12221 $as_echo_n "(cached) " >&6 12222 else 12223 case $UNAME in 12224 [\\/]* | ?:[\\/]*) 12225 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12226 ;; 12227 *) 12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12229 for as_dir in $PATH 12230 do 12231 IFS=$as_save_IFS 12232 test -z "$as_dir" && as_dir=. 12233 for ac_exec_ext in '' $ac_executable_extensions; do 12234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12235 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12237 break 2 12238 fi 12239 done 12240 done 12241 IFS=$as_save_IFS 12242 12243 ;; 12244 esac 12245 fi 12246 UNAME=$ac_cv_path_UNAME 12247 if test -n "$UNAME"; then 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12249 $as_echo "$UNAME" >&6; } 12250 else 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12252 $as_echo "no" >&6; } 12253 fi 12254 12255 12256 test -n "$UNAME" && break 12257 done 12258 12259 else 12260 # If it succeeded, then it was overridden by the user. We will use it 12261 # for the tool. 12262 12263 # First remove it from the list of overridden variables, so we can test 12264 # for unknown variables in the end. 12265 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12266 12267 # Check if we try to supply an empty value 12268 if test "x$UNAME" = x; then 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12270 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12272 $as_echo_n "checking for UNAME... " >&6; } 12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12274 $as_echo "disabled" >&6; } 12275 else 12276 # Check if the provided tool contains a complete path. 12277 tool_specified="$UNAME" 12278 tool_basename="${tool_specified##*/}" 12279 if test "x$tool_basename" = "x$tool_specified"; then 12280 # A command without a complete path is provided, search $PATH. 12281 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12282 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12283 # Extract the first word of "$tool_basename", so it can be a program name with args. 12284 set dummy $tool_basename; ac_word=$2 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12286 $as_echo_n "checking for $ac_word... " >&6; } 12287 if ${ac_cv_path_UNAME+:} false; then : 12288 $as_echo_n "(cached) " >&6 12289 else 12290 case $UNAME in 12291 [\\/]* | ?:[\\/]*) 12292 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12293 ;; 12294 *) 12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12296 for as_dir in $PATH 12297 do 12298 IFS=$as_save_IFS 12299 test -z "$as_dir" && as_dir=. 12300 for ac_exec_ext in '' $ac_executable_extensions; do 12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12302 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12304 break 2 12305 fi 12306 done 12307 done 12308 IFS=$as_save_IFS 12309 12310 ;; 12311 esac 12312 fi 12313 UNAME=$ac_cv_path_UNAME 12314 if test -n "$UNAME"; then 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12316 $as_echo "$UNAME" >&6; } 12317 else 12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12319 $as_echo "no" >&6; } 12320 fi 12321 12322 12323 if test "x$UNAME" = x; then 12324 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12325 fi 12326 else 12327 # Otherwise we believe it is a complete path. Use it as it is. 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12329 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12331 $as_echo_n "checking for UNAME... " >&6; } 12332 if test ! -x "$tool_specified"; then 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12334 $as_echo "not found" >&6; } 12335 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12336 fi 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12338 $as_echo "$tool_specified" >&6; } 12339 fi 12340 fi 12341 fi 12342 12343 fi 12344 12345 12346 12347 if test "x$UNAME" = x; then 12348 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12349 fi 12350 12351 12352 12353 12354 12355 # Publish this variable in the help. 12356 12357 12358 if [ -z "${UNIQ+x}" ]; then 12359 # The variable is not set by user, try to locate tool using the code snippet 12360 for ac_prog in uniq 12361 do 12362 # Extract the first word of "$ac_prog", so it can be a program name with args. 12363 set dummy $ac_prog; ac_word=$2 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12365 $as_echo_n "checking for $ac_word... " >&6; } 12366 if ${ac_cv_path_UNIQ+:} false; then : 12367 $as_echo_n "(cached) " >&6 12368 else 12369 case $UNIQ in 12370 [\\/]* | ?:[\\/]*) 12371 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12372 ;; 12373 *) 12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12375 for as_dir in $PATH 12376 do 12377 IFS=$as_save_IFS 12378 test -z "$as_dir" && as_dir=. 12379 for ac_exec_ext in '' $ac_executable_extensions; do 12380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12381 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12383 break 2 12384 fi 12385 done 12386 done 12387 IFS=$as_save_IFS 12388 12389 ;; 12390 esac 12391 fi 12392 UNIQ=$ac_cv_path_UNIQ 12393 if test -n "$UNIQ"; then 12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12395 $as_echo "$UNIQ" >&6; } 12396 else 12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12398 $as_echo "no" >&6; } 12399 fi 12400 12401 12402 test -n "$UNIQ" && break 12403 done 12404 12405 else 12406 # The variable is set, but is it from the command line or the environment? 12407 12408 # Try to remove the string !UNIQ! from our list. 12409 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12410 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12411 # If it failed, the variable was not from the command line. Ignore it, 12412 # but warn the user (except for BASH, which is always set by the calling BASH). 12413 if test "xUNIQ" != xBASH; then 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12415 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12416 fi 12417 # Try to locate tool using the code snippet 12418 for ac_prog in uniq 12419 do 12420 # Extract the first word of "$ac_prog", so it can be a program name with args. 12421 set dummy $ac_prog; ac_word=$2 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12423 $as_echo_n "checking for $ac_word... " >&6; } 12424 if ${ac_cv_path_UNIQ+:} false; then : 12425 $as_echo_n "(cached) " >&6 12426 else 12427 case $UNIQ in 12428 [\\/]* | ?:[\\/]*) 12429 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12430 ;; 12431 *) 12432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12433 for as_dir in $PATH 12434 do 12435 IFS=$as_save_IFS 12436 test -z "$as_dir" && as_dir=. 12437 for ac_exec_ext in '' $ac_executable_extensions; do 12438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12439 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12441 break 2 12442 fi 12443 done 12444 done 12445 IFS=$as_save_IFS 12446 12447 ;; 12448 esac 12449 fi 12450 UNIQ=$ac_cv_path_UNIQ 12451 if test -n "$UNIQ"; then 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12453 $as_echo "$UNIQ" >&6; } 12454 else 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12456 $as_echo "no" >&6; } 12457 fi 12458 12459 12460 test -n "$UNIQ" && break 12461 done 12462 12463 else 12464 # If it succeeded, then it was overridden by the user. We will use it 12465 # for the tool. 12466 12467 # First remove it from the list of overridden variables, so we can test 12468 # for unknown variables in the end. 12469 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12470 12471 # Check if we try to supply an empty value 12472 if test "x$UNIQ" = x; then 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12474 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12476 $as_echo_n "checking for UNIQ... " >&6; } 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12478 $as_echo "disabled" >&6; } 12479 else 12480 # Check if the provided tool contains a complete path. 12481 tool_specified="$UNIQ" 12482 tool_basename="${tool_specified##*/}" 12483 if test "x$tool_basename" = "x$tool_specified"; then 12484 # A command without a complete path is provided, search $PATH. 12485 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12486 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12487 # Extract the first word of "$tool_basename", so it can be a program name with args. 12488 set dummy $tool_basename; ac_word=$2 12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12490 $as_echo_n "checking for $ac_word... " >&6; } 12491 if ${ac_cv_path_UNIQ+:} false; then : 12492 $as_echo_n "(cached) " >&6 12493 else 12494 case $UNIQ in 12495 [\\/]* | ?:[\\/]*) 12496 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12497 ;; 12498 *) 12499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12500 for as_dir in $PATH 12501 do 12502 IFS=$as_save_IFS 12503 test -z "$as_dir" && as_dir=. 12504 for ac_exec_ext in '' $ac_executable_extensions; do 12505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12506 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12508 break 2 12509 fi 12510 done 12511 done 12512 IFS=$as_save_IFS 12513 12514 ;; 12515 esac 12516 fi 12517 UNIQ=$ac_cv_path_UNIQ 12518 if test -n "$UNIQ"; then 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12520 $as_echo "$UNIQ" >&6; } 12521 else 12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12523 $as_echo "no" >&6; } 12524 fi 12525 12526 12527 if test "x$UNIQ" = x; then 12528 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12529 fi 12530 else 12531 # Otherwise we believe it is a complete path. Use it as it is. 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12533 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12535 $as_echo_n "checking for UNIQ... " >&6; } 12536 if test ! -x "$tool_specified"; then 12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12538 $as_echo "not found" >&6; } 12539 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12540 fi 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12542 $as_echo "$tool_specified" >&6; } 12543 fi 12544 fi 12545 fi 12546 12547 fi 12548 12549 12550 12551 if test "x$UNIQ" = x; then 12552 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12553 fi 12554 12555 12556 12557 12558 12559 # Publish this variable in the help. 12560 12561 12562 if [ -z "${WC+x}" ]; then 12563 # The variable is not set by user, try to locate tool using the code snippet 12564 for ac_prog in wc 12565 do 12566 # Extract the first word of "$ac_prog", so it can be a program name with args. 12567 set dummy $ac_prog; ac_word=$2 12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12569 $as_echo_n "checking for $ac_word... " >&6; } 12570 if ${ac_cv_path_WC+:} false; then : 12571 $as_echo_n "(cached) " >&6 12572 else 12573 case $WC in 12574 [\\/]* | ?:[\\/]*) 12575 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12576 ;; 12577 *) 12578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12579 for as_dir in $PATH 12580 do 12581 IFS=$as_save_IFS 12582 test -z "$as_dir" && as_dir=. 12583 for ac_exec_ext in '' $ac_executable_extensions; do 12584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12585 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12587 break 2 12588 fi 12589 done 12590 done 12591 IFS=$as_save_IFS 12592 12593 ;; 12594 esac 12595 fi 12596 WC=$ac_cv_path_WC 12597 if test -n "$WC"; then 12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12599 $as_echo "$WC" >&6; } 12600 else 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12602 $as_echo "no" >&6; } 12603 fi 12604 12605 12606 test -n "$WC" && break 12607 done 12608 12609 else 12610 # The variable is set, but is it from the command line or the environment? 12611 12612 # Try to remove the string !WC! from our list. 12613 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12614 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12615 # If it failed, the variable was not from the command line. Ignore it, 12616 # but warn the user (except for BASH, which is always set by the calling BASH). 12617 if test "xWC" != xBASH; then 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12619 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12620 fi 12621 # Try to locate tool using the code snippet 12622 for ac_prog in wc 12623 do 12624 # Extract the first word of "$ac_prog", so it can be a program name with args. 12625 set dummy $ac_prog; ac_word=$2 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12627 $as_echo_n "checking for $ac_word... " >&6; } 12628 if ${ac_cv_path_WC+:} false; then : 12629 $as_echo_n "(cached) " >&6 12630 else 12631 case $WC in 12632 [\\/]* | ?:[\\/]*) 12633 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12634 ;; 12635 *) 12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12637 for as_dir in $PATH 12638 do 12639 IFS=$as_save_IFS 12640 test -z "$as_dir" && as_dir=. 12641 for ac_exec_ext in '' $ac_executable_extensions; do 12642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12643 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12645 break 2 12646 fi 12647 done 12648 done 12649 IFS=$as_save_IFS 12650 12651 ;; 12652 esac 12653 fi 12654 WC=$ac_cv_path_WC 12655 if test -n "$WC"; then 12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12657 $as_echo "$WC" >&6; } 12658 else 12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12660 $as_echo "no" >&6; } 12661 fi 12662 12663 12664 test -n "$WC" && break 12665 done 12666 12667 else 12668 # If it succeeded, then it was overridden by the user. We will use it 12669 # for the tool. 12670 12671 # First remove it from the list of overridden variables, so we can test 12672 # for unknown variables in the end. 12673 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12674 12675 # Check if we try to supply an empty value 12676 if test "x$WC" = x; then 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12678 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12680 $as_echo_n "checking for WC... " >&6; } 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12682 $as_echo "disabled" >&6; } 12683 else 12684 # Check if the provided tool contains a complete path. 12685 tool_specified="$WC" 12686 tool_basename="${tool_specified##*/}" 12687 if test "x$tool_basename" = "x$tool_specified"; then 12688 # A command without a complete path is provided, search $PATH. 12689 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12690 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12691 # Extract the first word of "$tool_basename", so it can be a program name with args. 12692 set dummy $tool_basename; ac_word=$2 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12694 $as_echo_n "checking for $ac_word... " >&6; } 12695 if ${ac_cv_path_WC+:} false; then : 12696 $as_echo_n "(cached) " >&6 12697 else 12698 case $WC in 12699 [\\/]* | ?:[\\/]*) 12700 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12701 ;; 12702 *) 12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12704 for as_dir in $PATH 12705 do 12706 IFS=$as_save_IFS 12707 test -z "$as_dir" && as_dir=. 12708 for ac_exec_ext in '' $ac_executable_extensions; do 12709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12710 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12712 break 2 12713 fi 12714 done 12715 done 12716 IFS=$as_save_IFS 12717 12718 ;; 12719 esac 12720 fi 12721 WC=$ac_cv_path_WC 12722 if test -n "$WC"; then 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12724 $as_echo "$WC" >&6; } 12725 else 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12727 $as_echo "no" >&6; } 12728 fi 12729 12730 12731 if test "x$WC" = x; then 12732 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12733 fi 12734 else 12735 # Otherwise we believe it is a complete path. Use it as it is. 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12737 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12739 $as_echo_n "checking for WC... " >&6; } 12740 if test ! -x "$tool_specified"; then 12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12742 $as_echo "not found" >&6; } 12743 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12744 fi 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12746 $as_echo "$tool_specified" >&6; } 12747 fi 12748 fi 12749 fi 12750 12751 fi 12752 12753 12754 12755 if test "x$WC" = x; then 12756 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12757 fi 12758 12759 12760 12761 12762 12763 # Publish this variable in the help. 12764 12765 12766 if [ -z "${WHICH+x}" ]; then 12767 # The variable is not set by user, try to locate tool using the code snippet 12768 for ac_prog in which 12769 do 12770 # Extract the first word of "$ac_prog", so it can be a program name with args. 12771 set dummy $ac_prog; ac_word=$2 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12773 $as_echo_n "checking for $ac_word... " >&6; } 12774 if ${ac_cv_path_WHICH+:} false; then : 12775 $as_echo_n "(cached) " >&6 12776 else 12777 case $WHICH in 12778 [\\/]* | ?:[\\/]*) 12779 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12780 ;; 12781 *) 12782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12783 for as_dir in $PATH 12784 do 12785 IFS=$as_save_IFS 12786 test -z "$as_dir" && as_dir=. 12787 for ac_exec_ext in '' $ac_executable_extensions; do 12788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12789 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12791 break 2 12792 fi 12793 done 12794 done 12795 IFS=$as_save_IFS 12796 12797 ;; 12798 esac 12799 fi 12800 WHICH=$ac_cv_path_WHICH 12801 if test -n "$WHICH"; then 12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12803 $as_echo "$WHICH" >&6; } 12804 else 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12806 $as_echo "no" >&6; } 12807 fi 12808 12809 12810 test -n "$WHICH" && break 12811 done 12812 12813 else 12814 # The variable is set, but is it from the command line or the environment? 12815 12816 # Try to remove the string !WHICH! from our list. 12817 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12818 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12819 # If it failed, the variable was not from the command line. Ignore it, 12820 # but warn the user (except for BASH, which is always set by the calling BASH). 12821 if test "xWHICH" != xBASH; then 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12823 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12824 fi 12825 # Try to locate tool using the code snippet 12826 for ac_prog in which 12827 do 12828 # Extract the first word of "$ac_prog", so it can be a program name with args. 12829 set dummy $ac_prog; ac_word=$2 12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12831 $as_echo_n "checking for $ac_word... " >&6; } 12832 if ${ac_cv_path_WHICH+:} false; then : 12833 $as_echo_n "(cached) " >&6 12834 else 12835 case $WHICH in 12836 [\\/]* | ?:[\\/]*) 12837 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12838 ;; 12839 *) 12840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12841 for as_dir in $PATH 12842 do 12843 IFS=$as_save_IFS 12844 test -z "$as_dir" && as_dir=. 12845 for ac_exec_ext in '' $ac_executable_extensions; do 12846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12847 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12849 break 2 12850 fi 12851 done 12852 done 12853 IFS=$as_save_IFS 12854 12855 ;; 12856 esac 12857 fi 12858 WHICH=$ac_cv_path_WHICH 12859 if test -n "$WHICH"; then 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12861 $as_echo "$WHICH" >&6; } 12862 else 12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12864 $as_echo "no" >&6; } 12865 fi 12866 12867 12868 test -n "$WHICH" && break 12869 done 12870 12871 else 12872 # If it succeeded, then it was overridden by the user. We will use it 12873 # for the tool. 12874 12875 # First remove it from the list of overridden variables, so we can test 12876 # for unknown variables in the end. 12877 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12878 12879 # Check if we try to supply an empty value 12880 if test "x$WHICH" = x; then 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12882 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12884 $as_echo_n "checking for WHICH... " >&6; } 12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12886 $as_echo "disabled" >&6; } 12887 else 12888 # Check if the provided tool contains a complete path. 12889 tool_specified="$WHICH" 12890 tool_basename="${tool_specified##*/}" 12891 if test "x$tool_basename" = "x$tool_specified"; then 12892 # A command without a complete path is provided, search $PATH. 12893 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12894 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12895 # Extract the first word of "$tool_basename", so it can be a program name with args. 12896 set dummy $tool_basename; ac_word=$2 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12898 $as_echo_n "checking for $ac_word... " >&6; } 12899 if ${ac_cv_path_WHICH+:} false; then : 12900 $as_echo_n "(cached) " >&6 12901 else 12902 case $WHICH in 12903 [\\/]* | ?:[\\/]*) 12904 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12905 ;; 12906 *) 12907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12908 for as_dir in $PATH 12909 do 12910 IFS=$as_save_IFS 12911 test -z "$as_dir" && as_dir=. 12912 for ac_exec_ext in '' $ac_executable_extensions; do 12913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12914 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12916 break 2 12917 fi 12918 done 12919 done 12920 IFS=$as_save_IFS 12921 12922 ;; 12923 esac 12924 fi 12925 WHICH=$ac_cv_path_WHICH 12926 if test -n "$WHICH"; then 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12928 $as_echo "$WHICH" >&6; } 12929 else 12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12931 $as_echo "no" >&6; } 12932 fi 12933 12934 12935 if test "x$WHICH" = x; then 12936 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12937 fi 12938 else 12939 # Otherwise we believe it is a complete path. Use it as it is. 12940 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12941 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12943 $as_echo_n "checking for WHICH... " >&6; } 12944 if test ! -x "$tool_specified"; then 12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12946 $as_echo "not found" >&6; } 12947 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12948 fi 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12950 $as_echo "$tool_specified" >&6; } 12951 fi 12952 fi 12953 fi 12954 12955 fi 12956 12957 12958 12959 if test "x$WHICH" = x; then 12960 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12961 fi 12962 12963 12964 12965 12966 12967 # Publish this variable in the help. 12968 12969 12970 if [ -z "${XARGS+x}" ]; then 12971 # The variable is not set by user, try to locate tool using the code snippet 12972 for ac_prog in xargs 12973 do 12974 # Extract the first word of "$ac_prog", so it can be a program name with args. 12975 set dummy $ac_prog; ac_word=$2 12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12977 $as_echo_n "checking for $ac_word... " >&6; } 12978 if ${ac_cv_path_XARGS+:} false; then : 12979 $as_echo_n "(cached) " >&6 12980 else 12981 case $XARGS in 12982 [\\/]* | ?:[\\/]*) 12983 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12984 ;; 12985 *) 12986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12987 for as_dir in $PATH 12988 do 12989 IFS=$as_save_IFS 12990 test -z "$as_dir" && as_dir=. 12991 for ac_exec_ext in '' $ac_executable_extensions; do 12992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12993 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12995 break 2 12996 fi 12997 done 12998 done 12999 IFS=$as_save_IFS 13000 13001 ;; 13002 esac 13003 fi 13004 XARGS=$ac_cv_path_XARGS 13005 if test -n "$XARGS"; then 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13007 $as_echo "$XARGS" >&6; } 13008 else 13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13010 $as_echo "no" >&6; } 13011 fi 13012 13013 13014 test -n "$XARGS" && break 13015 done 13016 13017 else 13018 # The variable is set, but is it from the command line or the environment? 13019 13020 # Try to remove the string !XARGS! from our list. 13021 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 13022 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13023 # If it failed, the variable was not from the command line. Ignore it, 13024 # but warn the user (except for BASH, which is always set by the calling BASH). 13025 if test "xXARGS" != xBASH; then 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 13027 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 13028 fi 13029 # Try to locate tool using the code snippet 13030 for ac_prog in xargs 13031 do 13032 # Extract the first word of "$ac_prog", so it can be a program name with args. 13033 set dummy $ac_prog; ac_word=$2 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13035 $as_echo_n "checking for $ac_word... " >&6; } 13036 if ${ac_cv_path_XARGS+:} false; then : 13037 $as_echo_n "(cached) " >&6 13038 else 13039 case $XARGS in 13040 [\\/]* | ?:[\\/]*) 13041 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13042 ;; 13043 *) 13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13045 for as_dir in $PATH 13046 do 13047 IFS=$as_save_IFS 13048 test -z "$as_dir" && as_dir=. 13049 for ac_exec_ext in '' $ac_executable_extensions; do 13050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13051 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13053 break 2 13054 fi 13055 done 13056 done 13057 IFS=$as_save_IFS 13058 13059 ;; 13060 esac 13061 fi 13062 XARGS=$ac_cv_path_XARGS 13063 if test -n "$XARGS"; then 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13065 $as_echo "$XARGS" >&6; } 13066 else 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13068 $as_echo "no" >&6; } 13069 fi 13070 13071 13072 test -n "$XARGS" && break 13073 done 13074 13075 else 13076 # If it succeeded, then it was overridden by the user. We will use it 13077 # for the tool. 13078 13079 # First remove it from the list of overridden variables, so we can test 13080 # for unknown variables in the end. 13081 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13082 13083 # Check if we try to supply an empty value 13084 if test "x$XARGS" = x; then 13085 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13086 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13088 $as_echo_n "checking for XARGS... " >&6; } 13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13090 $as_echo "disabled" >&6; } 13091 else 13092 # Check if the provided tool contains a complete path. 13093 tool_specified="$XARGS" 13094 tool_basename="${tool_specified##*/}" 13095 if test "x$tool_basename" = "x$tool_specified"; then 13096 # A command without a complete path is provided, search $PATH. 13097 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13098 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13099 # Extract the first word of "$tool_basename", so it can be a program name with args. 13100 set dummy $tool_basename; ac_word=$2 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13102 $as_echo_n "checking for $ac_word... " >&6; } 13103 if ${ac_cv_path_XARGS+:} false; then : 13104 $as_echo_n "(cached) " >&6 13105 else 13106 case $XARGS in 13107 [\\/]* | ?:[\\/]*) 13108 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13109 ;; 13110 *) 13111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13112 for as_dir in $PATH 13113 do 13114 IFS=$as_save_IFS 13115 test -z "$as_dir" && as_dir=. 13116 for ac_exec_ext in '' $ac_executable_extensions; do 13117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13118 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13120 break 2 13121 fi 13122 done 13123 done 13124 IFS=$as_save_IFS 13125 13126 ;; 13127 esac 13128 fi 13129 XARGS=$ac_cv_path_XARGS 13130 if test -n "$XARGS"; then 13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13132 $as_echo "$XARGS" >&6; } 13133 else 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13135 $as_echo "no" >&6; } 13136 fi 13137 13138 13139 if test "x$XARGS" = x; then 13140 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13141 fi 13142 else 13143 # Otherwise we believe it is a complete path. Use it as it is. 13144 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13145 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13147 $as_echo_n "checking for XARGS... " >&6; } 13148 if test ! -x "$tool_specified"; then 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13150 $as_echo "not found" >&6; } 13151 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13152 fi 13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13154 $as_echo "$tool_specified" >&6; } 13155 fi 13156 fi 13157 fi 13158 13159 fi 13160 13161 13162 13163 if test "x$XARGS" = x; then 13164 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13165 fi 13166 13167 13168 13169 # Then required tools that require some special treatment. 13170 13171 13172 # Publish this variable in the help. 13173 13174 13175 if [ -z "${AWK+x}" ]; then 13176 # The variable is not set by user, try to locate tool using the code snippet 13177 for ac_prog in gawk mawk nawk awk 13178 do 13179 # Extract the first word of "$ac_prog", so it can be a program name with args. 13180 set dummy $ac_prog; ac_word=$2 13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13182 $as_echo_n "checking for $ac_word... " >&6; } 13183 if ${ac_cv_prog_AWK+:} false; then : 13184 $as_echo_n "(cached) " >&6 13185 else 13186 if test -n "$AWK"; then 13187 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13188 else 13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13190 for as_dir in $PATH 13191 do 13192 IFS=$as_save_IFS 13193 test -z "$as_dir" && as_dir=. 13194 for ac_exec_ext in '' $ac_executable_extensions; do 13195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13196 ac_cv_prog_AWK="$ac_prog" 13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13198 break 2 13199 fi 13200 done 13201 done 13202 IFS=$as_save_IFS 13203 13204 fi 13205 fi 13206 AWK=$ac_cv_prog_AWK 13207 if test -n "$AWK"; then 13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13209 $as_echo "$AWK" >&6; } 13210 else 13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13212 $as_echo "no" >&6; } 13213 fi 13214 13215 13216 test -n "$AWK" && break 13217 done 13218 13219 else 13220 # The variable is set, but is it from the command line or the environment? 13221 13222 # Try to remove the string !AWK! from our list. 13223 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13224 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13225 # If it failed, the variable was not from the command line. Ignore it, 13226 # but warn the user (except for BASH, which is always set by the calling BASH). 13227 if test "xAWK" != xBASH; then 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13229 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13230 fi 13231 # Try to locate tool using the code snippet 13232 for ac_prog in gawk mawk nawk awk 13233 do 13234 # Extract the first word of "$ac_prog", so it can be a program name with args. 13235 set dummy $ac_prog; ac_word=$2 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13237 $as_echo_n "checking for $ac_word... " >&6; } 13238 if ${ac_cv_prog_AWK+:} false; then : 13239 $as_echo_n "(cached) " >&6 13240 else 13241 if test -n "$AWK"; then 13242 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13243 else 13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13245 for as_dir in $PATH 13246 do 13247 IFS=$as_save_IFS 13248 test -z "$as_dir" && as_dir=. 13249 for ac_exec_ext in '' $ac_executable_extensions; do 13250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13251 ac_cv_prog_AWK="$ac_prog" 13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13253 break 2 13254 fi 13255 done 13256 done 13257 IFS=$as_save_IFS 13258 13259 fi 13260 fi 13261 AWK=$ac_cv_prog_AWK 13262 if test -n "$AWK"; then 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13264 $as_echo "$AWK" >&6; } 13265 else 13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13267 $as_echo "no" >&6; } 13268 fi 13269 13270 13271 test -n "$AWK" && break 13272 done 13273 13274 else 13275 # If it succeeded, then it was overridden by the user. We will use it 13276 # for the tool. 13277 13278 # First remove it from the list of overridden variables, so we can test 13279 # for unknown variables in the end. 13280 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13281 13282 # Check if we try to supply an empty value 13283 if test "x$AWK" = x; then 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13285 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13287 $as_echo_n "checking for AWK... " >&6; } 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13289 $as_echo "disabled" >&6; } 13290 else 13291 # Check if the provided tool contains a complete path. 13292 tool_specified="$AWK" 13293 tool_basename="${tool_specified##*/}" 13294 if test "x$tool_basename" = "x$tool_specified"; then 13295 # A command without a complete path is provided, search $PATH. 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13297 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13298 # Extract the first word of "$tool_basename", so it can be a program name with args. 13299 set dummy $tool_basename; ac_word=$2 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13301 $as_echo_n "checking for $ac_word... " >&6; } 13302 if ${ac_cv_path_AWK+:} false; then : 13303 $as_echo_n "(cached) " >&6 13304 else 13305 case $AWK in 13306 [\\/]* | ?:[\\/]*) 13307 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13308 ;; 13309 *) 13310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13311 for as_dir in $PATH 13312 do 13313 IFS=$as_save_IFS 13314 test -z "$as_dir" && as_dir=. 13315 for ac_exec_ext in '' $ac_executable_extensions; do 13316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13317 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13319 break 2 13320 fi 13321 done 13322 done 13323 IFS=$as_save_IFS 13324 13325 ;; 13326 esac 13327 fi 13328 AWK=$ac_cv_path_AWK 13329 if test -n "$AWK"; then 13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13331 $as_echo "$AWK" >&6; } 13332 else 13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13334 $as_echo "no" >&6; } 13335 fi 13336 13337 13338 if test "x$AWK" = x; then 13339 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13340 fi 13341 else 13342 # Otherwise we believe it is a complete path. Use it as it is. 13343 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13344 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13346 $as_echo_n "checking for AWK... " >&6; } 13347 if test ! -x "$tool_specified"; then 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13349 $as_echo "not found" >&6; } 13350 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13351 fi 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13353 $as_echo "$tool_specified" >&6; } 13354 fi 13355 fi 13356 fi 13357 13358 fi 13359 13360 13361 if test "x$AWK" = x; then 13362 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13363 fi 13364 13365 13366 13367 13368 # Publish this variable in the help. 13369 13370 13371 if [ -z "${GREP+x}" ]; then 13372 # The variable is not set by user, try to locate tool using the code snippet 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13374 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13375 if ${ac_cv_path_GREP+:} false; then : 13376 $as_echo_n "(cached) " >&6 13377 else 13378 if test -z "$GREP"; then 13379 ac_path_GREP_found=false 13380 # Loop through the user's path and test for each of PROGNAME-LIST 13381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13382 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13383 do 13384 IFS=$as_save_IFS 13385 test -z "$as_dir" && as_dir=. 13386 for ac_prog in grep ggrep; do 13387 for ac_exec_ext in '' $ac_executable_extensions; do 13388 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13389 as_fn_executable_p "$ac_path_GREP" || continue 13390 # Check for GNU ac_path_GREP and select it if it is found. 13391 # Check for GNU $ac_path_GREP 13392 case `"$ac_path_GREP" --version 2>&1` in 13393 *GNU*) 13394 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13395 *) 13396 ac_count=0 13397 $as_echo_n 0123456789 >"conftest.in" 13398 while : 13399 do 13400 cat "conftest.in" "conftest.in" >"conftest.tmp" 13401 mv "conftest.tmp" "conftest.in" 13402 cp "conftest.in" "conftest.nl" 13403 $as_echo 'GREP' >> "conftest.nl" 13404 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13406 as_fn_arith $ac_count + 1 && ac_count=$as_val 13407 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13408 # Best one so far, save it but keep looking for a better one 13409 ac_cv_path_GREP="$ac_path_GREP" 13410 ac_path_GREP_max=$ac_count 13411 fi 13412 # 10*(2^10) chars as input seems more than enough 13413 test $ac_count -gt 10 && break 13414 done 13415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13416 esac 13417 13418 $ac_path_GREP_found && break 3 13419 done 13420 done 13421 done 13422 IFS=$as_save_IFS 13423 if test -z "$ac_cv_path_GREP"; then 13424 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13425 fi 13426 else 13427 ac_cv_path_GREP=$GREP 13428 fi 13429 13430 fi 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13432 $as_echo "$ac_cv_path_GREP" >&6; } 13433 GREP="$ac_cv_path_GREP" 13434 13435 13436 else 13437 # The variable is set, but is it from the command line or the environment? 13438 13439 # Try to remove the string !GREP! from our list. 13440 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13441 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13442 # If it failed, the variable was not from the command line. Ignore it, 13443 # but warn the user (except for BASH, which is always set by the calling BASH). 13444 if test "xGREP" != xBASH; then 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13446 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13447 fi 13448 # Try to locate tool using the code snippet 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13450 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13451 if ${ac_cv_path_GREP+:} false; then : 13452 $as_echo_n "(cached) " >&6 13453 else 13454 if test -z "$GREP"; then 13455 ac_path_GREP_found=false 13456 # Loop through the user's path and test for each of PROGNAME-LIST 13457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13459 do 13460 IFS=$as_save_IFS 13461 test -z "$as_dir" && as_dir=. 13462 for ac_prog in grep ggrep; do 13463 for ac_exec_ext in '' $ac_executable_extensions; do 13464 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13465 as_fn_executable_p "$ac_path_GREP" || continue 13466 # Check for GNU ac_path_GREP and select it if it is found. 13467 # Check for GNU $ac_path_GREP 13468 case `"$ac_path_GREP" --version 2>&1` in 13469 *GNU*) 13470 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13471 *) 13472 ac_count=0 13473 $as_echo_n 0123456789 >"conftest.in" 13474 while : 13475 do 13476 cat "conftest.in" "conftest.in" >"conftest.tmp" 13477 mv "conftest.tmp" "conftest.in" 13478 cp "conftest.in" "conftest.nl" 13479 $as_echo 'GREP' >> "conftest.nl" 13480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13482 as_fn_arith $ac_count + 1 && ac_count=$as_val 13483 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13484 # Best one so far, save it but keep looking for a better one 13485 ac_cv_path_GREP="$ac_path_GREP" 13486 ac_path_GREP_max=$ac_count 13487 fi 13488 # 10*(2^10) chars as input seems more than enough 13489 test $ac_count -gt 10 && break 13490 done 13491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13492 esac 13493 13494 $ac_path_GREP_found && break 3 13495 done 13496 done 13497 done 13498 IFS=$as_save_IFS 13499 if test -z "$ac_cv_path_GREP"; then 13500 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13501 fi 13502 else 13503 ac_cv_path_GREP=$GREP 13504 fi 13505 13506 fi 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13508 $as_echo "$ac_cv_path_GREP" >&6; } 13509 GREP="$ac_cv_path_GREP" 13510 13511 13512 else 13513 # If it succeeded, then it was overridden by the user. We will use it 13514 # for the tool. 13515 13516 # First remove it from the list of overridden variables, so we can test 13517 # for unknown variables in the end. 13518 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13519 13520 # Check if we try to supply an empty value 13521 if test "x$GREP" = x; then 13522 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13523 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13525 $as_echo_n "checking for GREP... " >&6; } 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13527 $as_echo "disabled" >&6; } 13528 else 13529 # Check if the provided tool contains a complete path. 13530 tool_specified="$GREP" 13531 tool_basename="${tool_specified##*/}" 13532 if test "x$tool_basename" = "x$tool_specified"; then 13533 # A command without a complete path is provided, search $PATH. 13534 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13535 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13536 # Extract the first word of "$tool_basename", so it can be a program name with args. 13537 set dummy $tool_basename; ac_word=$2 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13539 $as_echo_n "checking for $ac_word... " >&6; } 13540 if ${ac_cv_path_GREP+:} false; then : 13541 $as_echo_n "(cached) " >&6 13542 else 13543 case $GREP in 13544 [\\/]* | ?:[\\/]*) 13545 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13546 ;; 13547 *) 13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13549 for as_dir in $PATH 13550 do 13551 IFS=$as_save_IFS 13552 test -z "$as_dir" && as_dir=. 13553 for ac_exec_ext in '' $ac_executable_extensions; do 13554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13555 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13557 break 2 13558 fi 13559 done 13560 done 13561 IFS=$as_save_IFS 13562 13563 ;; 13564 esac 13565 fi 13566 GREP=$ac_cv_path_GREP 13567 if test -n "$GREP"; then 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13569 $as_echo "$GREP" >&6; } 13570 else 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13572 $as_echo "no" >&6; } 13573 fi 13574 13575 13576 if test "x$GREP" = x; then 13577 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13578 fi 13579 else 13580 # Otherwise we believe it is a complete path. Use it as it is. 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13582 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13584 $as_echo_n "checking for GREP... " >&6; } 13585 if test ! -x "$tool_specified"; then 13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13587 $as_echo "not found" >&6; } 13588 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13589 fi 13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13591 $as_echo "$tool_specified" >&6; } 13592 fi 13593 fi 13594 fi 13595 13596 fi 13597 13598 13599 if test "x$GREP" = x; then 13600 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13601 fi 13602 13603 13604 13605 13606 # Publish this variable in the help. 13607 13608 13609 if [ -z "${EGREP+x}" ]; then 13610 # The variable is not set by user, try to locate tool using the code snippet 13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13612 $as_echo_n "checking for egrep... " >&6; } 13613 if ${ac_cv_path_EGREP+:} false; then : 13614 $as_echo_n "(cached) " >&6 13615 else 13616 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13617 then ac_cv_path_EGREP="$GREP -E" 13618 else 13619 if test -z "$EGREP"; then 13620 ac_path_EGREP_found=false 13621 # Loop through the user's path and test for each of PROGNAME-LIST 13622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13623 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13624 do 13625 IFS=$as_save_IFS 13626 test -z "$as_dir" && as_dir=. 13627 for ac_prog in egrep; do 13628 for ac_exec_ext in '' $ac_executable_extensions; do 13629 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13630 as_fn_executable_p "$ac_path_EGREP" || continue 13631 # Check for GNU ac_path_EGREP and select it if it is found. 13632 # Check for GNU $ac_path_EGREP 13633 case `"$ac_path_EGREP" --version 2>&1` in 13634 *GNU*) 13635 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13636 *) 13637 ac_count=0 13638 $as_echo_n 0123456789 >"conftest.in" 13639 while : 13640 do 13641 cat "conftest.in" "conftest.in" >"conftest.tmp" 13642 mv "conftest.tmp" "conftest.in" 13643 cp "conftest.in" "conftest.nl" 13644 $as_echo 'EGREP' >> "conftest.nl" 13645 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13646 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13647 as_fn_arith $ac_count + 1 && ac_count=$as_val 13648 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13649 # Best one so far, save it but keep looking for a better one 13650 ac_cv_path_EGREP="$ac_path_EGREP" 13651 ac_path_EGREP_max=$ac_count 13652 fi 13653 # 10*(2^10) chars as input seems more than enough 13654 test $ac_count -gt 10 && break 13655 done 13656 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13657 esac 13658 13659 $ac_path_EGREP_found && break 3 13660 done 13661 done 13662 done 13663 IFS=$as_save_IFS 13664 if test -z "$ac_cv_path_EGREP"; then 13665 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13666 fi 13667 else 13668 ac_cv_path_EGREP=$EGREP 13669 fi 13670 13671 fi 13672 fi 13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13674 $as_echo "$ac_cv_path_EGREP" >&6; } 13675 EGREP="$ac_cv_path_EGREP" 13676 13677 13678 else 13679 # The variable is set, but is it from the command line or the environment? 13680 13681 # Try to remove the string !EGREP! from our list. 13682 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13683 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13684 # If it failed, the variable was not from the command line. Ignore it, 13685 # but warn the user (except for BASH, which is always set by the calling BASH). 13686 if test "xEGREP" != xBASH; then 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13688 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13689 fi 13690 # Try to locate tool using the code snippet 13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13692 $as_echo_n "checking for egrep... " >&6; } 13693 if ${ac_cv_path_EGREP+:} false; then : 13694 $as_echo_n "(cached) " >&6 13695 else 13696 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13697 then ac_cv_path_EGREP="$GREP -E" 13698 else 13699 if test -z "$EGREP"; then 13700 ac_path_EGREP_found=false 13701 # Loop through the user's path and test for each of PROGNAME-LIST 13702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13704 do 13705 IFS=$as_save_IFS 13706 test -z "$as_dir" && as_dir=. 13707 for ac_prog in egrep; do 13708 for ac_exec_ext in '' $ac_executable_extensions; do 13709 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13710 as_fn_executable_p "$ac_path_EGREP" || continue 13711 # Check for GNU ac_path_EGREP and select it if it is found. 13712 # Check for GNU $ac_path_EGREP 13713 case `"$ac_path_EGREP" --version 2>&1` in 13714 *GNU*) 13715 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13716 *) 13717 ac_count=0 13718 $as_echo_n 0123456789 >"conftest.in" 13719 while : 13720 do 13721 cat "conftest.in" "conftest.in" >"conftest.tmp" 13722 mv "conftest.tmp" "conftest.in" 13723 cp "conftest.in" "conftest.nl" 13724 $as_echo 'EGREP' >> "conftest.nl" 13725 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13727 as_fn_arith $ac_count + 1 && ac_count=$as_val 13728 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13729 # Best one so far, save it but keep looking for a better one 13730 ac_cv_path_EGREP="$ac_path_EGREP" 13731 ac_path_EGREP_max=$ac_count 13732 fi 13733 # 10*(2^10) chars as input seems more than enough 13734 test $ac_count -gt 10 && break 13735 done 13736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13737 esac 13738 13739 $ac_path_EGREP_found && break 3 13740 done 13741 done 13742 done 13743 IFS=$as_save_IFS 13744 if test -z "$ac_cv_path_EGREP"; then 13745 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13746 fi 13747 else 13748 ac_cv_path_EGREP=$EGREP 13749 fi 13750 13751 fi 13752 fi 13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13754 $as_echo "$ac_cv_path_EGREP" >&6; } 13755 EGREP="$ac_cv_path_EGREP" 13756 13757 13758 else 13759 # If it succeeded, then it was overridden by the user. We will use it 13760 # for the tool. 13761 13762 # First remove it from the list of overridden variables, so we can test 13763 # for unknown variables in the end. 13764 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13765 13766 # Check if we try to supply an empty value 13767 if test "x$EGREP" = x; then 13768 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13769 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13771 $as_echo_n "checking for EGREP... " >&6; } 13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13773 $as_echo "disabled" >&6; } 13774 else 13775 # Check if the provided tool contains a complete path. 13776 tool_specified="$EGREP" 13777 tool_basename="${tool_specified##*/}" 13778 if test "x$tool_basename" = "x$tool_specified"; then 13779 # A command without a complete path is provided, search $PATH. 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13781 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13782 # Extract the first word of "$tool_basename", so it can be a program name with args. 13783 set dummy $tool_basename; ac_word=$2 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13785 $as_echo_n "checking for $ac_word... " >&6; } 13786 if ${ac_cv_path_EGREP+:} false; then : 13787 $as_echo_n "(cached) " >&6 13788 else 13789 case $EGREP in 13790 [\\/]* | ?:[\\/]*) 13791 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13792 ;; 13793 *) 13794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13795 for as_dir in $PATH 13796 do 13797 IFS=$as_save_IFS 13798 test -z "$as_dir" && as_dir=. 13799 for ac_exec_ext in '' $ac_executable_extensions; do 13800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13801 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13803 break 2 13804 fi 13805 done 13806 done 13807 IFS=$as_save_IFS 13808 13809 ;; 13810 esac 13811 fi 13812 EGREP=$ac_cv_path_EGREP 13813 if test -n "$EGREP"; then 13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13815 $as_echo "$EGREP" >&6; } 13816 else 13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13818 $as_echo "no" >&6; } 13819 fi 13820 13821 13822 if test "x$EGREP" = x; then 13823 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13824 fi 13825 else 13826 # Otherwise we believe it is a complete path. Use it as it is. 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13828 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13830 $as_echo_n "checking for EGREP... " >&6; } 13831 if test ! -x "$tool_specified"; then 13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13833 $as_echo "not found" >&6; } 13834 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13835 fi 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13837 $as_echo "$tool_specified" >&6; } 13838 fi 13839 fi 13840 fi 13841 13842 fi 13843 13844 13845 if test "x$EGREP" = x; then 13846 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13847 fi 13848 13849 13850 13851 13852 # Publish this variable in the help. 13853 13854 13855 if [ -z "${FGREP+x}" ]; then 13856 # The variable is not set by user, try to locate tool using the code snippet 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13858 $as_echo_n "checking for fgrep... " >&6; } 13859 if ${ac_cv_path_FGREP+:} false; then : 13860 $as_echo_n "(cached) " >&6 13861 else 13862 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13863 then ac_cv_path_FGREP="$GREP -F" 13864 else 13865 if test -z "$FGREP"; then 13866 ac_path_FGREP_found=false 13867 # Loop through the user's path and test for each of PROGNAME-LIST 13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13870 do 13871 IFS=$as_save_IFS 13872 test -z "$as_dir" && as_dir=. 13873 for ac_prog in fgrep; do 13874 for ac_exec_ext in '' $ac_executable_extensions; do 13875 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13876 as_fn_executable_p "$ac_path_FGREP" || continue 13877 # Check for GNU ac_path_FGREP and select it if it is found. 13878 # Check for GNU $ac_path_FGREP 13879 case `"$ac_path_FGREP" --version 2>&1` in 13880 *GNU*) 13881 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13882 *) 13883 ac_count=0 13884 $as_echo_n 0123456789 >"conftest.in" 13885 while : 13886 do 13887 cat "conftest.in" "conftest.in" >"conftest.tmp" 13888 mv "conftest.tmp" "conftest.in" 13889 cp "conftest.in" "conftest.nl" 13890 $as_echo 'FGREP' >> "conftest.nl" 13891 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13893 as_fn_arith $ac_count + 1 && ac_count=$as_val 13894 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13895 # Best one so far, save it but keep looking for a better one 13896 ac_cv_path_FGREP="$ac_path_FGREP" 13897 ac_path_FGREP_max=$ac_count 13898 fi 13899 # 10*(2^10) chars as input seems more than enough 13900 test $ac_count -gt 10 && break 13901 done 13902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13903 esac 13904 13905 $ac_path_FGREP_found && break 3 13906 done 13907 done 13908 done 13909 IFS=$as_save_IFS 13910 if test -z "$ac_cv_path_FGREP"; then 13911 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13912 fi 13913 else 13914 ac_cv_path_FGREP=$FGREP 13915 fi 13916 13917 fi 13918 fi 13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13920 $as_echo "$ac_cv_path_FGREP" >&6; } 13921 FGREP="$ac_cv_path_FGREP" 13922 13923 13924 else 13925 # The variable is set, but is it from the command line or the environment? 13926 13927 # Try to remove the string !FGREP! from our list. 13928 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13929 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13930 # If it failed, the variable was not from the command line. Ignore it, 13931 # but warn the user (except for BASH, which is always set by the calling BASH). 13932 if test "xFGREP" != xBASH; then 13933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13934 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13935 fi 13936 # Try to locate tool using the code snippet 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13938 $as_echo_n "checking for fgrep... " >&6; } 13939 if ${ac_cv_path_FGREP+:} false; then : 13940 $as_echo_n "(cached) " >&6 13941 else 13942 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13943 then ac_cv_path_FGREP="$GREP -F" 13944 else 13945 if test -z "$FGREP"; then 13946 ac_path_FGREP_found=false 13947 # Loop through the user's path and test for each of PROGNAME-LIST 13948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13950 do 13951 IFS=$as_save_IFS 13952 test -z "$as_dir" && as_dir=. 13953 for ac_prog in fgrep; do 13954 for ac_exec_ext in '' $ac_executable_extensions; do 13955 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13956 as_fn_executable_p "$ac_path_FGREP" || continue 13957 # Check for GNU ac_path_FGREP and select it if it is found. 13958 # Check for GNU $ac_path_FGREP 13959 case `"$ac_path_FGREP" --version 2>&1` in 13960 *GNU*) 13961 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13962 *) 13963 ac_count=0 13964 $as_echo_n 0123456789 >"conftest.in" 13965 while : 13966 do 13967 cat "conftest.in" "conftest.in" >"conftest.tmp" 13968 mv "conftest.tmp" "conftest.in" 13969 cp "conftest.in" "conftest.nl" 13970 $as_echo 'FGREP' >> "conftest.nl" 13971 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13973 as_fn_arith $ac_count + 1 && ac_count=$as_val 13974 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13975 # Best one so far, save it but keep looking for a better one 13976 ac_cv_path_FGREP="$ac_path_FGREP" 13977 ac_path_FGREP_max=$ac_count 13978 fi 13979 # 10*(2^10) chars as input seems more than enough 13980 test $ac_count -gt 10 && break 13981 done 13982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13983 esac 13984 13985 $ac_path_FGREP_found && break 3 13986 done 13987 done 13988 done 13989 IFS=$as_save_IFS 13990 if test -z "$ac_cv_path_FGREP"; then 13991 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13992 fi 13993 else 13994 ac_cv_path_FGREP=$FGREP 13995 fi 13996 13997 fi 13998 fi 13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 14000 $as_echo "$ac_cv_path_FGREP" >&6; } 14001 FGREP="$ac_cv_path_FGREP" 14002 14003 14004 else 14005 # If it succeeded, then it was overridden by the user. We will use it 14006 # for the tool. 14007 14008 # First remove it from the list of overridden variables, so we can test 14009 # for unknown variables in the end. 14010 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14011 14012 # Check if we try to supply an empty value 14013 if test "x$FGREP" = x; then 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 14015 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14017 $as_echo_n "checking for FGREP... " >&6; } 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14019 $as_echo "disabled" >&6; } 14020 else 14021 # Check if the provided tool contains a complete path. 14022 tool_specified="$FGREP" 14023 tool_basename="${tool_specified##*/}" 14024 if test "x$tool_basename" = "x$tool_specified"; then 14025 # A command without a complete path is provided, search $PATH. 14026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 14027 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 14028 # Extract the first word of "$tool_basename", so it can be a program name with args. 14029 set dummy $tool_basename; ac_word=$2 14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14031 $as_echo_n "checking for $ac_word... " >&6; } 14032 if ${ac_cv_path_FGREP+:} false; then : 14033 $as_echo_n "(cached) " >&6 14034 else 14035 case $FGREP in 14036 [\\/]* | ?:[\\/]*) 14037 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 14038 ;; 14039 *) 14040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14041 for as_dir in $PATH 14042 do 14043 IFS=$as_save_IFS 14044 test -z "$as_dir" && as_dir=. 14045 for ac_exec_ext in '' $ac_executable_extensions; do 14046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14047 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 14048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14049 break 2 14050 fi 14051 done 14052 done 14053 IFS=$as_save_IFS 14054 14055 ;; 14056 esac 14057 fi 14058 FGREP=$ac_cv_path_FGREP 14059 if test -n "$FGREP"; then 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 14061 $as_echo "$FGREP" >&6; } 14062 else 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14064 $as_echo "no" >&6; } 14065 fi 14066 14067 14068 if test "x$FGREP" = x; then 14069 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14070 fi 14071 else 14072 # Otherwise we believe it is a complete path. Use it as it is. 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14074 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14076 $as_echo_n "checking for FGREP... " >&6; } 14077 if test ! -x "$tool_specified"; then 14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14079 $as_echo "not found" >&6; } 14080 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14081 fi 14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14083 $as_echo "$tool_specified" >&6; } 14084 fi 14085 fi 14086 fi 14087 14088 fi 14089 14090 14091 if test "x$FGREP" = x; then 14092 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14093 fi 14094 14095 14096 14097 14098 # Publish this variable in the help. 14099 14100 14101 if [ -z "${SED+x}" ]; then 14102 # The variable is not set by user, try to locate tool using the code snippet 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14104 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14105 if ${ac_cv_path_SED+:} false; then : 14106 $as_echo_n "(cached) " >&6 14107 else 14108 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14109 for ac_i in 1 2 3 4 5 6 7; do 14110 ac_script="$ac_script$as_nl$ac_script" 14111 done 14112 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14113 { ac_script=; unset ac_script;} 14114 if test -z "$SED"; then 14115 ac_path_SED_found=false 14116 # Loop through the user's path and test for each of PROGNAME-LIST 14117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14118 for as_dir in $PATH 14119 do 14120 IFS=$as_save_IFS 14121 test -z "$as_dir" && as_dir=. 14122 for ac_prog in sed gsed; do 14123 for ac_exec_ext in '' $ac_executable_extensions; do 14124 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14125 as_fn_executable_p "$ac_path_SED" || continue 14126 # Check for GNU ac_path_SED and select it if it is found. 14127 # Check for GNU $ac_path_SED 14128 case `"$ac_path_SED" --version 2>&1` in 14129 *GNU*) 14130 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14131 *) 14132 ac_count=0 14133 $as_echo_n 0123456789 >"conftest.in" 14134 while : 14135 do 14136 cat "conftest.in" "conftest.in" >"conftest.tmp" 14137 mv "conftest.tmp" "conftest.in" 14138 cp "conftest.in" "conftest.nl" 14139 $as_echo '' >> "conftest.nl" 14140 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14142 as_fn_arith $ac_count + 1 && ac_count=$as_val 14143 if test $ac_count -gt ${ac_path_SED_max-0}; then 14144 # Best one so far, save it but keep looking for a better one 14145 ac_cv_path_SED="$ac_path_SED" 14146 ac_path_SED_max=$ac_count 14147 fi 14148 # 10*(2^10) chars as input seems more than enough 14149 test $ac_count -gt 10 && break 14150 done 14151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14152 esac 14153 14154 $ac_path_SED_found && break 3 14155 done 14156 done 14157 done 14158 IFS=$as_save_IFS 14159 if test -z "$ac_cv_path_SED"; then 14160 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14161 fi 14162 else 14163 ac_cv_path_SED=$SED 14164 fi 14165 14166 fi 14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14168 $as_echo "$ac_cv_path_SED" >&6; } 14169 SED="$ac_cv_path_SED" 14170 rm -f conftest.sed 14171 14172 else 14173 # The variable is set, but is it from the command line or the environment? 14174 14175 # Try to remove the string !SED! from our list. 14176 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14177 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14178 # If it failed, the variable was not from the command line. Ignore it, 14179 # but warn the user (except for BASH, which is always set by the calling BASH). 14180 if test "xSED" != xBASH; then 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14182 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14183 fi 14184 # Try to locate tool using the code snippet 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14186 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14187 if ${ac_cv_path_SED+:} false; then : 14188 $as_echo_n "(cached) " >&6 14189 else 14190 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14191 for ac_i in 1 2 3 4 5 6 7; do 14192 ac_script="$ac_script$as_nl$ac_script" 14193 done 14194 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14195 { ac_script=; unset ac_script;} 14196 if test -z "$SED"; then 14197 ac_path_SED_found=false 14198 # Loop through the user's path and test for each of PROGNAME-LIST 14199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14200 for as_dir in $PATH 14201 do 14202 IFS=$as_save_IFS 14203 test -z "$as_dir" && as_dir=. 14204 for ac_prog in sed gsed; do 14205 for ac_exec_ext in '' $ac_executable_extensions; do 14206 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14207 as_fn_executable_p "$ac_path_SED" || continue 14208 # Check for GNU ac_path_SED and select it if it is found. 14209 # Check for GNU $ac_path_SED 14210 case `"$ac_path_SED" --version 2>&1` in 14211 *GNU*) 14212 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14213 *) 14214 ac_count=0 14215 $as_echo_n 0123456789 >"conftest.in" 14216 while : 14217 do 14218 cat "conftest.in" "conftest.in" >"conftest.tmp" 14219 mv "conftest.tmp" "conftest.in" 14220 cp "conftest.in" "conftest.nl" 14221 $as_echo '' >> "conftest.nl" 14222 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14224 as_fn_arith $ac_count + 1 && ac_count=$as_val 14225 if test $ac_count -gt ${ac_path_SED_max-0}; then 14226 # Best one so far, save it but keep looking for a better one 14227 ac_cv_path_SED="$ac_path_SED" 14228 ac_path_SED_max=$ac_count 14229 fi 14230 # 10*(2^10) chars as input seems more than enough 14231 test $ac_count -gt 10 && break 14232 done 14233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14234 esac 14235 14236 $ac_path_SED_found && break 3 14237 done 14238 done 14239 done 14240 IFS=$as_save_IFS 14241 if test -z "$ac_cv_path_SED"; then 14242 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14243 fi 14244 else 14245 ac_cv_path_SED=$SED 14246 fi 14247 14248 fi 14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14250 $as_echo "$ac_cv_path_SED" >&6; } 14251 SED="$ac_cv_path_SED" 14252 rm -f conftest.sed 14253 14254 else 14255 # If it succeeded, then it was overridden by the user. We will use it 14256 # for the tool. 14257 14258 # First remove it from the list of overridden variables, so we can test 14259 # for unknown variables in the end. 14260 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14261 14262 # Check if we try to supply an empty value 14263 if test "x$SED" = x; then 14264 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14265 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14267 $as_echo_n "checking for SED... " >&6; } 14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14269 $as_echo "disabled" >&6; } 14270 else 14271 # Check if the provided tool contains a complete path. 14272 tool_specified="$SED" 14273 tool_basename="${tool_specified##*/}" 14274 if test "x$tool_basename" = "x$tool_specified"; then 14275 # A command without a complete path is provided, search $PATH. 14276 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14277 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14278 # Extract the first word of "$tool_basename", so it can be a program name with args. 14279 set dummy $tool_basename; ac_word=$2 14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14281 $as_echo_n "checking for $ac_word... " >&6; } 14282 if ${ac_cv_path_SED+:} false; then : 14283 $as_echo_n "(cached) " >&6 14284 else 14285 case $SED in 14286 [\\/]* | ?:[\\/]*) 14287 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14288 ;; 14289 *) 14290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14291 for as_dir in $PATH 14292 do 14293 IFS=$as_save_IFS 14294 test -z "$as_dir" && as_dir=. 14295 for ac_exec_ext in '' $ac_executable_extensions; do 14296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14297 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14299 break 2 14300 fi 14301 done 14302 done 14303 IFS=$as_save_IFS 14304 14305 ;; 14306 esac 14307 fi 14308 SED=$ac_cv_path_SED 14309 if test -n "$SED"; then 14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14311 $as_echo "$SED" >&6; } 14312 else 14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14314 $as_echo "no" >&6; } 14315 fi 14316 14317 14318 if test "x$SED" = x; then 14319 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14320 fi 14321 else 14322 # Otherwise we believe it is a complete path. Use it as it is. 14323 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14324 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14326 $as_echo_n "checking for SED... " >&6; } 14327 if test ! -x "$tool_specified"; then 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14329 $as_echo "not found" >&6; } 14330 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14331 fi 14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14333 $as_echo "$tool_specified" >&6; } 14334 fi 14335 fi 14336 fi 14337 14338 fi 14339 14340 14341 if test "x$SED" = x; then 14342 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14343 fi 14344 14345 14346 14347 # Always force rm. 14348 RM="$RM -f" 14349 14350 # pwd behaves differently on various platforms and some don't support the -L flag. 14351 # Always use the bash builtin pwd to get uniform behavior. 14352 THEPWDCMD=pwd 14353 14354 # These are not required on all platforms 14355 14356 14357 # Publish this variable in the help. 14358 14359 14360 if [ -z "${CYGPATH+x}" ]; then 14361 # The variable is not set by user, try to locate tool using the code snippet 14362 for ac_prog in cygpath 14363 do 14364 # Extract the first word of "$ac_prog", so it can be a program name with args. 14365 set dummy $ac_prog; ac_word=$2 14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14367 $as_echo_n "checking for $ac_word... " >&6; } 14368 if ${ac_cv_path_CYGPATH+:} false; then : 14369 $as_echo_n "(cached) " >&6 14370 else 14371 case $CYGPATH in 14372 [\\/]* | ?:[\\/]*) 14373 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14374 ;; 14375 *) 14376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14377 for as_dir in $PATH 14378 do 14379 IFS=$as_save_IFS 14380 test -z "$as_dir" && as_dir=. 14381 for ac_exec_ext in '' $ac_executable_extensions; do 14382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14383 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14385 break 2 14386 fi 14387 done 14388 done 14389 IFS=$as_save_IFS 14390 14391 ;; 14392 esac 14393 fi 14394 CYGPATH=$ac_cv_path_CYGPATH 14395 if test -n "$CYGPATH"; then 14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14397 $as_echo "$CYGPATH" >&6; } 14398 else 14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14400 $as_echo "no" >&6; } 14401 fi 14402 14403 14404 test -n "$CYGPATH" && break 14405 done 14406 14407 else 14408 # The variable is set, but is it from the command line or the environment? 14409 14410 # Try to remove the string !CYGPATH! from our list. 14411 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14412 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14413 # If it failed, the variable was not from the command line. Ignore it, 14414 # but warn the user (except for BASH, which is always set by the calling BASH). 14415 if test "xCYGPATH" != xBASH; then 14416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14417 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14418 fi 14419 # Try to locate tool using the code snippet 14420 for ac_prog in cygpath 14421 do 14422 # Extract the first word of "$ac_prog", so it can be a program name with args. 14423 set dummy $ac_prog; ac_word=$2 14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14425 $as_echo_n "checking for $ac_word... " >&6; } 14426 if ${ac_cv_path_CYGPATH+:} false; then : 14427 $as_echo_n "(cached) " >&6 14428 else 14429 case $CYGPATH in 14430 [\\/]* | ?:[\\/]*) 14431 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14432 ;; 14433 *) 14434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14435 for as_dir in $PATH 14436 do 14437 IFS=$as_save_IFS 14438 test -z "$as_dir" && as_dir=. 14439 for ac_exec_ext in '' $ac_executable_extensions; do 14440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14441 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14443 break 2 14444 fi 14445 done 14446 done 14447 IFS=$as_save_IFS 14448 14449 ;; 14450 esac 14451 fi 14452 CYGPATH=$ac_cv_path_CYGPATH 14453 if test -n "$CYGPATH"; then 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14455 $as_echo "$CYGPATH" >&6; } 14456 else 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14458 $as_echo "no" >&6; } 14459 fi 14460 14461 14462 test -n "$CYGPATH" && break 14463 done 14464 14465 else 14466 # If it succeeded, then it was overridden by the user. We will use it 14467 # for the tool. 14468 14469 # First remove it from the list of overridden variables, so we can test 14470 # for unknown variables in the end. 14471 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14472 14473 # Check if we try to supply an empty value 14474 if test "x$CYGPATH" = x; then 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14476 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14478 $as_echo_n "checking for CYGPATH... " >&6; } 14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14480 $as_echo "disabled" >&6; } 14481 else 14482 # Check if the provided tool contains a complete path. 14483 tool_specified="$CYGPATH" 14484 tool_basename="${tool_specified##*/}" 14485 if test "x$tool_basename" = "x$tool_specified"; then 14486 # A command without a complete path is provided, search $PATH. 14487 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14488 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14489 # Extract the first word of "$tool_basename", so it can be a program name with args. 14490 set dummy $tool_basename; ac_word=$2 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14492 $as_echo_n "checking for $ac_word... " >&6; } 14493 if ${ac_cv_path_CYGPATH+:} false; then : 14494 $as_echo_n "(cached) " >&6 14495 else 14496 case $CYGPATH in 14497 [\\/]* | ?:[\\/]*) 14498 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14499 ;; 14500 *) 14501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14502 for as_dir in $PATH 14503 do 14504 IFS=$as_save_IFS 14505 test -z "$as_dir" && as_dir=. 14506 for ac_exec_ext in '' $ac_executable_extensions; do 14507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14508 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14510 break 2 14511 fi 14512 done 14513 done 14514 IFS=$as_save_IFS 14515 14516 ;; 14517 esac 14518 fi 14519 CYGPATH=$ac_cv_path_CYGPATH 14520 if test -n "$CYGPATH"; then 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14522 $as_echo "$CYGPATH" >&6; } 14523 else 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14525 $as_echo "no" >&6; } 14526 fi 14527 14528 14529 if test "x$CYGPATH" = x; then 14530 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14531 fi 14532 else 14533 # Otherwise we believe it is a complete path. Use it as it is. 14534 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14535 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14537 $as_echo_n "checking for CYGPATH... " >&6; } 14538 if test ! -x "$tool_specified"; then 14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14540 $as_echo "not found" >&6; } 14541 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14542 fi 14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14544 $as_echo "$tool_specified" >&6; } 14545 fi 14546 fi 14547 fi 14548 14549 fi 14550 14551 14552 14553 14554 # Publish this variable in the help. 14555 14556 14557 if [ -z "${READLINK+x}" ]; then 14558 # The variable is not set by user, try to locate tool using the code snippet 14559 for ac_prog in greadlink readlink 14560 do 14561 # Extract the first word of "$ac_prog", so it can be a program name with args. 14562 set dummy $ac_prog; ac_word=$2 14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14564 $as_echo_n "checking for $ac_word... " >&6; } 14565 if ${ac_cv_path_READLINK+:} false; then : 14566 $as_echo_n "(cached) " >&6 14567 else 14568 case $READLINK in 14569 [\\/]* | ?:[\\/]*) 14570 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14571 ;; 14572 *) 14573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14574 for as_dir in $PATH 14575 do 14576 IFS=$as_save_IFS 14577 test -z "$as_dir" && as_dir=. 14578 for ac_exec_ext in '' $ac_executable_extensions; do 14579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14580 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14582 break 2 14583 fi 14584 done 14585 done 14586 IFS=$as_save_IFS 14587 14588 ;; 14589 esac 14590 fi 14591 READLINK=$ac_cv_path_READLINK 14592 if test -n "$READLINK"; then 14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14594 $as_echo "$READLINK" >&6; } 14595 else 14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14597 $as_echo "no" >&6; } 14598 fi 14599 14600 14601 test -n "$READLINK" && break 14602 done 14603 14604 else 14605 # The variable is set, but is it from the command line or the environment? 14606 14607 # Try to remove the string !READLINK! from our list. 14608 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14609 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14610 # If it failed, the variable was not from the command line. Ignore it, 14611 # but warn the user (except for BASH, which is always set by the calling BASH). 14612 if test "xREADLINK" != xBASH; then 14613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14614 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14615 fi 14616 # Try to locate tool using the code snippet 14617 for ac_prog in greadlink readlink 14618 do 14619 # Extract the first word of "$ac_prog", so it can be a program name with args. 14620 set dummy $ac_prog; ac_word=$2 14621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14622 $as_echo_n "checking for $ac_word... " >&6; } 14623 if ${ac_cv_path_READLINK+:} false; then : 14624 $as_echo_n "(cached) " >&6 14625 else 14626 case $READLINK in 14627 [\\/]* | ?:[\\/]*) 14628 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14629 ;; 14630 *) 14631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14632 for as_dir in $PATH 14633 do 14634 IFS=$as_save_IFS 14635 test -z "$as_dir" && as_dir=. 14636 for ac_exec_ext in '' $ac_executable_extensions; do 14637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14638 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14640 break 2 14641 fi 14642 done 14643 done 14644 IFS=$as_save_IFS 14645 14646 ;; 14647 esac 14648 fi 14649 READLINK=$ac_cv_path_READLINK 14650 if test -n "$READLINK"; then 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14652 $as_echo "$READLINK" >&6; } 14653 else 14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14655 $as_echo "no" >&6; } 14656 fi 14657 14658 14659 test -n "$READLINK" && break 14660 done 14661 14662 else 14663 # If it succeeded, then it was overridden by the user. We will use it 14664 # for the tool. 14665 14666 # First remove it from the list of overridden variables, so we can test 14667 # for unknown variables in the end. 14668 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14669 14670 # Check if we try to supply an empty value 14671 if test "x$READLINK" = x; then 14672 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14673 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14675 $as_echo_n "checking for READLINK... " >&6; } 14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14677 $as_echo "disabled" >&6; } 14678 else 14679 # Check if the provided tool contains a complete path. 14680 tool_specified="$READLINK" 14681 tool_basename="${tool_specified##*/}" 14682 if test "x$tool_basename" = "x$tool_specified"; then 14683 # A command without a complete path is provided, search $PATH. 14684 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14685 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14686 # Extract the first word of "$tool_basename", so it can be a program name with args. 14687 set dummy $tool_basename; ac_word=$2 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14689 $as_echo_n "checking for $ac_word... " >&6; } 14690 if ${ac_cv_path_READLINK+:} false; then : 14691 $as_echo_n "(cached) " >&6 14692 else 14693 case $READLINK in 14694 [\\/]* | ?:[\\/]*) 14695 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14696 ;; 14697 *) 14698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14699 for as_dir in $PATH 14700 do 14701 IFS=$as_save_IFS 14702 test -z "$as_dir" && as_dir=. 14703 for ac_exec_ext in '' $ac_executable_extensions; do 14704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14705 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14707 break 2 14708 fi 14709 done 14710 done 14711 IFS=$as_save_IFS 14712 14713 ;; 14714 esac 14715 fi 14716 READLINK=$ac_cv_path_READLINK 14717 if test -n "$READLINK"; then 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14719 $as_echo "$READLINK" >&6; } 14720 else 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14722 $as_echo "no" >&6; } 14723 fi 14724 14725 14726 if test "x$READLINK" = x; then 14727 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14728 fi 14729 else 14730 # Otherwise we believe it is a complete path. Use it as it is. 14731 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14732 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14734 $as_echo_n "checking for READLINK... " >&6; } 14735 if test ! -x "$tool_specified"; then 14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14737 $as_echo "not found" >&6; } 14738 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14739 fi 14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14741 $as_echo "$tool_specified" >&6; } 14742 fi 14743 fi 14744 fi 14745 14746 fi 14747 14748 14749 14750 14751 # Publish this variable in the help. 14752 14753 14754 if [ -z "${DF+x}" ]; then 14755 # The variable is not set by user, try to locate tool using the code snippet 14756 for ac_prog in df 14757 do 14758 # Extract the first word of "$ac_prog", so it can be a program name with args. 14759 set dummy $ac_prog; ac_word=$2 14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14761 $as_echo_n "checking for $ac_word... " >&6; } 14762 if ${ac_cv_path_DF+:} false; then : 14763 $as_echo_n "(cached) " >&6 14764 else 14765 case $DF in 14766 [\\/]* | ?:[\\/]*) 14767 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14768 ;; 14769 *) 14770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14771 for as_dir in $PATH 14772 do 14773 IFS=$as_save_IFS 14774 test -z "$as_dir" && as_dir=. 14775 for ac_exec_ext in '' $ac_executable_extensions; do 14776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14777 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14779 break 2 14780 fi 14781 done 14782 done 14783 IFS=$as_save_IFS 14784 14785 ;; 14786 esac 14787 fi 14788 DF=$ac_cv_path_DF 14789 if test -n "$DF"; then 14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14791 $as_echo "$DF" >&6; } 14792 else 14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14794 $as_echo "no" >&6; } 14795 fi 14796 14797 14798 test -n "$DF" && break 14799 done 14800 14801 else 14802 # The variable is set, but is it from the command line or the environment? 14803 14804 # Try to remove the string !DF! from our list. 14805 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14806 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14807 # If it failed, the variable was not from the command line. Ignore it, 14808 # but warn the user (except for BASH, which is always set by the calling BASH). 14809 if test "xDF" != xBASH; then 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14811 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14812 fi 14813 # Try to locate tool using the code snippet 14814 for ac_prog in df 14815 do 14816 # Extract the first word of "$ac_prog", so it can be a program name with args. 14817 set dummy $ac_prog; ac_word=$2 14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14819 $as_echo_n "checking for $ac_word... " >&6; } 14820 if ${ac_cv_path_DF+:} false; then : 14821 $as_echo_n "(cached) " >&6 14822 else 14823 case $DF in 14824 [\\/]* | ?:[\\/]*) 14825 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14826 ;; 14827 *) 14828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14829 for as_dir in $PATH 14830 do 14831 IFS=$as_save_IFS 14832 test -z "$as_dir" && as_dir=. 14833 for ac_exec_ext in '' $ac_executable_extensions; do 14834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14835 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14837 break 2 14838 fi 14839 done 14840 done 14841 IFS=$as_save_IFS 14842 14843 ;; 14844 esac 14845 fi 14846 DF=$ac_cv_path_DF 14847 if test -n "$DF"; then 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14849 $as_echo "$DF" >&6; } 14850 else 14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14852 $as_echo "no" >&6; } 14853 fi 14854 14855 14856 test -n "$DF" && break 14857 done 14858 14859 else 14860 # If it succeeded, then it was overridden by the user. We will use it 14861 # for the tool. 14862 14863 # First remove it from the list of overridden variables, so we can test 14864 # for unknown variables in the end. 14865 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14866 14867 # Check if we try to supply an empty value 14868 if test "x$DF" = x; then 14869 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14870 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14872 $as_echo_n "checking for DF... " >&6; } 14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14874 $as_echo "disabled" >&6; } 14875 else 14876 # Check if the provided tool contains a complete path. 14877 tool_specified="$DF" 14878 tool_basename="${tool_specified##*/}" 14879 if test "x$tool_basename" = "x$tool_specified"; then 14880 # A command without a complete path is provided, search $PATH. 14881 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14882 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14883 # Extract the first word of "$tool_basename", so it can be a program name with args. 14884 set dummy $tool_basename; ac_word=$2 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14886 $as_echo_n "checking for $ac_word... " >&6; } 14887 if ${ac_cv_path_DF+:} false; then : 14888 $as_echo_n "(cached) " >&6 14889 else 14890 case $DF in 14891 [\\/]* | ?:[\\/]*) 14892 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14893 ;; 14894 *) 14895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14896 for as_dir in $PATH 14897 do 14898 IFS=$as_save_IFS 14899 test -z "$as_dir" && as_dir=. 14900 for ac_exec_ext in '' $ac_executable_extensions; do 14901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14902 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14904 break 2 14905 fi 14906 done 14907 done 14908 IFS=$as_save_IFS 14909 14910 ;; 14911 esac 14912 fi 14913 DF=$ac_cv_path_DF 14914 if test -n "$DF"; then 14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14916 $as_echo "$DF" >&6; } 14917 else 14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14919 $as_echo "no" >&6; } 14920 fi 14921 14922 14923 if test "x$DF" = x; then 14924 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14925 fi 14926 else 14927 # Otherwise we believe it is a complete path. Use it as it is. 14928 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14929 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14931 $as_echo_n "checking for DF... " >&6; } 14932 if test ! -x "$tool_specified"; then 14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14934 $as_echo "not found" >&6; } 14935 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14936 fi 14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14938 $as_echo "$tool_specified" >&6; } 14939 fi 14940 fi 14941 fi 14942 14943 fi 14944 14945 14946 14947 14948 # Publish this variable in the help. 14949 14950 14951 if [ -z "${CPIO+x}" ]; then 14952 # The variable is not set by user, try to locate tool using the code snippet 14953 for ac_prog in cpio bsdcpio 14954 do 14955 # Extract the first word of "$ac_prog", so it can be a program name with args. 14956 set dummy $ac_prog; ac_word=$2 14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14958 $as_echo_n "checking for $ac_word... " >&6; } 14959 if ${ac_cv_path_CPIO+:} false; then : 14960 $as_echo_n "(cached) " >&6 14961 else 14962 case $CPIO in 14963 [\\/]* | ?:[\\/]*) 14964 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14965 ;; 14966 *) 14967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14968 for as_dir in $PATH 14969 do 14970 IFS=$as_save_IFS 14971 test -z "$as_dir" && as_dir=. 14972 for ac_exec_ext in '' $ac_executable_extensions; do 14973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14974 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14976 break 2 14977 fi 14978 done 14979 done 14980 IFS=$as_save_IFS 14981 14982 ;; 14983 esac 14984 fi 14985 CPIO=$ac_cv_path_CPIO 14986 if test -n "$CPIO"; then 14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14988 $as_echo "$CPIO" >&6; } 14989 else 14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14991 $as_echo "no" >&6; } 14992 fi 14993 14994 14995 test -n "$CPIO" && break 14996 done 14997 14998 else 14999 # The variable is set, but is it from the command line or the environment? 15000 15001 # Try to remove the string !CPIO! from our list. 15002 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 15003 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15004 # If it failed, the variable was not from the command line. Ignore it, 15005 # but warn the user (except for BASH, which is always set by the calling BASH). 15006 if test "xCPIO" != xBASH; then 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 15008 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 15009 fi 15010 # Try to locate tool using the code snippet 15011 for ac_prog in cpio bsdcpio 15012 do 15013 # Extract the first word of "$ac_prog", so it can be a program name with args. 15014 set dummy $ac_prog; ac_word=$2 15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15016 $as_echo_n "checking for $ac_word... " >&6; } 15017 if ${ac_cv_path_CPIO+:} false; then : 15018 $as_echo_n "(cached) " >&6 15019 else 15020 case $CPIO in 15021 [\\/]* | ?:[\\/]*) 15022 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15023 ;; 15024 *) 15025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15026 for as_dir in $PATH 15027 do 15028 IFS=$as_save_IFS 15029 test -z "$as_dir" && as_dir=. 15030 for ac_exec_ext in '' $ac_executable_extensions; do 15031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15032 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15034 break 2 15035 fi 15036 done 15037 done 15038 IFS=$as_save_IFS 15039 15040 ;; 15041 esac 15042 fi 15043 CPIO=$ac_cv_path_CPIO 15044 if test -n "$CPIO"; then 15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15046 $as_echo "$CPIO" >&6; } 15047 else 15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15049 $as_echo "no" >&6; } 15050 fi 15051 15052 15053 test -n "$CPIO" && break 15054 done 15055 15056 else 15057 # If it succeeded, then it was overridden by the user. We will use it 15058 # for the tool. 15059 15060 # First remove it from the list of overridden variables, so we can test 15061 # for unknown variables in the end. 15062 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15063 15064 # Check if we try to supply an empty value 15065 if test "x$CPIO" = x; then 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15067 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15069 $as_echo_n "checking for CPIO... " >&6; } 15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15071 $as_echo "disabled" >&6; } 15072 else 15073 # Check if the provided tool contains a complete path. 15074 tool_specified="$CPIO" 15075 tool_basename="${tool_specified##*/}" 15076 if test "x$tool_basename" = "x$tool_specified"; then 15077 # A command without a complete path is provided, search $PATH. 15078 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15079 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15080 # Extract the first word of "$tool_basename", so it can be a program name with args. 15081 set dummy $tool_basename; ac_word=$2 15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15083 $as_echo_n "checking for $ac_word... " >&6; } 15084 if ${ac_cv_path_CPIO+:} false; then : 15085 $as_echo_n "(cached) " >&6 15086 else 15087 case $CPIO in 15088 [\\/]* | ?:[\\/]*) 15089 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15090 ;; 15091 *) 15092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15093 for as_dir in $PATH 15094 do 15095 IFS=$as_save_IFS 15096 test -z "$as_dir" && as_dir=. 15097 for ac_exec_ext in '' $ac_executable_extensions; do 15098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15099 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15101 break 2 15102 fi 15103 done 15104 done 15105 IFS=$as_save_IFS 15106 15107 ;; 15108 esac 15109 fi 15110 CPIO=$ac_cv_path_CPIO 15111 if test -n "$CPIO"; then 15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15113 $as_echo "$CPIO" >&6; } 15114 else 15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15116 $as_echo "no" >&6; } 15117 fi 15118 15119 15120 if test "x$CPIO" = x; then 15121 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15122 fi 15123 else 15124 # Otherwise we believe it is a complete path. Use it as it is. 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15126 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15128 $as_echo_n "checking for CPIO... " >&6; } 15129 if test ! -x "$tool_specified"; then 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15131 $as_echo "not found" >&6; } 15132 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15133 fi 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15135 $as_echo "$tool_specified" >&6; } 15136 fi 15137 fi 15138 fi 15139 15140 fi 15141 15142 15143 15144 15145 # Publish this variable in the help. 15146 15147 15148 if [ -z "${NICE+x}" ]; then 15149 # The variable is not set by user, try to locate tool using the code snippet 15150 for ac_prog in nice 15151 do 15152 # Extract the first word of "$ac_prog", so it can be a program name with args. 15153 set dummy $ac_prog; ac_word=$2 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15155 $as_echo_n "checking for $ac_word... " >&6; } 15156 if ${ac_cv_path_NICE+:} false; then : 15157 $as_echo_n "(cached) " >&6 15158 else 15159 case $NICE in 15160 [\\/]* | ?:[\\/]*) 15161 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15162 ;; 15163 *) 15164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15165 for as_dir in $PATH 15166 do 15167 IFS=$as_save_IFS 15168 test -z "$as_dir" && as_dir=. 15169 for ac_exec_ext in '' $ac_executable_extensions; do 15170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15171 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15173 break 2 15174 fi 15175 done 15176 done 15177 IFS=$as_save_IFS 15178 15179 ;; 15180 esac 15181 fi 15182 NICE=$ac_cv_path_NICE 15183 if test -n "$NICE"; then 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15185 $as_echo "$NICE" >&6; } 15186 else 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15188 $as_echo "no" >&6; } 15189 fi 15190 15191 15192 test -n "$NICE" && break 15193 done 15194 15195 else 15196 # The variable is set, but is it from the command line or the environment? 15197 15198 # Try to remove the string !NICE! from our list. 15199 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15200 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15201 # If it failed, the variable was not from the command line. Ignore it, 15202 # but warn the user (except for BASH, which is always set by the calling BASH). 15203 if test "xNICE" != xBASH; then 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15205 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15206 fi 15207 # Try to locate tool using the code snippet 15208 for ac_prog in nice 15209 do 15210 # Extract the first word of "$ac_prog", so it can be a program name with args. 15211 set dummy $ac_prog; ac_word=$2 15212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15213 $as_echo_n "checking for $ac_word... " >&6; } 15214 if ${ac_cv_path_NICE+:} false; then : 15215 $as_echo_n "(cached) " >&6 15216 else 15217 case $NICE in 15218 [\\/]* | ?:[\\/]*) 15219 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15220 ;; 15221 *) 15222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15223 for as_dir in $PATH 15224 do 15225 IFS=$as_save_IFS 15226 test -z "$as_dir" && as_dir=. 15227 for ac_exec_ext in '' $ac_executable_extensions; do 15228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15229 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15231 break 2 15232 fi 15233 done 15234 done 15235 IFS=$as_save_IFS 15236 15237 ;; 15238 esac 15239 fi 15240 NICE=$ac_cv_path_NICE 15241 if test -n "$NICE"; then 15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15243 $as_echo "$NICE" >&6; } 15244 else 15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15246 $as_echo "no" >&6; } 15247 fi 15248 15249 15250 test -n "$NICE" && break 15251 done 15252 15253 else 15254 # If it succeeded, then it was overridden by the user. We will use it 15255 # for the tool. 15256 15257 # First remove it from the list of overridden variables, so we can test 15258 # for unknown variables in the end. 15259 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15260 15261 # Check if we try to supply an empty value 15262 if test "x$NICE" = x; then 15263 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15264 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15266 $as_echo_n "checking for NICE... " >&6; } 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15268 $as_echo "disabled" >&6; } 15269 else 15270 # Check if the provided tool contains a complete path. 15271 tool_specified="$NICE" 15272 tool_basename="${tool_specified##*/}" 15273 if test "x$tool_basename" = "x$tool_specified"; then 15274 # A command without a complete path is provided, search $PATH. 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15276 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15277 # Extract the first word of "$tool_basename", so it can be a program name with args. 15278 set dummy $tool_basename; ac_word=$2 15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15280 $as_echo_n "checking for $ac_word... " >&6; } 15281 if ${ac_cv_path_NICE+:} false; then : 15282 $as_echo_n "(cached) " >&6 15283 else 15284 case $NICE in 15285 [\\/]* | ?:[\\/]*) 15286 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15287 ;; 15288 *) 15289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15290 for as_dir in $PATH 15291 do 15292 IFS=$as_save_IFS 15293 test -z "$as_dir" && as_dir=. 15294 for ac_exec_ext in '' $ac_executable_extensions; do 15295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15296 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15298 break 2 15299 fi 15300 done 15301 done 15302 IFS=$as_save_IFS 15303 15304 ;; 15305 esac 15306 fi 15307 NICE=$ac_cv_path_NICE 15308 if test -n "$NICE"; then 15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15310 $as_echo "$NICE" >&6; } 15311 else 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15313 $as_echo "no" >&6; } 15314 fi 15315 15316 15317 if test "x$NICE" = x; then 15318 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15319 fi 15320 else 15321 # Otherwise we believe it is a complete path. Use it as it is. 15322 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15323 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15325 $as_echo_n "checking for NICE... " >&6; } 15326 if test ! -x "$tool_specified"; then 15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15328 $as_echo "not found" >&6; } 15329 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15330 fi 15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15332 $as_echo "$tool_specified" >&6; } 15333 fi 15334 fi 15335 fi 15336 15337 fi 15338 15339 15340 15341 15342 # Publish this variable in the help. 15343 15344 15345 if [ -z "${PANDOC+x}" ]; then 15346 # The variable is not set by user, try to locate tool using the code snippet 15347 for ac_prog in pandoc 15348 do 15349 # Extract the first word of "$ac_prog", so it can be a program name with args. 15350 set dummy $ac_prog; ac_word=$2 15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15352 $as_echo_n "checking for $ac_word... " >&6; } 15353 if ${ac_cv_path_PANDOC+:} false; then : 15354 $as_echo_n "(cached) " >&6 15355 else 15356 case $PANDOC in 15357 [\\/]* | ?:[\\/]*) 15358 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15359 ;; 15360 *) 15361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15362 for as_dir in $PATH 15363 do 15364 IFS=$as_save_IFS 15365 test -z "$as_dir" && as_dir=. 15366 for ac_exec_ext in '' $ac_executable_extensions; do 15367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15368 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15370 break 2 15371 fi 15372 done 15373 done 15374 IFS=$as_save_IFS 15375 15376 ;; 15377 esac 15378 fi 15379 PANDOC=$ac_cv_path_PANDOC 15380 if test -n "$PANDOC"; then 15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15382 $as_echo "$PANDOC" >&6; } 15383 else 15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15385 $as_echo "no" >&6; } 15386 fi 15387 15388 15389 test -n "$PANDOC" && break 15390 done 15391 15392 else 15393 # The variable is set, but is it from the command line or the environment? 15394 15395 # Try to remove the string !PANDOC! from our list. 15396 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/} 15397 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15398 # If it failed, the variable was not from the command line. Ignore it, 15399 # but warn the user (except for BASH, which is always set by the calling BASH). 15400 if test "xPANDOC" != xBASH; then 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5 15402 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;} 15403 fi 15404 # Try to locate tool using the code snippet 15405 for ac_prog in pandoc 15406 do 15407 # Extract the first word of "$ac_prog", so it can be a program name with args. 15408 set dummy $ac_prog; ac_word=$2 15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15410 $as_echo_n "checking for $ac_word... " >&6; } 15411 if ${ac_cv_path_PANDOC+:} false; then : 15412 $as_echo_n "(cached) " >&6 15413 else 15414 case $PANDOC in 15415 [\\/]* | ?:[\\/]*) 15416 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15417 ;; 15418 *) 15419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15420 for as_dir in $PATH 15421 do 15422 IFS=$as_save_IFS 15423 test -z "$as_dir" && as_dir=. 15424 for ac_exec_ext in '' $ac_executable_extensions; do 15425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15426 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15428 break 2 15429 fi 15430 done 15431 done 15432 IFS=$as_save_IFS 15433 15434 ;; 15435 esac 15436 fi 15437 PANDOC=$ac_cv_path_PANDOC 15438 if test -n "$PANDOC"; then 15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15440 $as_echo "$PANDOC" >&6; } 15441 else 15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15443 $as_echo "no" >&6; } 15444 fi 15445 15446 15447 test -n "$PANDOC" && break 15448 done 15449 15450 else 15451 # If it succeeded, then it was overridden by the user. We will use it 15452 # for the tool. 15453 15454 # First remove it from the list of overridden variables, so we can test 15455 # for unknown variables in the end. 15456 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15457 15458 # Check if we try to supply an empty value 15459 if test "x$PANDOC" = x; then 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5 15461 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;} 15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15463 $as_echo_n "checking for PANDOC... " >&6; } 15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15465 $as_echo "disabled" >&6; } 15466 else 15467 # Check if the provided tool contains a complete path. 15468 tool_specified="$PANDOC" 15469 tool_basename="${tool_specified##*/}" 15470 if test "x$tool_basename" = "x$tool_specified"; then 15471 # A command without a complete path is provided, search $PATH. 15472 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5 15473 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;} 15474 # Extract the first word of "$tool_basename", so it can be a program name with args. 15475 set dummy $tool_basename; ac_word=$2 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15477 $as_echo_n "checking for $ac_word... " >&6; } 15478 if ${ac_cv_path_PANDOC+:} false; then : 15479 $as_echo_n "(cached) " >&6 15480 else 15481 case $PANDOC in 15482 [\\/]* | ?:[\\/]*) 15483 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15484 ;; 15485 *) 15486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15487 for as_dir in $PATH 15488 do 15489 IFS=$as_save_IFS 15490 test -z "$as_dir" && as_dir=. 15491 for ac_exec_ext in '' $ac_executable_extensions; do 15492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15493 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15495 break 2 15496 fi 15497 done 15498 done 15499 IFS=$as_save_IFS 15500 15501 ;; 15502 esac 15503 fi 15504 PANDOC=$ac_cv_path_PANDOC 15505 if test -n "$PANDOC"; then 15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15507 $as_echo "$PANDOC" >&6; } 15508 else 15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15510 $as_echo "no" >&6; } 15511 fi 15512 15513 15514 if test "x$PANDOC" = x; then 15515 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15516 fi 15517 else 15518 # Otherwise we believe it is a complete path. Use it as it is. 15519 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5 15520 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;} 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15522 $as_echo_n "checking for PANDOC... " >&6; } 15523 if test ! -x "$tool_specified"; then 15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15525 $as_echo "not found" >&6; } 15526 as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5 15527 fi 15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15529 $as_echo "$tool_specified" >&6; } 15530 fi 15531 fi 15532 fi 15533 15534 fi 15535 15536 15537 15538 15539 # Now we can determine OpenJDK build and target platforms. This is required to 15540 # have early on. 15541 # Make sure we can run config.sub. 15542 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15543 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15544 15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15546 $as_echo_n "checking build system type... " >&6; } 15547 if ${ac_cv_build+:} false; then : 15548 $as_echo_n "(cached) " >&6 15549 else 15550 ac_build_alias=$build_alias 15551 test "x$ac_build_alias" = x && 15552 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15553 test "x$ac_build_alias" = x && 15554 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15555 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15556 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15557 15558 fi 15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15560 $as_echo "$ac_cv_build" >&6; } 15561 case $ac_cv_build in 15562 *-*-*) ;; 15563 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15564 esac 15565 build=$ac_cv_build 15566 ac_save_IFS=$IFS; IFS='-' 15567 set x $ac_cv_build 15568 shift 15569 build_cpu=$1 15570 build_vendor=$2 15571 shift; shift 15572 # Remember, the first character of IFS is used to create $*, 15573 # except with old shells: 15574 build_os=$* 15575 IFS=$ac_save_IFS 15576 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15577 15578 15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15580 $as_echo_n "checking host system type... " >&6; } 15581 if ${ac_cv_host+:} false; then : 15582 $as_echo_n "(cached) " >&6 15583 else 15584 if test "x$host_alias" = x; then 15585 ac_cv_host=$ac_cv_build 15586 else 15587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15589 fi 15590 15591 fi 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15593 $as_echo "$ac_cv_host" >&6; } 15594 case $ac_cv_host in 15595 *-*-*) ;; 15596 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15597 esac 15598 host=$ac_cv_host 15599 ac_save_IFS=$IFS; IFS='-' 15600 set x $ac_cv_host 15601 shift 15602 host_cpu=$1 15603 host_vendor=$2 15604 shift; shift 15605 # Remember, the first character of IFS is used to create $*, 15606 # except with old shells: 15607 host_os=$* 15608 IFS=$ac_save_IFS 15609 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15610 15611 15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15613 $as_echo_n "checking target system type... " >&6; } 15614 if ${ac_cv_target+:} false; then : 15615 $as_echo_n "(cached) " >&6 15616 else 15617 if test "x$target_alias" = x; then 15618 ac_cv_target=$ac_cv_host 15619 else 15620 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15621 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15622 fi 15623 15624 fi 15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15626 $as_echo "$ac_cv_target" >&6; } 15627 case $ac_cv_target in 15628 *-*-*) ;; 15629 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15630 esac 15631 target=$ac_cv_target 15632 ac_save_IFS=$IFS; IFS='-' 15633 set x $ac_cv_target 15634 shift 15635 target_cpu=$1 15636 target_vendor=$2 15637 shift; shift 15638 # Remember, the first character of IFS is used to create $*, 15639 # except with old shells: 15640 target_os=$* 15641 IFS=$ac_save_IFS 15642 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15643 15644 15645 # The aliases save the names the user supplied, while $host etc. 15646 # will get canonicalized. 15647 test -n "$target_alias" && 15648 test "$program_prefix$program_suffix$program_transform_name" = \ 15649 NONENONEs,x,x, && 15650 program_prefix=${target_alias}- 15651 15652 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15653 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15654 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15655 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15656 # to use the configure naming style. 15657 15658 15659 15660 15661 15662 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15663 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15664 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15665 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15666 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15667 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15668 15669 15670 15671 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15672 15673 case "$build_os" in 15674 *linux*) 15675 VAR_OS=linux 15676 VAR_OS_TYPE=unix 15677 ;; 15678 *solaris*) 15679 VAR_OS=solaris 15680 VAR_OS_TYPE=unix 15681 ;; 15682 *darwin*) 15683 VAR_OS=macosx 15684 VAR_OS_TYPE=unix 15685 ;; 15686 *bsd*) 15687 VAR_OS=bsd 15688 VAR_OS_TYPE=unix 15689 ;; 15690 *cygwin*) 15691 VAR_OS=windows 15692 VAR_OS_ENV=windows.cygwin 15693 ;; 15694 *mingw*) 15695 VAR_OS=windows 15696 VAR_OS_ENV=windows.msys 15697 ;; 15698 *aix*) 15699 VAR_OS=aix 15700 VAR_OS_TYPE=unix 15701 ;; 15702 *) 15703 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15704 ;; 15705 esac 15706 15707 15708 # First argument is the cpu name from the trip/quad 15709 case "$build_cpu" in 15710 x86_64) 15711 VAR_CPU=x86_64 15712 VAR_CPU_ARCH=x86 15713 VAR_CPU_BITS=64 15714 VAR_CPU_ENDIAN=little 15715 ;; 15716 i?86) 15717 VAR_CPU=x86 15718 VAR_CPU_ARCH=x86 15719 VAR_CPU_BITS=32 15720 VAR_CPU_ENDIAN=little 15721 ;; 15722 alpha*) 15723 VAR_CPU=alpha 15724 VAR_CPU_ARCH=alpha 15725 VAR_CPU_BITS=64 15726 VAR_CPU_ENDIAN=little 15727 ;; 15728 arm*) 15729 VAR_CPU=arm 15730 VAR_CPU_ARCH=arm 15731 VAR_CPU_BITS=32 15732 VAR_CPU_ENDIAN=little 15733 ;; 15734 aarch64) 15735 VAR_CPU=aarch64 15736 VAR_CPU_ARCH=aarch64 15737 VAR_CPU_BITS=64 15738 VAR_CPU_ENDIAN=little 15739 ;; 15740 m68k) 15741 VAR_CPU=m68k 15742 VAR_CPU_ARCH=m68k 15743 VAR_CPU_BITS=32 15744 VAR_CPU_ENDIAN=big 15745 ;; 15746 mips) 15747 VAR_CPU=mips 15748 VAR_CPU_ARCH=mips 15749 VAR_CPU_BITS=32 15750 VAR_CPU_ENDIAN=big 15751 ;; 15752 mipsel) 15753 VAR_CPU=mipsel 15754 VAR_CPU_ARCH=mipsel 15755 VAR_CPU_BITS=32 15756 VAR_CPU_ENDIAN=little 15757 ;; 15758 mips64) 15759 VAR_CPU=mips64 15760 VAR_CPU_ARCH=mips64 15761 VAR_CPU_BITS=64 15762 VAR_CPU_ENDIAN=big 15763 ;; 15764 mips64el) 15765 VAR_CPU=mips64el 15766 VAR_CPU_ARCH=mips64el 15767 VAR_CPU_BITS=64 15768 VAR_CPU_ENDIAN=little 15769 ;; 15770 powerpc) 15771 VAR_CPU=ppc 15772 VAR_CPU_ARCH=ppc 15773 VAR_CPU_BITS=32 15774 VAR_CPU_ENDIAN=big 15775 ;; 15776 powerpc64) 15777 VAR_CPU=ppc64 15778 VAR_CPU_ARCH=ppc 15779 VAR_CPU_BITS=64 15780 VAR_CPU_ENDIAN=big 15781 ;; 15782 powerpc64le) 15783 VAR_CPU=ppc64le 15784 VAR_CPU_ARCH=ppc 15785 VAR_CPU_BITS=64 15786 VAR_CPU_ENDIAN=little 15787 ;; 15788 s390) 15789 VAR_CPU=s390 15790 VAR_CPU_ARCH=s390 15791 VAR_CPU_BITS=32 15792 VAR_CPU_ENDIAN=big 15793 ;; 15794 s390x) 15795 VAR_CPU=s390x 15796 VAR_CPU_ARCH=s390 15797 VAR_CPU_BITS=64 15798 VAR_CPU_ENDIAN=big 15799 ;; 15800 sh*eb) 15801 VAR_CPU=sh 15802 VAR_CPU_ARCH=sh 15803 VAR_CPU_BITS=32 15804 VAR_CPU_ENDIAN=big 15805 ;; 15806 sh*) 15807 VAR_CPU=sh 15808 VAR_CPU_ARCH=sh 15809 VAR_CPU_BITS=32 15810 VAR_CPU_ENDIAN=little 15811 ;; 15812 sparc) 15813 VAR_CPU=sparc 15814 VAR_CPU_ARCH=sparc 15815 VAR_CPU_BITS=32 15816 VAR_CPU_ENDIAN=big 15817 ;; 15818 sparcv9|sparc64) 15819 VAR_CPU=sparcv9 15820 VAR_CPU_ARCH=sparc 15821 VAR_CPU_BITS=64 15822 VAR_CPU_ENDIAN=big 15823 ;; 15824 *) 15825 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15826 ;; 15827 esac 15828 15829 # ..and setup our own variables. (Do this explicitly to facilitate searching) 15830 OPENJDK_BUILD_OS="$VAR_OS" 15831 if test "x$VAR_OS_TYPE" != x; then 15832 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15833 else 15834 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15835 fi 15836 if test "x$VAR_OS_ENV" != x; then 15837 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15838 else 15839 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15840 fi 15841 OPENJDK_BUILD_CPU="$VAR_CPU" 15842 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15843 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15844 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15845 15846 15847 15848 15849 15850 15851 15852 15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15854 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15856 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15857 15858 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15859 15860 case "$host_os" in 15861 *linux*) 15862 VAR_OS=linux 15863 VAR_OS_TYPE=unix 15864 ;; 15865 *solaris*) 15866 VAR_OS=solaris 15867 VAR_OS_TYPE=unix 15868 ;; 15869 *darwin*) 15870 VAR_OS=macosx 15871 VAR_OS_TYPE=unix 15872 ;; 15873 *bsd*) 15874 VAR_OS=bsd 15875 VAR_OS_TYPE=unix 15876 ;; 15877 *cygwin*) 15878 VAR_OS=windows 15879 VAR_OS_ENV=windows.cygwin 15880 ;; 15881 *mingw*) 15882 VAR_OS=windows 15883 VAR_OS_ENV=windows.msys 15884 ;; 15885 *aix*) 15886 VAR_OS=aix 15887 VAR_OS_TYPE=unix 15888 ;; 15889 *) 15890 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15891 ;; 15892 esac 15893 15894 15895 # First argument is the cpu name from the trip/quad 15896 case "$host_cpu" in 15897 x86_64) 15898 VAR_CPU=x86_64 15899 VAR_CPU_ARCH=x86 15900 VAR_CPU_BITS=64 15901 VAR_CPU_ENDIAN=little 15902 ;; 15903 i?86) 15904 VAR_CPU=x86 15905 VAR_CPU_ARCH=x86 15906 VAR_CPU_BITS=32 15907 VAR_CPU_ENDIAN=little 15908 ;; 15909 alpha*) 15910 VAR_CPU=alpha 15911 VAR_CPU_ARCH=alpha 15912 VAR_CPU_BITS=64 15913 VAR_CPU_ENDIAN=little 15914 ;; 15915 arm*) 15916 VAR_CPU=arm 15917 VAR_CPU_ARCH=arm 15918 VAR_CPU_BITS=32 15919 VAR_CPU_ENDIAN=little 15920 ;; 15921 aarch64) 15922 VAR_CPU=aarch64 15923 VAR_CPU_ARCH=aarch64 15924 VAR_CPU_BITS=64 15925 VAR_CPU_ENDIAN=little 15926 ;; 15927 m68k) 15928 VAR_CPU=m68k 15929 VAR_CPU_ARCH=m68k 15930 VAR_CPU_BITS=32 15931 VAR_CPU_ENDIAN=big 15932 ;; 15933 mips) 15934 VAR_CPU=mips 15935 VAR_CPU_ARCH=mips 15936 VAR_CPU_BITS=32 15937 VAR_CPU_ENDIAN=big 15938 ;; 15939 mipsel) 15940 VAR_CPU=mipsel 15941 VAR_CPU_ARCH=mipsel 15942 VAR_CPU_BITS=32 15943 VAR_CPU_ENDIAN=little 15944 ;; 15945 mips64) 15946 VAR_CPU=mips64 15947 VAR_CPU_ARCH=mips64 15948 VAR_CPU_BITS=64 15949 VAR_CPU_ENDIAN=big 15950 ;; 15951 mips64el) 15952 VAR_CPU=mips64el 15953 VAR_CPU_ARCH=mips64el 15954 VAR_CPU_BITS=64 15955 VAR_CPU_ENDIAN=little 15956 ;; 15957 powerpc) 15958 VAR_CPU=ppc 15959 VAR_CPU_ARCH=ppc 15960 VAR_CPU_BITS=32 15961 VAR_CPU_ENDIAN=big 15962 ;; 15963 powerpc64) 15964 VAR_CPU=ppc64 15965 VAR_CPU_ARCH=ppc 15966 VAR_CPU_BITS=64 15967 VAR_CPU_ENDIAN=big 15968 ;; 15969 powerpc64le) 15970 VAR_CPU=ppc64le 15971 VAR_CPU_ARCH=ppc 15972 VAR_CPU_BITS=64 15973 VAR_CPU_ENDIAN=little 15974 ;; 15975 s390) 15976 VAR_CPU=s390 15977 VAR_CPU_ARCH=s390 15978 VAR_CPU_BITS=32 15979 VAR_CPU_ENDIAN=big 15980 ;; 15981 s390x) 15982 VAR_CPU=s390x 15983 VAR_CPU_ARCH=s390 15984 VAR_CPU_BITS=64 15985 VAR_CPU_ENDIAN=big 15986 ;; 15987 sh*eb) 15988 VAR_CPU=sh 15989 VAR_CPU_ARCH=sh 15990 VAR_CPU_BITS=32 15991 VAR_CPU_ENDIAN=big 15992 ;; 15993 sh*) 15994 VAR_CPU=sh 15995 VAR_CPU_ARCH=sh 15996 VAR_CPU_BITS=32 15997 VAR_CPU_ENDIAN=little 15998 ;; 15999 sparc) 16000 VAR_CPU=sparc 16001 VAR_CPU_ARCH=sparc 16002 VAR_CPU_BITS=32 16003 VAR_CPU_ENDIAN=big 16004 ;; 16005 sparcv9|sparc64) 16006 VAR_CPU=sparcv9 16007 VAR_CPU_ARCH=sparc 16008 VAR_CPU_BITS=64 16009 VAR_CPU_ENDIAN=big 16010 ;; 16011 *) 16012 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 16013 ;; 16014 esac 16015 16016 # ... and setup our own variables. (Do this explicitly to facilitate searching) 16017 OPENJDK_TARGET_OS="$VAR_OS" 16018 if test "x$VAR_OS_TYPE" != x; then 16019 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 16020 else 16021 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 16022 fi 16023 if test "x$VAR_OS_ENV" != x; then 16024 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 16025 else 16026 OPENJDK_TARGET_OS_ENV="$VAR_OS" 16027 fi 16028 OPENJDK_TARGET_CPU="$VAR_CPU" 16029 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 16030 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 16031 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 16032 16033 16034 16035 16036 16037 16038 16039 16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 16041 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 16043 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 16044 16045 16046 16047 # Check whether --with-target-bits was given. 16048 if test "${with_target_bits+set}" = set; then : 16049 withval=$with_target_bits; 16050 fi 16051 16052 16053 # We have three types of compiles: 16054 # native == normal compilation, target system == build system 16055 # cross == traditional cross compilation, target system != build system; special toolchain needed 16056 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 16057 # 16058 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 16059 # We're doing a proper cross-compilation 16060 COMPILE_TYPE="cross" 16061 else 16062 COMPILE_TYPE="native" 16063 fi 16064 16065 if test "x$with_target_bits" != x; then 16066 if test "x$COMPILE_TYPE" = "xcross"; then 16067 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 16068 fi 16069 16070 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16071 # A reduced build is requested 16072 COMPILE_TYPE="reduced" 16073 OPENJDK_TARGET_CPU_BITS=32 16074 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 16075 OPENJDK_TARGET_CPU=x86 16076 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 16077 OPENJDK_TARGET_CPU=sparc 16078 else 16079 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 16080 fi 16081 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16082 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 16083 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 16084 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 16085 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 16086 else 16087 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 16088 fi 16089 fi 16090 16091 16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 16093 $as_echo_n "checking compilation type... " >&6; } 16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 16095 $as_echo "$COMPILE_TYPE" >&6; } 16096 16097 16098 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16099 OPENJDK_MODULE_TARGET_OS_NAME="macos" 16100 else 16101 OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS" 16102 fi 16103 16104 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16105 OPENJDK_MODULE_TARGET_OS_ARCH="amd64" 16106 else 16107 OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU" 16108 fi 16109 16110 OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}" 16111 16112 16113 16114 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 16115 RELEASE_FILE_OS_NAME=SunOS 16116 fi 16117 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 16118 RELEASE_FILE_OS_NAME=Linux 16119 fi 16120 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16121 RELEASE_FILE_OS_NAME=Windows 16122 fi 16123 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16124 RELEASE_FILE_OS_NAME="Darwin" 16125 fi 16126 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 16127 RELEASE_FILE_OS_NAME="AIX" 16128 fi 16129 RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU} 16130 16131 16132 16133 16134 16135 16136 # Also store the legacy naming of the cpu. 16137 # Ie i586 and amd64 instead of x86 and x86_64 16138 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 16139 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16140 OPENJDK_TARGET_CPU_LEGACY="i586" 16141 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16142 # On all platforms except MacOSX replace x86_64 with amd64. 16143 OPENJDK_TARGET_CPU_LEGACY="amd64" 16144 elif test "x$OPENJDK_TARGET_CPU" = xalpha; then 16145 # Avoid name collisions with variables named alpha 16146 OPENJDK_TARGET_CPU_LEGACY="_alpha_" 16147 elif test "x$OPENJDK_TARGET_CPU" = xsh; then 16148 # Avoid name collisions with variables named sh 16149 OPENJDK_TARGET_CPU_LEGACY="_sh_" 16150 fi 16151 16152 16153 # And the second legacy naming of the cpu. 16154 # Ie i386 and amd64 instead of x86 and x86_64. 16155 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 16156 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16157 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 16158 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16159 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 16160 fi 16161 16162 16163 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16164 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16165 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 16166 OPENJDK_TARGET_CPU_ISADIR="" 16167 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 16168 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16169 OPENJDK_TARGET_CPU_ISADIR="/amd64" 16170 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16171 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 16172 fi 16173 fi 16174 16175 16176 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 16177 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 16178 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 16179 # On linux only, we replace x86 with i386. 16180 OPENJDK_TARGET_CPU_OSARCH="i386" 16181 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16182 # On all platforms except macosx, we replace x86_64 with amd64. 16183 OPENJDK_TARGET_CPU_OSARCH="amd64" 16184 fi 16185 16186 16187 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 16188 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16189 OPENJDK_TARGET_CPU_JLI="i386" 16190 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16191 # On all platforms except macosx, we replace x86_64 with amd64. 16192 OPENJDK_TARGET_CPU_JLI="amd64" 16193 fi 16194 16195 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16196 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 16197 else 16198 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 16199 fi 16200 16201 16202 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16203 # Macosx is osx and x86_64 is x64 16204 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16205 OPENJDK_TARGET_OS_BUNDLE="osx" 16206 else 16207 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 16208 fi 16209 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16210 OPENJDK_TARGET_CPU_BUNDLE="x64" 16211 else 16212 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 16213 fi 16214 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 16215 16216 16217 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16218 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16219 # unpack200.exe. This variable is used in 16220 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16221 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 16222 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 16223 fi 16224 fi 16225 16226 if test "x$COMPILE_TYPE" = "xcross"; then 16227 # FIXME: ... or should this include reduced builds..? 16228 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 16229 else 16230 DEFINE_CROSS_COMPILE_ARCH="" 16231 fi 16232 16233 16234 # Convert openjdk platform names to hotspot names 16235 16236 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 16237 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16238 HOTSPOT_TARGET_OS=bsd 16239 fi 16240 16241 16242 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 16243 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 16244 HOTSPOT_TARGET_OS_TYPE=posix 16245 fi 16246 16247 16248 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 16249 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16250 HOTSPOT_TARGET_CPU=x86_32 16251 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16252 HOTSPOT_TARGET_CPU=sparc 16253 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16254 HOTSPOT_TARGET_CPU=ppc_64 16255 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16256 HOTSPOT_TARGET_CPU=ppc_64 16257 fi 16258 16259 16260 # This is identical with OPENJDK_*, but define anyway for consistency. 16261 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 16262 16263 16264 # Setup HOTSPOT_TARGET_CPU_DEFINE 16265 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16266 HOTSPOT_TARGET_CPU_DEFINE=IA32 16267 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16268 HOTSPOT_TARGET_CPU_DEFINE=AMD64 16269 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16270 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16271 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 16272 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 16273 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16274 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16275 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16276 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16277 16278 # The cpu defines below are for zero, we don't support them directly. 16279 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 16280 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16281 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 16282 HOTSPOT_TARGET_CPU_DEFINE=PPC32 16283 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 16284 HOTSPOT_TARGET_CPU_DEFINE=S390 16285 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 16286 HOTSPOT_TARGET_CPU_DEFINE=S390 16287 elif test "x$OPENJDK_TARGET_CPU" != x; then 16288 HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z) 16289 fi 16290 16291 16292 16293 16294 # Also store the legacy naming of the cpu. 16295 # Ie i586 and amd64 instead of x86 and x86_64 16296 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 16297 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16298 OPENJDK_BUILD_CPU_LEGACY="i586" 16299 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16300 # On all platforms except MacOSX replace x86_64 with amd64. 16301 OPENJDK_BUILD_CPU_LEGACY="amd64" 16302 elif test "x$OPENJDK_BUILD_CPU" = xalpha; then 16303 # Avoid name collisions with variables named alpha 16304 OPENJDK_BUILD_CPU_LEGACY="_alpha_" 16305 elif test "x$OPENJDK_BUILD_CPU" = xsh; then 16306 # Avoid name collisions with variables named sh 16307 OPENJDK_BUILD_CPU_LEGACY="_sh_" 16308 fi 16309 16310 16311 # And the second legacy naming of the cpu. 16312 # Ie i386 and amd64 instead of x86 and x86_64. 16313 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 16314 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16315 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 16316 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16317 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 16318 fi 16319 16320 16321 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16322 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16323 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 16324 OPENJDK_BUILD_CPU_ISADIR="" 16325 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16326 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16327 OPENJDK_BUILD_CPU_ISADIR="/amd64" 16328 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16329 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 16330 fi 16331 fi 16332 16333 16334 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 16335 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 16336 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 16337 # On linux only, we replace x86 with i386. 16338 OPENJDK_BUILD_CPU_OSARCH="i386" 16339 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16340 # On all platforms except macosx, we replace x86_64 with amd64. 16341 OPENJDK_BUILD_CPU_OSARCH="amd64" 16342 fi 16343 16344 16345 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16346 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16347 OPENJDK_BUILD_CPU_JLI="i386" 16348 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16349 # On all platforms except macosx, we replace x86_64 with amd64. 16350 OPENJDK_BUILD_CPU_JLI="amd64" 16351 fi 16352 16353 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16354 OPENJDK_BUILD_OS_EXPORT_DIR=macosx 16355 else 16356 OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE} 16357 fi 16358 16359 16360 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16361 # Macosx is osx and x86_64 is x64 16362 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16363 OPENJDK_BUILD_OS_BUNDLE="osx" 16364 else 16365 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16366 fi 16367 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16368 OPENJDK_BUILD_CPU_BUNDLE="x64" 16369 else 16370 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16371 fi 16372 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16373 16374 16375 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16376 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16377 # unpack200.exe. This variable is used in 16378 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16379 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16380 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16381 fi 16382 fi 16383 16384 if test "x$COMPILE_TYPE" = "xcross"; then 16385 # FIXME: ... or should this include reduced builds..? 16386 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 16387 else 16388 DEFINE_CROSS_COMPILE_ARCH="" 16389 fi 16390 16391 16392 # Convert openjdk platform names to hotspot names 16393 16394 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16395 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16396 HOTSPOT_BUILD_OS=bsd 16397 fi 16398 16399 16400 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16401 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16402 HOTSPOT_BUILD_OS_TYPE=posix 16403 fi 16404 16405 16406 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16407 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16408 HOTSPOT_BUILD_CPU=x86_32 16409 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16410 HOTSPOT_BUILD_CPU=sparc 16411 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16412 HOTSPOT_BUILD_CPU=ppc_64 16413 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16414 HOTSPOT_BUILD_CPU=ppc_64 16415 fi 16416 16417 16418 # This is identical with OPENJDK_*, but define anyway for consistency. 16419 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16420 16421 16422 # Setup HOTSPOT_BUILD_CPU_DEFINE 16423 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16424 HOTSPOT_BUILD_CPU_DEFINE=IA32 16425 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16426 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16427 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16428 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16429 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16430 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16431 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16432 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16433 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16434 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16435 16436 # The cpu defines below are for zero, we don't support them directly. 16437 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16438 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16439 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16440 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16441 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16442 HOTSPOT_BUILD_CPU_DEFINE=S390 16443 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16444 HOTSPOT_BUILD_CPU_DEFINE=S390 16445 elif test "x$OPENJDK_BUILD_CPU" != x; then 16446 HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z) 16447 fi 16448 16449 16450 16451 16452 16453 16454 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16455 16456 # Save the current directory this script was started from 16457 CURDIR="$PWD" 16458 16459 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16460 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16461 # was not available at that time. 16462 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16463 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16464 ORIGINAL_PATH="$REWRITTEN_PATH" 16465 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16466 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16467 fi 16468 16469 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16470 PATH_SEP=";" 16471 16472 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16473 if test $SRC_ROOT_LENGTH -gt 100; then 16474 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16475 fi 16476 16477 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16479 $as_echo_n "checking cygwin release... " >&6; } 16480 CYGWIN_VERSION=`$UNAME -r` 16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16482 $as_echo "$CYGWIN_VERSION" >&6; } 16483 WINDOWS_ENV_VENDOR='cygwin' 16484 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16485 16486 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16487 if test "x$CYGWIN_VERSION_OLD" != x; then 16488 { $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 16489 $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;} 16490 as_fn_error $? "Cannot continue" "$LINENO" 5 16491 fi 16492 if test "x$CYGPATH" = x; then 16493 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16494 fi 16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16496 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16497 # The cmd output ends with Windows line endings (CR/LF) 16498 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 16499 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16500 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16502 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16503 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16504 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16505 if test "x$test_cygdrive_prefix" = x; then 16506 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16507 fi 16508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16510 $as_echo_n "checking msys release... " >&6; } 16511 MSYS_VERSION=`$UNAME -r` 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16513 $as_echo "$MSYS_VERSION" >&6; } 16514 16515 WINDOWS_ENV_VENDOR='msys' 16516 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16517 16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16519 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16520 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16521 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16522 16523 windows_path="$MSYS_ROOT_PATH" 16524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16525 unix_path=`$CYGPATH -u "$windows_path"` 16526 MSYS_ROOT_PATH="$unix_path" 16527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16528 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16529 MSYS_ROOT_PATH="$unix_path" 16530 fi 16531 16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16533 $as_echo "$MSYS_ROOT_PATH" >&6; } 16534 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16535 else 16536 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 16537 fi 16538 16539 # Test if windows or unix (cygwin/msys) find is first in path. 16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16541 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16542 FIND_BINARY_OUTPUT=`find --version 2>&1` 16543 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16545 $as_echo "unix style" >&6; } 16546 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16548 $as_echo "Windows" >&6; } 16549 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16550 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16551 { $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 16552 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16553 as_fn_error $? "Cannot continue" "$LINENO" 5 16554 else 16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16556 $as_echo "unknown" >&6; } 16557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16558 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16559 fi 16560 16561 else 16562 PATH_SEP=":" 16563 fi 16564 16565 16566 # We get the top-level directory from the supporting wrappers. 16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16568 $as_echo_n "checking for top-level directory... " >&6; } 16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16570 $as_echo "$TOPDIR" >&6; } 16571 16572 16573 # Save the original version of TOPDIR for string comparisons 16574 ORIGINAL_TOPDIR="$TOPDIR" 16575 16576 16577 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16578 16579 # Only process if variable expands to non-empty 16580 16581 if test "x$CURDIR" != x; then 16582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16583 16584 # Input might be given as Windows format, start by converting to 16585 # unix format. 16586 path="$CURDIR" 16587 new_path=`$CYGPATH -u "$path"` 16588 16589 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16590 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16591 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16592 # "foo.exe" is OK but "foo" is an error. 16593 # 16594 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16595 # It is also a way to make sure we got the proper file name for the real test later on. 16596 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16597 if test "x$test_shortpath" = x; then 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16599 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16600 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16601 fi 16602 16603 # Call helper function which possibly converts this using DOS-style short mode. 16604 # If so, the updated path is stored in $new_path. 16605 16606 input_path="$new_path" 16607 # Check if we need to convert this using DOS-style short mode. If the path 16608 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16609 # take no chances and rewrite it. 16610 # Note: m4 eats our [], so we need to use [ and ] instead. 16611 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16612 if test "x$has_forbidden_chars" != x; then 16613 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16614 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16615 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16616 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16617 # Going to short mode and back again did indeed matter. Since short mode is 16618 # case insensitive, let's make it lowercase to improve readability. 16619 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16620 # Now convert it back to Unix-style (cygpath) 16621 input_path=`$CYGPATH -u "$shortmode_path"` 16622 new_path="$input_path" 16623 fi 16624 fi 16625 16626 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16627 if test "x$test_cygdrive_prefix" = x; then 16628 # As a simple fix, exclude /usr/bin since it's not a real path. 16629 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16630 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16631 # a path prefixed by /cygdrive for fixpath to work. 16632 new_path="$CYGWIN_ROOT_PATH$input_path" 16633 fi 16634 fi 16635 16636 16637 if test "x$path" != "x$new_path"; then 16638 CURDIR="$new_path" 16639 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16640 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16641 fi 16642 16643 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16644 16645 path="$CURDIR" 16646 has_colon=`$ECHO $path | $GREP ^.:` 16647 new_path="$path" 16648 if test "x$has_colon" = x; then 16649 # Not in mixed or Windows style, start by that. 16650 new_path=`cmd //c echo $path` 16651 fi 16652 16653 16654 input_path="$new_path" 16655 # Check if we need to convert this using DOS-style short mode. If the path 16656 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16657 # take no chances and rewrite it. 16658 # Note: m4 eats our [], so we need to use [ and ] instead. 16659 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16660 if test "x$has_forbidden_chars" != x; then 16661 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16662 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16663 fi 16664 16665 16666 windows_path="$new_path" 16667 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16668 unix_path=`$CYGPATH -u "$windows_path"` 16669 new_path="$unix_path" 16670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16671 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16672 new_path="$unix_path" 16673 fi 16674 16675 if test "x$path" != "x$new_path"; then 16676 CURDIR="$new_path" 16677 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16678 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16679 fi 16680 16681 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16682 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16683 16684 else 16685 # We're on a unix platform. Hooray! :) 16686 path="$CURDIR" 16687 has_space=`$ECHO "$path" | $GREP " "` 16688 if test "x$has_space" != x; then 16689 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16690 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16691 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16692 fi 16693 16694 # Use eval to expand a potential ~ 16695 eval path="$path" 16696 if test ! -f "$path" && test ! -d "$path"; then 16697 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16698 fi 16699 16700 if test -d "$path"; then 16701 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16702 else 16703 dir="`$DIRNAME "$path"`" 16704 base="`$BASENAME "$path"`" 16705 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16706 fi 16707 fi 16708 fi 16709 16710 16711 # Only process if variable expands to non-empty 16712 16713 if test "x$TOPDIR" != x; then 16714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16715 16716 # Input might be given as Windows format, start by converting to 16717 # unix format. 16718 path="$TOPDIR" 16719 new_path=`$CYGPATH -u "$path"` 16720 16721 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16722 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16723 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16724 # "foo.exe" is OK but "foo" is an error. 16725 # 16726 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16727 # It is also a way to make sure we got the proper file name for the real test later on. 16728 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16729 if test "x$test_shortpath" = x; then 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16731 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16732 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16733 fi 16734 16735 # Call helper function which possibly converts this using DOS-style short mode. 16736 # If so, the updated path is stored in $new_path. 16737 16738 input_path="$new_path" 16739 # Check if we need to convert this using DOS-style short mode. If the path 16740 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16741 # take no chances and rewrite it. 16742 # Note: m4 eats our [], so we need to use [ and ] instead. 16743 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16744 if test "x$has_forbidden_chars" != x; then 16745 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16746 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16747 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16748 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16749 # Going to short mode and back again did indeed matter. Since short mode is 16750 # case insensitive, let's make it lowercase to improve readability. 16751 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16752 # Now convert it back to Unix-style (cygpath) 16753 input_path=`$CYGPATH -u "$shortmode_path"` 16754 new_path="$input_path" 16755 fi 16756 fi 16757 16758 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16759 if test "x$test_cygdrive_prefix" = x; then 16760 # As a simple fix, exclude /usr/bin since it's not a real path. 16761 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16762 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16763 # a path prefixed by /cygdrive for fixpath to work. 16764 new_path="$CYGWIN_ROOT_PATH$input_path" 16765 fi 16766 fi 16767 16768 16769 if test "x$path" != "x$new_path"; then 16770 TOPDIR="$new_path" 16771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16772 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16773 fi 16774 16775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16776 16777 path="$TOPDIR" 16778 has_colon=`$ECHO $path | $GREP ^.:` 16779 new_path="$path" 16780 if test "x$has_colon" = x; then 16781 # Not in mixed or Windows style, start by that. 16782 new_path=`cmd //c echo $path` 16783 fi 16784 16785 16786 input_path="$new_path" 16787 # Check if we need to convert this using DOS-style short mode. If the path 16788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16789 # take no chances and rewrite it. 16790 # Note: m4 eats our [], so we need to use [ and ] instead. 16791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16792 if test "x$has_forbidden_chars" != x; then 16793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16794 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16795 fi 16796 16797 16798 windows_path="$new_path" 16799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16800 unix_path=`$CYGPATH -u "$windows_path"` 16801 new_path="$unix_path" 16802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16804 new_path="$unix_path" 16805 fi 16806 16807 if test "x$path" != "x$new_path"; then 16808 TOPDIR="$new_path" 16809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16810 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16811 fi 16812 16813 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16814 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16815 16816 else 16817 # We're on a unix platform. Hooray! :) 16818 path="$TOPDIR" 16819 has_space=`$ECHO "$path" | $GREP " "` 16820 if test "x$has_space" != x; then 16821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16822 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16823 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16824 fi 16825 16826 # Use eval to expand a potential ~ 16827 eval path="$path" 16828 if test ! -f "$path" && test ! -d "$path"; then 16829 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16830 fi 16831 16832 if test -d "$path"; then 16833 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16834 else 16835 dir="`$DIRNAME "$path"`" 16836 base="`$BASENAME "$path"`" 16837 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16838 fi 16839 fi 16840 fi 16841 16842 # SRC_ROOT is a traditional alias for TOPDIR. 16843 SRC_ROOT=$TOPDIR 16844 16845 # Calculate a canonical version of TOPDIR for string comparisons 16846 CANONICAL_TOPDIR=$TOPDIR 16847 16848 if test "x$OPENJDK_BUILD_OS" != xwindows; then 16849 # Follow a chain of symbolic links. Use readlink 16850 # where it exists, else fall back to horribly 16851 # complicated shell code. 16852 if test "x$READLINK_TESTED" != yes; then 16853 # On MacOSX there is a readlink tool with a different 16854 # purpose than the GNU readlink tool. Check the found readlink. 16855 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 16856 if test "x$ISGNU" = x; then 16857 # A readlink that we do not know how to use. 16858 # Are there other non-GNU readlinks out there? 16859 READLINK_TESTED=yes 16860 READLINK= 16861 fi 16862 fi 16863 16864 if test "x$READLINK" != x; then 16865 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 16866 else 16867 # Save the current directory for restoring afterwards 16868 STARTDIR=$PWD 16869 COUNTER=0 16870 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 16871 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 16872 cd $sym_link_dir 16873 # Use -P flag to resolve symlinks in directories. 16874 cd `$THEPWDCMD -P` 16875 sym_link_dir=`$THEPWDCMD -P` 16876 # Resolve file symlinks 16877 while test $COUNTER -lt 20; do 16878 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 16879 if test "x$ISLINK" == x; then 16880 # This is not a symbolic link! We are done! 16881 break 16882 fi 16883 # Again resolve directory symlinks since the target of the just found 16884 # link could be in a different directory 16885 cd `$DIRNAME $ISLINK` 16886 sym_link_dir=`$THEPWDCMD -P` 16887 sym_link_file=`$BASENAME $ISLINK` 16888 let COUNTER=COUNTER+1 16889 done 16890 cd $STARTDIR 16891 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 16892 fi 16893 fi 16894 16895 16896 16897 # Locate the directory of this script. 16898 AUTOCONF_DIR=$TOPDIR/common/autoconf 16899 16900 # Setup username (for use in adhoc version strings etc) 16901 # Outer [ ] to quote m4. 16902 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16903 16904 16905 16906 # Check if it's a pure open build or if custom sources are to be used. 16907 16908 # Check whether --enable-openjdk-only was given. 16909 if test "${enable_openjdk_only+set}" = set; then : 16910 enableval=$enable_openjdk_only; 16911 else 16912 enable_openjdk_only="no" 16913 fi 16914 16915 16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5 16917 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; } 16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5 16919 $as_echo "$enable_openjdk_only" >&6; } 16920 if test "x$enable_openjdk_only" = "xyes"; then 16921 SUPPRESS_CUSTOM_EXTENSIONS="true" 16922 elif test "x$enable_openjdk_only" = "xno"; then 16923 SUPPRESS_CUSTOM_EXTENSIONS="false" 16924 else 16925 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5 16926 fi 16927 16928 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16929 # the IncludeCustomExtension macro. 16930 16931 16932 # Check whether --with-custom-make-dir was given. 16933 if test "${with_custom_make_dir+set}" = set; then : 16934 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 16935 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16936 fi 16937 16938 16939 16940 16941 # These are needed to be able to create a configuration name (and thus the output directory) 16942 16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16944 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16945 16946 # Check whether --with-jdk-variant was given. 16947 if test "${with_jdk_variant+set}" = set; then : 16948 withval=$with_jdk_variant; 16949 fi 16950 16951 16952 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16953 JDK_VARIANT="normal" 16954 else 16955 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16956 fi 16957 16958 16959 16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16961 $as_echo "$JDK_VARIANT" >&6; } 16962 16963 16964 DEBUG_LEVEL="release" 16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16966 $as_echo_n "checking which debug level to use... " >&6; } 16967 # Check whether --enable-debug was given. 16968 if test "${enable_debug+set}" = set; then : 16969 enableval=$enable_debug; 16970 ENABLE_DEBUG="${enableval}" 16971 DEBUG_LEVEL="fastdebug" 16972 16973 else 16974 ENABLE_DEBUG="no" 16975 fi 16976 16977 16978 16979 # Check whether --with-debug-level was given. 16980 if test "${with_debug_level+set}" = set; then : 16981 withval=$with_debug_level; 16982 DEBUG_LEVEL="${withval}" 16983 if test "x$ENABLE_DEBUG" = xyes; then 16984 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16985 fi 16986 16987 fi 16988 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16990 $as_echo "$DEBUG_LEVEL" >&6; } 16991 16992 if test "x$DEBUG_LEVEL" != xrelease && \ 16993 test "x$DEBUG_LEVEL" != xoptimized && \ 16994 test "x$DEBUG_LEVEL" != xfastdebug && \ 16995 test "x$DEBUG_LEVEL" != xslowdebug; then 16996 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16997 fi 16998 16999 # Translate DEBUG_LEVEL to debug level used by Hotspot 17000 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 17001 if test "x$DEBUG_LEVEL" = xrelease; then 17002 HOTSPOT_DEBUG_LEVEL="product" 17003 elif test "x$DEBUG_LEVEL" = xslowdebug; then 17004 HOTSPOT_DEBUG_LEVEL="debug" 17005 fi 17006 17007 if test "x$DEBUG_LEVEL" = xoptimized; then 17008 # The debug level 'optimized' is a little special because it is currently only 17009 # applicable to the HotSpot build where it means to build a completely 17010 # optimized version of the VM without any debugging code (like for the 17011 # 'release' debug level which is called 'product' in the HotSpot build) but 17012 # with the exception that it can contain additional code which is otherwise 17013 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 17014 # test new and/or experimental features which are not intended for customer 17015 # shipment. Because these new features need to be tested and benchmarked in 17016 # real world scenarios, we want to build the containing JDK at the 'release' 17017 # debug level. 17018 DEBUG_LEVEL="release" 17019 fi 17020 17021 17022 17023 17024 17025 17026 # Check whether --with-jvm-variants was given. 17027 if test "${with_jvm_variants+set}" = set; then : 17028 withval=$with_jvm_variants; 17029 fi 17030 17031 17032 17033 17034 # Check whether --with-cpu-port was given. 17035 if test "${with_cpu_port+set}" = set; then : 17036 withval=$with_cpu_port; 17037 fi 17038 17039 17040 if test "x$with_cpu_port" != x; then 17041 if test "x$OPENJDK_TARGET_CPU" != xaarch64; then 17042 as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5 17043 fi 17044 if test "x$with_cpu_port" != xarm64 && \ 17045 test "x$with_cpu_port" != xaarch64; then 17046 as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5 17047 fi 17048 HOTSPOT_TARGET_CPU_PORT="$with_cpu_port" 17049 fi 17050 17051 17052 if test "x$with_jvm_variants" = x; then 17053 with_jvm_variants="server" 17054 fi 17055 JVM_VARIANTS_OPT="$with_jvm_variants" 17056 17057 # Has the user listed more than one variant? 17058 # Additional [] needed to keep m4 from mangling shell constructs. 17059 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 17060 BUILDING_MULTIPLE_JVM_VARIANTS=true 17061 else 17062 BUILDING_MULTIPLE_JVM_VARIANTS=false 17063 fi 17064 # Replace the commas with AND for use in the build directory name. 17065 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 17066 17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 17068 $as_echo_n "checking which variants of the JVM to build... " >&6; } 17069 # JVM_VARIANTS is a space-separated list. 17070 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 17071 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 17073 $as_echo "$JVM_VARIANTS" >&6; } 17074 17075 # Check that the selected variants are valid 17076 17077 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 17078 # Notice that the original variant failes on SLES 10 and 11 17079 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 17080 STACK=${JVM_VARIANTS// /$'\n'} 17081 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17082 if test "x$INVALID_VARIANTS" != x; then 17083 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 17084 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 17085 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 17086 fi 17087 17088 # All "special" variants share the same output directory ("server") 17089 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 17090 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 17091 STACK=${JVM_VARIANTS// /$'\n'} 17092 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17093 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 17094 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 17095 fi 17096 17097 # The "main" variant is the one used by other libs to link against during the 17098 # build. 17099 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 17100 MAIN_VARIANT_PRIO_ORDER="server client minimal" 17101 for variant in $MAIN_VARIANT_PRIO_ORDER; do 17102 if [[ " $JVM_VARIANTS " =~ " $variant " ]] ; then 17103 JVM_VARIANT_MAIN="$variant" 17104 break 17105 fi 17106 done 17107 else 17108 JVM_VARIANT_MAIN="$JVM_VARIANTS" 17109 fi 17110 17111 17112 17113 17114 17115 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 17116 # zero behaves as a platform and rewrites these values. This is really weird. :( 17117 # We are guaranteed that we do not build any other variants when building zero. 17118 HOTSPOT_TARGET_CPU=zero 17119 HOTSPOT_TARGET_CPU_ARCH=zero 17120 fi 17121 17122 17123 # With basic setup done, call the custom early hook. 17124 17125 17126 # Check if we have devkits, extra paths or sysroot set. 17127 17128 17129 # Check whether --with-devkit was given. 17130 if test "${with_devkit+set}" = set; then : 17131 withval=$with_devkit; 17132 17133 # Only process if variable expands to non-empty 17134 17135 if test "x$with_devkit" != x; then 17136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17137 17138 # Input might be given as Windows format, start by converting to 17139 # unix format. 17140 path="$with_devkit" 17141 new_path=`$CYGPATH -u "$path"` 17142 17143 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17144 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17145 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17146 # "foo.exe" is OK but "foo" is an error. 17147 # 17148 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17149 # It is also a way to make sure we got the proper file name for the real test later on. 17150 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17151 if test "x$test_shortpath" = x; then 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17153 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17154 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 17155 fi 17156 17157 # Call helper function which possibly converts this using DOS-style short mode. 17158 # If so, the updated path is stored in $new_path. 17159 17160 input_path="$new_path" 17161 # Check if we need to convert this using DOS-style short mode. If the path 17162 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17163 # take no chances and rewrite it. 17164 # Note: m4 eats our [], so we need to use [ and ] instead. 17165 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17166 if test "x$has_forbidden_chars" != x; then 17167 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17168 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17169 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17170 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17171 # Going to short mode and back again did indeed matter. Since short mode is 17172 # case insensitive, let's make it lowercase to improve readability. 17173 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17174 # Now convert it back to Unix-style (cygpath) 17175 input_path=`$CYGPATH -u "$shortmode_path"` 17176 new_path="$input_path" 17177 fi 17178 fi 17179 17180 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17181 if test "x$test_cygdrive_prefix" = x; then 17182 # As a simple fix, exclude /usr/bin since it's not a real path. 17183 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17184 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17185 # a path prefixed by /cygdrive for fixpath to work. 17186 new_path="$CYGWIN_ROOT_PATH$input_path" 17187 fi 17188 fi 17189 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 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17198 17199 path="$with_devkit" 17200 has_colon=`$ECHO $path | $GREP ^.:` 17201 new_path="$path" 17202 if test "x$has_colon" = x; then 17203 # Not in mixed or Windows style, start by that. 17204 new_path=`cmd //c echo $path` 17205 fi 17206 17207 17208 input_path="$new_path" 17209 # Check if we need to convert this using DOS-style short mode. If the path 17210 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17211 # take no chances and rewrite it. 17212 # Note: m4 eats our [], so we need to use [ and ] instead. 17213 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17214 if test "x$has_forbidden_chars" != x; then 17215 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17216 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17217 fi 17218 17219 17220 windows_path="$new_path" 17221 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17222 unix_path=`$CYGPATH -u "$windows_path"` 17223 new_path="$unix_path" 17224 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17225 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17226 new_path="$unix_path" 17227 fi 17228 17229 if test "x$path" != "x$new_path"; then 17230 with_devkit="$new_path" 17231 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17232 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17233 fi 17234 17235 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17236 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17237 17238 else 17239 # We're on a unix platform. Hooray! :) 17240 path="$with_devkit" 17241 has_space=`$ECHO "$path" | $GREP " "` 17242 if test "x$has_space" != x; then 17243 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17244 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17245 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17246 fi 17247 17248 # Use eval to expand a potential ~ 17249 eval path="$path" 17250 if test ! -f "$path" && test ! -d "$path"; then 17251 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 17252 fi 17253 17254 if test -d "$path"; then 17255 with_devkit="`cd "$path"; $THEPWDCMD -L`" 17256 else 17257 dir="`$DIRNAME "$path"`" 17258 base="`$BASENAME "$path"`" 17259 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 17260 fi 17261 fi 17262 fi 17263 17264 DEVKIT_ROOT="$with_devkit" 17265 # Check for a meta data info file in the root of the devkit 17266 if test -f "$DEVKIT_ROOT/devkit.info"; then 17267 . $DEVKIT_ROOT/devkit.info 17268 # This potentially sets the following: 17269 # A descriptive name of the devkit 17270 17271 if test "x$DEVKIT_NAME" = x; then 17272 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 17273 fi 17274 17275 # Corresponds to --with-extra-path 17276 17277 if test "x$DEVKIT_EXTRA_PATH" = x; then 17278 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 17279 fi 17280 17281 # Corresponds to --with-toolchain-path 17282 17283 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17284 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 17285 fi 17286 17287 # Corresponds to --with-sysroot 17288 17289 if test "x$DEVKIT_SYSROOT" = x; then 17290 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 17291 fi 17292 17293 17294 # Identifies the Visual Studio version in the devkit 17295 17296 if test "x$DEVKIT_VS_VERSION" = x; then 17297 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 17298 fi 17299 17300 # The Visual Studio include environment variable 17301 17302 if test "x$DEVKIT_VS_INCLUDE" = x; then 17303 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 17304 fi 17305 17306 # The Visual Studio lib environment variable 17307 17308 if test "x$DEVKIT_VS_LIB" = x; then 17309 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 17310 fi 17311 17312 # Corresponds to --with-msvcr-dll 17313 17314 if test "x$DEVKIT_MSVCR_DLL" = x; then 17315 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 17316 fi 17317 17318 # Corresponds to --with-msvcp-dll 17319 17320 if test "x$DEVKIT_MSVCP_DLL" = x; then 17321 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 17322 fi 17323 17324 fi 17325 17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 17327 $as_echo_n "checking for devkit... " >&6; } 17328 if test "x$DEVKIT_NAME" != x; then 17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 17330 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 17331 else 17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 17333 $as_echo "$DEVKIT_ROOT" >&6; } 17334 fi 17335 17336 17337 if test "x$DEVKIT_EXTRA_PATH" != x; then 17338 if test "x$EXTRA_PATH" = x; then 17339 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 17340 else 17341 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 17342 fi 17343 fi 17344 17345 17346 # Fallback default of just /bin if DEVKIT_PATH is not defined 17347 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17348 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 17349 fi 17350 17351 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 17352 if test "x$TOOLCHAIN_PATH" = x; then 17353 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 17354 else 17355 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 17356 fi 17357 fi 17358 17359 17360 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17361 # places for backwards compatiblity. 17362 if test "x$DEVKIT_SYSROOT" != x; then 17363 SYSROOT="$DEVKIT_SYSROOT" 17364 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17365 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17366 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17367 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17368 fi 17369 17370 17371 fi 17372 17373 17374 # You can force the sysroot if the sysroot encoded into the compiler tools 17375 # is not correct. 17376 17377 # Check whether --with-sys-root was given. 17378 if test "${with_sys_root+set}" = set; then : 17379 withval=$with_sys_root; SYSROOT=$with_sys_root 17380 17381 fi 17382 17383 17384 17385 # Check whether --with-sysroot was given. 17386 if test "${with_sysroot+set}" = set; then : 17387 withval=$with_sysroot; SYSROOT=$with_sysroot 17388 17389 fi 17390 17391 17392 17393 # Check whether --with-tools-dir was given. 17394 if test "${with_tools_dir+set}" = set; then : 17395 withval=$with_tools_dir; 17396 if test "x$with_tools_dir" != x; then 17397 if test "x$TOOLCHAIN_PATH" = x; then 17398 TOOLCHAIN_PATH="$with_tools_dir" 17399 else 17400 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17401 fi 17402 fi 17403 17404 17405 fi 17406 17407 17408 17409 # Check whether --with-toolchain-path was given. 17410 if test "${with_toolchain_path+set}" = set; then : 17411 withval=$with_toolchain_path; 17412 if test "x$with_toolchain_path" != x; then 17413 if test "x$TOOLCHAIN_PATH" = x; then 17414 TOOLCHAIN_PATH="$with_toolchain_path" 17415 else 17416 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17417 fi 17418 fi 17419 17420 17421 fi 17422 17423 17424 17425 # Check whether --with-extra-path was given. 17426 if test "${with_extra_path+set}" = set; then : 17427 withval=$with_extra_path; 17428 if test "x$with_extra_path" != x; then 17429 if test "x$EXTRA_PATH" = x; then 17430 EXTRA_PATH="$with_extra_path" 17431 else 17432 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17433 fi 17434 fi 17435 17436 17437 fi 17438 17439 17440 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 17441 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17442 # If not, detect if Xcode is installed by running xcodebuild -version 17443 # if no Xcode installed, xcodebuild exits with 1 17444 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17445 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17446 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17447 # fall back on the stub binary in /usr/bin/xcodebuild 17448 # Extract the first word of "xcodebuild", so it can be a program name with args. 17449 set dummy xcodebuild; ac_word=$2 17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17451 $as_echo_n "checking for $ac_word... " >&6; } 17452 if ${ac_cv_path_XCODEBUILD+:} false; then : 17453 $as_echo_n "(cached) " >&6 17454 else 17455 case $XCODEBUILD in 17456 [\\/]* | ?:[\\/]*) 17457 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17458 ;; 17459 *) 17460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17461 for as_dir in $TOOLCHAIN_PATH 17462 do 17463 IFS=$as_save_IFS 17464 test -z "$as_dir" && as_dir=. 17465 for ac_exec_ext in '' $ac_executable_extensions; do 17466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17467 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17469 break 2 17470 fi 17471 done 17472 done 17473 IFS=$as_save_IFS 17474 17475 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17476 ;; 17477 esac 17478 fi 17479 XCODEBUILD=$ac_cv_path_XCODEBUILD 17480 if test -n "$XCODEBUILD"; then 17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17482 $as_echo "$XCODEBUILD" >&6; } 17483 else 17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17485 $as_echo "no" >&6; } 17486 fi 17487 17488 17489 else 17490 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17491 # when only the command line tools are installed there are no SDKs, so headers 17492 # are copied into the system frameworks 17493 XCODEBUILD= 17494 17495 fi 17496 17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17498 $as_echo_n "checking for sdk name... " >&6; } 17499 17500 # Check whether --with-sdk-name was given. 17501 if test "${with_sdk_name+set}" = set; then : 17502 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17503 17504 fi 17505 17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17507 $as_echo "$SDKNAME" >&6; } 17508 17509 # if toolchain path is specified then don't rely on system headers, they may not compile 17510 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17511 test -z "$TOOLCHAIN_PATH" && \ 17512 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17513 17514 if test -z "$SYSROOT"; then 17515 if test -n "$XCODEBUILD"; then 17516 # if we don't have system headers, use default SDK name (last resort) 17517 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17518 SDKNAME=${SDKNAME:-macosx} 17519 fi 17520 17521 if test -n "$SDKNAME"; then 17522 # Call xcodebuild to determine SYSROOT 17523 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17524 fi 17525 else 17526 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17527 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 17528 fi 17529 fi 17530 else 17531 # warn user if --with-sdk-name was also set 17532 if test -n "$with_sdk_name"; then 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17534 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17535 fi 17536 fi 17537 17538 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17539 # If no system framework headers, then SYSROOT must be set, or we won't build 17540 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 17541 fi 17542 17543 # Perform a basic sanity test 17544 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17545 if test -z "$SYSROOT"; then 17546 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 17547 else 17548 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17549 fi 17550 fi 17551 17552 # set SDKROOT too, Xcode tools will pick it up 17553 SDKROOT="$SYSROOT" 17554 17555 fi 17556 17557 # Prepend the extra path to the global path 17558 17559 if test "x$EXTRA_PATH" != x; then 17560 if test "x$PATH" = x; then 17561 PATH="$EXTRA_PATH" 17562 else 17563 PATH="$EXTRA_PATH:$PATH" 17564 fi 17565 fi 17566 17567 17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17569 $as_echo_n "checking for sysroot... " >&6; } 17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17571 $as_echo "$SYSROOT" >&6; } 17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17573 $as_echo_n "checking for toolchain path... " >&6; } 17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17575 $as_echo "$TOOLCHAIN_PATH" >&6; } 17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17577 $as_echo_n "checking for extra path... " >&6; } 17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17579 $as_echo "$EXTRA_PATH" >&6; } 17580 17581 17582 # To properly create a configuration name, we need to have the OpenJDK target 17583 # and options (variants and debug level) parsed. 17584 17585 17586 17587 # Check whether --with-conf-name was given. 17588 if test "${with_conf_name+set}" = set; then : 17589 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17590 fi 17591 17592 17593 # Test from where we are running configure, in or outside of src root. 17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17595 $as_echo_n "checking where to store configuration... " >&6; } 17596 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 17597 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 17598 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 17599 # We are running configure from the src root. 17600 # Create a default ./build/target-variant-debuglevel output root. 17601 if test "x${CONF_NAME}" = x; then 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17603 $as_echo "in default location" >&6; } 17604 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17605 else 17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17607 $as_echo "in build directory with custom name" >&6; } 17608 fi 17609 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 17610 $MKDIR -p "$OUTPUT_ROOT" 17611 if test ! -d "$OUTPUT_ROOT"; then 17612 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 17613 fi 17614 else 17615 # We are running configure from outside of the src dir. 17616 # Then use the current directory as output dir! 17617 # If configuration is situated in normal build directory, just use the build 17618 # directory name as configuration name, otherwise use the complete path. 17619 if test "x${CONF_NAME}" = x; then 17620 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 17621 fi 17622 OUTPUT_ROOT="$CURDIR" 17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17624 $as_echo "in current directory" >&6; } 17625 17626 # WARNING: This might be a bad thing to do. You need to be sure you want to 17627 # have a configuration in this directory. Do some sanity checks! 17628 17629 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 17630 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17631 # other files 17632 files_present=`$LS $OUTPUT_ROOT` 17633 # Configure has already touched config.log and confdefs.h in the current dir when this check 17634 # is performed. 17635 filtered_files=`$ECHO "$files_present" \ 17636 | $SED -e 's/config.log//g' \ 17637 -e 's/configure.log//g' \ 17638 -e 's/confdefs.h//g' \ 17639 -e 's/ //g' \ 17640 | $TR -d '\n'` 17641 if test "x$filtered_files" != x; then 17642 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17643 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17644 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17645 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17646 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17647 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17648 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17649 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17650 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17651 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 17653 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 17654 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17655 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17656 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17657 fi 17658 fi 17659 fi 17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17661 $as_echo_n "checking what configuration name to use... " >&6; } 17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17663 $as_echo "$CONF_NAME" >&6; } 17664 17665 17666 # Only process if variable expands to non-empty 17667 17668 if test "x$OUTPUT_ROOT" != x; then 17669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17670 17671 # Input might be given as Windows format, start by converting to 17672 # unix format. 17673 path="$OUTPUT_ROOT" 17674 new_path=`$CYGPATH -u "$path"` 17675 17676 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17677 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17678 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17679 # "foo.exe" is OK but "foo" is an error. 17680 # 17681 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17682 # It is also a way to make sure we got the proper file name for the real test later on. 17683 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17684 if test "x$test_shortpath" = x; then 17685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17686 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17687 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 17688 fi 17689 17690 # Call helper function which possibly converts this using DOS-style short mode. 17691 # If so, the updated path is stored in $new_path. 17692 17693 input_path="$new_path" 17694 # Check if we need to convert this using DOS-style short mode. If the path 17695 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17696 # take no chances and rewrite it. 17697 # Note: m4 eats our [], so we need to use [ and ] instead. 17698 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17699 if test "x$has_forbidden_chars" != x; then 17700 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17701 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17702 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17703 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17704 # Going to short mode and back again did indeed matter. Since short mode is 17705 # case insensitive, let's make it lowercase to improve readability. 17706 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17707 # Now convert it back to Unix-style (cygpath) 17708 input_path=`$CYGPATH -u "$shortmode_path"` 17709 new_path="$input_path" 17710 fi 17711 fi 17712 17713 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17714 if test "x$test_cygdrive_prefix" = x; then 17715 # As a simple fix, exclude /usr/bin since it's not a real path. 17716 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17717 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17718 # a path prefixed by /cygdrive for fixpath to work. 17719 new_path="$CYGWIN_ROOT_PATH$input_path" 17720 fi 17721 fi 17722 17723 17724 if test "x$path" != "x$new_path"; then 17725 OUTPUT_ROOT="$new_path" 17726 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17727 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17728 fi 17729 17730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17731 17732 path="$OUTPUT_ROOT" 17733 has_colon=`$ECHO $path | $GREP ^.:` 17734 new_path="$path" 17735 if test "x$has_colon" = x; then 17736 # Not in mixed or Windows style, start by that. 17737 new_path=`cmd //c echo $path` 17738 fi 17739 17740 17741 input_path="$new_path" 17742 # Check if we need to convert this using DOS-style short mode. If the path 17743 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17744 # take no chances and rewrite it. 17745 # Note: m4 eats our [], so we need to use [ and ] instead. 17746 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17747 if test "x$has_forbidden_chars" != x; then 17748 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17749 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17750 fi 17751 17752 17753 windows_path="$new_path" 17754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17755 unix_path=`$CYGPATH -u "$windows_path"` 17756 new_path="$unix_path" 17757 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17758 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17759 new_path="$unix_path" 17760 fi 17761 17762 if test "x$path" != "x$new_path"; then 17763 OUTPUT_ROOT="$new_path" 17764 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17765 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17766 fi 17767 17768 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17769 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17770 17771 else 17772 # We're on a unix platform. Hooray! :) 17773 path="$OUTPUT_ROOT" 17774 has_space=`$ECHO "$path" | $GREP " "` 17775 if test "x$has_space" != x; then 17776 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17777 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17778 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17779 fi 17780 17781 # Use eval to expand a potential ~ 17782 eval path="$path" 17783 if test ! -f "$path" && test ! -d "$path"; then 17784 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 17785 fi 17786 17787 if test -d "$path"; then 17788 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 17789 else 17790 dir="`$DIRNAME "$path"`" 17791 base="`$BASENAME "$path"`" 17792 OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base" 17793 fi 17794 fi 17795 fi 17796 17797 17798 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 17799 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17800 17801 SPEC="$OUTPUT_ROOT/spec.gmk" 17802 17803 17804 17805 17806 17807 # The spec.gmk file contains all variables for the make system. 17808 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17809 17810 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17811 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17812 17813 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17814 ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17815 17816 # The compare.sh is used to compare the build output to other builds. 17817 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17818 17819 # The generated Makefile knows where the spec.gmk is and where the source is. 17820 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 17821 # which will look for generated configurations 17822 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 17823 17824 17825 17826 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17827 17828 for ac_prog in apt-get yum brew port pkgutil pkgadd 17829 do 17830 # Extract the first word of "$ac_prog", so it can be a program name with args. 17831 set dummy $ac_prog; ac_word=$2 17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17833 $as_echo_n "checking for $ac_word... " >&6; } 17834 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17835 $as_echo_n "(cached) " >&6 17836 else 17837 if test -n "$PKGHANDLER"; then 17838 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17839 else 17840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17841 for as_dir in $PATH 17842 do 17843 IFS=$as_save_IFS 17844 test -z "$as_dir" && as_dir=. 17845 for ac_exec_ext in '' $ac_executable_extensions; do 17846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17847 ac_cv_prog_PKGHANDLER="$ac_prog" 17848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17849 break 2 17850 fi 17851 done 17852 done 17853 IFS=$as_save_IFS 17854 17855 fi 17856 fi 17857 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17858 if test -n "$PKGHANDLER"; then 17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17860 $as_echo "$PKGHANDLER" >&6; } 17861 else 17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17863 $as_echo "no" >&6; } 17864 fi 17865 17866 17867 test -n "$PKGHANDLER" && break 17868 done 17869 17870 17871 17872 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17873 17874 17875 17876 # Publish this variable in the help. 17877 17878 17879 if [ -z "${MAKE+x}" ]; then 17880 # The variable is not set by user, try to locate tool using the code snippet 17881 17882 # Try our hardest to locate a correct version of GNU make 17883 for ac_prog in gmake 17884 do 17885 # Extract the first word of "$ac_prog", so it can be a program name with args. 17886 set dummy $ac_prog; ac_word=$2 17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17888 $as_echo_n "checking for $ac_word... " >&6; } 17889 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17890 $as_echo_n "(cached) " >&6 17891 else 17892 case $CHECK_GMAKE in 17893 [\\/]* | ?:[\\/]*) 17894 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17895 ;; 17896 *) 17897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17898 for as_dir in $PATH 17899 do 17900 IFS=$as_save_IFS 17901 test -z "$as_dir" && as_dir=. 17902 for ac_exec_ext in '' $ac_executable_extensions; do 17903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17904 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17906 break 2 17907 fi 17908 done 17909 done 17910 IFS=$as_save_IFS 17911 17912 ;; 17913 esac 17914 fi 17915 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17916 if test -n "$CHECK_GMAKE"; then 17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17918 $as_echo "$CHECK_GMAKE" >&6; } 17919 else 17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17921 $as_echo "no" >&6; } 17922 fi 17923 17924 17925 test -n "$CHECK_GMAKE" && break 17926 done 17927 17928 17929 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17930 DESCRIPTION="gmake in PATH" 17931 17932 # On Cygwin, we require a newer version of make than on other platforms 17933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17934 MAKE_VERSION_EXPR="-e 4\." 17935 MAKE_REQUIRED_VERSION="4.0" 17936 else 17937 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17938 MAKE_REQUIRED_VERSION="3.81" 17939 fi 17940 17941 if test "x$MAKE_CANDIDATE" != x; then 17942 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17943 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17944 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17945 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17946 if test "x$IS_GNU_MAKE" = x; then 17947 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17948 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17949 else 17950 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17951 if test "x$IS_MODERN_MAKE" = x; then 17952 { $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 17953 $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;} 17954 else 17955 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17957 MAKE_EXPECTED_ENV='cygwin' 17958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17959 MAKE_EXPECTED_ENV='msys' 17960 else 17961 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17962 fi 17963 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17964 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17965 else 17966 # Not relevant for non-Windows 17967 IS_MAKE_CORRECT_ENV=true 17968 fi 17969 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17970 { $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 17971 $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;} 17972 else 17973 FOUND_MAKE=$MAKE_CANDIDATE 17974 17975 # Only process if variable expands to non-empty 17976 17977 if test "x$FOUND_MAKE" != x; then 17978 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17979 17980 # First separate the path from the arguments. This will split at the first 17981 # space. 17982 complete="$FOUND_MAKE" 17983 path="${complete%% *}" 17984 tmp="$complete EOL" 17985 arguments="${tmp#* }" 17986 17987 # Input might be given as Windows format, start by converting to 17988 # unix format. 17989 new_path=`$CYGPATH -u "$path"` 17990 17991 # Now try to locate executable using which 17992 new_path=`$WHICH "$new_path" 2> /dev/null` 17993 # bat and cmd files are not always considered executable in cygwin causing which 17994 # to not find them 17995 if test "x$new_path" = x \ 17996 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17997 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17998 new_path=`$CYGPATH -u "$path"` 17999 fi 18000 if test "x$new_path" = x; then 18001 # Oops. Which didn't find the executable. 18002 # The splitting of arguments from the executable at a space might have been incorrect, 18003 # since paths with space are more likely in Windows. Give it another try with the whole 18004 # argument. 18005 path="$complete" 18006 arguments="EOL" 18007 new_path=`$CYGPATH -u "$path"` 18008 new_path=`$WHICH "$new_path" 2> /dev/null` 18009 # bat and cmd files are not always considered executable in cygwin causing which 18010 # to not find them 18011 if test "x$new_path" = x \ 18012 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18013 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18014 new_path=`$CYGPATH -u "$path"` 18015 fi 18016 if test "x$new_path" = x; then 18017 # It's still not found. Now this is an unrecoverable error. 18018 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18019 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18020 has_space=`$ECHO "$complete" | $GREP " "` 18021 if test "x$has_space" != x; then 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18023 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18024 fi 18025 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18026 fi 18027 fi 18028 18029 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18030 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18031 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18032 # "foo.exe" is OK but "foo" is an error. 18033 # 18034 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18035 # It is also a way to make sure we got the proper file name for the real test later on. 18036 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18037 if test "x$test_shortpath" = x; then 18038 # Short path failed, file does not exist as specified. 18039 # Try adding .exe or .cmd 18040 if test -f "${new_path}.exe"; then 18041 input_to_shortpath="${new_path}.exe" 18042 elif test -f "${new_path}.cmd"; then 18043 input_to_shortpath="${new_path}.cmd" 18044 else 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18046 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18047 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18048 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18049 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18050 fi 18051 else 18052 input_to_shortpath="$new_path" 18053 fi 18054 18055 # Call helper function which possibly converts this using DOS-style short mode. 18056 # If so, the updated path is stored in $new_path. 18057 new_path="$input_to_shortpath" 18058 18059 input_path="$input_to_shortpath" 18060 # Check if we need to convert this using DOS-style short mode. If the path 18061 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18062 # take no chances and rewrite it. 18063 # Note: m4 eats our [], so we need to use [ and ] instead. 18064 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18065 if test "x$has_forbidden_chars" != x; then 18066 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18067 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18068 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18069 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18070 # Going to short mode and back again did indeed matter. Since short mode is 18071 # case insensitive, let's make it lowercase to improve readability. 18072 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18073 # Now convert it back to Unix-style (cygpath) 18074 input_path=`$CYGPATH -u "$shortmode_path"` 18075 new_path="$input_path" 18076 fi 18077 fi 18078 18079 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18080 if test "x$test_cygdrive_prefix" = x; then 18081 # As a simple fix, exclude /usr/bin since it's not a real path. 18082 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18083 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18084 # a path prefixed by /cygdrive for fixpath to work. 18085 new_path="$CYGWIN_ROOT_PATH$input_path" 18086 fi 18087 fi 18088 18089 # remove trailing .exe if any 18090 new_path="${new_path/%.exe/}" 18091 18092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18093 18094 # First separate the path from the arguments. This will split at the first 18095 # space. 18096 complete="$FOUND_MAKE" 18097 path="${complete%% *}" 18098 tmp="$complete EOL" 18099 arguments="${tmp#* }" 18100 18101 # Input might be given as Windows format, start by converting to 18102 # unix format. 18103 new_path="$path" 18104 18105 windows_path="$new_path" 18106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18107 unix_path=`$CYGPATH -u "$windows_path"` 18108 new_path="$unix_path" 18109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18111 new_path="$unix_path" 18112 fi 18113 18114 18115 # Now try to locate executable using which 18116 new_path=`$WHICH "$new_path" 2> /dev/null` 18117 18118 if test "x$new_path" = x; then 18119 # Oops. Which didn't find the executable. 18120 # The splitting of arguments from the executable at a space might have been incorrect, 18121 # since paths with space are more likely in Windows. Give it another try with the whole 18122 # argument. 18123 path="$complete" 18124 arguments="EOL" 18125 new_path="$path" 18126 18127 windows_path="$new_path" 18128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18129 unix_path=`$CYGPATH -u "$windows_path"` 18130 new_path="$unix_path" 18131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18132 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18133 new_path="$unix_path" 18134 fi 18135 18136 18137 new_path=`$WHICH "$new_path" 2> /dev/null` 18138 # bat and cmd files are not always considered executable in MSYS causing which 18139 # to not find them 18140 if test "x$new_path" = x \ 18141 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18142 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18143 new_path="$path" 18144 18145 windows_path="$new_path" 18146 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18147 unix_path=`$CYGPATH -u "$windows_path"` 18148 new_path="$unix_path" 18149 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18150 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18151 new_path="$unix_path" 18152 fi 18153 18154 fi 18155 18156 if test "x$new_path" = x; then 18157 # It's still not found. Now this is an unrecoverable error. 18158 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18159 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18160 has_space=`$ECHO "$complete" | $GREP " "` 18161 if test "x$has_space" != x; then 18162 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18163 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18164 fi 18165 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18166 fi 18167 fi 18168 18169 # Now new_path has a complete unix path to the binary 18170 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18171 # Keep paths in /bin as-is, but remove trailing .exe if any 18172 new_path="${new_path/%.exe/}" 18173 # Do not save /bin paths to all_fixpath_prefixes! 18174 else 18175 # Not in mixed or Windows style, start by that. 18176 new_path=`cmd //c echo $new_path` 18177 18178 input_path="$new_path" 18179 # Check if we need to convert this using DOS-style short mode. If the path 18180 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18181 # take no chances and rewrite it. 18182 # Note: m4 eats our [], so we need to use [ and ] instead. 18183 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18184 if test "x$has_forbidden_chars" != x; then 18185 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18186 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18187 fi 18188 18189 # Output is in $new_path 18190 18191 windows_path="$new_path" 18192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18193 unix_path=`$CYGPATH -u "$windows_path"` 18194 new_path="$unix_path" 18195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18196 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18197 new_path="$unix_path" 18198 fi 18199 18200 # remove trailing .exe if any 18201 new_path="${new_path/%.exe/}" 18202 18203 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18204 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18205 fi 18206 18207 else 18208 # We're on a unix platform. Hooray! :) 18209 # First separate the path from the arguments. This will split at the first 18210 # space. 18211 complete="$FOUND_MAKE" 18212 path="${complete%% *}" 18213 tmp="$complete EOL" 18214 arguments="${tmp#* }" 18215 18216 # Cannot rely on the command "which" here since it doesn't always work. 18217 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18218 if test -z "$is_absolute_path"; then 18219 # Path to executable is not absolute. Find it. 18220 IFS_save="$IFS" 18221 IFS=: 18222 for p in $PATH; do 18223 if test -f "$p/$path" && test -x "$p/$path"; then 18224 new_path="$p/$path" 18225 break 18226 fi 18227 done 18228 IFS="$IFS_save" 18229 else 18230 # This is an absolute path, we can use it without further modifications. 18231 new_path="$path" 18232 fi 18233 18234 if test "x$new_path" = x; then 18235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18236 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18237 has_space=`$ECHO "$complete" | $GREP " "` 18238 if test "x$has_space" != x; then 18239 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18240 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18241 fi 18242 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18243 fi 18244 fi 18245 18246 # Now join together the path and the arguments once again 18247 if test "x$arguments" != xEOL; then 18248 new_complete="$new_path ${arguments% *}" 18249 else 18250 new_complete="$new_path" 18251 fi 18252 18253 if test "x$complete" != "x$new_complete"; then 18254 FOUND_MAKE="$new_complete" 18255 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18256 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18257 fi 18258 fi 18259 18260 fi 18261 fi 18262 fi 18263 fi 18264 18265 18266 if test "x$FOUND_MAKE" = x; then 18267 for ac_prog in make 18268 do 18269 # Extract the first word of "$ac_prog", so it can be a program name with args. 18270 set dummy $ac_prog; ac_word=$2 18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18272 $as_echo_n "checking for $ac_word... " >&6; } 18273 if ${ac_cv_path_CHECK_MAKE+:} false; then : 18274 $as_echo_n "(cached) " >&6 18275 else 18276 case $CHECK_MAKE in 18277 [\\/]* | ?:[\\/]*) 18278 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 18279 ;; 18280 *) 18281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18282 for as_dir in $PATH 18283 do 18284 IFS=$as_save_IFS 18285 test -z "$as_dir" && as_dir=. 18286 for ac_exec_ext in '' $ac_executable_extensions; do 18287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18288 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 18289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18290 break 2 18291 fi 18292 done 18293 done 18294 IFS=$as_save_IFS 18295 18296 ;; 18297 esac 18298 fi 18299 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18300 if test -n "$CHECK_MAKE"; then 18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18302 $as_echo "$CHECK_MAKE" >&6; } 18303 else 18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18305 $as_echo "no" >&6; } 18306 fi 18307 18308 18309 test -n "$CHECK_MAKE" && break 18310 done 18311 18312 18313 MAKE_CANDIDATE=""$CHECK_MAKE"" 18314 DESCRIPTION="make in PATH" 18315 18316 # On Cygwin, we require a newer version of make than on other platforms 18317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18318 MAKE_VERSION_EXPR="-e 4\." 18319 MAKE_REQUIRED_VERSION="4.0" 18320 else 18321 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18322 MAKE_REQUIRED_VERSION="3.81" 18323 fi 18324 18325 if test "x$MAKE_CANDIDATE" != x; then 18326 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18327 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18328 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18329 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18330 if test "x$IS_GNU_MAKE" = x; then 18331 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18332 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18333 else 18334 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18335 if test "x$IS_MODERN_MAKE" = x; then 18336 { $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 18337 $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;} 18338 else 18339 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18341 MAKE_EXPECTED_ENV='cygwin' 18342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18343 MAKE_EXPECTED_ENV='msys' 18344 else 18345 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18346 fi 18347 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18348 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18349 else 18350 # Not relevant for non-Windows 18351 IS_MAKE_CORRECT_ENV=true 18352 fi 18353 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18354 { $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 18355 $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;} 18356 else 18357 FOUND_MAKE=$MAKE_CANDIDATE 18358 18359 # Only process if variable expands to non-empty 18360 18361 if test "x$FOUND_MAKE" != x; then 18362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18363 18364 # First separate the path from the arguments. This will split at the first 18365 # space. 18366 complete="$FOUND_MAKE" 18367 path="${complete%% *}" 18368 tmp="$complete EOL" 18369 arguments="${tmp#* }" 18370 18371 # Input might be given as Windows format, start by converting to 18372 # unix format. 18373 new_path=`$CYGPATH -u "$path"` 18374 18375 # Now try to locate executable using which 18376 new_path=`$WHICH "$new_path" 2> /dev/null` 18377 # bat and cmd files are not always considered executable in cygwin causing which 18378 # to not find them 18379 if test "x$new_path" = x \ 18380 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18381 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18382 new_path=`$CYGPATH -u "$path"` 18383 fi 18384 if test "x$new_path" = x; then 18385 # Oops. Which didn't find the executable. 18386 # The splitting of arguments from the executable at a space might have been incorrect, 18387 # since paths with space are more likely in Windows. Give it another try with the whole 18388 # argument. 18389 path="$complete" 18390 arguments="EOL" 18391 new_path=`$CYGPATH -u "$path"` 18392 new_path=`$WHICH "$new_path" 2> /dev/null` 18393 # bat and cmd files are not always considered executable in cygwin causing which 18394 # to not find them 18395 if test "x$new_path" = x \ 18396 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18397 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18398 new_path=`$CYGPATH -u "$path"` 18399 fi 18400 if test "x$new_path" = x; then 18401 # It's still not found. Now this is an unrecoverable error. 18402 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18403 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18404 has_space=`$ECHO "$complete" | $GREP " "` 18405 if test "x$has_space" != x; then 18406 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18407 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18408 fi 18409 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18410 fi 18411 fi 18412 18413 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18414 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18415 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18416 # "foo.exe" is OK but "foo" is an error. 18417 # 18418 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18419 # It is also a way to make sure we got the proper file name for the real test later on. 18420 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18421 if test "x$test_shortpath" = x; then 18422 # Short path failed, file does not exist as specified. 18423 # Try adding .exe or .cmd 18424 if test -f "${new_path}.exe"; then 18425 input_to_shortpath="${new_path}.exe" 18426 elif test -f "${new_path}.cmd"; then 18427 input_to_shortpath="${new_path}.cmd" 18428 else 18429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18430 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18431 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18432 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18433 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18434 fi 18435 else 18436 input_to_shortpath="$new_path" 18437 fi 18438 18439 # Call helper function which possibly converts this using DOS-style short mode. 18440 # If so, the updated path is stored in $new_path. 18441 new_path="$input_to_shortpath" 18442 18443 input_path="$input_to_shortpath" 18444 # Check if we need to convert this using DOS-style short mode. If the path 18445 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18446 # take no chances and rewrite it. 18447 # Note: m4 eats our [], so we need to use [ and ] instead. 18448 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18449 if test "x$has_forbidden_chars" != x; then 18450 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18451 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18452 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18453 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18454 # Going to short mode and back again did indeed matter. Since short mode is 18455 # case insensitive, let's make it lowercase to improve readability. 18456 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18457 # Now convert it back to Unix-style (cygpath) 18458 input_path=`$CYGPATH -u "$shortmode_path"` 18459 new_path="$input_path" 18460 fi 18461 fi 18462 18463 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18464 if test "x$test_cygdrive_prefix" = x; then 18465 # As a simple fix, exclude /usr/bin since it's not a real path. 18466 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18467 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18468 # a path prefixed by /cygdrive for fixpath to work. 18469 new_path="$CYGWIN_ROOT_PATH$input_path" 18470 fi 18471 fi 18472 18473 # remove trailing .exe if any 18474 new_path="${new_path/%.exe/}" 18475 18476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18477 18478 # First separate the path from the arguments. This will split at the first 18479 # space. 18480 complete="$FOUND_MAKE" 18481 path="${complete%% *}" 18482 tmp="$complete EOL" 18483 arguments="${tmp#* }" 18484 18485 # Input might be given as Windows format, start by converting to 18486 # unix format. 18487 new_path="$path" 18488 18489 windows_path="$new_path" 18490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18491 unix_path=`$CYGPATH -u "$windows_path"` 18492 new_path="$unix_path" 18493 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18494 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18495 new_path="$unix_path" 18496 fi 18497 18498 18499 # Now try to locate executable using which 18500 new_path=`$WHICH "$new_path" 2> /dev/null` 18501 18502 if test "x$new_path" = x; then 18503 # Oops. Which didn't find the executable. 18504 # The splitting of arguments from the executable at a space might have been incorrect, 18505 # since paths with space are more likely in Windows. Give it another try with the whole 18506 # argument. 18507 path="$complete" 18508 arguments="EOL" 18509 new_path="$path" 18510 18511 windows_path="$new_path" 18512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18513 unix_path=`$CYGPATH -u "$windows_path"` 18514 new_path="$unix_path" 18515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18516 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18517 new_path="$unix_path" 18518 fi 18519 18520 18521 new_path=`$WHICH "$new_path" 2> /dev/null` 18522 # bat and cmd files are not always considered executable in MSYS causing which 18523 # to not find them 18524 if test "x$new_path" = x \ 18525 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18526 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18527 new_path="$path" 18528 18529 windows_path="$new_path" 18530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18531 unix_path=`$CYGPATH -u "$windows_path"` 18532 new_path="$unix_path" 18533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18534 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18535 new_path="$unix_path" 18536 fi 18537 18538 fi 18539 18540 if test "x$new_path" = x; then 18541 # It's still not found. Now this is an unrecoverable error. 18542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18543 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18544 has_space=`$ECHO "$complete" | $GREP " "` 18545 if test "x$has_space" != x; then 18546 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18547 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18548 fi 18549 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18550 fi 18551 fi 18552 18553 # Now new_path has a complete unix path to the binary 18554 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18555 # Keep paths in /bin as-is, but remove trailing .exe if any 18556 new_path="${new_path/%.exe/}" 18557 # Do not save /bin paths to all_fixpath_prefixes! 18558 else 18559 # Not in mixed or Windows style, start by that. 18560 new_path=`cmd //c echo $new_path` 18561 18562 input_path="$new_path" 18563 # Check if we need to convert this using DOS-style short mode. If the path 18564 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18565 # take no chances and rewrite it. 18566 # Note: m4 eats our [], so we need to use [ and ] instead. 18567 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18568 if test "x$has_forbidden_chars" != x; then 18569 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18570 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18571 fi 18572 18573 # Output is in $new_path 18574 18575 windows_path="$new_path" 18576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18577 unix_path=`$CYGPATH -u "$windows_path"` 18578 new_path="$unix_path" 18579 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18580 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18581 new_path="$unix_path" 18582 fi 18583 18584 # remove trailing .exe if any 18585 new_path="${new_path/%.exe/}" 18586 18587 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18588 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18589 fi 18590 18591 else 18592 # We're on a unix platform. Hooray! :) 18593 # First separate the path from the arguments. This will split at the first 18594 # space. 18595 complete="$FOUND_MAKE" 18596 path="${complete%% *}" 18597 tmp="$complete EOL" 18598 arguments="${tmp#* }" 18599 18600 # Cannot rely on the command "which" here since it doesn't always work. 18601 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18602 if test -z "$is_absolute_path"; then 18603 # Path to executable is not absolute. Find it. 18604 IFS_save="$IFS" 18605 IFS=: 18606 for p in $PATH; do 18607 if test -f "$p/$path" && test -x "$p/$path"; then 18608 new_path="$p/$path" 18609 break 18610 fi 18611 done 18612 IFS="$IFS_save" 18613 else 18614 # This is an absolute path, we can use it without further modifications. 18615 new_path="$path" 18616 fi 18617 18618 if test "x$new_path" = x; then 18619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18620 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18621 has_space=`$ECHO "$complete" | $GREP " "` 18622 if test "x$has_space" != x; then 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18624 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18625 fi 18626 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18627 fi 18628 fi 18629 18630 # Now join together the path and the arguments once again 18631 if test "x$arguments" != xEOL; then 18632 new_complete="$new_path ${arguments% *}" 18633 else 18634 new_complete="$new_path" 18635 fi 18636 18637 if test "x$complete" != "x$new_complete"; then 18638 FOUND_MAKE="$new_complete" 18639 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18640 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18641 fi 18642 fi 18643 18644 fi 18645 fi 18646 fi 18647 fi 18648 18649 fi 18650 18651 if test "x$FOUND_MAKE" = x; then 18652 if test "x$TOOLCHAIN_PATH" != x; then 18653 # We have a toolchain path, check that as well before giving up. 18654 OLD_PATH=$PATH 18655 PATH=$TOOLCHAIN_PATH:$PATH 18656 for ac_prog in gmake 18657 do 18658 # Extract the first word of "$ac_prog", so it can be a program name with args. 18659 set dummy $ac_prog; ac_word=$2 18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18661 $as_echo_n "checking for $ac_word... " >&6; } 18662 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18663 $as_echo_n "(cached) " >&6 18664 else 18665 case $CHECK_TOOLSDIR_GMAKE in 18666 [\\/]* | ?:[\\/]*) 18667 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18668 ;; 18669 *) 18670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18671 for as_dir in $PATH 18672 do 18673 IFS=$as_save_IFS 18674 test -z "$as_dir" && as_dir=. 18675 for ac_exec_ext in '' $ac_executable_extensions; do 18676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18677 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18679 break 2 18680 fi 18681 done 18682 done 18683 IFS=$as_save_IFS 18684 18685 ;; 18686 esac 18687 fi 18688 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18689 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18691 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18692 else 18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18694 $as_echo "no" >&6; } 18695 fi 18696 18697 18698 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18699 done 18700 18701 18702 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18703 DESCRIPTION="gmake in tools-dir" 18704 18705 # On Cygwin, we require a newer version of make than on other platforms 18706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18707 MAKE_VERSION_EXPR="-e 4\." 18708 MAKE_REQUIRED_VERSION="4.0" 18709 else 18710 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18711 MAKE_REQUIRED_VERSION="3.81" 18712 fi 18713 18714 if test "x$MAKE_CANDIDATE" != x; then 18715 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18716 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18717 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18718 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18719 if test "x$IS_GNU_MAKE" = x; then 18720 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18721 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18722 else 18723 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18724 if test "x$IS_MODERN_MAKE" = x; then 18725 { $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 18726 $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;} 18727 else 18728 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18730 MAKE_EXPECTED_ENV='cygwin' 18731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18732 MAKE_EXPECTED_ENV='msys' 18733 else 18734 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18735 fi 18736 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18737 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18738 else 18739 # Not relevant for non-Windows 18740 IS_MAKE_CORRECT_ENV=true 18741 fi 18742 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18743 { $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 18744 $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;} 18745 else 18746 FOUND_MAKE=$MAKE_CANDIDATE 18747 18748 # Only process if variable expands to non-empty 18749 18750 if test "x$FOUND_MAKE" != x; then 18751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18752 18753 # First separate the path from the arguments. This will split at the first 18754 # space. 18755 complete="$FOUND_MAKE" 18756 path="${complete%% *}" 18757 tmp="$complete EOL" 18758 arguments="${tmp#* }" 18759 18760 # Input might be given as Windows format, start by converting to 18761 # unix format. 18762 new_path=`$CYGPATH -u "$path"` 18763 18764 # Now try to locate executable using which 18765 new_path=`$WHICH "$new_path" 2> /dev/null` 18766 # bat and cmd files are not always considered executable in cygwin causing which 18767 # to not find them 18768 if test "x$new_path" = x \ 18769 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18770 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18771 new_path=`$CYGPATH -u "$path"` 18772 fi 18773 if test "x$new_path" = x; then 18774 # Oops. Which didn't find the executable. 18775 # The splitting of arguments from the executable at a space might have been incorrect, 18776 # since paths with space are more likely in Windows. Give it another try with the whole 18777 # argument. 18778 path="$complete" 18779 arguments="EOL" 18780 new_path=`$CYGPATH -u "$path"` 18781 new_path=`$WHICH "$new_path" 2> /dev/null` 18782 # bat and cmd files are not always considered executable in cygwin causing which 18783 # to not find them 18784 if test "x$new_path" = x \ 18785 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18786 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18787 new_path=`$CYGPATH -u "$path"` 18788 fi 18789 if test "x$new_path" = x; then 18790 # It's still not found. Now this is an unrecoverable error. 18791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18792 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18793 has_space=`$ECHO "$complete" | $GREP " "` 18794 if test "x$has_space" != x; then 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18796 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18797 fi 18798 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18799 fi 18800 fi 18801 18802 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18803 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18804 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18805 # "foo.exe" is OK but "foo" is an error. 18806 # 18807 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18808 # It is also a way to make sure we got the proper file name for the real test later on. 18809 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18810 if test "x$test_shortpath" = x; then 18811 # Short path failed, file does not exist as specified. 18812 # Try adding .exe or .cmd 18813 if test -f "${new_path}.exe"; then 18814 input_to_shortpath="${new_path}.exe" 18815 elif test -f "${new_path}.cmd"; then 18816 input_to_shortpath="${new_path}.cmd" 18817 else 18818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18819 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18820 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18821 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18822 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18823 fi 18824 else 18825 input_to_shortpath="$new_path" 18826 fi 18827 18828 # Call helper function which possibly converts this using DOS-style short mode. 18829 # If so, the updated path is stored in $new_path. 18830 new_path="$input_to_shortpath" 18831 18832 input_path="$input_to_shortpath" 18833 # Check if we need to convert this using DOS-style short mode. If the path 18834 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18835 # take no chances and rewrite it. 18836 # Note: m4 eats our [], so we need to use [ and ] instead. 18837 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18838 if test "x$has_forbidden_chars" != x; then 18839 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18840 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18841 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18842 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18843 # Going to short mode and back again did indeed matter. Since short mode is 18844 # case insensitive, let's make it lowercase to improve readability. 18845 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18846 # Now convert it back to Unix-style (cygpath) 18847 input_path=`$CYGPATH -u "$shortmode_path"` 18848 new_path="$input_path" 18849 fi 18850 fi 18851 18852 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18853 if test "x$test_cygdrive_prefix" = x; then 18854 # As a simple fix, exclude /usr/bin since it's not a real path. 18855 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18856 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18857 # a path prefixed by /cygdrive for fixpath to work. 18858 new_path="$CYGWIN_ROOT_PATH$input_path" 18859 fi 18860 fi 18861 18862 # remove trailing .exe if any 18863 new_path="${new_path/%.exe/}" 18864 18865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18866 18867 # First separate the path from the arguments. This will split at the first 18868 # space. 18869 complete="$FOUND_MAKE" 18870 path="${complete%% *}" 18871 tmp="$complete EOL" 18872 arguments="${tmp#* }" 18873 18874 # Input might be given as Windows format, start by converting to 18875 # unix format. 18876 new_path="$path" 18877 18878 windows_path="$new_path" 18879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18880 unix_path=`$CYGPATH -u "$windows_path"` 18881 new_path="$unix_path" 18882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18883 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18884 new_path="$unix_path" 18885 fi 18886 18887 18888 # Now try to locate executable using which 18889 new_path=`$WHICH "$new_path" 2> /dev/null` 18890 18891 if test "x$new_path" = x; then 18892 # Oops. Which didn't find the executable. 18893 # The splitting of arguments from the executable at a space might have been incorrect, 18894 # since paths with space are more likely in Windows. Give it another try with the whole 18895 # argument. 18896 path="$complete" 18897 arguments="EOL" 18898 new_path="$path" 18899 18900 windows_path="$new_path" 18901 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18902 unix_path=`$CYGPATH -u "$windows_path"` 18903 new_path="$unix_path" 18904 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18905 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18906 new_path="$unix_path" 18907 fi 18908 18909 18910 new_path=`$WHICH "$new_path" 2> /dev/null` 18911 # bat and cmd files are not always considered executable in MSYS causing which 18912 # to not find them 18913 if test "x$new_path" = x \ 18914 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18915 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18916 new_path="$path" 18917 18918 windows_path="$new_path" 18919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18920 unix_path=`$CYGPATH -u "$windows_path"` 18921 new_path="$unix_path" 18922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18923 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18924 new_path="$unix_path" 18925 fi 18926 18927 fi 18928 18929 if test "x$new_path" = x; then 18930 # It's still not found. Now this is an unrecoverable error. 18931 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18932 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18933 has_space=`$ECHO "$complete" | $GREP " "` 18934 if test "x$has_space" != x; then 18935 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18936 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18937 fi 18938 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18939 fi 18940 fi 18941 18942 # Now new_path has a complete unix path to the binary 18943 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18944 # Keep paths in /bin as-is, but remove trailing .exe if any 18945 new_path="${new_path/%.exe/}" 18946 # Do not save /bin paths to all_fixpath_prefixes! 18947 else 18948 # Not in mixed or Windows style, start by that. 18949 new_path=`cmd //c echo $new_path` 18950 18951 input_path="$new_path" 18952 # Check if we need to convert this using DOS-style short mode. If the path 18953 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18954 # take no chances and rewrite it. 18955 # Note: m4 eats our [], so we need to use [ and ] instead. 18956 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18957 if test "x$has_forbidden_chars" != x; then 18958 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18959 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18960 fi 18961 18962 # Output is in $new_path 18963 18964 windows_path="$new_path" 18965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18966 unix_path=`$CYGPATH -u "$windows_path"` 18967 new_path="$unix_path" 18968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18969 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18970 new_path="$unix_path" 18971 fi 18972 18973 # remove trailing .exe if any 18974 new_path="${new_path/%.exe/}" 18975 18976 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18977 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18978 fi 18979 18980 else 18981 # We're on a unix platform. Hooray! :) 18982 # First separate the path from the arguments. This will split at the first 18983 # space. 18984 complete="$FOUND_MAKE" 18985 path="${complete%% *}" 18986 tmp="$complete EOL" 18987 arguments="${tmp#* }" 18988 18989 # Cannot rely on the command "which" here since it doesn't always work. 18990 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18991 if test -z "$is_absolute_path"; then 18992 # Path to executable is not absolute. Find it. 18993 IFS_save="$IFS" 18994 IFS=: 18995 for p in $PATH; do 18996 if test -f "$p/$path" && test -x "$p/$path"; then 18997 new_path="$p/$path" 18998 break 18999 fi 19000 done 19001 IFS="$IFS_save" 19002 else 19003 # This is an absolute path, we can use it without further modifications. 19004 new_path="$path" 19005 fi 19006 19007 if test "x$new_path" = x; then 19008 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19009 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19010 has_space=`$ECHO "$complete" | $GREP " "` 19011 if test "x$has_space" != x; then 19012 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19013 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19014 fi 19015 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19016 fi 19017 fi 19018 19019 # Now join together the path and the arguments once again 19020 if test "x$arguments" != xEOL; then 19021 new_complete="$new_path ${arguments% *}" 19022 else 19023 new_complete="$new_path" 19024 fi 19025 19026 if test "x$complete" != "x$new_complete"; then 19027 FOUND_MAKE="$new_complete" 19028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19029 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19030 fi 19031 fi 19032 19033 fi 19034 fi 19035 fi 19036 fi 19037 19038 if test "x$FOUND_MAKE" = x; then 19039 for ac_prog in make 19040 do 19041 # Extract the first word of "$ac_prog", so it can be a program name with args. 19042 set dummy $ac_prog; ac_word=$2 19043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19044 $as_echo_n "checking for $ac_word... " >&6; } 19045 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 19046 $as_echo_n "(cached) " >&6 19047 else 19048 case $CHECK_TOOLSDIR_MAKE in 19049 [\\/]* | ?:[\\/]*) 19050 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 19051 ;; 19052 *) 19053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19054 for as_dir in $PATH 19055 do 19056 IFS=$as_save_IFS 19057 test -z "$as_dir" && as_dir=. 19058 for ac_exec_ext in '' $ac_executable_extensions; do 19059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19060 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 19061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19062 break 2 19063 fi 19064 done 19065 done 19066 IFS=$as_save_IFS 19067 19068 ;; 19069 esac 19070 fi 19071 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 19072 if test -n "$CHECK_TOOLSDIR_MAKE"; then 19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 19074 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 19075 else 19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19077 $as_echo "no" >&6; } 19078 fi 19079 19080 19081 test -n "$CHECK_TOOLSDIR_MAKE" && break 19082 done 19083 19084 19085 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 19086 DESCRIPTION="make in tools-dir" 19087 19088 # On Cygwin, we require a newer version of make than on other platforms 19089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19090 MAKE_VERSION_EXPR="-e 4\." 19091 MAKE_REQUIRED_VERSION="4.0" 19092 else 19093 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19094 MAKE_REQUIRED_VERSION="3.81" 19095 fi 19096 19097 if test "x$MAKE_CANDIDATE" != x; then 19098 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19099 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19100 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19101 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19102 if test "x$IS_GNU_MAKE" = x; then 19103 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19104 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19105 else 19106 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19107 if test "x$IS_MODERN_MAKE" = x; then 19108 { $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 19109 $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;} 19110 else 19111 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19112 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19113 MAKE_EXPECTED_ENV='cygwin' 19114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19115 MAKE_EXPECTED_ENV='msys' 19116 else 19117 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19118 fi 19119 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19120 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19121 else 19122 # Not relevant for non-Windows 19123 IS_MAKE_CORRECT_ENV=true 19124 fi 19125 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19126 { $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 19127 $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;} 19128 else 19129 FOUND_MAKE=$MAKE_CANDIDATE 19130 19131 # Only process if variable expands to non-empty 19132 19133 if test "x$FOUND_MAKE" != x; then 19134 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19135 19136 # First separate the path from the arguments. This will split at the first 19137 # space. 19138 complete="$FOUND_MAKE" 19139 path="${complete%% *}" 19140 tmp="$complete EOL" 19141 arguments="${tmp#* }" 19142 19143 # Input might be given as Windows format, start by converting to 19144 # unix format. 19145 new_path=`$CYGPATH -u "$path"` 19146 19147 # Now try to locate executable using which 19148 new_path=`$WHICH "$new_path" 2> /dev/null` 19149 # bat and cmd files are not always considered executable in cygwin causing which 19150 # to not find them 19151 if test "x$new_path" = x \ 19152 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19153 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19154 new_path=`$CYGPATH -u "$path"` 19155 fi 19156 if test "x$new_path" = x; then 19157 # Oops. Which didn't find the executable. 19158 # The splitting of arguments from the executable at a space might have been incorrect, 19159 # since paths with space are more likely in Windows. Give it another try with the whole 19160 # argument. 19161 path="$complete" 19162 arguments="EOL" 19163 new_path=`$CYGPATH -u "$path"` 19164 new_path=`$WHICH "$new_path" 2> /dev/null` 19165 # bat and cmd files are not always considered executable in cygwin causing which 19166 # to not find them 19167 if test "x$new_path" = x \ 19168 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19169 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19170 new_path=`$CYGPATH -u "$path"` 19171 fi 19172 if test "x$new_path" = x; then 19173 # It's still not found. Now this is an unrecoverable error. 19174 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19175 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19176 has_space=`$ECHO "$complete" | $GREP " "` 19177 if test "x$has_space" != x; then 19178 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19179 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19180 fi 19181 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19182 fi 19183 fi 19184 19185 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19186 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19187 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19188 # "foo.exe" is OK but "foo" is an error. 19189 # 19190 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19191 # It is also a way to make sure we got the proper file name for the real test later on. 19192 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19193 if test "x$test_shortpath" = x; then 19194 # Short path failed, file does not exist as specified. 19195 # Try adding .exe or .cmd 19196 if test -f "${new_path}.exe"; then 19197 input_to_shortpath="${new_path}.exe" 19198 elif test -f "${new_path}.cmd"; then 19199 input_to_shortpath="${new_path}.cmd" 19200 else 19201 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19202 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19203 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19204 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19205 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19206 fi 19207 else 19208 input_to_shortpath="$new_path" 19209 fi 19210 19211 # Call helper function which possibly converts this using DOS-style short mode. 19212 # If so, the updated path is stored in $new_path. 19213 new_path="$input_to_shortpath" 19214 19215 input_path="$input_to_shortpath" 19216 # Check if we need to convert this using DOS-style short mode. If the path 19217 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19218 # take no chances and rewrite it. 19219 # Note: m4 eats our [], so we need to use [ and ] instead. 19220 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19221 if test "x$has_forbidden_chars" != x; then 19222 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19223 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19224 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19225 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19226 # Going to short mode and back again did indeed matter. Since short mode is 19227 # case insensitive, let's make it lowercase to improve readability. 19228 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19229 # Now convert it back to Unix-style (cygpath) 19230 input_path=`$CYGPATH -u "$shortmode_path"` 19231 new_path="$input_path" 19232 fi 19233 fi 19234 19235 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19236 if test "x$test_cygdrive_prefix" = x; then 19237 # As a simple fix, exclude /usr/bin since it's not a real path. 19238 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19239 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19240 # a path prefixed by /cygdrive for fixpath to work. 19241 new_path="$CYGWIN_ROOT_PATH$input_path" 19242 fi 19243 fi 19244 19245 # remove trailing .exe if any 19246 new_path="${new_path/%.exe/}" 19247 19248 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19249 19250 # First separate the path from the arguments. This will split at the first 19251 # space. 19252 complete="$FOUND_MAKE" 19253 path="${complete%% *}" 19254 tmp="$complete EOL" 19255 arguments="${tmp#* }" 19256 19257 # Input might be given as Windows format, start by converting to 19258 # unix format. 19259 new_path="$path" 19260 19261 windows_path="$new_path" 19262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19263 unix_path=`$CYGPATH -u "$windows_path"` 19264 new_path="$unix_path" 19265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19266 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19267 new_path="$unix_path" 19268 fi 19269 19270 19271 # Now try to locate executable using which 19272 new_path=`$WHICH "$new_path" 2> /dev/null` 19273 19274 if test "x$new_path" = x; then 19275 # Oops. Which didn't find the executable. 19276 # The splitting of arguments from the executable at a space might have been incorrect, 19277 # since paths with space are more likely in Windows. Give it another try with the whole 19278 # argument. 19279 path="$complete" 19280 arguments="EOL" 19281 new_path="$path" 19282 19283 windows_path="$new_path" 19284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19285 unix_path=`$CYGPATH -u "$windows_path"` 19286 new_path="$unix_path" 19287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19288 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19289 new_path="$unix_path" 19290 fi 19291 19292 19293 new_path=`$WHICH "$new_path" 2> /dev/null` 19294 # bat and cmd files are not always considered executable in MSYS causing which 19295 # to not find them 19296 if test "x$new_path" = x \ 19297 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19298 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19299 new_path="$path" 19300 19301 windows_path="$new_path" 19302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19303 unix_path=`$CYGPATH -u "$windows_path"` 19304 new_path="$unix_path" 19305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19307 new_path="$unix_path" 19308 fi 19309 19310 fi 19311 19312 if test "x$new_path" = x; then 19313 # It's still not found. Now this is an unrecoverable error. 19314 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19315 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19316 has_space=`$ECHO "$complete" | $GREP " "` 19317 if test "x$has_space" != x; then 19318 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19319 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19320 fi 19321 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19322 fi 19323 fi 19324 19325 # Now new_path has a complete unix path to the binary 19326 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19327 # Keep paths in /bin as-is, but remove trailing .exe if any 19328 new_path="${new_path/%.exe/}" 19329 # Do not save /bin paths to all_fixpath_prefixes! 19330 else 19331 # Not in mixed or Windows style, start by that. 19332 new_path=`cmd //c echo $new_path` 19333 19334 input_path="$new_path" 19335 # Check if we need to convert this using DOS-style short mode. If the path 19336 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19337 # take no chances and rewrite it. 19338 # Note: m4 eats our [], so we need to use [ and ] instead. 19339 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19340 if test "x$has_forbidden_chars" != x; then 19341 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19342 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19343 fi 19344 19345 # Output is in $new_path 19346 19347 windows_path="$new_path" 19348 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19349 unix_path=`$CYGPATH -u "$windows_path"` 19350 new_path="$unix_path" 19351 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19352 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19353 new_path="$unix_path" 19354 fi 19355 19356 # remove trailing .exe if any 19357 new_path="${new_path/%.exe/}" 19358 19359 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19360 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19361 fi 19362 19363 else 19364 # We're on a unix platform. Hooray! :) 19365 # First separate the path from the arguments. This will split at the first 19366 # space. 19367 complete="$FOUND_MAKE" 19368 path="${complete%% *}" 19369 tmp="$complete EOL" 19370 arguments="${tmp#* }" 19371 19372 # Cannot rely on the command "which" here since it doesn't always work. 19373 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19374 if test -z "$is_absolute_path"; then 19375 # Path to executable is not absolute. Find it. 19376 IFS_save="$IFS" 19377 IFS=: 19378 for p in $PATH; do 19379 if test -f "$p/$path" && test -x "$p/$path"; then 19380 new_path="$p/$path" 19381 break 19382 fi 19383 done 19384 IFS="$IFS_save" 19385 else 19386 # This is an absolute path, we can use it without further modifications. 19387 new_path="$path" 19388 fi 19389 19390 if test "x$new_path" = x; then 19391 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19392 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19393 has_space=`$ECHO "$complete" | $GREP " "` 19394 if test "x$has_space" != x; then 19395 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19396 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19397 fi 19398 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19399 fi 19400 fi 19401 19402 # Now join together the path and the arguments once again 19403 if test "x$arguments" != xEOL; then 19404 new_complete="$new_path ${arguments% *}" 19405 else 19406 new_complete="$new_path" 19407 fi 19408 19409 if test "x$complete" != "x$new_complete"; then 19410 FOUND_MAKE="$new_complete" 19411 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19412 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19413 fi 19414 fi 19415 19416 fi 19417 fi 19418 fi 19419 fi 19420 19421 fi 19422 PATH=$OLD_PATH 19423 fi 19424 fi 19425 19426 if test "x$FOUND_MAKE" = x; then 19427 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 19428 fi 19429 19430 else 19431 # The variable is set, but is it from the command line or the environment? 19432 19433 # Try to remove the string !MAKE! from our list. 19434 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19435 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19436 # If it failed, the variable was not from the command line. Ignore it, 19437 # but warn the user (except for BASH, which is always set by the calling BASH). 19438 if test "xMAKE" != xBASH; then 19439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19440 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19441 fi 19442 # Try to locate tool using the code snippet 19443 19444 # Try our hardest to locate a correct version of GNU make 19445 for ac_prog in gmake 19446 do 19447 # Extract the first word of "$ac_prog", so it can be a program name with args. 19448 set dummy $ac_prog; ac_word=$2 19449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19450 $as_echo_n "checking for $ac_word... " >&6; } 19451 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19452 $as_echo_n "(cached) " >&6 19453 else 19454 case $CHECK_GMAKE in 19455 [\\/]* | ?:[\\/]*) 19456 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19457 ;; 19458 *) 19459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19460 for as_dir in $PATH 19461 do 19462 IFS=$as_save_IFS 19463 test -z "$as_dir" && as_dir=. 19464 for ac_exec_ext in '' $ac_executable_extensions; do 19465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19466 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19468 break 2 19469 fi 19470 done 19471 done 19472 IFS=$as_save_IFS 19473 19474 ;; 19475 esac 19476 fi 19477 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19478 if test -n "$CHECK_GMAKE"; then 19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19480 $as_echo "$CHECK_GMAKE" >&6; } 19481 else 19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19483 $as_echo "no" >&6; } 19484 fi 19485 19486 19487 test -n "$CHECK_GMAKE" && break 19488 done 19489 19490 19491 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19492 DESCRIPTION="gmake in PATH" 19493 19494 # On Cygwin, we require a newer version of make than on other platforms 19495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19496 MAKE_VERSION_EXPR="-e 4\." 19497 MAKE_REQUIRED_VERSION="4.0" 19498 else 19499 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19500 MAKE_REQUIRED_VERSION="3.81" 19501 fi 19502 19503 if test "x$MAKE_CANDIDATE" != x; then 19504 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19505 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19506 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19507 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19508 if test "x$IS_GNU_MAKE" = x; then 19509 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19510 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19511 else 19512 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19513 if test "x$IS_MODERN_MAKE" = x; then 19514 { $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 19515 $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;} 19516 else 19517 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19518 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19519 MAKE_EXPECTED_ENV='cygwin' 19520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19521 MAKE_EXPECTED_ENV='msys' 19522 else 19523 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19524 fi 19525 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19526 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19527 else 19528 # Not relevant for non-Windows 19529 IS_MAKE_CORRECT_ENV=true 19530 fi 19531 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19532 { $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 19533 $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;} 19534 else 19535 FOUND_MAKE=$MAKE_CANDIDATE 19536 19537 # Only process if variable expands to non-empty 19538 19539 if test "x$FOUND_MAKE" != x; then 19540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19541 19542 # First separate the path from the arguments. This will split at the first 19543 # space. 19544 complete="$FOUND_MAKE" 19545 path="${complete%% *}" 19546 tmp="$complete EOL" 19547 arguments="${tmp#* }" 19548 19549 # Input might be given as Windows format, start by converting to 19550 # unix format. 19551 new_path=`$CYGPATH -u "$path"` 19552 19553 # Now try to locate executable using which 19554 new_path=`$WHICH "$new_path" 2> /dev/null` 19555 # bat and cmd files are not always considered executable in cygwin causing which 19556 # to not find them 19557 if test "x$new_path" = x \ 19558 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19559 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19560 new_path=`$CYGPATH -u "$path"` 19561 fi 19562 if test "x$new_path" = x; then 19563 # Oops. Which didn't find the executable. 19564 # The splitting of arguments from the executable at a space might have been incorrect, 19565 # since paths with space are more likely in Windows. Give it another try with the whole 19566 # argument. 19567 path="$complete" 19568 arguments="EOL" 19569 new_path=`$CYGPATH -u "$path"` 19570 new_path=`$WHICH "$new_path" 2> /dev/null` 19571 # bat and cmd files are not always considered executable in cygwin causing which 19572 # to not find them 19573 if test "x$new_path" = x \ 19574 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19575 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19576 new_path=`$CYGPATH -u "$path"` 19577 fi 19578 if test "x$new_path" = x; then 19579 # It's still not found. Now this is an unrecoverable error. 19580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19581 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19582 has_space=`$ECHO "$complete" | $GREP " "` 19583 if test "x$has_space" != x; then 19584 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19585 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19586 fi 19587 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19588 fi 19589 fi 19590 19591 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19592 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19593 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19594 # "foo.exe" is OK but "foo" is an error. 19595 # 19596 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19597 # It is also a way to make sure we got the proper file name for the real test later on. 19598 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19599 if test "x$test_shortpath" = x; then 19600 # Short path failed, file does not exist as specified. 19601 # Try adding .exe or .cmd 19602 if test -f "${new_path}.exe"; then 19603 input_to_shortpath="${new_path}.exe" 19604 elif test -f "${new_path}.cmd"; then 19605 input_to_shortpath="${new_path}.cmd" 19606 else 19607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19608 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19609 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19610 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19611 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19612 fi 19613 else 19614 input_to_shortpath="$new_path" 19615 fi 19616 19617 # Call helper function which possibly converts this using DOS-style short mode. 19618 # If so, the updated path is stored in $new_path. 19619 new_path="$input_to_shortpath" 19620 19621 input_path="$input_to_shortpath" 19622 # Check if we need to convert this using DOS-style short mode. If the path 19623 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19624 # take no chances and rewrite it. 19625 # Note: m4 eats our [], so we need to use [ and ] instead. 19626 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19627 if test "x$has_forbidden_chars" != x; then 19628 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19629 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19630 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19631 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19632 # Going to short mode and back again did indeed matter. Since short mode is 19633 # case insensitive, let's make it lowercase to improve readability. 19634 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19635 # Now convert it back to Unix-style (cygpath) 19636 input_path=`$CYGPATH -u "$shortmode_path"` 19637 new_path="$input_path" 19638 fi 19639 fi 19640 19641 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19642 if test "x$test_cygdrive_prefix" = x; then 19643 # As a simple fix, exclude /usr/bin since it's not a real path. 19644 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19645 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19646 # a path prefixed by /cygdrive for fixpath to work. 19647 new_path="$CYGWIN_ROOT_PATH$input_path" 19648 fi 19649 fi 19650 19651 # remove trailing .exe if any 19652 new_path="${new_path/%.exe/}" 19653 19654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19655 19656 # First separate the path from the arguments. This will split at the first 19657 # space. 19658 complete="$FOUND_MAKE" 19659 path="${complete%% *}" 19660 tmp="$complete EOL" 19661 arguments="${tmp#* }" 19662 19663 # Input might be given as Windows format, start by converting to 19664 # unix format. 19665 new_path="$path" 19666 19667 windows_path="$new_path" 19668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19669 unix_path=`$CYGPATH -u "$windows_path"` 19670 new_path="$unix_path" 19671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19672 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19673 new_path="$unix_path" 19674 fi 19675 19676 19677 # Now try to locate executable using which 19678 new_path=`$WHICH "$new_path" 2> /dev/null` 19679 19680 if test "x$new_path" = x; then 19681 # Oops. Which didn't find the executable. 19682 # The splitting of arguments from the executable at a space might have been incorrect, 19683 # since paths with space are more likely in Windows. Give it another try with the whole 19684 # argument. 19685 path="$complete" 19686 arguments="EOL" 19687 new_path="$path" 19688 19689 windows_path="$new_path" 19690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19691 unix_path=`$CYGPATH -u "$windows_path"` 19692 new_path="$unix_path" 19693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19694 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19695 new_path="$unix_path" 19696 fi 19697 19698 19699 new_path=`$WHICH "$new_path" 2> /dev/null` 19700 # bat and cmd files are not always considered executable in MSYS causing which 19701 # to not find them 19702 if test "x$new_path" = x \ 19703 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19704 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19705 new_path="$path" 19706 19707 windows_path="$new_path" 19708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19709 unix_path=`$CYGPATH -u "$windows_path"` 19710 new_path="$unix_path" 19711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19712 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19713 new_path="$unix_path" 19714 fi 19715 19716 fi 19717 19718 if test "x$new_path" = x; then 19719 # It's still not found. Now this is an unrecoverable error. 19720 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19721 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19722 has_space=`$ECHO "$complete" | $GREP " "` 19723 if test "x$has_space" != x; then 19724 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19725 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19726 fi 19727 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19728 fi 19729 fi 19730 19731 # Now new_path has a complete unix path to the binary 19732 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19733 # Keep paths in /bin as-is, but remove trailing .exe if any 19734 new_path="${new_path/%.exe/}" 19735 # Do not save /bin paths to all_fixpath_prefixes! 19736 else 19737 # Not in mixed or Windows style, start by that. 19738 new_path=`cmd //c echo $new_path` 19739 19740 input_path="$new_path" 19741 # Check if we need to convert this using DOS-style short mode. If the path 19742 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19743 # take no chances and rewrite it. 19744 # Note: m4 eats our [], so we need to use [ and ] instead. 19745 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19746 if test "x$has_forbidden_chars" != x; then 19747 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19748 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19749 fi 19750 19751 # Output is in $new_path 19752 19753 windows_path="$new_path" 19754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19755 unix_path=`$CYGPATH -u "$windows_path"` 19756 new_path="$unix_path" 19757 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19758 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19759 new_path="$unix_path" 19760 fi 19761 19762 # remove trailing .exe if any 19763 new_path="${new_path/%.exe/}" 19764 19765 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19766 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19767 fi 19768 19769 else 19770 # We're on a unix platform. Hooray! :) 19771 # First separate the path from the arguments. This will split at the first 19772 # space. 19773 complete="$FOUND_MAKE" 19774 path="${complete%% *}" 19775 tmp="$complete EOL" 19776 arguments="${tmp#* }" 19777 19778 # Cannot rely on the command "which" here since it doesn't always work. 19779 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19780 if test -z "$is_absolute_path"; then 19781 # Path to executable is not absolute. Find it. 19782 IFS_save="$IFS" 19783 IFS=: 19784 for p in $PATH; do 19785 if test -f "$p/$path" && test -x "$p/$path"; then 19786 new_path="$p/$path" 19787 break 19788 fi 19789 done 19790 IFS="$IFS_save" 19791 else 19792 # This is an absolute path, we can use it without further modifications. 19793 new_path="$path" 19794 fi 19795 19796 if test "x$new_path" = x; then 19797 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19798 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19799 has_space=`$ECHO "$complete" | $GREP " "` 19800 if test "x$has_space" != x; then 19801 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19802 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19803 fi 19804 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19805 fi 19806 fi 19807 19808 # Now join together the path and the arguments once again 19809 if test "x$arguments" != xEOL; then 19810 new_complete="$new_path ${arguments% *}" 19811 else 19812 new_complete="$new_path" 19813 fi 19814 19815 if test "x$complete" != "x$new_complete"; then 19816 FOUND_MAKE="$new_complete" 19817 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19818 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19819 fi 19820 fi 19821 19822 fi 19823 fi 19824 fi 19825 fi 19826 19827 19828 if test "x$FOUND_MAKE" = x; then 19829 for ac_prog in make 19830 do 19831 # Extract the first word of "$ac_prog", so it can be a program name with args. 19832 set dummy $ac_prog; ac_word=$2 19833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19834 $as_echo_n "checking for $ac_word... " >&6; } 19835 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19836 $as_echo_n "(cached) " >&6 19837 else 19838 case $CHECK_MAKE in 19839 [\\/]* | ?:[\\/]*) 19840 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19841 ;; 19842 *) 19843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19844 for as_dir in $PATH 19845 do 19846 IFS=$as_save_IFS 19847 test -z "$as_dir" && as_dir=. 19848 for ac_exec_ext in '' $ac_executable_extensions; do 19849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19850 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19852 break 2 19853 fi 19854 done 19855 done 19856 IFS=$as_save_IFS 19857 19858 ;; 19859 esac 19860 fi 19861 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19862 if test -n "$CHECK_MAKE"; then 19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19864 $as_echo "$CHECK_MAKE" >&6; } 19865 else 19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19867 $as_echo "no" >&6; } 19868 fi 19869 19870 19871 test -n "$CHECK_MAKE" && break 19872 done 19873 19874 19875 MAKE_CANDIDATE=""$CHECK_MAKE"" 19876 DESCRIPTION="make in PATH" 19877 19878 # On Cygwin, we require a newer version of make than on other platforms 19879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19880 MAKE_VERSION_EXPR="-e 4\." 19881 MAKE_REQUIRED_VERSION="4.0" 19882 else 19883 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19884 MAKE_REQUIRED_VERSION="3.81" 19885 fi 19886 19887 if test "x$MAKE_CANDIDATE" != x; then 19888 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19889 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19890 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19891 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19892 if test "x$IS_GNU_MAKE" = x; then 19893 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19894 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19895 else 19896 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19897 if test "x$IS_MODERN_MAKE" = x; then 19898 { $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 19899 $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;} 19900 else 19901 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19903 MAKE_EXPECTED_ENV='cygwin' 19904 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19905 MAKE_EXPECTED_ENV='msys' 19906 else 19907 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19908 fi 19909 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19910 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19911 else 19912 # Not relevant for non-Windows 19913 IS_MAKE_CORRECT_ENV=true 19914 fi 19915 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19916 { $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 19917 $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;} 19918 else 19919 FOUND_MAKE=$MAKE_CANDIDATE 19920 19921 # Only process if variable expands to non-empty 19922 19923 if test "x$FOUND_MAKE" != x; then 19924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19925 19926 # First separate the path from the arguments. This will split at the first 19927 # space. 19928 complete="$FOUND_MAKE" 19929 path="${complete%% *}" 19930 tmp="$complete EOL" 19931 arguments="${tmp#* }" 19932 19933 # Input might be given as Windows format, start by converting to 19934 # unix format. 19935 new_path=`$CYGPATH -u "$path"` 19936 19937 # Now try to locate executable using which 19938 new_path=`$WHICH "$new_path" 2> /dev/null` 19939 # bat and cmd files are not always considered executable in cygwin causing which 19940 # to not find them 19941 if test "x$new_path" = x \ 19942 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19943 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19944 new_path=`$CYGPATH -u "$path"` 19945 fi 19946 if test "x$new_path" = x; then 19947 # Oops. Which didn't find the executable. 19948 # The splitting of arguments from the executable at a space might have been incorrect, 19949 # since paths with space are more likely in Windows. Give it another try with the whole 19950 # argument. 19951 path="$complete" 19952 arguments="EOL" 19953 new_path=`$CYGPATH -u "$path"` 19954 new_path=`$WHICH "$new_path" 2> /dev/null` 19955 # bat and cmd files are not always considered executable in cygwin causing which 19956 # to not find them 19957 if test "x$new_path" = x \ 19958 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19959 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19960 new_path=`$CYGPATH -u "$path"` 19961 fi 19962 if test "x$new_path" = x; then 19963 # It's still not found. Now this is an unrecoverable error. 19964 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19965 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19966 has_space=`$ECHO "$complete" | $GREP " "` 19967 if test "x$has_space" != x; then 19968 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19969 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19970 fi 19971 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19972 fi 19973 fi 19974 19975 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19976 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19977 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19978 # "foo.exe" is OK but "foo" is an error. 19979 # 19980 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19981 # It is also a way to make sure we got the proper file name for the real test later on. 19982 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19983 if test "x$test_shortpath" = x; then 19984 # Short path failed, file does not exist as specified. 19985 # Try adding .exe or .cmd 19986 if test -f "${new_path}.exe"; then 19987 input_to_shortpath="${new_path}.exe" 19988 elif test -f "${new_path}.cmd"; then 19989 input_to_shortpath="${new_path}.cmd" 19990 else 19991 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19992 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19993 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19994 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19995 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19996 fi 19997 else 19998 input_to_shortpath="$new_path" 19999 fi 20000 20001 # Call helper function which possibly converts this using DOS-style short mode. 20002 # If so, the updated path is stored in $new_path. 20003 new_path="$input_to_shortpath" 20004 20005 input_path="$input_to_shortpath" 20006 # Check if we need to convert this using DOS-style short mode. If the path 20007 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20008 # take no chances and rewrite it. 20009 # Note: m4 eats our [], so we need to use [ and ] instead. 20010 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20011 if test "x$has_forbidden_chars" != x; then 20012 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20013 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20014 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20015 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20016 # Going to short mode and back again did indeed matter. Since short mode is 20017 # case insensitive, let's make it lowercase to improve readability. 20018 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20019 # Now convert it back to Unix-style (cygpath) 20020 input_path=`$CYGPATH -u "$shortmode_path"` 20021 new_path="$input_path" 20022 fi 20023 fi 20024 20025 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20026 if test "x$test_cygdrive_prefix" = x; then 20027 # As a simple fix, exclude /usr/bin since it's not a real path. 20028 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20029 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20030 # a path prefixed by /cygdrive for fixpath to work. 20031 new_path="$CYGWIN_ROOT_PATH$input_path" 20032 fi 20033 fi 20034 20035 # remove trailing .exe if any 20036 new_path="${new_path/%.exe/}" 20037 20038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20039 20040 # First separate the path from the arguments. This will split at the first 20041 # space. 20042 complete="$FOUND_MAKE" 20043 path="${complete%% *}" 20044 tmp="$complete EOL" 20045 arguments="${tmp#* }" 20046 20047 # Input might be given as Windows format, start by converting to 20048 # unix format. 20049 new_path="$path" 20050 20051 windows_path="$new_path" 20052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20053 unix_path=`$CYGPATH -u "$windows_path"` 20054 new_path="$unix_path" 20055 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20056 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20057 new_path="$unix_path" 20058 fi 20059 20060 20061 # Now try to locate executable using which 20062 new_path=`$WHICH "$new_path" 2> /dev/null` 20063 20064 if test "x$new_path" = x; then 20065 # Oops. Which didn't find the executable. 20066 # The splitting of arguments from the executable at a space might have been incorrect, 20067 # since paths with space are more likely in Windows. Give it another try with the whole 20068 # argument. 20069 path="$complete" 20070 arguments="EOL" 20071 new_path="$path" 20072 20073 windows_path="$new_path" 20074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20075 unix_path=`$CYGPATH -u "$windows_path"` 20076 new_path="$unix_path" 20077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20078 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20079 new_path="$unix_path" 20080 fi 20081 20082 20083 new_path=`$WHICH "$new_path" 2> /dev/null` 20084 # bat and cmd files are not always considered executable in MSYS causing which 20085 # to not find them 20086 if test "x$new_path" = x \ 20087 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20088 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20089 new_path="$path" 20090 20091 windows_path="$new_path" 20092 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20093 unix_path=`$CYGPATH -u "$windows_path"` 20094 new_path="$unix_path" 20095 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20096 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20097 new_path="$unix_path" 20098 fi 20099 20100 fi 20101 20102 if test "x$new_path" = x; then 20103 # It's still not found. Now this is an unrecoverable error. 20104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20105 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20106 has_space=`$ECHO "$complete" | $GREP " "` 20107 if test "x$has_space" != x; then 20108 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20109 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20110 fi 20111 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20112 fi 20113 fi 20114 20115 # Now new_path has a complete unix path to the binary 20116 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20117 # Keep paths in /bin as-is, but remove trailing .exe if any 20118 new_path="${new_path/%.exe/}" 20119 # Do not save /bin paths to all_fixpath_prefixes! 20120 else 20121 # Not in mixed or Windows style, start by that. 20122 new_path=`cmd //c echo $new_path` 20123 20124 input_path="$new_path" 20125 # Check if we need to convert this using DOS-style short mode. If the path 20126 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20127 # take no chances and rewrite it. 20128 # Note: m4 eats our [], so we need to use [ and ] instead. 20129 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20130 if test "x$has_forbidden_chars" != x; then 20131 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20132 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20133 fi 20134 20135 # Output is in $new_path 20136 20137 windows_path="$new_path" 20138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20139 unix_path=`$CYGPATH -u "$windows_path"` 20140 new_path="$unix_path" 20141 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20142 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20143 new_path="$unix_path" 20144 fi 20145 20146 # remove trailing .exe if any 20147 new_path="${new_path/%.exe/}" 20148 20149 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20150 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20151 fi 20152 20153 else 20154 # We're on a unix platform. Hooray! :) 20155 # First separate the path from the arguments. This will split at the first 20156 # space. 20157 complete="$FOUND_MAKE" 20158 path="${complete%% *}" 20159 tmp="$complete EOL" 20160 arguments="${tmp#* }" 20161 20162 # Cannot rely on the command "which" here since it doesn't always work. 20163 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20164 if test -z "$is_absolute_path"; then 20165 # Path to executable is not absolute. Find it. 20166 IFS_save="$IFS" 20167 IFS=: 20168 for p in $PATH; do 20169 if test -f "$p/$path" && test -x "$p/$path"; then 20170 new_path="$p/$path" 20171 break 20172 fi 20173 done 20174 IFS="$IFS_save" 20175 else 20176 # This is an absolute path, we can use it without further modifications. 20177 new_path="$path" 20178 fi 20179 20180 if test "x$new_path" = x; then 20181 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20182 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20183 has_space=`$ECHO "$complete" | $GREP " "` 20184 if test "x$has_space" != x; then 20185 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20186 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20187 fi 20188 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20189 fi 20190 fi 20191 20192 # Now join together the path and the arguments once again 20193 if test "x$arguments" != xEOL; then 20194 new_complete="$new_path ${arguments% *}" 20195 else 20196 new_complete="$new_path" 20197 fi 20198 20199 if test "x$complete" != "x$new_complete"; then 20200 FOUND_MAKE="$new_complete" 20201 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20202 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20203 fi 20204 fi 20205 20206 fi 20207 fi 20208 fi 20209 fi 20210 20211 fi 20212 20213 if test "x$FOUND_MAKE" = x; then 20214 if test "x$TOOLCHAIN_PATH" != x; then 20215 # We have a toolchain path, check that as well before giving up. 20216 OLD_PATH=$PATH 20217 PATH=$TOOLCHAIN_PATH:$PATH 20218 for ac_prog in gmake 20219 do 20220 # Extract the first word of "$ac_prog", so it can be a program name with args. 20221 set dummy $ac_prog; ac_word=$2 20222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20223 $as_echo_n "checking for $ac_word... " >&6; } 20224 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 20225 $as_echo_n "(cached) " >&6 20226 else 20227 case $CHECK_TOOLSDIR_GMAKE in 20228 [\\/]* | ?:[\\/]*) 20229 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 20230 ;; 20231 *) 20232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20233 for as_dir in $PATH 20234 do 20235 IFS=$as_save_IFS 20236 test -z "$as_dir" && as_dir=. 20237 for ac_exec_ext in '' $ac_executable_extensions; do 20238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20239 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 20240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20241 break 2 20242 fi 20243 done 20244 done 20245 IFS=$as_save_IFS 20246 20247 ;; 20248 esac 20249 fi 20250 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 20251 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 20253 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 20254 else 20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20256 $as_echo "no" >&6; } 20257 fi 20258 20259 20260 test -n "$CHECK_TOOLSDIR_GMAKE" && break 20261 done 20262 20263 20264 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 20265 DESCRIPTION="gmake in tools-dir" 20266 20267 # On Cygwin, we require a newer version of make than on other platforms 20268 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20269 MAKE_VERSION_EXPR="-e 4\." 20270 MAKE_REQUIRED_VERSION="4.0" 20271 else 20272 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20273 MAKE_REQUIRED_VERSION="3.81" 20274 fi 20275 20276 if test "x$MAKE_CANDIDATE" != x; then 20277 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20278 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20279 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20280 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20281 if test "x$IS_GNU_MAKE" = x; then 20282 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20283 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20284 else 20285 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20286 if test "x$IS_MODERN_MAKE" = x; then 20287 { $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 20288 $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;} 20289 else 20290 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20292 MAKE_EXPECTED_ENV='cygwin' 20293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20294 MAKE_EXPECTED_ENV='msys' 20295 else 20296 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20297 fi 20298 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20299 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20300 else 20301 # Not relevant for non-Windows 20302 IS_MAKE_CORRECT_ENV=true 20303 fi 20304 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20305 { $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 20306 $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;} 20307 else 20308 FOUND_MAKE=$MAKE_CANDIDATE 20309 20310 # Only process if variable expands to non-empty 20311 20312 if test "x$FOUND_MAKE" != x; then 20313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20314 20315 # First separate the path from the arguments. This will split at the first 20316 # space. 20317 complete="$FOUND_MAKE" 20318 path="${complete%% *}" 20319 tmp="$complete EOL" 20320 arguments="${tmp#* }" 20321 20322 # Input might be given as Windows format, start by converting to 20323 # unix format. 20324 new_path=`$CYGPATH -u "$path"` 20325 20326 # Now try to locate executable using which 20327 new_path=`$WHICH "$new_path" 2> /dev/null` 20328 # bat and cmd files are not always considered executable in cygwin causing which 20329 # to not find them 20330 if test "x$new_path" = x \ 20331 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20332 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20333 new_path=`$CYGPATH -u "$path"` 20334 fi 20335 if test "x$new_path" = x; then 20336 # Oops. Which didn't find the executable. 20337 # The splitting of arguments from the executable at a space might have been incorrect, 20338 # since paths with space are more likely in Windows. Give it another try with the whole 20339 # argument. 20340 path="$complete" 20341 arguments="EOL" 20342 new_path=`$CYGPATH -u "$path"` 20343 new_path=`$WHICH "$new_path" 2> /dev/null` 20344 # bat and cmd files are not always considered executable in cygwin causing which 20345 # to not find them 20346 if test "x$new_path" = x \ 20347 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20348 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20349 new_path=`$CYGPATH -u "$path"` 20350 fi 20351 if test "x$new_path" = x; then 20352 # It's still not found. Now this is an unrecoverable error. 20353 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20354 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20355 has_space=`$ECHO "$complete" | $GREP " "` 20356 if test "x$has_space" != x; then 20357 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20358 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20359 fi 20360 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20361 fi 20362 fi 20363 20364 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20365 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20366 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20367 # "foo.exe" is OK but "foo" is an error. 20368 # 20369 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20370 # It is also a way to make sure we got the proper file name for the real test later on. 20371 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20372 if test "x$test_shortpath" = x; then 20373 # Short path failed, file does not exist as specified. 20374 # Try adding .exe or .cmd 20375 if test -f "${new_path}.exe"; then 20376 input_to_shortpath="${new_path}.exe" 20377 elif test -f "${new_path}.cmd"; then 20378 input_to_shortpath="${new_path}.cmd" 20379 else 20380 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20381 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20382 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20383 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20384 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20385 fi 20386 else 20387 input_to_shortpath="$new_path" 20388 fi 20389 20390 # Call helper function which possibly converts this using DOS-style short mode. 20391 # If so, the updated path is stored in $new_path. 20392 new_path="$input_to_shortpath" 20393 20394 input_path="$input_to_shortpath" 20395 # Check if we need to convert this using DOS-style short mode. If the path 20396 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20397 # take no chances and rewrite it. 20398 # Note: m4 eats our [], so we need to use [ and ] instead. 20399 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20400 if test "x$has_forbidden_chars" != x; then 20401 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20402 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20403 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20404 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20405 # Going to short mode and back again did indeed matter. Since short mode is 20406 # case insensitive, let's make it lowercase to improve readability. 20407 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20408 # Now convert it back to Unix-style (cygpath) 20409 input_path=`$CYGPATH -u "$shortmode_path"` 20410 new_path="$input_path" 20411 fi 20412 fi 20413 20414 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20415 if test "x$test_cygdrive_prefix" = x; then 20416 # As a simple fix, exclude /usr/bin since it's not a real path. 20417 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20418 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20419 # a path prefixed by /cygdrive for fixpath to work. 20420 new_path="$CYGWIN_ROOT_PATH$input_path" 20421 fi 20422 fi 20423 20424 # remove trailing .exe if any 20425 new_path="${new_path/%.exe/}" 20426 20427 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20428 20429 # First separate the path from the arguments. This will split at the first 20430 # space. 20431 complete="$FOUND_MAKE" 20432 path="${complete%% *}" 20433 tmp="$complete EOL" 20434 arguments="${tmp#* }" 20435 20436 # Input might be given as Windows format, start by converting to 20437 # unix format. 20438 new_path="$path" 20439 20440 windows_path="$new_path" 20441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20442 unix_path=`$CYGPATH -u "$windows_path"` 20443 new_path="$unix_path" 20444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20445 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20446 new_path="$unix_path" 20447 fi 20448 20449 20450 # Now try to locate executable using which 20451 new_path=`$WHICH "$new_path" 2> /dev/null` 20452 20453 if test "x$new_path" = x; then 20454 # Oops. Which didn't find the executable. 20455 # The splitting of arguments from the executable at a space might have been incorrect, 20456 # since paths with space are more likely in Windows. Give it another try with the whole 20457 # argument. 20458 path="$complete" 20459 arguments="EOL" 20460 new_path="$path" 20461 20462 windows_path="$new_path" 20463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20464 unix_path=`$CYGPATH -u "$windows_path"` 20465 new_path="$unix_path" 20466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20467 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20468 new_path="$unix_path" 20469 fi 20470 20471 20472 new_path=`$WHICH "$new_path" 2> /dev/null` 20473 # bat and cmd files are not always considered executable in MSYS causing which 20474 # to not find them 20475 if test "x$new_path" = x \ 20476 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20477 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20478 new_path="$path" 20479 20480 windows_path="$new_path" 20481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20482 unix_path=`$CYGPATH -u "$windows_path"` 20483 new_path="$unix_path" 20484 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20485 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20486 new_path="$unix_path" 20487 fi 20488 20489 fi 20490 20491 if test "x$new_path" = x; then 20492 # It's still not found. Now this is an unrecoverable error. 20493 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20494 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20495 has_space=`$ECHO "$complete" | $GREP " "` 20496 if test "x$has_space" != x; then 20497 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20498 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20499 fi 20500 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20501 fi 20502 fi 20503 20504 # Now new_path has a complete unix path to the binary 20505 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20506 # Keep paths in /bin as-is, but remove trailing .exe if any 20507 new_path="${new_path/%.exe/}" 20508 # Do not save /bin paths to all_fixpath_prefixes! 20509 else 20510 # Not in mixed or Windows style, start by that. 20511 new_path=`cmd //c echo $new_path` 20512 20513 input_path="$new_path" 20514 # Check if we need to convert this using DOS-style short mode. If the path 20515 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20516 # take no chances and rewrite it. 20517 # Note: m4 eats our [], so we need to use [ and ] instead. 20518 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20519 if test "x$has_forbidden_chars" != x; then 20520 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20521 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20522 fi 20523 20524 # Output is in $new_path 20525 20526 windows_path="$new_path" 20527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20528 unix_path=`$CYGPATH -u "$windows_path"` 20529 new_path="$unix_path" 20530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20531 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20532 new_path="$unix_path" 20533 fi 20534 20535 # remove trailing .exe if any 20536 new_path="${new_path/%.exe/}" 20537 20538 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20539 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20540 fi 20541 20542 else 20543 # We're on a unix platform. Hooray! :) 20544 # First separate the path from the arguments. This will split at the first 20545 # space. 20546 complete="$FOUND_MAKE" 20547 path="${complete%% *}" 20548 tmp="$complete EOL" 20549 arguments="${tmp#* }" 20550 20551 # Cannot rely on the command "which" here since it doesn't always work. 20552 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20553 if test -z "$is_absolute_path"; then 20554 # Path to executable is not absolute. Find it. 20555 IFS_save="$IFS" 20556 IFS=: 20557 for p in $PATH; do 20558 if test -f "$p/$path" && test -x "$p/$path"; then 20559 new_path="$p/$path" 20560 break 20561 fi 20562 done 20563 IFS="$IFS_save" 20564 else 20565 # This is an absolute path, we can use it without further modifications. 20566 new_path="$path" 20567 fi 20568 20569 if test "x$new_path" = x; then 20570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20571 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20572 has_space=`$ECHO "$complete" | $GREP " "` 20573 if test "x$has_space" != x; then 20574 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20575 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20576 fi 20577 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20578 fi 20579 fi 20580 20581 # Now join together the path and the arguments once again 20582 if test "x$arguments" != xEOL; then 20583 new_complete="$new_path ${arguments% *}" 20584 else 20585 new_complete="$new_path" 20586 fi 20587 20588 if test "x$complete" != "x$new_complete"; then 20589 FOUND_MAKE="$new_complete" 20590 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20591 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20592 fi 20593 fi 20594 20595 fi 20596 fi 20597 fi 20598 fi 20599 20600 if test "x$FOUND_MAKE" = x; then 20601 for ac_prog in make 20602 do 20603 # Extract the first word of "$ac_prog", so it can be a program name with args. 20604 set dummy $ac_prog; ac_word=$2 20605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20606 $as_echo_n "checking for $ac_word... " >&6; } 20607 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20608 $as_echo_n "(cached) " >&6 20609 else 20610 case $CHECK_TOOLSDIR_MAKE in 20611 [\\/]* | ?:[\\/]*) 20612 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20613 ;; 20614 *) 20615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20616 for as_dir in $PATH 20617 do 20618 IFS=$as_save_IFS 20619 test -z "$as_dir" && as_dir=. 20620 for ac_exec_ext in '' $ac_executable_extensions; do 20621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20622 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20624 break 2 20625 fi 20626 done 20627 done 20628 IFS=$as_save_IFS 20629 20630 ;; 20631 esac 20632 fi 20633 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20634 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20636 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20637 else 20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20639 $as_echo "no" >&6; } 20640 fi 20641 20642 20643 test -n "$CHECK_TOOLSDIR_MAKE" && break 20644 done 20645 20646 20647 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20648 DESCRIPTION="make in tools-dir" 20649 20650 # On Cygwin, we require a newer version of make than on other platforms 20651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20652 MAKE_VERSION_EXPR="-e 4\." 20653 MAKE_REQUIRED_VERSION="4.0" 20654 else 20655 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20656 MAKE_REQUIRED_VERSION="3.81" 20657 fi 20658 20659 if test "x$MAKE_CANDIDATE" != x; then 20660 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20661 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20662 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20663 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20664 if test "x$IS_GNU_MAKE" = x; then 20665 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20666 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20667 else 20668 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20669 if test "x$IS_MODERN_MAKE" = x; then 20670 { $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 20671 $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;} 20672 else 20673 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20675 MAKE_EXPECTED_ENV='cygwin' 20676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20677 MAKE_EXPECTED_ENV='msys' 20678 else 20679 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20680 fi 20681 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20682 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20683 else 20684 # Not relevant for non-Windows 20685 IS_MAKE_CORRECT_ENV=true 20686 fi 20687 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20688 { $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 20689 $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;} 20690 else 20691 FOUND_MAKE=$MAKE_CANDIDATE 20692 20693 # Only process if variable expands to non-empty 20694 20695 if test "x$FOUND_MAKE" != x; then 20696 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20697 20698 # First separate the path from the arguments. This will split at the first 20699 # space. 20700 complete="$FOUND_MAKE" 20701 path="${complete%% *}" 20702 tmp="$complete EOL" 20703 arguments="${tmp#* }" 20704 20705 # Input might be given as Windows format, start by converting to 20706 # unix format. 20707 new_path=`$CYGPATH -u "$path"` 20708 20709 # Now try to locate executable using which 20710 new_path=`$WHICH "$new_path" 2> /dev/null` 20711 # bat and cmd files are not always considered executable in cygwin causing which 20712 # to not find them 20713 if test "x$new_path" = x \ 20714 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20715 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20716 new_path=`$CYGPATH -u "$path"` 20717 fi 20718 if test "x$new_path" = x; then 20719 # Oops. Which didn't find the executable. 20720 # The splitting of arguments from the executable at a space might have been incorrect, 20721 # since paths with space are more likely in Windows. Give it another try with the whole 20722 # argument. 20723 path="$complete" 20724 arguments="EOL" 20725 new_path=`$CYGPATH -u "$path"` 20726 new_path=`$WHICH "$new_path" 2> /dev/null` 20727 # bat and cmd files are not always considered executable in cygwin causing which 20728 # to not find them 20729 if test "x$new_path" = x \ 20730 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20731 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20732 new_path=`$CYGPATH -u "$path"` 20733 fi 20734 if test "x$new_path" = x; then 20735 # It's still not found. Now this is an unrecoverable error. 20736 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20737 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20738 has_space=`$ECHO "$complete" | $GREP " "` 20739 if test "x$has_space" != x; then 20740 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20741 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20742 fi 20743 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20744 fi 20745 fi 20746 20747 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20748 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20749 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20750 # "foo.exe" is OK but "foo" is an error. 20751 # 20752 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20753 # It is also a way to make sure we got the proper file name for the real test later on. 20754 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20755 if test "x$test_shortpath" = x; then 20756 # Short path failed, file does not exist as specified. 20757 # Try adding .exe or .cmd 20758 if test -f "${new_path}.exe"; then 20759 input_to_shortpath="${new_path}.exe" 20760 elif test -f "${new_path}.cmd"; then 20761 input_to_shortpath="${new_path}.cmd" 20762 else 20763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20764 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20765 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20766 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20767 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20768 fi 20769 else 20770 input_to_shortpath="$new_path" 20771 fi 20772 20773 # Call helper function which possibly converts this using DOS-style short mode. 20774 # If so, the updated path is stored in $new_path. 20775 new_path="$input_to_shortpath" 20776 20777 input_path="$input_to_shortpath" 20778 # Check if we need to convert this using DOS-style short mode. If the path 20779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20780 # take no chances and rewrite it. 20781 # Note: m4 eats our [], so we need to use [ and ] instead. 20782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20783 if test "x$has_forbidden_chars" != x; then 20784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20785 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20786 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20787 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20788 # Going to short mode and back again did indeed matter. Since short mode is 20789 # case insensitive, let's make it lowercase to improve readability. 20790 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20791 # Now convert it back to Unix-style (cygpath) 20792 input_path=`$CYGPATH -u "$shortmode_path"` 20793 new_path="$input_path" 20794 fi 20795 fi 20796 20797 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20798 if test "x$test_cygdrive_prefix" = x; then 20799 # As a simple fix, exclude /usr/bin since it's not a real path. 20800 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20801 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20802 # a path prefixed by /cygdrive for fixpath to work. 20803 new_path="$CYGWIN_ROOT_PATH$input_path" 20804 fi 20805 fi 20806 20807 # remove trailing .exe if any 20808 new_path="${new_path/%.exe/}" 20809 20810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20811 20812 # First separate the path from the arguments. This will split at the first 20813 # space. 20814 complete="$FOUND_MAKE" 20815 path="${complete%% *}" 20816 tmp="$complete EOL" 20817 arguments="${tmp#* }" 20818 20819 # Input might be given as Windows format, start by converting to 20820 # unix format. 20821 new_path="$path" 20822 20823 windows_path="$new_path" 20824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20825 unix_path=`$CYGPATH -u "$windows_path"` 20826 new_path="$unix_path" 20827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20828 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20829 new_path="$unix_path" 20830 fi 20831 20832 20833 # Now try to locate executable using which 20834 new_path=`$WHICH "$new_path" 2> /dev/null` 20835 20836 if test "x$new_path" = x; then 20837 # Oops. Which didn't find the executable. 20838 # The splitting of arguments from the executable at a space might have been incorrect, 20839 # since paths with space are more likely in Windows. Give it another try with the whole 20840 # argument. 20841 path="$complete" 20842 arguments="EOL" 20843 new_path="$path" 20844 20845 windows_path="$new_path" 20846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20847 unix_path=`$CYGPATH -u "$windows_path"` 20848 new_path="$unix_path" 20849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20850 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20851 new_path="$unix_path" 20852 fi 20853 20854 20855 new_path=`$WHICH "$new_path" 2> /dev/null` 20856 # bat and cmd files are not always considered executable in MSYS causing which 20857 # to not find them 20858 if test "x$new_path" = x \ 20859 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20860 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20861 new_path="$path" 20862 20863 windows_path="$new_path" 20864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20865 unix_path=`$CYGPATH -u "$windows_path"` 20866 new_path="$unix_path" 20867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20868 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20869 new_path="$unix_path" 20870 fi 20871 20872 fi 20873 20874 if test "x$new_path" = x; then 20875 # It's still not found. Now this is an unrecoverable error. 20876 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20877 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20878 has_space=`$ECHO "$complete" | $GREP " "` 20879 if test "x$has_space" != x; then 20880 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20881 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20882 fi 20883 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20884 fi 20885 fi 20886 20887 # Now new_path has a complete unix path to the binary 20888 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20889 # Keep paths in /bin as-is, but remove trailing .exe if any 20890 new_path="${new_path/%.exe/}" 20891 # Do not save /bin paths to all_fixpath_prefixes! 20892 else 20893 # Not in mixed or Windows style, start by that. 20894 new_path=`cmd //c echo $new_path` 20895 20896 input_path="$new_path" 20897 # Check if we need to convert this using DOS-style short mode. If the path 20898 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20899 # take no chances and rewrite it. 20900 # Note: m4 eats our [], so we need to use [ and ] instead. 20901 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20902 if test "x$has_forbidden_chars" != x; then 20903 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20904 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20905 fi 20906 20907 # Output is in $new_path 20908 20909 windows_path="$new_path" 20910 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20911 unix_path=`$CYGPATH -u "$windows_path"` 20912 new_path="$unix_path" 20913 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20914 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20915 new_path="$unix_path" 20916 fi 20917 20918 # remove trailing .exe if any 20919 new_path="${new_path/%.exe/}" 20920 20921 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20922 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20923 fi 20924 20925 else 20926 # We're on a unix platform. Hooray! :) 20927 # First separate the path from the arguments. This will split at the first 20928 # space. 20929 complete="$FOUND_MAKE" 20930 path="${complete%% *}" 20931 tmp="$complete EOL" 20932 arguments="${tmp#* }" 20933 20934 # Cannot rely on the command "which" here since it doesn't always work. 20935 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20936 if test -z "$is_absolute_path"; then 20937 # Path to executable is not absolute. Find it. 20938 IFS_save="$IFS" 20939 IFS=: 20940 for p in $PATH; do 20941 if test -f "$p/$path" && test -x "$p/$path"; then 20942 new_path="$p/$path" 20943 break 20944 fi 20945 done 20946 IFS="$IFS_save" 20947 else 20948 # This is an absolute path, we can use it without further modifications. 20949 new_path="$path" 20950 fi 20951 20952 if test "x$new_path" = x; then 20953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20954 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20955 has_space=`$ECHO "$complete" | $GREP " "` 20956 if test "x$has_space" != x; then 20957 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20958 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20959 fi 20960 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20961 fi 20962 fi 20963 20964 # Now join together the path and the arguments once again 20965 if test "x$arguments" != xEOL; then 20966 new_complete="$new_path ${arguments% *}" 20967 else 20968 new_complete="$new_path" 20969 fi 20970 20971 if test "x$complete" != "x$new_complete"; then 20972 FOUND_MAKE="$new_complete" 20973 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20974 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20975 fi 20976 fi 20977 20978 fi 20979 fi 20980 fi 20981 fi 20982 20983 fi 20984 PATH=$OLD_PATH 20985 fi 20986 fi 20987 20988 if test "x$FOUND_MAKE" = x; then 20989 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 20990 fi 20991 20992 else 20993 # If it succeeded, then it was overridden by the user. We will use it 20994 # for the tool. 20995 20996 # First remove it from the list of overridden variables, so we can test 20997 # for unknown variables in the end. 20998 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20999 21000 # Check if we try to supply an empty value 21001 if test "x$MAKE" = x; then 21002 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 21003 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 21004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 21005 $as_echo_n "checking for MAKE... " >&6; } 21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21007 $as_echo "disabled" >&6; } 21008 else 21009 # Check if the provided tool contains a complete path. 21010 tool_specified="$MAKE" 21011 tool_basename="${tool_specified##*/}" 21012 if test "x$tool_basename" = "x$tool_specified"; then 21013 # A command without a complete path is provided, search $PATH. 21014 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 21015 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 21016 # Extract the first word of "$tool_basename", so it can be a program name with args. 21017 set dummy $tool_basename; ac_word=$2 21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21019 $as_echo_n "checking for $ac_word... " >&6; } 21020 if ${ac_cv_path_MAKE+:} false; then : 21021 $as_echo_n "(cached) " >&6 21022 else 21023 case $MAKE in 21024 [\\/]* | ?:[\\/]*) 21025 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 21026 ;; 21027 *) 21028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21029 for as_dir in $PATH 21030 do 21031 IFS=$as_save_IFS 21032 test -z "$as_dir" && as_dir=. 21033 for ac_exec_ext in '' $ac_executable_extensions; do 21034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21035 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 21036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21037 break 2 21038 fi 21039 done 21040 done 21041 IFS=$as_save_IFS 21042 21043 ;; 21044 esac 21045 fi 21046 MAKE=$ac_cv_path_MAKE 21047 if test -n "$MAKE"; then 21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 21049 $as_echo "$MAKE" >&6; } 21050 else 21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21052 $as_echo "no" >&6; } 21053 fi 21054 21055 21056 if test "x$MAKE" = x; then 21057 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21058 fi 21059 else 21060 # Otherwise we believe it is a complete path. Use it as it is. 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 21062 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 21063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 21064 $as_echo_n "checking for MAKE... " >&6; } 21065 if test ! -x "$tool_specified"; then 21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21067 $as_echo "not found" >&6; } 21068 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 21069 fi 21070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21071 $as_echo "$tool_specified" >&6; } 21072 fi 21073 fi 21074 fi 21075 21076 # If MAKE was set by user, verify the version 21077 21078 MAKE_CANDIDATE=""$MAKE"" 21079 DESCRIPTION="user supplied MAKE=$MAKE" 21080 21081 # On Cygwin, we require a newer version of make than on other platforms 21082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21083 MAKE_VERSION_EXPR="-e 4\." 21084 MAKE_REQUIRED_VERSION="4.0" 21085 else 21086 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 21087 MAKE_REQUIRED_VERSION="3.81" 21088 fi 21089 21090 if test "x$MAKE_CANDIDATE" != x; then 21091 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 21092 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 21093 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 21094 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 21095 if test "x$IS_GNU_MAKE" = x; then 21096 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 21097 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 21098 else 21099 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 21100 if test "x$IS_MODERN_MAKE" = x; then 21101 { $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 21102 $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;} 21103 else 21104 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 21105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21106 MAKE_EXPECTED_ENV='cygwin' 21107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21108 MAKE_EXPECTED_ENV='msys' 21109 else 21110 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 21111 fi 21112 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 21113 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 21114 else 21115 # Not relevant for non-Windows 21116 IS_MAKE_CORRECT_ENV=true 21117 fi 21118 if test "x$IS_MAKE_CORRECT_ENV" = x; then 21119 { $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 21120 $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;} 21121 else 21122 FOUND_MAKE=$MAKE_CANDIDATE 21123 21124 # Only process if variable expands to non-empty 21125 21126 if test "x$FOUND_MAKE" != x; then 21127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21128 21129 # First separate the path from the arguments. This will split at the first 21130 # space. 21131 complete="$FOUND_MAKE" 21132 path="${complete%% *}" 21133 tmp="$complete EOL" 21134 arguments="${tmp#* }" 21135 21136 # Input might be given as Windows format, start by converting to 21137 # unix format. 21138 new_path=`$CYGPATH -u "$path"` 21139 21140 # Now try to locate executable using which 21141 new_path=`$WHICH "$new_path" 2> /dev/null` 21142 # bat and cmd files are not always considered executable in cygwin causing which 21143 # to not find them 21144 if test "x$new_path" = x \ 21145 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21146 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21147 new_path=`$CYGPATH -u "$path"` 21148 fi 21149 if test "x$new_path" = x; then 21150 # Oops. Which didn't find the executable. 21151 # The splitting of arguments from the executable at a space might have been incorrect, 21152 # since paths with space are more likely in Windows. Give it another try with the whole 21153 # argument. 21154 path="$complete" 21155 arguments="EOL" 21156 new_path=`$CYGPATH -u "$path"` 21157 new_path=`$WHICH "$new_path" 2> /dev/null` 21158 # bat and cmd files are not always considered executable in cygwin causing which 21159 # to not find them 21160 if test "x$new_path" = x \ 21161 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21162 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21163 new_path=`$CYGPATH -u "$path"` 21164 fi 21165 if test "x$new_path" = x; then 21166 # It's still not found. Now this is an unrecoverable error. 21167 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21168 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21169 has_space=`$ECHO "$complete" | $GREP " "` 21170 if test "x$has_space" != x; then 21171 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21172 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21173 fi 21174 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21175 fi 21176 fi 21177 21178 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21179 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21180 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21181 # "foo.exe" is OK but "foo" is an error. 21182 # 21183 # This test is therefore slightly more accurate than "test -f" to check for file presence. 21184 # It is also a way to make sure we got the proper file name for the real test later on. 21185 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21186 if test "x$test_shortpath" = x; then 21187 # Short path failed, file does not exist as specified. 21188 # Try adding .exe or .cmd 21189 if test -f "${new_path}.exe"; then 21190 input_to_shortpath="${new_path}.exe" 21191 elif test -f "${new_path}.cmd"; then 21192 input_to_shortpath="${new_path}.cmd" 21193 else 21194 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 21195 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 21196 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 21197 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 21198 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21199 fi 21200 else 21201 input_to_shortpath="$new_path" 21202 fi 21203 21204 # Call helper function which possibly converts this using DOS-style short mode. 21205 # If so, the updated path is stored in $new_path. 21206 new_path="$input_to_shortpath" 21207 21208 input_path="$input_to_shortpath" 21209 # Check if we need to convert this using DOS-style short mode. If the path 21210 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21211 # take no chances and rewrite it. 21212 # Note: m4 eats our [], so we need to use [ and ] instead. 21213 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21214 if test "x$has_forbidden_chars" != x; then 21215 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21216 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21217 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21218 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21219 # Going to short mode and back again did indeed matter. Since short mode is 21220 # case insensitive, let's make it lowercase to improve readability. 21221 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21222 # Now convert it back to Unix-style (cygpath) 21223 input_path=`$CYGPATH -u "$shortmode_path"` 21224 new_path="$input_path" 21225 fi 21226 fi 21227 21228 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21229 if test "x$test_cygdrive_prefix" = x; then 21230 # As a simple fix, exclude /usr/bin since it's not a real path. 21231 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 21232 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21233 # a path prefixed by /cygdrive for fixpath to work. 21234 new_path="$CYGWIN_ROOT_PATH$input_path" 21235 fi 21236 fi 21237 21238 # remove trailing .exe if any 21239 new_path="${new_path/%.exe/}" 21240 21241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21242 21243 # First separate the path from the arguments. This will split at the first 21244 # space. 21245 complete="$FOUND_MAKE" 21246 path="${complete%% *}" 21247 tmp="$complete EOL" 21248 arguments="${tmp#* }" 21249 21250 # Input might be given as Windows format, start by converting to 21251 # unix format. 21252 new_path="$path" 21253 21254 windows_path="$new_path" 21255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21256 unix_path=`$CYGPATH -u "$windows_path"` 21257 new_path="$unix_path" 21258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21259 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21260 new_path="$unix_path" 21261 fi 21262 21263 21264 # Now try to locate executable using which 21265 new_path=`$WHICH "$new_path" 2> /dev/null` 21266 21267 if test "x$new_path" = x; then 21268 # Oops. Which didn't find the executable. 21269 # The splitting of arguments from the executable at a space might have been incorrect, 21270 # since paths with space are more likely in Windows. Give it another try with the whole 21271 # argument. 21272 path="$complete" 21273 arguments="EOL" 21274 new_path="$path" 21275 21276 windows_path="$new_path" 21277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21278 unix_path=`$CYGPATH -u "$windows_path"` 21279 new_path="$unix_path" 21280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21281 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21282 new_path="$unix_path" 21283 fi 21284 21285 21286 new_path=`$WHICH "$new_path" 2> /dev/null` 21287 # bat and cmd files are not always considered executable in MSYS causing which 21288 # to not find them 21289 if test "x$new_path" = x \ 21290 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21291 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21292 new_path="$path" 21293 21294 windows_path="$new_path" 21295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21296 unix_path=`$CYGPATH -u "$windows_path"` 21297 new_path="$unix_path" 21298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21299 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21300 new_path="$unix_path" 21301 fi 21302 21303 fi 21304 21305 if test "x$new_path" = x; then 21306 # It's still not found. Now this is an unrecoverable error. 21307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21308 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21309 has_space=`$ECHO "$complete" | $GREP " "` 21310 if test "x$has_space" != x; then 21311 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21312 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21313 fi 21314 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21315 fi 21316 fi 21317 21318 # Now new_path has a complete unix path to the binary 21319 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21320 # Keep paths in /bin as-is, but remove trailing .exe if any 21321 new_path="${new_path/%.exe/}" 21322 # Do not save /bin paths to all_fixpath_prefixes! 21323 else 21324 # Not in mixed or Windows style, start by that. 21325 new_path=`cmd //c echo $new_path` 21326 21327 input_path="$new_path" 21328 # Check if we need to convert this using DOS-style short mode. If the path 21329 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21330 # take no chances and rewrite it. 21331 # Note: m4 eats our [], so we need to use [ and ] instead. 21332 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21333 if test "x$has_forbidden_chars" != x; then 21334 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21335 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21336 fi 21337 21338 # Output is in $new_path 21339 21340 windows_path="$new_path" 21341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21342 unix_path=`$CYGPATH -u "$windows_path"` 21343 new_path="$unix_path" 21344 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21345 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21346 new_path="$unix_path" 21347 fi 21348 21349 # remove trailing .exe if any 21350 new_path="${new_path/%.exe/}" 21351 21352 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21353 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21354 fi 21355 21356 else 21357 # We're on a unix platform. Hooray! :) 21358 # First separate the path from the arguments. This will split at the first 21359 # space. 21360 complete="$FOUND_MAKE" 21361 path="${complete%% *}" 21362 tmp="$complete EOL" 21363 arguments="${tmp#* }" 21364 21365 # Cannot rely on the command "which" here since it doesn't always work. 21366 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21367 if test -z "$is_absolute_path"; then 21368 # Path to executable is not absolute. Find it. 21369 IFS_save="$IFS" 21370 IFS=: 21371 for p in $PATH; do 21372 if test -f "$p/$path" && test -x "$p/$path"; then 21373 new_path="$p/$path" 21374 break 21375 fi 21376 done 21377 IFS="$IFS_save" 21378 else 21379 # This is an absolute path, we can use it without further modifications. 21380 new_path="$path" 21381 fi 21382 21383 if test "x$new_path" = x; then 21384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21385 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21386 has_space=`$ECHO "$complete" | $GREP " "` 21387 if test "x$has_space" != x; then 21388 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21389 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21390 fi 21391 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21392 fi 21393 fi 21394 21395 # Now join together the path and the arguments once again 21396 if test "x$arguments" != xEOL; then 21397 new_complete="$new_path ${arguments% *}" 21398 else 21399 new_complete="$new_path" 21400 fi 21401 21402 if test "x$complete" != "x$new_complete"; then 21403 FOUND_MAKE="$new_complete" 21404 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21405 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21406 fi 21407 fi 21408 21409 fi 21410 fi 21411 fi 21412 fi 21413 21414 if test "x$FOUND_MAKE" = x; then 21415 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21416 fi 21417 21418 fi 21419 21420 21421 MAKE=$FOUND_MAKE 21422 21423 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21424 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21425 21426 21427 # Check if make supports the output sync option and if so, setup using it. 21428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21429 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21430 if $MAKE --version -O > /dev/null 2>&1; then 21431 OUTPUT_SYNC_SUPPORTED=true 21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21433 $as_echo "yes" >&6; } 21434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21435 $as_echo_n "checking for output-sync value... " >&6; } 21436 21437 # Check whether --with-output-sync was given. 21438 if test "${with_output_sync+set}" = set; then : 21439 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21440 fi 21441 21442 if test "x$OUTPUT_SYNC" = "x"; then 21443 OUTPUT_SYNC=none 21444 fi 21445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21446 $as_echo "$OUTPUT_SYNC" >&6; } 21447 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21448 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21449 fi 21450 else 21451 OUTPUT_SYNC_SUPPORTED=false 21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21453 $as_echo "no" >&6; } 21454 fi 21455 21456 21457 21458 21459 21460 21461 # Test if find supports -delete 21462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21463 $as_echo_n "checking if find supports -delete... " >&6; } 21464 FIND_DELETE="-delete" 21465 21466 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21467 21468 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21469 21470 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21471 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21472 # No, it does not. 21473 $RM $DELETEDIR/TestIfFindSupportsDelete 21474 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21475 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21476 FIND_DELETE="-print | $XARGS $RM" 21477 else 21478 FIND_DELETE="-exec $RM \{\} \+" 21479 fi 21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21481 $as_echo "no" >&6; } 21482 else 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21484 $as_echo "yes" >&6; } 21485 fi 21486 $RMDIR $DELETEDIR 21487 21488 21489 21490 # Test which kind of tar was found 21491 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21492 TAR_TYPE="gnu" 21493 elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then 21494 TAR_TYPE="bsd" 21495 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21496 TAR_TYPE="bsd" 21497 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21498 TAR_TYPE="solaris" 21499 fi 21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21501 $as_echo_n "checking what type of tar was found... " >&6; } 21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21503 $as_echo "$TAR_TYPE" >&6; } 21504 21505 TAR_CREATE_FILE_PARAM="" 21506 21507 if test "x$TAR_TYPE" = "xgnu"; then 21508 TAR_INCLUDE_PARAM="T" 21509 TAR_SUPPORTS_TRANSFORM="true" 21510 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21511 # When using gnu tar for Solaris targets, need to use compatibility mode 21512 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21513 fi 21514 else 21515 TAR_INCLUDE_PARAM="I" 21516 TAR_SUPPORTS_TRANSFORM="false" 21517 fi 21518 21519 21520 21521 21522 21523 21524 # Test that grep supports -Fx with a list of pattern which includes null pattern. 21525 # This is a problem for the grep resident on AIX. 21526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5 21527 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; } 21528 # Multiple subsequent spaces.. 21529 STACK_SPACES='aaa bbb ccc' 21530 # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty 21531 # patterns in it. 21532 STACK_LIST=${STACK_SPACES// /$'\n'} 21533 NEEDLE_SPACES='ccc bbb aaa' 21534 NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'} 21535 RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")" 21536 if test "x$RESULT" == "x"; then 21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21538 $as_echo "yes" >&6; } 21539 else 21540 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21541 ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin." 21542 fi 21543 as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5 21544 fi 21545 21546 21547 # These tools might not be installed by default, 21548 # need hint on how to install them. 21549 21550 21551 21552 # Publish this variable in the help. 21553 21554 21555 if [ -z "${UNZIP+x}" ]; then 21556 # The variable is not set by user, try to locate tool using the code snippet 21557 for ac_prog in unzip 21558 do 21559 # Extract the first word of "$ac_prog", so it can be a program name with args. 21560 set dummy $ac_prog; ac_word=$2 21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21562 $as_echo_n "checking for $ac_word... " >&6; } 21563 if ${ac_cv_path_UNZIP+:} false; then : 21564 $as_echo_n "(cached) " >&6 21565 else 21566 case $UNZIP in 21567 [\\/]* | ?:[\\/]*) 21568 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21569 ;; 21570 *) 21571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21572 for as_dir in $PATH 21573 do 21574 IFS=$as_save_IFS 21575 test -z "$as_dir" && as_dir=. 21576 for ac_exec_ext in '' $ac_executable_extensions; do 21577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21578 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21580 break 2 21581 fi 21582 done 21583 done 21584 IFS=$as_save_IFS 21585 21586 ;; 21587 esac 21588 fi 21589 UNZIP=$ac_cv_path_UNZIP 21590 if test -n "$UNZIP"; then 21591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21592 $as_echo "$UNZIP" >&6; } 21593 else 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21595 $as_echo "no" >&6; } 21596 fi 21597 21598 21599 test -n "$UNZIP" && break 21600 done 21601 21602 else 21603 # The variable is set, but is it from the command line or the environment? 21604 21605 # Try to remove the string !UNZIP! from our list. 21606 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21607 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21608 # If it failed, the variable was not from the command line. Ignore it, 21609 # but warn the user (except for BASH, which is always set by the calling BASH). 21610 if test "xUNZIP" != xBASH; then 21611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21612 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21613 fi 21614 # Try to locate tool using the code snippet 21615 for ac_prog in unzip 21616 do 21617 # Extract the first word of "$ac_prog", so it can be a program name with args. 21618 set dummy $ac_prog; ac_word=$2 21619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21620 $as_echo_n "checking for $ac_word... " >&6; } 21621 if ${ac_cv_path_UNZIP+:} false; then : 21622 $as_echo_n "(cached) " >&6 21623 else 21624 case $UNZIP in 21625 [\\/]* | ?:[\\/]*) 21626 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21627 ;; 21628 *) 21629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21630 for as_dir in $PATH 21631 do 21632 IFS=$as_save_IFS 21633 test -z "$as_dir" && as_dir=. 21634 for ac_exec_ext in '' $ac_executable_extensions; do 21635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21636 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21638 break 2 21639 fi 21640 done 21641 done 21642 IFS=$as_save_IFS 21643 21644 ;; 21645 esac 21646 fi 21647 UNZIP=$ac_cv_path_UNZIP 21648 if test -n "$UNZIP"; then 21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21650 $as_echo "$UNZIP" >&6; } 21651 else 21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21653 $as_echo "no" >&6; } 21654 fi 21655 21656 21657 test -n "$UNZIP" && break 21658 done 21659 21660 else 21661 # If it succeeded, then it was overridden by the user. We will use it 21662 # for the tool. 21663 21664 # First remove it from the list of overridden variables, so we can test 21665 # for unknown variables in the end. 21666 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21667 21668 # Check if we try to supply an empty value 21669 if test "x$UNZIP" = x; then 21670 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21671 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21673 $as_echo_n "checking for UNZIP... " >&6; } 21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21675 $as_echo "disabled" >&6; } 21676 else 21677 # Check if the provided tool contains a complete path. 21678 tool_specified="$UNZIP" 21679 tool_basename="${tool_specified##*/}" 21680 if test "x$tool_basename" = "x$tool_specified"; then 21681 # A command without a complete path is provided, search $PATH. 21682 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21683 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21684 # Extract the first word of "$tool_basename", so it can be a program name with args. 21685 set dummy $tool_basename; ac_word=$2 21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21687 $as_echo_n "checking for $ac_word... " >&6; } 21688 if ${ac_cv_path_UNZIP+:} false; then : 21689 $as_echo_n "(cached) " >&6 21690 else 21691 case $UNZIP in 21692 [\\/]* | ?:[\\/]*) 21693 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21694 ;; 21695 *) 21696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21697 for as_dir in $PATH 21698 do 21699 IFS=$as_save_IFS 21700 test -z "$as_dir" && as_dir=. 21701 for ac_exec_ext in '' $ac_executable_extensions; do 21702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21703 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21705 break 2 21706 fi 21707 done 21708 done 21709 IFS=$as_save_IFS 21710 21711 ;; 21712 esac 21713 fi 21714 UNZIP=$ac_cv_path_UNZIP 21715 if test -n "$UNZIP"; then 21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21717 $as_echo "$UNZIP" >&6; } 21718 else 21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21720 $as_echo "no" >&6; } 21721 fi 21722 21723 21724 if test "x$UNZIP" = x; then 21725 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21726 fi 21727 else 21728 # Otherwise we believe it is a complete path. Use it as it is. 21729 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21730 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21732 $as_echo_n "checking for UNZIP... " >&6; } 21733 if test ! -x "$tool_specified"; then 21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21735 $as_echo "not found" >&6; } 21736 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21737 fi 21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21739 $as_echo "$tool_specified" >&6; } 21740 fi 21741 fi 21742 fi 21743 21744 fi 21745 21746 21747 21748 if test "x$UNZIP" = x; then 21749 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21750 fi 21751 21752 21753 # Since zip uses "ZIP" as a environment variable for passing options, we need 21754 # to name our variable differently, hence ZIPEXE. 21755 21756 21757 21758 # Publish this variable in the help. 21759 21760 21761 if [ -z "${ZIPEXE+x}" ]; then 21762 # The variable is not set by user, try to locate tool using the code snippet 21763 for ac_prog in zip 21764 do 21765 # Extract the first word of "$ac_prog", so it can be a program name with args. 21766 set dummy $ac_prog; ac_word=$2 21767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21768 $as_echo_n "checking for $ac_word... " >&6; } 21769 if ${ac_cv_path_ZIPEXE+:} false; then : 21770 $as_echo_n "(cached) " >&6 21771 else 21772 case $ZIPEXE in 21773 [\\/]* | ?:[\\/]*) 21774 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21775 ;; 21776 *) 21777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21778 for as_dir in $PATH 21779 do 21780 IFS=$as_save_IFS 21781 test -z "$as_dir" && as_dir=. 21782 for ac_exec_ext in '' $ac_executable_extensions; do 21783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21784 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21786 break 2 21787 fi 21788 done 21789 done 21790 IFS=$as_save_IFS 21791 21792 ;; 21793 esac 21794 fi 21795 ZIPEXE=$ac_cv_path_ZIPEXE 21796 if test -n "$ZIPEXE"; then 21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21798 $as_echo "$ZIPEXE" >&6; } 21799 else 21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21801 $as_echo "no" >&6; } 21802 fi 21803 21804 21805 test -n "$ZIPEXE" && break 21806 done 21807 21808 else 21809 # The variable is set, but is it from the command line or the environment? 21810 21811 # Try to remove the string !ZIPEXE! from our list. 21812 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/} 21813 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21814 # If it failed, the variable was not from the command line. Ignore it, 21815 # but warn the user (except for BASH, which is always set by the calling BASH). 21816 if test "xZIPEXE" != xBASH; then 21817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5 21818 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;} 21819 fi 21820 # Try to locate tool using the code snippet 21821 for ac_prog in zip 21822 do 21823 # Extract the first word of "$ac_prog", so it can be a program name with args. 21824 set dummy $ac_prog; ac_word=$2 21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21826 $as_echo_n "checking for $ac_word... " >&6; } 21827 if ${ac_cv_path_ZIPEXE+:} false; then : 21828 $as_echo_n "(cached) " >&6 21829 else 21830 case $ZIPEXE in 21831 [\\/]* | ?:[\\/]*) 21832 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21833 ;; 21834 *) 21835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21836 for as_dir in $PATH 21837 do 21838 IFS=$as_save_IFS 21839 test -z "$as_dir" && as_dir=. 21840 for ac_exec_ext in '' $ac_executable_extensions; do 21841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21842 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21844 break 2 21845 fi 21846 done 21847 done 21848 IFS=$as_save_IFS 21849 21850 ;; 21851 esac 21852 fi 21853 ZIPEXE=$ac_cv_path_ZIPEXE 21854 if test -n "$ZIPEXE"; then 21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21856 $as_echo "$ZIPEXE" >&6; } 21857 else 21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21859 $as_echo "no" >&6; } 21860 fi 21861 21862 21863 test -n "$ZIPEXE" && break 21864 done 21865 21866 else 21867 # If it succeeded, then it was overridden by the user. We will use it 21868 # for the tool. 21869 21870 # First remove it from the list of overridden variables, so we can test 21871 # for unknown variables in the end. 21872 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21873 21874 # Check if we try to supply an empty value 21875 if test "x$ZIPEXE" = x; then 21876 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5 21877 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;} 21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21879 $as_echo_n "checking for ZIPEXE... " >&6; } 21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21881 $as_echo "disabled" >&6; } 21882 else 21883 # Check if the provided tool contains a complete path. 21884 tool_specified="$ZIPEXE" 21885 tool_basename="${tool_specified##*/}" 21886 if test "x$tool_basename" = "x$tool_specified"; then 21887 # A command without a complete path is provided, search $PATH. 21888 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5 21889 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;} 21890 # Extract the first word of "$tool_basename", so it can be a program name with args. 21891 set dummy $tool_basename; ac_word=$2 21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21893 $as_echo_n "checking for $ac_word... " >&6; } 21894 if ${ac_cv_path_ZIPEXE+:} false; then : 21895 $as_echo_n "(cached) " >&6 21896 else 21897 case $ZIPEXE in 21898 [\\/]* | ?:[\\/]*) 21899 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21900 ;; 21901 *) 21902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21903 for as_dir in $PATH 21904 do 21905 IFS=$as_save_IFS 21906 test -z "$as_dir" && as_dir=. 21907 for ac_exec_ext in '' $ac_executable_extensions; do 21908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21909 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21911 break 2 21912 fi 21913 done 21914 done 21915 IFS=$as_save_IFS 21916 21917 ;; 21918 esac 21919 fi 21920 ZIPEXE=$ac_cv_path_ZIPEXE 21921 if test -n "$ZIPEXE"; then 21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21923 $as_echo "$ZIPEXE" >&6; } 21924 else 21925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21926 $as_echo "no" >&6; } 21927 fi 21928 21929 21930 if test "x$ZIPEXE" = x; then 21931 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21932 fi 21933 else 21934 # Otherwise we believe it is a complete path. Use it as it is. 21935 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5 21936 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;} 21937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21938 $as_echo_n "checking for ZIPEXE... " >&6; } 21939 if test ! -x "$tool_specified"; then 21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21941 $as_echo "not found" >&6; } 21942 as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 21943 fi 21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21945 $as_echo "$tool_specified" >&6; } 21946 fi 21947 fi 21948 fi 21949 21950 fi 21951 21952 21953 21954 if test "x$ZIPEXE" = x; then 21955 as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5 21956 fi 21957 21958 21959 21960 # Non-required basic tools 21961 21962 21963 21964 # Publish this variable in the help. 21965 21966 21967 if [ -z "${LDD+x}" ]; then 21968 # The variable is not set by user, try to locate tool using the code snippet 21969 for ac_prog in ldd 21970 do 21971 # Extract the first word of "$ac_prog", so it can be a program name with args. 21972 set dummy $ac_prog; ac_word=$2 21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21974 $as_echo_n "checking for $ac_word... " >&6; } 21975 if ${ac_cv_path_LDD+:} false; then : 21976 $as_echo_n "(cached) " >&6 21977 else 21978 case $LDD in 21979 [\\/]* | ?:[\\/]*) 21980 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21981 ;; 21982 *) 21983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21984 for as_dir in $PATH 21985 do 21986 IFS=$as_save_IFS 21987 test -z "$as_dir" && as_dir=. 21988 for ac_exec_ext in '' $ac_executable_extensions; do 21989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21990 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21992 break 2 21993 fi 21994 done 21995 done 21996 IFS=$as_save_IFS 21997 21998 ;; 21999 esac 22000 fi 22001 LDD=$ac_cv_path_LDD 22002 if test -n "$LDD"; then 22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22004 $as_echo "$LDD" >&6; } 22005 else 22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22007 $as_echo "no" >&6; } 22008 fi 22009 22010 22011 test -n "$LDD" && break 22012 done 22013 22014 else 22015 # The variable is set, but is it from the command line or the environment? 22016 22017 # Try to remove the string !LDD! from our list. 22018 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 22019 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22020 # If it failed, the variable was not from the command line. Ignore it, 22021 # but warn the user (except for BASH, which is always set by the calling BASH). 22022 if test "xLDD" != xBASH; then 22023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 22024 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 22025 fi 22026 # Try to locate tool using the code snippet 22027 for ac_prog in ldd 22028 do 22029 # Extract the first word of "$ac_prog", so it can be a program name with args. 22030 set dummy $ac_prog; ac_word=$2 22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22032 $as_echo_n "checking for $ac_word... " >&6; } 22033 if ${ac_cv_path_LDD+:} false; then : 22034 $as_echo_n "(cached) " >&6 22035 else 22036 case $LDD in 22037 [\\/]* | ?:[\\/]*) 22038 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22039 ;; 22040 *) 22041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22042 for as_dir in $PATH 22043 do 22044 IFS=$as_save_IFS 22045 test -z "$as_dir" && as_dir=. 22046 for ac_exec_ext in '' $ac_executable_extensions; do 22047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22048 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22050 break 2 22051 fi 22052 done 22053 done 22054 IFS=$as_save_IFS 22055 22056 ;; 22057 esac 22058 fi 22059 LDD=$ac_cv_path_LDD 22060 if test -n "$LDD"; then 22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22062 $as_echo "$LDD" >&6; } 22063 else 22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22065 $as_echo "no" >&6; } 22066 fi 22067 22068 22069 test -n "$LDD" && break 22070 done 22071 22072 else 22073 # If it succeeded, then it was overridden by the user. We will use it 22074 # for the tool. 22075 22076 # First remove it from the list of overridden variables, so we can test 22077 # for unknown variables in the end. 22078 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22079 22080 # Check if we try to supply an empty value 22081 if test "x$LDD" = x; then 22082 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 22083 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22085 $as_echo_n "checking for LDD... " >&6; } 22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22087 $as_echo "disabled" >&6; } 22088 else 22089 # Check if the provided tool contains a complete path. 22090 tool_specified="$LDD" 22091 tool_basename="${tool_specified##*/}" 22092 if test "x$tool_basename" = "x$tool_specified"; then 22093 # A command without a complete path is provided, search $PATH. 22094 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 22095 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 22096 # Extract the first word of "$tool_basename", so it can be a program name with args. 22097 set dummy $tool_basename; ac_word=$2 22098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22099 $as_echo_n "checking for $ac_word... " >&6; } 22100 if ${ac_cv_path_LDD+:} false; then : 22101 $as_echo_n "(cached) " >&6 22102 else 22103 case $LDD in 22104 [\\/]* | ?:[\\/]*) 22105 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22106 ;; 22107 *) 22108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22109 for as_dir in $PATH 22110 do 22111 IFS=$as_save_IFS 22112 test -z "$as_dir" && as_dir=. 22113 for ac_exec_ext in '' $ac_executable_extensions; do 22114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22115 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22117 break 2 22118 fi 22119 done 22120 done 22121 IFS=$as_save_IFS 22122 22123 ;; 22124 esac 22125 fi 22126 LDD=$ac_cv_path_LDD 22127 if test -n "$LDD"; then 22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22129 $as_echo "$LDD" >&6; } 22130 else 22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22132 $as_echo "no" >&6; } 22133 fi 22134 22135 22136 if test "x$LDD" = x; then 22137 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22138 fi 22139 else 22140 # Otherwise we believe it is a complete path. Use it as it is. 22141 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 22142 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22144 $as_echo_n "checking for LDD... " >&6; } 22145 if test ! -x "$tool_specified"; then 22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22147 $as_echo "not found" >&6; } 22148 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 22149 fi 22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22151 $as_echo "$tool_specified" >&6; } 22152 fi 22153 fi 22154 fi 22155 22156 fi 22157 22158 22159 if test "x$LDD" = "x"; then 22160 # List shared lib dependencies is used for 22161 # debug output and checking for forbidden dependencies. 22162 # We can build without it. 22163 LDD="true" 22164 fi 22165 22166 22167 # Publish this variable in the help. 22168 22169 22170 if [ -z "${OTOOL+x}" ]; then 22171 # The variable is not set by user, try to locate tool using the code snippet 22172 for ac_prog in otool 22173 do 22174 # Extract the first word of "$ac_prog", so it can be a program name with args. 22175 set dummy $ac_prog; ac_word=$2 22176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22177 $as_echo_n "checking for $ac_word... " >&6; } 22178 if ${ac_cv_path_OTOOL+:} false; then : 22179 $as_echo_n "(cached) " >&6 22180 else 22181 case $OTOOL in 22182 [\\/]* | ?:[\\/]*) 22183 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22184 ;; 22185 *) 22186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22187 for as_dir in $PATH 22188 do 22189 IFS=$as_save_IFS 22190 test -z "$as_dir" && as_dir=. 22191 for ac_exec_ext in '' $ac_executable_extensions; do 22192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22193 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22195 break 2 22196 fi 22197 done 22198 done 22199 IFS=$as_save_IFS 22200 22201 ;; 22202 esac 22203 fi 22204 OTOOL=$ac_cv_path_OTOOL 22205 if test -n "$OTOOL"; then 22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22207 $as_echo "$OTOOL" >&6; } 22208 else 22209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22210 $as_echo "no" >&6; } 22211 fi 22212 22213 22214 test -n "$OTOOL" && break 22215 done 22216 22217 else 22218 # The variable is set, but is it from the command line or the environment? 22219 22220 # Try to remove the string !OTOOL! from our list. 22221 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 22222 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22223 # If it failed, the variable was not from the command line. Ignore it, 22224 # but warn the user (except for BASH, which is always set by the calling BASH). 22225 if test "xOTOOL" != xBASH; then 22226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 22227 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 22228 fi 22229 # Try to locate tool using the code snippet 22230 for ac_prog in otool 22231 do 22232 # Extract the first word of "$ac_prog", so it can be a program name with args. 22233 set dummy $ac_prog; ac_word=$2 22234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22235 $as_echo_n "checking for $ac_word... " >&6; } 22236 if ${ac_cv_path_OTOOL+:} false; then : 22237 $as_echo_n "(cached) " >&6 22238 else 22239 case $OTOOL in 22240 [\\/]* | ?:[\\/]*) 22241 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22242 ;; 22243 *) 22244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22245 for as_dir in $PATH 22246 do 22247 IFS=$as_save_IFS 22248 test -z "$as_dir" && as_dir=. 22249 for ac_exec_ext in '' $ac_executable_extensions; do 22250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22251 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22253 break 2 22254 fi 22255 done 22256 done 22257 IFS=$as_save_IFS 22258 22259 ;; 22260 esac 22261 fi 22262 OTOOL=$ac_cv_path_OTOOL 22263 if test -n "$OTOOL"; then 22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22265 $as_echo "$OTOOL" >&6; } 22266 else 22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22268 $as_echo "no" >&6; } 22269 fi 22270 22271 22272 test -n "$OTOOL" && break 22273 done 22274 22275 else 22276 # If it succeeded, then it was overridden by the user. We will use it 22277 # for the tool. 22278 22279 # First remove it from the list of overridden variables, so we can test 22280 # for unknown variables in the end. 22281 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22282 22283 # Check if we try to supply an empty value 22284 if test "x$OTOOL" = x; then 22285 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 22286 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 22287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 22288 $as_echo_n "checking for OTOOL... " >&6; } 22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22290 $as_echo "disabled" >&6; } 22291 else 22292 # Check if the provided tool contains a complete path. 22293 tool_specified="$OTOOL" 22294 tool_basename="${tool_specified##*/}" 22295 if test "x$tool_basename" = "x$tool_specified"; then 22296 # A command without a complete path is provided, search $PATH. 22297 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 22298 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 22299 # Extract the first word of "$tool_basename", so it can be a program name with args. 22300 set dummy $tool_basename; ac_word=$2 22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22302 $as_echo_n "checking for $ac_word... " >&6; } 22303 if ${ac_cv_path_OTOOL+:} false; then : 22304 $as_echo_n "(cached) " >&6 22305 else 22306 case $OTOOL in 22307 [\\/]* | ?:[\\/]*) 22308 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 22309 ;; 22310 *) 22311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22312 for as_dir in $PATH 22313 do 22314 IFS=$as_save_IFS 22315 test -z "$as_dir" && as_dir=. 22316 for ac_exec_ext in '' $ac_executable_extensions; do 22317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22318 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22320 break 2 22321 fi 22322 done 22323 done 22324 IFS=$as_save_IFS 22325 22326 ;; 22327 esac 22328 fi 22329 OTOOL=$ac_cv_path_OTOOL 22330 if test -n "$OTOOL"; then 22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22332 $as_echo "$OTOOL" >&6; } 22333 else 22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22335 $as_echo "no" >&6; } 22336 fi 22337 22338 22339 if test "x$OTOOL" = x; then 22340 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22341 fi 22342 else 22343 # Otherwise we believe it is a complete path. Use it as it is. 22344 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 22345 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 22346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 22347 $as_echo_n "checking for OTOOL... " >&6; } 22348 if test ! -x "$tool_specified"; then 22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22350 $as_echo "not found" >&6; } 22351 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 22352 fi 22353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22354 $as_echo "$tool_specified" >&6; } 22355 fi 22356 fi 22357 fi 22358 22359 fi 22360 22361 22362 if test "x$OTOOL" = "x"; then 22363 OTOOL="true" 22364 fi 22365 22366 22367 # Publish this variable in the help. 22368 22369 22370 if [ -z "${READELF+x}" ]; then 22371 # The variable is not set by user, try to locate tool using the code snippet 22372 for ac_prog in greadelf readelf 22373 do 22374 # Extract the first word of "$ac_prog", so it can be a program name with args. 22375 set dummy $ac_prog; ac_word=$2 22376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22377 $as_echo_n "checking for $ac_word... " >&6; } 22378 if ${ac_cv_path_READELF+:} false; then : 22379 $as_echo_n "(cached) " >&6 22380 else 22381 case $READELF in 22382 [\\/]* | ?:[\\/]*) 22383 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22384 ;; 22385 *) 22386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22387 for as_dir in $PATH 22388 do 22389 IFS=$as_save_IFS 22390 test -z "$as_dir" && as_dir=. 22391 for ac_exec_ext in '' $ac_executable_extensions; do 22392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22393 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22395 break 2 22396 fi 22397 done 22398 done 22399 IFS=$as_save_IFS 22400 22401 ;; 22402 esac 22403 fi 22404 READELF=$ac_cv_path_READELF 22405 if test -n "$READELF"; then 22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22407 $as_echo "$READELF" >&6; } 22408 else 22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22410 $as_echo "no" >&6; } 22411 fi 22412 22413 22414 test -n "$READELF" && break 22415 done 22416 22417 else 22418 # The variable is set, but is it from the command line or the environment? 22419 22420 # Try to remove the string !READELF! from our list. 22421 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22422 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22423 # If it failed, the variable was not from the command line. Ignore it, 22424 # but warn the user (except for BASH, which is always set by the calling BASH). 22425 if test "xREADELF" != xBASH; then 22426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22427 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22428 fi 22429 # Try to locate tool using the code snippet 22430 for ac_prog in greadelf readelf 22431 do 22432 # Extract the first word of "$ac_prog", so it can be a program name with args. 22433 set dummy $ac_prog; ac_word=$2 22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22435 $as_echo_n "checking for $ac_word... " >&6; } 22436 if ${ac_cv_path_READELF+:} false; then : 22437 $as_echo_n "(cached) " >&6 22438 else 22439 case $READELF in 22440 [\\/]* | ?:[\\/]*) 22441 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22442 ;; 22443 *) 22444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22445 for as_dir in $PATH 22446 do 22447 IFS=$as_save_IFS 22448 test -z "$as_dir" && as_dir=. 22449 for ac_exec_ext in '' $ac_executable_extensions; do 22450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22451 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22453 break 2 22454 fi 22455 done 22456 done 22457 IFS=$as_save_IFS 22458 22459 ;; 22460 esac 22461 fi 22462 READELF=$ac_cv_path_READELF 22463 if test -n "$READELF"; then 22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22465 $as_echo "$READELF" >&6; } 22466 else 22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22468 $as_echo "no" >&6; } 22469 fi 22470 22471 22472 test -n "$READELF" && break 22473 done 22474 22475 else 22476 # If it succeeded, then it was overridden by the user. We will use it 22477 # for the tool. 22478 22479 # First remove it from the list of overridden variables, so we can test 22480 # for unknown variables in the end. 22481 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22482 22483 # Check if we try to supply an empty value 22484 if test "x$READELF" = x; then 22485 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22486 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22488 $as_echo_n "checking for READELF... " >&6; } 22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22490 $as_echo "disabled" >&6; } 22491 else 22492 # Check if the provided tool contains a complete path. 22493 tool_specified="$READELF" 22494 tool_basename="${tool_specified##*/}" 22495 if test "x$tool_basename" = "x$tool_specified"; then 22496 # A command without a complete path is provided, search $PATH. 22497 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22498 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22499 # Extract the first word of "$tool_basename", so it can be a program name with args. 22500 set dummy $tool_basename; ac_word=$2 22501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22502 $as_echo_n "checking for $ac_word... " >&6; } 22503 if ${ac_cv_path_READELF+:} false; then : 22504 $as_echo_n "(cached) " >&6 22505 else 22506 case $READELF in 22507 [\\/]* | ?:[\\/]*) 22508 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22509 ;; 22510 *) 22511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22512 for as_dir in $PATH 22513 do 22514 IFS=$as_save_IFS 22515 test -z "$as_dir" && as_dir=. 22516 for ac_exec_ext in '' $ac_executable_extensions; do 22517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22518 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22520 break 2 22521 fi 22522 done 22523 done 22524 IFS=$as_save_IFS 22525 22526 ;; 22527 esac 22528 fi 22529 READELF=$ac_cv_path_READELF 22530 if test -n "$READELF"; then 22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22532 $as_echo "$READELF" >&6; } 22533 else 22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22535 $as_echo "no" >&6; } 22536 fi 22537 22538 22539 if test "x$READELF" = x; then 22540 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22541 fi 22542 else 22543 # Otherwise we believe it is a complete path. Use it as it is. 22544 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22545 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22547 $as_echo_n "checking for READELF... " >&6; } 22548 if test ! -x "$tool_specified"; then 22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22550 $as_echo "not found" >&6; } 22551 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22552 fi 22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22554 $as_echo "$tool_specified" >&6; } 22555 fi 22556 fi 22557 fi 22558 22559 fi 22560 22561 22562 22563 22564 # Publish this variable in the help. 22565 22566 22567 if [ -z "${DOT+x}" ]; then 22568 # The variable is not set by user, try to locate tool using the code snippet 22569 for ac_prog in dot 22570 do 22571 # Extract the first word of "$ac_prog", so it can be a program name with args. 22572 set dummy $ac_prog; ac_word=$2 22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22574 $as_echo_n "checking for $ac_word... " >&6; } 22575 if ${ac_cv_path_DOT+:} false; then : 22576 $as_echo_n "(cached) " >&6 22577 else 22578 case $DOT in 22579 [\\/]* | ?:[\\/]*) 22580 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22581 ;; 22582 *) 22583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22584 for as_dir in $PATH 22585 do 22586 IFS=$as_save_IFS 22587 test -z "$as_dir" && as_dir=. 22588 for ac_exec_ext in '' $ac_executable_extensions; do 22589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22590 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22592 break 2 22593 fi 22594 done 22595 done 22596 IFS=$as_save_IFS 22597 22598 ;; 22599 esac 22600 fi 22601 DOT=$ac_cv_path_DOT 22602 if test -n "$DOT"; then 22603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22604 $as_echo "$DOT" >&6; } 22605 else 22606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22607 $as_echo "no" >&6; } 22608 fi 22609 22610 22611 test -n "$DOT" && break 22612 done 22613 22614 else 22615 # The variable is set, but is it from the command line or the environment? 22616 22617 # Try to remove the string !DOT! from our list. 22618 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/} 22619 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22620 # If it failed, the variable was not from the command line. Ignore it, 22621 # but warn the user (except for BASH, which is always set by the calling BASH). 22622 if test "xDOT" != xBASH; then 22623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5 22624 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;} 22625 fi 22626 # Try to locate tool using the code snippet 22627 for ac_prog in dot 22628 do 22629 # Extract the first word of "$ac_prog", so it can be a program name with args. 22630 set dummy $ac_prog; ac_word=$2 22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22632 $as_echo_n "checking for $ac_word... " >&6; } 22633 if ${ac_cv_path_DOT+:} false; then : 22634 $as_echo_n "(cached) " >&6 22635 else 22636 case $DOT in 22637 [\\/]* | ?:[\\/]*) 22638 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22639 ;; 22640 *) 22641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22642 for as_dir in $PATH 22643 do 22644 IFS=$as_save_IFS 22645 test -z "$as_dir" && as_dir=. 22646 for ac_exec_ext in '' $ac_executable_extensions; do 22647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22648 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22650 break 2 22651 fi 22652 done 22653 done 22654 IFS=$as_save_IFS 22655 22656 ;; 22657 esac 22658 fi 22659 DOT=$ac_cv_path_DOT 22660 if test -n "$DOT"; then 22661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22662 $as_echo "$DOT" >&6; } 22663 else 22664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22665 $as_echo "no" >&6; } 22666 fi 22667 22668 22669 test -n "$DOT" && break 22670 done 22671 22672 else 22673 # If it succeeded, then it was overridden by the user. We will use it 22674 # for the tool. 22675 22676 # First remove it from the list of overridden variables, so we can test 22677 # for unknown variables in the end. 22678 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22679 22680 # Check if we try to supply an empty value 22681 if test "x$DOT" = x; then 22682 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5 22683 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;} 22684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22685 $as_echo_n "checking for DOT... " >&6; } 22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22687 $as_echo "disabled" >&6; } 22688 else 22689 # Check if the provided tool contains a complete path. 22690 tool_specified="$DOT" 22691 tool_basename="${tool_specified##*/}" 22692 if test "x$tool_basename" = "x$tool_specified"; then 22693 # A command without a complete path is provided, search $PATH. 22694 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5 22695 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;} 22696 # Extract the first word of "$tool_basename", so it can be a program name with args. 22697 set dummy $tool_basename; ac_word=$2 22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22699 $as_echo_n "checking for $ac_word... " >&6; } 22700 if ${ac_cv_path_DOT+:} false; then : 22701 $as_echo_n "(cached) " >&6 22702 else 22703 case $DOT in 22704 [\\/]* | ?:[\\/]*) 22705 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22706 ;; 22707 *) 22708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22709 for as_dir in $PATH 22710 do 22711 IFS=$as_save_IFS 22712 test -z "$as_dir" && as_dir=. 22713 for ac_exec_ext in '' $ac_executable_extensions; do 22714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22715 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22717 break 2 22718 fi 22719 done 22720 done 22721 IFS=$as_save_IFS 22722 22723 ;; 22724 esac 22725 fi 22726 DOT=$ac_cv_path_DOT 22727 if test -n "$DOT"; then 22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22729 $as_echo "$DOT" >&6; } 22730 else 22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22732 $as_echo "no" >&6; } 22733 fi 22734 22735 22736 if test "x$DOT" = x; then 22737 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22738 fi 22739 else 22740 # Otherwise we believe it is a complete path. Use it as it is. 22741 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5 22742 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;} 22743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22744 $as_echo_n "checking for DOT... " >&6; } 22745 if test ! -x "$tool_specified"; then 22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22747 $as_echo "not found" >&6; } 22748 as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5 22749 fi 22750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22751 $as_echo "$tool_specified" >&6; } 22752 fi 22753 fi 22754 fi 22755 22756 fi 22757 22758 22759 22760 22761 # Publish this variable in the help. 22762 22763 22764 if [ -z "${HG+x}" ]; then 22765 # The variable is not set by user, try to locate tool using the code snippet 22766 for ac_prog in hg 22767 do 22768 # Extract the first word of "$ac_prog", so it can be a program name with args. 22769 set dummy $ac_prog; ac_word=$2 22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22771 $as_echo_n "checking for $ac_word... " >&6; } 22772 if ${ac_cv_path_HG+:} false; then : 22773 $as_echo_n "(cached) " >&6 22774 else 22775 case $HG in 22776 [\\/]* | ?:[\\/]*) 22777 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22778 ;; 22779 *) 22780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22781 for as_dir in $PATH 22782 do 22783 IFS=$as_save_IFS 22784 test -z "$as_dir" && as_dir=. 22785 for ac_exec_ext in '' $ac_executable_extensions; do 22786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22787 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22789 break 2 22790 fi 22791 done 22792 done 22793 IFS=$as_save_IFS 22794 22795 ;; 22796 esac 22797 fi 22798 HG=$ac_cv_path_HG 22799 if test -n "$HG"; then 22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22801 $as_echo "$HG" >&6; } 22802 else 22803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22804 $as_echo "no" >&6; } 22805 fi 22806 22807 22808 test -n "$HG" && break 22809 done 22810 22811 else 22812 # The variable is set, but is it from the command line or the environment? 22813 22814 # Try to remove the string !HG! from our list. 22815 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22816 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22817 # If it failed, the variable was not from the command line. Ignore it, 22818 # but warn the user (except for BASH, which is always set by the calling BASH). 22819 if test "xHG" != xBASH; then 22820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22821 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22822 fi 22823 # Try to locate tool using the code snippet 22824 for ac_prog in hg 22825 do 22826 # Extract the first word of "$ac_prog", so it can be a program name with args. 22827 set dummy $ac_prog; ac_word=$2 22828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22829 $as_echo_n "checking for $ac_word... " >&6; } 22830 if ${ac_cv_path_HG+:} false; then : 22831 $as_echo_n "(cached) " >&6 22832 else 22833 case $HG in 22834 [\\/]* | ?:[\\/]*) 22835 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22836 ;; 22837 *) 22838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22839 for as_dir in $PATH 22840 do 22841 IFS=$as_save_IFS 22842 test -z "$as_dir" && as_dir=. 22843 for ac_exec_ext in '' $ac_executable_extensions; do 22844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22845 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22847 break 2 22848 fi 22849 done 22850 done 22851 IFS=$as_save_IFS 22852 22853 ;; 22854 esac 22855 fi 22856 HG=$ac_cv_path_HG 22857 if test -n "$HG"; then 22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22859 $as_echo "$HG" >&6; } 22860 else 22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22862 $as_echo "no" >&6; } 22863 fi 22864 22865 22866 test -n "$HG" && break 22867 done 22868 22869 else 22870 # If it succeeded, then it was overridden by the user. We will use it 22871 # for the tool. 22872 22873 # First remove it from the list of overridden variables, so we can test 22874 # for unknown variables in the end. 22875 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22876 22877 # Check if we try to supply an empty value 22878 if test "x$HG" = x; then 22879 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22880 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22882 $as_echo_n "checking for HG... " >&6; } 22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22884 $as_echo "disabled" >&6; } 22885 else 22886 # Check if the provided tool contains a complete path. 22887 tool_specified="$HG" 22888 tool_basename="${tool_specified##*/}" 22889 if test "x$tool_basename" = "x$tool_specified"; then 22890 # A command without a complete path is provided, search $PATH. 22891 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22892 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22893 # Extract the first word of "$tool_basename", so it can be a program name with args. 22894 set dummy $tool_basename; ac_word=$2 22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22896 $as_echo_n "checking for $ac_word... " >&6; } 22897 if ${ac_cv_path_HG+:} false; then : 22898 $as_echo_n "(cached) " >&6 22899 else 22900 case $HG in 22901 [\\/]* | ?:[\\/]*) 22902 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22903 ;; 22904 *) 22905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22906 for as_dir in $PATH 22907 do 22908 IFS=$as_save_IFS 22909 test -z "$as_dir" && as_dir=. 22910 for ac_exec_ext in '' $ac_executable_extensions; do 22911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22912 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22914 break 2 22915 fi 22916 done 22917 done 22918 IFS=$as_save_IFS 22919 22920 ;; 22921 esac 22922 fi 22923 HG=$ac_cv_path_HG 22924 if test -n "$HG"; then 22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22926 $as_echo "$HG" >&6; } 22927 else 22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22929 $as_echo "no" >&6; } 22930 fi 22931 22932 22933 if test "x$HG" = x; then 22934 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22935 fi 22936 else 22937 # Otherwise we believe it is a complete path. Use it as it is. 22938 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22939 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22941 $as_echo_n "checking for HG... " >&6; } 22942 if test ! -x "$tool_specified"; then 22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22944 $as_echo "not found" >&6; } 22945 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22946 fi 22947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22948 $as_echo "$tool_specified" >&6; } 22949 fi 22950 fi 22951 fi 22952 22953 fi 22954 22955 22956 22957 22958 # Publish this variable in the help. 22959 22960 22961 if [ -z "${STAT+x}" ]; then 22962 # The variable is not set by user, try to locate tool using the code snippet 22963 for ac_prog in stat 22964 do 22965 # Extract the first word of "$ac_prog", so it can be a program name with args. 22966 set dummy $ac_prog; ac_word=$2 22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22968 $as_echo_n "checking for $ac_word... " >&6; } 22969 if ${ac_cv_path_STAT+:} false; then : 22970 $as_echo_n "(cached) " >&6 22971 else 22972 case $STAT in 22973 [\\/]* | ?:[\\/]*) 22974 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22975 ;; 22976 *) 22977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22978 for as_dir in $PATH 22979 do 22980 IFS=$as_save_IFS 22981 test -z "$as_dir" && as_dir=. 22982 for ac_exec_ext in '' $ac_executable_extensions; do 22983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22984 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22986 break 2 22987 fi 22988 done 22989 done 22990 IFS=$as_save_IFS 22991 22992 ;; 22993 esac 22994 fi 22995 STAT=$ac_cv_path_STAT 22996 if test -n "$STAT"; then 22997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22998 $as_echo "$STAT" >&6; } 22999 else 23000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23001 $as_echo "no" >&6; } 23002 fi 23003 23004 23005 test -n "$STAT" && break 23006 done 23007 23008 else 23009 # The variable is set, but is it from the command line or the environment? 23010 23011 # Try to remove the string !STAT! from our list. 23012 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 23013 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23014 # If it failed, the variable was not from the command line. Ignore it, 23015 # but warn the user (except for BASH, which is always set by the calling BASH). 23016 if test "xSTAT" != xBASH; then 23017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 23018 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 23019 fi 23020 # Try to locate tool using the code snippet 23021 for ac_prog in stat 23022 do 23023 # Extract the first word of "$ac_prog", so it can be a program name with args. 23024 set dummy $ac_prog; ac_word=$2 23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23026 $as_echo_n "checking for $ac_word... " >&6; } 23027 if ${ac_cv_path_STAT+:} false; then : 23028 $as_echo_n "(cached) " >&6 23029 else 23030 case $STAT in 23031 [\\/]* | ?:[\\/]*) 23032 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 23033 ;; 23034 *) 23035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23036 for as_dir in $PATH 23037 do 23038 IFS=$as_save_IFS 23039 test -z "$as_dir" && as_dir=. 23040 for ac_exec_ext in '' $ac_executable_extensions; do 23041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23042 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 23043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23044 break 2 23045 fi 23046 done 23047 done 23048 IFS=$as_save_IFS 23049 23050 ;; 23051 esac 23052 fi 23053 STAT=$ac_cv_path_STAT 23054 if test -n "$STAT"; then 23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 23056 $as_echo "$STAT" >&6; } 23057 else 23058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23059 $as_echo "no" >&6; } 23060 fi 23061 23062 23063 test -n "$STAT" && break 23064 done 23065 23066 else 23067 # If it succeeded, then it was overridden by the user. We will use it 23068 # for the tool. 23069 23070 # First remove it from the list of overridden variables, so we can test 23071 # for unknown variables in the end. 23072 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23073 23074 # Check if we try to supply an empty value 23075 if test "x$STAT" = x; then 23076 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 23077 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 23078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 23079 $as_echo_n "checking for STAT... " >&6; } 23080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23081 $as_echo "disabled" >&6; } 23082 else 23083 # Check if the provided tool contains a complete path. 23084 tool_specified="$STAT" 23085 tool_basename="${tool_specified##*/}" 23086 if test "x$tool_basename" = "x$tool_specified"; then 23087 # A command without a complete path is provided, search $PATH. 23088 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 23089 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 23090 # Extract the first word of "$tool_basename", so it can be a program name with args. 23091 set dummy $tool_basename; ac_word=$2 23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23093 $as_echo_n "checking for $ac_word... " >&6; } 23094 if ${ac_cv_path_STAT+:} false; then : 23095 $as_echo_n "(cached) " >&6 23096 else 23097 case $STAT in 23098 [\\/]* | ?:[\\/]*) 23099 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 23100 ;; 23101 *) 23102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23103 for as_dir in $PATH 23104 do 23105 IFS=$as_save_IFS 23106 test -z "$as_dir" && as_dir=. 23107 for ac_exec_ext in '' $ac_executable_extensions; do 23108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23109 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 23110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23111 break 2 23112 fi 23113 done 23114 done 23115 IFS=$as_save_IFS 23116 23117 ;; 23118 esac 23119 fi 23120 STAT=$ac_cv_path_STAT 23121 if test -n "$STAT"; then 23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 23123 $as_echo "$STAT" >&6; } 23124 else 23125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23126 $as_echo "no" >&6; } 23127 fi 23128 23129 23130 if test "x$STAT" = x; then 23131 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23132 fi 23133 else 23134 # Otherwise we believe it is a complete path. Use it as it is. 23135 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 23136 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 23138 $as_echo_n "checking for STAT... " >&6; } 23139 if test ! -x "$tool_specified"; then 23140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23141 $as_echo "not found" >&6; } 23142 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 23143 fi 23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23145 $as_echo "$tool_specified" >&6; } 23146 fi 23147 fi 23148 fi 23149 23150 fi 23151 23152 23153 23154 23155 # Publish this variable in the help. 23156 23157 23158 if [ -z "${TIME+x}" ]; then 23159 # The variable is not set by user, try to locate tool using the code snippet 23160 for ac_prog in time 23161 do 23162 # Extract the first word of "$ac_prog", so it can be a program name with args. 23163 set dummy $ac_prog; ac_word=$2 23164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23165 $as_echo_n "checking for $ac_word... " >&6; } 23166 if ${ac_cv_path_TIME+:} false; then : 23167 $as_echo_n "(cached) " >&6 23168 else 23169 case $TIME in 23170 [\\/]* | ?:[\\/]*) 23171 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23172 ;; 23173 *) 23174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23175 for as_dir in $PATH 23176 do 23177 IFS=$as_save_IFS 23178 test -z "$as_dir" && as_dir=. 23179 for ac_exec_ext in '' $ac_executable_extensions; do 23180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23181 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23183 break 2 23184 fi 23185 done 23186 done 23187 IFS=$as_save_IFS 23188 23189 ;; 23190 esac 23191 fi 23192 TIME=$ac_cv_path_TIME 23193 if test -n "$TIME"; then 23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23195 $as_echo "$TIME" >&6; } 23196 else 23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23198 $as_echo "no" >&6; } 23199 fi 23200 23201 23202 test -n "$TIME" && break 23203 done 23204 23205 else 23206 # The variable is set, but is it from the command line or the environment? 23207 23208 # Try to remove the string !TIME! from our list. 23209 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 23210 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23211 # If it failed, the variable was not from the command line. Ignore it, 23212 # but warn the user (except for BASH, which is always set by the calling BASH). 23213 if test "xTIME" != xBASH; then 23214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 23215 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 23216 fi 23217 # Try to locate tool using the code snippet 23218 for ac_prog in time 23219 do 23220 # Extract the first word of "$ac_prog", so it can be a program name with args. 23221 set dummy $ac_prog; ac_word=$2 23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23223 $as_echo_n "checking for $ac_word... " >&6; } 23224 if ${ac_cv_path_TIME+:} false; then : 23225 $as_echo_n "(cached) " >&6 23226 else 23227 case $TIME in 23228 [\\/]* | ?:[\\/]*) 23229 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23230 ;; 23231 *) 23232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23233 for as_dir in $PATH 23234 do 23235 IFS=$as_save_IFS 23236 test -z "$as_dir" && as_dir=. 23237 for ac_exec_ext in '' $ac_executable_extensions; do 23238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23239 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23241 break 2 23242 fi 23243 done 23244 done 23245 IFS=$as_save_IFS 23246 23247 ;; 23248 esac 23249 fi 23250 TIME=$ac_cv_path_TIME 23251 if test -n "$TIME"; then 23252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23253 $as_echo "$TIME" >&6; } 23254 else 23255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23256 $as_echo "no" >&6; } 23257 fi 23258 23259 23260 test -n "$TIME" && break 23261 done 23262 23263 else 23264 # If it succeeded, then it was overridden by the user. We will use it 23265 # for the tool. 23266 23267 # First remove it from the list of overridden variables, so we can test 23268 # for unknown variables in the end. 23269 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23270 23271 # Check if we try to supply an empty value 23272 if test "x$TIME" = x; then 23273 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 23274 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 23275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23276 $as_echo_n "checking for TIME... " >&6; } 23277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23278 $as_echo "disabled" >&6; } 23279 else 23280 # Check if the provided tool contains a complete path. 23281 tool_specified="$TIME" 23282 tool_basename="${tool_specified##*/}" 23283 if test "x$tool_basename" = "x$tool_specified"; then 23284 # A command without a complete path is provided, search $PATH. 23285 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 23286 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 23287 # Extract the first word of "$tool_basename", so it can be a program name with args. 23288 set dummy $tool_basename; ac_word=$2 23289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23290 $as_echo_n "checking for $ac_word... " >&6; } 23291 if ${ac_cv_path_TIME+:} false; then : 23292 $as_echo_n "(cached) " >&6 23293 else 23294 case $TIME in 23295 [\\/]* | ?:[\\/]*) 23296 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23297 ;; 23298 *) 23299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23300 for as_dir in $PATH 23301 do 23302 IFS=$as_save_IFS 23303 test -z "$as_dir" && as_dir=. 23304 for ac_exec_ext in '' $ac_executable_extensions; do 23305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23306 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23308 break 2 23309 fi 23310 done 23311 done 23312 IFS=$as_save_IFS 23313 23314 ;; 23315 esac 23316 fi 23317 TIME=$ac_cv_path_TIME 23318 if test -n "$TIME"; then 23319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23320 $as_echo "$TIME" >&6; } 23321 else 23322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23323 $as_echo "no" >&6; } 23324 fi 23325 23326 23327 if test "x$TIME" = x; then 23328 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23329 fi 23330 else 23331 # Otherwise we believe it is a complete path. Use it as it is. 23332 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 23333 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 23334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23335 $as_echo_n "checking for TIME... " >&6; } 23336 if test ! -x "$tool_specified"; then 23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23338 $as_echo "not found" >&6; } 23339 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 23340 fi 23341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23342 $as_echo "$tool_specified" >&6; } 23343 fi 23344 fi 23345 fi 23346 23347 fi 23348 23349 23350 23351 23352 # Publish this variable in the help. 23353 23354 23355 if [ -z "${FLOCK+x}" ]; then 23356 # The variable is not set by user, try to locate tool using the code snippet 23357 for ac_prog in flock 23358 do 23359 # Extract the first word of "$ac_prog", so it can be a program name with args. 23360 set dummy $ac_prog; ac_word=$2 23361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23362 $as_echo_n "checking for $ac_word... " >&6; } 23363 if ${ac_cv_path_FLOCK+:} false; then : 23364 $as_echo_n "(cached) " >&6 23365 else 23366 case $FLOCK in 23367 [\\/]* | ?:[\\/]*) 23368 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23369 ;; 23370 *) 23371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23372 for as_dir in $PATH 23373 do 23374 IFS=$as_save_IFS 23375 test -z "$as_dir" && as_dir=. 23376 for ac_exec_ext in '' $ac_executable_extensions; do 23377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23378 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23380 break 2 23381 fi 23382 done 23383 done 23384 IFS=$as_save_IFS 23385 23386 ;; 23387 esac 23388 fi 23389 FLOCK=$ac_cv_path_FLOCK 23390 if test -n "$FLOCK"; then 23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23392 $as_echo "$FLOCK" >&6; } 23393 else 23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23395 $as_echo "no" >&6; } 23396 fi 23397 23398 23399 test -n "$FLOCK" && break 23400 done 23401 23402 else 23403 # The variable is set, but is it from the command line or the environment? 23404 23405 # Try to remove the string !FLOCK! from our list. 23406 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/} 23407 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23408 # If it failed, the variable was not from the command line. Ignore it, 23409 # but warn the user (except for BASH, which is always set by the calling BASH). 23410 if test "xFLOCK" != xBASH; then 23411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5 23412 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;} 23413 fi 23414 # Try to locate tool using the code snippet 23415 for ac_prog in flock 23416 do 23417 # Extract the first word of "$ac_prog", so it can be a program name with args. 23418 set dummy $ac_prog; ac_word=$2 23419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23420 $as_echo_n "checking for $ac_word... " >&6; } 23421 if ${ac_cv_path_FLOCK+:} false; then : 23422 $as_echo_n "(cached) " >&6 23423 else 23424 case $FLOCK in 23425 [\\/]* | ?:[\\/]*) 23426 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23427 ;; 23428 *) 23429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23430 for as_dir in $PATH 23431 do 23432 IFS=$as_save_IFS 23433 test -z "$as_dir" && as_dir=. 23434 for ac_exec_ext in '' $ac_executable_extensions; do 23435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23436 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23438 break 2 23439 fi 23440 done 23441 done 23442 IFS=$as_save_IFS 23443 23444 ;; 23445 esac 23446 fi 23447 FLOCK=$ac_cv_path_FLOCK 23448 if test -n "$FLOCK"; then 23449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23450 $as_echo "$FLOCK" >&6; } 23451 else 23452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23453 $as_echo "no" >&6; } 23454 fi 23455 23456 23457 test -n "$FLOCK" && break 23458 done 23459 23460 else 23461 # If it succeeded, then it was overridden by the user. We will use it 23462 # for the tool. 23463 23464 # First remove it from the list of overridden variables, so we can test 23465 # for unknown variables in the end. 23466 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23467 23468 # Check if we try to supply an empty value 23469 if test "x$FLOCK" = x; then 23470 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5 23471 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;} 23472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23473 $as_echo_n "checking for FLOCK... " >&6; } 23474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23475 $as_echo "disabled" >&6; } 23476 else 23477 # Check if the provided tool contains a complete path. 23478 tool_specified="$FLOCK" 23479 tool_basename="${tool_specified##*/}" 23480 if test "x$tool_basename" = "x$tool_specified"; then 23481 # A command without a complete path is provided, search $PATH. 23482 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5 23483 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;} 23484 # Extract the first word of "$tool_basename", so it can be a program name with args. 23485 set dummy $tool_basename; ac_word=$2 23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23487 $as_echo_n "checking for $ac_word... " >&6; } 23488 if ${ac_cv_path_FLOCK+:} false; then : 23489 $as_echo_n "(cached) " >&6 23490 else 23491 case $FLOCK in 23492 [\\/]* | ?:[\\/]*) 23493 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23494 ;; 23495 *) 23496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23497 for as_dir in $PATH 23498 do 23499 IFS=$as_save_IFS 23500 test -z "$as_dir" && as_dir=. 23501 for ac_exec_ext in '' $ac_executable_extensions; do 23502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23503 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23505 break 2 23506 fi 23507 done 23508 done 23509 IFS=$as_save_IFS 23510 23511 ;; 23512 esac 23513 fi 23514 FLOCK=$ac_cv_path_FLOCK 23515 if test -n "$FLOCK"; then 23516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23517 $as_echo "$FLOCK" >&6; } 23518 else 23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23520 $as_echo "no" >&6; } 23521 fi 23522 23523 23524 if test "x$FLOCK" = x; then 23525 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23526 fi 23527 else 23528 # Otherwise we believe it is a complete path. Use it as it is. 23529 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5 23530 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;} 23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23532 $as_echo_n "checking for FLOCK... " >&6; } 23533 if test ! -x "$tool_specified"; then 23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23535 $as_echo "not found" >&6; } 23536 as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5 23537 fi 23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23539 $as_echo "$tool_specified" >&6; } 23540 fi 23541 fi 23542 fi 23543 23544 fi 23545 23546 23547 # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not 23548 # be in the user path. 23549 23550 23551 # Publish this variable in the help. 23552 23553 23554 if [ -z "${DTRACE+x}" ]; then 23555 # The variable is not set by user, try to locate tool using the code snippet 23556 for ac_prog in dtrace 23557 do 23558 # Extract the first word of "$ac_prog", so it can be a program name with args. 23559 set dummy $ac_prog; ac_word=$2 23560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23561 $as_echo_n "checking for $ac_word... " >&6; } 23562 if ${ac_cv_path_DTRACE+:} false; then : 23563 $as_echo_n "(cached) " >&6 23564 else 23565 case $DTRACE in 23566 [\\/]* | ?:[\\/]*) 23567 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23568 ;; 23569 *) 23570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23571 as_dummy="$PATH:/usr/sbin" 23572 for as_dir in $as_dummy 23573 do 23574 IFS=$as_save_IFS 23575 test -z "$as_dir" && as_dir=. 23576 for ac_exec_ext in '' $ac_executable_extensions; do 23577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23578 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23580 break 2 23581 fi 23582 done 23583 done 23584 IFS=$as_save_IFS 23585 23586 ;; 23587 esac 23588 fi 23589 DTRACE=$ac_cv_path_DTRACE 23590 if test -n "$DTRACE"; then 23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23592 $as_echo "$DTRACE" >&6; } 23593 else 23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23595 $as_echo "no" >&6; } 23596 fi 23597 23598 23599 test -n "$DTRACE" && break 23600 done 23601 23602 else 23603 # The variable is set, but is it from the command line or the environment? 23604 23605 # Try to remove the string !DTRACE! from our list. 23606 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 23607 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23608 # If it failed, the variable was not from the command line. Ignore it, 23609 # but warn the user (except for BASH, which is always set by the calling BASH). 23610 if test "xDTRACE" != xBASH; then 23611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 23612 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 23613 fi 23614 # Try to locate tool using the code snippet 23615 for ac_prog in dtrace 23616 do 23617 # Extract the first word of "$ac_prog", so it can be a program name with args. 23618 set dummy $ac_prog; ac_word=$2 23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23620 $as_echo_n "checking for $ac_word... " >&6; } 23621 if ${ac_cv_path_DTRACE+:} false; then : 23622 $as_echo_n "(cached) " >&6 23623 else 23624 case $DTRACE in 23625 [\\/]* | ?:[\\/]*) 23626 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23627 ;; 23628 *) 23629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23630 as_dummy="$PATH:/usr/sbin" 23631 for as_dir in $as_dummy 23632 do 23633 IFS=$as_save_IFS 23634 test -z "$as_dir" && as_dir=. 23635 for ac_exec_ext in '' $ac_executable_extensions; do 23636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23637 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23639 break 2 23640 fi 23641 done 23642 done 23643 IFS=$as_save_IFS 23644 23645 ;; 23646 esac 23647 fi 23648 DTRACE=$ac_cv_path_DTRACE 23649 if test -n "$DTRACE"; then 23650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23651 $as_echo "$DTRACE" >&6; } 23652 else 23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23654 $as_echo "no" >&6; } 23655 fi 23656 23657 23658 test -n "$DTRACE" && break 23659 done 23660 23661 else 23662 # If it succeeded, then it was overridden by the user. We will use it 23663 # for the tool. 23664 23665 # First remove it from the list of overridden variables, so we can test 23666 # for unknown variables in the end. 23667 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23668 23669 # Check if we try to supply an empty value 23670 if test "x$DTRACE" = x; then 23671 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 23672 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23674 $as_echo_n "checking for DTRACE... " >&6; } 23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23676 $as_echo "disabled" >&6; } 23677 else 23678 # Check if the provided tool contains a complete path. 23679 tool_specified="$DTRACE" 23680 tool_basename="${tool_specified##*/}" 23681 if test "x$tool_basename" = "x$tool_specified"; then 23682 # A command without a complete path is provided, search $PATH. 23683 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 23684 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 23685 # Extract the first word of "$tool_basename", so it can be a program name with args. 23686 set dummy $tool_basename; ac_word=$2 23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23688 $as_echo_n "checking for $ac_word... " >&6; } 23689 if ${ac_cv_path_DTRACE+:} false; then : 23690 $as_echo_n "(cached) " >&6 23691 else 23692 case $DTRACE in 23693 [\\/]* | ?:[\\/]*) 23694 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23695 ;; 23696 *) 23697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23698 for as_dir in $PATH 23699 do 23700 IFS=$as_save_IFS 23701 test -z "$as_dir" && as_dir=. 23702 for ac_exec_ext in '' $ac_executable_extensions; do 23703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23704 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23706 break 2 23707 fi 23708 done 23709 done 23710 IFS=$as_save_IFS 23711 23712 ;; 23713 esac 23714 fi 23715 DTRACE=$ac_cv_path_DTRACE 23716 if test -n "$DTRACE"; then 23717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23718 $as_echo "$DTRACE" >&6; } 23719 else 23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23721 $as_echo "no" >&6; } 23722 fi 23723 23724 23725 if test "x$DTRACE" = x; then 23726 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23727 fi 23728 else 23729 # Otherwise we believe it is a complete path. Use it as it is. 23730 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 23731 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 23732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23733 $as_echo_n "checking for DTRACE... " >&6; } 23734 if test ! -x "$tool_specified"; then 23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23736 $as_echo "not found" >&6; } 23737 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 23738 fi 23739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23740 $as_echo "$tool_specified" >&6; } 23741 fi 23742 fi 23743 fi 23744 23745 fi 23746 23747 23748 23749 23750 # Publish this variable in the help. 23751 23752 23753 if [ -z "${PATCH+x}" ]; then 23754 # The variable is not set by user, try to locate tool using the code snippet 23755 for ac_prog in gpatch patch 23756 do 23757 # Extract the first word of "$ac_prog", so it can be a program name with args. 23758 set dummy $ac_prog; ac_word=$2 23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23760 $as_echo_n "checking for $ac_word... " >&6; } 23761 if ${ac_cv_path_PATCH+:} false; then : 23762 $as_echo_n "(cached) " >&6 23763 else 23764 case $PATCH in 23765 [\\/]* | ?:[\\/]*) 23766 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23767 ;; 23768 *) 23769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23770 for as_dir in $PATH 23771 do 23772 IFS=$as_save_IFS 23773 test -z "$as_dir" && as_dir=. 23774 for ac_exec_ext in '' $ac_executable_extensions; do 23775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23776 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23778 break 2 23779 fi 23780 done 23781 done 23782 IFS=$as_save_IFS 23783 23784 ;; 23785 esac 23786 fi 23787 PATCH=$ac_cv_path_PATCH 23788 if test -n "$PATCH"; then 23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23790 $as_echo "$PATCH" >&6; } 23791 else 23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23793 $as_echo "no" >&6; } 23794 fi 23795 23796 23797 test -n "$PATCH" && break 23798 done 23799 23800 else 23801 # The variable is set, but is it from the command line or the environment? 23802 23803 # Try to remove the string !PATCH! from our list. 23804 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23805 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23806 # If it failed, the variable was not from the command line. Ignore it, 23807 # but warn the user (except for BASH, which is always set by the calling BASH). 23808 if test "xPATCH" != xBASH; then 23809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23810 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23811 fi 23812 # Try to locate tool using the code snippet 23813 for ac_prog in gpatch patch 23814 do 23815 # Extract the first word of "$ac_prog", so it can be a program name with args. 23816 set dummy $ac_prog; ac_word=$2 23817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23818 $as_echo_n "checking for $ac_word... " >&6; } 23819 if ${ac_cv_path_PATCH+:} false; then : 23820 $as_echo_n "(cached) " >&6 23821 else 23822 case $PATCH in 23823 [\\/]* | ?:[\\/]*) 23824 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23825 ;; 23826 *) 23827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23828 for as_dir in $PATH 23829 do 23830 IFS=$as_save_IFS 23831 test -z "$as_dir" && as_dir=. 23832 for ac_exec_ext in '' $ac_executable_extensions; do 23833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23834 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23836 break 2 23837 fi 23838 done 23839 done 23840 IFS=$as_save_IFS 23841 23842 ;; 23843 esac 23844 fi 23845 PATCH=$ac_cv_path_PATCH 23846 if test -n "$PATCH"; then 23847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23848 $as_echo "$PATCH" >&6; } 23849 else 23850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23851 $as_echo "no" >&6; } 23852 fi 23853 23854 23855 test -n "$PATCH" && break 23856 done 23857 23858 else 23859 # If it succeeded, then it was overridden by the user. We will use it 23860 # for the tool. 23861 23862 # First remove it from the list of overridden variables, so we can test 23863 # for unknown variables in the end. 23864 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23865 23866 # Check if we try to supply an empty value 23867 if test "x$PATCH" = x; then 23868 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23869 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23871 $as_echo_n "checking for PATCH... " >&6; } 23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23873 $as_echo "disabled" >&6; } 23874 else 23875 # Check if the provided tool contains a complete path. 23876 tool_specified="$PATCH" 23877 tool_basename="${tool_specified##*/}" 23878 if test "x$tool_basename" = "x$tool_specified"; then 23879 # A command without a complete path is provided, search $PATH. 23880 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23881 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23882 # Extract the first word of "$tool_basename", so it can be a program name with args. 23883 set dummy $tool_basename; ac_word=$2 23884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23885 $as_echo_n "checking for $ac_word... " >&6; } 23886 if ${ac_cv_path_PATCH+:} false; then : 23887 $as_echo_n "(cached) " >&6 23888 else 23889 case $PATCH in 23890 [\\/]* | ?:[\\/]*) 23891 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23892 ;; 23893 *) 23894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23895 for as_dir in $PATH 23896 do 23897 IFS=$as_save_IFS 23898 test -z "$as_dir" && as_dir=. 23899 for ac_exec_ext in '' $ac_executable_extensions; do 23900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23901 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23903 break 2 23904 fi 23905 done 23906 done 23907 IFS=$as_save_IFS 23908 23909 ;; 23910 esac 23911 fi 23912 PATCH=$ac_cv_path_PATCH 23913 if test -n "$PATCH"; then 23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23915 $as_echo "$PATCH" >&6; } 23916 else 23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23918 $as_echo "no" >&6; } 23919 fi 23920 23921 23922 if test "x$PATCH" = x; then 23923 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23924 fi 23925 else 23926 # Otherwise we believe it is a complete path. Use it as it is. 23927 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23928 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23930 $as_echo_n "checking for PATCH... " >&6; } 23931 if test ! -x "$tool_specified"; then 23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23933 $as_echo "not found" >&6; } 23934 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23935 fi 23936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23937 $as_echo "$tool_specified" >&6; } 23938 fi 23939 fi 23940 fi 23941 23942 fi 23943 23944 23945 # Check if it's GNU time 23946 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23947 if test "x$IS_GNU_TIME" != x; then 23948 IS_GNU_TIME=yes 23949 else 23950 IS_GNU_TIME=no 23951 fi 23952 23953 23954 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 23955 23956 23957 23958 # Publish this variable in the help. 23959 23960 23961 if [ -z "${DSYMUTIL+x}" ]; then 23962 # The variable is not set by user, try to locate tool using the code snippet 23963 for ac_prog in dsymutil 23964 do 23965 # Extract the first word of "$ac_prog", so it can be a program name with args. 23966 set dummy $ac_prog; ac_word=$2 23967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23968 $as_echo_n "checking for $ac_word... " >&6; } 23969 if ${ac_cv_path_DSYMUTIL+:} false; then : 23970 $as_echo_n "(cached) " >&6 23971 else 23972 case $DSYMUTIL in 23973 [\\/]* | ?:[\\/]*) 23974 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23975 ;; 23976 *) 23977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23978 for as_dir in $PATH 23979 do 23980 IFS=$as_save_IFS 23981 test -z "$as_dir" && as_dir=. 23982 for ac_exec_ext in '' $ac_executable_extensions; do 23983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23984 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23986 break 2 23987 fi 23988 done 23989 done 23990 IFS=$as_save_IFS 23991 23992 ;; 23993 esac 23994 fi 23995 DSYMUTIL=$ac_cv_path_DSYMUTIL 23996 if test -n "$DSYMUTIL"; then 23997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23998 $as_echo "$DSYMUTIL" >&6; } 23999 else 24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24001 $as_echo "no" >&6; } 24002 fi 24003 24004 24005 test -n "$DSYMUTIL" && break 24006 done 24007 24008 else 24009 # The variable is set, but is it from the command line or the environment? 24010 24011 # Try to remove the string !DSYMUTIL! from our list. 24012 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 24013 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24014 # If it failed, the variable was not from the command line. Ignore it, 24015 # but warn the user (except for BASH, which is always set by the calling BASH). 24016 if test "xDSYMUTIL" != xBASH; then 24017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 24018 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 24019 fi 24020 # Try to locate tool using the code snippet 24021 for ac_prog in dsymutil 24022 do 24023 # Extract the first word of "$ac_prog", so it can be a program name with args. 24024 set dummy $ac_prog; ac_word=$2 24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24026 $as_echo_n "checking for $ac_word... " >&6; } 24027 if ${ac_cv_path_DSYMUTIL+:} false; then : 24028 $as_echo_n "(cached) " >&6 24029 else 24030 case $DSYMUTIL in 24031 [\\/]* | ?:[\\/]*) 24032 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 24033 ;; 24034 *) 24035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24036 for as_dir in $PATH 24037 do 24038 IFS=$as_save_IFS 24039 test -z "$as_dir" && as_dir=. 24040 for ac_exec_ext in '' $ac_executable_extensions; do 24041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24042 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 24043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24044 break 2 24045 fi 24046 done 24047 done 24048 IFS=$as_save_IFS 24049 24050 ;; 24051 esac 24052 fi 24053 DSYMUTIL=$ac_cv_path_DSYMUTIL 24054 if test -n "$DSYMUTIL"; then 24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 24056 $as_echo "$DSYMUTIL" >&6; } 24057 else 24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24059 $as_echo "no" >&6; } 24060 fi 24061 24062 24063 test -n "$DSYMUTIL" && break 24064 done 24065 24066 else 24067 # If it succeeded, then it was overridden by the user. We will use it 24068 # for the tool. 24069 24070 # First remove it from the list of overridden variables, so we can test 24071 # for unknown variables in the end. 24072 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24073 24074 # Check if we try to supply an empty value 24075 if test "x$DSYMUTIL" = x; then 24076 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 24077 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 24079 $as_echo_n "checking for DSYMUTIL... " >&6; } 24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24081 $as_echo "disabled" >&6; } 24082 else 24083 # Check if the provided tool contains a complete path. 24084 tool_specified="$DSYMUTIL" 24085 tool_basename="${tool_specified##*/}" 24086 if test "x$tool_basename" = "x$tool_specified"; then 24087 # A command without a complete path is provided, search $PATH. 24088 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 24089 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 24090 # Extract the first word of "$tool_basename", so it can be a program name with args. 24091 set dummy $tool_basename; ac_word=$2 24092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24093 $as_echo_n "checking for $ac_word... " >&6; } 24094 if ${ac_cv_path_DSYMUTIL+:} false; then : 24095 $as_echo_n "(cached) " >&6 24096 else 24097 case $DSYMUTIL in 24098 [\\/]* | ?:[\\/]*) 24099 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 24100 ;; 24101 *) 24102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24103 for as_dir in $PATH 24104 do 24105 IFS=$as_save_IFS 24106 test -z "$as_dir" && as_dir=. 24107 for ac_exec_ext in '' $ac_executable_extensions; do 24108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24109 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 24110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24111 break 2 24112 fi 24113 done 24114 done 24115 IFS=$as_save_IFS 24116 24117 ;; 24118 esac 24119 fi 24120 DSYMUTIL=$ac_cv_path_DSYMUTIL 24121 if test -n "$DSYMUTIL"; then 24122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 24123 $as_echo "$DSYMUTIL" >&6; } 24124 else 24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24126 $as_echo "no" >&6; } 24127 fi 24128 24129 24130 if test "x$DSYMUTIL" = x; then 24131 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24132 fi 24133 else 24134 # Otherwise we believe it is a complete path. Use it as it is. 24135 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 24136 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 24138 $as_echo_n "checking for DSYMUTIL... " >&6; } 24139 if test ! -x "$tool_specified"; then 24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24141 $as_echo "not found" >&6; } 24142 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 24143 fi 24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24145 $as_echo "$tool_specified" >&6; } 24146 fi 24147 fi 24148 fi 24149 24150 fi 24151 24152 24153 24154 if test "x$DSYMUTIL" = x; then 24155 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 24156 fi 24157 24158 24159 24160 24161 24162 # Publish this variable in the help. 24163 24164 24165 if [ -z "${XATTR+x}" ]; then 24166 # The variable is not set by user, try to locate tool using the code snippet 24167 for ac_prog in xattr 24168 do 24169 # Extract the first word of "$ac_prog", so it can be a program name with args. 24170 set dummy $ac_prog; ac_word=$2 24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24172 $as_echo_n "checking for $ac_word... " >&6; } 24173 if ${ac_cv_path_XATTR+:} false; then : 24174 $as_echo_n "(cached) " >&6 24175 else 24176 case $XATTR in 24177 [\\/]* | ?:[\\/]*) 24178 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24179 ;; 24180 *) 24181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24182 for as_dir in $PATH 24183 do 24184 IFS=$as_save_IFS 24185 test -z "$as_dir" && as_dir=. 24186 for ac_exec_ext in '' $ac_executable_extensions; do 24187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24188 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24190 break 2 24191 fi 24192 done 24193 done 24194 IFS=$as_save_IFS 24195 24196 ;; 24197 esac 24198 fi 24199 XATTR=$ac_cv_path_XATTR 24200 if test -n "$XATTR"; then 24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24202 $as_echo "$XATTR" >&6; } 24203 else 24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24205 $as_echo "no" >&6; } 24206 fi 24207 24208 24209 test -n "$XATTR" && break 24210 done 24211 24212 else 24213 # The variable is set, but is it from the command line or the environment? 24214 24215 # Try to remove the string !XATTR! from our list. 24216 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 24217 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24218 # If it failed, the variable was not from the command line. Ignore it, 24219 # but warn the user (except for BASH, which is always set by the calling BASH). 24220 if test "xXATTR" != xBASH; then 24221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 24222 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 24223 fi 24224 # Try to locate tool using the code snippet 24225 for ac_prog in xattr 24226 do 24227 # Extract the first word of "$ac_prog", so it can be a program name with args. 24228 set dummy $ac_prog; ac_word=$2 24229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24230 $as_echo_n "checking for $ac_word... " >&6; } 24231 if ${ac_cv_path_XATTR+:} false; then : 24232 $as_echo_n "(cached) " >&6 24233 else 24234 case $XATTR in 24235 [\\/]* | ?:[\\/]*) 24236 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24237 ;; 24238 *) 24239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24240 for as_dir in $PATH 24241 do 24242 IFS=$as_save_IFS 24243 test -z "$as_dir" && as_dir=. 24244 for ac_exec_ext in '' $ac_executable_extensions; do 24245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24246 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24248 break 2 24249 fi 24250 done 24251 done 24252 IFS=$as_save_IFS 24253 24254 ;; 24255 esac 24256 fi 24257 XATTR=$ac_cv_path_XATTR 24258 if test -n "$XATTR"; then 24259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24260 $as_echo "$XATTR" >&6; } 24261 else 24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24263 $as_echo "no" >&6; } 24264 fi 24265 24266 24267 test -n "$XATTR" && break 24268 done 24269 24270 else 24271 # If it succeeded, then it was overridden by the user. We will use it 24272 # for the tool. 24273 24274 # First remove it from the list of overridden variables, so we can test 24275 # for unknown variables in the end. 24276 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24277 24278 # Check if we try to supply an empty value 24279 if test "x$XATTR" = x; then 24280 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 24281 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24283 $as_echo_n "checking for XATTR... " >&6; } 24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24285 $as_echo "disabled" >&6; } 24286 else 24287 # Check if the provided tool contains a complete path. 24288 tool_specified="$XATTR" 24289 tool_basename="${tool_specified##*/}" 24290 if test "x$tool_basename" = "x$tool_specified"; then 24291 # A command without a complete path is provided, search $PATH. 24292 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 24293 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 24294 # Extract the first word of "$tool_basename", so it can be a program name with args. 24295 set dummy $tool_basename; ac_word=$2 24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24297 $as_echo_n "checking for $ac_word... " >&6; } 24298 if ${ac_cv_path_XATTR+:} false; then : 24299 $as_echo_n "(cached) " >&6 24300 else 24301 case $XATTR in 24302 [\\/]* | ?:[\\/]*) 24303 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24304 ;; 24305 *) 24306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24307 for as_dir in $PATH 24308 do 24309 IFS=$as_save_IFS 24310 test -z "$as_dir" && as_dir=. 24311 for ac_exec_ext in '' $ac_executable_extensions; do 24312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24313 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24315 break 2 24316 fi 24317 done 24318 done 24319 IFS=$as_save_IFS 24320 24321 ;; 24322 esac 24323 fi 24324 XATTR=$ac_cv_path_XATTR 24325 if test -n "$XATTR"; then 24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24327 $as_echo "$XATTR" >&6; } 24328 else 24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24330 $as_echo "no" >&6; } 24331 fi 24332 24333 24334 if test "x$XATTR" = x; then 24335 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24336 fi 24337 else 24338 # Otherwise we believe it is a complete path. Use it as it is. 24339 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 24340 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24342 $as_echo_n "checking for XATTR... " >&6; } 24343 if test ! -x "$tool_specified"; then 24344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24345 $as_echo "not found" >&6; } 24346 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 24347 fi 24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24349 $as_echo "$tool_specified" >&6; } 24350 fi 24351 fi 24352 fi 24353 24354 fi 24355 24356 24357 24358 if test "x$XATTR" = x; then 24359 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 24360 fi 24361 24362 24363 24364 24365 # Publish this variable in the help. 24366 24367 24368 if [ -z "${CODESIGN+x}" ]; then 24369 # The variable is not set by user, try to locate tool using the code snippet 24370 for ac_prog in codesign 24371 do 24372 # Extract the first word of "$ac_prog", so it can be a program name with args. 24373 set dummy $ac_prog; ac_word=$2 24374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24375 $as_echo_n "checking for $ac_word... " >&6; } 24376 if ${ac_cv_path_CODESIGN+:} false; then : 24377 $as_echo_n "(cached) " >&6 24378 else 24379 case $CODESIGN in 24380 [\\/]* | ?:[\\/]*) 24381 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24382 ;; 24383 *) 24384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24385 for as_dir in $PATH 24386 do 24387 IFS=$as_save_IFS 24388 test -z "$as_dir" && as_dir=. 24389 for ac_exec_ext in '' $ac_executable_extensions; do 24390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24391 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24393 break 2 24394 fi 24395 done 24396 done 24397 IFS=$as_save_IFS 24398 24399 ;; 24400 esac 24401 fi 24402 CODESIGN=$ac_cv_path_CODESIGN 24403 if test -n "$CODESIGN"; then 24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24405 $as_echo "$CODESIGN" >&6; } 24406 else 24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24408 $as_echo "no" >&6; } 24409 fi 24410 24411 24412 test -n "$CODESIGN" && break 24413 done 24414 24415 else 24416 # The variable is set, but is it from the command line or the environment? 24417 24418 # Try to remove the string !CODESIGN! from our list. 24419 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 24420 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24421 # If it failed, the variable was not from the command line. Ignore it, 24422 # but warn the user (except for BASH, which is always set by the calling BASH). 24423 if test "xCODESIGN" != xBASH; then 24424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 24425 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 24426 fi 24427 # Try to locate tool using the code snippet 24428 for ac_prog in codesign 24429 do 24430 # Extract the first word of "$ac_prog", so it can be a program name with args. 24431 set dummy $ac_prog; ac_word=$2 24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24433 $as_echo_n "checking for $ac_word... " >&6; } 24434 if ${ac_cv_path_CODESIGN+:} false; then : 24435 $as_echo_n "(cached) " >&6 24436 else 24437 case $CODESIGN in 24438 [\\/]* | ?:[\\/]*) 24439 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24440 ;; 24441 *) 24442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24443 for as_dir in $PATH 24444 do 24445 IFS=$as_save_IFS 24446 test -z "$as_dir" && as_dir=. 24447 for ac_exec_ext in '' $ac_executable_extensions; do 24448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24449 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24451 break 2 24452 fi 24453 done 24454 done 24455 IFS=$as_save_IFS 24456 24457 ;; 24458 esac 24459 fi 24460 CODESIGN=$ac_cv_path_CODESIGN 24461 if test -n "$CODESIGN"; then 24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24463 $as_echo "$CODESIGN" >&6; } 24464 else 24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24466 $as_echo "no" >&6; } 24467 fi 24468 24469 24470 test -n "$CODESIGN" && break 24471 done 24472 24473 else 24474 # If it succeeded, then it was overridden by the user. We will use it 24475 # for the tool. 24476 24477 # First remove it from the list of overridden variables, so we can test 24478 # for unknown variables in the end. 24479 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24480 24481 # Check if we try to supply an empty value 24482 if test "x$CODESIGN" = x; then 24483 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 24484 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 24485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24486 $as_echo_n "checking for CODESIGN... " >&6; } 24487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24488 $as_echo "disabled" >&6; } 24489 else 24490 # Check if the provided tool contains a complete path. 24491 tool_specified="$CODESIGN" 24492 tool_basename="${tool_specified##*/}" 24493 if test "x$tool_basename" = "x$tool_specified"; then 24494 # A command without a complete path is provided, search $PATH. 24495 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 24496 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 24497 # Extract the first word of "$tool_basename", so it can be a program name with args. 24498 set dummy $tool_basename; ac_word=$2 24499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24500 $as_echo_n "checking for $ac_word... " >&6; } 24501 if ${ac_cv_path_CODESIGN+:} false; then : 24502 $as_echo_n "(cached) " >&6 24503 else 24504 case $CODESIGN in 24505 [\\/]* | ?:[\\/]*) 24506 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24507 ;; 24508 *) 24509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24510 for as_dir in $PATH 24511 do 24512 IFS=$as_save_IFS 24513 test -z "$as_dir" && as_dir=. 24514 for ac_exec_ext in '' $ac_executable_extensions; do 24515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24516 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24518 break 2 24519 fi 24520 done 24521 done 24522 IFS=$as_save_IFS 24523 24524 ;; 24525 esac 24526 fi 24527 CODESIGN=$ac_cv_path_CODESIGN 24528 if test -n "$CODESIGN"; then 24529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24530 $as_echo "$CODESIGN" >&6; } 24531 else 24532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24533 $as_echo "no" >&6; } 24534 fi 24535 24536 24537 if test "x$CODESIGN" = x; then 24538 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24539 fi 24540 else 24541 # Otherwise we believe it is a complete path. Use it as it is. 24542 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 24543 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 24544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24545 $as_echo_n "checking for CODESIGN... " >&6; } 24546 if test ! -x "$tool_specified"; then 24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24548 $as_echo "not found" >&6; } 24549 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 24550 fi 24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24552 $as_echo "$tool_specified" >&6; } 24553 fi 24554 fi 24555 fi 24556 24557 fi 24558 24559 24560 if test "x$CODESIGN" != "x"; then 24561 # Verify that the openjdk_codesign certificate is present 24562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 24563 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 24564 $RM codesign-testfile 24565 $TOUCH codesign-testfile 24566 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 24567 $RM codesign-testfile 24568 if test "x$CODESIGN" = x; then 24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24570 $as_echo "no" >&6; } 24571 else 24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24573 $as_echo "yes" >&6; } 24574 fi 24575 fi 24576 24577 24578 24579 # Publish this variable in the help. 24580 24581 24582 if [ -z "${SETFILE+x}" ]; then 24583 # The variable is not set by user, try to locate tool using the code snippet 24584 for ac_prog in SetFile 24585 do 24586 # Extract the first word of "$ac_prog", so it can be a program name with args. 24587 set dummy $ac_prog; ac_word=$2 24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24589 $as_echo_n "checking for $ac_word... " >&6; } 24590 if ${ac_cv_path_SETFILE+:} false; then : 24591 $as_echo_n "(cached) " >&6 24592 else 24593 case $SETFILE in 24594 [\\/]* | ?:[\\/]*) 24595 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24596 ;; 24597 *) 24598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24599 for as_dir in $PATH 24600 do 24601 IFS=$as_save_IFS 24602 test -z "$as_dir" && as_dir=. 24603 for ac_exec_ext in '' $ac_executable_extensions; do 24604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24605 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24607 break 2 24608 fi 24609 done 24610 done 24611 IFS=$as_save_IFS 24612 24613 ;; 24614 esac 24615 fi 24616 SETFILE=$ac_cv_path_SETFILE 24617 if test -n "$SETFILE"; then 24618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24619 $as_echo "$SETFILE" >&6; } 24620 else 24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24622 $as_echo "no" >&6; } 24623 fi 24624 24625 24626 test -n "$SETFILE" && break 24627 done 24628 24629 else 24630 # The variable is set, but is it from the command line or the environment? 24631 24632 # Try to remove the string !SETFILE! from our list. 24633 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 24634 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24635 # If it failed, the variable was not from the command line. Ignore it, 24636 # but warn the user (except for BASH, which is always set by the calling BASH). 24637 if test "xSETFILE" != xBASH; then 24638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 24639 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 24640 fi 24641 # Try to locate tool using the code snippet 24642 for ac_prog in SetFile 24643 do 24644 # Extract the first word of "$ac_prog", so it can be a program name with args. 24645 set dummy $ac_prog; ac_word=$2 24646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24647 $as_echo_n "checking for $ac_word... " >&6; } 24648 if ${ac_cv_path_SETFILE+:} false; then : 24649 $as_echo_n "(cached) " >&6 24650 else 24651 case $SETFILE in 24652 [\\/]* | ?:[\\/]*) 24653 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24654 ;; 24655 *) 24656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24657 for as_dir in $PATH 24658 do 24659 IFS=$as_save_IFS 24660 test -z "$as_dir" && as_dir=. 24661 for ac_exec_ext in '' $ac_executable_extensions; do 24662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24663 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24665 break 2 24666 fi 24667 done 24668 done 24669 IFS=$as_save_IFS 24670 24671 ;; 24672 esac 24673 fi 24674 SETFILE=$ac_cv_path_SETFILE 24675 if test -n "$SETFILE"; then 24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24677 $as_echo "$SETFILE" >&6; } 24678 else 24679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24680 $as_echo "no" >&6; } 24681 fi 24682 24683 24684 test -n "$SETFILE" && break 24685 done 24686 24687 else 24688 # If it succeeded, then it was overridden by the user. We will use it 24689 # for the tool. 24690 24691 # First remove it from the list of overridden variables, so we can test 24692 # for unknown variables in the end. 24693 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24694 24695 # Check if we try to supply an empty value 24696 if test "x$SETFILE" = x; then 24697 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 24698 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 24699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24700 $as_echo_n "checking for SETFILE... " >&6; } 24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24702 $as_echo "disabled" >&6; } 24703 else 24704 # Check if the provided tool contains a complete path. 24705 tool_specified="$SETFILE" 24706 tool_basename="${tool_specified##*/}" 24707 if test "x$tool_basename" = "x$tool_specified"; then 24708 # A command without a complete path is provided, search $PATH. 24709 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 24710 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 24711 # Extract the first word of "$tool_basename", so it can be a program name with args. 24712 set dummy $tool_basename; ac_word=$2 24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24714 $as_echo_n "checking for $ac_word... " >&6; } 24715 if ${ac_cv_path_SETFILE+:} false; then : 24716 $as_echo_n "(cached) " >&6 24717 else 24718 case $SETFILE in 24719 [\\/]* | ?:[\\/]*) 24720 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24721 ;; 24722 *) 24723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24724 for as_dir in $PATH 24725 do 24726 IFS=$as_save_IFS 24727 test -z "$as_dir" && as_dir=. 24728 for ac_exec_ext in '' $ac_executable_extensions; do 24729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24730 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24732 break 2 24733 fi 24734 done 24735 done 24736 IFS=$as_save_IFS 24737 24738 ;; 24739 esac 24740 fi 24741 SETFILE=$ac_cv_path_SETFILE 24742 if test -n "$SETFILE"; then 24743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24744 $as_echo "$SETFILE" >&6; } 24745 else 24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24747 $as_echo "no" >&6; } 24748 fi 24749 24750 24751 if test "x$SETFILE" = x; then 24752 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24753 fi 24754 else 24755 # Otherwise we believe it is a complete path. Use it as it is. 24756 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 24757 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 24758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24759 $as_echo_n "checking for SETFILE... " >&6; } 24760 if test ! -x "$tool_specified"; then 24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24762 $as_echo "not found" >&6; } 24763 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 24764 fi 24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24766 $as_echo "$tool_specified" >&6; } 24767 fi 24768 fi 24769 fi 24770 24771 fi 24772 24773 24774 24775 if test "x$SETFILE" = x; then 24776 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24777 fi 24778 24779 24780 fi 24781 24782 24783 # Check bash version 24784 # Extra [ ] to stop m4 mangling 24785 BASH_VER=`$BASH --version | $SED -n -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'` 24786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5 24787 $as_echo_n "checking bash version... " >&6; } 24788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5 24789 $as_echo "$BASH_VER" >&6; } 24790 24791 BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1` 24792 BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2` 24793 if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then 24794 as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5 24795 fi 24796 24797 # Test if bash supports pipefail. 24798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24799 $as_echo_n "checking if bash supports pipefail... " >&6; } 24800 if ${BASH} -c 'set -o pipefail'; then 24801 BASH_ARGS="$BASH_ARGS -o pipefail" 24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24803 $as_echo "yes" >&6; } 24804 else 24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24806 $as_echo "no" >&6; } 24807 fi 24808 24809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24810 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24811 if ${BASH} -e -c 'true'; then 24812 BASH_ARGS="$BASH_ARGS -e" 24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24814 $as_echo "yes" >&6; } 24815 else 24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24817 $as_echo "no" >&6; } 24818 fi 24819 24820 24821 24822 24823 # Check if pkg-config is available. 24824 24825 24826 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24827 if test -n "$ac_tool_prefix"; then 24828 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24829 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24831 $as_echo_n "checking for $ac_word... " >&6; } 24832 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24833 $as_echo_n "(cached) " >&6 24834 else 24835 case $PKG_CONFIG in 24836 [\\/]* | ?:[\\/]*) 24837 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24838 ;; 24839 *) 24840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24841 for as_dir in $PATH 24842 do 24843 IFS=$as_save_IFS 24844 test -z "$as_dir" && as_dir=. 24845 for ac_exec_ext in '' $ac_executable_extensions; do 24846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24847 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24849 break 2 24850 fi 24851 done 24852 done 24853 IFS=$as_save_IFS 24854 24855 ;; 24856 esac 24857 fi 24858 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24859 if test -n "$PKG_CONFIG"; then 24860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24861 $as_echo "$PKG_CONFIG" >&6; } 24862 else 24863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24864 $as_echo "no" >&6; } 24865 fi 24866 24867 24868 fi 24869 if test -z "$ac_cv_path_PKG_CONFIG"; then 24870 ac_pt_PKG_CONFIG=$PKG_CONFIG 24871 # Extract the first word of "pkg-config", so it can be a program name with args. 24872 set dummy pkg-config; ac_word=$2 24873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24874 $as_echo_n "checking for $ac_word... " >&6; } 24875 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24876 $as_echo_n "(cached) " >&6 24877 else 24878 case $ac_pt_PKG_CONFIG in 24879 [\\/]* | ?:[\\/]*) 24880 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24881 ;; 24882 *) 24883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24884 for as_dir in $PATH 24885 do 24886 IFS=$as_save_IFS 24887 test -z "$as_dir" && as_dir=. 24888 for ac_exec_ext in '' $ac_executable_extensions; do 24889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24890 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24892 break 2 24893 fi 24894 done 24895 done 24896 IFS=$as_save_IFS 24897 24898 ;; 24899 esac 24900 fi 24901 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24902 if test -n "$ac_pt_PKG_CONFIG"; then 24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24904 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24905 else 24906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24907 $as_echo "no" >&6; } 24908 fi 24909 24910 if test "x$ac_pt_PKG_CONFIG" = x; then 24911 PKG_CONFIG="" 24912 else 24913 case $cross_compiling:$ac_tool_warned in 24914 yes:) 24915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24917 ac_tool_warned=yes ;; 24918 esac 24919 PKG_CONFIG=$ac_pt_PKG_CONFIG 24920 fi 24921 else 24922 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24923 fi 24924 24925 fi 24926 if test -n "$PKG_CONFIG"; then 24927 _pkg_min_version=0.9.0 24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24929 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24930 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24932 $as_echo "yes" >&6; } 24933 else 24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24935 $as_echo "no" >&6; } 24936 PKG_CONFIG="" 24937 fi 24938 24939 fi 24940 24941 # After basic tools have been setup, we can check build os specific details. 24942 24943 ############################################################################### 24944 24945 # Note that this is the build platform OS version! 24946 24947 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24948 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24949 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24950 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24951 24952 24953 24954 24955 24956 # Misc basic settings 24957 24958 24959 # Check whether --with-default-make-target was given. 24960 if test "${with_default_make_target+set}" = set; then : 24961 withval=$with_default_make_target; 24962 fi 24963 24964 if test "x$with_default_make_target" = "x" \ 24965 || test "x$with_default_make_target" = "xyes"; then 24966 DEFAULT_MAKE_TARGET="exploded-image" 24967 elif test "x$with_default_make_target" = "xno"; then 24968 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24969 else 24970 DEFAULT_MAKE_TARGET="$with_default_make_target" 24971 fi 24972 24973 24974 24975 24976 ############################################################################### 24977 # 24978 # Determine OpenJDK variants, options and version numbers. 24979 # 24980 ############################################################################### 24981 24982 # We need build & target for this. 24983 24984 # Should we build a JDK without a graphical UI? 24985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5 24986 $as_echo_n "checking headless only... " >&6; } 24987 # Check whether --enable-headless-only was given. 24988 if test "${enable_headless_only+set}" = set; then : 24989 enableval=$enable_headless_only; 24990 fi 24991 24992 24993 if test "x$enable_headless_only" = "xyes"; then 24994 ENABLE_HEADLESS_ONLY="true" 24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24996 $as_echo "yes" >&6; } 24997 elif test "x$enable_headless_only" = "xno"; then 24998 ENABLE_HEADLESS_ONLY="false" 24999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25000 $as_echo "no" >&6; } 25001 elif test "x$enable_headless_only" = "x"; then 25002 ENABLE_HEADLESS_ONLY="false" 25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25004 $as_echo "no" >&6; } 25005 else 25006 as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5 25007 fi 25008 25009 25010 25011 # Should we build the complete docs, or just a lightweight version? 25012 # Check whether --enable-full-docs was given. 25013 if test "${enable_full_docs+set}" = set; then : 25014 enableval=$enable_full_docs; 25015 fi 25016 25017 25018 # Verify dependencies 25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5 25020 $as_echo_n "checking for graphviz dot... " >&6; } 25021 if test "x$DOT" != "x"; then 25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25023 $as_echo "yes" >&6; } 25024 else 25025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 25026 $as_echo "no, cannot generate full docs" >&6; } 25027 FULL_DOCS_DEP_MISSING=true 25028 fi 25029 25030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5 25031 $as_echo_n "checking for pandoc... " >&6; } 25032 if test "x$PANDOC" != "x"; then 25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25034 $as_echo "yes" >&6; } 25035 else 25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 25037 $as_echo "no, cannot generate full docs" >&6; } 25038 FULL_DOCS_DEP_MISSING=true 25039 fi 25040 25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5 25042 $as_echo_n "checking full docs... " >&6; } 25043 if test "x$enable_full_docs" = xyes; then 25044 if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then 25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 25046 $as_echo "no, missing dependencies" >&6; } 25047 25048 # Print a helpful message on how to acquire the necessary build dependency. 25049 # dot is the help tag: freetype, cups, alsa etc 25050 MISSING_DEPENDENCY=dot 25051 25052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25053 cygwin_help $MISSING_DEPENDENCY 25054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25055 msys_help $MISSING_DEPENDENCY 25056 else 25057 PKGHANDLER_COMMAND= 25058 25059 case $PKGHANDLER in 25060 apt-get) 25061 apt_help $MISSING_DEPENDENCY ;; 25062 yum) 25063 yum_help $MISSING_DEPENDENCY ;; 25064 brew) 25065 brew_help $MISSING_DEPENDENCY ;; 25066 port) 25067 port_help $MISSING_DEPENDENCY ;; 25068 pkgutil) 25069 pkgutil_help $MISSING_DEPENDENCY ;; 25070 pkgadd) 25071 pkgadd_help $MISSING_DEPENDENCY ;; 25072 esac 25073 25074 if test "x$PKGHANDLER_COMMAND" != x; then 25075 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25076 fi 25077 fi 25078 25079 as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 25080 else 25081 ENABLE_FULL_DOCS=true 25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 25083 $as_echo "yes, forced" >&6; } 25084 fi 25085 elif test "x$enable_full_docs" = xno; then 25086 ENABLE_FULL_DOCS=false 25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 25088 $as_echo "no, forced" >&6; } 25089 elif test "x$enable_full_docs" = x; then 25090 # Check for prerequisites 25091 if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then 25092 ENABLE_FULL_DOCS=false 25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 25094 $as_echo "no, missing dependencies" >&6; } 25095 else 25096 ENABLE_FULL_DOCS=true 25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 25098 $as_echo "yes, dependencies present" >&6; } 25099 fi 25100 else 25101 as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5 25102 fi 25103 25104 25105 25106 # Choose cacerts source file 25107 25108 # Check whether --with-cacerts-file was given. 25109 if test "${with_cacerts_file+set}" = set; then : 25110 withval=$with_cacerts_file; 25111 fi 25112 25113 if test "x$with_cacerts_file" != x; then 25114 CACERTS_FILE=$with_cacerts_file 25115 fi 25116 25117 25118 # Enable or disable unlimited crypto 25119 # Check whether --enable-unlimited-crypto was given. 25120 if test "${enable_unlimited_crypto+set}" = set; then : 25121 enableval=$enable_unlimited_crypto; 25122 else 25123 enable_unlimited_crypto=yes 25124 fi 25125 25126 if test "x$enable_unlimited_crypto" = "xyes"; then 25127 UNLIMITED_CRYPTO=true 25128 else 25129 UNLIMITED_CRYPTO=false 25130 fi 25131 25132 25133 # Should we build the serviceability agent (SA)? 25134 INCLUDE_SA=true 25135 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 25136 INCLUDE_SA=false 25137 fi 25138 if test "x$OPENJDK_TARGET_OS" = xaix ; then 25139 INCLUDE_SA=false 25140 fi 25141 25142 25143 # Compress jars 25144 COMPRESS_JARS=false 25145 25146 25147 25148 # Setup default copyright year. Mostly overridden when building close to a new year. 25149 25150 # Check whether --with-copyright-year was given. 25151 if test "${with_copyright_year+set}" = set; then : 25152 withval=$with_copyright_year; 25153 fi 25154 25155 if test "x$with_copyright_year" = xyes; then 25156 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 25157 elif test "x$with_copyright_year" != x; then 25158 COPYRIGHT_YEAR="$with_copyright_year" 25159 else 25160 COPYRIGHT_YEAR=`$DATE +'%Y'` 25161 fi 25162 25163 25164 25165 # Check whether --enable-keep-packaged-modules was given. 25166 if test "${enable_keep_packaged_modules+set}" = set; then : 25167 enableval=$enable_keep_packaged_modules; 25168 fi 25169 25170 25171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 25172 $as_echo_n "checking if packaged modules are kept... " >&6; } 25173 if test "x$enable_keep_packaged_modules" = "xyes"; then 25174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25175 $as_echo "yes" >&6; } 25176 JLINK_KEEP_PACKAGED_MODULES=true 25177 elif test "x$enable_keep_packaged_modules" = "xno"; then 25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25179 $as_echo "no" >&6; } 25180 JLINK_KEEP_PACKAGED_MODULES=false 25181 elif test "x$enable_keep_packaged_modules" = "x"; then 25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 25183 $as_echo "yes (default)" >&6; } 25184 JLINK_KEEP_PACKAGED_MODULES=true 25185 else 25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5 25187 $as_echo "error" >&6; } 25188 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 25189 fi 25190 25191 25192 25193 25194 # Warn user that old version arguments are deprecated. 25195 25196 25197 # Check whether --with-milestone was given. 25198 if test "${with_milestone+set}" = set; then : 25199 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 25200 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 25201 fi 25202 25203 25204 25205 25206 # Check whether --with-update-version was given. 25207 if test "${with_update_version+set}" = set; then : 25208 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 25209 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 25210 fi 25211 25212 25213 25214 25215 # Check whether --with-user-release-suffix was given. 25216 if test "${with_user_release_suffix+set}" = set; then : 25217 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 25218 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 25219 fi 25220 25221 25222 25223 25224 # Check whether --with-build-number was given. 25225 if test "${with_build_number+set}" = set; then : 25226 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 25227 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 25228 fi 25229 25230 25231 25232 # Source the version numbers file 25233 . $AUTOCONF_DIR/version-numbers 25234 25235 # Some non-version number information is set in that file 25236 25237 25238 25239 25240 25241 25242 25243 25244 25245 # Override version from arguments 25246 25247 # If --with-version-string is set, process it first. It is possible to 25248 # override parts with more specific flags, since these are processed later. 25249 25250 # Check whether --with-version-string was given. 25251 if test "${with_version_string+set}" = set; then : 25252 withval=$with_version_string; 25253 fi 25254 25255 if test "x$with_version_string" = xyes; then 25256 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 25257 elif test "x$with_version_string" != x; then 25258 # Additional [] needed to keep m4 from mangling shell constructs. 25259 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 25260 VERSION_MAJOR=${BASH_REMATCH[1]} 25261 VERSION_MINOR=${BASH_REMATCH[3]} 25262 VERSION_SECURITY=${BASH_REMATCH[5]} 25263 VERSION_PATCH=${BASH_REMATCH[7]} 25264 VERSION_PRE=${BASH_REMATCH[9]} 25265 version_plus_separator=${BASH_REMATCH[11]} 25266 VERSION_BUILD=${BASH_REMATCH[12]} 25267 VERSION_OPT=${BASH_REMATCH[14]} 25268 # Unspecified numerical fields are interpreted as 0. 25269 if test "x$VERSION_MINOR" = x; then 25270 VERSION_MINOR=0 25271 fi 25272 if test "x$VERSION_SECURITY" = x; then 25273 VERSION_SECURITY=0 25274 fi 25275 if test "x$VERSION_PATCH" = x; then 25276 VERSION_PATCH=0 25277 fi 25278 if test "x$version_plus_separator" != x \ 25279 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 25280 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 25281 fi 25282 # Stop the version part process from setting default values. 25283 # We still allow them to explicitly override though. 25284 NO_DEFAULT_VERSION_PARTS=true 25285 else 25286 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 25287 fi 25288 fi 25289 25290 25291 # Check whether --with-version-pre was given. 25292 if test "${with_version_pre+set}" = set; then : 25293 withval=$with_version_pre; with_version_pre_present=true 25294 else 25295 with_version_pre_present=false 25296 fi 25297 25298 25299 if test "x$with_version_pre_present" = xtrue; then 25300 if test "x$with_version_pre" = xyes; then 25301 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 25302 elif test "x$with_version_pre" = xno; then 25303 # Interpret --without-* as empty string instead of the literal "no" 25304 VERSION_PRE= 25305 else 25306 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 25307 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 25308 if test "x$VERSION_PRE" != "x$with_version_pre"; then 25309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 25310 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 25311 fi 25312 fi 25313 else 25314 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25315 # Default is to use "internal" as pre 25316 VERSION_PRE="internal" 25317 fi 25318 fi 25319 25320 25321 # Check whether --with-version-opt was given. 25322 if test "${with_version_opt+set}" = set; then : 25323 withval=$with_version_opt; with_version_opt_present=true 25324 else 25325 with_version_opt_present=false 25326 fi 25327 25328 25329 if test "x$with_version_opt_present" = xtrue; then 25330 if test "x$with_version_opt" = xyes; then 25331 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 25332 elif test "x$with_version_opt" = xno; then 25333 # Interpret --without-* as empty string instead of the literal "no" 25334 VERSION_OPT= 25335 else 25336 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 25337 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 25338 if test "x$VERSION_OPT" != "x$with_version_opt"; then 25339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 25340 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 25341 fi 25342 fi 25343 else 25344 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25345 # Default is to calculate a string like this 'adhoc.<username>.<base dir name>' 25346 # Outer [ ] to quote m4. 25347 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 25348 VERSION_OPT="adhoc.$USERNAME.$basedirname" 25349 fi 25350 fi 25351 25352 25353 # Check whether --with-version-build was given. 25354 if test "${with_version_build+set}" = set; then : 25355 withval=$with_version_build; with_version_build_present=true 25356 else 25357 with_version_build_present=false 25358 fi 25359 25360 25361 if test "x$with_version_build_present" = xtrue; then 25362 if test "x$with_version_build" = xyes; then 25363 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 25364 elif test "x$with_version_build" = xno; then 25365 # Interpret --without-* as empty string instead of the literal "no" 25366 VERSION_BUILD= 25367 elif test "x$with_version_build" = x; then 25368 VERSION_BUILD= 25369 else 25370 25371 # Additional [] needed to keep m4 from mangling shell constructs. 25372 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25373 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 25374 fi 25375 # Extract the version number without leading zeros. 25376 cleaned_value=${BASH_REMATCH[1]} 25377 if test "x$cleaned_value" = x; then 25378 # Special case for zero 25379 cleaned_value=${BASH_REMATCH[2]} 25380 fi 25381 25382 if test $cleaned_value -gt 255; then 25383 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 25384 fi 25385 if test "x$cleaned_value" != "x$with_version_build"; then 25386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 25387 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 25388 fi 25389 VERSION_BUILD=$cleaned_value 25390 25391 fi 25392 else 25393 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25394 # Default is to not have a build number. 25395 VERSION_BUILD="" 25396 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 25397 VERSION_BUILD=0 25398 fi 25399 fi 25400 25401 25402 # Check whether --with-version-major was given. 25403 if test "${with_version_major+set}" = set; then : 25404 withval=$with_version_major; with_version_major_present=true 25405 else 25406 with_version_major_present=false 25407 fi 25408 25409 25410 if test "x$with_version_major_present" = xtrue; then 25411 if test "x$with_version_major" = xyes; then 25412 as_fn_error $? "--with-version-major must have a value" "$LINENO" 5 25413 else 25414 25415 # Additional [] needed to keep m4 from mangling shell constructs. 25416 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25417 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 25418 fi 25419 # Extract the version number without leading zeros. 25420 cleaned_value=${BASH_REMATCH[1]} 25421 if test "x$cleaned_value" = x; then 25422 # Special case for zero 25423 cleaned_value=${BASH_REMATCH[2]} 25424 fi 25425 25426 if test $cleaned_value -gt 255; then 25427 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 25428 fi 25429 if test "x$cleaned_value" != "x$with_version_major"; then 25430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 25431 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 25432 fi 25433 VERSION_MAJOR=$cleaned_value 25434 25435 fi 25436 else 25437 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25438 # Default is to get value from version-numbers 25439 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 25440 fi 25441 fi 25442 25443 25444 # Check whether --with-version-minor was given. 25445 if test "${with_version_minor+set}" = set; then : 25446 withval=$with_version_minor; with_version_minor_present=true 25447 else 25448 with_version_minor_present=false 25449 fi 25450 25451 25452 if test "x$with_version_minor_present" = xtrue; then 25453 if test "x$with_version_minor" = xyes; then 25454 as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5 25455 elif test "x$with_version_minor" = xno; then 25456 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25457 VERSION_MINOR=0 25458 elif test "x$with_version_minor" = x; then 25459 VERSION_MINOR=0 25460 else 25461 25462 # Additional [] needed to keep m4 from mangling shell constructs. 25463 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25464 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 25465 fi 25466 # Extract the version number without leading zeros. 25467 cleaned_value=${BASH_REMATCH[1]} 25468 if test "x$cleaned_value" = x; then 25469 # Special case for zero 25470 cleaned_value=${BASH_REMATCH[2]} 25471 fi 25472 25473 if test $cleaned_value -gt 255; then 25474 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 25475 fi 25476 if test "x$cleaned_value" != "x$with_version_minor"; then 25477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 25478 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 25479 fi 25480 VERSION_MINOR=$cleaned_value 25481 25482 fi 25483 else 25484 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25485 # Default is 0, if unspecified 25486 VERSION_MINOR=$DEFAULT_VERSION_MINOR 25487 fi 25488 fi 25489 25490 25491 # Check whether --with-version-security was given. 25492 if test "${with_version_security+set}" = set; then : 25493 withval=$with_version_security; with_version_security_present=true 25494 else 25495 with_version_security_present=false 25496 fi 25497 25498 25499 if test "x$with_version_security_present" = xtrue; then 25500 if test "x$with_version_security" = xyes; then 25501 as_fn_error $? "--with-version-security must have a value" "$LINENO" 5 25502 elif test "x$with_version_security" = xno; then 25503 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25504 VERSION_SECURITY=0 25505 elif test "x$with_version_security" = x; then 25506 VERSION_SECURITY=0 25507 else 25508 25509 # Additional [] needed to keep m4 from mangling shell constructs. 25510 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25511 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 25512 fi 25513 # Extract the version number without leading zeros. 25514 cleaned_value=${BASH_REMATCH[1]} 25515 if test "x$cleaned_value" = x; then 25516 # Special case for zero 25517 cleaned_value=${BASH_REMATCH[2]} 25518 fi 25519 25520 if test $cleaned_value -gt 255; then 25521 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 25522 fi 25523 if test "x$cleaned_value" != "x$with_version_security"; then 25524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 25525 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 25526 fi 25527 VERSION_SECURITY=$cleaned_value 25528 25529 fi 25530 else 25531 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25532 # Default is 0, if unspecified 25533 VERSION_SECURITY=$DEFAULT_VERSION_SECURITY 25534 fi 25535 fi 25536 25537 25538 # Check whether --with-version-patch was given. 25539 if test "${with_version_patch+set}" = set; then : 25540 withval=$with_version_patch; with_version_patch_present=true 25541 else 25542 with_version_patch_present=false 25543 fi 25544 25545 25546 if test "x$with_version_patch_present" = xtrue; then 25547 if test "x$with_version_patch" = xyes; then 25548 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 25549 elif test "x$with_version_patch" = xno; then 25550 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25551 VERSION_PATCH=0 25552 elif test "x$with_version_patch" = x; then 25553 VERSION_PATCH=0 25554 else 25555 25556 # Additional [] needed to keep m4 from mangling shell constructs. 25557 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25558 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 25559 fi 25560 # Extract the version number without leading zeros. 25561 cleaned_value=${BASH_REMATCH[1]} 25562 if test "x$cleaned_value" = x; then 25563 # Special case for zero 25564 cleaned_value=${BASH_REMATCH[2]} 25565 fi 25566 25567 if test $cleaned_value -gt 255; then 25568 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 25569 fi 25570 if test "x$cleaned_value" != "x$with_version_patch"; then 25571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 25572 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 25573 fi 25574 VERSION_PATCH=$cleaned_value 25575 25576 fi 25577 else 25578 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25579 # Default is 0, if unspecified 25580 VERSION_PATCH=$DEFAULT_VERSION_PATCH 25581 fi 25582 fi 25583 25584 # Calculate derived version properties 25585 25586 # Set VERSION_IS_GA based on if VERSION_PRE has a value 25587 if test "x$VERSION_PRE" = x; then 25588 VERSION_IS_GA=true 25589 else 25590 VERSION_IS_GA=false 25591 fi 25592 25593 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 25594 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 25595 25596 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 25597 # Strip trailing zeroes from stripped_version_number 25598 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 25599 VERSION_NUMBER=$stripped_version_number 25600 25601 # The complete version string, with additional build information 25602 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 25603 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25604 else 25605 # If either build or opt is set, we need a + separator 25606 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 25607 fi 25608 25609 # The short version string, just VERSION_NUMBER and PRE, if present. 25610 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25611 25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 25613 $as_echo_n "checking for version string... " >&6; } 25614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 25615 $as_echo "$VERSION_STRING" >&6; } 25616 25617 25618 25619 25620 25621 25622 25623 25624 25625 25626 25627 25628 25629 25630 25631 ############################################################################### 25632 # 25633 # Setup BootJDK, used to bootstrap the build. 25634 # 25635 ############################################################################### 25636 25637 25638 BOOT_JDK_FOUND=no 25639 25640 # Check whether --with-boot-jdk was given. 25641 if test "${with_boot_jdk+set}" = set; then : 25642 withval=$with_boot_jdk; 25643 fi 25644 25645 25646 # We look for the Boot JDK through various means, going from more certain to 25647 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 25648 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 25649 # must check if this is indeed valid; otherwise we'll continue looking. 25650 25651 # Test: Is bootjdk explicitly set by command line arguments? 25652 25653 if test "x$BOOT_JDK_FOUND" = xno; then 25654 # Now execute the test 25655 25656 if test "x$with_boot_jdk" != x; then 25657 BOOT_JDK=$with_boot_jdk 25658 BOOT_JDK_FOUND=maybe 25659 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 25660 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 25661 fi 25662 25663 25664 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25665 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25666 # Do we have a bin/java? 25667 if test ! -x "$BOOT_JDK/bin/java"; then 25668 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25669 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25670 BOOT_JDK_FOUND=no 25671 else 25672 # Do we have a bin/javac? 25673 if test ! -x "$BOOT_JDK/bin/javac"; then 25674 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25675 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25676 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25677 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25678 BOOT_JDK_FOUND=no 25679 else 25680 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25681 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25682 25683 # Extra M4 quote needed to protect [] in grep expression. 25684 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25685 if test "x$FOUND_CORRECT_VERSION" = x; then 25686 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25687 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25688 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25689 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25690 BOOT_JDK_FOUND=no 25691 else 25692 # We're done! :-) 25693 BOOT_JDK_FOUND=yes 25694 25695 # Only process if variable expands to non-empty 25696 25697 if test "x$BOOT_JDK" != x; then 25698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25699 25700 # Input might be given as Windows format, start by converting to 25701 # unix format. 25702 path="$BOOT_JDK" 25703 new_path=`$CYGPATH -u "$path"` 25704 25705 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25706 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25707 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25708 # "foo.exe" is OK but "foo" is an error. 25709 # 25710 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25711 # It is also a way to make sure we got the proper file name for the real test later on. 25712 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25713 if test "x$test_shortpath" = x; then 25714 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25715 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25716 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25717 fi 25718 25719 # Call helper function which possibly converts this using DOS-style short mode. 25720 # If so, the updated path is stored in $new_path. 25721 25722 input_path="$new_path" 25723 # Check if we need to convert this using DOS-style short mode. If the path 25724 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25725 # take no chances and rewrite it. 25726 # Note: m4 eats our [], so we need to use [ and ] instead. 25727 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25728 if test "x$has_forbidden_chars" != x; then 25729 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25730 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25731 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25732 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25733 # Going to short mode and back again did indeed matter. Since short mode is 25734 # case insensitive, let's make it lowercase to improve readability. 25735 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25736 # Now convert it back to Unix-style (cygpath) 25737 input_path=`$CYGPATH -u "$shortmode_path"` 25738 new_path="$input_path" 25739 fi 25740 fi 25741 25742 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25743 if test "x$test_cygdrive_prefix" = x; then 25744 # As a simple fix, exclude /usr/bin since it's not a real path. 25745 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25746 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25747 # a path prefixed by /cygdrive for fixpath to work. 25748 new_path="$CYGWIN_ROOT_PATH$input_path" 25749 fi 25750 fi 25751 25752 25753 if test "x$path" != "x$new_path"; then 25754 BOOT_JDK="$new_path" 25755 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25756 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25757 fi 25758 25759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25760 25761 path="$BOOT_JDK" 25762 has_colon=`$ECHO $path | $GREP ^.:` 25763 new_path="$path" 25764 if test "x$has_colon" = x; then 25765 # Not in mixed or Windows style, start by that. 25766 new_path=`cmd //c echo $path` 25767 fi 25768 25769 25770 input_path="$new_path" 25771 # Check if we need to convert this using DOS-style short mode. If the path 25772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25773 # take no chances and rewrite it. 25774 # Note: m4 eats our [], so we need to use [ and ] instead. 25775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25776 if test "x$has_forbidden_chars" != x; then 25777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25778 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25779 fi 25780 25781 25782 windows_path="$new_path" 25783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25784 unix_path=`$CYGPATH -u "$windows_path"` 25785 new_path="$unix_path" 25786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25787 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25788 new_path="$unix_path" 25789 fi 25790 25791 if test "x$path" != "x$new_path"; then 25792 BOOT_JDK="$new_path" 25793 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25794 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25795 fi 25796 25797 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25798 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25799 25800 else 25801 # We're on a unix platform. Hooray! :) 25802 path="$BOOT_JDK" 25803 has_space=`$ECHO "$path" | $GREP " "` 25804 if test "x$has_space" != x; then 25805 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25806 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25807 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25808 fi 25809 25810 # Use eval to expand a potential ~ 25811 eval path="$path" 25812 if test ! -f "$path" && test ! -d "$path"; then 25813 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25814 fi 25815 25816 if test -d "$path"; then 25817 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25818 else 25819 dir="`$DIRNAME "$path"`" 25820 base="`$BASENAME "$path"`" 25821 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25822 fi 25823 fi 25824 fi 25825 25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25827 $as_echo_n "checking for Boot JDK... " >&6; } 25828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25829 $as_echo "$BOOT_JDK" >&6; } 25830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25831 $as_echo_n "checking Boot JDK version... " >&6; } 25832 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25834 $as_echo "$BOOT_JDK_VERSION" >&6; } 25835 fi # end check jdk version 25836 fi # end check javac 25837 fi # end check java 25838 fi # end check boot jdk found 25839 fi 25840 25841 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 25842 # Having specified an argument which is incorrect will produce an instant failure; 25843 # we should not go on looking 25844 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 25845 fi 25846 25847 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 25848 25849 if test "x$BOOT_JDK_FOUND" = xno; then 25850 # Now execute the test 25851 25852 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25853 # First check at user selected default 25854 25855 if test "x$BOOT_JDK_FOUND" = xno; then 25856 # Now execute the test 25857 25858 if test -x /usr/libexec/java_home; then 25859 BOOT_JDK=`/usr/libexec/java_home ` 25860 BOOT_JDK_FOUND=maybe 25861 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 25862 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 25863 fi 25864 25865 25866 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25867 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25868 # Do we have a bin/java? 25869 if test ! -x "$BOOT_JDK/bin/java"; then 25870 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25871 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25872 BOOT_JDK_FOUND=no 25873 else 25874 # Do we have a bin/javac? 25875 if test ! -x "$BOOT_JDK/bin/javac"; then 25876 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25877 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25878 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25879 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25880 BOOT_JDK_FOUND=no 25881 else 25882 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25883 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25884 25885 # Extra M4 quote needed to protect [] in grep expression. 25886 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25887 if test "x$FOUND_CORRECT_VERSION" = x; then 25888 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25889 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25890 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25891 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25892 BOOT_JDK_FOUND=no 25893 else 25894 # We're done! :-) 25895 BOOT_JDK_FOUND=yes 25896 25897 # Only process if variable expands to non-empty 25898 25899 if test "x$BOOT_JDK" != x; then 25900 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25901 25902 # Input might be given as Windows format, start by converting to 25903 # unix format. 25904 path="$BOOT_JDK" 25905 new_path=`$CYGPATH -u "$path"` 25906 25907 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25908 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25909 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25910 # "foo.exe" is OK but "foo" is an error. 25911 # 25912 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25913 # It is also a way to make sure we got the proper file name for the real test later on. 25914 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25915 if test "x$test_shortpath" = x; then 25916 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25917 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25918 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25919 fi 25920 25921 # Call helper function which possibly converts this using DOS-style short mode. 25922 # If so, the updated path is stored in $new_path. 25923 25924 input_path="$new_path" 25925 # Check if we need to convert this using DOS-style short mode. If the path 25926 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25927 # take no chances and rewrite it. 25928 # Note: m4 eats our [], so we need to use [ and ] instead. 25929 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25930 if test "x$has_forbidden_chars" != x; then 25931 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25932 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25933 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25934 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25935 # Going to short mode and back again did indeed matter. Since short mode is 25936 # case insensitive, let's make it lowercase to improve readability. 25937 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25938 # Now convert it back to Unix-style (cygpath) 25939 input_path=`$CYGPATH -u "$shortmode_path"` 25940 new_path="$input_path" 25941 fi 25942 fi 25943 25944 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25945 if test "x$test_cygdrive_prefix" = x; then 25946 # As a simple fix, exclude /usr/bin since it's not a real path. 25947 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25948 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25949 # a path prefixed by /cygdrive for fixpath to work. 25950 new_path="$CYGWIN_ROOT_PATH$input_path" 25951 fi 25952 fi 25953 25954 25955 if test "x$path" != "x$new_path"; then 25956 BOOT_JDK="$new_path" 25957 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25958 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25959 fi 25960 25961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25962 25963 path="$BOOT_JDK" 25964 has_colon=`$ECHO $path | $GREP ^.:` 25965 new_path="$path" 25966 if test "x$has_colon" = x; then 25967 # Not in mixed or Windows style, start by that. 25968 new_path=`cmd //c echo $path` 25969 fi 25970 25971 25972 input_path="$new_path" 25973 # Check if we need to convert this using DOS-style short mode. If the path 25974 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25975 # take no chances and rewrite it. 25976 # Note: m4 eats our [], so we need to use [ and ] instead. 25977 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25978 if test "x$has_forbidden_chars" != x; then 25979 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25980 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25981 fi 25982 25983 25984 windows_path="$new_path" 25985 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25986 unix_path=`$CYGPATH -u "$windows_path"` 25987 new_path="$unix_path" 25988 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25989 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25990 new_path="$unix_path" 25991 fi 25992 25993 if test "x$path" != "x$new_path"; then 25994 BOOT_JDK="$new_path" 25995 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25996 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25997 fi 25998 25999 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26000 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26001 26002 else 26003 # We're on a unix platform. Hooray! :) 26004 path="$BOOT_JDK" 26005 has_space=`$ECHO "$path" | $GREP " "` 26006 if test "x$has_space" != x; then 26007 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26008 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26009 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26010 fi 26011 26012 # Use eval to expand a potential ~ 26013 eval path="$path" 26014 if test ! -f "$path" && test ! -d "$path"; then 26015 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26016 fi 26017 26018 if test -d "$path"; then 26019 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26020 else 26021 dir="`$DIRNAME "$path"`" 26022 base="`$BASENAME "$path"`" 26023 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26024 fi 26025 fi 26026 fi 26027 26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26029 $as_echo_n "checking for Boot JDK... " >&6; } 26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26031 $as_echo "$BOOT_JDK" >&6; } 26032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26033 $as_echo_n "checking Boot JDK version... " >&6; } 26034 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26036 $as_echo "$BOOT_JDK_VERSION" >&6; } 26037 fi # end check jdk version 26038 fi # end check javac 26039 fi # end check java 26040 fi # end check boot jdk found 26041 fi 26042 26043 # If that did not work out (e.g. too old), try explicit versions instead 26044 26045 if test "x$BOOT_JDK_FOUND" = xno; then 26046 # Now execute the test 26047 26048 if test -x /usr/libexec/java_home; then 26049 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 26050 BOOT_JDK_FOUND=maybe 26051 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 26052 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 26053 fi 26054 26055 26056 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26057 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26058 # Do we have a bin/java? 26059 if test ! -x "$BOOT_JDK/bin/java"; then 26060 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26061 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26062 BOOT_JDK_FOUND=no 26063 else 26064 # Do we have a bin/javac? 26065 if test ! -x "$BOOT_JDK/bin/javac"; then 26066 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26067 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26068 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26069 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26070 BOOT_JDK_FOUND=no 26071 else 26072 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26073 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26074 26075 # Extra M4 quote needed to protect [] in grep expression. 26076 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26077 if test "x$FOUND_CORRECT_VERSION" = x; then 26078 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26079 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26080 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26081 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26082 BOOT_JDK_FOUND=no 26083 else 26084 # We're done! :-) 26085 BOOT_JDK_FOUND=yes 26086 26087 # Only process if variable expands to non-empty 26088 26089 if test "x$BOOT_JDK" != x; then 26090 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26091 26092 # Input might be given as Windows format, start by converting to 26093 # unix format. 26094 path="$BOOT_JDK" 26095 new_path=`$CYGPATH -u "$path"` 26096 26097 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26098 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26099 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26100 # "foo.exe" is OK but "foo" is an error. 26101 # 26102 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26103 # It is also a way to make sure we got the proper file name for the real test later on. 26104 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26105 if test "x$test_shortpath" = x; then 26106 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26107 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26108 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26109 fi 26110 26111 # Call helper function which possibly converts this using DOS-style short mode. 26112 # If so, the updated path is stored in $new_path. 26113 26114 input_path="$new_path" 26115 # Check if we need to convert this using DOS-style short mode. If the path 26116 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26117 # take no chances and rewrite it. 26118 # Note: m4 eats our [], so we need to use [ and ] instead. 26119 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26120 if test "x$has_forbidden_chars" != x; then 26121 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26122 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26123 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26124 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26125 # Going to short mode and back again did indeed matter. Since short mode is 26126 # case insensitive, let's make it lowercase to improve readability. 26127 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26128 # Now convert it back to Unix-style (cygpath) 26129 input_path=`$CYGPATH -u "$shortmode_path"` 26130 new_path="$input_path" 26131 fi 26132 fi 26133 26134 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26135 if test "x$test_cygdrive_prefix" = x; then 26136 # As a simple fix, exclude /usr/bin since it's not a real path. 26137 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26138 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26139 # a path prefixed by /cygdrive for fixpath to work. 26140 new_path="$CYGWIN_ROOT_PATH$input_path" 26141 fi 26142 fi 26143 26144 26145 if test "x$path" != "x$new_path"; then 26146 BOOT_JDK="$new_path" 26147 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26148 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26149 fi 26150 26151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26152 26153 path="$BOOT_JDK" 26154 has_colon=`$ECHO $path | $GREP ^.:` 26155 new_path="$path" 26156 if test "x$has_colon" = x; then 26157 # Not in mixed or Windows style, start by that. 26158 new_path=`cmd //c echo $path` 26159 fi 26160 26161 26162 input_path="$new_path" 26163 # Check if we need to convert this using DOS-style short mode. If the path 26164 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26165 # take no chances and rewrite it. 26166 # Note: m4 eats our [], so we need to use [ and ] instead. 26167 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26168 if test "x$has_forbidden_chars" != x; then 26169 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26170 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26171 fi 26172 26173 26174 windows_path="$new_path" 26175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26176 unix_path=`$CYGPATH -u "$windows_path"` 26177 new_path="$unix_path" 26178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26180 new_path="$unix_path" 26181 fi 26182 26183 if test "x$path" != "x$new_path"; then 26184 BOOT_JDK="$new_path" 26185 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26186 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26187 fi 26188 26189 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26190 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26191 26192 else 26193 # We're on a unix platform. Hooray! :) 26194 path="$BOOT_JDK" 26195 has_space=`$ECHO "$path" | $GREP " "` 26196 if test "x$has_space" != x; then 26197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26198 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26199 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26200 fi 26201 26202 # Use eval to expand a potential ~ 26203 eval path="$path" 26204 if test ! -f "$path" && test ! -d "$path"; then 26205 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26206 fi 26207 26208 if test -d "$path"; then 26209 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26210 else 26211 dir="`$DIRNAME "$path"`" 26212 base="`$BASENAME "$path"`" 26213 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26214 fi 26215 fi 26216 fi 26217 26218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26219 $as_echo_n "checking for Boot JDK... " >&6; } 26220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26221 $as_echo "$BOOT_JDK" >&6; } 26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26223 $as_echo_n "checking Boot JDK version... " >&6; } 26224 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26226 $as_echo "$BOOT_JDK_VERSION" >&6; } 26227 fi # end check jdk version 26228 fi # end check javac 26229 fi # end check java 26230 fi # end check boot jdk found 26231 fi 26232 26233 26234 if test "x$BOOT_JDK_FOUND" = xno; then 26235 # Now execute the test 26236 26237 if test -x /usr/libexec/java_home; then 26238 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 26239 BOOT_JDK_FOUND=maybe 26240 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 26241 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 26242 fi 26243 26244 26245 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26246 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26247 # Do we have a bin/java? 26248 if test ! -x "$BOOT_JDK/bin/java"; then 26249 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26250 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26251 BOOT_JDK_FOUND=no 26252 else 26253 # Do we have a bin/javac? 26254 if test ! -x "$BOOT_JDK/bin/javac"; then 26255 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26257 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26258 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26259 BOOT_JDK_FOUND=no 26260 else 26261 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26262 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26263 26264 # Extra M4 quote needed to protect [] in grep expression. 26265 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26266 if test "x$FOUND_CORRECT_VERSION" = x; then 26267 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26268 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26269 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26270 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26271 BOOT_JDK_FOUND=no 26272 else 26273 # We're done! :-) 26274 BOOT_JDK_FOUND=yes 26275 26276 # Only process if variable expands to non-empty 26277 26278 if test "x$BOOT_JDK" != x; then 26279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26280 26281 # Input might be given as Windows format, start by converting to 26282 # unix format. 26283 path="$BOOT_JDK" 26284 new_path=`$CYGPATH -u "$path"` 26285 26286 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26287 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26288 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26289 # "foo.exe" is OK but "foo" is an error. 26290 # 26291 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26292 # It is also a way to make sure we got the proper file name for the real test later on. 26293 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26294 if test "x$test_shortpath" = x; then 26295 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26296 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26297 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26298 fi 26299 26300 # Call helper function which possibly converts this using DOS-style short mode. 26301 # If so, the updated path is stored in $new_path. 26302 26303 input_path="$new_path" 26304 # Check if we need to convert this using DOS-style short mode. If the path 26305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26306 # take no chances and rewrite it. 26307 # Note: m4 eats our [], so we need to use [ and ] instead. 26308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26309 if test "x$has_forbidden_chars" != x; then 26310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26311 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26312 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26313 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26314 # Going to short mode and back again did indeed matter. Since short mode is 26315 # case insensitive, let's make it lowercase to improve readability. 26316 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26317 # Now convert it back to Unix-style (cygpath) 26318 input_path=`$CYGPATH -u "$shortmode_path"` 26319 new_path="$input_path" 26320 fi 26321 fi 26322 26323 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26324 if test "x$test_cygdrive_prefix" = x; then 26325 # As a simple fix, exclude /usr/bin since it's not a real path. 26326 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26327 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26328 # a path prefixed by /cygdrive for fixpath to work. 26329 new_path="$CYGWIN_ROOT_PATH$input_path" 26330 fi 26331 fi 26332 26333 26334 if test "x$path" != "x$new_path"; then 26335 BOOT_JDK="$new_path" 26336 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26337 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26338 fi 26339 26340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26341 26342 path="$BOOT_JDK" 26343 has_colon=`$ECHO $path | $GREP ^.:` 26344 new_path="$path" 26345 if test "x$has_colon" = x; then 26346 # Not in mixed or Windows style, start by that. 26347 new_path=`cmd //c echo $path` 26348 fi 26349 26350 26351 input_path="$new_path" 26352 # Check if we need to convert this using DOS-style short mode. If the path 26353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26354 # take no chances and rewrite it. 26355 # Note: m4 eats our [], so we need to use [ and ] instead. 26356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26357 if test "x$has_forbidden_chars" != x; then 26358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26359 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26360 fi 26361 26362 26363 windows_path="$new_path" 26364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26365 unix_path=`$CYGPATH -u "$windows_path"` 26366 new_path="$unix_path" 26367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26368 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26369 new_path="$unix_path" 26370 fi 26371 26372 if test "x$path" != "x$new_path"; then 26373 BOOT_JDK="$new_path" 26374 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26375 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26376 fi 26377 26378 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26379 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26380 26381 else 26382 # We're on a unix platform. Hooray! :) 26383 path="$BOOT_JDK" 26384 has_space=`$ECHO "$path" | $GREP " "` 26385 if test "x$has_space" != x; then 26386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26387 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26388 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26389 fi 26390 26391 # Use eval to expand a potential ~ 26392 eval path="$path" 26393 if test ! -f "$path" && test ! -d "$path"; then 26394 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26395 fi 26396 26397 if test -d "$path"; then 26398 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26399 else 26400 dir="`$DIRNAME "$path"`" 26401 base="`$BASENAME "$path"`" 26402 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26403 fi 26404 fi 26405 fi 26406 26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26408 $as_echo_n "checking for Boot JDK... " >&6; } 26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26410 $as_echo "$BOOT_JDK" >&6; } 26411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26412 $as_echo_n "checking Boot JDK version... " >&6; } 26413 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26415 $as_echo "$BOOT_JDK_VERSION" >&6; } 26416 fi # end check jdk version 26417 fi # end check javac 26418 fi # end check java 26419 fi # end check boot jdk found 26420 fi 26421 26422 26423 if test "x$BOOT_JDK_FOUND" = xno; then 26424 # Now execute the test 26425 26426 if test -x /usr/libexec/java_home; then 26427 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 26428 BOOT_JDK_FOUND=maybe 26429 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 26430 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 26431 fi 26432 26433 26434 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26435 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26436 # Do we have a bin/java? 26437 if test ! -x "$BOOT_JDK/bin/java"; then 26438 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26439 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26440 BOOT_JDK_FOUND=no 26441 else 26442 # Do we have a bin/javac? 26443 if test ! -x "$BOOT_JDK/bin/javac"; then 26444 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26445 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26446 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26447 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26448 BOOT_JDK_FOUND=no 26449 else 26450 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26451 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26452 26453 # Extra M4 quote needed to protect [] in grep expression. 26454 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26455 if test "x$FOUND_CORRECT_VERSION" = x; then 26456 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26457 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26458 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26459 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26460 BOOT_JDK_FOUND=no 26461 else 26462 # We're done! :-) 26463 BOOT_JDK_FOUND=yes 26464 26465 # Only process if variable expands to non-empty 26466 26467 if test "x$BOOT_JDK" != x; then 26468 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26469 26470 # Input might be given as Windows format, start by converting to 26471 # unix format. 26472 path="$BOOT_JDK" 26473 new_path=`$CYGPATH -u "$path"` 26474 26475 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26476 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26477 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26478 # "foo.exe" is OK but "foo" is an error. 26479 # 26480 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26481 # It is also a way to make sure we got the proper file name for the real test later on. 26482 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26483 if test "x$test_shortpath" = x; then 26484 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26485 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26486 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26487 fi 26488 26489 # Call helper function which possibly converts this using DOS-style short mode. 26490 # If so, the updated path is stored in $new_path. 26491 26492 input_path="$new_path" 26493 # Check if we need to convert this using DOS-style short mode. If the path 26494 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26495 # take no chances and rewrite it. 26496 # Note: m4 eats our [], so we need to use [ and ] instead. 26497 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26498 if test "x$has_forbidden_chars" != x; then 26499 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26500 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26501 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26502 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26503 # Going to short mode and back again did indeed matter. Since short mode is 26504 # case insensitive, let's make it lowercase to improve readability. 26505 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26506 # Now convert it back to Unix-style (cygpath) 26507 input_path=`$CYGPATH -u "$shortmode_path"` 26508 new_path="$input_path" 26509 fi 26510 fi 26511 26512 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26513 if test "x$test_cygdrive_prefix" = x; then 26514 # As a simple fix, exclude /usr/bin since it's not a real path. 26515 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26516 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26517 # a path prefixed by /cygdrive for fixpath to work. 26518 new_path="$CYGWIN_ROOT_PATH$input_path" 26519 fi 26520 fi 26521 26522 26523 if test "x$path" != "x$new_path"; then 26524 BOOT_JDK="$new_path" 26525 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26526 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26527 fi 26528 26529 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26530 26531 path="$BOOT_JDK" 26532 has_colon=`$ECHO $path | $GREP ^.:` 26533 new_path="$path" 26534 if test "x$has_colon" = x; then 26535 # Not in mixed or Windows style, start by that. 26536 new_path=`cmd //c echo $path` 26537 fi 26538 26539 26540 input_path="$new_path" 26541 # Check if we need to convert this using DOS-style short mode. If the path 26542 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26543 # take no chances and rewrite it. 26544 # Note: m4 eats our [], so we need to use [ and ] instead. 26545 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26546 if test "x$has_forbidden_chars" != x; then 26547 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26548 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26549 fi 26550 26551 26552 windows_path="$new_path" 26553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26554 unix_path=`$CYGPATH -u "$windows_path"` 26555 new_path="$unix_path" 26556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26557 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26558 new_path="$unix_path" 26559 fi 26560 26561 if test "x$path" != "x$new_path"; then 26562 BOOT_JDK="$new_path" 26563 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26564 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26565 fi 26566 26567 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26568 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26569 26570 else 26571 # We're on a unix platform. Hooray! :) 26572 path="$BOOT_JDK" 26573 has_space=`$ECHO "$path" | $GREP " "` 26574 if test "x$has_space" != x; then 26575 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26576 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26577 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26578 fi 26579 26580 # Use eval to expand a potential ~ 26581 eval path="$path" 26582 if test ! -f "$path" && test ! -d "$path"; then 26583 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26584 fi 26585 26586 if test -d "$path"; then 26587 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26588 else 26589 dir="`$DIRNAME "$path"`" 26590 base="`$BASENAME "$path"`" 26591 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26592 fi 26593 fi 26594 fi 26595 26596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26597 $as_echo_n "checking for Boot JDK... " >&6; } 26598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26599 $as_echo "$BOOT_JDK" >&6; } 26600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26601 $as_echo_n "checking Boot JDK version... " >&6; } 26602 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26604 $as_echo "$BOOT_JDK_VERSION" >&6; } 26605 fi # end check jdk version 26606 fi # end check javac 26607 fi # end check java 26608 fi # end check boot jdk found 26609 fi 26610 26611 fi 26612 26613 26614 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26615 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26616 # Do we have a bin/java? 26617 if test ! -x "$BOOT_JDK/bin/java"; then 26618 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26620 BOOT_JDK_FOUND=no 26621 else 26622 # Do we have a bin/javac? 26623 if test ! -x "$BOOT_JDK/bin/javac"; then 26624 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26625 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26626 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26627 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26628 BOOT_JDK_FOUND=no 26629 else 26630 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26631 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26632 26633 # Extra M4 quote needed to protect [] in grep expression. 26634 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26635 if test "x$FOUND_CORRECT_VERSION" = x; then 26636 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26637 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26638 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26639 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26640 BOOT_JDK_FOUND=no 26641 else 26642 # We're done! :-) 26643 BOOT_JDK_FOUND=yes 26644 26645 # Only process if variable expands to non-empty 26646 26647 if test "x$BOOT_JDK" != x; then 26648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26649 26650 # Input might be given as Windows format, start by converting to 26651 # unix format. 26652 path="$BOOT_JDK" 26653 new_path=`$CYGPATH -u "$path"` 26654 26655 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26656 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26657 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26658 # "foo.exe" is OK but "foo" is an error. 26659 # 26660 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26661 # It is also a way to make sure we got the proper file name for the real test later on. 26662 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26663 if test "x$test_shortpath" = x; then 26664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26665 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26666 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26667 fi 26668 26669 # Call helper function which possibly converts this using DOS-style short mode. 26670 # If so, the updated path is stored in $new_path. 26671 26672 input_path="$new_path" 26673 # Check if we need to convert this using DOS-style short mode. If the path 26674 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26675 # take no chances and rewrite it. 26676 # Note: m4 eats our [], so we need to use [ and ] instead. 26677 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26678 if test "x$has_forbidden_chars" != x; then 26679 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26680 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26681 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26682 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26683 # Going to short mode and back again did indeed matter. Since short mode is 26684 # case insensitive, let's make it lowercase to improve readability. 26685 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26686 # Now convert it back to Unix-style (cygpath) 26687 input_path=`$CYGPATH -u "$shortmode_path"` 26688 new_path="$input_path" 26689 fi 26690 fi 26691 26692 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26693 if test "x$test_cygdrive_prefix" = x; then 26694 # As a simple fix, exclude /usr/bin since it's not a real path. 26695 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26696 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26697 # a path prefixed by /cygdrive for fixpath to work. 26698 new_path="$CYGWIN_ROOT_PATH$input_path" 26699 fi 26700 fi 26701 26702 26703 if test "x$path" != "x$new_path"; then 26704 BOOT_JDK="$new_path" 26705 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26706 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26707 fi 26708 26709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26710 26711 path="$BOOT_JDK" 26712 has_colon=`$ECHO $path | $GREP ^.:` 26713 new_path="$path" 26714 if test "x$has_colon" = x; then 26715 # Not in mixed or Windows style, start by that. 26716 new_path=`cmd //c echo $path` 26717 fi 26718 26719 26720 input_path="$new_path" 26721 # Check if we need to convert this using DOS-style short mode. If the path 26722 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26723 # take no chances and rewrite it. 26724 # Note: m4 eats our [], so we need to use [ and ] instead. 26725 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26726 if test "x$has_forbidden_chars" != x; then 26727 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26728 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26729 fi 26730 26731 26732 windows_path="$new_path" 26733 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26734 unix_path=`$CYGPATH -u "$windows_path"` 26735 new_path="$unix_path" 26736 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26737 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26738 new_path="$unix_path" 26739 fi 26740 26741 if test "x$path" != "x$new_path"; then 26742 BOOT_JDK="$new_path" 26743 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26744 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26745 fi 26746 26747 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26748 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26749 26750 else 26751 # We're on a unix platform. Hooray! :) 26752 path="$BOOT_JDK" 26753 has_space=`$ECHO "$path" | $GREP " "` 26754 if test "x$has_space" != x; then 26755 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26756 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26757 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26758 fi 26759 26760 # Use eval to expand a potential ~ 26761 eval path="$path" 26762 if test ! -f "$path" && test ! -d "$path"; then 26763 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26764 fi 26765 26766 if test -d "$path"; then 26767 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26768 else 26769 dir="`$DIRNAME "$path"`" 26770 base="`$BASENAME "$path"`" 26771 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26772 fi 26773 fi 26774 fi 26775 26776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26777 $as_echo_n "checking for Boot JDK... " >&6; } 26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26779 $as_echo "$BOOT_JDK" >&6; } 26780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26781 $as_echo_n "checking Boot JDK version... " >&6; } 26782 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26784 $as_echo "$BOOT_JDK_VERSION" >&6; } 26785 fi # end check jdk version 26786 fi # end check javac 26787 fi # end check java 26788 fi # end check boot jdk found 26789 fi 26790 26791 26792 # Test: Is $JAVA_HOME set? 26793 26794 if test "x$BOOT_JDK_FOUND" = xno; then 26795 # Now execute the test 26796 26797 if test "x$JAVA_HOME" != x; then 26798 JAVA_HOME_PROCESSED="$JAVA_HOME" 26799 26800 # Only process if variable expands to non-empty 26801 26802 if test "x$JAVA_HOME_PROCESSED" != x; then 26803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26804 26805 # Input might be given as Windows format, start by converting to 26806 # unix format. 26807 path="$JAVA_HOME_PROCESSED" 26808 new_path=`$CYGPATH -u "$path"` 26809 26810 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26811 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26812 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26813 # "foo.exe" is OK but "foo" is an error. 26814 # 26815 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26816 # It is also a way to make sure we got the proper file name for the real test later on. 26817 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26818 if test "x$test_shortpath" = x; then 26819 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26820 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26821 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 26822 fi 26823 26824 # Call helper function which possibly converts this using DOS-style short mode. 26825 # If so, the updated path is stored in $new_path. 26826 26827 input_path="$new_path" 26828 # Check if we need to convert this using DOS-style short mode. If the path 26829 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26830 # take no chances and rewrite it. 26831 # Note: m4 eats our [], so we need to use [ and ] instead. 26832 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26833 if test "x$has_forbidden_chars" != x; then 26834 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26835 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26836 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26837 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26838 # Going to short mode and back again did indeed matter. Since short mode is 26839 # case insensitive, let's make it lowercase to improve readability. 26840 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26841 # Now convert it back to Unix-style (cygpath) 26842 input_path=`$CYGPATH -u "$shortmode_path"` 26843 new_path="$input_path" 26844 fi 26845 fi 26846 26847 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26848 if test "x$test_cygdrive_prefix" = x; then 26849 # As a simple fix, exclude /usr/bin since it's not a real path. 26850 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26851 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26852 # a path prefixed by /cygdrive for fixpath to work. 26853 new_path="$CYGWIN_ROOT_PATH$input_path" 26854 fi 26855 fi 26856 26857 26858 if test "x$path" != "x$new_path"; then 26859 JAVA_HOME_PROCESSED="$new_path" 26860 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26861 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26862 fi 26863 26864 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26865 26866 path="$JAVA_HOME_PROCESSED" 26867 has_colon=`$ECHO $path | $GREP ^.:` 26868 new_path="$path" 26869 if test "x$has_colon" = x; then 26870 # Not in mixed or Windows style, start by that. 26871 new_path=`cmd //c echo $path` 26872 fi 26873 26874 26875 input_path="$new_path" 26876 # Check if we need to convert this using DOS-style short mode. If the path 26877 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26878 # take no chances and rewrite it. 26879 # Note: m4 eats our [], so we need to use [ and ] instead. 26880 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26881 if test "x$has_forbidden_chars" != x; then 26882 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26883 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26884 fi 26885 26886 26887 windows_path="$new_path" 26888 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26889 unix_path=`$CYGPATH -u "$windows_path"` 26890 new_path="$unix_path" 26891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26892 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26893 new_path="$unix_path" 26894 fi 26895 26896 if test "x$path" != "x$new_path"; then 26897 JAVA_HOME_PROCESSED="$new_path" 26898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26899 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26900 fi 26901 26902 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26903 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26904 26905 else 26906 # We're on a unix platform. Hooray! :) 26907 path="$JAVA_HOME_PROCESSED" 26908 has_space=`$ECHO "$path" | $GREP " "` 26909 if test "x$has_space" != x; then 26910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26911 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26912 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26913 fi 26914 26915 # Use eval to expand a potential ~ 26916 eval path="$path" 26917 if test ! -f "$path" && test ! -d "$path"; then 26918 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26919 fi 26920 26921 if test -d "$path"; then 26922 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26923 else 26924 dir="`$DIRNAME "$path"`" 26925 base="`$BASENAME "$path"`" 26926 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26927 fi 26928 fi 26929 fi 26930 26931 if test ! -d "$JAVA_HOME_PROCESSED"; then 26932 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26933 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26934 else 26935 # Aha, the user has set a JAVA_HOME 26936 # let us use that as the Boot JDK. 26937 BOOT_JDK="$JAVA_HOME_PROCESSED" 26938 BOOT_JDK_FOUND=maybe 26939 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26940 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26941 fi 26942 fi 26943 26944 26945 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26946 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26947 # Do we have a bin/java? 26948 if test ! -x "$BOOT_JDK/bin/java"; then 26949 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26950 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26951 BOOT_JDK_FOUND=no 26952 else 26953 # Do we have a bin/javac? 26954 if test ! -x "$BOOT_JDK/bin/javac"; then 26955 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26956 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26957 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26958 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26959 BOOT_JDK_FOUND=no 26960 else 26961 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26962 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26963 26964 # Extra M4 quote needed to protect [] in grep expression. 26965 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26966 if test "x$FOUND_CORRECT_VERSION" = x; then 26967 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26968 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26969 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26970 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26971 BOOT_JDK_FOUND=no 26972 else 26973 # We're done! :-) 26974 BOOT_JDK_FOUND=yes 26975 26976 # Only process if variable expands to non-empty 26977 26978 if test "x$BOOT_JDK" != x; then 26979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26980 26981 # Input might be given as Windows format, start by converting to 26982 # unix format. 26983 path="$BOOT_JDK" 26984 new_path=`$CYGPATH -u "$path"` 26985 26986 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26987 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26988 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26989 # "foo.exe" is OK but "foo" is an error. 26990 # 26991 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26992 # It is also a way to make sure we got the proper file name for the real test later on. 26993 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26994 if test "x$test_shortpath" = x; then 26995 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26996 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26997 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26998 fi 26999 27000 # Call helper function which possibly converts this using DOS-style short mode. 27001 # If so, the updated path is stored in $new_path. 27002 27003 input_path="$new_path" 27004 # Check if we need to convert this using DOS-style short mode. If the path 27005 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27006 # take no chances and rewrite it. 27007 # Note: m4 eats our [], so we need to use [ and ] instead. 27008 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27009 if test "x$has_forbidden_chars" != x; then 27010 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27011 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27012 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27013 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27014 # Going to short mode and back again did indeed matter. Since short mode is 27015 # case insensitive, let's make it lowercase to improve readability. 27016 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27017 # Now convert it back to Unix-style (cygpath) 27018 input_path=`$CYGPATH -u "$shortmode_path"` 27019 new_path="$input_path" 27020 fi 27021 fi 27022 27023 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27024 if test "x$test_cygdrive_prefix" = x; then 27025 # As a simple fix, exclude /usr/bin since it's not a real path. 27026 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27027 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27028 # a path prefixed by /cygdrive for fixpath to work. 27029 new_path="$CYGWIN_ROOT_PATH$input_path" 27030 fi 27031 fi 27032 27033 27034 if test "x$path" != "x$new_path"; then 27035 BOOT_JDK="$new_path" 27036 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27037 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27038 fi 27039 27040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27041 27042 path="$BOOT_JDK" 27043 has_colon=`$ECHO $path | $GREP ^.:` 27044 new_path="$path" 27045 if test "x$has_colon" = x; then 27046 # Not in mixed or Windows style, start by that. 27047 new_path=`cmd //c echo $path` 27048 fi 27049 27050 27051 input_path="$new_path" 27052 # Check if we need to convert this using DOS-style short mode. If the path 27053 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27054 # take no chances and rewrite it. 27055 # Note: m4 eats our [], so we need to use [ and ] instead. 27056 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27057 if test "x$has_forbidden_chars" != x; then 27058 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27059 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27060 fi 27061 27062 27063 windows_path="$new_path" 27064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27065 unix_path=`$CYGPATH -u "$windows_path"` 27066 new_path="$unix_path" 27067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27068 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27069 new_path="$unix_path" 27070 fi 27071 27072 if test "x$path" != "x$new_path"; then 27073 BOOT_JDK="$new_path" 27074 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27075 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27076 fi 27077 27078 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27079 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27080 27081 else 27082 # We're on a unix platform. Hooray! :) 27083 path="$BOOT_JDK" 27084 has_space=`$ECHO "$path" | $GREP " "` 27085 if test "x$has_space" != x; then 27086 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27087 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27088 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27089 fi 27090 27091 # Use eval to expand a potential ~ 27092 eval path="$path" 27093 if test ! -f "$path" && test ! -d "$path"; then 27094 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27095 fi 27096 27097 if test -d "$path"; then 27098 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27099 else 27100 dir="`$DIRNAME "$path"`" 27101 base="`$BASENAME "$path"`" 27102 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27103 fi 27104 fi 27105 fi 27106 27107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27108 $as_echo_n "checking for Boot JDK... " >&6; } 27109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27110 $as_echo "$BOOT_JDK" >&6; } 27111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27112 $as_echo_n "checking Boot JDK version... " >&6; } 27113 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27115 $as_echo "$BOOT_JDK_VERSION" >&6; } 27116 fi # end check jdk version 27117 fi # end check javac 27118 fi # end check java 27119 fi # end check boot jdk found 27120 fi 27121 27122 27123 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 27124 27125 if test "x$BOOT_JDK_FOUND" = xno; then 27126 # Now execute the test 27127 27128 # Extract the first word of "javac", so it can be a program name with args. 27129 set dummy javac; ac_word=$2 27130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27131 $as_echo_n "checking for $ac_word... " >&6; } 27132 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 27133 $as_echo_n "(cached) " >&6 27134 else 27135 case $JAVAC_CHECK in 27136 [\\/]* | ?:[\\/]*) 27137 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 27138 ;; 27139 *) 27140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27141 for as_dir in $PATH 27142 do 27143 IFS=$as_save_IFS 27144 test -z "$as_dir" && as_dir=. 27145 for ac_exec_ext in '' $ac_executable_extensions; do 27146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27147 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 27148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27149 break 2 27150 fi 27151 done 27152 done 27153 IFS=$as_save_IFS 27154 27155 ;; 27156 esac 27157 fi 27158 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 27159 if test -n "$JAVAC_CHECK"; then 27160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 27161 $as_echo "$JAVAC_CHECK" >&6; } 27162 else 27163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27164 $as_echo "no" >&6; } 27165 fi 27166 27167 27168 # Extract the first word of "java", so it can be a program name with args. 27169 set dummy java; ac_word=$2 27170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27171 $as_echo_n "checking for $ac_word... " >&6; } 27172 if ${ac_cv_path_JAVA_CHECK+:} false; then : 27173 $as_echo_n "(cached) " >&6 27174 else 27175 case $JAVA_CHECK in 27176 [\\/]* | ?:[\\/]*) 27177 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 27178 ;; 27179 *) 27180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27181 for as_dir in $PATH 27182 do 27183 IFS=$as_save_IFS 27184 test -z "$as_dir" && as_dir=. 27185 for ac_exec_ext in '' $ac_executable_extensions; do 27186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27187 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 27188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27189 break 2 27190 fi 27191 done 27192 done 27193 IFS=$as_save_IFS 27194 27195 ;; 27196 esac 27197 fi 27198 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 27199 if test -n "$JAVA_CHECK"; then 27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 27201 $as_echo "$JAVA_CHECK" >&6; } 27202 else 27203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27204 $as_echo "no" >&6; } 27205 fi 27206 27207 27208 BINARY="$JAVAC_CHECK" 27209 if test "x$JAVAC_CHECK" = x; then 27210 BINARY="$JAVA_CHECK" 27211 fi 27212 if test "x$BINARY" != x; then 27213 # So there is a java(c) binary, it might be part of a JDK. 27214 # Lets find the JDK/JRE directory by following symbolic links. 27215 # Linux/GNU systems often have links from /usr/bin/java to 27216 # /etc/alternatives/java to the real JDK binary. 27217 27218 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27219 # Follow a chain of symbolic links. Use readlink 27220 # where it exists, else fall back to horribly 27221 # complicated shell code. 27222 if test "x$READLINK_TESTED" != yes; then 27223 # On MacOSX there is a readlink tool with a different 27224 # purpose than the GNU readlink tool. Check the found readlink. 27225 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27226 if test "x$ISGNU" = x; then 27227 # A readlink that we do not know how to use. 27228 # Are there other non-GNU readlinks out there? 27229 READLINK_TESTED=yes 27230 READLINK= 27231 fi 27232 fi 27233 27234 if test "x$READLINK" != x; then 27235 BINARY=`$READLINK -f $BINARY` 27236 else 27237 # Save the current directory for restoring afterwards 27238 STARTDIR=$PWD 27239 COUNTER=0 27240 sym_link_dir=`$DIRNAME $BINARY` 27241 sym_link_file=`$BASENAME $BINARY` 27242 cd $sym_link_dir 27243 # Use -P flag to resolve symlinks in directories. 27244 cd `$THEPWDCMD -P` 27245 sym_link_dir=`$THEPWDCMD -P` 27246 # Resolve file symlinks 27247 while test $COUNTER -lt 20; do 27248 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27249 if test "x$ISLINK" == x; then 27250 # This is not a symbolic link! We are done! 27251 break 27252 fi 27253 # Again resolve directory symlinks since the target of the just found 27254 # link could be in a different directory 27255 cd `$DIRNAME $ISLINK` 27256 sym_link_dir=`$THEPWDCMD -P` 27257 sym_link_file=`$BASENAME $ISLINK` 27258 let COUNTER=COUNTER+1 27259 done 27260 cd $STARTDIR 27261 BINARY=$sym_link_dir/$sym_link_file 27262 fi 27263 fi 27264 27265 BOOT_JDK=`dirname "$BINARY"` 27266 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 27267 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 27268 # Looks like we found ourselves an JDK 27269 BOOT_JDK_FOUND=maybe 27270 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 27271 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 27272 fi 27273 fi 27274 27275 27276 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27277 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27278 # Do we have a bin/java? 27279 if test ! -x "$BOOT_JDK/bin/java"; then 27280 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27281 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27282 BOOT_JDK_FOUND=no 27283 else 27284 # Do we have a bin/javac? 27285 if test ! -x "$BOOT_JDK/bin/javac"; then 27286 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27287 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27288 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27289 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27290 BOOT_JDK_FOUND=no 27291 else 27292 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27293 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27294 27295 # Extra M4 quote needed to protect [] in grep expression. 27296 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27297 if test "x$FOUND_CORRECT_VERSION" = x; then 27298 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27299 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27300 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27301 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27302 BOOT_JDK_FOUND=no 27303 else 27304 # We're done! :-) 27305 BOOT_JDK_FOUND=yes 27306 27307 # Only process if variable expands to non-empty 27308 27309 if test "x$BOOT_JDK" != x; then 27310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27311 27312 # Input might be given as Windows format, start by converting to 27313 # unix format. 27314 path="$BOOT_JDK" 27315 new_path=`$CYGPATH -u "$path"` 27316 27317 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27318 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27319 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27320 # "foo.exe" is OK but "foo" is an error. 27321 # 27322 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27323 # It is also a way to make sure we got the proper file name for the real test later on. 27324 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27325 if test "x$test_shortpath" = x; then 27326 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27327 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27328 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27329 fi 27330 27331 # Call helper function which possibly converts this using DOS-style short mode. 27332 # If so, the updated path is stored in $new_path. 27333 27334 input_path="$new_path" 27335 # Check if we need to convert this using DOS-style short mode. If the path 27336 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27337 # take no chances and rewrite it. 27338 # Note: m4 eats our [], so we need to use [ and ] instead. 27339 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27340 if test "x$has_forbidden_chars" != x; then 27341 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27342 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27343 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27344 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27345 # Going to short mode and back again did indeed matter. Since short mode is 27346 # case insensitive, let's make it lowercase to improve readability. 27347 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27348 # Now convert it back to Unix-style (cygpath) 27349 input_path=`$CYGPATH -u "$shortmode_path"` 27350 new_path="$input_path" 27351 fi 27352 fi 27353 27354 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27355 if test "x$test_cygdrive_prefix" = x; then 27356 # As a simple fix, exclude /usr/bin since it's not a real path. 27357 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27358 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27359 # a path prefixed by /cygdrive for fixpath to work. 27360 new_path="$CYGWIN_ROOT_PATH$input_path" 27361 fi 27362 fi 27363 27364 27365 if test "x$path" != "x$new_path"; then 27366 BOOT_JDK="$new_path" 27367 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27368 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27369 fi 27370 27371 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27372 27373 path="$BOOT_JDK" 27374 has_colon=`$ECHO $path | $GREP ^.:` 27375 new_path="$path" 27376 if test "x$has_colon" = x; then 27377 # Not in mixed or Windows style, start by that. 27378 new_path=`cmd //c echo $path` 27379 fi 27380 27381 27382 input_path="$new_path" 27383 # Check if we need to convert this using DOS-style short mode. If the path 27384 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27385 # take no chances and rewrite it. 27386 # Note: m4 eats our [], so we need to use [ and ] instead. 27387 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27388 if test "x$has_forbidden_chars" != x; then 27389 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27390 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27391 fi 27392 27393 27394 windows_path="$new_path" 27395 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27396 unix_path=`$CYGPATH -u "$windows_path"` 27397 new_path="$unix_path" 27398 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27399 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27400 new_path="$unix_path" 27401 fi 27402 27403 if test "x$path" != "x$new_path"; then 27404 BOOT_JDK="$new_path" 27405 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27406 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27407 fi 27408 27409 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27410 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27411 27412 else 27413 # We're on a unix platform. Hooray! :) 27414 path="$BOOT_JDK" 27415 has_space=`$ECHO "$path" | $GREP " "` 27416 if test "x$has_space" != x; then 27417 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27418 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27419 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27420 fi 27421 27422 # Use eval to expand a potential ~ 27423 eval path="$path" 27424 if test ! -f "$path" && test ! -d "$path"; then 27425 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27426 fi 27427 27428 if test -d "$path"; then 27429 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27430 else 27431 dir="`$DIRNAME "$path"`" 27432 base="`$BASENAME "$path"`" 27433 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27434 fi 27435 fi 27436 fi 27437 27438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27439 $as_echo_n "checking for Boot JDK... " >&6; } 27440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27441 $as_echo "$BOOT_JDK" >&6; } 27442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27443 $as_echo_n "checking Boot JDK version... " >&6; } 27444 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27446 $as_echo "$BOOT_JDK_VERSION" >&6; } 27447 fi # end check jdk version 27448 fi # end check javac 27449 fi # end check java 27450 fi # end check boot jdk found 27451 fi 27452 27453 27454 # Test: Is there a JDK installed in default, well-known locations? 27455 27456 if test "x$BOOT_JDK_FOUND" = xno; then 27457 # Now execute the test 27458 27459 if test "x$OPENJDK_TARGET_OS" = xwindows; then 27460 27461 if test "x$BOOT_JDK_FOUND" = xno; then 27462 # Now execute the test 27463 27464 if test "x$ProgramW6432" != x; then 27465 VIRTUAL_DIR="$ProgramW6432/Java" 27466 27467 windows_path="$VIRTUAL_DIR" 27468 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27469 unix_path=`$CYGPATH -u "$windows_path"` 27470 VIRTUAL_DIR="$unix_path" 27471 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27472 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27473 VIRTUAL_DIR="$unix_path" 27474 fi 27475 27476 27477 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27478 BOOT_JDK_SUFFIX="" 27479 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27480 if test "x$ALL_JDKS_FOUND" != x; then 27481 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27482 27483 if test "x$BOOT_JDK_FOUND" = xno; then 27484 # Now execute the test 27485 27486 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27487 if test -d "$BOOT_JDK"; then 27488 BOOT_JDK_FOUND=maybe 27489 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27490 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27491 fi 27492 27493 27494 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27495 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27496 # Do we have a bin/java? 27497 if test ! -x "$BOOT_JDK/bin/java"; then 27498 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27499 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27500 BOOT_JDK_FOUND=no 27501 else 27502 # Do we have a bin/javac? 27503 if test ! -x "$BOOT_JDK/bin/javac"; then 27504 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27505 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27506 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27507 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27508 BOOT_JDK_FOUND=no 27509 else 27510 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27511 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27512 27513 # Extra M4 quote needed to protect [] in grep expression. 27514 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27515 if test "x$FOUND_CORRECT_VERSION" = x; then 27516 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27517 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27518 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27519 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27520 BOOT_JDK_FOUND=no 27521 else 27522 # We're done! :-) 27523 BOOT_JDK_FOUND=yes 27524 27525 # Only process if variable expands to non-empty 27526 27527 if test "x$BOOT_JDK" != x; then 27528 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27529 27530 # Input might be given as Windows format, start by converting to 27531 # unix format. 27532 path="$BOOT_JDK" 27533 new_path=`$CYGPATH -u "$path"` 27534 27535 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27536 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27537 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27538 # "foo.exe" is OK but "foo" is an error. 27539 # 27540 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27541 # It is also a way to make sure we got the proper file name for the real test later on. 27542 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27543 if test "x$test_shortpath" = x; then 27544 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27545 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27546 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27547 fi 27548 27549 # Call helper function which possibly converts this using DOS-style short mode. 27550 # If so, the updated path is stored in $new_path. 27551 27552 input_path="$new_path" 27553 # Check if we need to convert this using DOS-style short mode. If the path 27554 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27555 # take no chances and rewrite it. 27556 # Note: m4 eats our [], so we need to use [ and ] instead. 27557 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27558 if test "x$has_forbidden_chars" != x; then 27559 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27560 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27561 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27562 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27563 # Going to short mode and back again did indeed matter. Since short mode is 27564 # case insensitive, let's make it lowercase to improve readability. 27565 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27566 # Now convert it back to Unix-style (cygpath) 27567 input_path=`$CYGPATH -u "$shortmode_path"` 27568 new_path="$input_path" 27569 fi 27570 fi 27571 27572 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27573 if test "x$test_cygdrive_prefix" = x; then 27574 # As a simple fix, exclude /usr/bin since it's not a real path. 27575 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27576 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27577 # a path prefixed by /cygdrive for fixpath to work. 27578 new_path="$CYGWIN_ROOT_PATH$input_path" 27579 fi 27580 fi 27581 27582 27583 if test "x$path" != "x$new_path"; then 27584 BOOT_JDK="$new_path" 27585 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27586 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27587 fi 27588 27589 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27590 27591 path="$BOOT_JDK" 27592 has_colon=`$ECHO $path | $GREP ^.:` 27593 new_path="$path" 27594 if test "x$has_colon" = x; then 27595 # Not in mixed or Windows style, start by that. 27596 new_path=`cmd //c echo $path` 27597 fi 27598 27599 27600 input_path="$new_path" 27601 # Check if we need to convert this using DOS-style short mode. If the path 27602 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27603 # take no chances and rewrite it. 27604 # Note: m4 eats our [], so we need to use [ and ] instead. 27605 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27606 if test "x$has_forbidden_chars" != x; then 27607 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27608 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27609 fi 27610 27611 27612 windows_path="$new_path" 27613 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27614 unix_path=`$CYGPATH -u "$windows_path"` 27615 new_path="$unix_path" 27616 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27617 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27618 new_path="$unix_path" 27619 fi 27620 27621 if test "x$path" != "x$new_path"; then 27622 BOOT_JDK="$new_path" 27623 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27624 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27625 fi 27626 27627 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27628 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27629 27630 else 27631 # We're on a unix platform. Hooray! :) 27632 path="$BOOT_JDK" 27633 has_space=`$ECHO "$path" | $GREP " "` 27634 if test "x$has_space" != x; then 27635 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27636 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27637 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27638 fi 27639 27640 # Use eval to expand a potential ~ 27641 eval path="$path" 27642 if test ! -f "$path" && test ! -d "$path"; then 27643 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27644 fi 27645 27646 if test -d "$path"; then 27647 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27648 else 27649 dir="`$DIRNAME "$path"`" 27650 base="`$BASENAME "$path"`" 27651 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27652 fi 27653 fi 27654 fi 27655 27656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27657 $as_echo_n "checking for Boot JDK... " >&6; } 27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27659 $as_echo "$BOOT_JDK" >&6; } 27660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27661 $as_echo_n "checking Boot JDK version... " >&6; } 27662 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27664 $as_echo "$BOOT_JDK_VERSION" >&6; } 27665 fi # end check jdk version 27666 fi # end check javac 27667 fi # end check java 27668 fi # end check boot jdk found 27669 fi 27670 27671 done 27672 fi 27673 27674 fi 27675 27676 27677 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27678 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27679 # Do we have a bin/java? 27680 if test ! -x "$BOOT_JDK/bin/java"; then 27681 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27682 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27683 BOOT_JDK_FOUND=no 27684 else 27685 # Do we have a bin/javac? 27686 if test ! -x "$BOOT_JDK/bin/javac"; then 27687 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27688 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27689 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27690 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27691 BOOT_JDK_FOUND=no 27692 else 27693 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27694 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27695 27696 # Extra M4 quote needed to protect [] in grep expression. 27697 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27698 if test "x$FOUND_CORRECT_VERSION" = x; then 27699 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27700 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27701 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27702 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27703 BOOT_JDK_FOUND=no 27704 else 27705 # We're done! :-) 27706 BOOT_JDK_FOUND=yes 27707 27708 # Only process if variable expands to non-empty 27709 27710 if test "x$BOOT_JDK" != x; then 27711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27712 27713 # Input might be given as Windows format, start by converting to 27714 # unix format. 27715 path="$BOOT_JDK" 27716 new_path=`$CYGPATH -u "$path"` 27717 27718 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27719 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27720 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27721 # "foo.exe" is OK but "foo" is an error. 27722 # 27723 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27724 # It is also a way to make sure we got the proper file name for the real test later on. 27725 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27726 if test "x$test_shortpath" = x; then 27727 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27728 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27729 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27730 fi 27731 27732 # Call helper function which possibly converts this using DOS-style short mode. 27733 # If so, the updated path is stored in $new_path. 27734 27735 input_path="$new_path" 27736 # Check if we need to convert this using DOS-style short mode. If the path 27737 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27738 # take no chances and rewrite it. 27739 # Note: m4 eats our [], so we need to use [ and ] instead. 27740 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27741 if test "x$has_forbidden_chars" != x; then 27742 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27743 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27744 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27745 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27746 # Going to short mode and back again did indeed matter. Since short mode is 27747 # case insensitive, let's make it lowercase to improve readability. 27748 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27749 # Now convert it back to Unix-style (cygpath) 27750 input_path=`$CYGPATH -u "$shortmode_path"` 27751 new_path="$input_path" 27752 fi 27753 fi 27754 27755 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27756 if test "x$test_cygdrive_prefix" = x; then 27757 # As a simple fix, exclude /usr/bin since it's not a real path. 27758 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27759 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27760 # a path prefixed by /cygdrive for fixpath to work. 27761 new_path="$CYGWIN_ROOT_PATH$input_path" 27762 fi 27763 fi 27764 27765 27766 if test "x$path" != "x$new_path"; then 27767 BOOT_JDK="$new_path" 27768 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27769 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27770 fi 27771 27772 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27773 27774 path="$BOOT_JDK" 27775 has_colon=`$ECHO $path | $GREP ^.:` 27776 new_path="$path" 27777 if test "x$has_colon" = x; then 27778 # Not in mixed or Windows style, start by that. 27779 new_path=`cmd //c echo $path` 27780 fi 27781 27782 27783 input_path="$new_path" 27784 # Check if we need to convert this using DOS-style short mode. If the path 27785 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27786 # take no chances and rewrite it. 27787 # Note: m4 eats our [], so we need to use [ and ] instead. 27788 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27789 if test "x$has_forbidden_chars" != x; then 27790 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27791 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27792 fi 27793 27794 27795 windows_path="$new_path" 27796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27797 unix_path=`$CYGPATH -u "$windows_path"` 27798 new_path="$unix_path" 27799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27800 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27801 new_path="$unix_path" 27802 fi 27803 27804 if test "x$path" != "x$new_path"; then 27805 BOOT_JDK="$new_path" 27806 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27807 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27808 fi 27809 27810 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27811 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27812 27813 else 27814 # We're on a unix platform. Hooray! :) 27815 path="$BOOT_JDK" 27816 has_space=`$ECHO "$path" | $GREP " "` 27817 if test "x$has_space" != x; then 27818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27819 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27820 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27821 fi 27822 27823 # Use eval to expand a potential ~ 27824 eval path="$path" 27825 if test ! -f "$path" && test ! -d "$path"; then 27826 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27827 fi 27828 27829 if test -d "$path"; then 27830 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27831 else 27832 dir="`$DIRNAME "$path"`" 27833 base="`$BASENAME "$path"`" 27834 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27835 fi 27836 fi 27837 fi 27838 27839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27840 $as_echo_n "checking for Boot JDK... " >&6; } 27841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27842 $as_echo "$BOOT_JDK" >&6; } 27843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27844 $as_echo_n "checking Boot JDK version... " >&6; } 27845 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27847 $as_echo "$BOOT_JDK_VERSION" >&6; } 27848 fi # end check jdk version 27849 fi # end check javac 27850 fi # end check java 27851 fi # end check boot jdk found 27852 fi 27853 27854 27855 if test "x$BOOT_JDK_FOUND" = xno; then 27856 # Now execute the test 27857 27858 if test "x$PROGRAMW6432" != x; then 27859 VIRTUAL_DIR="$PROGRAMW6432/Java" 27860 27861 windows_path="$VIRTUAL_DIR" 27862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27863 unix_path=`$CYGPATH -u "$windows_path"` 27864 VIRTUAL_DIR="$unix_path" 27865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27867 VIRTUAL_DIR="$unix_path" 27868 fi 27869 27870 27871 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27872 BOOT_JDK_SUFFIX="" 27873 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27874 if test "x$ALL_JDKS_FOUND" != x; then 27875 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27876 27877 if test "x$BOOT_JDK_FOUND" = xno; then 27878 # Now execute the test 27879 27880 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27881 if test -d "$BOOT_JDK"; then 27882 BOOT_JDK_FOUND=maybe 27883 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27884 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27885 fi 27886 27887 27888 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27889 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27890 # Do we have a bin/java? 27891 if test ! -x "$BOOT_JDK/bin/java"; then 27892 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27893 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27894 BOOT_JDK_FOUND=no 27895 else 27896 # Do we have a bin/javac? 27897 if test ! -x "$BOOT_JDK/bin/javac"; then 27898 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27899 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27900 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27901 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27902 BOOT_JDK_FOUND=no 27903 else 27904 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27905 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27906 27907 # Extra M4 quote needed to protect [] in grep expression. 27908 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27909 if test "x$FOUND_CORRECT_VERSION" = x; then 27910 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27911 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27912 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27913 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27914 BOOT_JDK_FOUND=no 27915 else 27916 # We're done! :-) 27917 BOOT_JDK_FOUND=yes 27918 27919 # Only process if variable expands to non-empty 27920 27921 if test "x$BOOT_JDK" != x; then 27922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27923 27924 # Input might be given as Windows format, start by converting to 27925 # unix format. 27926 path="$BOOT_JDK" 27927 new_path=`$CYGPATH -u "$path"` 27928 27929 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27930 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27931 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27932 # "foo.exe" is OK but "foo" is an error. 27933 # 27934 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27935 # It is also a way to make sure we got the proper file name for the real test later on. 27936 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27937 if test "x$test_shortpath" = x; then 27938 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27939 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27940 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27941 fi 27942 27943 # Call helper function which possibly converts this using DOS-style short mode. 27944 # If so, the updated path is stored in $new_path. 27945 27946 input_path="$new_path" 27947 # Check if we need to convert this using DOS-style short mode. If the path 27948 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27949 # take no chances and rewrite it. 27950 # Note: m4 eats our [], so we need to use [ and ] instead. 27951 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27952 if test "x$has_forbidden_chars" != x; then 27953 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27954 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27955 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27956 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27957 # Going to short mode and back again did indeed matter. Since short mode is 27958 # case insensitive, let's make it lowercase to improve readability. 27959 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27960 # Now convert it back to Unix-style (cygpath) 27961 input_path=`$CYGPATH -u "$shortmode_path"` 27962 new_path="$input_path" 27963 fi 27964 fi 27965 27966 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27967 if test "x$test_cygdrive_prefix" = x; then 27968 # As a simple fix, exclude /usr/bin since it's not a real path. 27969 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27970 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27971 # a path prefixed by /cygdrive for fixpath to work. 27972 new_path="$CYGWIN_ROOT_PATH$input_path" 27973 fi 27974 fi 27975 27976 27977 if test "x$path" != "x$new_path"; then 27978 BOOT_JDK="$new_path" 27979 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27980 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27981 fi 27982 27983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27984 27985 path="$BOOT_JDK" 27986 has_colon=`$ECHO $path | $GREP ^.:` 27987 new_path="$path" 27988 if test "x$has_colon" = x; then 27989 # Not in mixed or Windows style, start by that. 27990 new_path=`cmd //c echo $path` 27991 fi 27992 27993 27994 input_path="$new_path" 27995 # Check if we need to convert this using DOS-style short mode. If the path 27996 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27997 # take no chances and rewrite it. 27998 # Note: m4 eats our [], so we need to use [ and ] instead. 27999 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28000 if test "x$has_forbidden_chars" != x; then 28001 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28002 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28003 fi 28004 28005 28006 windows_path="$new_path" 28007 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28008 unix_path=`$CYGPATH -u "$windows_path"` 28009 new_path="$unix_path" 28010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28011 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28012 new_path="$unix_path" 28013 fi 28014 28015 if test "x$path" != "x$new_path"; then 28016 BOOT_JDK="$new_path" 28017 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28018 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28019 fi 28020 28021 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28022 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28023 28024 else 28025 # We're on a unix platform. Hooray! :) 28026 path="$BOOT_JDK" 28027 has_space=`$ECHO "$path" | $GREP " "` 28028 if test "x$has_space" != x; then 28029 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28030 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28031 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28032 fi 28033 28034 # Use eval to expand a potential ~ 28035 eval path="$path" 28036 if test ! -f "$path" && test ! -d "$path"; then 28037 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28038 fi 28039 28040 if test -d "$path"; then 28041 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28042 else 28043 dir="`$DIRNAME "$path"`" 28044 base="`$BASENAME "$path"`" 28045 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28046 fi 28047 fi 28048 fi 28049 28050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28051 $as_echo_n "checking for Boot JDK... " >&6; } 28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28053 $as_echo "$BOOT_JDK" >&6; } 28054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28055 $as_echo_n "checking Boot JDK version... " >&6; } 28056 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28058 $as_echo "$BOOT_JDK_VERSION" >&6; } 28059 fi # end check jdk version 28060 fi # end check javac 28061 fi # end check java 28062 fi # end check boot jdk found 28063 fi 28064 28065 done 28066 fi 28067 28068 fi 28069 28070 28071 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28072 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28073 # Do we have a bin/java? 28074 if test ! -x "$BOOT_JDK/bin/java"; then 28075 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28076 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28077 BOOT_JDK_FOUND=no 28078 else 28079 # Do we have a bin/javac? 28080 if test ! -x "$BOOT_JDK/bin/javac"; then 28081 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28082 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28083 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28084 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28085 BOOT_JDK_FOUND=no 28086 else 28087 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28088 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28089 28090 # Extra M4 quote needed to protect [] in grep expression. 28091 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28092 if test "x$FOUND_CORRECT_VERSION" = x; then 28093 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28094 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28095 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28096 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28097 BOOT_JDK_FOUND=no 28098 else 28099 # We're done! :-) 28100 BOOT_JDK_FOUND=yes 28101 28102 # Only process if variable expands to non-empty 28103 28104 if test "x$BOOT_JDK" != x; then 28105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28106 28107 # Input might be given as Windows format, start by converting to 28108 # unix format. 28109 path="$BOOT_JDK" 28110 new_path=`$CYGPATH -u "$path"` 28111 28112 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28113 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28114 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28115 # "foo.exe" is OK but "foo" is an error. 28116 # 28117 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28118 # It is also a way to make sure we got the proper file name for the real test later on. 28119 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28120 if test "x$test_shortpath" = x; then 28121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28122 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28123 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28124 fi 28125 28126 # Call helper function which possibly converts this using DOS-style short mode. 28127 # If so, the updated path is stored in $new_path. 28128 28129 input_path="$new_path" 28130 # Check if we need to convert this using DOS-style short mode. If the path 28131 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28132 # take no chances and rewrite it. 28133 # Note: m4 eats our [], so we need to use [ and ] instead. 28134 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28135 if test "x$has_forbidden_chars" != x; then 28136 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28137 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28138 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28139 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28140 # Going to short mode and back again did indeed matter. Since short mode is 28141 # case insensitive, let's make it lowercase to improve readability. 28142 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28143 # Now convert it back to Unix-style (cygpath) 28144 input_path=`$CYGPATH -u "$shortmode_path"` 28145 new_path="$input_path" 28146 fi 28147 fi 28148 28149 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28150 if test "x$test_cygdrive_prefix" = x; then 28151 # As a simple fix, exclude /usr/bin since it's not a real path. 28152 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28153 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28154 # a path prefixed by /cygdrive for fixpath to work. 28155 new_path="$CYGWIN_ROOT_PATH$input_path" 28156 fi 28157 fi 28158 28159 28160 if test "x$path" != "x$new_path"; then 28161 BOOT_JDK="$new_path" 28162 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28163 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28164 fi 28165 28166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28167 28168 path="$BOOT_JDK" 28169 has_colon=`$ECHO $path | $GREP ^.:` 28170 new_path="$path" 28171 if test "x$has_colon" = x; then 28172 # Not in mixed or Windows style, start by that. 28173 new_path=`cmd //c echo $path` 28174 fi 28175 28176 28177 input_path="$new_path" 28178 # Check if we need to convert this using DOS-style short mode. If the path 28179 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28180 # take no chances and rewrite it. 28181 # Note: m4 eats our [], so we need to use [ and ] instead. 28182 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28183 if test "x$has_forbidden_chars" != x; then 28184 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28185 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28186 fi 28187 28188 28189 windows_path="$new_path" 28190 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28191 unix_path=`$CYGPATH -u "$windows_path"` 28192 new_path="$unix_path" 28193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28194 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28195 new_path="$unix_path" 28196 fi 28197 28198 if test "x$path" != "x$new_path"; then 28199 BOOT_JDK="$new_path" 28200 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28201 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28202 fi 28203 28204 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28205 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28206 28207 else 28208 # We're on a unix platform. Hooray! :) 28209 path="$BOOT_JDK" 28210 has_space=`$ECHO "$path" | $GREP " "` 28211 if test "x$has_space" != x; then 28212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28213 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28214 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28215 fi 28216 28217 # Use eval to expand a potential ~ 28218 eval path="$path" 28219 if test ! -f "$path" && test ! -d "$path"; then 28220 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28221 fi 28222 28223 if test -d "$path"; then 28224 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28225 else 28226 dir="`$DIRNAME "$path"`" 28227 base="`$BASENAME "$path"`" 28228 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28229 fi 28230 fi 28231 fi 28232 28233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28234 $as_echo_n "checking for Boot JDK... " >&6; } 28235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28236 $as_echo "$BOOT_JDK" >&6; } 28237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28238 $as_echo_n "checking Boot JDK version... " >&6; } 28239 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28241 $as_echo "$BOOT_JDK_VERSION" >&6; } 28242 fi # end check jdk version 28243 fi # end check javac 28244 fi # end check java 28245 fi # end check boot jdk found 28246 fi 28247 28248 28249 if test "x$BOOT_JDK_FOUND" = xno; then 28250 # Now execute the test 28251 28252 if test "x$PROGRAMFILES" != x; then 28253 VIRTUAL_DIR="$PROGRAMFILES/Java" 28254 28255 windows_path="$VIRTUAL_DIR" 28256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28257 unix_path=`$CYGPATH -u "$windows_path"` 28258 VIRTUAL_DIR="$unix_path" 28259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28261 VIRTUAL_DIR="$unix_path" 28262 fi 28263 28264 28265 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28266 BOOT_JDK_SUFFIX="" 28267 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28268 if test "x$ALL_JDKS_FOUND" != x; then 28269 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28270 28271 if test "x$BOOT_JDK_FOUND" = xno; then 28272 # Now execute the test 28273 28274 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28275 if test -d "$BOOT_JDK"; then 28276 BOOT_JDK_FOUND=maybe 28277 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28278 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28279 fi 28280 28281 28282 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28283 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28284 # Do we have a bin/java? 28285 if test ! -x "$BOOT_JDK/bin/java"; then 28286 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28287 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28288 BOOT_JDK_FOUND=no 28289 else 28290 # Do we have a bin/javac? 28291 if test ! -x "$BOOT_JDK/bin/javac"; then 28292 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28293 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28294 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28295 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28296 BOOT_JDK_FOUND=no 28297 else 28298 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28299 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28300 28301 # Extra M4 quote needed to protect [] in grep expression. 28302 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28303 if test "x$FOUND_CORRECT_VERSION" = x; then 28304 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28305 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28306 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28307 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28308 BOOT_JDK_FOUND=no 28309 else 28310 # We're done! :-) 28311 BOOT_JDK_FOUND=yes 28312 28313 # Only process if variable expands to non-empty 28314 28315 if test "x$BOOT_JDK" != x; then 28316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28317 28318 # Input might be given as Windows format, start by converting to 28319 # unix format. 28320 path="$BOOT_JDK" 28321 new_path=`$CYGPATH -u "$path"` 28322 28323 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28324 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28325 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28326 # "foo.exe" is OK but "foo" is an error. 28327 # 28328 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28329 # It is also a way to make sure we got the proper file name for the real test later on. 28330 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28331 if test "x$test_shortpath" = x; then 28332 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28333 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28334 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28335 fi 28336 28337 # Call helper function which possibly converts this using DOS-style short mode. 28338 # If so, the updated path is stored in $new_path. 28339 28340 input_path="$new_path" 28341 # Check if we need to convert this using DOS-style short mode. If the path 28342 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28343 # take no chances and rewrite it. 28344 # Note: m4 eats our [], so we need to use [ and ] instead. 28345 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28346 if test "x$has_forbidden_chars" != x; then 28347 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28348 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28349 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28350 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28351 # Going to short mode and back again did indeed matter. Since short mode is 28352 # case insensitive, let's make it lowercase to improve readability. 28353 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28354 # Now convert it back to Unix-style (cygpath) 28355 input_path=`$CYGPATH -u "$shortmode_path"` 28356 new_path="$input_path" 28357 fi 28358 fi 28359 28360 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28361 if test "x$test_cygdrive_prefix" = x; then 28362 # As a simple fix, exclude /usr/bin since it's not a real path. 28363 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28364 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28365 # a path prefixed by /cygdrive for fixpath to work. 28366 new_path="$CYGWIN_ROOT_PATH$input_path" 28367 fi 28368 fi 28369 28370 28371 if test "x$path" != "x$new_path"; then 28372 BOOT_JDK="$new_path" 28373 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28374 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28375 fi 28376 28377 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28378 28379 path="$BOOT_JDK" 28380 has_colon=`$ECHO $path | $GREP ^.:` 28381 new_path="$path" 28382 if test "x$has_colon" = x; then 28383 # Not in mixed or Windows style, start by that. 28384 new_path=`cmd //c echo $path` 28385 fi 28386 28387 28388 input_path="$new_path" 28389 # Check if we need to convert this using DOS-style short mode. If the path 28390 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28391 # take no chances and rewrite it. 28392 # Note: m4 eats our [], so we need to use [ and ] instead. 28393 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28394 if test "x$has_forbidden_chars" != x; then 28395 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28396 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28397 fi 28398 28399 28400 windows_path="$new_path" 28401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28402 unix_path=`$CYGPATH -u "$windows_path"` 28403 new_path="$unix_path" 28404 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28405 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28406 new_path="$unix_path" 28407 fi 28408 28409 if test "x$path" != "x$new_path"; then 28410 BOOT_JDK="$new_path" 28411 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28412 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28413 fi 28414 28415 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28416 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28417 28418 else 28419 # We're on a unix platform. Hooray! :) 28420 path="$BOOT_JDK" 28421 has_space=`$ECHO "$path" | $GREP " "` 28422 if test "x$has_space" != x; then 28423 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28424 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28425 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28426 fi 28427 28428 # Use eval to expand a potential ~ 28429 eval path="$path" 28430 if test ! -f "$path" && test ! -d "$path"; then 28431 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28432 fi 28433 28434 if test -d "$path"; then 28435 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28436 else 28437 dir="`$DIRNAME "$path"`" 28438 base="`$BASENAME "$path"`" 28439 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28440 fi 28441 fi 28442 fi 28443 28444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28445 $as_echo_n "checking for Boot JDK... " >&6; } 28446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28447 $as_echo "$BOOT_JDK" >&6; } 28448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28449 $as_echo_n "checking Boot JDK version... " >&6; } 28450 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28452 $as_echo "$BOOT_JDK_VERSION" >&6; } 28453 fi # end check jdk version 28454 fi # end check javac 28455 fi # end check java 28456 fi # end check boot jdk found 28457 fi 28458 28459 done 28460 fi 28461 28462 fi 28463 28464 28465 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28466 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28467 # Do we have a bin/java? 28468 if test ! -x "$BOOT_JDK/bin/java"; then 28469 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28470 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28471 BOOT_JDK_FOUND=no 28472 else 28473 # Do we have a bin/javac? 28474 if test ! -x "$BOOT_JDK/bin/javac"; then 28475 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28476 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28477 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28478 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28479 BOOT_JDK_FOUND=no 28480 else 28481 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28482 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28483 28484 # Extra M4 quote needed to protect [] in grep expression. 28485 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28486 if test "x$FOUND_CORRECT_VERSION" = x; then 28487 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28488 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28489 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28490 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28491 BOOT_JDK_FOUND=no 28492 else 28493 # We're done! :-) 28494 BOOT_JDK_FOUND=yes 28495 28496 # Only process if variable expands to non-empty 28497 28498 if test "x$BOOT_JDK" != x; then 28499 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28500 28501 # Input might be given as Windows format, start by converting to 28502 # unix format. 28503 path="$BOOT_JDK" 28504 new_path=`$CYGPATH -u "$path"` 28505 28506 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28507 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28508 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28509 # "foo.exe" is OK but "foo" is an error. 28510 # 28511 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28512 # It is also a way to make sure we got the proper file name for the real test later on. 28513 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28514 if test "x$test_shortpath" = x; then 28515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28516 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28517 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28518 fi 28519 28520 # Call helper function which possibly converts this using DOS-style short mode. 28521 # If so, the updated path is stored in $new_path. 28522 28523 input_path="$new_path" 28524 # Check if we need to convert this using DOS-style short mode. If the path 28525 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28526 # take no chances and rewrite it. 28527 # Note: m4 eats our [], so we need to use [ and ] instead. 28528 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28529 if test "x$has_forbidden_chars" != x; then 28530 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28531 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28532 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28533 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28534 # Going to short mode and back again did indeed matter. Since short mode is 28535 # case insensitive, let's make it lowercase to improve readability. 28536 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28537 # Now convert it back to Unix-style (cygpath) 28538 input_path=`$CYGPATH -u "$shortmode_path"` 28539 new_path="$input_path" 28540 fi 28541 fi 28542 28543 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28544 if test "x$test_cygdrive_prefix" = x; then 28545 # As a simple fix, exclude /usr/bin since it's not a real path. 28546 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28547 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28548 # a path prefixed by /cygdrive for fixpath to work. 28549 new_path="$CYGWIN_ROOT_PATH$input_path" 28550 fi 28551 fi 28552 28553 28554 if test "x$path" != "x$new_path"; then 28555 BOOT_JDK="$new_path" 28556 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28557 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28558 fi 28559 28560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28561 28562 path="$BOOT_JDK" 28563 has_colon=`$ECHO $path | $GREP ^.:` 28564 new_path="$path" 28565 if test "x$has_colon" = x; then 28566 # Not in mixed or Windows style, start by that. 28567 new_path=`cmd //c echo $path` 28568 fi 28569 28570 28571 input_path="$new_path" 28572 # Check if we need to convert this using DOS-style short mode. If the path 28573 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28574 # take no chances and rewrite it. 28575 # Note: m4 eats our [], so we need to use [ and ] instead. 28576 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28577 if test "x$has_forbidden_chars" != x; then 28578 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28579 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28580 fi 28581 28582 28583 windows_path="$new_path" 28584 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28585 unix_path=`$CYGPATH -u "$windows_path"` 28586 new_path="$unix_path" 28587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28588 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28589 new_path="$unix_path" 28590 fi 28591 28592 if test "x$path" != "x$new_path"; then 28593 BOOT_JDK="$new_path" 28594 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28595 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28596 fi 28597 28598 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28599 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28600 28601 else 28602 # We're on a unix platform. Hooray! :) 28603 path="$BOOT_JDK" 28604 has_space=`$ECHO "$path" | $GREP " "` 28605 if test "x$has_space" != x; then 28606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28607 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28608 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28609 fi 28610 28611 # Use eval to expand a potential ~ 28612 eval path="$path" 28613 if test ! -f "$path" && test ! -d "$path"; then 28614 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28615 fi 28616 28617 if test -d "$path"; then 28618 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28619 else 28620 dir="`$DIRNAME "$path"`" 28621 base="`$BASENAME "$path"`" 28622 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28623 fi 28624 fi 28625 fi 28626 28627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28628 $as_echo_n "checking for Boot JDK... " >&6; } 28629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28630 $as_echo "$BOOT_JDK" >&6; } 28631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28632 $as_echo_n "checking Boot JDK version... " >&6; } 28633 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28635 $as_echo "$BOOT_JDK_VERSION" >&6; } 28636 fi # end check jdk version 28637 fi # end check javac 28638 fi # end check java 28639 fi # end check boot jdk found 28640 fi 28641 28642 28643 if test "x$BOOT_JDK_FOUND" = xno; then 28644 # Now execute the test 28645 28646 if test "x$ProgramFiles" != x; then 28647 VIRTUAL_DIR="$ProgramFiles/Java" 28648 28649 windows_path="$VIRTUAL_DIR" 28650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28651 unix_path=`$CYGPATH -u "$windows_path"` 28652 VIRTUAL_DIR="$unix_path" 28653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28654 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28655 VIRTUAL_DIR="$unix_path" 28656 fi 28657 28658 28659 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28660 BOOT_JDK_SUFFIX="" 28661 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28662 if test "x$ALL_JDKS_FOUND" != x; then 28663 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28664 28665 if test "x$BOOT_JDK_FOUND" = xno; then 28666 # Now execute the test 28667 28668 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28669 if test -d "$BOOT_JDK"; then 28670 BOOT_JDK_FOUND=maybe 28671 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28672 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28673 fi 28674 28675 28676 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28677 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28678 # Do we have a bin/java? 28679 if test ! -x "$BOOT_JDK/bin/java"; then 28680 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28681 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28682 BOOT_JDK_FOUND=no 28683 else 28684 # Do we have a bin/javac? 28685 if test ! -x "$BOOT_JDK/bin/javac"; then 28686 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28687 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28688 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28689 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28690 BOOT_JDK_FOUND=no 28691 else 28692 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28693 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28694 28695 # Extra M4 quote needed to protect [] in grep expression. 28696 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28697 if test "x$FOUND_CORRECT_VERSION" = x; then 28698 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28699 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28700 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28701 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28702 BOOT_JDK_FOUND=no 28703 else 28704 # We're done! :-) 28705 BOOT_JDK_FOUND=yes 28706 28707 # Only process if variable expands to non-empty 28708 28709 if test "x$BOOT_JDK" != x; then 28710 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28711 28712 # Input might be given as Windows format, start by converting to 28713 # unix format. 28714 path="$BOOT_JDK" 28715 new_path=`$CYGPATH -u "$path"` 28716 28717 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28718 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28719 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28720 # "foo.exe" is OK but "foo" is an error. 28721 # 28722 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28723 # It is also a way to make sure we got the proper file name for the real test later on. 28724 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28725 if test "x$test_shortpath" = x; then 28726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28727 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28728 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28729 fi 28730 28731 # Call helper function which possibly converts this using DOS-style short mode. 28732 # If so, the updated path is stored in $new_path. 28733 28734 input_path="$new_path" 28735 # Check if we need to convert this using DOS-style short mode. If the path 28736 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28737 # take no chances and rewrite it. 28738 # Note: m4 eats our [], so we need to use [ and ] instead. 28739 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28740 if test "x$has_forbidden_chars" != x; then 28741 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28742 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28743 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28744 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28745 # Going to short mode and back again did indeed matter. Since short mode is 28746 # case insensitive, let's make it lowercase to improve readability. 28747 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28748 # Now convert it back to Unix-style (cygpath) 28749 input_path=`$CYGPATH -u "$shortmode_path"` 28750 new_path="$input_path" 28751 fi 28752 fi 28753 28754 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28755 if test "x$test_cygdrive_prefix" = x; then 28756 # As a simple fix, exclude /usr/bin since it's not a real path. 28757 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28758 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28759 # a path prefixed by /cygdrive for fixpath to work. 28760 new_path="$CYGWIN_ROOT_PATH$input_path" 28761 fi 28762 fi 28763 28764 28765 if test "x$path" != "x$new_path"; then 28766 BOOT_JDK="$new_path" 28767 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28768 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28769 fi 28770 28771 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28772 28773 path="$BOOT_JDK" 28774 has_colon=`$ECHO $path | $GREP ^.:` 28775 new_path="$path" 28776 if test "x$has_colon" = x; then 28777 # Not in mixed or Windows style, start by that. 28778 new_path=`cmd //c echo $path` 28779 fi 28780 28781 28782 input_path="$new_path" 28783 # Check if we need to convert this using DOS-style short mode. If the path 28784 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28785 # take no chances and rewrite it. 28786 # Note: m4 eats our [], so we need to use [ and ] instead. 28787 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28788 if test "x$has_forbidden_chars" != x; then 28789 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28790 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28791 fi 28792 28793 28794 windows_path="$new_path" 28795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28796 unix_path=`$CYGPATH -u "$windows_path"` 28797 new_path="$unix_path" 28798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28799 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28800 new_path="$unix_path" 28801 fi 28802 28803 if test "x$path" != "x$new_path"; then 28804 BOOT_JDK="$new_path" 28805 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28806 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28807 fi 28808 28809 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28810 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28811 28812 else 28813 # We're on a unix platform. Hooray! :) 28814 path="$BOOT_JDK" 28815 has_space=`$ECHO "$path" | $GREP " "` 28816 if test "x$has_space" != x; then 28817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28818 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28819 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28820 fi 28821 28822 # Use eval to expand a potential ~ 28823 eval path="$path" 28824 if test ! -f "$path" && test ! -d "$path"; then 28825 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28826 fi 28827 28828 if test -d "$path"; then 28829 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28830 else 28831 dir="`$DIRNAME "$path"`" 28832 base="`$BASENAME "$path"`" 28833 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28834 fi 28835 fi 28836 fi 28837 28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28839 $as_echo_n "checking for Boot JDK... " >&6; } 28840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28841 $as_echo "$BOOT_JDK" >&6; } 28842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28843 $as_echo_n "checking Boot JDK version... " >&6; } 28844 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28846 $as_echo "$BOOT_JDK_VERSION" >&6; } 28847 fi # end check jdk version 28848 fi # end check javac 28849 fi # end check java 28850 fi # end check boot jdk found 28851 fi 28852 28853 done 28854 fi 28855 28856 fi 28857 28858 28859 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28860 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28861 # Do we have a bin/java? 28862 if test ! -x "$BOOT_JDK/bin/java"; then 28863 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28864 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28865 BOOT_JDK_FOUND=no 28866 else 28867 # Do we have a bin/javac? 28868 if test ! -x "$BOOT_JDK/bin/javac"; then 28869 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28870 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28871 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28872 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28873 BOOT_JDK_FOUND=no 28874 else 28875 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28876 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28877 28878 # Extra M4 quote needed to protect [] in grep expression. 28879 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28880 if test "x$FOUND_CORRECT_VERSION" = x; then 28881 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28882 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28883 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28884 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28885 BOOT_JDK_FOUND=no 28886 else 28887 # We're done! :-) 28888 BOOT_JDK_FOUND=yes 28889 28890 # Only process if variable expands to non-empty 28891 28892 if test "x$BOOT_JDK" != x; then 28893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28894 28895 # Input might be given as Windows format, start by converting to 28896 # unix format. 28897 path="$BOOT_JDK" 28898 new_path=`$CYGPATH -u "$path"` 28899 28900 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28901 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28902 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28903 # "foo.exe" is OK but "foo" is an error. 28904 # 28905 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28906 # It is also a way to make sure we got the proper file name for the real test later on. 28907 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28908 if test "x$test_shortpath" = x; then 28909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28910 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28911 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28912 fi 28913 28914 # Call helper function which possibly converts this using DOS-style short mode. 28915 # If so, the updated path is stored in $new_path. 28916 28917 input_path="$new_path" 28918 # Check if we need to convert this using DOS-style short mode. If the path 28919 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28920 # take no chances and rewrite it. 28921 # Note: m4 eats our [], so we need to use [ and ] instead. 28922 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28923 if test "x$has_forbidden_chars" != x; then 28924 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28925 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28926 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28927 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28928 # Going to short mode and back again did indeed matter. Since short mode is 28929 # case insensitive, let's make it lowercase to improve readability. 28930 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28931 # Now convert it back to Unix-style (cygpath) 28932 input_path=`$CYGPATH -u "$shortmode_path"` 28933 new_path="$input_path" 28934 fi 28935 fi 28936 28937 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28938 if test "x$test_cygdrive_prefix" = x; then 28939 # As a simple fix, exclude /usr/bin since it's not a real path. 28940 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28941 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28942 # a path prefixed by /cygdrive for fixpath to work. 28943 new_path="$CYGWIN_ROOT_PATH$input_path" 28944 fi 28945 fi 28946 28947 28948 if test "x$path" != "x$new_path"; then 28949 BOOT_JDK="$new_path" 28950 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28951 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28952 fi 28953 28954 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28955 28956 path="$BOOT_JDK" 28957 has_colon=`$ECHO $path | $GREP ^.:` 28958 new_path="$path" 28959 if test "x$has_colon" = x; then 28960 # Not in mixed or Windows style, start by that. 28961 new_path=`cmd //c echo $path` 28962 fi 28963 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28974 fi 28975 28976 28977 windows_path="$new_path" 28978 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28979 unix_path=`$CYGPATH -u "$windows_path"` 28980 new_path="$unix_path" 28981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28982 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28983 new_path="$unix_path" 28984 fi 28985 28986 if test "x$path" != "x$new_path"; then 28987 BOOT_JDK="$new_path" 28988 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28989 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28990 fi 28991 28992 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28993 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28994 28995 else 28996 # We're on a unix platform. Hooray! :) 28997 path="$BOOT_JDK" 28998 has_space=`$ECHO "$path" | $GREP " "` 28999 if test "x$has_space" != x; then 29000 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29001 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29002 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29003 fi 29004 29005 # Use eval to expand a potential ~ 29006 eval path="$path" 29007 if test ! -f "$path" && test ! -d "$path"; then 29008 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29009 fi 29010 29011 if test -d "$path"; then 29012 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29013 else 29014 dir="`$DIRNAME "$path"`" 29015 base="`$BASENAME "$path"`" 29016 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29017 fi 29018 fi 29019 fi 29020 29021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29022 $as_echo_n "checking for Boot JDK... " >&6; } 29023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29024 $as_echo "$BOOT_JDK" >&6; } 29025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29026 $as_echo_n "checking Boot JDK version... " >&6; } 29027 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29029 $as_echo "$BOOT_JDK_VERSION" >&6; } 29030 fi # end check jdk version 29031 fi # end check javac 29032 fi # end check java 29033 fi # end check boot jdk found 29034 fi 29035 29036 29037 if test "x$BOOT_JDK_FOUND" = xno; then 29038 # Now execute the test 29039 29040 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 29041 BOOT_JDK_SUFFIX="" 29042 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29043 if test "x$ALL_JDKS_FOUND" != x; then 29044 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29045 29046 if test "x$BOOT_JDK_FOUND" = xno; then 29047 # Now execute the test 29048 29049 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29050 if test -d "$BOOT_JDK"; then 29051 BOOT_JDK_FOUND=maybe 29052 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29053 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29054 fi 29055 29056 29057 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29058 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29059 # Do we have a bin/java? 29060 if test ! -x "$BOOT_JDK/bin/java"; then 29061 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29062 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29063 BOOT_JDK_FOUND=no 29064 else 29065 # Do we have a bin/javac? 29066 if test ! -x "$BOOT_JDK/bin/javac"; then 29067 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29068 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29069 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29070 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29071 BOOT_JDK_FOUND=no 29072 else 29073 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29074 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29075 29076 # Extra M4 quote needed to protect [] in grep expression. 29077 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29078 if test "x$FOUND_CORRECT_VERSION" = x; then 29079 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29080 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29081 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29082 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29083 BOOT_JDK_FOUND=no 29084 else 29085 # We're done! :-) 29086 BOOT_JDK_FOUND=yes 29087 29088 # Only process if variable expands to non-empty 29089 29090 if test "x$BOOT_JDK" != x; then 29091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29092 29093 # Input might be given as Windows format, start by converting to 29094 # unix format. 29095 path="$BOOT_JDK" 29096 new_path=`$CYGPATH -u "$path"` 29097 29098 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29099 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29100 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29101 # "foo.exe" is OK but "foo" is an error. 29102 # 29103 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29104 # It is also a way to make sure we got the proper file name for the real test later on. 29105 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29106 if test "x$test_shortpath" = x; then 29107 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29108 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29109 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29110 fi 29111 29112 # Call helper function which possibly converts this using DOS-style short mode. 29113 # If so, the updated path is stored in $new_path. 29114 29115 input_path="$new_path" 29116 # Check if we need to convert this using DOS-style short mode. If the path 29117 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29118 # take no chances and rewrite it. 29119 # Note: m4 eats our [], so we need to use [ and ] instead. 29120 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29121 if test "x$has_forbidden_chars" != x; then 29122 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29123 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29124 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29125 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29126 # Going to short mode and back again did indeed matter. Since short mode is 29127 # case insensitive, let's make it lowercase to improve readability. 29128 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29129 # Now convert it back to Unix-style (cygpath) 29130 input_path=`$CYGPATH -u "$shortmode_path"` 29131 new_path="$input_path" 29132 fi 29133 fi 29134 29135 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29136 if test "x$test_cygdrive_prefix" = x; then 29137 # As a simple fix, exclude /usr/bin since it's not a real path. 29138 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29139 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29140 # a path prefixed by /cygdrive for fixpath to work. 29141 new_path="$CYGWIN_ROOT_PATH$input_path" 29142 fi 29143 fi 29144 29145 29146 if test "x$path" != "x$new_path"; then 29147 BOOT_JDK="$new_path" 29148 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29149 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29150 fi 29151 29152 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29153 29154 path="$BOOT_JDK" 29155 has_colon=`$ECHO $path | $GREP ^.:` 29156 new_path="$path" 29157 if test "x$has_colon" = x; then 29158 # Not in mixed or Windows style, start by that. 29159 new_path=`cmd //c echo $path` 29160 fi 29161 29162 29163 input_path="$new_path" 29164 # Check if we need to convert this using DOS-style short mode. If the path 29165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29166 # take no chances and rewrite it. 29167 # Note: m4 eats our [], so we need to use [ and ] instead. 29168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29169 if test "x$has_forbidden_chars" != x; then 29170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29171 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29172 fi 29173 29174 29175 windows_path="$new_path" 29176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29177 unix_path=`$CYGPATH -u "$windows_path"` 29178 new_path="$unix_path" 29179 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29180 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29181 new_path="$unix_path" 29182 fi 29183 29184 if test "x$path" != "x$new_path"; then 29185 BOOT_JDK="$new_path" 29186 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29187 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29188 fi 29189 29190 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29191 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29192 29193 else 29194 # We're on a unix platform. Hooray! :) 29195 path="$BOOT_JDK" 29196 has_space=`$ECHO "$path" | $GREP " "` 29197 if test "x$has_space" != x; then 29198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29199 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29200 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29201 fi 29202 29203 # Use eval to expand a potential ~ 29204 eval path="$path" 29205 if test ! -f "$path" && test ! -d "$path"; then 29206 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29207 fi 29208 29209 if test -d "$path"; then 29210 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29211 else 29212 dir="`$DIRNAME "$path"`" 29213 base="`$BASENAME "$path"`" 29214 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29215 fi 29216 fi 29217 fi 29218 29219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29220 $as_echo_n "checking for Boot JDK... " >&6; } 29221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29222 $as_echo "$BOOT_JDK" >&6; } 29223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29224 $as_echo_n "checking Boot JDK version... " >&6; } 29225 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29227 $as_echo "$BOOT_JDK_VERSION" >&6; } 29228 fi # end check jdk version 29229 fi # end check javac 29230 fi # end check java 29231 fi # end check boot jdk found 29232 fi 29233 29234 done 29235 fi 29236 29237 29238 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29239 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29240 # Do we have a bin/java? 29241 if test ! -x "$BOOT_JDK/bin/java"; then 29242 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29243 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29244 BOOT_JDK_FOUND=no 29245 else 29246 # Do we have a bin/javac? 29247 if test ! -x "$BOOT_JDK/bin/javac"; then 29248 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29249 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29250 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29251 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29252 BOOT_JDK_FOUND=no 29253 else 29254 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29255 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29256 29257 # Extra M4 quote needed to protect [] in grep expression. 29258 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29259 if test "x$FOUND_CORRECT_VERSION" = x; then 29260 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29261 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29262 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29263 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29264 BOOT_JDK_FOUND=no 29265 else 29266 # We're done! :-) 29267 BOOT_JDK_FOUND=yes 29268 29269 # Only process if variable expands to non-empty 29270 29271 if test "x$BOOT_JDK" != x; then 29272 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29273 29274 # Input might be given as Windows format, start by converting to 29275 # unix format. 29276 path="$BOOT_JDK" 29277 new_path=`$CYGPATH -u "$path"` 29278 29279 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29280 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29281 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29282 # "foo.exe" is OK but "foo" is an error. 29283 # 29284 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29285 # It is also a way to make sure we got the proper file name for the real test later on. 29286 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29287 if test "x$test_shortpath" = x; then 29288 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29289 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29290 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29291 fi 29292 29293 # Call helper function which possibly converts this using DOS-style short mode. 29294 # If so, the updated path is stored in $new_path. 29295 29296 input_path="$new_path" 29297 # Check if we need to convert this using DOS-style short mode. If the path 29298 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29299 # take no chances and rewrite it. 29300 # Note: m4 eats our [], so we need to use [ and ] instead. 29301 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29302 if test "x$has_forbidden_chars" != x; then 29303 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29304 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29305 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29306 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29307 # Going to short mode and back again did indeed matter. Since short mode is 29308 # case insensitive, let's make it lowercase to improve readability. 29309 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29310 # Now convert it back to Unix-style (cygpath) 29311 input_path=`$CYGPATH -u "$shortmode_path"` 29312 new_path="$input_path" 29313 fi 29314 fi 29315 29316 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29317 if test "x$test_cygdrive_prefix" = x; then 29318 # As a simple fix, exclude /usr/bin since it's not a real path. 29319 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29320 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29321 # a path prefixed by /cygdrive for fixpath to work. 29322 new_path="$CYGWIN_ROOT_PATH$input_path" 29323 fi 29324 fi 29325 29326 29327 if test "x$path" != "x$new_path"; then 29328 BOOT_JDK="$new_path" 29329 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29330 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29331 fi 29332 29333 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29334 29335 path="$BOOT_JDK" 29336 has_colon=`$ECHO $path | $GREP ^.:` 29337 new_path="$path" 29338 if test "x$has_colon" = x; then 29339 # Not in mixed or Windows style, start by that. 29340 new_path=`cmd //c echo $path` 29341 fi 29342 29343 29344 input_path="$new_path" 29345 # Check if we need to convert this using DOS-style short mode. If the path 29346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29347 # take no chances and rewrite it. 29348 # Note: m4 eats our [], so we need to use [ and ] instead. 29349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29350 if test "x$has_forbidden_chars" != x; then 29351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29352 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29353 fi 29354 29355 29356 windows_path="$new_path" 29357 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29358 unix_path=`$CYGPATH -u "$windows_path"` 29359 new_path="$unix_path" 29360 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29361 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29362 new_path="$unix_path" 29363 fi 29364 29365 if test "x$path" != "x$new_path"; then 29366 BOOT_JDK="$new_path" 29367 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29368 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29369 fi 29370 29371 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29372 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29373 29374 else 29375 # We're on a unix platform. Hooray! :) 29376 path="$BOOT_JDK" 29377 has_space=`$ECHO "$path" | $GREP " "` 29378 if test "x$has_space" != x; then 29379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29380 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29381 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29382 fi 29383 29384 # Use eval to expand a potential ~ 29385 eval path="$path" 29386 if test ! -f "$path" && test ! -d "$path"; then 29387 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29388 fi 29389 29390 if test -d "$path"; then 29391 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29392 else 29393 dir="`$DIRNAME "$path"`" 29394 base="`$BASENAME "$path"`" 29395 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29396 fi 29397 fi 29398 fi 29399 29400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29401 $as_echo_n "checking for Boot JDK... " >&6; } 29402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29403 $as_echo "$BOOT_JDK" >&6; } 29404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29405 $as_echo_n "checking Boot JDK version... " >&6; } 29406 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29408 $as_echo "$BOOT_JDK_VERSION" >&6; } 29409 fi # end check jdk version 29410 fi # end check javac 29411 fi # end check java 29412 fi # end check boot jdk found 29413 fi 29414 29415 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 29416 29417 if test "x$BOOT_JDK_FOUND" = xno; then 29418 # Now execute the test 29419 29420 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 29421 BOOT_JDK_SUFFIX="/Contents/Home" 29422 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29423 if test "x$ALL_JDKS_FOUND" != x; then 29424 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29425 29426 if test "x$BOOT_JDK_FOUND" = xno; then 29427 # Now execute the test 29428 29429 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29430 if test -d "$BOOT_JDK"; then 29431 BOOT_JDK_FOUND=maybe 29432 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29433 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29434 fi 29435 29436 29437 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29438 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29439 # Do we have a bin/java? 29440 if test ! -x "$BOOT_JDK/bin/java"; then 29441 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29442 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29443 BOOT_JDK_FOUND=no 29444 else 29445 # Do we have a bin/javac? 29446 if test ! -x "$BOOT_JDK/bin/javac"; then 29447 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29448 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29449 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29450 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29451 BOOT_JDK_FOUND=no 29452 else 29453 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29454 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29455 29456 # Extra M4 quote needed to protect [] in grep expression. 29457 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29458 if test "x$FOUND_CORRECT_VERSION" = x; then 29459 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29460 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29461 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29462 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29463 BOOT_JDK_FOUND=no 29464 else 29465 # We're done! :-) 29466 BOOT_JDK_FOUND=yes 29467 29468 # Only process if variable expands to non-empty 29469 29470 if test "x$BOOT_JDK" != x; then 29471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29472 29473 # Input might be given as Windows format, start by converting to 29474 # unix format. 29475 path="$BOOT_JDK" 29476 new_path=`$CYGPATH -u "$path"` 29477 29478 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29479 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29480 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29481 # "foo.exe" is OK but "foo" is an error. 29482 # 29483 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29484 # It is also a way to make sure we got the proper file name for the real test later on. 29485 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29486 if test "x$test_shortpath" = x; then 29487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29488 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29489 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29490 fi 29491 29492 # Call helper function which possibly converts this using DOS-style short mode. 29493 # If so, the updated path is stored in $new_path. 29494 29495 input_path="$new_path" 29496 # Check if we need to convert this using DOS-style short mode. If the path 29497 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29498 # take no chances and rewrite it. 29499 # Note: m4 eats our [], so we need to use [ and ] instead. 29500 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29501 if test "x$has_forbidden_chars" != x; then 29502 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29503 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29504 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29505 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29506 # Going to short mode and back again did indeed matter. Since short mode is 29507 # case insensitive, let's make it lowercase to improve readability. 29508 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29509 # Now convert it back to Unix-style (cygpath) 29510 input_path=`$CYGPATH -u "$shortmode_path"` 29511 new_path="$input_path" 29512 fi 29513 fi 29514 29515 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29516 if test "x$test_cygdrive_prefix" = x; then 29517 # As a simple fix, exclude /usr/bin since it's not a real path. 29518 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29519 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29520 # a path prefixed by /cygdrive for fixpath to work. 29521 new_path="$CYGWIN_ROOT_PATH$input_path" 29522 fi 29523 fi 29524 29525 29526 if test "x$path" != "x$new_path"; then 29527 BOOT_JDK="$new_path" 29528 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29529 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29530 fi 29531 29532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29533 29534 path="$BOOT_JDK" 29535 has_colon=`$ECHO $path | $GREP ^.:` 29536 new_path="$path" 29537 if test "x$has_colon" = x; then 29538 # Not in mixed or Windows style, start by that. 29539 new_path=`cmd //c echo $path` 29540 fi 29541 29542 29543 input_path="$new_path" 29544 # Check if we need to convert this using DOS-style short mode. If the path 29545 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29546 # take no chances and rewrite it. 29547 # Note: m4 eats our [], so we need to use [ and ] instead. 29548 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29549 if test "x$has_forbidden_chars" != x; then 29550 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29551 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29552 fi 29553 29554 29555 windows_path="$new_path" 29556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29557 unix_path=`$CYGPATH -u "$windows_path"` 29558 new_path="$unix_path" 29559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29561 new_path="$unix_path" 29562 fi 29563 29564 if test "x$path" != "x$new_path"; then 29565 BOOT_JDK="$new_path" 29566 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29567 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29568 fi 29569 29570 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29571 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29572 29573 else 29574 # We're on a unix platform. Hooray! :) 29575 path="$BOOT_JDK" 29576 has_space=`$ECHO "$path" | $GREP " "` 29577 if test "x$has_space" != x; then 29578 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29579 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29580 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29581 fi 29582 29583 # Use eval to expand a potential ~ 29584 eval path="$path" 29585 if test ! -f "$path" && test ! -d "$path"; then 29586 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29587 fi 29588 29589 if test -d "$path"; then 29590 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29591 else 29592 dir="`$DIRNAME "$path"`" 29593 base="`$BASENAME "$path"`" 29594 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29595 fi 29596 fi 29597 fi 29598 29599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29600 $as_echo_n "checking for Boot JDK... " >&6; } 29601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29602 $as_echo "$BOOT_JDK" >&6; } 29603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29604 $as_echo_n "checking Boot JDK version... " >&6; } 29605 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29607 $as_echo "$BOOT_JDK_VERSION" >&6; } 29608 fi # end check jdk version 29609 fi # end check javac 29610 fi # end check java 29611 fi # end check boot jdk found 29612 fi 29613 29614 done 29615 fi 29616 29617 29618 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29619 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29620 # Do we have a bin/java? 29621 if test ! -x "$BOOT_JDK/bin/java"; then 29622 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29623 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29624 BOOT_JDK_FOUND=no 29625 else 29626 # Do we have a bin/javac? 29627 if test ! -x "$BOOT_JDK/bin/javac"; then 29628 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29630 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29631 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29632 BOOT_JDK_FOUND=no 29633 else 29634 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29635 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29636 29637 # Extra M4 quote needed to protect [] in grep expression. 29638 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29639 if test "x$FOUND_CORRECT_VERSION" = x; then 29640 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29641 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29642 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29643 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29644 BOOT_JDK_FOUND=no 29645 else 29646 # We're done! :-) 29647 BOOT_JDK_FOUND=yes 29648 29649 # Only process if variable expands to non-empty 29650 29651 if test "x$BOOT_JDK" != x; then 29652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29653 29654 # Input might be given as Windows format, start by converting to 29655 # unix format. 29656 path="$BOOT_JDK" 29657 new_path=`$CYGPATH -u "$path"` 29658 29659 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29660 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29661 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29662 # "foo.exe" is OK but "foo" is an error. 29663 # 29664 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29665 # It is also a way to make sure we got the proper file name for the real test later on. 29666 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29667 if test "x$test_shortpath" = x; then 29668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29669 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29670 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29671 fi 29672 29673 # Call helper function which possibly converts this using DOS-style short mode. 29674 # If so, the updated path is stored in $new_path. 29675 29676 input_path="$new_path" 29677 # Check if we need to convert this using DOS-style short mode. If the path 29678 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29679 # take no chances and rewrite it. 29680 # Note: m4 eats our [], so we need to use [ and ] instead. 29681 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29682 if test "x$has_forbidden_chars" != x; then 29683 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29684 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29685 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29686 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29687 # Going to short mode and back again did indeed matter. Since short mode is 29688 # case insensitive, let's make it lowercase to improve readability. 29689 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29690 # Now convert it back to Unix-style (cygpath) 29691 input_path=`$CYGPATH -u "$shortmode_path"` 29692 new_path="$input_path" 29693 fi 29694 fi 29695 29696 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29697 if test "x$test_cygdrive_prefix" = x; then 29698 # As a simple fix, exclude /usr/bin since it's not a real path. 29699 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29700 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29701 # a path prefixed by /cygdrive for fixpath to work. 29702 new_path="$CYGWIN_ROOT_PATH$input_path" 29703 fi 29704 fi 29705 29706 29707 if test "x$path" != "x$new_path"; then 29708 BOOT_JDK="$new_path" 29709 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29710 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29711 fi 29712 29713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29714 29715 path="$BOOT_JDK" 29716 has_colon=`$ECHO $path | $GREP ^.:` 29717 new_path="$path" 29718 if test "x$has_colon" = x; then 29719 # Not in mixed or Windows style, start by that. 29720 new_path=`cmd //c echo $path` 29721 fi 29722 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29733 fi 29734 29735 29736 windows_path="$new_path" 29737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29738 unix_path=`$CYGPATH -u "$windows_path"` 29739 new_path="$unix_path" 29740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29742 new_path="$unix_path" 29743 fi 29744 29745 if test "x$path" != "x$new_path"; then 29746 BOOT_JDK="$new_path" 29747 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29748 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29749 fi 29750 29751 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29752 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29753 29754 else 29755 # We're on a unix platform. Hooray! :) 29756 path="$BOOT_JDK" 29757 has_space=`$ECHO "$path" | $GREP " "` 29758 if test "x$has_space" != x; then 29759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29760 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29761 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29762 fi 29763 29764 # Use eval to expand a potential ~ 29765 eval path="$path" 29766 if test ! -f "$path" && test ! -d "$path"; then 29767 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29768 fi 29769 29770 if test -d "$path"; then 29771 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29772 else 29773 dir="`$DIRNAME "$path"`" 29774 base="`$BASENAME "$path"`" 29775 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29776 fi 29777 fi 29778 fi 29779 29780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29781 $as_echo_n "checking for Boot JDK... " >&6; } 29782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29783 $as_echo "$BOOT_JDK" >&6; } 29784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29785 $as_echo_n "checking Boot JDK version... " >&6; } 29786 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29788 $as_echo "$BOOT_JDK_VERSION" >&6; } 29789 fi # end check jdk version 29790 fi # end check javac 29791 fi # end check java 29792 fi # end check boot jdk found 29793 fi 29794 29795 29796 if test "x$BOOT_JDK_FOUND" = xno; then 29797 # Now execute the test 29798 29799 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 29800 BOOT_JDK_SUFFIX="/Contents/Home" 29801 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29802 if test "x$ALL_JDKS_FOUND" != x; then 29803 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29804 29805 if test "x$BOOT_JDK_FOUND" = xno; then 29806 # Now execute the test 29807 29808 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29809 if test -d "$BOOT_JDK"; then 29810 BOOT_JDK_FOUND=maybe 29811 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29812 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29813 fi 29814 29815 29816 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29817 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29818 # Do we have a bin/java? 29819 if test ! -x "$BOOT_JDK/bin/java"; then 29820 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29822 BOOT_JDK_FOUND=no 29823 else 29824 # Do we have a bin/javac? 29825 if test ! -x "$BOOT_JDK/bin/javac"; then 29826 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29827 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29828 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29829 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29830 BOOT_JDK_FOUND=no 29831 else 29832 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29833 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29834 29835 # Extra M4 quote needed to protect [] in grep expression. 29836 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29837 if test "x$FOUND_CORRECT_VERSION" = x; then 29838 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29839 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29840 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29841 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29842 BOOT_JDK_FOUND=no 29843 else 29844 # We're done! :-) 29845 BOOT_JDK_FOUND=yes 29846 29847 # Only process if variable expands to non-empty 29848 29849 if test "x$BOOT_JDK" != x; then 29850 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29851 29852 # Input might be given as Windows format, start by converting to 29853 # unix format. 29854 path="$BOOT_JDK" 29855 new_path=`$CYGPATH -u "$path"` 29856 29857 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29858 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29859 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29860 # "foo.exe" is OK but "foo" is an error. 29861 # 29862 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29863 # It is also a way to make sure we got the proper file name for the real test later on. 29864 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29865 if test "x$test_shortpath" = x; then 29866 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29867 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29868 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29869 fi 29870 29871 # Call helper function which possibly converts this using DOS-style short mode. 29872 # If so, the updated path is stored in $new_path. 29873 29874 input_path="$new_path" 29875 # Check if we need to convert this using DOS-style short mode. If the path 29876 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29877 # take no chances and rewrite it. 29878 # Note: m4 eats our [], so we need to use [ and ] instead. 29879 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29880 if test "x$has_forbidden_chars" != x; then 29881 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29882 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29883 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29884 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29885 # Going to short mode and back again did indeed matter. Since short mode is 29886 # case insensitive, let's make it lowercase to improve readability. 29887 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29888 # Now convert it back to Unix-style (cygpath) 29889 input_path=`$CYGPATH -u "$shortmode_path"` 29890 new_path="$input_path" 29891 fi 29892 fi 29893 29894 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29895 if test "x$test_cygdrive_prefix" = x; then 29896 # As a simple fix, exclude /usr/bin since it's not a real path. 29897 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29898 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29899 # a path prefixed by /cygdrive for fixpath to work. 29900 new_path="$CYGWIN_ROOT_PATH$input_path" 29901 fi 29902 fi 29903 29904 29905 if test "x$path" != "x$new_path"; then 29906 BOOT_JDK="$new_path" 29907 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29908 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29909 fi 29910 29911 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29912 29913 path="$BOOT_JDK" 29914 has_colon=`$ECHO $path | $GREP ^.:` 29915 new_path="$path" 29916 if test "x$has_colon" = x; then 29917 # Not in mixed or Windows style, start by that. 29918 new_path=`cmd //c echo $path` 29919 fi 29920 29921 29922 input_path="$new_path" 29923 # Check if we need to convert this using DOS-style short mode. If the path 29924 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29925 # take no chances and rewrite it. 29926 # Note: m4 eats our [], so we need to use [ and ] instead. 29927 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29928 if test "x$has_forbidden_chars" != x; then 29929 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29930 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29931 fi 29932 29933 29934 windows_path="$new_path" 29935 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29936 unix_path=`$CYGPATH -u "$windows_path"` 29937 new_path="$unix_path" 29938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29939 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29940 new_path="$unix_path" 29941 fi 29942 29943 if test "x$path" != "x$new_path"; then 29944 BOOT_JDK="$new_path" 29945 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29946 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29947 fi 29948 29949 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29950 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29951 29952 else 29953 # We're on a unix platform. Hooray! :) 29954 path="$BOOT_JDK" 29955 has_space=`$ECHO "$path" | $GREP " "` 29956 if test "x$has_space" != x; then 29957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29958 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29959 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29960 fi 29961 29962 # Use eval to expand a potential ~ 29963 eval path="$path" 29964 if test ! -f "$path" && test ! -d "$path"; then 29965 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29966 fi 29967 29968 if test -d "$path"; then 29969 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29970 else 29971 dir="`$DIRNAME "$path"`" 29972 base="`$BASENAME "$path"`" 29973 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29974 fi 29975 fi 29976 fi 29977 29978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29979 $as_echo_n "checking for Boot JDK... " >&6; } 29980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29981 $as_echo "$BOOT_JDK" >&6; } 29982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29983 $as_echo_n "checking Boot JDK version... " >&6; } 29984 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29986 $as_echo "$BOOT_JDK_VERSION" >&6; } 29987 fi # end check jdk version 29988 fi # end check javac 29989 fi # end check java 29990 fi # end check boot jdk found 29991 fi 29992 29993 done 29994 fi 29995 29996 29997 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29998 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29999 # Do we have a bin/java? 30000 if test ! -x "$BOOT_JDK/bin/java"; then 30001 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30002 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30003 BOOT_JDK_FOUND=no 30004 else 30005 # Do we have a bin/javac? 30006 if test ! -x "$BOOT_JDK/bin/javac"; then 30007 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30009 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30010 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30011 BOOT_JDK_FOUND=no 30012 else 30013 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30014 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30015 30016 # Extra M4 quote needed to protect [] in grep expression. 30017 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 30018 if test "x$FOUND_CORRECT_VERSION" = x; then 30019 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30020 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30021 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 30022 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 30023 BOOT_JDK_FOUND=no 30024 else 30025 # We're done! :-) 30026 BOOT_JDK_FOUND=yes 30027 30028 # Only process if variable expands to non-empty 30029 30030 if test "x$BOOT_JDK" != x; then 30031 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30032 30033 # Input might be given as Windows format, start by converting to 30034 # unix format. 30035 path="$BOOT_JDK" 30036 new_path=`$CYGPATH -u "$path"` 30037 30038 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30039 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30040 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30041 # "foo.exe" is OK but "foo" is an error. 30042 # 30043 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30044 # It is also a way to make sure we got the proper file name for the real test later on. 30045 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30046 if test "x$test_shortpath" = x; then 30047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30048 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30049 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30050 fi 30051 30052 # Call helper function which possibly converts this using DOS-style short mode. 30053 # If so, the updated path is stored in $new_path. 30054 30055 input_path="$new_path" 30056 # Check if we need to convert this using DOS-style short mode. If the path 30057 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30058 # take no chances and rewrite it. 30059 # Note: m4 eats our [], so we need to use [ and ] instead. 30060 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30061 if test "x$has_forbidden_chars" != x; then 30062 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30063 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30064 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30065 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30066 # Going to short mode and back again did indeed matter. Since short mode is 30067 # case insensitive, let's make it lowercase to improve readability. 30068 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30069 # Now convert it back to Unix-style (cygpath) 30070 input_path=`$CYGPATH -u "$shortmode_path"` 30071 new_path="$input_path" 30072 fi 30073 fi 30074 30075 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30076 if test "x$test_cygdrive_prefix" = x; then 30077 # As a simple fix, exclude /usr/bin since it's not a real path. 30078 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30079 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30080 # a path prefixed by /cygdrive for fixpath to work. 30081 new_path="$CYGWIN_ROOT_PATH$input_path" 30082 fi 30083 fi 30084 30085 30086 if test "x$path" != "x$new_path"; then 30087 BOOT_JDK="$new_path" 30088 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30089 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30090 fi 30091 30092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30093 30094 path="$BOOT_JDK" 30095 has_colon=`$ECHO $path | $GREP ^.:` 30096 new_path="$path" 30097 if test "x$has_colon" = x; then 30098 # Not in mixed or Windows style, start by that. 30099 new_path=`cmd //c echo $path` 30100 fi 30101 30102 30103 input_path="$new_path" 30104 # Check if we need to convert this using DOS-style short mode. If the path 30105 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30106 # take no chances and rewrite it. 30107 # Note: m4 eats our [], so we need to use [ and ] instead. 30108 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30109 if test "x$has_forbidden_chars" != x; then 30110 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30111 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30112 fi 30113 30114 30115 windows_path="$new_path" 30116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30117 unix_path=`$CYGPATH -u "$windows_path"` 30118 new_path="$unix_path" 30119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30120 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30121 new_path="$unix_path" 30122 fi 30123 30124 if test "x$path" != "x$new_path"; then 30125 BOOT_JDK="$new_path" 30126 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30127 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30128 fi 30129 30130 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30131 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30132 30133 else 30134 # We're on a unix platform. Hooray! :) 30135 path="$BOOT_JDK" 30136 has_space=`$ECHO "$path" | $GREP " "` 30137 if test "x$has_space" != x; then 30138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30139 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30140 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30141 fi 30142 30143 # Use eval to expand a potential ~ 30144 eval path="$path" 30145 if test ! -f "$path" && test ! -d "$path"; then 30146 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30147 fi 30148 30149 if test -d "$path"; then 30150 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30151 else 30152 dir="`$DIRNAME "$path"`" 30153 base="`$BASENAME "$path"`" 30154 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30155 fi 30156 fi 30157 fi 30158 30159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30160 $as_echo_n "checking for Boot JDK... " >&6; } 30161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30162 $as_echo "$BOOT_JDK" >&6; } 30163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30164 $as_echo_n "checking Boot JDK version... " >&6; } 30165 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30167 $as_echo "$BOOT_JDK_VERSION" >&6; } 30168 fi # end check jdk version 30169 fi # end check javac 30170 fi # end check java 30171 fi # end check boot jdk found 30172 fi 30173 30174 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 30175 30176 if test "x$BOOT_JDK_FOUND" = xno; then 30177 # Now execute the test 30178 30179 BOOT_JDK_PREFIX="/usr/lib/jvm" 30180 BOOT_JDK_SUFFIX="" 30181 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 30182 if test "x$ALL_JDKS_FOUND" != x; then 30183 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 30184 30185 if test "x$BOOT_JDK_FOUND" = xno; then 30186 # Now execute the test 30187 30188 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 30189 if test -d "$BOOT_JDK"; then 30190 BOOT_JDK_FOUND=maybe 30191 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 30192 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 30193 fi 30194 30195 30196 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30197 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30198 # Do we have a bin/java? 30199 if test ! -x "$BOOT_JDK/bin/java"; then 30200 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30201 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30202 BOOT_JDK_FOUND=no 30203 else 30204 # Do we have a bin/javac? 30205 if test ! -x "$BOOT_JDK/bin/javac"; then 30206 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30207 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30208 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30209 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30210 BOOT_JDK_FOUND=no 30211 else 30212 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30213 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30214 30215 # Extra M4 quote needed to protect [] in grep expression. 30216 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 30217 if test "x$FOUND_CORRECT_VERSION" = x; then 30218 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30219 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30220 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 30221 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 30222 BOOT_JDK_FOUND=no 30223 else 30224 # We're done! :-) 30225 BOOT_JDK_FOUND=yes 30226 30227 # Only process if variable expands to non-empty 30228 30229 if test "x$BOOT_JDK" != x; then 30230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30231 30232 # Input might be given as Windows format, start by converting to 30233 # unix format. 30234 path="$BOOT_JDK" 30235 new_path=`$CYGPATH -u "$path"` 30236 30237 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30238 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30239 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30240 # "foo.exe" is OK but "foo" is an error. 30241 # 30242 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30243 # It is also a way to make sure we got the proper file name for the real test later on. 30244 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30245 if test "x$test_shortpath" = x; then 30246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30247 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30248 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30249 fi 30250 30251 # Call helper function which possibly converts this using DOS-style short mode. 30252 # If so, the updated path is stored in $new_path. 30253 30254 input_path="$new_path" 30255 # Check if we need to convert this using DOS-style short mode. If the path 30256 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30257 # take no chances and rewrite it. 30258 # Note: m4 eats our [], so we need to use [ and ] instead. 30259 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30260 if test "x$has_forbidden_chars" != x; then 30261 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30262 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30263 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30264 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30265 # Going to short mode and back again did indeed matter. Since short mode is 30266 # case insensitive, let's make it lowercase to improve readability. 30267 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30268 # Now convert it back to Unix-style (cygpath) 30269 input_path=`$CYGPATH -u "$shortmode_path"` 30270 new_path="$input_path" 30271 fi 30272 fi 30273 30274 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30275 if test "x$test_cygdrive_prefix" = x; then 30276 # As a simple fix, exclude /usr/bin since it's not a real path. 30277 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30278 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30279 # a path prefixed by /cygdrive for fixpath to work. 30280 new_path="$CYGWIN_ROOT_PATH$input_path" 30281 fi 30282 fi 30283 30284 30285 if test "x$path" != "x$new_path"; then 30286 BOOT_JDK="$new_path" 30287 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30288 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30289 fi 30290 30291 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30292 30293 path="$BOOT_JDK" 30294 has_colon=`$ECHO $path | $GREP ^.:` 30295 new_path="$path" 30296 if test "x$has_colon" = x; then 30297 # Not in mixed or Windows style, start by that. 30298 new_path=`cmd //c echo $path` 30299 fi 30300 30301 30302 input_path="$new_path" 30303 # Check if we need to convert this using DOS-style short mode. If the path 30304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30305 # take no chances and rewrite it. 30306 # Note: m4 eats our [], so we need to use [ and ] instead. 30307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30308 if test "x$has_forbidden_chars" != x; then 30309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30310 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30311 fi 30312 30313 30314 windows_path="$new_path" 30315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30316 unix_path=`$CYGPATH -u "$windows_path"` 30317 new_path="$unix_path" 30318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30319 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30320 new_path="$unix_path" 30321 fi 30322 30323 if test "x$path" != "x$new_path"; then 30324 BOOT_JDK="$new_path" 30325 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30326 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30327 fi 30328 30329 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30330 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30331 30332 else 30333 # We're on a unix platform. Hooray! :) 30334 path="$BOOT_JDK" 30335 has_space=`$ECHO "$path" | $GREP " "` 30336 if test "x$has_space" != x; then 30337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30338 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30339 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30340 fi 30341 30342 # Use eval to expand a potential ~ 30343 eval path="$path" 30344 if test ! -f "$path" && test ! -d "$path"; then 30345 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30346 fi 30347 30348 if test -d "$path"; then 30349 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30350 else 30351 dir="`$DIRNAME "$path"`" 30352 base="`$BASENAME "$path"`" 30353 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30354 fi 30355 fi 30356 fi 30357 30358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30359 $as_echo_n "checking for Boot JDK... " >&6; } 30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30361 $as_echo "$BOOT_JDK" >&6; } 30362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30363 $as_echo_n "checking Boot JDK version... " >&6; } 30364 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30366 $as_echo "$BOOT_JDK_VERSION" >&6; } 30367 fi # end check jdk version 30368 fi # end check javac 30369 fi # end check java 30370 fi # end check boot jdk found 30371 fi 30372 30373 done 30374 fi 30375 30376 30377 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30378 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30379 # Do we have a bin/java? 30380 if test ! -x "$BOOT_JDK/bin/java"; then 30381 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30382 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30383 BOOT_JDK_FOUND=no 30384 else 30385 # Do we have a bin/javac? 30386 if test ! -x "$BOOT_JDK/bin/javac"; then 30387 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30388 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30389 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30390 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30391 BOOT_JDK_FOUND=no 30392 else 30393 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30394 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30395 30396 # Extra M4 quote needed to protect [] in grep expression. 30397 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 30398 if test "x$FOUND_CORRECT_VERSION" = x; then 30399 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30400 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30401 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 30402 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 30403 BOOT_JDK_FOUND=no 30404 else 30405 # We're done! :-) 30406 BOOT_JDK_FOUND=yes 30407 30408 # Only process if variable expands to non-empty 30409 30410 if test "x$BOOT_JDK" != x; then 30411 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30412 30413 # Input might be given as Windows format, start by converting to 30414 # unix format. 30415 path="$BOOT_JDK" 30416 new_path=`$CYGPATH -u "$path"` 30417 30418 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30419 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30420 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30421 # "foo.exe" is OK but "foo" is an error. 30422 # 30423 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30424 # It is also a way to make sure we got the proper file name for the real test later on. 30425 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30426 if test "x$test_shortpath" = x; then 30427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30428 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30429 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30430 fi 30431 30432 # Call helper function which possibly converts this using DOS-style short mode. 30433 # If so, the updated path is stored in $new_path. 30434 30435 input_path="$new_path" 30436 # Check if we need to convert this using DOS-style short mode. If the path 30437 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30438 # take no chances and rewrite it. 30439 # Note: m4 eats our [], so we need to use [ and ] instead. 30440 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30441 if test "x$has_forbidden_chars" != x; then 30442 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30443 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30444 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30445 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30446 # Going to short mode and back again did indeed matter. Since short mode is 30447 # case insensitive, let's make it lowercase to improve readability. 30448 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30449 # Now convert it back to Unix-style (cygpath) 30450 input_path=`$CYGPATH -u "$shortmode_path"` 30451 new_path="$input_path" 30452 fi 30453 fi 30454 30455 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30456 if test "x$test_cygdrive_prefix" = x; then 30457 # As a simple fix, exclude /usr/bin since it's not a real path. 30458 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30459 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30460 # a path prefixed by /cygdrive for fixpath to work. 30461 new_path="$CYGWIN_ROOT_PATH$input_path" 30462 fi 30463 fi 30464 30465 30466 if test "x$path" != "x$new_path"; then 30467 BOOT_JDK="$new_path" 30468 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30469 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30470 fi 30471 30472 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30473 30474 path="$BOOT_JDK" 30475 has_colon=`$ECHO $path | $GREP ^.:` 30476 new_path="$path" 30477 if test "x$has_colon" = x; then 30478 # Not in mixed or Windows style, start by that. 30479 new_path=`cmd //c echo $path` 30480 fi 30481 30482 30483 input_path="$new_path" 30484 # Check if we need to convert this using DOS-style short mode. If the path 30485 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30486 # take no chances and rewrite it. 30487 # Note: m4 eats our [], so we need to use [ and ] instead. 30488 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30489 if test "x$has_forbidden_chars" != x; then 30490 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30491 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30492 fi 30493 30494 30495 windows_path="$new_path" 30496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30497 unix_path=`$CYGPATH -u "$windows_path"` 30498 new_path="$unix_path" 30499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30500 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30501 new_path="$unix_path" 30502 fi 30503 30504 if test "x$path" != "x$new_path"; then 30505 BOOT_JDK="$new_path" 30506 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30507 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30508 fi 30509 30510 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30511 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30512 30513 else 30514 # We're on a unix platform. Hooray! :) 30515 path="$BOOT_JDK" 30516 has_space=`$ECHO "$path" | $GREP " "` 30517 if test "x$has_space" != x; then 30518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30519 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30520 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30521 fi 30522 30523 # Use eval to expand a potential ~ 30524 eval path="$path" 30525 if test ! -f "$path" && test ! -d "$path"; then 30526 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30527 fi 30528 30529 if test -d "$path"; then 30530 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30531 else 30532 dir="`$DIRNAME "$path"`" 30533 base="`$BASENAME "$path"`" 30534 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30535 fi 30536 fi 30537 fi 30538 30539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30540 $as_echo_n "checking for Boot JDK... " >&6; } 30541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30542 $as_echo "$BOOT_JDK" >&6; } 30543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30544 $as_echo_n "checking Boot JDK version... " >&6; } 30545 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30547 $as_echo "$BOOT_JDK_VERSION" >&6; } 30548 fi # end check jdk version 30549 fi # end check javac 30550 fi # end check java 30551 fi # end check boot jdk found 30552 fi 30553 30554 fi 30555 30556 30557 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30558 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30559 # Do we have a bin/java? 30560 if test ! -x "$BOOT_JDK/bin/java"; then 30561 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30562 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30563 BOOT_JDK_FOUND=no 30564 else 30565 # Do we have a bin/javac? 30566 if test ! -x "$BOOT_JDK/bin/javac"; then 30567 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30568 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30569 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30570 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30571 BOOT_JDK_FOUND=no 30572 else 30573 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30574 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30575 30576 # Extra M4 quote needed to protect [] in grep expression. 30577 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 30578 if test "x$FOUND_CORRECT_VERSION" = x; then 30579 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30580 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30581 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 30582 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 30583 BOOT_JDK_FOUND=no 30584 else 30585 # We're done! :-) 30586 BOOT_JDK_FOUND=yes 30587 30588 # Only process if variable expands to non-empty 30589 30590 if test "x$BOOT_JDK" != x; then 30591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30592 30593 # Input might be given as Windows format, start by converting to 30594 # unix format. 30595 path="$BOOT_JDK" 30596 new_path=`$CYGPATH -u "$path"` 30597 30598 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30599 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30600 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30601 # "foo.exe" is OK but "foo" is an error. 30602 # 30603 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30604 # It is also a way to make sure we got the proper file name for the real test later on. 30605 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30606 if test "x$test_shortpath" = x; then 30607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30608 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30609 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30610 fi 30611 30612 # Call helper function which possibly converts this using DOS-style short mode. 30613 # If so, the updated path is stored in $new_path. 30614 30615 input_path="$new_path" 30616 # Check if we need to convert this using DOS-style short mode. If the path 30617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30618 # take no chances and rewrite it. 30619 # Note: m4 eats our [], so we need to use [ and ] instead. 30620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30621 if test "x$has_forbidden_chars" != x; then 30622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30623 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30624 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30625 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30626 # Going to short mode and back again did indeed matter. Since short mode is 30627 # case insensitive, let's make it lowercase to improve readability. 30628 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30629 # Now convert it back to Unix-style (cygpath) 30630 input_path=`$CYGPATH -u "$shortmode_path"` 30631 new_path="$input_path" 30632 fi 30633 fi 30634 30635 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30636 if test "x$test_cygdrive_prefix" = x; then 30637 # As a simple fix, exclude /usr/bin since it's not a real path. 30638 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30639 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30640 # a path prefixed by /cygdrive for fixpath to work. 30641 new_path="$CYGWIN_ROOT_PATH$input_path" 30642 fi 30643 fi 30644 30645 30646 if test "x$path" != "x$new_path"; then 30647 BOOT_JDK="$new_path" 30648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30649 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30650 fi 30651 30652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30653 30654 path="$BOOT_JDK" 30655 has_colon=`$ECHO $path | $GREP ^.:` 30656 new_path="$path" 30657 if test "x$has_colon" = x; then 30658 # Not in mixed or Windows style, start by that. 30659 new_path=`cmd //c echo $path` 30660 fi 30661 30662 30663 input_path="$new_path" 30664 # Check if we need to convert this using DOS-style short mode. If the path 30665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30666 # take no chances and rewrite it. 30667 # Note: m4 eats our [], so we need to use [ and ] instead. 30668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30669 if test "x$has_forbidden_chars" != x; then 30670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30671 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30672 fi 30673 30674 30675 windows_path="$new_path" 30676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30677 unix_path=`$CYGPATH -u "$windows_path"` 30678 new_path="$unix_path" 30679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30680 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30681 new_path="$unix_path" 30682 fi 30683 30684 if test "x$path" != "x$new_path"; then 30685 BOOT_JDK="$new_path" 30686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30687 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30688 fi 30689 30690 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30691 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30692 30693 else 30694 # We're on a unix platform. Hooray! :) 30695 path="$BOOT_JDK" 30696 has_space=`$ECHO "$path" | $GREP " "` 30697 if test "x$has_space" != x; then 30698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30699 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30700 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30701 fi 30702 30703 # Use eval to expand a potential ~ 30704 eval path="$path" 30705 if test ! -f "$path" && test ! -d "$path"; then 30706 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30707 fi 30708 30709 if test -d "$path"; then 30710 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30711 else 30712 dir="`$DIRNAME "$path"`" 30713 base="`$BASENAME "$path"`" 30714 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30715 fi 30716 fi 30717 fi 30718 30719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30720 $as_echo_n "checking for Boot JDK... " >&6; } 30721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30722 $as_echo "$BOOT_JDK" >&6; } 30723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30724 $as_echo_n "checking Boot JDK version... " >&6; } 30725 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30727 $as_echo "$BOOT_JDK_VERSION" >&6; } 30728 fi # end check jdk version 30729 fi # end check javac 30730 fi # end check java 30731 fi # end check boot jdk found 30732 fi 30733 30734 30735 # If we haven't found anything yet, we've truly lost. Give up. 30736 if test "x$BOOT_JDK_FOUND" = xno; then 30737 30738 # Print a helpful message on how to acquire the necessary build dependency. 30739 # openjdk is the help tag: freetype, cups, alsa etc 30740 MISSING_DEPENDENCY=openjdk 30741 30742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30743 cygwin_help $MISSING_DEPENDENCY 30744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30745 msys_help $MISSING_DEPENDENCY 30746 else 30747 PKGHANDLER_COMMAND= 30748 30749 case $PKGHANDLER in 30750 apt-get) 30751 apt_help $MISSING_DEPENDENCY ;; 30752 yum) 30753 yum_help $MISSING_DEPENDENCY ;; 30754 brew) 30755 brew_help $MISSING_DEPENDENCY ;; 30756 port) 30757 port_help $MISSING_DEPENDENCY ;; 30758 pkgutil) 30759 pkgutil_help $MISSING_DEPENDENCY ;; 30760 pkgadd) 30761 pkgadd_help $MISSING_DEPENDENCY ;; 30762 esac 30763 30764 if test "x$PKGHANDLER_COMMAND" != x; then 30765 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30766 fi 30767 fi 30768 30769 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 30770 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 30771 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitly setting --with-boot-jdk" >&5 30772 $as_echo "$as_me: This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30773 as_fn_error $? "Cannot continue" "$LINENO" 5 30774 fi 30775 30776 30777 30778 # Setup tools from the Boot JDK. 30779 30780 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30781 30782 # Publish this variable in the help. 30783 30784 30785 if [ -z "${JAVA+x}" ]; then 30786 # The variable is not set by user, try to locate tool using the code snippet 30787 30788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30789 $as_echo_n "checking for java in Boot JDK... " >&6; } 30790 JAVA=$BOOT_JDK/bin/java 30791 if test ! -x $JAVA; then 30792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30793 $as_echo "not found" >&6; } 30794 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30795 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30796 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30797 fi 30798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30799 $as_echo "ok" >&6; } 30800 30801 30802 else 30803 # The variable is set, but is it from the command line or the environment? 30804 30805 # Try to remove the string !JAVA! from our list. 30806 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 30807 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30808 # If it failed, the variable was not from the command line. Ignore it, 30809 # but warn the user (except for BASH, which is always set by the calling BASH). 30810 if test "xJAVA" != xBASH; then 30811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 30812 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 30813 fi 30814 # Try to locate tool using the code snippet 30815 30816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30817 $as_echo_n "checking for java in Boot JDK... " >&6; } 30818 JAVA=$BOOT_JDK/bin/java 30819 if test ! -x $JAVA; then 30820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30821 $as_echo "not found" >&6; } 30822 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30823 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30824 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30825 fi 30826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30827 $as_echo "ok" >&6; } 30828 30829 30830 else 30831 # If it succeeded, then it was overridden by the user. We will use it 30832 # for the tool. 30833 30834 # First remove it from the list of overridden variables, so we can test 30835 # for unknown variables in the end. 30836 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30837 30838 # Check if we try to supply an empty value 30839 if test "x$JAVA" = x; then 30840 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 30841 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 30842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30843 $as_echo_n "checking for JAVA... " >&6; } 30844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30845 $as_echo "disabled" >&6; } 30846 else 30847 # Check if the provided tool contains a complete path. 30848 tool_specified="$JAVA" 30849 tool_basename="${tool_specified##*/}" 30850 if test "x$tool_basename" = "x$tool_specified"; then 30851 # A command without a complete path is provided, search $PATH. 30852 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 30853 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 30854 # Extract the first word of "$tool_basename", so it can be a program name with args. 30855 set dummy $tool_basename; ac_word=$2 30856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30857 $as_echo_n "checking for $ac_word... " >&6; } 30858 if ${ac_cv_path_JAVA+:} false; then : 30859 $as_echo_n "(cached) " >&6 30860 else 30861 case $JAVA in 30862 [\\/]* | ?:[\\/]*) 30863 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 30864 ;; 30865 *) 30866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30867 for as_dir in $PATH 30868 do 30869 IFS=$as_save_IFS 30870 test -z "$as_dir" && as_dir=. 30871 for ac_exec_ext in '' $ac_executable_extensions; do 30872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30873 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 30874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30875 break 2 30876 fi 30877 done 30878 done 30879 IFS=$as_save_IFS 30880 30881 ;; 30882 esac 30883 fi 30884 JAVA=$ac_cv_path_JAVA 30885 if test -n "$JAVA"; then 30886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30887 $as_echo "$JAVA" >&6; } 30888 else 30889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30890 $as_echo "no" >&6; } 30891 fi 30892 30893 30894 if test "x$JAVA" = x; then 30895 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30896 fi 30897 else 30898 # Otherwise we believe it is a complete path. Use it as it is. 30899 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30900 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30902 $as_echo_n "checking for JAVA... " >&6; } 30903 if test ! -x "$tool_specified"; then 30904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30905 $as_echo "not found" >&6; } 30906 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30907 fi 30908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30909 $as_echo "$tool_specified" >&6; } 30910 fi 30911 fi 30912 fi 30913 30914 fi 30915 30916 30917 30918 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30919 30920 # Publish this variable in the help. 30921 30922 30923 if [ -z "${JAVAC+x}" ]; then 30924 # The variable is not set by user, try to locate tool using the code snippet 30925 30926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30927 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30928 JAVAC=$BOOT_JDK/bin/javac 30929 if test ! -x $JAVAC; then 30930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30931 $as_echo "not found" >&6; } 30932 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30933 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30934 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30935 fi 30936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30937 $as_echo "ok" >&6; } 30938 30939 30940 else 30941 # The variable is set, but is it from the command line or the environment? 30942 30943 # Try to remove the string !JAVAC! from our list. 30944 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30945 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30946 # If it failed, the variable was not from the command line. Ignore it, 30947 # but warn the user (except for BASH, which is always set by the calling BASH). 30948 if test "xJAVAC" != xBASH; then 30949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30950 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30951 fi 30952 # Try to locate tool using the code snippet 30953 30954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30955 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30956 JAVAC=$BOOT_JDK/bin/javac 30957 if test ! -x $JAVAC; then 30958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30959 $as_echo "not found" >&6; } 30960 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30961 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30962 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30963 fi 30964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30965 $as_echo "ok" >&6; } 30966 30967 30968 else 30969 # If it succeeded, then it was overridden by the user. We will use it 30970 # for the tool. 30971 30972 # First remove it from the list of overridden variables, so we can test 30973 # for unknown variables in the end. 30974 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30975 30976 # Check if we try to supply an empty value 30977 if test "x$JAVAC" = x; then 30978 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 30979 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 30980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30981 $as_echo_n "checking for JAVAC... " >&6; } 30982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30983 $as_echo "disabled" >&6; } 30984 else 30985 # Check if the provided tool contains a complete path. 30986 tool_specified="$JAVAC" 30987 tool_basename="${tool_specified##*/}" 30988 if test "x$tool_basename" = "x$tool_specified"; then 30989 # A command without a complete path is provided, search $PATH. 30990 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 30991 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 30992 # Extract the first word of "$tool_basename", so it can be a program name with args. 30993 set dummy $tool_basename; ac_word=$2 30994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30995 $as_echo_n "checking for $ac_word... " >&6; } 30996 if ${ac_cv_path_JAVAC+:} false; then : 30997 $as_echo_n "(cached) " >&6 30998 else 30999 case $JAVAC in 31000 [\\/]* | ?:[\\/]*) 31001 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 31002 ;; 31003 *) 31004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31005 for as_dir in $PATH 31006 do 31007 IFS=$as_save_IFS 31008 test -z "$as_dir" && as_dir=. 31009 for ac_exec_ext in '' $ac_executable_extensions; do 31010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31011 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 31012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31013 break 2 31014 fi 31015 done 31016 done 31017 IFS=$as_save_IFS 31018 31019 ;; 31020 esac 31021 fi 31022 JAVAC=$ac_cv_path_JAVAC 31023 if test -n "$JAVAC"; then 31024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 31025 $as_echo "$JAVAC" >&6; } 31026 else 31027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31028 $as_echo "no" >&6; } 31029 fi 31030 31031 31032 if test "x$JAVAC" = x; then 31033 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31034 fi 31035 else 31036 # Otherwise we believe it is a complete path. Use it as it is. 31037 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 31038 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 31039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 31040 $as_echo_n "checking for JAVAC... " >&6; } 31041 if test ! -x "$tool_specified"; then 31042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31043 $as_echo "not found" >&6; } 31044 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 31045 fi 31046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31047 $as_echo "$tool_specified" >&6; } 31048 fi 31049 fi 31050 fi 31051 31052 fi 31053 31054 31055 31056 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31057 31058 # Publish this variable in the help. 31059 31060 31061 if [ -z "${JAVAH+x}" ]; then 31062 # The variable is not set by user, try to locate tool using the code snippet 31063 31064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 31065 $as_echo_n "checking for javah in Boot JDK... " >&6; } 31066 JAVAH=$BOOT_JDK/bin/javah 31067 if test ! -x $JAVAH; then 31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31069 $as_echo "not found" >&6; } 31070 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31071 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31072 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 31073 fi 31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31075 $as_echo "ok" >&6; } 31076 31077 31078 else 31079 # The variable is set, but is it from the command line or the environment? 31080 31081 # Try to remove the string !JAVAH! from our list. 31082 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 31083 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31084 # If it failed, the variable was not from the command line. Ignore it, 31085 # but warn the user (except for BASH, which is always set by the calling BASH). 31086 if test "xJAVAH" != xBASH; then 31087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 31088 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 31089 fi 31090 # Try to locate tool using the code snippet 31091 31092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 31093 $as_echo_n "checking for javah in Boot JDK... " >&6; } 31094 JAVAH=$BOOT_JDK/bin/javah 31095 if test ! -x $JAVAH; then 31096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31097 $as_echo "not found" >&6; } 31098 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31099 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31100 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 31101 fi 31102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31103 $as_echo "ok" >&6; } 31104 31105 31106 else 31107 # If it succeeded, then it was overridden by the user. We will use it 31108 # for the tool. 31109 31110 # First remove it from the list of overridden variables, so we can test 31111 # for unknown variables in the end. 31112 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31113 31114 # Check if we try to supply an empty value 31115 if test "x$JAVAH" = x; then 31116 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 31117 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 31118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 31119 $as_echo_n "checking for JAVAH... " >&6; } 31120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31121 $as_echo "disabled" >&6; } 31122 else 31123 # Check if the provided tool contains a complete path. 31124 tool_specified="$JAVAH" 31125 tool_basename="${tool_specified##*/}" 31126 if test "x$tool_basename" = "x$tool_specified"; then 31127 # A command without a complete path is provided, search $PATH. 31128 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 31129 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 31130 # Extract the first word of "$tool_basename", so it can be a program name with args. 31131 set dummy $tool_basename; ac_word=$2 31132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31133 $as_echo_n "checking for $ac_word... " >&6; } 31134 if ${ac_cv_path_JAVAH+:} false; then : 31135 $as_echo_n "(cached) " >&6 31136 else 31137 case $JAVAH in 31138 [\\/]* | ?:[\\/]*) 31139 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 31140 ;; 31141 *) 31142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31143 for as_dir in $PATH 31144 do 31145 IFS=$as_save_IFS 31146 test -z "$as_dir" && as_dir=. 31147 for ac_exec_ext in '' $ac_executable_extensions; do 31148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31149 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 31150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31151 break 2 31152 fi 31153 done 31154 done 31155 IFS=$as_save_IFS 31156 31157 ;; 31158 esac 31159 fi 31160 JAVAH=$ac_cv_path_JAVAH 31161 if test -n "$JAVAH"; then 31162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 31163 $as_echo "$JAVAH" >&6; } 31164 else 31165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31166 $as_echo "no" >&6; } 31167 fi 31168 31169 31170 if test "x$JAVAH" = x; then 31171 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31172 fi 31173 else 31174 # Otherwise we believe it is a complete path. Use it as it is. 31175 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 31176 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 31177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 31178 $as_echo_n "checking for JAVAH... " >&6; } 31179 if test ! -x "$tool_specified"; then 31180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31181 $as_echo "not found" >&6; } 31182 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 31183 fi 31184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31185 $as_echo "$tool_specified" >&6; } 31186 fi 31187 fi 31188 fi 31189 31190 fi 31191 31192 31193 31194 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31195 31196 # Publish this variable in the help. 31197 31198 31199 if [ -z "${JAR+x}" ]; then 31200 # The variable is not set by user, try to locate tool using the code snippet 31201 31202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31203 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31204 JAR=$BOOT_JDK/bin/jar 31205 if test ! -x $JAR; then 31206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31207 $as_echo "not found" >&6; } 31208 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31209 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31210 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31211 fi 31212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31213 $as_echo "ok" >&6; } 31214 31215 31216 else 31217 # The variable is set, but is it from the command line or the environment? 31218 31219 # Try to remove the string !JAR! from our list. 31220 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 31221 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31222 # If it failed, the variable was not from the command line. Ignore it, 31223 # but warn the user (except for BASH, which is always set by the calling BASH). 31224 if test "xJAR" != xBASH; then 31225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 31226 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 31227 fi 31228 # Try to locate tool using the code snippet 31229 31230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31231 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31232 JAR=$BOOT_JDK/bin/jar 31233 if test ! -x $JAR; then 31234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31235 $as_echo "not found" >&6; } 31236 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31237 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31238 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31239 fi 31240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31241 $as_echo "ok" >&6; } 31242 31243 31244 else 31245 # If it succeeded, then it was overridden by the user. We will use it 31246 # for the tool. 31247 31248 # First remove it from the list of overridden variables, so we can test 31249 # for unknown variables in the end. 31250 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31251 31252 # Check if we try to supply an empty value 31253 if test "x$JAR" = x; then 31254 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 31255 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 31256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31257 $as_echo_n "checking for JAR... " >&6; } 31258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31259 $as_echo "disabled" >&6; } 31260 else 31261 # Check if the provided tool contains a complete path. 31262 tool_specified="$JAR" 31263 tool_basename="${tool_specified##*/}" 31264 if test "x$tool_basename" = "x$tool_specified"; then 31265 # A command without a complete path is provided, search $PATH. 31266 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 31267 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 31268 # Extract the first word of "$tool_basename", so it can be a program name with args. 31269 set dummy $tool_basename; ac_word=$2 31270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31271 $as_echo_n "checking for $ac_word... " >&6; } 31272 if ${ac_cv_path_JAR+:} false; then : 31273 $as_echo_n "(cached) " >&6 31274 else 31275 case $JAR in 31276 [\\/]* | ?:[\\/]*) 31277 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 31278 ;; 31279 *) 31280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31281 for as_dir in $PATH 31282 do 31283 IFS=$as_save_IFS 31284 test -z "$as_dir" && as_dir=. 31285 for ac_exec_ext in '' $ac_executable_extensions; do 31286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31287 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 31288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31289 break 2 31290 fi 31291 done 31292 done 31293 IFS=$as_save_IFS 31294 31295 ;; 31296 esac 31297 fi 31298 JAR=$ac_cv_path_JAR 31299 if test -n "$JAR"; then 31300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 31301 $as_echo "$JAR" >&6; } 31302 else 31303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31304 $as_echo "no" >&6; } 31305 fi 31306 31307 31308 if test "x$JAR" = x; then 31309 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31310 fi 31311 else 31312 # Otherwise we believe it is a complete path. Use it as it is. 31313 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 31314 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 31315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31316 $as_echo_n "checking for JAR... " >&6; } 31317 if test ! -x "$tool_specified"; then 31318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31319 $as_echo "not found" >&6; } 31320 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 31321 fi 31322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31323 $as_echo "$tool_specified" >&6; } 31324 fi 31325 fi 31326 fi 31327 31328 fi 31329 31330 31331 31332 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31333 31334 # Publish this variable in the help. 31335 31336 31337 if [ -z "${JARSIGNER+x}" ]; then 31338 # The variable is not set by user, try to locate tool using the code snippet 31339 31340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31341 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31342 JARSIGNER=$BOOT_JDK/bin/jarsigner 31343 if test ! -x $JARSIGNER; then 31344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31345 $as_echo "not found" >&6; } 31346 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31347 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31348 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31349 fi 31350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31351 $as_echo "ok" >&6; } 31352 31353 31354 else 31355 # The variable is set, but is it from the command line or the environment? 31356 31357 # Try to remove the string !JARSIGNER! from our list. 31358 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 31359 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31360 # If it failed, the variable was not from the command line. Ignore it, 31361 # but warn the user (except for BASH, which is always set by the calling BASH). 31362 if test "xJARSIGNER" != xBASH; then 31363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 31364 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 31365 fi 31366 # Try to locate tool using the code snippet 31367 31368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31369 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31370 JARSIGNER=$BOOT_JDK/bin/jarsigner 31371 if test ! -x $JARSIGNER; then 31372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31373 $as_echo "not found" >&6; } 31374 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31375 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31376 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31377 fi 31378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31379 $as_echo "ok" >&6; } 31380 31381 31382 else 31383 # If it succeeded, then it was overridden by the user. We will use it 31384 # for the tool. 31385 31386 # First remove it from the list of overridden variables, so we can test 31387 # for unknown variables in the end. 31388 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31389 31390 # Check if we try to supply an empty value 31391 if test "x$JARSIGNER" = x; then 31392 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 31393 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 31394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31395 $as_echo_n "checking for JARSIGNER... " >&6; } 31396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31397 $as_echo "disabled" >&6; } 31398 else 31399 # Check if the provided tool contains a complete path. 31400 tool_specified="$JARSIGNER" 31401 tool_basename="${tool_specified##*/}" 31402 if test "x$tool_basename" = "x$tool_specified"; then 31403 # A command without a complete path is provided, search $PATH. 31404 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 31405 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 31406 # Extract the first word of "$tool_basename", so it can be a program name with args. 31407 set dummy $tool_basename; ac_word=$2 31408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31409 $as_echo_n "checking for $ac_word... " >&6; } 31410 if ${ac_cv_path_JARSIGNER+:} false; then : 31411 $as_echo_n "(cached) " >&6 31412 else 31413 case $JARSIGNER in 31414 [\\/]* | ?:[\\/]*) 31415 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 31416 ;; 31417 *) 31418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31419 for as_dir in $PATH 31420 do 31421 IFS=$as_save_IFS 31422 test -z "$as_dir" && as_dir=. 31423 for ac_exec_ext in '' $ac_executable_extensions; do 31424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31425 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 31426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31427 break 2 31428 fi 31429 done 31430 done 31431 IFS=$as_save_IFS 31432 31433 ;; 31434 esac 31435 fi 31436 JARSIGNER=$ac_cv_path_JARSIGNER 31437 if test -n "$JARSIGNER"; then 31438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 31439 $as_echo "$JARSIGNER" >&6; } 31440 else 31441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31442 $as_echo "no" >&6; } 31443 fi 31444 31445 31446 if test "x$JARSIGNER" = x; then 31447 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31448 fi 31449 else 31450 # Otherwise we believe it is a complete path. Use it as it is. 31451 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 31452 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 31453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31454 $as_echo_n "checking for JARSIGNER... " >&6; } 31455 if test ! -x "$tool_specified"; then 31456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31457 $as_echo "not found" >&6; } 31458 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 31459 fi 31460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31461 $as_echo "$tool_specified" >&6; } 31462 fi 31463 fi 31464 fi 31465 31466 fi 31467 31468 31469 31470 # Finally, set some other options... 31471 31472 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 31473 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 31474 31475 31476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK supports modules" >&5 31477 $as_echo_n "checking if Boot JDK supports modules... " >&6; } 31478 if "$JAVA" --list-modules > /dev/null 2>&1; then 31479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31480 $as_echo "yes" >&6; } 31481 BOOT_JDK_MODULAR="true" 31482 else 31483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31484 $as_echo "no" >&6; } 31485 BOOT_JDK_MODULAR="false" 31486 fi 31487 31488 31489 31490 31491 # Check if the boot jdk is 32 or 64 bit 31492 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 31493 BOOT_JDK_BITS="64" 31494 else 31495 BOOT_JDK_BITS="32" 31496 fi 31497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 31498 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 31499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 31500 $as_echo "$BOOT_JDK_BITS" >&6; } 31501 31502 31503 31504 # Check whether --with-build-jdk was given. 31505 if test "${with_build_jdk+set}" = set; then : 31506 withval=$with_build_jdk; 31507 fi 31508 31509 31510 CREATE_BUILDJDK=false 31511 EXTERNAL_BUILDJDK=false 31512 BUILD_JDK_FOUND="no" 31513 if test "x$with_build_jdk" != "x"; then 31514 31515 if test "x$BUILD_JDK_FOUND" = xno; then 31516 # Execute the test 31517 31518 if test "x$with_build_jdk" != x; then 31519 BUILD_JDK=$with_build_jdk 31520 BUILD_JDK_FOUND=maybe 31521 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 31522 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 31523 fi 31524 31525 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 31526 if test "x$BUILD_JDK_FOUND" = xmaybe; then 31527 # Do we have a bin/java? 31528 if test ! -x "$BUILD_JDK/bin/java"; then 31529 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 31530 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 31531 BUILD_JDK_FOUND=no 31532 elif test ! -x "$BUILD_JDK/bin/jlink"; then 31533 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 31534 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 31535 BUILD_JDK_FOUND=no 31536 elif test ! -x "$BUILD_JDK/bin/jmod"; then 31537 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 31538 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 31539 BUILD_JDK_FOUND=no 31540 elif test ! -x "$BUILD_JDK/bin/javac"; then 31541 # Do we have a bin/javac? 31542 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 31543 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 31544 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 31545 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 31546 BUILD_JDK_FOUND=no 31547 else 31548 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 31549 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 31550 31551 # Extra M4 quote needed to protect [] in grep expression. 31552 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"'` 31553 if test "x$FOUND_CORRECT_VERSION" = x; then 31554 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 31555 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 31556 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 9)" >&5 31557 $as_echo "$as_me: (Your Build JDK must be version 9)" >&6;} 31558 BUILD_JDK_FOUND=no 31559 else 31560 # We're done! 31561 BUILD_JDK_FOUND=yes 31562 31563 # Only process if variable expands to non-empty 31564 31565 if test "x$BUILD_JDK" != x; then 31566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31567 31568 # Input might be given as Windows format, start by converting to 31569 # unix format. 31570 path="$BUILD_JDK" 31571 new_path=`$CYGPATH -u "$path"` 31572 31573 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31574 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31575 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31576 # "foo.exe" is OK but "foo" is an error. 31577 # 31578 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31579 # It is also a way to make sure we got the proper file name for the real test later on. 31580 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31581 if test "x$test_shortpath" = x; then 31582 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31583 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31584 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 31585 fi 31586 31587 # Call helper function which possibly converts this using DOS-style short mode. 31588 # If so, the updated path is stored in $new_path. 31589 31590 input_path="$new_path" 31591 # Check if we need to convert this using DOS-style short mode. If the path 31592 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31593 # take no chances and rewrite it. 31594 # Note: m4 eats our [], so we need to use [ and ] instead. 31595 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31596 if test "x$has_forbidden_chars" != x; then 31597 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31598 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31599 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31600 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31601 # Going to short mode and back again did indeed matter. Since short mode is 31602 # case insensitive, let's make it lowercase to improve readability. 31603 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31604 # Now convert it back to Unix-style (cygpath) 31605 input_path=`$CYGPATH -u "$shortmode_path"` 31606 new_path="$input_path" 31607 fi 31608 fi 31609 31610 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31611 if test "x$test_cygdrive_prefix" = x; then 31612 # As a simple fix, exclude /usr/bin since it's not a real path. 31613 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31614 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31615 # a path prefixed by /cygdrive for fixpath to work. 31616 new_path="$CYGWIN_ROOT_PATH$input_path" 31617 fi 31618 fi 31619 31620 31621 if test "x$path" != "x$new_path"; then 31622 BUILD_JDK="$new_path" 31623 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31624 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31625 fi 31626 31627 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31628 31629 path="$BUILD_JDK" 31630 has_colon=`$ECHO $path | $GREP ^.:` 31631 new_path="$path" 31632 if test "x$has_colon" = x; then 31633 # Not in mixed or Windows style, start by that. 31634 new_path=`cmd //c echo $path` 31635 fi 31636 31637 31638 input_path="$new_path" 31639 # Check if we need to convert this using DOS-style short mode. If the path 31640 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31641 # take no chances and rewrite it. 31642 # Note: m4 eats our [], so we need to use [ and ] instead. 31643 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31644 if test "x$has_forbidden_chars" != x; then 31645 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31646 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31647 fi 31648 31649 31650 windows_path="$new_path" 31651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31652 unix_path=`$CYGPATH -u "$windows_path"` 31653 new_path="$unix_path" 31654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31655 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31656 new_path="$unix_path" 31657 fi 31658 31659 if test "x$path" != "x$new_path"; then 31660 BUILD_JDK="$new_path" 31661 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31662 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31663 fi 31664 31665 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31666 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31667 31668 else 31669 # We're on a unix platform. Hooray! :) 31670 path="$BUILD_JDK" 31671 has_space=`$ECHO "$path" | $GREP " "` 31672 if test "x$has_space" != x; then 31673 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31674 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31675 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31676 fi 31677 31678 # Use eval to expand a potential ~ 31679 eval path="$path" 31680 if test ! -f "$path" && test ! -d "$path"; then 31681 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 31682 fi 31683 31684 if test -d "$path"; then 31685 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 31686 else 31687 dir="`$DIRNAME "$path"`" 31688 base="`$BASENAME "$path"`" 31689 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 31690 fi 31691 fi 31692 fi 31693 31694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31695 $as_echo_n "checking for Build JDK... " >&6; } 31696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 31697 $as_echo "$BUILD_JDK" >&6; } 31698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 31699 $as_echo_n "checking Build JDK version... " >&6; } 31700 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 31701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 31702 $as_echo "$BUILD_JDK_VERSION" >&6; } 31703 fi # end check jdk version 31704 fi # end check java 31705 fi # end check build jdk found 31706 fi 31707 31708 EXTERNAL_BUILDJDK=true 31709 else 31710 if test "x$COMPILE_TYPE" = "xcross"; then 31711 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 31712 BUILD_JDK_FOUND=yes 31713 CREATE_BUILDJDK=true 31714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31715 $as_echo_n "checking for Build JDK... " >&6; } 31716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 31717 $as_echo "yes, will build it for the host platform" >&6; } 31718 else 31719 BUILD_JDK="\$(JDK_OUTPUTDIR)" 31720 BUILD_JDK_FOUND=yes 31721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31722 $as_echo_n "checking for Build JDK... " >&6; } 31723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 31724 $as_echo "yes, will use output dir" >&6; } 31725 fi 31726 fi 31727 31728 JMOD="$BUILD_JDK/bin/jmod" 31729 JLINK="$BUILD_JDK/bin/jlink" 31730 31731 31732 31733 if test "x$BUILD_JDK_FOUND" != "xyes"; then 31734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31735 $as_echo_n "checking for Build JDK... " >&6; } 31736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31737 $as_echo "no" >&6; } 31738 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 31739 fi 31740 31741 31742 31743 31744 31745 31746 ############################################################################### 31747 # 31748 # Configure the sources to use. We can add or override individual directories. 31749 # 31750 ############################################################################### 31751 31752 31753 # Where are the sources. 31754 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 31755 CORBA_TOPDIR="$SRC_ROOT/corba" 31756 JAXP_TOPDIR="$SRC_ROOT/jaxp" 31757 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 31758 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 31759 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 31760 JDK_TOPDIR="$SRC_ROOT/jdk" 31761 31762 31763 31764 31765 31766 31767 31768 31769 31770 # This feature is no longer supported. 31771 31772 31773 31774 # Check whether --with-add-source-root was given. 31775 if test "${with_add_source_root+set}" = set; then : 31776 withval=$with_add_source_root; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&5 31777 $as_echo "$as_me: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&2;} 31778 fi 31779 31780 31781 31782 31783 # Check whether --with-override-source-root was given. 31784 if test "${with_override_source_root+set}" = set; then : 31785 withval=$with_override_source_root; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&5 31786 $as_echo "$as_me: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&2;} 31787 fi 31788 31789 31790 31791 31792 # Check whether --with-adds-and-overrides was given. 31793 if test "${with_adds_and_overrides+set}" = set; then : 31794 withval=$with_adds_and_overrides; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&5 31795 $as_echo "$as_me: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&2;} 31796 fi 31797 31798 31799 31800 31801 # Check whether --with-override-langtools was given. 31802 if test "${with_override_langtools+set}" = set; then : 31803 withval=$with_override_langtools; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&5 31804 $as_echo "$as_me: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&2;} 31805 fi 31806 31807 31808 31809 31810 # Check whether --with-override-corba was given. 31811 if test "${with_override_corba+set}" = set; then : 31812 withval=$with_override_corba; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-corba is deprecated and will be ignored." >&5 31813 $as_echo "$as_me: WARNING: Option --with-override-corba is deprecated and will be ignored." >&2;} 31814 fi 31815 31816 31817 31818 31819 # Check whether --with-override-jaxp was given. 31820 if test "${with_override_jaxp+set}" = set; then : 31821 withval=$with_override_jaxp; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&5 31822 $as_echo "$as_me: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&2;} 31823 fi 31824 31825 31826 31827 31828 # Check whether --with-override-jaxws was given. 31829 if test "${with_override_jaxws+set}" = set; then : 31830 withval=$with_override_jaxws; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&5 31831 $as_echo "$as_me: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&2;} 31832 fi 31833 31834 31835 31836 31837 # Check whether --with-override-hotspot was given. 31838 if test "${with_override_hotspot+set}" = set; then : 31839 withval=$with_override_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&5 31840 $as_echo "$as_me: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&2;} 31841 fi 31842 31843 31844 31845 31846 # Check whether --with-override-nashorn was given. 31847 if test "${with_override_nashorn+set}" = set; then : 31848 withval=$with_override_nashorn; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&5 31849 $as_echo "$as_me: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&2;} 31850 fi 31851 31852 31853 31854 31855 # Check whether --with-override-jdk was given. 31856 if test "${with_override_jdk+set}" = set; then : 31857 withval=$with_override_jdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&5 31858 $as_echo "$as_me: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&2;} 31859 fi 31860 31861 31862 31863 31864 BUILD_OUTPUT="$OUTPUT_ROOT" 31865 31866 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 31867 31868 31869 31870 # Check whether --with-import_hotspot was given. 31871 if test "${with_import_hotspot+set}" = set; then : 31872 withval=$with_import_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-import_hotspot is deprecated and will be ignored." >&5 31873 $as_echo "$as_me: WARNING: Option --with-import_hotspot is deprecated and will be ignored." >&2;} 31874 fi 31875 31876 31877 31878 31879 31880 31881 # Check whether --with-import-modules was given. 31882 if test "${with_import_modules+set}" = set; then : 31883 withval=$with_import_modules; 31884 fi 31885 31886 31887 if test "x$with_import_modules" != x \ 31888 && test "x$with_import_modules" != "xno"; then 31889 if test -d "$with_import_modules"; then 31890 IMPORT_MODULES_TOPDIR="$with_import_modules" 31891 31892 # Only process if variable expands to non-empty 31893 31894 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31896 31897 # Input might be given as Windows format, start by converting to 31898 # unix format. 31899 path="$IMPORT_MODULES_TOPDIR" 31900 new_path=`$CYGPATH -u "$path"` 31901 31902 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31903 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31904 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31905 # "foo.exe" is OK but "foo" is an error. 31906 # 31907 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31908 # It is also a way to make sure we got the proper file name for the real test later on. 31909 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31910 if test "x$test_shortpath" = x; then 31911 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31912 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31913 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31914 fi 31915 31916 # Call helper function which possibly converts this using DOS-style short mode. 31917 # If so, the updated path is stored in $new_path. 31918 31919 input_path="$new_path" 31920 # Check if we need to convert this using DOS-style short mode. If the path 31921 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31922 # take no chances and rewrite it. 31923 # Note: m4 eats our [], so we need to use [ and ] instead. 31924 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31925 if test "x$has_forbidden_chars" != x; then 31926 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31927 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31928 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31929 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31930 # Going to short mode and back again did indeed matter. Since short mode is 31931 # case insensitive, let's make it lowercase to improve readability. 31932 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31933 # Now convert it back to Unix-style (cygpath) 31934 input_path=`$CYGPATH -u "$shortmode_path"` 31935 new_path="$input_path" 31936 fi 31937 fi 31938 31939 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31940 if test "x$test_cygdrive_prefix" = x; then 31941 # As a simple fix, exclude /usr/bin since it's not a real path. 31942 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31943 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31944 # a path prefixed by /cygdrive for fixpath to work. 31945 new_path="$CYGWIN_ROOT_PATH$input_path" 31946 fi 31947 fi 31948 31949 31950 if test "x$path" != "x$new_path"; then 31951 IMPORT_MODULES_TOPDIR="$new_path" 31952 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31953 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31954 fi 31955 31956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31957 31958 path="$IMPORT_MODULES_TOPDIR" 31959 has_colon=`$ECHO $path | $GREP ^.:` 31960 new_path="$path" 31961 if test "x$has_colon" = x; then 31962 # Not in mixed or Windows style, start by that. 31963 new_path=`cmd //c echo $path` 31964 fi 31965 31966 31967 input_path="$new_path" 31968 # Check if we need to convert this using DOS-style short mode. If the path 31969 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31970 # take no chances and rewrite it. 31971 # Note: m4 eats our [], so we need to use [ and ] instead. 31972 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31973 if test "x$has_forbidden_chars" != x; then 31974 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31975 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31976 fi 31977 31978 31979 windows_path="$new_path" 31980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31981 unix_path=`$CYGPATH -u "$windows_path"` 31982 new_path="$unix_path" 31983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31984 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31985 new_path="$unix_path" 31986 fi 31987 31988 if test "x$path" != "x$new_path"; then 31989 IMPORT_MODULES_TOPDIR="$new_path" 31990 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31991 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31992 fi 31993 31994 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31995 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31996 31997 else 31998 # We're on a unix platform. Hooray! :) 31999 path="$IMPORT_MODULES_TOPDIR" 32000 has_space=`$ECHO "$path" | $GREP " "` 32001 if test "x$has_space" != x; then 32002 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 32003 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 32004 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32005 fi 32006 32007 # Use eval to expand a potential ~ 32008 eval path="$path" 32009 if test ! -f "$path" && test ! -d "$path"; then 32010 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 32011 fi 32012 32013 if test -d "$path"; then 32014 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 32015 else 32016 dir="`$DIRNAME "$path"`" 32017 base="`$BASENAME "$path"`" 32018 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 32019 fi 32020 fi 32021 fi 32022 32023 elif test -e "$with_import_modules"; then 32024 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 32025 $RM -rf "$IMPORT_MODULES_TOPDIR" 32026 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 32027 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 32028 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 32029 fi 32030 else 32031 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 32032 fi 32033 fi 32034 32035 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 32036 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 32037 fi 32038 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 32039 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 32040 fi 32041 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 32042 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 32043 fi 32044 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 32045 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 32046 fi 32047 if test -d "$IMPORT_MODULES_TOPDIR/modules_legal"; then 32048 IMPORT_MODULES_LEGAL="$IMPORT_MODULES_TOPDIR/modules_legal" 32049 fi 32050 if test -d "$IMPORT_MODULES_TOPDIR/modules_man"; then 32051 IMPORT_MODULES_MAN="$IMPORT_MODULES_TOPDIR/modules_man" 32052 fi 32053 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 32054 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 32055 fi 32056 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 32057 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 32058 fi 32059 32060 32061 32062 32063 32064 32065 32066 32067 32068 32069 32070 ############################################################################### 32071 # 32072 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 32073 # native code. 32074 # 32075 ############################################################################### 32076 32077 # See if we are doing a complete static build or not 32078 32079 # Check whether --enable-static-build was given. 32080 if test "${enable_static_build+set}" = set; then : 32081 enableval=$enable_static_build; 32082 fi 32083 32084 STATIC_BUILD=false 32085 if test "x$enable_static_build" = "xyes"; then 32086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 32087 $as_echo_n "checking if static build is enabled... " >&6; } 32088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32089 $as_echo "yes" >&6; } 32090 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 32091 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 32092 fi 32093 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 32094 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 32095 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 32096 STATIC_BUILD=true 32097 elif test "x$enable_static_build" = "xno"; then 32098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 32099 $as_echo_n "checking if static build is enabled... " >&6; } 32100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32101 $as_echo "no" >&6; } 32102 elif test "x$enable_static_build" != "x"; then 32103 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 32104 fi 32105 32106 32107 32108 32109 # First determine the toolchain type (compiler family) 32110 32111 32112 # Check whether --with-toolchain-type was given. 32113 if test "${with_toolchain_type+set}" = set; then : 32114 withval=$with_toolchain_type; 32115 fi 32116 32117 32118 # Use indirect variable referencing 32119 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 32120 VALID_TOOLCHAINS=${!toolchain_var_name} 32121 32122 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32123 if test -n "$XCODEBUILD"; then 32124 # On Mac OS X, default toolchain to clang after Xcode 5 32125 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 32126 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 32127 if test $? -ne 0; then 32128 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 32129 fi 32130 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 32131 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 32132 $CUT -f 1 -d .` 32133 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 32134 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 32135 if test $XCODE_MAJOR_VERSION -ge 5; then 32136 DEFAULT_TOOLCHAIN="clang" 32137 else 32138 DEFAULT_TOOLCHAIN="gcc" 32139 fi 32140 else 32141 # If Xcode is not installed, but the command line tools are 32142 # then we can't run xcodebuild. On these systems we should 32143 # default to clang 32144 DEFAULT_TOOLCHAIN="clang" 32145 fi 32146 else 32147 # First toolchain type in the list is the default 32148 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 32149 fi 32150 32151 if test "x$with_toolchain_type" = xlist; then 32152 # List all toolchains 32153 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 32154 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 32155 for toolchain in $VALID_TOOLCHAINS; do 32156 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 32157 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32158 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 32159 done 32160 32161 exit 0 32162 elif test "x$with_toolchain_type" != x; then 32163 # User override; check that it is valid 32164 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 32165 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 32166 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 32167 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 32168 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 32169 as_fn_error $? "Cannot continue." "$LINENO" 5 32170 fi 32171 TOOLCHAIN_TYPE=$with_toolchain_type 32172 else 32173 # No flag given, use default 32174 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 32175 fi 32176 32177 32178 TOOLCHAIN_CC_BINARY_clang="clang" 32179 TOOLCHAIN_CC_BINARY_gcc="gcc" 32180 TOOLCHAIN_CC_BINARY_microsoft="cl" 32181 TOOLCHAIN_CC_BINARY_solstudio="cc" 32182 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 32183 32184 TOOLCHAIN_CXX_BINARY_clang="clang++" 32185 TOOLCHAIN_CXX_BINARY_gcc="g++" 32186 TOOLCHAIN_CXX_BINARY_microsoft="cl" 32187 TOOLCHAIN_CXX_BINARY_solstudio="CC" 32188 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 32189 32190 # Use indirect variable referencing 32191 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 32192 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32193 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 32194 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 32195 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 32196 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 32197 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 32198 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 32199 32200 32201 # Define filename patterns 32202 if test "x$OPENJDK_TARGET_OS" = xwindows; then 32203 LIBRARY_PREFIX= 32204 SHARED_LIBRARY_SUFFIX='.dll' 32205 STATIC_LIBRARY_SUFFIX='.lib' 32206 SHARED_LIBRARY='$1.dll' 32207 STATIC_LIBRARY='$1.lib' 32208 OBJ_SUFFIX='.obj' 32209 EXE_SUFFIX='.exe' 32210 else 32211 LIBRARY_PREFIX=lib 32212 SHARED_LIBRARY_SUFFIX='.so' 32213 STATIC_LIBRARY_SUFFIX='.a' 32214 SHARED_LIBRARY='lib$1.so' 32215 STATIC_LIBRARY='lib$1.a' 32216 OBJ_SUFFIX='.o' 32217 EXE_SUFFIX='' 32218 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32219 # For full static builds, we're overloading the SHARED_LIBRARY 32220 # variables in order to limit the amount of changes required. 32221 # It would be better to remove SHARED and just use LIBRARY and 32222 # LIBRARY_SUFFIX for libraries that can be built either 32223 # shared or static and use STATIC_* for libraries that are 32224 # always built statically. 32225 if test "x$STATIC_BUILD" = xtrue; then 32226 SHARED_LIBRARY='lib$1.a' 32227 SHARED_LIBRARY_SUFFIX='.a' 32228 else 32229 SHARED_LIBRARY='lib$1.dylib' 32230 SHARED_LIBRARY_SUFFIX='.dylib' 32231 fi 32232 fi 32233 fi 32234 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 32245 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 32246 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 32247 else 32248 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 32249 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 32250 fi 32251 32252 32253 # User supplied flags should be used when configure detects compilers 32254 32255 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 32256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 32257 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 32258 fi 32259 32260 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 32261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 32262 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 32263 fi 32264 32265 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 32266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 32267 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 32268 fi 32269 32270 32271 # Check whether --with-extra-cflags was given. 32272 if test "${with_extra_cflags+set}" = set; then : 32273 withval=$with_extra_cflags; 32274 fi 32275 32276 32277 32278 # Check whether --with-extra-cxxflags was given. 32279 if test "${with_extra_cxxflags+set}" = set; then : 32280 withval=$with_extra_cxxflags; 32281 fi 32282 32283 32284 32285 # Check whether --with-extra-ldflags was given. 32286 if test "${with_extra_ldflags+set}" = set; then : 32287 withval=$with_extra_ldflags; 32288 fi 32289 32290 32291 EXTRA_CFLAGS="$with_extra_cflags" 32292 EXTRA_CXXFLAGS="$with_extra_cxxflags" 32293 EXTRA_LDFLAGS="$with_extra_ldflags" 32294 32295 32296 32297 32298 32299 # The global CFLAGS and LDLAGS variables are used by configure tests and 32300 # should include the extra parameters 32301 CFLAGS="$EXTRA_CFLAGS" 32302 CXXFLAGS="$EXTRA_CXXFLAGS" 32303 LDFLAGS="$EXTRA_LDFLAGS" 32304 CPPFLAGS="" 32305 32306 # The sysroot cflags are needed for configure to be able to run the compilers 32307 32308 if test "x$SYSROOT" != "x"; then 32309 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 32310 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32311 # Solaris Studio does not have a concept of sysroot. Instead we must 32312 # make sure the default include and lib dirs are appended to each 32313 # compile and link command line. Must also add -I-xbuiltin to enable 32314 # inlining of system functions and intrinsics. 32315 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 32316 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 32317 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 32318 fi 32319 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 32320 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 32321 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 32322 elif test "x$TOOLCHAIN_TYPE" = xclang; then 32323 SYSROOT_CFLAGS="-isysroot $SYSROOT" 32324 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 32325 fi 32326 # The global CFLAGS and LDFLAGS variables need these for configure to function 32327 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 32328 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 32329 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 32330 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 32331 fi 32332 32333 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32334 # We also need -iframework<path>/System/Library/Frameworks 32335 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32336 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32337 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 32338 # set this here so it doesn't have to be peppered throughout the forest 32339 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32340 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32341 fi 32342 32343 32344 32345 32346 32347 # Then detect the actual binaries needed 32348 32349 # FIXME: Is this needed? 32350 ac_ext=cpp 32351 ac_cpp='$CXXCPP $CPPFLAGS' 32352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32355 32356 32357 # Store the CFLAGS etc passed to the configure script. 32358 ORG_CFLAGS="$CFLAGS" 32359 ORG_CXXFLAGS="$CXXFLAGS" 32360 32361 # autoconf magic only relies on PATH, so update it if tools dir is specified 32362 OLD_PATH="$PATH" 32363 32364 # On Windows, we need to detect the visual studio installation first. 32365 # This will change the PATH, but we need to keep that new PATH even 32366 # after toolchain detection is done, since the compiler (on x86) uses 32367 # it for DLL resolution in runtime. 32368 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 32369 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 32370 32371 # Store path to cygwin link.exe to help excluding it when searching for 32372 # VS linker. This must be done before changing the PATH when looking for VS. 32373 # Extract the first word of "link", so it can be a program name with args. 32374 set dummy link; ac_word=$2 32375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32376 $as_echo_n "checking for $ac_word... " >&6; } 32377 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 32378 $as_echo_n "(cached) " >&6 32379 else 32380 case $CYGWIN_LINK in 32381 [\\/]* | ?:[\\/]*) 32382 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 32383 ;; 32384 *) 32385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32386 for as_dir in $PATH 32387 do 32388 IFS=$as_save_IFS 32389 test -z "$as_dir" && as_dir=. 32390 for ac_exec_ext in '' $ac_executable_extensions; do 32391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32392 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 32393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32394 break 2 32395 fi 32396 done 32397 done 32398 IFS=$as_save_IFS 32399 32400 ;; 32401 esac 32402 fi 32403 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 32404 if test -n "$CYGWIN_LINK"; then 32405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 32406 $as_echo "$CYGWIN_LINK" >&6; } 32407 else 32408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32409 $as_echo "no" >&6; } 32410 fi 32411 32412 32413 if test "x$CYGWIN_LINK" != x; then 32414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 32415 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 32416 "$CYGWIN_LINK" --version > /dev/null 32417 if test $? -eq 0 ; then 32418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32419 $as_echo "yes" >&6; } 32420 else 32421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32422 $as_echo "no" >&6; } 32423 # This might be the VS linker. Don't exclude it later on. 32424 CYGWIN_LINK="" 32425 fi 32426 fi 32427 32428 # First-hand choice is to locate and run the vsvars bat file. 32429 32430 32431 # Check whether --with-toolchain-version was given. 32432 if test "${with_toolchain_version+set}" = set; then : 32433 withval=$with_toolchain_version; 32434 fi 32435 32436 32437 if test "x$with_toolchain_version" = xlist; then 32438 # List all toolchains 32439 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 32440 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 32441 for version in $VALID_VS_VERSIONS; do 32442 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 32443 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 32444 done 32445 32446 exit 0 32447 elif test "x$DEVKIT_VS_VERSION" != x; then 32448 VS_VERSION=$DEVKIT_VS_VERSION 32449 TOOLCHAIN_VERSION=$VS_VERSION 32450 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32451 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32452 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32453 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32454 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32455 VS_PATH="$TOOLCHAIN_PATH:$PATH" 32456 32457 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 32458 # can still be exported as INCLUDE for compiler invocations without 32459 # SYSROOT_CFLAGS 32460 OLDIFS="$IFS" 32461 IFS=";" 32462 for i in $DEVKIT_VS_INCLUDE; do 32463 ipath=$i 32464 32465 unix_path="$ipath" 32466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32467 windows_path=`$CYGPATH -m "$unix_path"` 32468 ipath="$windows_path" 32469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32470 windows_path=`cmd //c echo $unix_path` 32471 ipath="$windows_path" 32472 fi 32473 32474 VS_INCLUDE="$VS_INCLUDE;$ipath" 32475 done 32476 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 32477 # as LIB for compiler invocations without SYSROOT_LDFLAGS 32478 for i in $DEVKIT_VS_LIB; do 32479 libpath=$i 32480 32481 unix_path="$libpath" 32482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32483 windows_path=`$CYGPATH -m "$unix_path"` 32484 libpath="$windows_path" 32485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32486 windows_path=`cmd //c echo $unix_path` 32487 libpath="$windows_path" 32488 fi 32489 32490 VS_LIB="$VS_LIB;$libpath" 32491 done 32492 IFS="$OLDIFS" 32493 32494 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 32495 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 32496 32497 elif test "x$with_toolchain_version" != x; then 32498 # User override; check that it is valid 32499 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 32500 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 32501 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 32502 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 32503 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 32504 as_fn_error $? "Cannot continue." "$LINENO" 5 32505 fi 32506 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 32507 else 32508 # No flag given, use default 32509 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 32510 fi 32511 32512 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 32513 32514 VS_VERSION="$VS_VERSION" 32515 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 32516 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 32517 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 32518 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 32519 32520 # When using --with-tools-dir, assume it points to the correct and default 32521 # version of Visual Studio or that --with-toolchain-version was also set. 32522 if test "x$with_tools_dir" != x; then 32523 32524 if test "x$VS_ENV_CMD" = x; then 32525 VS_VERSION="${VS_VERSION}" 32526 VS_BASE="$with_tools_dir/../.." 32527 METHOD="--with-tools-dir" 32528 32529 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32530 VCVARSFILE="vc/bin/vcvars32.bat" 32531 else 32532 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32533 fi 32534 32535 32536 windows_path="$VS_BASE" 32537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32538 unix_path=`$CYGPATH -u "$windows_path"` 32539 VS_BASE="$unix_path" 32540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32541 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32542 VS_BASE="$unix_path" 32543 fi 32544 32545 if test -d "$VS_BASE"; then 32546 if test -f "$VS_BASE/$VCVARSFILE"; then 32547 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32548 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32549 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32550 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32551 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32552 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32553 else 32554 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32555 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32556 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32557 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32558 fi 32559 fi 32560 fi 32561 32562 32563 if test "x$VS_ENV_CMD" = x; then 32564 VS_VERSION="${VS_VERSION}" 32565 VS_BASE="$with_tools_dir/../../.." 32566 METHOD="--with-tools-dir" 32567 32568 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32569 VCVARSFILE="vc/bin/vcvars32.bat" 32570 else 32571 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32572 fi 32573 32574 32575 windows_path="$VS_BASE" 32576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32577 unix_path=`$CYGPATH -u "$windows_path"` 32578 VS_BASE="$unix_path" 32579 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32580 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32581 VS_BASE="$unix_path" 32582 fi 32583 32584 if test -d "$VS_BASE"; then 32585 if test -f "$VS_BASE/$VCVARSFILE"; then 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 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32589 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32590 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32591 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32592 else 32593 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32594 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32595 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32596 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32597 fi 32598 fi 32599 fi 32600 32601 if test "x$VS_ENV_CMD" = x; then 32602 # Having specified an argument which is incorrect will produce an instant failure; 32603 # we should not go on looking 32604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 32605 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 32606 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 32607 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 32608 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 32609 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 32610 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 32611 fi 32612 fi 32613 32614 VS_ENV_CMD="" 32615 VS_ENV_ARGS="" 32616 32617 if test "x$VS_COMNTOOLS" != x; then 32618 32619 if test "x$VS_ENV_CMD" = x; then 32620 VS_VERSION="${VS_VERSION}" 32621 VS_BASE="$VS_COMNTOOLS/../.." 32622 METHOD="$VS_COMNTOOLS_VAR variable" 32623 32624 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32625 VCVARSFILE="vc/bin/vcvars32.bat" 32626 else 32627 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32628 fi 32629 32630 32631 windows_path="$VS_BASE" 32632 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32633 unix_path=`$CYGPATH -u "$windows_path"` 32634 VS_BASE="$unix_path" 32635 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32636 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32637 VS_BASE="$unix_path" 32638 fi 32639 32640 if test -d "$VS_BASE"; then 32641 if test -f "$VS_BASE/$VCVARSFILE"; then 32642 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32643 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32644 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32645 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32646 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32647 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32648 else 32649 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32650 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32651 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32652 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32653 fi 32654 fi 32655 fi 32656 32657 fi 32658 if test "x$PROGRAMFILES" != x; then 32659 32660 if test "x$VS_ENV_CMD" = x; then 32661 VS_VERSION="${VS_VERSION}" 32662 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 32663 METHOD="well-known name" 32664 32665 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32666 VCVARSFILE="vc/bin/vcvars32.bat" 32667 else 32668 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32669 fi 32670 32671 32672 windows_path="$VS_BASE" 32673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32674 unix_path=`$CYGPATH -u "$windows_path"` 32675 VS_BASE="$unix_path" 32676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32678 VS_BASE="$unix_path" 32679 fi 32680 32681 if test -d "$VS_BASE"; then 32682 if test -f "$VS_BASE/$VCVARSFILE"; then 32683 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32684 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32685 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32686 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32687 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32688 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32689 else 32690 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32691 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32692 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32693 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32694 fi 32695 fi 32696 fi 32697 32698 fi 32699 # Work around the insanely named ProgramFiles(x86) env variable 32700 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 32701 if test "x$PROGRAMFILES_X86" != x; then 32702 32703 if test "x$VS_ENV_CMD" = x; then 32704 VS_VERSION="${VS_VERSION}" 32705 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 32706 METHOD="well-known name" 32707 32708 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32709 VCVARSFILE="vc/bin/vcvars32.bat" 32710 else 32711 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32712 fi 32713 32714 32715 windows_path="$VS_BASE" 32716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32717 unix_path=`$CYGPATH -u "$windows_path"` 32718 VS_BASE="$unix_path" 32719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32720 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32721 VS_BASE="$unix_path" 32722 fi 32723 32724 if test -d "$VS_BASE"; then 32725 if test -f "$VS_BASE/$VCVARSFILE"; then 32726 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32727 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32728 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32729 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32730 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32731 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32732 else 32733 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32734 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32735 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32736 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32737 fi 32738 fi 32739 fi 32740 32741 fi 32742 32743 if test "x$VS_ENV_CMD" = x; then 32744 VS_VERSION="${VS_VERSION}" 32745 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 32746 METHOD="well-known name" 32747 32748 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32749 VCVARSFILE="vc/bin/vcvars32.bat" 32750 else 32751 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32752 fi 32753 32754 32755 windows_path="$VS_BASE" 32756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32757 unix_path=`$CYGPATH -u "$windows_path"` 32758 VS_BASE="$unix_path" 32759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32760 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32761 VS_BASE="$unix_path" 32762 fi 32763 32764 if test -d "$VS_BASE"; then 32765 if test -f "$VS_BASE/$VCVARSFILE"; then 32766 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32767 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32768 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32769 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32770 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32771 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32772 else 32773 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32774 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32775 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32776 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32777 fi 32778 fi 32779 fi 32780 32781 32782 if test "x$VS_ENV_CMD" = x; then 32783 VS_VERSION="${VS_VERSION}" 32784 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 32785 METHOD="well-known name" 32786 32787 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32788 VCVARSFILE="vc/bin/vcvars32.bat" 32789 else 32790 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32791 fi 32792 32793 32794 windows_path="$VS_BASE" 32795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32796 unix_path=`$CYGPATH -u "$windows_path"` 32797 VS_BASE="$unix_path" 32798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32799 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32800 VS_BASE="$unix_path" 32801 fi 32802 32803 if test -d "$VS_BASE"; then 32804 if test -f "$VS_BASE/$VCVARSFILE"; then 32805 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32806 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32807 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32808 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32809 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32810 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32811 else 32812 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32813 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32814 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32815 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32816 fi 32817 fi 32818 fi 32819 32820 32821 if test "x$SDK_INSTALL_DIR" != x; then 32822 if test "x$ProgramW6432" != x; then 32823 32824 if test "x$VS_ENV_CMD" = x; then 32825 VS_VERSION="${VS_VERSION}" 32826 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 32827 METHOD="well-known name" 32828 32829 windows_path="$WIN_SDK_BASE" 32830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32831 unix_path=`$CYGPATH -u "$windows_path"` 32832 WIN_SDK_BASE="$unix_path" 32833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32834 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32835 WIN_SDK_BASE="$unix_path" 32836 fi 32837 32838 if test -d "$WIN_SDK_BASE"; then 32839 # There have been cases of partial or broken SDK installations. A missing 32840 # lib dir is not going to work. 32841 if test ! -d "$WIN_SDK_BASE/lib"; then 32842 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32843 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32844 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32845 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32846 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32847 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32848 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32849 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32850 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32851 VS_ENV_ARGS="/x86" 32852 else 32853 VS_ENV_ARGS="/x64" 32854 fi 32855 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32856 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32857 # TODO: improve detection for other versions of SDK 32858 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32859 else 32860 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32861 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32862 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32863 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32864 fi 32865 fi 32866 fi 32867 32868 fi 32869 if test "x$PROGRAMW6432" != x; then 32870 32871 if test "x$VS_ENV_CMD" = x; then 32872 VS_VERSION="${VS_VERSION}" 32873 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32874 METHOD="well-known name" 32875 32876 windows_path="$WIN_SDK_BASE" 32877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32878 unix_path=`$CYGPATH -u "$windows_path"` 32879 WIN_SDK_BASE="$unix_path" 32880 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32881 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32882 WIN_SDK_BASE="$unix_path" 32883 fi 32884 32885 if test -d "$WIN_SDK_BASE"; then 32886 # There have been cases of partial or broken SDK installations. A missing 32887 # lib dir is not going to work. 32888 if test ! -d "$WIN_SDK_BASE/lib"; then 32889 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32890 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32891 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32892 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32893 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32894 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32895 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32896 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32897 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32898 VS_ENV_ARGS="/x86" 32899 else 32900 VS_ENV_ARGS="/x64" 32901 fi 32902 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32903 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32904 # TODO: improve detection for other versions of SDK 32905 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32906 else 32907 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32908 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32909 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32910 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32911 fi 32912 fi 32913 fi 32914 32915 fi 32916 if test "x$PROGRAMFILES" != x; then 32917 32918 if test "x$VS_ENV_CMD" = x; then 32919 VS_VERSION="${VS_VERSION}" 32920 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32921 METHOD="well-known name" 32922 32923 windows_path="$WIN_SDK_BASE" 32924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32925 unix_path=`$CYGPATH -u "$windows_path"` 32926 WIN_SDK_BASE="$unix_path" 32927 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32928 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32929 WIN_SDK_BASE="$unix_path" 32930 fi 32931 32932 if test -d "$WIN_SDK_BASE"; then 32933 # There have been cases of partial or broken SDK installations. A missing 32934 # lib dir is not going to work. 32935 if test ! -d "$WIN_SDK_BASE/lib"; then 32936 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32937 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32938 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32939 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32940 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 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 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32944 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32945 VS_ENV_ARGS="/x86" 32946 else 32947 VS_ENV_ARGS="/x64" 32948 fi 32949 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32950 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32951 # TODO: improve detection for other versions of SDK 32952 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32953 else 32954 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32955 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32956 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32957 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32958 fi 32959 fi 32960 fi 32961 32962 fi 32963 32964 if test "x$VS_ENV_CMD" = x; then 32965 VS_VERSION="${VS_VERSION}" 32966 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32967 METHOD="well-known name" 32968 32969 windows_path="$WIN_SDK_BASE" 32970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32971 unix_path=`$CYGPATH -u "$windows_path"` 32972 WIN_SDK_BASE="$unix_path" 32973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32975 WIN_SDK_BASE="$unix_path" 32976 fi 32977 32978 if test -d "$WIN_SDK_BASE"; then 32979 # There have been cases of partial or broken SDK installations. A missing 32980 # lib dir is not going to work. 32981 if test ! -d "$WIN_SDK_BASE/lib"; then 32982 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32983 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32984 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32985 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32986 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32987 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32988 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32989 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32990 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32991 VS_ENV_ARGS="/x86" 32992 else 32993 VS_ENV_ARGS="/x64" 32994 fi 32995 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32996 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32997 # TODO: improve detection for other versions of SDK 32998 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32999 else 33000 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33001 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33002 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 33003 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 33004 fi 33005 fi 33006 fi 33007 33008 33009 if test "x$VS_ENV_CMD" = x; then 33010 VS_VERSION="${VS_VERSION}" 33011 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 33012 METHOD="well-known name" 33013 33014 windows_path="$WIN_SDK_BASE" 33015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33016 unix_path=`$CYGPATH -u "$windows_path"` 33017 WIN_SDK_BASE="$unix_path" 33018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33019 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33020 WIN_SDK_BASE="$unix_path" 33021 fi 33022 33023 if test -d "$WIN_SDK_BASE"; then 33024 # There have been cases of partial or broken SDK installations. A missing 33025 # lib dir is not going to work. 33026 if test ! -d "$WIN_SDK_BASE/lib"; then 33027 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33028 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33029 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 33030 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 33031 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 33032 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33033 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33034 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 33035 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 33036 VS_ENV_ARGS="/x86" 33037 else 33038 VS_ENV_ARGS="/x64" 33039 fi 33040 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 33041 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 33042 # TODO: improve detection for other versions of SDK 33043 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 33044 else 33045 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 33046 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 33047 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 33048 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 33049 fi 33050 fi 33051 fi 33052 33053 fi 33054 33055 if test "x$VS_ENV_CMD" != x; then 33056 TOOLCHAIN_VERSION=$VS_VERSION 33057 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 33058 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 33059 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 33060 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 33061 # The rest of the variables are already evaled while probing 33062 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 33063 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 33064 break 33065 fi 33066 done 33067 33068 33069 # If we have a devkit, skip all of the below. 33070 if test "x$DEVKIT_VS_VERSION" = x; then 33071 if test "x$VS_ENV_CMD" != x; then 33072 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 33073 33074 # Only process if variable expands to non-empty 33075 33076 if test "x$VS_ENV_CMD" != x; then 33077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33078 33079 # First separate the path from the arguments. This will split at the first 33080 # space. 33081 complete="$VS_ENV_CMD" 33082 path="${complete%% *}" 33083 tmp="$complete EOL" 33084 arguments="${tmp#* }" 33085 33086 # Input might be given as Windows format, start by converting to 33087 # unix format. 33088 new_path=`$CYGPATH -u "$path"` 33089 33090 # Now try to locate executable using which 33091 new_path=`$WHICH "$new_path" 2> /dev/null` 33092 # bat and cmd files are not always considered executable in cygwin causing which 33093 # to not find them 33094 if test "x$new_path" = x \ 33095 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33096 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33097 new_path=`$CYGPATH -u "$path"` 33098 fi 33099 if test "x$new_path" = x; then 33100 # Oops. Which didn't find the executable. 33101 # The splitting of arguments from the executable at a space might have been incorrect, 33102 # since paths with space are more likely in Windows. Give it another try with the whole 33103 # argument. 33104 path="$complete" 33105 arguments="EOL" 33106 new_path=`$CYGPATH -u "$path"` 33107 new_path=`$WHICH "$new_path" 2> /dev/null` 33108 # bat and cmd files are not always considered executable in cygwin causing which 33109 # to not find them 33110 if test "x$new_path" = x \ 33111 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33112 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33113 new_path=`$CYGPATH -u "$path"` 33114 fi 33115 if test "x$new_path" = x; then 33116 # It's still not found. Now this is an unrecoverable error. 33117 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33118 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33119 has_space=`$ECHO "$complete" | $GREP " "` 33120 if test "x$has_space" != x; then 33121 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33122 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33123 fi 33124 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33125 fi 33126 fi 33127 33128 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33129 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33130 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33131 # "foo.exe" is OK but "foo" is an error. 33132 # 33133 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33134 # It is also a way to make sure we got the proper file name for the real test later on. 33135 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33136 if test "x$test_shortpath" = x; then 33137 # Short path failed, file does not exist as specified. 33138 # Try adding .exe or .cmd 33139 if test -f "${new_path}.exe"; then 33140 input_to_shortpath="${new_path}.exe" 33141 elif test -f "${new_path}.cmd"; then 33142 input_to_shortpath="${new_path}.cmd" 33143 else 33144 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 33145 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 33146 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33147 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33148 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33149 fi 33150 else 33151 input_to_shortpath="$new_path" 33152 fi 33153 33154 # Call helper function which possibly converts this using DOS-style short mode. 33155 # If so, the updated path is stored in $new_path. 33156 new_path="$input_to_shortpath" 33157 33158 input_path="$input_to_shortpath" 33159 # Check if we need to convert this using DOS-style short mode. If the path 33160 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33161 # take no chances and rewrite it. 33162 # Note: m4 eats our [], so we need to use [ and ] instead. 33163 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33164 if test "x$has_forbidden_chars" != x; then 33165 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33166 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33167 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33168 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33169 # Going to short mode and back again did indeed matter. Since short mode is 33170 # case insensitive, let's make it lowercase to improve readability. 33171 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33172 # Now convert it back to Unix-style (cygpath) 33173 input_path=`$CYGPATH -u "$shortmode_path"` 33174 new_path="$input_path" 33175 fi 33176 fi 33177 33178 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33179 if test "x$test_cygdrive_prefix" = x; then 33180 # As a simple fix, exclude /usr/bin since it's not a real path. 33181 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33182 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33183 # a path prefixed by /cygdrive for fixpath to work. 33184 new_path="$CYGWIN_ROOT_PATH$input_path" 33185 fi 33186 fi 33187 33188 # remove trailing .exe if any 33189 new_path="${new_path/%.exe/}" 33190 33191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33192 33193 # First separate the path from the arguments. This will split at the first 33194 # space. 33195 complete="$VS_ENV_CMD" 33196 path="${complete%% *}" 33197 tmp="$complete EOL" 33198 arguments="${tmp#* }" 33199 33200 # Input might be given as Windows format, start by converting to 33201 # unix format. 33202 new_path="$path" 33203 33204 windows_path="$new_path" 33205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33206 unix_path=`$CYGPATH -u "$windows_path"` 33207 new_path="$unix_path" 33208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33209 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33210 new_path="$unix_path" 33211 fi 33212 33213 33214 # Now try to locate executable using which 33215 new_path=`$WHICH "$new_path" 2> /dev/null` 33216 33217 if test "x$new_path" = x; then 33218 # Oops. Which didn't find the executable. 33219 # The splitting of arguments from the executable at a space might have been incorrect, 33220 # since paths with space are more likely in Windows. Give it another try with the whole 33221 # argument. 33222 path="$complete" 33223 arguments="EOL" 33224 new_path="$path" 33225 33226 windows_path="$new_path" 33227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33228 unix_path=`$CYGPATH -u "$windows_path"` 33229 new_path="$unix_path" 33230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33231 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33232 new_path="$unix_path" 33233 fi 33234 33235 33236 new_path=`$WHICH "$new_path" 2> /dev/null` 33237 # bat and cmd files are not always considered executable in MSYS causing which 33238 # to not find them 33239 if test "x$new_path" = x \ 33240 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33241 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33242 new_path="$path" 33243 33244 windows_path="$new_path" 33245 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33246 unix_path=`$CYGPATH -u "$windows_path"` 33247 new_path="$unix_path" 33248 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33249 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33250 new_path="$unix_path" 33251 fi 33252 33253 fi 33254 33255 if test "x$new_path" = x; then 33256 # It's still not found. Now this is an unrecoverable error. 33257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33258 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33259 has_space=`$ECHO "$complete" | $GREP " "` 33260 if test "x$has_space" != x; then 33261 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33262 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33263 fi 33264 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33265 fi 33266 fi 33267 33268 # Now new_path has a complete unix path to the binary 33269 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33270 # Keep paths in /bin as-is, but remove trailing .exe if any 33271 new_path="${new_path/%.exe/}" 33272 # Do not save /bin paths to all_fixpath_prefixes! 33273 else 33274 # Not in mixed or Windows style, start by that. 33275 new_path=`cmd //c echo $new_path` 33276 33277 input_path="$new_path" 33278 # Check if we need to convert this using DOS-style short mode. If the path 33279 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33280 # take no chances and rewrite it. 33281 # Note: m4 eats our [], so we need to use [ and ] instead. 33282 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33283 if test "x$has_forbidden_chars" != x; then 33284 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33285 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33286 fi 33287 33288 # Output is in $new_path 33289 33290 windows_path="$new_path" 33291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33292 unix_path=`$CYGPATH -u "$windows_path"` 33293 new_path="$unix_path" 33294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33295 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33296 new_path="$unix_path" 33297 fi 33298 33299 # remove trailing .exe if any 33300 new_path="${new_path/%.exe/}" 33301 33302 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33303 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33304 fi 33305 33306 else 33307 # We're on a unix platform. Hooray! :) 33308 # First separate the path from the arguments. This will split at the first 33309 # space. 33310 complete="$VS_ENV_CMD" 33311 path="${complete%% *}" 33312 tmp="$complete EOL" 33313 arguments="${tmp#* }" 33314 33315 # Cannot rely on the command "which" here since it doesn't always work. 33316 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33317 if test -z "$is_absolute_path"; then 33318 # Path to executable is not absolute. Find it. 33319 IFS_save="$IFS" 33320 IFS=: 33321 for p in $PATH; do 33322 if test -f "$p/$path" && test -x "$p/$path"; then 33323 new_path="$p/$path" 33324 break 33325 fi 33326 done 33327 IFS="$IFS_save" 33328 else 33329 # This is an absolute path, we can use it without further modifications. 33330 new_path="$path" 33331 fi 33332 33333 if test "x$new_path" = x; then 33334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33335 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33336 has_space=`$ECHO "$complete" | $GREP " "` 33337 if test "x$has_space" != x; then 33338 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33339 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33340 fi 33341 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33342 fi 33343 fi 33344 33345 # Now join together the path and the arguments once again 33346 if test "x$arguments" != xEOL; then 33347 new_complete="$new_path ${arguments% *}" 33348 else 33349 new_complete="$new_path" 33350 fi 33351 33352 if test "x$complete" != "x$new_complete"; then 33353 VS_ENV_CMD="$new_complete" 33354 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 33355 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 33356 fi 33357 fi 33358 33359 33360 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 33361 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 33362 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 33363 33364 # We need to create a couple of temporary files. 33365 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 33366 $MKDIR -p $VS_ENV_TMP_DIR 33367 33368 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 33369 # Instead create a shell script which will set the relevant variables when run. 33370 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 33371 33372 unix_path="$WINPATH_VS_ENV_CMD" 33373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33374 windows_path=`$CYGPATH -m "$unix_path"` 33375 WINPATH_VS_ENV_CMD="$windows_path" 33376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33377 windows_path=`cmd //c echo $unix_path` 33378 WINPATH_VS_ENV_CMD="$windows_path" 33379 fi 33380 33381 WINPATH_BASH="$BASH" 33382 33383 unix_path="$WINPATH_BASH" 33384 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33385 windows_path=`$CYGPATH -m "$unix_path"` 33386 WINPATH_BASH="$windows_path" 33387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33388 windows_path=`cmd //c echo $unix_path` 33389 WINPATH_BASH="$windows_path" 33390 fi 33391 33392 33393 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 33394 # script (executable by bash) that will setup the important variables. 33395 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 33396 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 33397 # This will end up something like: 33398 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 33399 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 33400 # These will end up something like: 33401 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 33402 # The trailing space for everyone except PATH is no typo, but is needed due 33403 # to trailing \ in the Windows paths. These will be stripped later. 33404 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 33405 >> $EXTRACT_VC_ENV_BAT_FILE 33406 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 33407 >> $EXTRACT_VC_ENV_BAT_FILE 33408 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 33409 >> $EXTRACT_VC_ENV_BAT_FILE 33410 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 33411 >> $EXTRACT_VC_ENV_BAT_FILE 33412 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 33413 >> $EXTRACT_VC_ENV_BAT_FILE 33414 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 33415 >> $EXTRACT_VC_ENV_BAT_FILE 33416 33417 # Now execute the newly created bat file. 33418 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 33419 # Change directory so we don't need to mess with Windows paths in redirects. 33420 cd $VS_ENV_TMP_DIR 33421 cmd /c extract-vs-env.bat | $CAT 33422 cd $CURDIR 33423 33424 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 33425 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 33426 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 33427 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33428 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33429 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33430 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33431 as_fn_error $? "Cannot continue" "$LINENO" 5 33432 fi 33433 33434 # Now set all paths and other env variables. This will allow the rest of 33435 # the configure script to find and run the compiler in the proper way. 33436 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 33437 $as_echo "$as_me: Setting extracted environment variables" >&6;} 33438 . $VS_ENV_TMP_DIR/set-vs-env.sh 33439 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 33440 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 33441 else 33442 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 33443 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 33444 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 33445 fi 33446 fi 33447 33448 # At this point, we should have correct variables in the environment, or we can't continue. 33449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 33450 $as_echo_n "checking for Visual Studio variables... " >&6; } 33451 33452 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 33453 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 33454 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 33455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 33456 $as_echo "present but broken" >&6; } 33457 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 33458 else 33459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 33460 $as_echo "ok" >&6; } 33461 # Remove any trailing "\" ";" and " " from the variables. 33462 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 33463 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 33464 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 33465 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 33466 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 33467 # Remove any paths containing # (typically F#) as that messes up make. This 33468 # is needed if visual studio was installed with F# support. 33469 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 33470 33471 33472 33473 33474 33475 # Convert VS_INCLUDE into SYSROOT_CFLAGS 33476 OLDIFS="$IFS" 33477 IFS=";" 33478 for i in $VS_INCLUDE; do 33479 ipath=$i 33480 # Only process non-empty elements 33481 if test "x$ipath" != x; then 33482 IFS="$OLDIFS" 33483 # Check that directory exists before calling fixup_path 33484 testpath=$ipath 33485 33486 windows_path="$testpath" 33487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33488 unix_path=`$CYGPATH -u "$windows_path"` 33489 testpath="$unix_path" 33490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33492 testpath="$unix_path" 33493 fi 33494 33495 if test -d "$testpath"; then 33496 33497 # Only process if variable expands to non-empty 33498 33499 if test "x$ipath" != x; then 33500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33501 33502 # Input might be given as Windows format, start by converting to 33503 # unix format. 33504 path="$ipath" 33505 new_path=`$CYGPATH -u "$path"` 33506 33507 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33508 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33509 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33510 # "foo.exe" is OK but "foo" is an error. 33511 # 33512 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33513 # It is also a way to make sure we got the proper file name for the real test later on. 33514 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33515 if test "x$test_shortpath" = x; then 33516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33517 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33518 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 33519 fi 33520 33521 # Call helper function which possibly converts this using DOS-style short mode. 33522 # If so, the updated path is stored in $new_path. 33523 33524 input_path="$new_path" 33525 # Check if we need to convert this using DOS-style short mode. If the path 33526 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33527 # take no chances and rewrite it. 33528 # Note: m4 eats our [], so we need to use [ and ] instead. 33529 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33530 if test "x$has_forbidden_chars" != x; then 33531 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33532 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33533 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33534 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33535 # Going to short mode and back again did indeed matter. Since short mode is 33536 # case insensitive, let's make it lowercase to improve readability. 33537 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33538 # Now convert it back to Unix-style (cygpath) 33539 input_path=`$CYGPATH -u "$shortmode_path"` 33540 new_path="$input_path" 33541 fi 33542 fi 33543 33544 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33545 if test "x$test_cygdrive_prefix" = x; then 33546 # As a simple fix, exclude /usr/bin since it's not a real path. 33547 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33548 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33549 # a path prefixed by /cygdrive for fixpath to work. 33550 new_path="$CYGWIN_ROOT_PATH$input_path" 33551 fi 33552 fi 33553 33554 33555 if test "x$path" != "x$new_path"; then 33556 ipath="$new_path" 33557 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33558 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33559 fi 33560 33561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33562 33563 path="$ipath" 33564 has_colon=`$ECHO $path | $GREP ^.:` 33565 new_path="$path" 33566 if test "x$has_colon" = x; then 33567 # Not in mixed or Windows style, start by that. 33568 new_path=`cmd //c echo $path` 33569 fi 33570 33571 33572 input_path="$new_path" 33573 # Check if we need to convert this using DOS-style short mode. If the path 33574 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33575 # take no chances and rewrite it. 33576 # Note: m4 eats our [], so we need to use [ and ] instead. 33577 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33578 if test "x$has_forbidden_chars" != x; then 33579 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33580 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33581 fi 33582 33583 33584 windows_path="$new_path" 33585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33586 unix_path=`$CYGPATH -u "$windows_path"` 33587 new_path="$unix_path" 33588 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33589 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33590 new_path="$unix_path" 33591 fi 33592 33593 if test "x$path" != "x$new_path"; then 33594 ipath="$new_path" 33595 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33596 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33597 fi 33598 33599 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33600 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33601 33602 else 33603 # We're on a unix platform. Hooray! :) 33604 path="$ipath" 33605 has_space=`$ECHO "$path" | $GREP " "` 33606 if test "x$has_space" != x; then 33607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33608 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33609 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33610 fi 33611 33612 # Use eval to expand a potential ~ 33613 eval path="$path" 33614 if test ! -f "$path" && test ! -d "$path"; then 33615 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 33616 fi 33617 33618 if test -d "$path"; then 33619 ipath="`cd "$path"; $THEPWDCMD -L`" 33620 else 33621 dir="`$DIRNAME "$path"`" 33622 base="`$BASENAME "$path"`" 33623 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 33624 fi 33625 fi 33626 fi 33627 33628 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 33629 fi 33630 IFS=";" 33631 fi 33632 done 33633 # Convert VS_LIB into SYSROOT_LDFLAGS 33634 for i in $VS_LIB; do 33635 libpath=$i 33636 # Only process non-empty elements 33637 if test "x$libpath" != x; then 33638 IFS="$OLDIFS" 33639 # Check that directory exists before calling fixup_path 33640 testpath=$libpath 33641 33642 windows_path="$testpath" 33643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33644 unix_path=`$CYGPATH -u "$windows_path"` 33645 testpath="$unix_path" 33646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33647 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33648 testpath="$unix_path" 33649 fi 33650 33651 if test -d "$testpath"; then 33652 33653 # Only process if variable expands to non-empty 33654 33655 if test "x$libpath" != x; then 33656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33657 33658 # Input might be given as Windows format, start by converting to 33659 # unix format. 33660 path="$libpath" 33661 new_path=`$CYGPATH -u "$path"` 33662 33663 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33664 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33665 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33666 # "foo.exe" is OK but "foo" is an error. 33667 # 33668 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33669 # It is also a way to make sure we got the proper file name for the real test later on. 33670 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33671 if test "x$test_shortpath" = x; then 33672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33673 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33674 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 33675 fi 33676 33677 # Call helper function which possibly converts this using DOS-style short mode. 33678 # If so, the updated path is stored in $new_path. 33679 33680 input_path="$new_path" 33681 # Check if we need to convert this using DOS-style short mode. If the path 33682 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33683 # take no chances and rewrite it. 33684 # Note: m4 eats our [], so we need to use [ and ] instead. 33685 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33686 if test "x$has_forbidden_chars" != x; then 33687 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33688 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33689 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33690 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33691 # Going to short mode and back again did indeed matter. Since short mode is 33692 # case insensitive, let's make it lowercase to improve readability. 33693 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33694 # Now convert it back to Unix-style (cygpath) 33695 input_path=`$CYGPATH -u "$shortmode_path"` 33696 new_path="$input_path" 33697 fi 33698 fi 33699 33700 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33701 if test "x$test_cygdrive_prefix" = x; then 33702 # As a simple fix, exclude /usr/bin since it's not a real path. 33703 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33704 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33705 # a path prefixed by /cygdrive for fixpath to work. 33706 new_path="$CYGWIN_ROOT_PATH$input_path" 33707 fi 33708 fi 33709 33710 33711 if test "x$path" != "x$new_path"; then 33712 libpath="$new_path" 33713 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33714 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33715 fi 33716 33717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33718 33719 path="$libpath" 33720 has_colon=`$ECHO $path | $GREP ^.:` 33721 new_path="$path" 33722 if test "x$has_colon" = x; then 33723 # Not in mixed or Windows style, start by that. 33724 new_path=`cmd //c echo $path` 33725 fi 33726 33727 33728 input_path="$new_path" 33729 # Check if we need to convert this using DOS-style short mode. If the path 33730 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33731 # take no chances and rewrite it. 33732 # Note: m4 eats our [], so we need to use [ and ] instead. 33733 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33734 if test "x$has_forbidden_chars" != x; then 33735 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33736 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33737 fi 33738 33739 33740 windows_path="$new_path" 33741 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33742 unix_path=`$CYGPATH -u "$windows_path"` 33743 new_path="$unix_path" 33744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33745 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33746 new_path="$unix_path" 33747 fi 33748 33749 if test "x$path" != "x$new_path"; then 33750 libpath="$new_path" 33751 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33752 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33753 fi 33754 33755 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33756 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33757 33758 else 33759 # We're on a unix platform. Hooray! :) 33760 path="$libpath" 33761 has_space=`$ECHO "$path" | $GREP " "` 33762 if test "x$has_space" != x; then 33763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33764 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33765 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33766 fi 33767 33768 # Use eval to expand a potential ~ 33769 eval path="$path" 33770 if test ! -f "$path" && test ! -d "$path"; then 33771 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 33772 fi 33773 33774 if test -d "$path"; then 33775 libpath="`cd "$path"; $THEPWDCMD -L`" 33776 else 33777 dir="`$DIRNAME "$path"`" 33778 base="`$BASENAME "$path"`" 33779 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 33780 fi 33781 fi 33782 fi 33783 33784 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 33785 fi 33786 IFS=";" 33787 fi 33788 done 33789 IFS="$OLDIFS" 33790 fi 33791 else 33792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33793 $as_echo "not found" >&6; } 33794 33795 if test "x$VS_ENV_CMD" = x; then 33796 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 33797 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 33798 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 33799 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 33800 else 33801 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 33802 $as_echo "$as_me: Running the extraction script failed." >&6;} 33803 fi 33804 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33805 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33806 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33807 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33808 as_fn_error $? "Cannot continue" "$LINENO" 5 33809 fi 33810 33811 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 33812 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 33813 PATH="$VS_PATH" 33814 # The microsoft toolchain also requires INCLUDE and LIB to be set. 33815 export INCLUDE="$VS_INCLUDE" 33816 export LIB="$VS_LIB" 33817 else 33818 if test "x$XCODE_VERSION_OUTPUT" != x; then 33819 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 33820 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 33821 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 33822 else 33823 # Currently we do not define this for other toolchains. This might change as the need arise. 33824 TOOLCHAIN_VERSION= 33825 fi 33826 fi 33827 33828 33829 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 33830 # override all other locations. 33831 if test "x$TOOLCHAIN_PATH" != x; then 33832 PATH=$TOOLCHAIN_PATH:$PATH 33833 fi 33834 33835 33836 # 33837 # Setup the compilers (CC and CXX) 33838 # 33839 33840 COMPILER_NAME=C 33841 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33842 33843 if test "x$CC" != x; then 33844 # User has supplied compiler name already, always let that override. 33845 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33846 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33847 if test "x`basename $CC`" = "x$CC"; then 33848 # A command without a complete path is provided, search $PATH. 33849 33850 for ac_prog in $CC 33851 do 33852 # Extract the first word of "$ac_prog", so it can be a program name with args. 33853 set dummy $ac_prog; ac_word=$2 33854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33855 $as_echo_n "checking for $ac_word... " >&6; } 33856 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33857 $as_echo_n "(cached) " >&6 33858 else 33859 case $POTENTIAL_CC in 33860 [\\/]* | ?:[\\/]*) 33861 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33862 ;; 33863 *) 33864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33865 for as_dir in $PATH 33866 do 33867 IFS=$as_save_IFS 33868 test -z "$as_dir" && as_dir=. 33869 for ac_exec_ext in '' $ac_executable_extensions; do 33870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33871 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33873 break 2 33874 fi 33875 done 33876 done 33877 IFS=$as_save_IFS 33878 33879 ;; 33880 esac 33881 fi 33882 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33883 if test -n "$POTENTIAL_CC"; then 33884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33885 $as_echo "$POTENTIAL_CC" >&6; } 33886 else 33887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33888 $as_echo "no" >&6; } 33889 fi 33890 33891 33892 test -n "$POTENTIAL_CC" && break 33893 done 33894 33895 if test "x$POTENTIAL_CC" != x; then 33896 CC=$POTENTIAL_CC 33897 else 33898 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33899 fi 33900 else 33901 # Otherwise it might already be a complete path 33902 if test ! -x "$CC"; then 33903 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33904 fi 33905 fi 33906 else 33907 # No user supplied value. Locate compiler ourselves. 33908 33909 # If we are cross compiling, assume cross compilation tools follows the 33910 # cross compilation standard where they are prefixed with the autoconf 33911 # standard name for the target. For example the binary 33912 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33913 # If we are not cross compiling, then the default compiler name will be 33914 # used. 33915 33916 CC= 33917 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33918 # before checking the rest of the PATH. 33919 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33920 # step, this should not be necessary. 33921 if test -n "$TOOLCHAIN_PATH"; then 33922 PATH_save="$PATH" 33923 PATH="$TOOLCHAIN_PATH" 33924 if test -n "$ac_tool_prefix"; then 33925 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33926 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33928 $as_echo_n "checking for $ac_word... " >&6; } 33929 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33930 $as_echo_n "(cached) " >&6 33931 else 33932 case $TOOLCHAIN_PATH_CC in 33933 [\\/]* | ?:[\\/]*) 33934 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33935 ;; 33936 *) 33937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33938 for as_dir in $PATH 33939 do 33940 IFS=$as_save_IFS 33941 test -z "$as_dir" && as_dir=. 33942 for ac_exec_ext in '' $ac_executable_extensions; do 33943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33944 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33946 break 2 33947 fi 33948 done 33949 done 33950 IFS=$as_save_IFS 33951 33952 ;; 33953 esac 33954 fi 33955 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33956 if test -n "$TOOLCHAIN_PATH_CC"; then 33957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33958 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33959 else 33960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33961 $as_echo "no" >&6; } 33962 fi 33963 33964 33965 fi 33966 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CC"; then 33967 ac_pt_TOOLCHAIN_PATH_CC=$TOOLCHAIN_PATH_CC 33968 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33969 set dummy $SEARCH_LIST; ac_word=$2 33970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33971 $as_echo_n "checking for $ac_word... " >&6; } 33972 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC+:} false; then : 33973 $as_echo_n "(cached) " >&6 33974 else 33975 case $ac_pt_TOOLCHAIN_PATH_CC in 33976 [\\/]* | ?:[\\/]*) 33977 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$ac_pt_TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33978 ;; 33979 *) 33980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33981 for as_dir in $PATH 33982 do 33983 IFS=$as_save_IFS 33984 test -z "$as_dir" && as_dir=. 33985 for ac_exec_ext in '' $ac_executable_extensions; do 33986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33987 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33989 break 2 33990 fi 33991 done 33992 done 33993 IFS=$as_save_IFS 33994 33995 ;; 33996 esac 33997 fi 33998 ac_pt_TOOLCHAIN_PATH_CC=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC 33999 if test -n "$ac_pt_TOOLCHAIN_PATH_CC"; then 34000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CC" >&5 34001 $as_echo "$ac_pt_TOOLCHAIN_PATH_CC" >&6; } 34002 else 34003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34004 $as_echo "no" >&6; } 34005 fi 34006 34007 if test "x$ac_pt_TOOLCHAIN_PATH_CC" = x; then 34008 TOOLCHAIN_PATH_CC="" 34009 else 34010 case $cross_compiling:$ac_tool_warned in 34011 yes:) 34012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34014 ac_tool_warned=yes ;; 34015 esac 34016 TOOLCHAIN_PATH_CC=$ac_pt_TOOLCHAIN_PATH_CC 34017 fi 34018 else 34019 TOOLCHAIN_PATH_CC="$ac_cv_path_TOOLCHAIN_PATH_CC" 34020 fi 34021 34022 CC=$TOOLCHAIN_PATH_CC 34023 PATH="$PATH_save" 34024 fi 34025 34026 # AC_PATH_TOOL can't be run multiple times with the same variable, 34027 # so create a new name for this run. 34028 if test "x$CC" = x; then 34029 if test -n "$ac_tool_prefix"; then 34030 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 34031 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 34032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34033 $as_echo_n "checking for $ac_word... " >&6; } 34034 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 34035 $as_echo_n "(cached) " >&6 34036 else 34037 case $POTENTIAL_CC in 34038 [\\/]* | ?:[\\/]*) 34039 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 34040 ;; 34041 *) 34042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34043 for as_dir in $PATH 34044 do 34045 IFS=$as_save_IFS 34046 test -z "$as_dir" && as_dir=. 34047 for ac_exec_ext in '' $ac_executable_extensions; do 34048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34049 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 34050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34051 break 2 34052 fi 34053 done 34054 done 34055 IFS=$as_save_IFS 34056 34057 ;; 34058 esac 34059 fi 34060 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 34061 if test -n "$POTENTIAL_CC"; then 34062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 34063 $as_echo "$POTENTIAL_CC" >&6; } 34064 else 34065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34066 $as_echo "no" >&6; } 34067 fi 34068 34069 34070 fi 34071 if test -z "$ac_cv_path_POTENTIAL_CC"; then 34072 ac_pt_POTENTIAL_CC=$POTENTIAL_CC 34073 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 34074 set dummy $SEARCH_LIST; ac_word=$2 34075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34076 $as_echo_n "checking for $ac_word... " >&6; } 34077 if ${ac_cv_path_ac_pt_POTENTIAL_CC+:} false; then : 34078 $as_echo_n "(cached) " >&6 34079 else 34080 case $ac_pt_POTENTIAL_CC in 34081 [\\/]* | ?:[\\/]*) 34082 ac_cv_path_ac_pt_POTENTIAL_CC="$ac_pt_POTENTIAL_CC" # Let the user override the test with a path. 34083 ;; 34084 *) 34085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34086 for as_dir in $PATH 34087 do 34088 IFS=$as_save_IFS 34089 test -z "$as_dir" && as_dir=. 34090 for ac_exec_ext in '' $ac_executable_extensions; do 34091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34092 ac_cv_path_ac_pt_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 34093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34094 break 2 34095 fi 34096 done 34097 done 34098 IFS=$as_save_IFS 34099 34100 ;; 34101 esac 34102 fi 34103 ac_pt_POTENTIAL_CC=$ac_cv_path_ac_pt_POTENTIAL_CC 34104 if test -n "$ac_pt_POTENTIAL_CC"; then 34105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CC" >&5 34106 $as_echo "$ac_pt_POTENTIAL_CC" >&6; } 34107 else 34108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34109 $as_echo "no" >&6; } 34110 fi 34111 34112 if test "x$ac_pt_POTENTIAL_CC" = x; then 34113 POTENTIAL_CC="" 34114 else 34115 case $cross_compiling:$ac_tool_warned in 34116 yes:) 34117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34119 ac_tool_warned=yes ;; 34120 esac 34121 POTENTIAL_CC=$ac_pt_POTENTIAL_CC 34122 fi 34123 else 34124 POTENTIAL_CC="$ac_cv_path_POTENTIAL_CC" 34125 fi 34126 34127 CC=$POTENTIAL_CC 34128 fi 34129 34130 if test "x$CC" = x; then 34131 34132 # Print a helpful message on how to acquire the necessary build dependency. 34133 # devkit is the help tag: freetype, cups, alsa etc 34134 MISSING_DEPENDENCY=devkit 34135 34136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34137 cygwin_help $MISSING_DEPENDENCY 34138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34139 msys_help $MISSING_DEPENDENCY 34140 else 34141 PKGHANDLER_COMMAND= 34142 34143 case $PKGHANDLER in 34144 apt-get) 34145 apt_help $MISSING_DEPENDENCY ;; 34146 yum) 34147 yum_help $MISSING_DEPENDENCY ;; 34148 brew) 34149 brew_help $MISSING_DEPENDENCY ;; 34150 port) 34151 port_help $MISSING_DEPENDENCY ;; 34152 pkgutil) 34153 pkgutil_help $MISSING_DEPENDENCY ;; 34154 pkgadd) 34155 pkgadd_help $MISSING_DEPENDENCY ;; 34156 esac 34157 34158 if test "x$PKGHANDLER_COMMAND" != x; then 34159 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34160 fi 34161 fi 34162 34163 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34164 fi 34165 fi 34166 34167 # Now we have a compiler binary in CC. Make sure it's okay. 34168 34169 # Only process if variable expands to non-empty 34170 34171 if test "x$CC" != x; then 34172 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34173 34174 # First separate the path from the arguments. This will split at the first 34175 # space. 34176 complete="$CC" 34177 path="${complete%% *}" 34178 tmp="$complete EOL" 34179 arguments="${tmp#* }" 34180 34181 # Input might be given as Windows format, start by converting to 34182 # unix format. 34183 new_path=`$CYGPATH -u "$path"` 34184 34185 # Now try to locate executable using which 34186 new_path=`$WHICH "$new_path" 2> /dev/null` 34187 # bat and cmd files are not always considered executable in cygwin causing which 34188 # to not find them 34189 if test "x$new_path" = x \ 34190 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34191 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34192 new_path=`$CYGPATH -u "$path"` 34193 fi 34194 if test "x$new_path" = x; then 34195 # Oops. Which didn't find the executable. 34196 # The splitting of arguments from the executable at a space might have been incorrect, 34197 # since paths with space are more likely in Windows. Give it another try with the whole 34198 # argument. 34199 path="$complete" 34200 arguments="EOL" 34201 new_path=`$CYGPATH -u "$path"` 34202 new_path=`$WHICH "$new_path" 2> /dev/null` 34203 # bat and cmd files are not always considered executable in cygwin causing which 34204 # to not find them 34205 if test "x$new_path" = x \ 34206 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34207 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34208 new_path=`$CYGPATH -u "$path"` 34209 fi 34210 if test "x$new_path" = x; then 34211 # It's still not found. Now this is an unrecoverable error. 34212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34213 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34214 has_space=`$ECHO "$complete" | $GREP " "` 34215 if test "x$has_space" != x; then 34216 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34217 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34218 fi 34219 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34220 fi 34221 fi 34222 34223 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34224 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34225 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34226 # "foo.exe" is OK but "foo" is an error. 34227 # 34228 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34229 # It is also a way to make sure we got the proper file name for the real test later on. 34230 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34231 if test "x$test_shortpath" = x; then 34232 # Short path failed, file does not exist as specified. 34233 # Try adding .exe or .cmd 34234 if test -f "${new_path}.exe"; then 34235 input_to_shortpath="${new_path}.exe" 34236 elif test -f "${new_path}.cmd"; then 34237 input_to_shortpath="${new_path}.cmd" 34238 else 34239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 34240 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 34241 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34242 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34243 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34244 fi 34245 else 34246 input_to_shortpath="$new_path" 34247 fi 34248 34249 # Call helper function which possibly converts this using DOS-style short mode. 34250 # If so, the updated path is stored in $new_path. 34251 new_path="$input_to_shortpath" 34252 34253 input_path="$input_to_shortpath" 34254 # Check if we need to convert this using DOS-style short mode. If the path 34255 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34256 # take no chances and rewrite it. 34257 # Note: m4 eats our [], so we need to use [ and ] instead. 34258 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34259 if test "x$has_forbidden_chars" != x; then 34260 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34261 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34262 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34263 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34264 # Going to short mode and back again did indeed matter. Since short mode is 34265 # case insensitive, let's make it lowercase to improve readability. 34266 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34267 # Now convert it back to Unix-style (cygpath) 34268 input_path=`$CYGPATH -u "$shortmode_path"` 34269 new_path="$input_path" 34270 fi 34271 fi 34272 34273 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34274 if test "x$test_cygdrive_prefix" = x; then 34275 # As a simple fix, exclude /usr/bin since it's not a real path. 34276 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34277 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34278 # a path prefixed by /cygdrive for fixpath to work. 34279 new_path="$CYGWIN_ROOT_PATH$input_path" 34280 fi 34281 fi 34282 34283 # remove trailing .exe if any 34284 new_path="${new_path/%.exe/}" 34285 34286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34287 34288 # First separate the path from the arguments. This will split at the first 34289 # space. 34290 complete="$CC" 34291 path="${complete%% *}" 34292 tmp="$complete EOL" 34293 arguments="${tmp#* }" 34294 34295 # Input might be given as Windows format, start by converting to 34296 # unix format. 34297 new_path="$path" 34298 34299 windows_path="$new_path" 34300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34301 unix_path=`$CYGPATH -u "$windows_path"` 34302 new_path="$unix_path" 34303 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34304 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34305 new_path="$unix_path" 34306 fi 34307 34308 34309 # Now try to locate executable using which 34310 new_path=`$WHICH "$new_path" 2> /dev/null` 34311 34312 if test "x$new_path" = x; then 34313 # Oops. Which didn't find the executable. 34314 # The splitting of arguments from the executable at a space might have been incorrect, 34315 # since paths with space are more likely in Windows. Give it another try with the whole 34316 # argument. 34317 path="$complete" 34318 arguments="EOL" 34319 new_path="$path" 34320 34321 windows_path="$new_path" 34322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34323 unix_path=`$CYGPATH -u "$windows_path"` 34324 new_path="$unix_path" 34325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34326 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34327 new_path="$unix_path" 34328 fi 34329 34330 34331 new_path=`$WHICH "$new_path" 2> /dev/null` 34332 # bat and cmd files are not always considered executable in MSYS causing which 34333 # to not find them 34334 if test "x$new_path" = x \ 34335 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34336 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34337 new_path="$path" 34338 34339 windows_path="$new_path" 34340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34341 unix_path=`$CYGPATH -u "$windows_path"` 34342 new_path="$unix_path" 34343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34344 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34345 new_path="$unix_path" 34346 fi 34347 34348 fi 34349 34350 if test "x$new_path" = x; then 34351 # It's still not found. Now this is an unrecoverable error. 34352 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34353 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34354 has_space=`$ECHO "$complete" | $GREP " "` 34355 if test "x$has_space" != x; then 34356 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34357 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34358 fi 34359 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34360 fi 34361 fi 34362 34363 # Now new_path has a complete unix path to the binary 34364 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34365 # Keep paths in /bin as-is, but remove trailing .exe if any 34366 new_path="${new_path/%.exe/}" 34367 # Do not save /bin paths to all_fixpath_prefixes! 34368 else 34369 # Not in mixed or Windows style, start by that. 34370 new_path=`cmd //c echo $new_path` 34371 34372 input_path="$new_path" 34373 # Check if we need to convert this using DOS-style short mode. If the path 34374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34375 # take no chances and rewrite it. 34376 # Note: m4 eats our [], so we need to use [ and ] instead. 34377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34378 if test "x$has_forbidden_chars" != x; then 34379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34380 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34381 fi 34382 34383 # Output is in $new_path 34384 34385 windows_path="$new_path" 34386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34387 unix_path=`$CYGPATH -u "$windows_path"` 34388 new_path="$unix_path" 34389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34390 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34391 new_path="$unix_path" 34392 fi 34393 34394 # remove trailing .exe if any 34395 new_path="${new_path/%.exe/}" 34396 34397 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34398 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34399 fi 34400 34401 else 34402 # We're on a unix platform. Hooray! :) 34403 # First separate the path from the arguments. This will split at the first 34404 # space. 34405 complete="$CC" 34406 path="${complete%% *}" 34407 tmp="$complete EOL" 34408 arguments="${tmp#* }" 34409 34410 # Cannot rely on the command "which" here since it doesn't always work. 34411 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34412 if test -z "$is_absolute_path"; then 34413 # Path to executable is not absolute. Find it. 34414 IFS_save="$IFS" 34415 IFS=: 34416 for p in $PATH; do 34417 if test -f "$p/$path" && test -x "$p/$path"; then 34418 new_path="$p/$path" 34419 break 34420 fi 34421 done 34422 IFS="$IFS_save" 34423 else 34424 # This is an absolute path, we can use it without further modifications. 34425 new_path="$path" 34426 fi 34427 34428 if test "x$new_path" = x; then 34429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34430 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34431 has_space=`$ECHO "$complete" | $GREP " "` 34432 if test "x$has_space" != x; then 34433 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34434 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34435 fi 34436 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34437 fi 34438 fi 34439 34440 # Now join together the path and the arguments once again 34441 if test "x$arguments" != xEOL; then 34442 new_complete="$new_path ${arguments% *}" 34443 else 34444 new_complete="$new_path" 34445 fi 34446 34447 if test "x$complete" != "x$new_complete"; then 34448 CC="$new_complete" 34449 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 34450 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 34451 fi 34452 fi 34453 34454 TEST_COMPILER="$CC" 34455 34456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 34457 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 34458 SYMLINK_ORIGINAL="$TEST_COMPILER" 34459 34460 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34461 # Follow a chain of symbolic links. Use readlink 34462 # where it exists, else fall back to horribly 34463 # complicated shell code. 34464 if test "x$READLINK_TESTED" != yes; then 34465 # On MacOSX there is a readlink tool with a different 34466 # purpose than the GNU readlink tool. Check the found readlink. 34467 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34468 if test "x$ISGNU" = x; then 34469 # A readlink that we do not know how to use. 34470 # Are there other non-GNU readlinks out there? 34471 READLINK_TESTED=yes 34472 READLINK= 34473 fi 34474 fi 34475 34476 if test "x$READLINK" != x; then 34477 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34478 else 34479 # Save the current directory for restoring afterwards 34480 STARTDIR=$PWD 34481 COUNTER=0 34482 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34483 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34484 cd $sym_link_dir 34485 # Use -P flag to resolve symlinks in directories. 34486 cd `$THEPWDCMD -P` 34487 sym_link_dir=`$THEPWDCMD -P` 34488 # Resolve file symlinks 34489 while test $COUNTER -lt 20; do 34490 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34491 if test "x$ISLINK" == x; then 34492 # This is not a symbolic link! We are done! 34493 break 34494 fi 34495 # Again resolve directory symlinks since the target of the just found 34496 # link could be in a different directory 34497 cd `$DIRNAME $ISLINK` 34498 sym_link_dir=`$THEPWDCMD -P` 34499 sym_link_file=`$BASENAME $ISLINK` 34500 let COUNTER=COUNTER+1 34501 done 34502 cd $STARTDIR 34503 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34504 fi 34505 fi 34506 34507 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34509 $as_echo "no symlink" >&6; } 34510 else 34511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34512 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34513 34514 # We can't handle ccache by gcc wrappers, since we need to know if we're 34515 # using ccache. Instead ccache usage must be controlled by a configure option. 34516 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34517 if test "x$COMPILER_BASENAME" = "xccache"; then 34518 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34519 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34520 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34521 fi 34522 fi 34523 34524 34525 COMPILER=$CC 34526 COMPILER_NAME=$COMPILER_NAME 34527 34528 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34529 # cc -V output typically looks like 34530 # cc: Sun C 5.12 Linux_i386 2011/11/16 34531 # or 34532 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 34533 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34534 # Check that this is likely to be the Solaris Studio cc. 34535 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 34536 if test $? -ne 0; then 34537 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34538 { $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 34539 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34540 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34541 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34542 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34543 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34544 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34545 fi 34546 # Remove usage instructions (if present), and 34547 # collapse compiler output into a single line 34548 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34549 $SED -e 's/ *[Uu]sage:.*//'` 34550 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34551 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34552 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34553 # xlc -qversion output typically looks like 34554 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34555 # Version: 11.01.0000.0015 34556 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34557 # Check that this is likely to be the IBM XL C compiler. 34558 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34559 if test $? -ne 0; then 34560 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34561 { $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 34562 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34563 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34564 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34565 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34566 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34567 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34568 fi 34569 # Collapse compiler output into a single line 34570 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34571 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34572 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34573 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34574 # There is no specific version flag, but all output starts with a version string. 34575 # First line typically looks something like: 34576 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34577 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34578 # Check that this is likely to be Microsoft CL.EXE. 34579 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34580 if test $? -ne 0; then 34581 { $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 34582 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34583 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34584 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34585 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34586 fi 34587 # Collapse compiler output into a single line 34588 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34589 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34590 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34591 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34592 # gcc --version output typically looks like 34593 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34594 # Copyright (C) 2013 Free Software Foundation, Inc. 34595 # This is free software; see the source for copying conditions. There is NO 34596 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34597 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34598 # Check that this is likely to be GCC. 34599 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34600 if test $? -ne 0; then 34601 { $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 34602 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34603 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34604 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34605 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34606 fi 34607 # Remove Copyright and legalese from version string, and 34608 # collapse into a single line 34609 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34610 $SED -e 's/ *Copyright .*//'` 34611 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34612 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34613 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34614 # clang --version output typically looks like 34615 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34616 # clang version 3.3 (tags/RELEASE_33/final) 34617 # or 34618 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34619 # Target: x86_64-pc-linux-gnu 34620 # Thread model: posix 34621 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34622 # Check that this is likely to be clang 34623 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34624 if test $? -ne 0; then 34625 { $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 34626 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34627 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34628 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34629 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34630 fi 34631 # Collapse compiler output into a single line 34632 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34633 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34634 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 34635 else 34636 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34637 fi 34638 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34639 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34640 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34641 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 34642 34643 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34644 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 34645 34646 34647 # Now that we have resolved CC ourself, let autoconf have its go at it 34648 ac_ext=c 34649 ac_cpp='$CPP $CPPFLAGS' 34650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34652 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34653 if test -n "$ac_tool_prefix"; then 34654 for ac_prog in $CC 34655 do 34656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 34658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34659 $as_echo_n "checking for $ac_word... " >&6; } 34660 if ${ac_cv_prog_CC+:} false; then : 34661 $as_echo_n "(cached) " >&6 34662 else 34663 if test -n "$CC"; then 34664 ac_cv_prog_CC="$CC" # Let the user override the test. 34665 else 34666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34667 for as_dir in $PATH 34668 do 34669 IFS=$as_save_IFS 34670 test -z "$as_dir" && as_dir=. 34671 for ac_exec_ext in '' $ac_executable_extensions; do 34672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 34674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34675 break 2 34676 fi 34677 done 34678 done 34679 IFS=$as_save_IFS 34680 34681 fi 34682 fi 34683 CC=$ac_cv_prog_CC 34684 if test -n "$CC"; then 34685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 34686 $as_echo "$CC" >&6; } 34687 else 34688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34689 $as_echo "no" >&6; } 34690 fi 34691 34692 34693 test -n "$CC" && break 34694 done 34695 fi 34696 if test -z "$CC"; then 34697 ac_ct_CC=$CC 34698 for ac_prog in $CC 34699 do 34700 # Extract the first word of "$ac_prog", so it can be a program name with args. 34701 set dummy $ac_prog; ac_word=$2 34702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34703 $as_echo_n "checking for $ac_word... " >&6; } 34704 if ${ac_cv_prog_ac_ct_CC+:} false; then : 34705 $as_echo_n "(cached) " >&6 34706 else 34707 if test -n "$ac_ct_CC"; then 34708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 34709 else 34710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34711 for as_dir in $PATH 34712 do 34713 IFS=$as_save_IFS 34714 test -z "$as_dir" && as_dir=. 34715 for ac_exec_ext in '' $ac_executable_extensions; do 34716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34717 ac_cv_prog_ac_ct_CC="$ac_prog" 34718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34719 break 2 34720 fi 34721 done 34722 done 34723 IFS=$as_save_IFS 34724 34725 fi 34726 fi 34727 ac_ct_CC=$ac_cv_prog_ac_ct_CC 34728 if test -n "$ac_ct_CC"; then 34729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 34730 $as_echo "$ac_ct_CC" >&6; } 34731 else 34732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34733 $as_echo "no" >&6; } 34734 fi 34735 34736 34737 test -n "$ac_ct_CC" && break 34738 done 34739 34740 if test "x$ac_ct_CC" = x; then 34741 CC="" 34742 else 34743 case $cross_compiling:$ac_tool_warned in 34744 yes:) 34745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34747 ac_tool_warned=yes ;; 34748 esac 34749 CC=$ac_ct_CC 34750 fi 34751 fi 34752 34753 34754 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34756 as_fn_error $? "no acceptable C compiler found in \$PATH 34757 See \`config.log' for more details" "$LINENO" 5; } 34758 34759 # Provide some information about the compiler. 34760 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 34761 set X $ac_compile 34762 ac_compiler=$2 34763 for ac_option in --version -v -V -qversion; do 34764 { { ac_try="$ac_compiler $ac_option >&5" 34765 case "(($ac_try" in 34766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34767 *) ac_try_echo=$ac_try;; 34768 esac 34769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34770 $as_echo "$ac_try_echo"; } >&5 34771 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 34772 ac_status=$? 34773 if test -s conftest.err; then 34774 sed '10a\ 34775 ... rest of stderr output deleted ... 34776 10q' conftest.err >conftest.er1 34777 cat conftest.er1 >&5 34778 fi 34779 rm -f conftest.er1 conftest.err 34780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34781 test $ac_status = 0; } 34782 done 34783 34784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34785 /* end confdefs.h. */ 34786 34787 int 34788 main () 34789 { 34790 34791 ; 34792 return 0; 34793 } 34794 _ACEOF 34795 ac_clean_files_save=$ac_clean_files 34796 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 34797 # Try to create an executable without -o first, disregard a.out. 34798 # It will help us diagnose broken compilers, and finding out an intuition 34799 # of exeext. 34800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 34801 $as_echo_n "checking whether the C compiler works... " >&6; } 34802 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 34803 34804 # The possible output files: 34805 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 34806 34807 ac_rmfiles= 34808 for ac_file in $ac_files 34809 do 34810 case $ac_file in 34811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34812 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 34813 esac 34814 done 34815 rm -f $ac_rmfiles 34816 34817 if { { ac_try="$ac_link_default" 34818 case "(($ac_try" in 34819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34820 *) ac_try_echo=$ac_try;; 34821 esac 34822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34823 $as_echo "$ac_try_echo"; } >&5 34824 (eval "$ac_link_default") 2>&5 34825 ac_status=$? 34826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34827 test $ac_status = 0; }; then : 34828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 34829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 34830 # in a Makefile. We should not override ac_cv_exeext if it was cached, 34831 # so that the user can short-circuit this test for compilers unknown to 34832 # Autoconf. 34833 for ac_file in $ac_files '' 34834 do 34835 test -f "$ac_file" || continue 34836 case $ac_file in 34837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 34838 ;; 34839 [ab].out ) 34840 # We found the default executable, but exeext='' is most 34841 # certainly right. 34842 break;; 34843 *.* ) 34844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 34845 then :; else 34846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34847 fi 34848 # We set ac_cv_exeext here because the later test for it is not 34849 # safe: cross compilers may not add the suffix if given an `-o' 34850 # argument, so we may need to know it at that point already. 34851 # Even if this section looks crufty: it has the advantage of 34852 # actually working. 34853 break;; 34854 * ) 34855 break;; 34856 esac 34857 done 34858 test "$ac_cv_exeext" = no && ac_cv_exeext= 34859 34860 else 34861 ac_file='' 34862 fi 34863 if test -z "$ac_file"; then : 34864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34865 $as_echo "no" >&6; } 34866 $as_echo "$as_me: failed program was:" >&5 34867 sed 's/^/| /' conftest.$ac_ext >&5 34868 34869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34871 as_fn_error 77 "C compiler cannot create executables 34872 See \`config.log' for more details" "$LINENO" 5; } 34873 else 34874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34875 $as_echo "yes" >&6; } 34876 fi 34877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 34878 $as_echo_n "checking for C compiler default output file name... " >&6; } 34879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 34880 $as_echo "$ac_file" >&6; } 34881 ac_exeext=$ac_cv_exeext 34882 34883 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 34884 ac_clean_files=$ac_clean_files_save 34885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 34886 $as_echo_n "checking for suffix of executables... " >&6; } 34887 if { { ac_try="$ac_link" 34888 case "(($ac_try" in 34889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34890 *) ac_try_echo=$ac_try;; 34891 esac 34892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34893 $as_echo "$ac_try_echo"; } >&5 34894 (eval "$ac_link") 2>&5 34895 ac_status=$? 34896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34897 test $ac_status = 0; }; then : 34898 # If both `conftest.exe' and `conftest' are `present' (well, observable) 34899 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34900 # work properly (i.e., refer to `conftest.exe'), while it won't with 34901 # `rm'. 34902 for ac_file in conftest.exe conftest conftest.*; do 34903 test -f "$ac_file" || continue 34904 case $ac_file in 34905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34907 break;; 34908 * ) break;; 34909 esac 34910 done 34911 else 34912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34914 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 34915 See \`config.log' for more details" "$LINENO" 5; } 34916 fi 34917 rm -f conftest conftest$ac_cv_exeext 34918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34919 $as_echo "$ac_cv_exeext" >&6; } 34920 34921 rm -f conftest.$ac_ext 34922 EXEEXT=$ac_cv_exeext 34923 ac_exeext=$EXEEXT 34924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34925 /* end confdefs.h. */ 34926 #include <stdio.h> 34927 int 34928 main () 34929 { 34930 FILE *f = fopen ("conftest.out", "w"); 34931 return ferror (f) || fclose (f) != 0; 34932 34933 ; 34934 return 0; 34935 } 34936 _ACEOF 34937 ac_clean_files="$ac_clean_files conftest.out" 34938 # Check that the compiler produces executables we can run. If not, either 34939 # the compiler is broken, or we cross compile. 34940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34941 $as_echo_n "checking whether we are cross compiling... " >&6; } 34942 if test "$cross_compiling" != yes; then 34943 { { ac_try="$ac_link" 34944 case "(($ac_try" in 34945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34946 *) ac_try_echo=$ac_try;; 34947 esac 34948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34949 $as_echo "$ac_try_echo"; } >&5 34950 (eval "$ac_link") 2>&5 34951 ac_status=$? 34952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34953 test $ac_status = 0; } 34954 if { ac_try='./conftest$ac_cv_exeext' 34955 { { case "(($ac_try" in 34956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34957 *) ac_try_echo=$ac_try;; 34958 esac 34959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34960 $as_echo "$ac_try_echo"; } >&5 34961 (eval "$ac_try") 2>&5 34962 ac_status=$? 34963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34964 test $ac_status = 0; }; }; then 34965 cross_compiling=no 34966 else 34967 if test "$cross_compiling" = maybe; then 34968 cross_compiling=yes 34969 else 34970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34972 as_fn_error $? "cannot run C compiled programs. 34973 If you meant to cross compile, use \`--host'. 34974 See \`config.log' for more details" "$LINENO" 5; } 34975 fi 34976 fi 34977 fi 34978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34979 $as_echo "$cross_compiling" >&6; } 34980 34981 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34982 ac_clean_files=$ac_clean_files_save 34983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34984 $as_echo_n "checking for suffix of object files... " >&6; } 34985 if ${ac_cv_objext+:} false; then : 34986 $as_echo_n "(cached) " >&6 34987 else 34988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34989 /* end confdefs.h. */ 34990 34991 int 34992 main () 34993 { 34994 34995 ; 34996 return 0; 34997 } 34998 _ACEOF 34999 rm -f conftest.o conftest.obj 35000 if { { ac_try="$ac_compile" 35001 case "(($ac_try" in 35002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35003 *) ac_try_echo=$ac_try;; 35004 esac 35005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35006 $as_echo "$ac_try_echo"; } >&5 35007 (eval "$ac_compile") 2>&5 35008 ac_status=$? 35009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35010 test $ac_status = 0; }; then : 35011 for ac_file in conftest.o conftest.obj conftest.*; do 35012 test -f "$ac_file" || continue; 35013 case $ac_file in 35014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 35015 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 35016 break;; 35017 esac 35018 done 35019 else 35020 $as_echo "$as_me: failed program was:" >&5 35021 sed 's/^/| /' conftest.$ac_ext >&5 35022 35023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35025 as_fn_error $? "cannot compute suffix of object files: cannot compile 35026 See \`config.log' for more details" "$LINENO" 5; } 35027 fi 35028 rm -f conftest.$ac_cv_objext conftest.$ac_ext 35029 fi 35030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 35031 $as_echo "$ac_cv_objext" >&6; } 35032 OBJEXT=$ac_cv_objext 35033 ac_objext=$OBJEXT 35034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 35035 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 35036 if ${ac_cv_c_compiler_gnu+:} false; then : 35037 $as_echo_n "(cached) " >&6 35038 else 35039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35040 /* end confdefs.h. */ 35041 35042 int 35043 main () 35044 { 35045 #ifndef __GNUC__ 35046 choke me 35047 #endif 35048 35049 ; 35050 return 0; 35051 } 35052 _ACEOF 35053 if ac_fn_c_try_compile "$LINENO"; then : 35054 ac_compiler_gnu=yes 35055 else 35056 ac_compiler_gnu=no 35057 fi 35058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35059 ac_cv_c_compiler_gnu=$ac_compiler_gnu 35060 35061 fi 35062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 35063 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 35064 if test $ac_compiler_gnu = yes; then 35065 GCC=yes 35066 else 35067 GCC= 35068 fi 35069 ac_test_CFLAGS=${CFLAGS+set} 35070 ac_save_CFLAGS=$CFLAGS 35071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 35072 $as_echo_n "checking whether $CC accepts -g... " >&6; } 35073 if ${ac_cv_prog_cc_g+:} false; then : 35074 $as_echo_n "(cached) " >&6 35075 else 35076 ac_save_c_werror_flag=$ac_c_werror_flag 35077 ac_c_werror_flag=yes 35078 ac_cv_prog_cc_g=no 35079 CFLAGS="-g" 35080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35081 /* end confdefs.h. */ 35082 35083 int 35084 main () 35085 { 35086 35087 ; 35088 return 0; 35089 } 35090 _ACEOF 35091 if ac_fn_c_try_compile "$LINENO"; then : 35092 ac_cv_prog_cc_g=yes 35093 else 35094 CFLAGS="" 35095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35096 /* end confdefs.h. */ 35097 35098 int 35099 main () 35100 { 35101 35102 ; 35103 return 0; 35104 } 35105 _ACEOF 35106 if ac_fn_c_try_compile "$LINENO"; then : 35107 35108 else 35109 ac_c_werror_flag=$ac_save_c_werror_flag 35110 CFLAGS="-g" 35111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35112 /* end confdefs.h. */ 35113 35114 int 35115 main () 35116 { 35117 35118 ; 35119 return 0; 35120 } 35121 _ACEOF 35122 if ac_fn_c_try_compile "$LINENO"; then : 35123 ac_cv_prog_cc_g=yes 35124 fi 35125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35126 fi 35127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35128 fi 35129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35130 ac_c_werror_flag=$ac_save_c_werror_flag 35131 fi 35132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 35133 $as_echo "$ac_cv_prog_cc_g" >&6; } 35134 if test "$ac_test_CFLAGS" = set; then 35135 CFLAGS=$ac_save_CFLAGS 35136 elif test $ac_cv_prog_cc_g = yes; then 35137 if test "$GCC" = yes; then 35138 CFLAGS="-g -O2" 35139 else 35140 CFLAGS="-g" 35141 fi 35142 else 35143 if test "$GCC" = yes; then 35144 CFLAGS="-O2" 35145 else 35146 CFLAGS= 35147 fi 35148 fi 35149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 35150 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 35151 if ${ac_cv_prog_cc_c89+:} false; then : 35152 $as_echo_n "(cached) " >&6 35153 else 35154 ac_cv_prog_cc_c89=no 35155 ac_save_CC=$CC 35156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35157 /* end confdefs.h. */ 35158 #include <stdarg.h> 35159 #include <stdio.h> 35160 struct stat; 35161 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 35162 struct buf { int x; }; 35163 FILE * (*rcsopen) (struct buf *, struct stat *, int); 35164 static char *e (p, i) 35165 char **p; 35166 int i; 35167 { 35168 return p[i]; 35169 } 35170 static char *f (char * (*g) (char **, int), char **p, ...) 35171 { 35172 char *s; 35173 va_list v; 35174 va_start (v,p); 35175 s = g (p, va_arg (v,int)); 35176 va_end (v); 35177 return s; 35178 } 35179 35180 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 35181 function prototypes and stuff, but not '\xHH' hex character constants. 35182 These don't provoke an error unfortunately, instead are silently treated 35183 as 'x'. The following induces an error, until -std is added to get 35184 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 35185 array size at least. It's necessary to write '\x00'==0 to get something 35186 that's true only with -std. */ 35187 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 35188 35189 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 35190 inside strings and character constants. */ 35191 #define FOO(x) 'x' 35192 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 35193 35194 int test (int i, double x); 35195 struct s1 {int (*f) (int a);}; 35196 struct s2 {int (*f) (double a);}; 35197 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 35198 int argc; 35199 char **argv; 35200 int 35201 main () 35202 { 35203 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 35204 ; 35205 return 0; 35206 } 35207 _ACEOF 35208 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 35209 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35210 do 35211 CC="$ac_save_CC $ac_arg" 35212 if ac_fn_c_try_compile "$LINENO"; then : 35213 ac_cv_prog_cc_c89=$ac_arg 35214 fi 35215 rm -f core conftest.err conftest.$ac_objext 35216 test "x$ac_cv_prog_cc_c89" != "xno" && break 35217 done 35218 rm -f conftest.$ac_ext 35219 CC=$ac_save_CC 35220 35221 fi 35222 # AC_CACHE_VAL 35223 case "x$ac_cv_prog_cc_c89" in 35224 x) 35225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35226 $as_echo "none needed" >&6; } ;; 35227 xno) 35228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35229 $as_echo "unsupported" >&6; } ;; 35230 *) 35231 CC="$CC $ac_cv_prog_cc_c89" 35232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 35233 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35234 esac 35235 if test "x$ac_cv_prog_cc_c89" != xno; then : 35236 35237 fi 35238 35239 ac_ext=cpp 35240 ac_cpp='$CXXCPP $CPPFLAGS' 35241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35244 35245 35246 35247 COMPILER_NAME=C++ 35248 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 35249 35250 if test "x$CXX" != x; then 35251 # User has supplied compiler name already, always let that override. 35252 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 35253 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 35254 if test "x`basename $CXX`" = "x$CXX"; then 35255 # A command without a complete path is provided, search $PATH. 35256 35257 for ac_prog in $CXX 35258 do 35259 # Extract the first word of "$ac_prog", so it can be a program name with args. 35260 set dummy $ac_prog; ac_word=$2 35261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35262 $as_echo_n "checking for $ac_word... " >&6; } 35263 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35264 $as_echo_n "(cached) " >&6 35265 else 35266 case $POTENTIAL_CXX in 35267 [\\/]* | ?:[\\/]*) 35268 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35269 ;; 35270 *) 35271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35272 for as_dir in $PATH 35273 do 35274 IFS=$as_save_IFS 35275 test -z "$as_dir" && as_dir=. 35276 for ac_exec_ext in '' $ac_executable_extensions; do 35277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35278 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35280 break 2 35281 fi 35282 done 35283 done 35284 IFS=$as_save_IFS 35285 35286 ;; 35287 esac 35288 fi 35289 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35290 if test -n "$POTENTIAL_CXX"; then 35291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35292 $as_echo "$POTENTIAL_CXX" >&6; } 35293 else 35294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35295 $as_echo "no" >&6; } 35296 fi 35297 35298 35299 test -n "$POTENTIAL_CXX" && break 35300 done 35301 35302 if test "x$POTENTIAL_CXX" != x; then 35303 CXX=$POTENTIAL_CXX 35304 else 35305 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 35306 fi 35307 else 35308 # Otherwise it might already be a complete path 35309 if test ! -x "$CXX"; then 35310 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 35311 fi 35312 fi 35313 else 35314 # No user supplied value. Locate compiler ourselves. 35315 35316 # If we are cross compiling, assume cross compilation tools follows the 35317 # cross compilation standard where they are prefixed with the autoconf 35318 # standard name for the target. For example the binary 35319 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 35320 # If we are not cross compiling, then the default compiler name will be 35321 # used. 35322 35323 CXX= 35324 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 35325 # before checking the rest of the PATH. 35326 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 35327 # step, this should not be necessary. 35328 if test -n "$TOOLCHAIN_PATH"; then 35329 PATH_save="$PATH" 35330 PATH="$TOOLCHAIN_PATH" 35331 if test -n "$ac_tool_prefix"; then 35332 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35333 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35335 $as_echo_n "checking for $ac_word... " >&6; } 35336 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 35337 $as_echo_n "(cached) " >&6 35338 else 35339 case $TOOLCHAIN_PATH_CXX in 35340 [\\/]* | ?:[\\/]*) 35341 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35342 ;; 35343 *) 35344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35345 for as_dir in $PATH 35346 do 35347 IFS=$as_save_IFS 35348 test -z "$as_dir" && as_dir=. 35349 for ac_exec_ext in '' $ac_executable_extensions; do 35350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35351 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35353 break 2 35354 fi 35355 done 35356 done 35357 IFS=$as_save_IFS 35358 35359 ;; 35360 esac 35361 fi 35362 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 35363 if test -n "$TOOLCHAIN_PATH_CXX"; then 35364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 35365 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 35366 else 35367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35368 $as_echo "no" >&6; } 35369 fi 35370 35371 35372 fi 35373 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CXX"; then 35374 ac_pt_TOOLCHAIN_PATH_CXX=$TOOLCHAIN_PATH_CXX 35375 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35376 set dummy $SEARCH_LIST; ac_word=$2 35377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35378 $as_echo_n "checking for $ac_word... " >&6; } 35379 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX+:} false; then : 35380 $as_echo_n "(cached) " >&6 35381 else 35382 case $ac_pt_TOOLCHAIN_PATH_CXX in 35383 [\\/]* | ?:[\\/]*) 35384 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$ac_pt_TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35385 ;; 35386 *) 35387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35388 for as_dir in $PATH 35389 do 35390 IFS=$as_save_IFS 35391 test -z "$as_dir" && as_dir=. 35392 for ac_exec_ext in '' $ac_executable_extensions; do 35393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35394 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35396 break 2 35397 fi 35398 done 35399 done 35400 IFS=$as_save_IFS 35401 35402 ;; 35403 esac 35404 fi 35405 ac_pt_TOOLCHAIN_PATH_CXX=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX 35406 if test -n "$ac_pt_TOOLCHAIN_PATH_CXX"; then 35407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CXX" >&5 35408 $as_echo "$ac_pt_TOOLCHAIN_PATH_CXX" >&6; } 35409 else 35410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35411 $as_echo "no" >&6; } 35412 fi 35413 35414 if test "x$ac_pt_TOOLCHAIN_PATH_CXX" = x; then 35415 TOOLCHAIN_PATH_CXX="" 35416 else 35417 case $cross_compiling:$ac_tool_warned in 35418 yes:) 35419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35421 ac_tool_warned=yes ;; 35422 esac 35423 TOOLCHAIN_PATH_CXX=$ac_pt_TOOLCHAIN_PATH_CXX 35424 fi 35425 else 35426 TOOLCHAIN_PATH_CXX="$ac_cv_path_TOOLCHAIN_PATH_CXX" 35427 fi 35428 35429 CXX=$TOOLCHAIN_PATH_CXX 35430 PATH="$PATH_save" 35431 fi 35432 35433 # AC_PATH_TOOL can't be run multiple times with the same variable, 35434 # so create a new name for this run. 35435 if test "x$CXX" = x; then 35436 if test -n "$ac_tool_prefix"; then 35437 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35438 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35440 $as_echo_n "checking for $ac_word... " >&6; } 35441 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35442 $as_echo_n "(cached) " >&6 35443 else 35444 case $POTENTIAL_CXX in 35445 [\\/]* | ?:[\\/]*) 35446 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35447 ;; 35448 *) 35449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35450 for as_dir in $PATH 35451 do 35452 IFS=$as_save_IFS 35453 test -z "$as_dir" && as_dir=. 35454 for ac_exec_ext in '' $ac_executable_extensions; do 35455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35456 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35458 break 2 35459 fi 35460 done 35461 done 35462 IFS=$as_save_IFS 35463 35464 ;; 35465 esac 35466 fi 35467 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35468 if test -n "$POTENTIAL_CXX"; then 35469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35470 $as_echo "$POTENTIAL_CXX" >&6; } 35471 else 35472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35473 $as_echo "no" >&6; } 35474 fi 35475 35476 35477 fi 35478 if test -z "$ac_cv_path_POTENTIAL_CXX"; then 35479 ac_pt_POTENTIAL_CXX=$POTENTIAL_CXX 35480 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35481 set dummy $SEARCH_LIST; ac_word=$2 35482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35483 $as_echo_n "checking for $ac_word... " >&6; } 35484 if ${ac_cv_path_ac_pt_POTENTIAL_CXX+:} false; then : 35485 $as_echo_n "(cached) " >&6 35486 else 35487 case $ac_pt_POTENTIAL_CXX in 35488 [\\/]* | ?:[\\/]*) 35489 ac_cv_path_ac_pt_POTENTIAL_CXX="$ac_pt_POTENTIAL_CXX" # Let the user override the test with a path. 35490 ;; 35491 *) 35492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35493 for as_dir in $PATH 35494 do 35495 IFS=$as_save_IFS 35496 test -z "$as_dir" && as_dir=. 35497 for ac_exec_ext in '' $ac_executable_extensions; do 35498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35499 ac_cv_path_ac_pt_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35501 break 2 35502 fi 35503 done 35504 done 35505 IFS=$as_save_IFS 35506 35507 ;; 35508 esac 35509 fi 35510 ac_pt_POTENTIAL_CXX=$ac_cv_path_ac_pt_POTENTIAL_CXX 35511 if test -n "$ac_pt_POTENTIAL_CXX"; then 35512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CXX" >&5 35513 $as_echo "$ac_pt_POTENTIAL_CXX" >&6; } 35514 else 35515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35516 $as_echo "no" >&6; } 35517 fi 35518 35519 if test "x$ac_pt_POTENTIAL_CXX" = x; then 35520 POTENTIAL_CXX="" 35521 else 35522 case $cross_compiling:$ac_tool_warned in 35523 yes:) 35524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35526 ac_tool_warned=yes ;; 35527 esac 35528 POTENTIAL_CXX=$ac_pt_POTENTIAL_CXX 35529 fi 35530 else 35531 POTENTIAL_CXX="$ac_cv_path_POTENTIAL_CXX" 35532 fi 35533 35534 CXX=$POTENTIAL_CXX 35535 fi 35536 35537 if test "x$CXX" = x; then 35538 35539 # Print a helpful message on how to acquire the necessary build dependency. 35540 # devkit is the help tag: freetype, cups, alsa etc 35541 MISSING_DEPENDENCY=devkit 35542 35543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35544 cygwin_help $MISSING_DEPENDENCY 35545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35546 msys_help $MISSING_DEPENDENCY 35547 else 35548 PKGHANDLER_COMMAND= 35549 35550 case $PKGHANDLER in 35551 apt-get) 35552 apt_help $MISSING_DEPENDENCY ;; 35553 yum) 35554 yum_help $MISSING_DEPENDENCY ;; 35555 brew) 35556 brew_help $MISSING_DEPENDENCY ;; 35557 port) 35558 port_help $MISSING_DEPENDENCY ;; 35559 pkgutil) 35560 pkgutil_help $MISSING_DEPENDENCY ;; 35561 pkgadd) 35562 pkgadd_help $MISSING_DEPENDENCY ;; 35563 esac 35564 35565 if test "x$PKGHANDLER_COMMAND" != x; then 35566 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 35567 fi 35568 fi 35569 35570 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 35571 fi 35572 fi 35573 35574 # Now we have a compiler binary in CXX. Make sure it's okay. 35575 35576 # Only process if variable expands to non-empty 35577 35578 if test "x$CXX" != x; then 35579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35580 35581 # First separate the path from the arguments. This will split at the first 35582 # space. 35583 complete="$CXX" 35584 path="${complete%% *}" 35585 tmp="$complete EOL" 35586 arguments="${tmp#* }" 35587 35588 # Input might be given as Windows format, start by converting to 35589 # unix format. 35590 new_path=`$CYGPATH -u "$path"` 35591 35592 # Now try to locate executable using which 35593 new_path=`$WHICH "$new_path" 2> /dev/null` 35594 # bat and cmd files are not always considered executable in cygwin causing which 35595 # to not find them 35596 if test "x$new_path" = x \ 35597 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35598 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35599 new_path=`$CYGPATH -u "$path"` 35600 fi 35601 if test "x$new_path" = x; then 35602 # Oops. Which didn't find the executable. 35603 # The splitting of arguments from the executable at a space might have been incorrect, 35604 # since paths with space are more likely in Windows. Give it another try with the whole 35605 # argument. 35606 path="$complete" 35607 arguments="EOL" 35608 new_path=`$CYGPATH -u "$path"` 35609 new_path=`$WHICH "$new_path" 2> /dev/null` 35610 # bat and cmd files are not always considered executable in cygwin causing which 35611 # to not find them 35612 if test "x$new_path" = x \ 35613 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35614 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35615 new_path=`$CYGPATH -u "$path"` 35616 fi 35617 if test "x$new_path" = x; then 35618 # It's still not found. Now this is an unrecoverable error. 35619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35620 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35621 has_space=`$ECHO "$complete" | $GREP " "` 35622 if test "x$has_space" != x; then 35623 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35624 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35625 fi 35626 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35627 fi 35628 fi 35629 35630 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35631 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35632 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35633 # "foo.exe" is OK but "foo" is an error. 35634 # 35635 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35636 # It is also a way to make sure we got the proper file name for the real test later on. 35637 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35638 if test "x$test_shortpath" = x; then 35639 # Short path failed, file does not exist as specified. 35640 # Try adding .exe or .cmd 35641 if test -f "${new_path}.exe"; then 35642 input_to_shortpath="${new_path}.exe" 35643 elif test -f "${new_path}.cmd"; then 35644 input_to_shortpath="${new_path}.cmd" 35645 else 35646 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 35647 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 35648 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35649 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35650 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35651 fi 35652 else 35653 input_to_shortpath="$new_path" 35654 fi 35655 35656 # Call helper function which possibly converts this using DOS-style short mode. 35657 # If so, the updated path is stored in $new_path. 35658 new_path="$input_to_shortpath" 35659 35660 input_path="$input_to_shortpath" 35661 # Check if we need to convert this using DOS-style short mode. If the path 35662 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35663 # take no chances and rewrite it. 35664 # Note: m4 eats our [], so we need to use [ and ] instead. 35665 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35666 if test "x$has_forbidden_chars" != x; then 35667 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35668 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35669 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35670 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35671 # Going to short mode and back again did indeed matter. Since short mode is 35672 # case insensitive, let's make it lowercase to improve readability. 35673 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35674 # Now convert it back to Unix-style (cygpath) 35675 input_path=`$CYGPATH -u "$shortmode_path"` 35676 new_path="$input_path" 35677 fi 35678 fi 35679 35680 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35681 if test "x$test_cygdrive_prefix" = x; then 35682 # As a simple fix, exclude /usr/bin since it's not a real path. 35683 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35684 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35685 # a path prefixed by /cygdrive for fixpath to work. 35686 new_path="$CYGWIN_ROOT_PATH$input_path" 35687 fi 35688 fi 35689 35690 # remove trailing .exe if any 35691 new_path="${new_path/%.exe/}" 35692 35693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35694 35695 # First separate the path from the arguments. This will split at the first 35696 # space. 35697 complete="$CXX" 35698 path="${complete%% *}" 35699 tmp="$complete EOL" 35700 arguments="${tmp#* }" 35701 35702 # Input might be given as Windows format, start by converting to 35703 # unix format. 35704 new_path="$path" 35705 35706 windows_path="$new_path" 35707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35708 unix_path=`$CYGPATH -u "$windows_path"` 35709 new_path="$unix_path" 35710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35711 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35712 new_path="$unix_path" 35713 fi 35714 35715 35716 # Now try to locate executable using which 35717 new_path=`$WHICH "$new_path" 2> /dev/null` 35718 35719 if test "x$new_path" = x; then 35720 # Oops. Which didn't find the executable. 35721 # The splitting of arguments from the executable at a space might have been incorrect, 35722 # since paths with space are more likely in Windows. Give it another try with the whole 35723 # argument. 35724 path="$complete" 35725 arguments="EOL" 35726 new_path="$path" 35727 35728 windows_path="$new_path" 35729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35730 unix_path=`$CYGPATH -u "$windows_path"` 35731 new_path="$unix_path" 35732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35733 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35734 new_path="$unix_path" 35735 fi 35736 35737 35738 new_path=`$WHICH "$new_path" 2> /dev/null` 35739 # bat and cmd files are not always considered executable in MSYS causing which 35740 # to not find them 35741 if test "x$new_path" = x \ 35742 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35743 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35744 new_path="$path" 35745 35746 windows_path="$new_path" 35747 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35748 unix_path=`$CYGPATH -u "$windows_path"` 35749 new_path="$unix_path" 35750 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35751 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35752 new_path="$unix_path" 35753 fi 35754 35755 fi 35756 35757 if test "x$new_path" = x; then 35758 # It's still not found. Now this is an unrecoverable error. 35759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35760 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35761 has_space=`$ECHO "$complete" | $GREP " "` 35762 if test "x$has_space" != x; then 35763 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35764 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35765 fi 35766 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35767 fi 35768 fi 35769 35770 # Now new_path has a complete unix path to the binary 35771 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35772 # Keep paths in /bin as-is, but remove trailing .exe if any 35773 new_path="${new_path/%.exe/}" 35774 # Do not save /bin paths to all_fixpath_prefixes! 35775 else 35776 # Not in mixed or Windows style, start by that. 35777 new_path=`cmd //c echo $new_path` 35778 35779 input_path="$new_path" 35780 # Check if we need to convert this using DOS-style short mode. If the path 35781 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35782 # take no chances and rewrite it. 35783 # Note: m4 eats our [], so we need to use [ and ] instead. 35784 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35785 if test "x$has_forbidden_chars" != x; then 35786 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35787 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35788 fi 35789 35790 # Output is in $new_path 35791 35792 windows_path="$new_path" 35793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35794 unix_path=`$CYGPATH -u "$windows_path"` 35795 new_path="$unix_path" 35796 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35797 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35798 new_path="$unix_path" 35799 fi 35800 35801 # remove trailing .exe if any 35802 new_path="${new_path/%.exe/}" 35803 35804 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35805 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35806 fi 35807 35808 else 35809 # We're on a unix platform. Hooray! :) 35810 # First separate the path from the arguments. This will split at the first 35811 # space. 35812 complete="$CXX" 35813 path="${complete%% *}" 35814 tmp="$complete EOL" 35815 arguments="${tmp#* }" 35816 35817 # Cannot rely on the command "which" here since it doesn't always work. 35818 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35819 if test -z "$is_absolute_path"; then 35820 # Path to executable is not absolute. Find it. 35821 IFS_save="$IFS" 35822 IFS=: 35823 for p in $PATH; do 35824 if test -f "$p/$path" && test -x "$p/$path"; then 35825 new_path="$p/$path" 35826 break 35827 fi 35828 done 35829 IFS="$IFS_save" 35830 else 35831 # This is an absolute path, we can use it without further modifications. 35832 new_path="$path" 35833 fi 35834 35835 if test "x$new_path" = x; then 35836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35837 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35838 has_space=`$ECHO "$complete" | $GREP " "` 35839 if test "x$has_space" != x; then 35840 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35841 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35842 fi 35843 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35844 fi 35845 fi 35846 35847 # Now join together the path and the arguments once again 35848 if test "x$arguments" != xEOL; then 35849 new_complete="$new_path ${arguments% *}" 35850 else 35851 new_complete="$new_path" 35852 fi 35853 35854 if test "x$complete" != "x$new_complete"; then 35855 CXX="$new_complete" 35856 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 35857 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 35858 fi 35859 fi 35860 35861 TEST_COMPILER="$CXX" 35862 35863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 35864 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 35865 SYMLINK_ORIGINAL="$TEST_COMPILER" 35866 35867 if test "x$OPENJDK_BUILD_OS" != xwindows; then 35868 # Follow a chain of symbolic links. Use readlink 35869 # where it exists, else fall back to horribly 35870 # complicated shell code. 35871 if test "x$READLINK_TESTED" != yes; then 35872 # On MacOSX there is a readlink tool with a different 35873 # purpose than the GNU readlink tool. Check the found readlink. 35874 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 35875 if test "x$ISGNU" = x; then 35876 # A readlink that we do not know how to use. 35877 # Are there other non-GNU readlinks out there? 35878 READLINK_TESTED=yes 35879 READLINK= 35880 fi 35881 fi 35882 35883 if test "x$READLINK" != x; then 35884 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 35885 else 35886 # Save the current directory for restoring afterwards 35887 STARTDIR=$PWD 35888 COUNTER=0 35889 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 35890 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 35891 cd $sym_link_dir 35892 # Use -P flag to resolve symlinks in directories. 35893 cd `$THEPWDCMD -P` 35894 sym_link_dir=`$THEPWDCMD -P` 35895 # Resolve file symlinks 35896 while test $COUNTER -lt 20; do 35897 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 35898 if test "x$ISLINK" == x; then 35899 # This is not a symbolic link! We are done! 35900 break 35901 fi 35902 # Again resolve directory symlinks since the target of the just found 35903 # link could be in a different directory 35904 cd `$DIRNAME $ISLINK` 35905 sym_link_dir=`$THEPWDCMD -P` 35906 sym_link_file=`$BASENAME $ISLINK` 35907 let COUNTER=COUNTER+1 35908 done 35909 cd $STARTDIR 35910 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 35911 fi 35912 fi 35913 35914 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 35915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 35916 $as_echo "no symlink" >&6; } 35917 else 35918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 35919 $as_echo "$SYMLINK_ORIGINAL" >&6; } 35920 35921 # We can't handle ccache by gcc wrappers, since we need to know if we're 35922 # using ccache. Instead ccache usage must be controlled by a configure option. 35923 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 35924 if test "x$COMPILER_BASENAME" = "xccache"; then 35925 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 35926 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 35927 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 35928 fi 35929 fi 35930 35931 35932 COMPILER=$CXX 35933 COMPILER_NAME=$COMPILER_NAME 35934 35935 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 35936 # cc -V output typically looks like 35937 # cc: Sun C 5.12 Linux_i386 2011/11/16 35938 # or 35939 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 35940 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 35941 # Check that this is likely to be the Solaris Studio cc. 35942 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 35943 if test $? -ne 0; then 35944 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35945 { $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 35946 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35947 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35948 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35949 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35950 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35951 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35952 fi 35953 # Remove usage instructions (if present), and 35954 # collapse compiler output into a single line 35955 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35956 $SED -e 's/ *[Uu]sage:.*//'` 35957 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35958 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 35959 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 35960 # xlc -qversion output typically looks like 35961 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 35962 # Version: 11.01.0000.0015 35963 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 35964 # Check that this is likely to be the IBM XL C compiler. 35965 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 35966 if test $? -ne 0; then 35967 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35968 { $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 35969 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35970 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35971 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35972 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35973 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35974 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35975 fi 35976 # Collapse compiler output into a single line 35977 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35978 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35979 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 35980 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 35981 # There is no specific version flag, but all output starts with a version string. 35982 # First line typically looks something like: 35983 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 35984 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 35985 # Check that this is likely to be Microsoft CL.EXE. 35986 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 35987 if test $? -ne 0; then 35988 { $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 35989 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35990 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35991 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35992 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35993 fi 35994 # Collapse compiler output into a single line 35995 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35996 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35997 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 35998 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 35999 # gcc --version output typically looks like 36000 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 36001 # Copyright (C) 2013 Free Software Foundation, Inc. 36002 # This is free software; see the source for copying conditions. There is NO 36003 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 36004 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 36005 # Check that this is likely to be GCC. 36006 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 36007 if test $? -ne 0; then 36008 { $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 36009 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 36010 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 36011 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 36012 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 36013 fi 36014 # Remove Copyright and legalese from version string, and 36015 # collapse into a single line 36016 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 36017 $SED -e 's/ *Copyright .*//'` 36018 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 36019 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 36020 elif test "x$TOOLCHAIN_TYPE" = xclang; then 36021 # clang --version output typically looks like 36022 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 36023 # clang version 3.3 (tags/RELEASE_33/final) 36024 # or 36025 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 36026 # Target: x86_64-pc-linux-gnu 36027 # Thread model: posix 36028 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 36029 # Check that this is likely to be clang 36030 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 36031 if test $? -ne 0; then 36032 { $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 36033 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 36034 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 36035 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 36036 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 36037 fi 36038 # Collapse compiler output into a single line 36039 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 36040 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 36041 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 36042 else 36043 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 36044 fi 36045 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 36046 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 36047 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 36048 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 36049 36050 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 36051 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 36052 36053 36054 # Now that we have resolved CXX ourself, let autoconf have its go at it 36055 ac_ext=cpp 36056 ac_cpp='$CXXCPP $CPPFLAGS' 36057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36060 if test -z "$CXX"; then 36061 if test -n "$CCC"; then 36062 CXX=$CCC 36063 else 36064 if test -n "$ac_tool_prefix"; then 36065 for ac_prog in $CXX 36066 do 36067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36070 $as_echo_n "checking for $ac_word... " >&6; } 36071 if ${ac_cv_prog_CXX+:} false; then : 36072 $as_echo_n "(cached) " >&6 36073 else 36074 if test -n "$CXX"; then 36075 ac_cv_prog_CXX="$CXX" # Let the user override the test. 36076 else 36077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36078 for as_dir in $PATH 36079 do 36080 IFS=$as_save_IFS 36081 test -z "$as_dir" && as_dir=. 36082 for ac_exec_ext in '' $ac_executable_extensions; do 36083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36084 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 36085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36086 break 2 36087 fi 36088 done 36089 done 36090 IFS=$as_save_IFS 36091 36092 fi 36093 fi 36094 CXX=$ac_cv_prog_CXX 36095 if test -n "$CXX"; then 36096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 36097 $as_echo "$CXX" >&6; } 36098 else 36099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36100 $as_echo "no" >&6; } 36101 fi 36102 36103 36104 test -n "$CXX" && break 36105 done 36106 fi 36107 if test -z "$CXX"; then 36108 ac_ct_CXX=$CXX 36109 for ac_prog in $CXX 36110 do 36111 # Extract the first word of "$ac_prog", so it can be a program name with args. 36112 set dummy $ac_prog; ac_word=$2 36113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36114 $as_echo_n "checking for $ac_word... " >&6; } 36115 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 36116 $as_echo_n "(cached) " >&6 36117 else 36118 if test -n "$ac_ct_CXX"; then 36119 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 36120 else 36121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36122 for as_dir in $PATH 36123 do 36124 IFS=$as_save_IFS 36125 test -z "$as_dir" && as_dir=. 36126 for ac_exec_ext in '' $ac_executable_extensions; do 36127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36128 ac_cv_prog_ac_ct_CXX="$ac_prog" 36129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36130 break 2 36131 fi 36132 done 36133 done 36134 IFS=$as_save_IFS 36135 36136 fi 36137 fi 36138 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 36139 if test -n "$ac_ct_CXX"; then 36140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 36141 $as_echo "$ac_ct_CXX" >&6; } 36142 else 36143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36144 $as_echo "no" >&6; } 36145 fi 36146 36147 36148 test -n "$ac_ct_CXX" && break 36149 done 36150 36151 if test "x$ac_ct_CXX" = x; then 36152 CXX="g++" 36153 else 36154 case $cross_compiling:$ac_tool_warned in 36155 yes:) 36156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36158 ac_tool_warned=yes ;; 36159 esac 36160 CXX=$ac_ct_CXX 36161 fi 36162 fi 36163 36164 fi 36165 fi 36166 # Provide some information about the compiler. 36167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 36168 set X $ac_compile 36169 ac_compiler=$2 36170 for ac_option in --version -v -V -qversion; do 36171 { { ac_try="$ac_compiler $ac_option >&5" 36172 case "(($ac_try" in 36173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36174 *) ac_try_echo=$ac_try;; 36175 esac 36176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 36177 $as_echo "$ac_try_echo"; } >&5 36178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 36179 ac_status=$? 36180 if test -s conftest.err; then 36181 sed '10a\ 36182 ... rest of stderr output deleted ... 36183 10q' conftest.err >conftest.er1 36184 cat conftest.er1 >&5 36185 fi 36186 rm -f conftest.er1 conftest.err 36187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36188 test $ac_status = 0; } 36189 done 36190 36191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 36192 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 36193 if ${ac_cv_cxx_compiler_gnu+:} false; then : 36194 $as_echo_n "(cached) " >&6 36195 else 36196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36197 /* end confdefs.h. */ 36198 36199 int 36200 main () 36201 { 36202 #ifndef __GNUC__ 36203 choke me 36204 #endif 36205 36206 ; 36207 return 0; 36208 } 36209 _ACEOF 36210 if ac_fn_cxx_try_compile "$LINENO"; then : 36211 ac_compiler_gnu=yes 36212 else 36213 ac_compiler_gnu=no 36214 fi 36215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36216 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 36217 36218 fi 36219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 36220 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 36221 if test $ac_compiler_gnu = yes; then 36222 GXX=yes 36223 else 36224 GXX= 36225 fi 36226 ac_test_CXXFLAGS=${CXXFLAGS+set} 36227 ac_save_CXXFLAGS=$CXXFLAGS 36228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 36229 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 36230 if ${ac_cv_prog_cxx_g+:} false; then : 36231 $as_echo_n "(cached) " >&6 36232 else 36233 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 36234 ac_cxx_werror_flag=yes 36235 ac_cv_prog_cxx_g=no 36236 CXXFLAGS="-g" 36237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36238 /* end confdefs.h. */ 36239 36240 int 36241 main () 36242 { 36243 36244 ; 36245 return 0; 36246 } 36247 _ACEOF 36248 if ac_fn_cxx_try_compile "$LINENO"; then : 36249 ac_cv_prog_cxx_g=yes 36250 else 36251 CXXFLAGS="" 36252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36253 /* end confdefs.h. */ 36254 36255 int 36256 main () 36257 { 36258 36259 ; 36260 return 0; 36261 } 36262 _ACEOF 36263 if ac_fn_cxx_try_compile "$LINENO"; then : 36264 36265 else 36266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36267 CXXFLAGS="-g" 36268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36269 /* end confdefs.h. */ 36270 36271 int 36272 main () 36273 { 36274 36275 ; 36276 return 0; 36277 } 36278 _ACEOF 36279 if ac_fn_cxx_try_compile "$LINENO"; then : 36280 ac_cv_prog_cxx_g=yes 36281 fi 36282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36283 fi 36284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36285 fi 36286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36287 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36288 fi 36289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 36290 $as_echo "$ac_cv_prog_cxx_g" >&6; } 36291 if test "$ac_test_CXXFLAGS" = set; then 36292 CXXFLAGS=$ac_save_CXXFLAGS 36293 elif test $ac_cv_prog_cxx_g = yes; then 36294 if test "$GXX" = yes; then 36295 CXXFLAGS="-g -O2" 36296 else 36297 CXXFLAGS="-g" 36298 fi 36299 else 36300 if test "$GXX" = yes; then 36301 CXXFLAGS="-O2" 36302 else 36303 CXXFLAGS= 36304 fi 36305 fi 36306 ac_ext=cpp 36307 ac_cpp='$CXXCPP $CPPFLAGS' 36308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36311 36312 36313 # This is the compiler version number on the form X.Y[.Z] 36314 36315 36316 36317 36318 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 36319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 36320 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 36321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 36322 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 36323 fi 36324 36325 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 36326 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 36327 { $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 36328 $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;} 36329 fi 36330 36331 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 36332 { $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 36333 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 36334 fi 36335 36336 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 36337 36338 36339 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 36340 36341 36342 36343 36344 36345 36346 36347 36348 36349 36350 36351 36352 36353 36354 36355 36356 36357 36358 36359 36360 36361 36362 36363 36364 36365 36366 36367 36368 36369 36370 36371 36372 36373 36374 36375 36376 36377 36378 36379 36380 36381 36382 36383 36384 36385 36386 36387 36388 36389 # Execute function body 36390 36391 # Need to assign to a variable since m4 is blocked from modifying parts in []. 36392 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 36393 36394 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 36395 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 36396 fi 36397 36398 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 36399 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 36400 fi 36401 36402 # Version comparison method inspired by http://stackoverflow.com/a/24067243 36403 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 36404 36405 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 36406 : 36407 36408 else 36409 : 36410 36411 { $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 36412 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 36413 36414 36415 fi 36416 36417 36418 36419 36420 36421 36422 36423 36424 36425 36426 36427 36428 36429 36430 fi 36431 36432 # 36433 # Setup the preprocessor (CPP and CXXCPP) 36434 # 36435 ac_ext=c 36436 ac_cpp='$CPP $CPPFLAGS' 36437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36439 ac_compiler_gnu=$ac_cv_c_compiler_gnu 36440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 36441 $as_echo_n "checking how to run the C preprocessor... " >&6; } 36442 # On Suns, sometimes $CPP names a directory. 36443 if test -n "$CPP" && test -d "$CPP"; then 36444 CPP= 36445 fi 36446 if test -z "$CPP"; then 36447 if ${ac_cv_prog_CPP+:} false; then : 36448 $as_echo_n "(cached) " >&6 36449 else 36450 # Double quotes because CPP needs to be expanded 36451 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 36452 do 36453 ac_preproc_ok=false 36454 for ac_c_preproc_warn_flag in '' yes 36455 do 36456 # Use a header file that comes with gcc, so configuring glibc 36457 # with a fresh cross-compiler works. 36458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36459 # <limits.h> exists even on freestanding compilers. 36460 # On the NeXT, cc -E runs the code through the compiler's parser, 36461 # not just through cpp. "Syntax error" is here to catch this case. 36462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36463 /* end confdefs.h. */ 36464 #ifdef __STDC__ 36465 # include <limits.h> 36466 #else 36467 # include <assert.h> 36468 #endif 36469 Syntax error 36470 _ACEOF 36471 if ac_fn_c_try_cpp "$LINENO"; then : 36472 36473 else 36474 # Broken: fails on valid input. 36475 continue 36476 fi 36477 rm -f conftest.err conftest.i conftest.$ac_ext 36478 36479 # OK, works on sane cases. Now check whether nonexistent headers 36480 # can be detected and how. 36481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36482 /* end confdefs.h. */ 36483 #include <ac_nonexistent.h> 36484 _ACEOF 36485 if ac_fn_c_try_cpp "$LINENO"; then : 36486 # Broken: success on invalid input. 36487 continue 36488 else 36489 # Passes both tests. 36490 ac_preproc_ok=: 36491 break 36492 fi 36493 rm -f conftest.err conftest.i conftest.$ac_ext 36494 36495 done 36496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36497 rm -f conftest.i conftest.err conftest.$ac_ext 36498 if $ac_preproc_ok; then : 36499 break 36500 fi 36501 36502 done 36503 ac_cv_prog_CPP=$CPP 36504 36505 fi 36506 CPP=$ac_cv_prog_CPP 36507 else 36508 ac_cv_prog_CPP=$CPP 36509 fi 36510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 36511 $as_echo "$CPP" >&6; } 36512 ac_preproc_ok=false 36513 for ac_c_preproc_warn_flag in '' yes 36514 do 36515 # Use a header file that comes with gcc, so configuring glibc 36516 # with a fresh cross-compiler works. 36517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36518 # <limits.h> exists even on freestanding compilers. 36519 # On the NeXT, cc -E runs the code through the compiler's parser, 36520 # not just through cpp. "Syntax error" is here to catch this case. 36521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36522 /* end confdefs.h. */ 36523 #ifdef __STDC__ 36524 # include <limits.h> 36525 #else 36526 # include <assert.h> 36527 #endif 36528 Syntax error 36529 _ACEOF 36530 if ac_fn_c_try_cpp "$LINENO"; then : 36531 36532 else 36533 # Broken: fails on valid input. 36534 continue 36535 fi 36536 rm -f conftest.err conftest.i conftest.$ac_ext 36537 36538 # OK, works on sane cases. Now check whether nonexistent headers 36539 # can be detected and how. 36540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36541 /* end confdefs.h. */ 36542 #include <ac_nonexistent.h> 36543 _ACEOF 36544 if ac_fn_c_try_cpp "$LINENO"; then : 36545 # Broken: success on invalid input. 36546 continue 36547 else 36548 # Passes both tests. 36549 ac_preproc_ok=: 36550 break 36551 fi 36552 rm -f conftest.err conftest.i conftest.$ac_ext 36553 36554 done 36555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36556 rm -f conftest.i conftest.err conftest.$ac_ext 36557 if $ac_preproc_ok; then : 36558 36559 else 36560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36562 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 36563 See \`config.log' for more details" "$LINENO" 5; } 36564 fi 36565 36566 ac_ext=cpp 36567 ac_cpp='$CXXCPP $CPPFLAGS' 36568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36571 36572 36573 # Only process if variable expands to non-empty 36574 36575 if test "x$CPP" != x; then 36576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36577 36578 # First separate the path from the arguments. This will split at the first 36579 # space. 36580 complete="$CPP" 36581 path="${complete%% *}" 36582 tmp="$complete EOL" 36583 arguments="${tmp#* }" 36584 36585 # Input might be given as Windows format, start by converting to 36586 # unix format. 36587 new_path=`$CYGPATH -u "$path"` 36588 36589 # Now try to locate executable using which 36590 new_path=`$WHICH "$new_path" 2> /dev/null` 36591 # bat and cmd files are not always considered executable in cygwin causing which 36592 # to not find them 36593 if test "x$new_path" = x \ 36594 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36595 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36596 new_path=`$CYGPATH -u "$path"` 36597 fi 36598 if test "x$new_path" = x; then 36599 # Oops. Which didn't find the executable. 36600 # The splitting of arguments from the executable at a space might have been incorrect, 36601 # since paths with space are more likely in Windows. Give it another try with the whole 36602 # argument. 36603 path="$complete" 36604 arguments="EOL" 36605 new_path=`$CYGPATH -u "$path"` 36606 new_path=`$WHICH "$new_path" 2> /dev/null` 36607 # bat and cmd files are not always considered executable in cygwin causing which 36608 # to not find them 36609 if test "x$new_path" = x \ 36610 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36611 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36612 new_path=`$CYGPATH -u "$path"` 36613 fi 36614 if test "x$new_path" = x; then 36615 # It's still not found. Now this is an unrecoverable error. 36616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36617 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36618 has_space=`$ECHO "$complete" | $GREP " "` 36619 if test "x$has_space" != x; then 36620 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36621 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36622 fi 36623 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36624 fi 36625 fi 36626 36627 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36628 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36629 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36630 # "foo.exe" is OK but "foo" is an error. 36631 # 36632 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36633 # It is also a way to make sure we got the proper file name for the real test later on. 36634 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36635 if test "x$test_shortpath" = x; then 36636 # Short path failed, file does not exist as specified. 36637 # Try adding .exe or .cmd 36638 if test -f "${new_path}.exe"; then 36639 input_to_shortpath="${new_path}.exe" 36640 elif test -f "${new_path}.cmd"; then 36641 input_to_shortpath="${new_path}.cmd" 36642 else 36643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 36644 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 36645 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36646 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36647 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36648 fi 36649 else 36650 input_to_shortpath="$new_path" 36651 fi 36652 36653 # Call helper function which possibly converts this using DOS-style short mode. 36654 # If so, the updated path is stored in $new_path. 36655 new_path="$input_to_shortpath" 36656 36657 input_path="$input_to_shortpath" 36658 # Check if we need to convert this using DOS-style short mode. If the path 36659 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36660 # take no chances and rewrite it. 36661 # Note: m4 eats our [], so we need to use [ and ] instead. 36662 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36663 if test "x$has_forbidden_chars" != x; then 36664 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36665 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36666 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36667 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36668 # Going to short mode and back again did indeed matter. Since short mode is 36669 # case insensitive, let's make it lowercase to improve readability. 36670 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36671 # Now convert it back to Unix-style (cygpath) 36672 input_path=`$CYGPATH -u "$shortmode_path"` 36673 new_path="$input_path" 36674 fi 36675 fi 36676 36677 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36678 if test "x$test_cygdrive_prefix" = x; then 36679 # As a simple fix, exclude /usr/bin since it's not a real path. 36680 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36681 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36682 # a path prefixed by /cygdrive for fixpath to work. 36683 new_path="$CYGWIN_ROOT_PATH$input_path" 36684 fi 36685 fi 36686 36687 # remove trailing .exe if any 36688 new_path="${new_path/%.exe/}" 36689 36690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36691 36692 # First separate the path from the arguments. This will split at the first 36693 # space. 36694 complete="$CPP" 36695 path="${complete%% *}" 36696 tmp="$complete EOL" 36697 arguments="${tmp#* }" 36698 36699 # Input might be given as Windows format, start by converting to 36700 # unix format. 36701 new_path="$path" 36702 36703 windows_path="$new_path" 36704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36705 unix_path=`$CYGPATH -u "$windows_path"` 36706 new_path="$unix_path" 36707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36708 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36709 new_path="$unix_path" 36710 fi 36711 36712 36713 # Now try to locate executable using which 36714 new_path=`$WHICH "$new_path" 2> /dev/null` 36715 36716 if test "x$new_path" = x; then 36717 # Oops. Which didn't find the executable. 36718 # The splitting of arguments from the executable at a space might have been incorrect, 36719 # since paths with space are more likely in Windows. Give it another try with the whole 36720 # argument. 36721 path="$complete" 36722 arguments="EOL" 36723 new_path="$path" 36724 36725 windows_path="$new_path" 36726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36727 unix_path=`$CYGPATH -u "$windows_path"` 36728 new_path="$unix_path" 36729 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36730 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36731 new_path="$unix_path" 36732 fi 36733 36734 36735 new_path=`$WHICH "$new_path" 2> /dev/null` 36736 # bat and cmd files are not always considered executable in MSYS causing which 36737 # to not find them 36738 if test "x$new_path" = x \ 36739 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36740 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36741 new_path="$path" 36742 36743 windows_path="$new_path" 36744 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36745 unix_path=`$CYGPATH -u "$windows_path"` 36746 new_path="$unix_path" 36747 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36748 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36749 new_path="$unix_path" 36750 fi 36751 36752 fi 36753 36754 if test "x$new_path" = x; then 36755 # It's still not found. Now this is an unrecoverable error. 36756 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36757 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36758 has_space=`$ECHO "$complete" | $GREP " "` 36759 if test "x$has_space" != x; then 36760 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36761 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36762 fi 36763 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36764 fi 36765 fi 36766 36767 # Now new_path has a complete unix path to the binary 36768 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36769 # Keep paths in /bin as-is, but remove trailing .exe if any 36770 new_path="${new_path/%.exe/}" 36771 # Do not save /bin paths to all_fixpath_prefixes! 36772 else 36773 # Not in mixed or Windows style, start by that. 36774 new_path=`cmd //c echo $new_path` 36775 36776 input_path="$new_path" 36777 # Check if we need to convert this using DOS-style short mode. If the path 36778 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36779 # take no chances and rewrite it. 36780 # Note: m4 eats our [], so we need to use [ and ] instead. 36781 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36782 if test "x$has_forbidden_chars" != x; then 36783 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36784 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36785 fi 36786 36787 # Output is in $new_path 36788 36789 windows_path="$new_path" 36790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36791 unix_path=`$CYGPATH -u "$windows_path"` 36792 new_path="$unix_path" 36793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36794 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36795 new_path="$unix_path" 36796 fi 36797 36798 # remove trailing .exe if any 36799 new_path="${new_path/%.exe/}" 36800 36801 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36802 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36803 fi 36804 36805 else 36806 # We're on a unix platform. Hooray! :) 36807 # First separate the path from the arguments. This will split at the first 36808 # space. 36809 complete="$CPP" 36810 path="${complete%% *}" 36811 tmp="$complete EOL" 36812 arguments="${tmp#* }" 36813 36814 # Cannot rely on the command "which" here since it doesn't always work. 36815 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36816 if test -z "$is_absolute_path"; then 36817 # Path to executable is not absolute. Find it. 36818 IFS_save="$IFS" 36819 IFS=: 36820 for p in $PATH; do 36821 if test -f "$p/$path" && test -x "$p/$path"; then 36822 new_path="$p/$path" 36823 break 36824 fi 36825 done 36826 IFS="$IFS_save" 36827 else 36828 # This is an absolute path, we can use it without further modifications. 36829 new_path="$path" 36830 fi 36831 36832 if test "x$new_path" = x; then 36833 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36834 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36835 has_space=`$ECHO "$complete" | $GREP " "` 36836 if test "x$has_space" != x; then 36837 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36838 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36839 fi 36840 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36841 fi 36842 fi 36843 36844 # Now join together the path and the arguments once again 36845 if test "x$arguments" != xEOL; then 36846 new_complete="$new_path ${arguments% *}" 36847 else 36848 new_complete="$new_path" 36849 fi 36850 36851 if test "x$complete" != "x$new_complete"; then 36852 CPP="$new_complete" 36853 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 36854 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 36855 fi 36856 fi 36857 36858 ac_ext=cpp 36859 ac_cpp='$CXXCPP $CPPFLAGS' 36860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 36864 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 36865 if test -z "$CXXCPP"; then 36866 if ${ac_cv_prog_CXXCPP+:} false; then : 36867 $as_echo_n "(cached) " >&6 36868 else 36869 # Double quotes because CXXCPP needs to be expanded 36870 for CXXCPP in "$CXX -E" "/lib/cpp" 36871 do 36872 ac_preproc_ok=false 36873 for ac_cxx_preproc_warn_flag in '' yes 36874 do 36875 # Use a header file that comes with gcc, so configuring glibc 36876 # with a fresh cross-compiler works. 36877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36878 # <limits.h> exists even on freestanding compilers. 36879 # On the NeXT, cc -E runs the code through the compiler's parser, 36880 # not just through cpp. "Syntax error" is here to catch this case. 36881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36882 /* end confdefs.h. */ 36883 #ifdef __STDC__ 36884 # include <limits.h> 36885 #else 36886 # include <assert.h> 36887 #endif 36888 Syntax error 36889 _ACEOF 36890 if ac_fn_cxx_try_cpp "$LINENO"; then : 36891 36892 else 36893 # Broken: fails on valid input. 36894 continue 36895 fi 36896 rm -f conftest.err conftest.i conftest.$ac_ext 36897 36898 # OK, works on sane cases. Now check whether nonexistent headers 36899 # can be detected and how. 36900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36901 /* end confdefs.h. */ 36902 #include <ac_nonexistent.h> 36903 _ACEOF 36904 if ac_fn_cxx_try_cpp "$LINENO"; then : 36905 # Broken: success on invalid input. 36906 continue 36907 else 36908 # Passes both tests. 36909 ac_preproc_ok=: 36910 break 36911 fi 36912 rm -f conftest.err conftest.i conftest.$ac_ext 36913 36914 done 36915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36916 rm -f conftest.i conftest.err conftest.$ac_ext 36917 if $ac_preproc_ok; then : 36918 break 36919 fi 36920 36921 done 36922 ac_cv_prog_CXXCPP=$CXXCPP 36923 36924 fi 36925 CXXCPP=$ac_cv_prog_CXXCPP 36926 else 36927 ac_cv_prog_CXXCPP=$CXXCPP 36928 fi 36929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 36930 $as_echo "$CXXCPP" >&6; } 36931 ac_preproc_ok=false 36932 for ac_cxx_preproc_warn_flag in '' yes 36933 do 36934 # Use a header file that comes with gcc, so configuring glibc 36935 # with a fresh cross-compiler works. 36936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36937 # <limits.h> exists even on freestanding compilers. 36938 # On the NeXT, cc -E runs the code through the compiler's parser, 36939 # not just through cpp. "Syntax error" is here to catch this case. 36940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36941 /* end confdefs.h. */ 36942 #ifdef __STDC__ 36943 # include <limits.h> 36944 #else 36945 # include <assert.h> 36946 #endif 36947 Syntax error 36948 _ACEOF 36949 if ac_fn_cxx_try_cpp "$LINENO"; then : 36950 36951 else 36952 # Broken: fails on valid input. 36953 continue 36954 fi 36955 rm -f conftest.err conftest.i conftest.$ac_ext 36956 36957 # OK, works on sane cases. Now check whether nonexistent headers 36958 # can be detected and how. 36959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36960 /* end confdefs.h. */ 36961 #include <ac_nonexistent.h> 36962 _ACEOF 36963 if ac_fn_cxx_try_cpp "$LINENO"; then : 36964 # Broken: success on invalid input. 36965 continue 36966 else 36967 # Passes both tests. 36968 ac_preproc_ok=: 36969 break 36970 fi 36971 rm -f conftest.err conftest.i conftest.$ac_ext 36972 36973 done 36974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36975 rm -f conftest.i conftest.err conftest.$ac_ext 36976 if $ac_preproc_ok; then : 36977 36978 else 36979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36981 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 36982 See \`config.log' for more details" "$LINENO" 5; } 36983 fi 36984 36985 ac_ext=cpp 36986 ac_cpp='$CXXCPP $CPPFLAGS' 36987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36990 36991 36992 # Only process if variable expands to non-empty 36993 36994 if test "x$CXXCPP" != x; then 36995 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36996 36997 # First separate the path from the arguments. This will split at the first 36998 # space. 36999 complete="$CXXCPP" 37000 path="${complete%% *}" 37001 tmp="$complete EOL" 37002 arguments="${tmp#* }" 37003 37004 # Input might be given as Windows format, start by converting to 37005 # unix format. 37006 new_path=`$CYGPATH -u "$path"` 37007 37008 # Now try to locate executable using which 37009 new_path=`$WHICH "$new_path" 2> /dev/null` 37010 # bat and cmd files are not always considered executable in cygwin causing which 37011 # to not find them 37012 if test "x$new_path" = x \ 37013 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37014 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37015 new_path=`$CYGPATH -u "$path"` 37016 fi 37017 if test "x$new_path" = x; then 37018 # Oops. Which didn't find the executable. 37019 # The splitting of arguments from the executable at a space might have been incorrect, 37020 # since paths with space are more likely in Windows. Give it another try with the whole 37021 # argument. 37022 path="$complete" 37023 arguments="EOL" 37024 new_path=`$CYGPATH -u "$path"` 37025 new_path=`$WHICH "$new_path" 2> /dev/null` 37026 # bat and cmd files are not always considered executable in cygwin causing which 37027 # to not find them 37028 if test "x$new_path" = x \ 37029 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37030 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37031 new_path=`$CYGPATH -u "$path"` 37032 fi 37033 if test "x$new_path" = x; then 37034 # It's still not found. Now this is an unrecoverable error. 37035 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37036 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37037 has_space=`$ECHO "$complete" | $GREP " "` 37038 if test "x$has_space" != x; then 37039 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37040 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37041 fi 37042 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37043 fi 37044 fi 37045 37046 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37047 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37048 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37049 # "foo.exe" is OK but "foo" is an error. 37050 # 37051 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37052 # It is also a way to make sure we got the proper file name for the real test later on. 37053 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37054 if test "x$test_shortpath" = x; then 37055 # Short path failed, file does not exist as specified. 37056 # Try adding .exe or .cmd 37057 if test -f "${new_path}.exe"; then 37058 input_to_shortpath="${new_path}.exe" 37059 elif test -f "${new_path}.cmd"; then 37060 input_to_shortpath="${new_path}.cmd" 37061 else 37062 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 37063 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 37064 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37065 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37066 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37067 fi 37068 else 37069 input_to_shortpath="$new_path" 37070 fi 37071 37072 # Call helper function which possibly converts this using DOS-style short mode. 37073 # If so, the updated path is stored in $new_path. 37074 new_path="$input_to_shortpath" 37075 37076 input_path="$input_to_shortpath" 37077 # Check if we need to convert this using DOS-style short mode. If the path 37078 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37079 # take no chances and rewrite it. 37080 # Note: m4 eats our [], so we need to use [ and ] instead. 37081 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37082 if test "x$has_forbidden_chars" != x; then 37083 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37084 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37085 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37086 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37087 # Going to short mode and back again did indeed matter. Since short mode is 37088 # case insensitive, let's make it lowercase to improve readability. 37089 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37090 # Now convert it back to Unix-style (cygpath) 37091 input_path=`$CYGPATH -u "$shortmode_path"` 37092 new_path="$input_path" 37093 fi 37094 fi 37095 37096 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37097 if test "x$test_cygdrive_prefix" = x; then 37098 # As a simple fix, exclude /usr/bin since it's not a real path. 37099 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37100 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37101 # a path prefixed by /cygdrive for fixpath to work. 37102 new_path="$CYGWIN_ROOT_PATH$input_path" 37103 fi 37104 fi 37105 37106 # remove trailing .exe if any 37107 new_path="${new_path/%.exe/}" 37108 37109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37110 37111 # First separate the path from the arguments. This will split at the first 37112 # space. 37113 complete="$CXXCPP" 37114 path="${complete%% *}" 37115 tmp="$complete EOL" 37116 arguments="${tmp#* }" 37117 37118 # Input might be given as Windows format, start by converting to 37119 # unix format. 37120 new_path="$path" 37121 37122 windows_path="$new_path" 37123 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37124 unix_path=`$CYGPATH -u "$windows_path"` 37125 new_path="$unix_path" 37126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37127 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37128 new_path="$unix_path" 37129 fi 37130 37131 37132 # Now try to locate executable using which 37133 new_path=`$WHICH "$new_path" 2> /dev/null` 37134 37135 if test "x$new_path" = x; then 37136 # Oops. Which didn't find the executable. 37137 # The splitting of arguments from the executable at a space might have been incorrect, 37138 # since paths with space are more likely in Windows. Give it another try with the whole 37139 # argument. 37140 path="$complete" 37141 arguments="EOL" 37142 new_path="$path" 37143 37144 windows_path="$new_path" 37145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37146 unix_path=`$CYGPATH -u "$windows_path"` 37147 new_path="$unix_path" 37148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37149 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37150 new_path="$unix_path" 37151 fi 37152 37153 37154 new_path=`$WHICH "$new_path" 2> /dev/null` 37155 # bat and cmd files are not always considered executable in MSYS causing which 37156 # to not find them 37157 if test "x$new_path" = x \ 37158 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37159 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37160 new_path="$path" 37161 37162 windows_path="$new_path" 37163 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37164 unix_path=`$CYGPATH -u "$windows_path"` 37165 new_path="$unix_path" 37166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37167 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37168 new_path="$unix_path" 37169 fi 37170 37171 fi 37172 37173 if test "x$new_path" = x; then 37174 # It's still not found. Now this is an unrecoverable error. 37175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37176 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37177 has_space=`$ECHO "$complete" | $GREP " "` 37178 if test "x$has_space" != x; then 37179 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37180 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37181 fi 37182 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37183 fi 37184 fi 37185 37186 # Now new_path has a complete unix path to the binary 37187 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37188 # Keep paths in /bin as-is, but remove trailing .exe if any 37189 new_path="${new_path/%.exe/}" 37190 # Do not save /bin paths to all_fixpath_prefixes! 37191 else 37192 # Not in mixed or Windows style, start by that. 37193 new_path=`cmd //c echo $new_path` 37194 37195 input_path="$new_path" 37196 # Check if we need to convert this using DOS-style short mode. If the path 37197 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37198 # take no chances and rewrite it. 37199 # Note: m4 eats our [], so we need to use [ and ] instead. 37200 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37201 if test "x$has_forbidden_chars" != x; then 37202 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37203 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37204 fi 37205 37206 # Output is in $new_path 37207 37208 windows_path="$new_path" 37209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37210 unix_path=`$CYGPATH -u "$windows_path"` 37211 new_path="$unix_path" 37212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37213 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37214 new_path="$unix_path" 37215 fi 37216 37217 # remove trailing .exe if any 37218 new_path="${new_path/%.exe/}" 37219 37220 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37221 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37222 fi 37223 37224 else 37225 # We're on a unix platform. Hooray! :) 37226 # First separate the path from the arguments. This will split at the first 37227 # space. 37228 complete="$CXXCPP" 37229 path="${complete%% *}" 37230 tmp="$complete EOL" 37231 arguments="${tmp#* }" 37232 37233 # Cannot rely on the command "which" here since it doesn't always work. 37234 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37235 if test -z "$is_absolute_path"; then 37236 # Path to executable is not absolute. Find it. 37237 IFS_save="$IFS" 37238 IFS=: 37239 for p in $PATH; do 37240 if test -f "$p/$path" && test -x "$p/$path"; then 37241 new_path="$p/$path" 37242 break 37243 fi 37244 done 37245 IFS="$IFS_save" 37246 else 37247 # This is an absolute path, we can use it without further modifications. 37248 new_path="$path" 37249 fi 37250 37251 if test "x$new_path" = x; then 37252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37253 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37254 has_space=`$ECHO "$complete" | $GREP " "` 37255 if test "x$has_space" != x; then 37256 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37257 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37258 fi 37259 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37260 fi 37261 fi 37262 37263 # Now join together the path and the arguments once again 37264 if test "x$arguments" != xEOL; then 37265 new_complete="$new_path ${arguments% *}" 37266 else 37267 new_complete="$new_path" 37268 fi 37269 37270 if test "x$complete" != "x$new_complete"; then 37271 CXXCPP="$new_complete" 37272 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 37273 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 37274 fi 37275 fi 37276 37277 37278 # 37279 # Setup the linker (LD) 37280 # 37281 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37282 # In the Microsoft toolchain we have a separate LD command "link". 37283 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 37284 # a cygwin program for something completely different. 37285 # Extract the first word of "link", so it can be a program name with args. 37286 set dummy link; ac_word=$2 37287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37288 $as_echo_n "checking for $ac_word... " >&6; } 37289 if ${ac_cv_prog_LD+:} false; then : 37290 $as_echo_n "(cached) " >&6 37291 else 37292 if test -n "$LD"; then 37293 ac_cv_prog_LD="$LD" # Let the user override the test. 37294 else 37295 ac_prog_rejected=no 37296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37297 for as_dir in $PATH 37298 do 37299 IFS=$as_save_IFS 37300 test -z "$as_dir" && as_dir=. 37301 for ac_exec_ext in '' $ac_executable_extensions; do 37302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37303 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 37304 ac_prog_rejected=yes 37305 continue 37306 fi 37307 ac_cv_prog_LD="link" 37308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37309 break 2 37310 fi 37311 done 37312 done 37313 IFS=$as_save_IFS 37314 37315 if test $ac_prog_rejected = yes; then 37316 # We found a bogon in the path, so make sure we never use it. 37317 set dummy $ac_cv_prog_LD 37318 shift 37319 if test $# != 0; then 37320 # We chose a different compiler from the bogus one. 37321 # However, it has the same basename, so the bogon will be chosen 37322 # first if we set LD to just the basename; use the full file name. 37323 shift 37324 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 37325 fi 37326 fi 37327 fi 37328 fi 37329 LD=$ac_cv_prog_LD 37330 if test -n "$LD"; then 37331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 37332 $as_echo "$LD" >&6; } 37333 else 37334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37335 $as_echo "no" >&6; } 37336 fi 37337 37338 37339 37340 # Only process if variable expands to non-empty 37341 37342 if test "x$LD" != x; then 37343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37344 37345 # First separate the path from the arguments. This will split at the first 37346 # space. 37347 complete="$LD" 37348 path="${complete%% *}" 37349 tmp="$complete EOL" 37350 arguments="${tmp#* }" 37351 37352 # Input might be given as Windows format, start by converting to 37353 # unix format. 37354 new_path=`$CYGPATH -u "$path"` 37355 37356 # Now try to locate executable using which 37357 new_path=`$WHICH "$new_path" 2> /dev/null` 37358 # bat and cmd files are not always considered executable in cygwin causing which 37359 # to not find them 37360 if test "x$new_path" = x \ 37361 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37362 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37363 new_path=`$CYGPATH -u "$path"` 37364 fi 37365 if test "x$new_path" = x; then 37366 # Oops. Which didn't find the executable. 37367 # The splitting of arguments from the executable at a space might have been incorrect, 37368 # since paths with space are more likely in Windows. Give it another try with the whole 37369 # argument. 37370 path="$complete" 37371 arguments="EOL" 37372 new_path=`$CYGPATH -u "$path"` 37373 new_path=`$WHICH "$new_path" 2> /dev/null` 37374 # bat and cmd files are not always considered executable in cygwin causing which 37375 # to not find them 37376 if test "x$new_path" = x \ 37377 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37378 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37379 new_path=`$CYGPATH -u "$path"` 37380 fi 37381 if test "x$new_path" = x; then 37382 # It's still not found. Now this is an unrecoverable error. 37383 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37384 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37385 has_space=`$ECHO "$complete" | $GREP " "` 37386 if test "x$has_space" != x; then 37387 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37388 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37389 fi 37390 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37391 fi 37392 fi 37393 37394 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37395 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37396 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37397 # "foo.exe" is OK but "foo" is an error. 37398 # 37399 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37400 # It is also a way to make sure we got the proper file name for the real test later on. 37401 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37402 if test "x$test_shortpath" = x; then 37403 # Short path failed, file does not exist as specified. 37404 # Try adding .exe or .cmd 37405 if test -f "${new_path}.exe"; then 37406 input_to_shortpath="${new_path}.exe" 37407 elif test -f "${new_path}.cmd"; then 37408 input_to_shortpath="${new_path}.cmd" 37409 else 37410 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 37411 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 37412 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37413 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37414 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37415 fi 37416 else 37417 input_to_shortpath="$new_path" 37418 fi 37419 37420 # Call helper function which possibly converts this using DOS-style short mode. 37421 # If so, the updated path is stored in $new_path. 37422 new_path="$input_to_shortpath" 37423 37424 input_path="$input_to_shortpath" 37425 # Check if we need to convert this using DOS-style short mode. If the path 37426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37427 # take no chances and rewrite it. 37428 # Note: m4 eats our [], so we need to use [ and ] instead. 37429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37430 if test "x$has_forbidden_chars" != x; then 37431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37432 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37433 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37434 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37435 # Going to short mode and back again did indeed matter. Since short mode is 37436 # case insensitive, let's make it lowercase to improve readability. 37437 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37438 # Now convert it back to Unix-style (cygpath) 37439 input_path=`$CYGPATH -u "$shortmode_path"` 37440 new_path="$input_path" 37441 fi 37442 fi 37443 37444 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37445 if test "x$test_cygdrive_prefix" = x; then 37446 # As a simple fix, exclude /usr/bin since it's not a real path. 37447 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37448 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37449 # a path prefixed by /cygdrive for fixpath to work. 37450 new_path="$CYGWIN_ROOT_PATH$input_path" 37451 fi 37452 fi 37453 37454 # remove trailing .exe if any 37455 new_path="${new_path/%.exe/}" 37456 37457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37458 37459 # First separate the path from the arguments. This will split at the first 37460 # space. 37461 complete="$LD" 37462 path="${complete%% *}" 37463 tmp="$complete EOL" 37464 arguments="${tmp#* }" 37465 37466 # Input might be given as Windows format, start by converting to 37467 # unix format. 37468 new_path="$path" 37469 37470 windows_path="$new_path" 37471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37472 unix_path=`$CYGPATH -u "$windows_path"` 37473 new_path="$unix_path" 37474 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37475 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37476 new_path="$unix_path" 37477 fi 37478 37479 37480 # Now try to locate executable using which 37481 new_path=`$WHICH "$new_path" 2> /dev/null` 37482 37483 if test "x$new_path" = x; then 37484 # Oops. Which didn't find the executable. 37485 # The splitting of arguments from the executable at a space might have been incorrect, 37486 # since paths with space are more likely in Windows. Give it another try with the whole 37487 # argument. 37488 path="$complete" 37489 arguments="EOL" 37490 new_path="$path" 37491 37492 windows_path="$new_path" 37493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37494 unix_path=`$CYGPATH -u "$windows_path"` 37495 new_path="$unix_path" 37496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37497 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37498 new_path="$unix_path" 37499 fi 37500 37501 37502 new_path=`$WHICH "$new_path" 2> /dev/null` 37503 # bat and cmd files are not always considered executable in MSYS causing which 37504 # to not find them 37505 if test "x$new_path" = x \ 37506 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37507 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37508 new_path="$path" 37509 37510 windows_path="$new_path" 37511 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37512 unix_path=`$CYGPATH -u "$windows_path"` 37513 new_path="$unix_path" 37514 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37515 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37516 new_path="$unix_path" 37517 fi 37518 37519 fi 37520 37521 if test "x$new_path" = x; then 37522 # It's still not found. Now this is an unrecoverable error. 37523 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37524 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37525 has_space=`$ECHO "$complete" | $GREP " "` 37526 if test "x$has_space" != x; then 37527 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37528 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37529 fi 37530 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37531 fi 37532 fi 37533 37534 # Now new_path has a complete unix path to the binary 37535 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37536 # Keep paths in /bin as-is, but remove trailing .exe if any 37537 new_path="${new_path/%.exe/}" 37538 # Do not save /bin paths to all_fixpath_prefixes! 37539 else 37540 # Not in mixed or Windows style, start by that. 37541 new_path=`cmd //c echo $new_path` 37542 37543 input_path="$new_path" 37544 # Check if we need to convert this using DOS-style short mode. If the path 37545 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37546 # take no chances and rewrite it. 37547 # Note: m4 eats our [], so we need to use [ and ] instead. 37548 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37549 if test "x$has_forbidden_chars" != x; then 37550 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37551 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37552 fi 37553 37554 # Output is in $new_path 37555 37556 windows_path="$new_path" 37557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37558 unix_path=`$CYGPATH -u "$windows_path"` 37559 new_path="$unix_path" 37560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37561 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37562 new_path="$unix_path" 37563 fi 37564 37565 # remove trailing .exe if any 37566 new_path="${new_path/%.exe/}" 37567 37568 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37569 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37570 fi 37571 37572 else 37573 # We're on a unix platform. Hooray! :) 37574 # First separate the path from the arguments. This will split at the first 37575 # space. 37576 complete="$LD" 37577 path="${complete%% *}" 37578 tmp="$complete EOL" 37579 arguments="${tmp#* }" 37580 37581 # Cannot rely on the command "which" here since it doesn't always work. 37582 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37583 if test -z "$is_absolute_path"; then 37584 # Path to executable is not absolute. Find it. 37585 IFS_save="$IFS" 37586 IFS=: 37587 for p in $PATH; do 37588 if test -f "$p/$path" && test -x "$p/$path"; then 37589 new_path="$p/$path" 37590 break 37591 fi 37592 done 37593 IFS="$IFS_save" 37594 else 37595 # This is an absolute path, we can use it without further modifications. 37596 new_path="$path" 37597 fi 37598 37599 if test "x$new_path" = x; then 37600 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37601 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37602 has_space=`$ECHO "$complete" | $GREP " "` 37603 if test "x$has_space" != x; then 37604 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37605 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37606 fi 37607 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37608 fi 37609 fi 37610 37611 # Now join together the path and the arguments once again 37612 if test "x$arguments" != xEOL; then 37613 new_complete="$new_path ${arguments% *}" 37614 else 37615 new_complete="$new_path" 37616 fi 37617 37618 if test "x$complete" != "x$new_complete"; then 37619 LD="$new_complete" 37620 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 37621 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 37622 fi 37623 fi 37624 37625 # Verify that we indeed succeeded with this trick. 37626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 37627 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 37628 "$LD" --version > /dev/null 37629 if test $? -eq 0 ; then 37630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37631 $as_echo "no" >&6; } 37632 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 37633 else 37634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37635 $as_echo "yes" >&6; } 37636 fi 37637 LDCXX="$LD" 37638 else 37639 # All other toolchains use the compiler to link. 37640 LD="$CC" 37641 LDCXX="$CXX" 37642 fi 37643 37644 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 37645 37646 37647 # 37648 # Setup the assembler (AS) 37649 # 37650 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 37651 37652 37653 # Publish this variable in the help. 37654 37655 37656 if [ -z "${AS+x}" ]; then 37657 # The variable is not set by user, try to locate tool using the code snippet 37658 for ac_prog in as 37659 do 37660 # Extract the first word of "$ac_prog", so it can be a program name with args. 37661 set dummy $ac_prog; ac_word=$2 37662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37663 $as_echo_n "checking for $ac_word... " >&6; } 37664 if ${ac_cv_path_AS+:} false; then : 37665 $as_echo_n "(cached) " >&6 37666 else 37667 case $AS in 37668 [\\/]* | ?:[\\/]*) 37669 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37670 ;; 37671 *) 37672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37673 for as_dir in $PATH 37674 do 37675 IFS=$as_save_IFS 37676 test -z "$as_dir" && as_dir=. 37677 for ac_exec_ext in '' $ac_executable_extensions; do 37678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37679 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37681 break 2 37682 fi 37683 done 37684 done 37685 IFS=$as_save_IFS 37686 37687 ;; 37688 esac 37689 fi 37690 AS=$ac_cv_path_AS 37691 if test -n "$AS"; then 37692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37693 $as_echo "$AS" >&6; } 37694 else 37695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37696 $as_echo "no" >&6; } 37697 fi 37698 37699 37700 test -n "$AS" && break 37701 done 37702 37703 else 37704 # The variable is set, but is it from the command line or the environment? 37705 37706 # Try to remove the string !AS! from our list. 37707 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 37708 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37709 # If it failed, the variable was not from the command line. Ignore it, 37710 # but warn the user (except for BASH, which is always set by the calling BASH). 37711 if test "xAS" != xBASH; then 37712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 37713 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 37714 fi 37715 # Try to locate tool using the code snippet 37716 for ac_prog in as 37717 do 37718 # Extract the first word of "$ac_prog", so it can be a program name with args. 37719 set dummy $ac_prog; ac_word=$2 37720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37721 $as_echo_n "checking for $ac_word... " >&6; } 37722 if ${ac_cv_path_AS+:} false; then : 37723 $as_echo_n "(cached) " >&6 37724 else 37725 case $AS in 37726 [\\/]* | ?:[\\/]*) 37727 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37728 ;; 37729 *) 37730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37731 for as_dir in $PATH 37732 do 37733 IFS=$as_save_IFS 37734 test -z "$as_dir" && as_dir=. 37735 for ac_exec_ext in '' $ac_executable_extensions; do 37736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37737 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37739 break 2 37740 fi 37741 done 37742 done 37743 IFS=$as_save_IFS 37744 37745 ;; 37746 esac 37747 fi 37748 AS=$ac_cv_path_AS 37749 if test -n "$AS"; then 37750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37751 $as_echo "$AS" >&6; } 37752 else 37753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37754 $as_echo "no" >&6; } 37755 fi 37756 37757 37758 test -n "$AS" && break 37759 done 37760 37761 else 37762 # If it succeeded, then it was overridden by the user. We will use it 37763 # for the tool. 37764 37765 # First remove it from the list of overridden variables, so we can test 37766 # for unknown variables in the end. 37767 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37768 37769 # Check if we try to supply an empty value 37770 if test "x$AS" = x; then 37771 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 37772 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 37773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37774 $as_echo_n "checking for AS... " >&6; } 37775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37776 $as_echo "disabled" >&6; } 37777 else 37778 # Check if the provided tool contains a complete path. 37779 tool_specified="$AS" 37780 tool_basename="${tool_specified##*/}" 37781 if test "x$tool_basename" = "x$tool_specified"; then 37782 # A command without a complete path is provided, search $PATH. 37783 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 37784 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 37785 # Extract the first word of "$tool_basename", so it can be a program name with args. 37786 set dummy $tool_basename; ac_word=$2 37787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37788 $as_echo_n "checking for $ac_word... " >&6; } 37789 if ${ac_cv_path_AS+:} false; then : 37790 $as_echo_n "(cached) " >&6 37791 else 37792 case $AS in 37793 [\\/]* | ?:[\\/]*) 37794 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37795 ;; 37796 *) 37797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37798 for as_dir in $PATH 37799 do 37800 IFS=$as_save_IFS 37801 test -z "$as_dir" && as_dir=. 37802 for ac_exec_ext in '' $ac_executable_extensions; do 37803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37804 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37806 break 2 37807 fi 37808 done 37809 done 37810 IFS=$as_save_IFS 37811 37812 ;; 37813 esac 37814 fi 37815 AS=$ac_cv_path_AS 37816 if test -n "$AS"; then 37817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37818 $as_echo "$AS" >&6; } 37819 else 37820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37821 $as_echo "no" >&6; } 37822 fi 37823 37824 37825 if test "x$AS" = x; then 37826 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37827 fi 37828 else 37829 # Otherwise we believe it is a complete path. Use it as it is. 37830 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 37831 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 37832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37833 $as_echo_n "checking for AS... " >&6; } 37834 if test ! -x "$tool_specified"; then 37835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37836 $as_echo "not found" >&6; } 37837 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 37838 fi 37839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37840 $as_echo "$tool_specified" >&6; } 37841 fi 37842 fi 37843 fi 37844 37845 fi 37846 37847 37848 37849 # Only process if variable expands to non-empty 37850 37851 if test "x$AS" != x; then 37852 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37853 37854 # First separate the path from the arguments. This will split at the first 37855 # space. 37856 complete="$AS" 37857 path="${complete%% *}" 37858 tmp="$complete EOL" 37859 arguments="${tmp#* }" 37860 37861 # Input might be given as Windows format, start by converting to 37862 # unix format. 37863 new_path=`$CYGPATH -u "$path"` 37864 37865 # Now try to locate executable using which 37866 new_path=`$WHICH "$new_path" 2> /dev/null` 37867 # bat and cmd files are not always considered executable in cygwin causing which 37868 # to not find them 37869 if test "x$new_path" = x \ 37870 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37871 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37872 new_path=`$CYGPATH -u "$path"` 37873 fi 37874 if test "x$new_path" = x; then 37875 # Oops. Which didn't find the executable. 37876 # The splitting of arguments from the executable at a space might have been incorrect, 37877 # since paths with space are more likely in Windows. Give it another try with the whole 37878 # argument. 37879 path="$complete" 37880 arguments="EOL" 37881 new_path=`$CYGPATH -u "$path"` 37882 new_path=`$WHICH "$new_path" 2> /dev/null` 37883 # bat and cmd files are not always considered executable in cygwin causing which 37884 # to not find them 37885 if test "x$new_path" = x \ 37886 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37887 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37888 new_path=`$CYGPATH -u "$path"` 37889 fi 37890 if test "x$new_path" = x; then 37891 # It's still not found. Now this is an unrecoverable error. 37892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37893 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37894 has_space=`$ECHO "$complete" | $GREP " "` 37895 if test "x$has_space" != x; then 37896 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37897 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37898 fi 37899 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37900 fi 37901 fi 37902 37903 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37904 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37905 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37906 # "foo.exe" is OK but "foo" is an error. 37907 # 37908 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37909 # It is also a way to make sure we got the proper file name for the real test later on. 37910 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37911 if test "x$test_shortpath" = x; then 37912 # Short path failed, file does not exist as specified. 37913 # Try adding .exe or .cmd 37914 if test -f "${new_path}.exe"; then 37915 input_to_shortpath="${new_path}.exe" 37916 elif test -f "${new_path}.cmd"; then 37917 input_to_shortpath="${new_path}.cmd" 37918 else 37919 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 37920 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 37921 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37922 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37923 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37924 fi 37925 else 37926 input_to_shortpath="$new_path" 37927 fi 37928 37929 # Call helper function which possibly converts this using DOS-style short mode. 37930 # If so, the updated path is stored in $new_path. 37931 new_path="$input_to_shortpath" 37932 37933 input_path="$input_to_shortpath" 37934 # Check if we need to convert this using DOS-style short mode. If the path 37935 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37936 # take no chances and rewrite it. 37937 # Note: m4 eats our [], so we need to use [ and ] instead. 37938 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37939 if test "x$has_forbidden_chars" != x; then 37940 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37941 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37942 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37943 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37944 # Going to short mode and back again did indeed matter. Since short mode is 37945 # case insensitive, let's make it lowercase to improve readability. 37946 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37947 # Now convert it back to Unix-style (cygpath) 37948 input_path=`$CYGPATH -u "$shortmode_path"` 37949 new_path="$input_path" 37950 fi 37951 fi 37952 37953 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37954 if test "x$test_cygdrive_prefix" = x; then 37955 # As a simple fix, exclude /usr/bin since it's not a real path. 37956 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37957 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37958 # a path prefixed by /cygdrive for fixpath to work. 37959 new_path="$CYGWIN_ROOT_PATH$input_path" 37960 fi 37961 fi 37962 37963 # remove trailing .exe if any 37964 new_path="${new_path/%.exe/}" 37965 37966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37967 37968 # First separate the path from the arguments. This will split at the first 37969 # space. 37970 complete="$AS" 37971 path="${complete%% *}" 37972 tmp="$complete EOL" 37973 arguments="${tmp#* }" 37974 37975 # Input might be given as Windows format, start by converting to 37976 # unix format. 37977 new_path="$path" 37978 37979 windows_path="$new_path" 37980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37981 unix_path=`$CYGPATH -u "$windows_path"` 37982 new_path="$unix_path" 37983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37984 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37985 new_path="$unix_path" 37986 fi 37987 37988 37989 # Now try to locate executable using which 37990 new_path=`$WHICH "$new_path" 2> /dev/null` 37991 37992 if test "x$new_path" = x; then 37993 # Oops. Which didn't find the executable. 37994 # The splitting of arguments from the executable at a space might have been incorrect, 37995 # since paths with space are more likely in Windows. Give it another try with the whole 37996 # argument. 37997 path="$complete" 37998 arguments="EOL" 37999 new_path="$path" 38000 38001 windows_path="$new_path" 38002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38003 unix_path=`$CYGPATH -u "$windows_path"` 38004 new_path="$unix_path" 38005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38007 new_path="$unix_path" 38008 fi 38009 38010 38011 new_path=`$WHICH "$new_path" 2> /dev/null` 38012 # bat and cmd files are not always considered executable in MSYS causing which 38013 # to not find them 38014 if test "x$new_path" = x \ 38015 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38016 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38017 new_path="$path" 38018 38019 windows_path="$new_path" 38020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38021 unix_path=`$CYGPATH -u "$windows_path"` 38022 new_path="$unix_path" 38023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38024 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38025 new_path="$unix_path" 38026 fi 38027 38028 fi 38029 38030 if test "x$new_path" = x; then 38031 # It's still not found. Now this is an unrecoverable error. 38032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 38033 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 38034 has_space=`$ECHO "$complete" | $GREP " "` 38035 if test "x$has_space" != x; then 38036 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38037 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38038 fi 38039 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 38040 fi 38041 fi 38042 38043 # Now new_path has a complete unix path to the binary 38044 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38045 # Keep paths in /bin as-is, but remove trailing .exe if any 38046 new_path="${new_path/%.exe/}" 38047 # Do not save /bin paths to all_fixpath_prefixes! 38048 else 38049 # Not in mixed or Windows style, start by that. 38050 new_path=`cmd //c echo $new_path` 38051 38052 input_path="$new_path" 38053 # Check if we need to convert this using DOS-style short mode. If the path 38054 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38055 # take no chances and rewrite it. 38056 # Note: m4 eats our [], so we need to use [ and ] instead. 38057 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38058 if test "x$has_forbidden_chars" != x; then 38059 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38060 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38061 fi 38062 38063 # Output is in $new_path 38064 38065 windows_path="$new_path" 38066 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38067 unix_path=`$CYGPATH -u "$windows_path"` 38068 new_path="$unix_path" 38069 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38070 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38071 new_path="$unix_path" 38072 fi 38073 38074 # remove trailing .exe if any 38075 new_path="${new_path/%.exe/}" 38076 38077 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38078 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38079 fi 38080 38081 else 38082 # We're on a unix platform. Hooray! :) 38083 # First separate the path from the arguments. This will split at the first 38084 # space. 38085 complete="$AS" 38086 path="${complete%% *}" 38087 tmp="$complete EOL" 38088 arguments="${tmp#* }" 38089 38090 # Cannot rely on the command "which" here since it doesn't always work. 38091 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38092 if test -z "$is_absolute_path"; then 38093 # Path to executable is not absolute. Find it. 38094 IFS_save="$IFS" 38095 IFS=: 38096 for p in $PATH; do 38097 if test -f "$p/$path" && test -x "$p/$path"; then 38098 new_path="$p/$path" 38099 break 38100 fi 38101 done 38102 IFS="$IFS_save" 38103 else 38104 # This is an absolute path, we can use it without further modifications. 38105 new_path="$path" 38106 fi 38107 38108 if test "x$new_path" = x; then 38109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 38110 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 38111 has_space=`$ECHO "$complete" | $GREP " "` 38112 if test "x$has_space" != x; then 38113 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38114 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38115 fi 38116 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 38117 fi 38118 fi 38119 38120 # Now join together the path and the arguments once again 38121 if test "x$arguments" != xEOL; then 38122 new_complete="$new_path ${arguments% *}" 38123 else 38124 new_complete="$new_path" 38125 fi 38126 38127 if test "x$complete" != "x$new_complete"; then 38128 AS="$new_complete" 38129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 38130 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 38131 fi 38132 fi 38133 38134 if test "x$AS" = x; then 38135 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 38136 fi 38137 else 38138 # FIXME: is this correct for microsoft? 38139 AS="$CC -c" 38140 fi 38141 38142 38143 # 38144 # Setup the archiver (AR) 38145 # 38146 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38147 # The corresponding ar tool is lib.exe (used to create static libraries) 38148 # Extract the first word of "lib", so it can be a program name with args. 38149 set dummy lib; ac_word=$2 38150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38151 $as_echo_n "checking for $ac_word... " >&6; } 38152 if ${ac_cv_prog_AR+:} false; then : 38153 $as_echo_n "(cached) " >&6 38154 else 38155 if test -n "$AR"; then 38156 ac_cv_prog_AR="$AR" # Let the user override the test. 38157 else 38158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38159 for as_dir in $PATH 38160 do 38161 IFS=$as_save_IFS 38162 test -z "$as_dir" && as_dir=. 38163 for ac_exec_ext in '' $ac_executable_extensions; do 38164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38165 ac_cv_prog_AR="lib" 38166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38167 break 2 38168 fi 38169 done 38170 done 38171 IFS=$as_save_IFS 38172 38173 fi 38174 fi 38175 AR=$ac_cv_prog_AR 38176 if test -n "$AR"; then 38177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38178 $as_echo "$AR" >&6; } 38179 else 38180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38181 $as_echo "no" >&6; } 38182 fi 38183 38184 38185 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 38186 38187 38188 # Publish this variable in the help. 38189 38190 38191 if [ -z "${AR+x}" ]; then 38192 # The variable is not set by user, try to locate tool using the code snippet 38193 if test -n "$ac_tool_prefix"; then 38194 for ac_prog in ar gcc-ar 38195 do 38196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38199 $as_echo_n "checking for $ac_word... " >&6; } 38200 if ${ac_cv_prog_AR+:} false; then : 38201 $as_echo_n "(cached) " >&6 38202 else 38203 if test -n "$AR"; then 38204 ac_cv_prog_AR="$AR" # Let the user override the test. 38205 else 38206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38207 for as_dir in $PATH 38208 do 38209 IFS=$as_save_IFS 38210 test -z "$as_dir" && as_dir=. 38211 for ac_exec_ext in '' $ac_executable_extensions; do 38212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38213 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38215 break 2 38216 fi 38217 done 38218 done 38219 IFS=$as_save_IFS 38220 38221 fi 38222 fi 38223 AR=$ac_cv_prog_AR 38224 if test -n "$AR"; then 38225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38226 $as_echo "$AR" >&6; } 38227 else 38228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38229 $as_echo "no" >&6; } 38230 fi 38231 38232 38233 test -n "$AR" && break 38234 done 38235 fi 38236 if test -z "$AR"; then 38237 ac_ct_AR=$AR 38238 for ac_prog in ar gcc-ar 38239 do 38240 # Extract the first word of "$ac_prog", so it can be a program name with args. 38241 set dummy $ac_prog; ac_word=$2 38242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38243 $as_echo_n "checking for $ac_word... " >&6; } 38244 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38245 $as_echo_n "(cached) " >&6 38246 else 38247 if test -n "$ac_ct_AR"; then 38248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38249 else 38250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38251 for as_dir in $PATH 38252 do 38253 IFS=$as_save_IFS 38254 test -z "$as_dir" && as_dir=. 38255 for ac_exec_ext in '' $ac_executable_extensions; do 38256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38257 ac_cv_prog_ac_ct_AR="$ac_prog" 38258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38259 break 2 38260 fi 38261 done 38262 done 38263 IFS=$as_save_IFS 38264 38265 fi 38266 fi 38267 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38268 if test -n "$ac_ct_AR"; then 38269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38270 $as_echo "$ac_ct_AR" >&6; } 38271 else 38272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38273 $as_echo "no" >&6; } 38274 fi 38275 38276 38277 test -n "$ac_ct_AR" && break 38278 done 38279 38280 if test "x$ac_ct_AR" = x; then 38281 AR="" 38282 else 38283 case $cross_compiling:$ac_tool_warned in 38284 yes:) 38285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38287 ac_tool_warned=yes ;; 38288 esac 38289 AR=$ac_ct_AR 38290 fi 38291 fi 38292 38293 else 38294 # The variable is set, but is it from the command line or the environment? 38295 38296 # Try to remove the string !AR! from our list. 38297 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38298 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38299 # If it failed, the variable was not from the command line. Ignore it, 38300 # but warn the user (except for BASH, which is always set by the calling BASH). 38301 if test "xAR" != xBASH; then 38302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38303 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38304 fi 38305 # Try to locate tool using the code snippet 38306 if test -n "$ac_tool_prefix"; then 38307 for ac_prog in ar gcc-ar 38308 do 38309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38312 $as_echo_n "checking for $ac_word... " >&6; } 38313 if ${ac_cv_prog_AR+:} false; then : 38314 $as_echo_n "(cached) " >&6 38315 else 38316 if test -n "$AR"; then 38317 ac_cv_prog_AR="$AR" # Let the user override the test. 38318 else 38319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38320 for as_dir in $PATH 38321 do 38322 IFS=$as_save_IFS 38323 test -z "$as_dir" && as_dir=. 38324 for ac_exec_ext in '' $ac_executable_extensions; do 38325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38326 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38328 break 2 38329 fi 38330 done 38331 done 38332 IFS=$as_save_IFS 38333 38334 fi 38335 fi 38336 AR=$ac_cv_prog_AR 38337 if test -n "$AR"; then 38338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38339 $as_echo "$AR" >&6; } 38340 else 38341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38342 $as_echo "no" >&6; } 38343 fi 38344 38345 38346 test -n "$AR" && break 38347 done 38348 fi 38349 if test -z "$AR"; then 38350 ac_ct_AR=$AR 38351 for ac_prog in ar gcc-ar 38352 do 38353 # Extract the first word of "$ac_prog", so it can be a program name with args. 38354 set dummy $ac_prog; ac_word=$2 38355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38356 $as_echo_n "checking for $ac_word... " >&6; } 38357 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38358 $as_echo_n "(cached) " >&6 38359 else 38360 if test -n "$ac_ct_AR"; then 38361 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38362 else 38363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38364 for as_dir in $PATH 38365 do 38366 IFS=$as_save_IFS 38367 test -z "$as_dir" && as_dir=. 38368 for ac_exec_ext in '' $ac_executable_extensions; do 38369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38370 ac_cv_prog_ac_ct_AR="$ac_prog" 38371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38372 break 2 38373 fi 38374 done 38375 done 38376 IFS=$as_save_IFS 38377 38378 fi 38379 fi 38380 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38381 if test -n "$ac_ct_AR"; then 38382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38383 $as_echo "$ac_ct_AR" >&6; } 38384 else 38385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38386 $as_echo "no" >&6; } 38387 fi 38388 38389 38390 test -n "$ac_ct_AR" && break 38391 done 38392 38393 if test "x$ac_ct_AR" = x; then 38394 AR="" 38395 else 38396 case $cross_compiling:$ac_tool_warned in 38397 yes:) 38398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38400 ac_tool_warned=yes ;; 38401 esac 38402 AR=$ac_ct_AR 38403 fi 38404 fi 38405 38406 else 38407 # If it succeeded, then it was overridden by the user. We will use it 38408 # for the tool. 38409 38410 # First remove it from the list of overridden variables, so we can test 38411 # for unknown variables in the end. 38412 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38413 38414 # Check if we try to supply an empty value 38415 if test "x$AR" = x; then 38416 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38417 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38419 $as_echo_n "checking for AR... " >&6; } 38420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38421 $as_echo "disabled" >&6; } 38422 else 38423 # Check if the provided tool contains a complete path. 38424 tool_specified="$AR" 38425 tool_basename="${tool_specified##*/}" 38426 if test "x$tool_basename" = "x$tool_specified"; then 38427 # A command without a complete path is provided, search $PATH. 38428 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38429 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38430 # Extract the first word of "$tool_basename", so it can be a program name with args. 38431 set dummy $tool_basename; ac_word=$2 38432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38433 $as_echo_n "checking for $ac_word... " >&6; } 38434 if ${ac_cv_path_AR+:} false; then : 38435 $as_echo_n "(cached) " >&6 38436 else 38437 case $AR in 38438 [\\/]* | ?:[\\/]*) 38439 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38440 ;; 38441 *) 38442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38443 for as_dir in $PATH 38444 do 38445 IFS=$as_save_IFS 38446 test -z "$as_dir" && as_dir=. 38447 for ac_exec_ext in '' $ac_executable_extensions; do 38448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38449 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38451 break 2 38452 fi 38453 done 38454 done 38455 IFS=$as_save_IFS 38456 38457 ;; 38458 esac 38459 fi 38460 AR=$ac_cv_path_AR 38461 if test -n "$AR"; then 38462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38463 $as_echo "$AR" >&6; } 38464 else 38465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38466 $as_echo "no" >&6; } 38467 fi 38468 38469 38470 if test "x$AR" = x; then 38471 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38472 fi 38473 else 38474 # Otherwise we believe it is a complete path. Use it as it is. 38475 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38476 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38478 $as_echo_n "checking for AR... " >&6; } 38479 if test ! -x "$tool_specified"; then 38480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38481 $as_echo "not found" >&6; } 38482 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38483 fi 38484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38485 $as_echo "$tool_specified" >&6; } 38486 fi 38487 fi 38488 fi 38489 38490 fi 38491 38492 38493 else 38494 38495 38496 # Publish this variable in the help. 38497 38498 38499 if [ -z "${AR+x}" ]; then 38500 # The variable is not set by user, try to locate tool using the code snippet 38501 if test -n "$ac_tool_prefix"; then 38502 for ac_prog in ar 38503 do 38504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38507 $as_echo_n "checking for $ac_word... " >&6; } 38508 if ${ac_cv_prog_AR+:} false; then : 38509 $as_echo_n "(cached) " >&6 38510 else 38511 if test -n "$AR"; then 38512 ac_cv_prog_AR="$AR" # Let the user override the test. 38513 else 38514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38515 for as_dir in $PATH 38516 do 38517 IFS=$as_save_IFS 38518 test -z "$as_dir" && as_dir=. 38519 for ac_exec_ext in '' $ac_executable_extensions; do 38520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38521 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38523 break 2 38524 fi 38525 done 38526 done 38527 IFS=$as_save_IFS 38528 38529 fi 38530 fi 38531 AR=$ac_cv_prog_AR 38532 if test -n "$AR"; then 38533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38534 $as_echo "$AR" >&6; } 38535 else 38536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38537 $as_echo "no" >&6; } 38538 fi 38539 38540 38541 test -n "$AR" && break 38542 done 38543 fi 38544 if test -z "$AR"; then 38545 ac_ct_AR=$AR 38546 for ac_prog in ar 38547 do 38548 # Extract the first word of "$ac_prog", so it can be a program name with args. 38549 set dummy $ac_prog; ac_word=$2 38550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38551 $as_echo_n "checking for $ac_word... " >&6; } 38552 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38553 $as_echo_n "(cached) " >&6 38554 else 38555 if test -n "$ac_ct_AR"; then 38556 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38557 else 38558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38559 for as_dir in $PATH 38560 do 38561 IFS=$as_save_IFS 38562 test -z "$as_dir" && as_dir=. 38563 for ac_exec_ext in '' $ac_executable_extensions; do 38564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38565 ac_cv_prog_ac_ct_AR="$ac_prog" 38566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38567 break 2 38568 fi 38569 done 38570 done 38571 IFS=$as_save_IFS 38572 38573 fi 38574 fi 38575 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38576 if test -n "$ac_ct_AR"; then 38577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38578 $as_echo "$ac_ct_AR" >&6; } 38579 else 38580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38581 $as_echo "no" >&6; } 38582 fi 38583 38584 38585 test -n "$ac_ct_AR" && break 38586 done 38587 38588 if test "x$ac_ct_AR" = x; then 38589 AR="" 38590 else 38591 case $cross_compiling:$ac_tool_warned in 38592 yes:) 38593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38595 ac_tool_warned=yes ;; 38596 esac 38597 AR=$ac_ct_AR 38598 fi 38599 fi 38600 38601 else 38602 # The variable is set, but is it from the command line or the environment? 38603 38604 # Try to remove the string !AR! from our list. 38605 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38606 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38607 # If it failed, the variable was not from the command line. Ignore it, 38608 # but warn the user (except for BASH, which is always set by the calling BASH). 38609 if test "xAR" != xBASH; then 38610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38611 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38612 fi 38613 # Try to locate tool using the code snippet 38614 if test -n "$ac_tool_prefix"; then 38615 for ac_prog in ar 38616 do 38617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38620 $as_echo_n "checking for $ac_word... " >&6; } 38621 if ${ac_cv_prog_AR+:} false; then : 38622 $as_echo_n "(cached) " >&6 38623 else 38624 if test -n "$AR"; then 38625 ac_cv_prog_AR="$AR" # Let the user override the test. 38626 else 38627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38628 for as_dir in $PATH 38629 do 38630 IFS=$as_save_IFS 38631 test -z "$as_dir" && as_dir=. 38632 for ac_exec_ext in '' $ac_executable_extensions; do 38633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38634 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38636 break 2 38637 fi 38638 done 38639 done 38640 IFS=$as_save_IFS 38641 38642 fi 38643 fi 38644 AR=$ac_cv_prog_AR 38645 if test -n "$AR"; then 38646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38647 $as_echo "$AR" >&6; } 38648 else 38649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38650 $as_echo "no" >&6; } 38651 fi 38652 38653 38654 test -n "$AR" && break 38655 done 38656 fi 38657 if test -z "$AR"; then 38658 ac_ct_AR=$AR 38659 for ac_prog in ar 38660 do 38661 # Extract the first word of "$ac_prog", so it can be a program name with args. 38662 set dummy $ac_prog; ac_word=$2 38663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38664 $as_echo_n "checking for $ac_word... " >&6; } 38665 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38666 $as_echo_n "(cached) " >&6 38667 else 38668 if test -n "$ac_ct_AR"; then 38669 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38670 else 38671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38672 for as_dir in $PATH 38673 do 38674 IFS=$as_save_IFS 38675 test -z "$as_dir" && as_dir=. 38676 for ac_exec_ext in '' $ac_executable_extensions; do 38677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38678 ac_cv_prog_ac_ct_AR="$ac_prog" 38679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38680 break 2 38681 fi 38682 done 38683 done 38684 IFS=$as_save_IFS 38685 38686 fi 38687 fi 38688 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38689 if test -n "$ac_ct_AR"; then 38690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38691 $as_echo "$ac_ct_AR" >&6; } 38692 else 38693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38694 $as_echo "no" >&6; } 38695 fi 38696 38697 38698 test -n "$ac_ct_AR" && break 38699 done 38700 38701 if test "x$ac_ct_AR" = x; then 38702 AR="" 38703 else 38704 case $cross_compiling:$ac_tool_warned in 38705 yes:) 38706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38708 ac_tool_warned=yes ;; 38709 esac 38710 AR=$ac_ct_AR 38711 fi 38712 fi 38713 38714 else 38715 # If it succeeded, then it was overridden by the user. We will use it 38716 # for the tool. 38717 38718 # First remove it from the list of overridden variables, so we can test 38719 # for unknown variables in the end. 38720 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38721 38722 # Check if we try to supply an empty value 38723 if test "x$AR" = x; then 38724 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38725 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38727 $as_echo_n "checking for AR... " >&6; } 38728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38729 $as_echo "disabled" >&6; } 38730 else 38731 # Check if the provided tool contains a complete path. 38732 tool_specified="$AR" 38733 tool_basename="${tool_specified##*/}" 38734 if test "x$tool_basename" = "x$tool_specified"; then 38735 # A command without a complete path is provided, search $PATH. 38736 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38737 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38738 # Extract the first word of "$tool_basename", so it can be a program name with args. 38739 set dummy $tool_basename; ac_word=$2 38740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38741 $as_echo_n "checking for $ac_word... " >&6; } 38742 if ${ac_cv_path_AR+:} false; then : 38743 $as_echo_n "(cached) " >&6 38744 else 38745 case $AR in 38746 [\\/]* | ?:[\\/]*) 38747 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38748 ;; 38749 *) 38750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38751 for as_dir in $PATH 38752 do 38753 IFS=$as_save_IFS 38754 test -z "$as_dir" && as_dir=. 38755 for ac_exec_ext in '' $ac_executable_extensions; do 38756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38757 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38759 break 2 38760 fi 38761 done 38762 done 38763 IFS=$as_save_IFS 38764 38765 ;; 38766 esac 38767 fi 38768 AR=$ac_cv_path_AR 38769 if test -n "$AR"; then 38770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38771 $as_echo "$AR" >&6; } 38772 else 38773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38774 $as_echo "no" >&6; } 38775 fi 38776 38777 38778 if test "x$AR" = x; then 38779 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38780 fi 38781 else 38782 # Otherwise we believe it is a complete path. Use it as it is. 38783 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38784 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38786 $as_echo_n "checking for AR... " >&6; } 38787 if test ! -x "$tool_specified"; then 38788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38789 $as_echo "not found" >&6; } 38790 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38791 fi 38792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38793 $as_echo "$tool_specified" >&6; } 38794 fi 38795 fi 38796 fi 38797 38798 fi 38799 38800 38801 fi 38802 38803 # Only process if variable expands to non-empty 38804 38805 if test "x$AR" != x; then 38806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38807 38808 # First separate the path from the arguments. This will split at the first 38809 # space. 38810 complete="$AR" 38811 path="${complete%% *}" 38812 tmp="$complete EOL" 38813 arguments="${tmp#* }" 38814 38815 # Input might be given as Windows format, start by converting to 38816 # unix format. 38817 new_path=`$CYGPATH -u "$path"` 38818 38819 # Now try to locate executable using which 38820 new_path=`$WHICH "$new_path" 2> /dev/null` 38821 # bat and cmd files are not always considered executable in cygwin causing which 38822 # to not find them 38823 if test "x$new_path" = x \ 38824 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38825 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38826 new_path=`$CYGPATH -u "$path"` 38827 fi 38828 if test "x$new_path" = x; then 38829 # Oops. Which didn't find the executable. 38830 # The splitting of arguments from the executable at a space might have been incorrect, 38831 # since paths with space are more likely in Windows. Give it another try with the whole 38832 # argument. 38833 path="$complete" 38834 arguments="EOL" 38835 new_path=`$CYGPATH -u "$path"` 38836 new_path=`$WHICH "$new_path" 2> /dev/null` 38837 # bat and cmd files are not always considered executable in cygwin causing which 38838 # to not find them 38839 if test "x$new_path" = x \ 38840 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38841 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38842 new_path=`$CYGPATH -u "$path"` 38843 fi 38844 if test "x$new_path" = x; then 38845 # It's still not found. Now this is an unrecoverable error. 38846 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38847 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38848 has_space=`$ECHO "$complete" | $GREP " "` 38849 if test "x$has_space" != x; then 38850 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38851 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38852 fi 38853 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38854 fi 38855 fi 38856 38857 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38858 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38859 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38860 # "foo.exe" is OK but "foo" is an error. 38861 # 38862 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38863 # It is also a way to make sure we got the proper file name for the real test later on. 38864 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38865 if test "x$test_shortpath" = x; then 38866 # Short path failed, file does not exist as specified. 38867 # Try adding .exe or .cmd 38868 if test -f "${new_path}.exe"; then 38869 input_to_shortpath="${new_path}.exe" 38870 elif test -f "${new_path}.cmd"; then 38871 input_to_shortpath="${new_path}.cmd" 38872 else 38873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 38874 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 38875 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38876 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38877 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38878 fi 38879 else 38880 input_to_shortpath="$new_path" 38881 fi 38882 38883 # Call helper function which possibly converts this using DOS-style short mode. 38884 # If so, the updated path is stored in $new_path. 38885 new_path="$input_to_shortpath" 38886 38887 input_path="$input_to_shortpath" 38888 # Check if we need to convert this using DOS-style short mode. If the path 38889 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38890 # take no chances and rewrite it. 38891 # Note: m4 eats our [], so we need to use [ and ] instead. 38892 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38893 if test "x$has_forbidden_chars" != x; then 38894 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38895 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38896 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38897 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38898 # Going to short mode and back again did indeed matter. Since short mode is 38899 # case insensitive, let's make it lowercase to improve readability. 38900 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38901 # Now convert it back to Unix-style (cygpath) 38902 input_path=`$CYGPATH -u "$shortmode_path"` 38903 new_path="$input_path" 38904 fi 38905 fi 38906 38907 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38908 if test "x$test_cygdrive_prefix" = x; then 38909 # As a simple fix, exclude /usr/bin since it's not a real path. 38910 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38911 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38912 # a path prefixed by /cygdrive for fixpath to work. 38913 new_path="$CYGWIN_ROOT_PATH$input_path" 38914 fi 38915 fi 38916 38917 # remove trailing .exe if any 38918 new_path="${new_path/%.exe/}" 38919 38920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38921 38922 # First separate the path from the arguments. This will split at the first 38923 # space. 38924 complete="$AR" 38925 path="${complete%% *}" 38926 tmp="$complete EOL" 38927 arguments="${tmp#* }" 38928 38929 # Input might be given as Windows format, start by converting to 38930 # unix format. 38931 new_path="$path" 38932 38933 windows_path="$new_path" 38934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38935 unix_path=`$CYGPATH -u "$windows_path"` 38936 new_path="$unix_path" 38937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38938 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38939 new_path="$unix_path" 38940 fi 38941 38942 38943 # Now try to locate executable using which 38944 new_path=`$WHICH "$new_path" 2> /dev/null` 38945 38946 if test "x$new_path" = x; then 38947 # Oops. Which didn't find the executable. 38948 # The splitting of arguments from the executable at a space might have been incorrect, 38949 # since paths with space are more likely in Windows. Give it another try with the whole 38950 # argument. 38951 path="$complete" 38952 arguments="EOL" 38953 new_path="$path" 38954 38955 windows_path="$new_path" 38956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38957 unix_path=`$CYGPATH -u "$windows_path"` 38958 new_path="$unix_path" 38959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38960 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38961 new_path="$unix_path" 38962 fi 38963 38964 38965 new_path=`$WHICH "$new_path" 2> /dev/null` 38966 # bat and cmd files are not always considered executable in MSYS causing which 38967 # to not find them 38968 if test "x$new_path" = x \ 38969 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38970 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38971 new_path="$path" 38972 38973 windows_path="$new_path" 38974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38975 unix_path=`$CYGPATH -u "$windows_path"` 38976 new_path="$unix_path" 38977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38978 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38979 new_path="$unix_path" 38980 fi 38981 38982 fi 38983 38984 if test "x$new_path" = x; then 38985 # It's still not found. Now this is an unrecoverable error. 38986 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38987 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38988 has_space=`$ECHO "$complete" | $GREP " "` 38989 if test "x$has_space" != x; then 38990 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38991 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38992 fi 38993 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38994 fi 38995 fi 38996 38997 # Now new_path has a complete unix path to the binary 38998 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38999 # Keep paths in /bin as-is, but remove trailing .exe if any 39000 new_path="${new_path/%.exe/}" 39001 # Do not save /bin paths to all_fixpath_prefixes! 39002 else 39003 # Not in mixed or Windows style, start by that. 39004 new_path=`cmd //c echo $new_path` 39005 39006 input_path="$new_path" 39007 # Check if we need to convert this using DOS-style short mode. If the path 39008 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39009 # take no chances and rewrite it. 39010 # Note: m4 eats our [], so we need to use [ and ] instead. 39011 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39012 if test "x$has_forbidden_chars" != x; then 39013 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39014 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39015 fi 39016 39017 # Output is in $new_path 39018 39019 windows_path="$new_path" 39020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39021 unix_path=`$CYGPATH -u "$windows_path"` 39022 new_path="$unix_path" 39023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39024 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39025 new_path="$unix_path" 39026 fi 39027 39028 # remove trailing .exe if any 39029 new_path="${new_path/%.exe/}" 39030 39031 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39032 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39033 fi 39034 39035 else 39036 # We're on a unix platform. Hooray! :) 39037 # First separate the path from the arguments. This will split at the first 39038 # space. 39039 complete="$AR" 39040 path="${complete%% *}" 39041 tmp="$complete EOL" 39042 arguments="${tmp#* }" 39043 39044 # Cannot rely on the command "which" here since it doesn't always work. 39045 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39046 if test -z "$is_absolute_path"; then 39047 # Path to executable is not absolute. Find it. 39048 IFS_save="$IFS" 39049 IFS=: 39050 for p in $PATH; do 39051 if test -f "$p/$path" && test -x "$p/$path"; then 39052 new_path="$p/$path" 39053 break 39054 fi 39055 done 39056 IFS="$IFS_save" 39057 else 39058 # This is an absolute path, we can use it without further modifications. 39059 new_path="$path" 39060 fi 39061 39062 if test "x$new_path" = x; then 39063 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 39064 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 39065 has_space=`$ECHO "$complete" | $GREP " "` 39066 if test "x$has_space" != x; then 39067 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39068 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39069 fi 39070 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 39071 fi 39072 fi 39073 39074 # Now join together the path and the arguments once again 39075 if test "x$arguments" != xEOL; then 39076 new_complete="$new_path ${arguments% *}" 39077 else 39078 new_complete="$new_path" 39079 fi 39080 39081 if test "x$complete" != "x$new_complete"; then 39082 AR="$new_complete" 39083 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 39084 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 39085 fi 39086 fi 39087 39088 39089 39090 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 39091 39092 39093 # Publish this variable in the help. 39094 39095 39096 if [ -z "${LIPO+x}" ]; then 39097 # The variable is not set by user, try to locate tool using the code snippet 39098 for ac_prog in lipo 39099 do 39100 # Extract the first word of "$ac_prog", so it can be a program name with args. 39101 set dummy $ac_prog; ac_word=$2 39102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39103 $as_echo_n "checking for $ac_word... " >&6; } 39104 if ${ac_cv_path_LIPO+:} false; then : 39105 $as_echo_n "(cached) " >&6 39106 else 39107 case $LIPO in 39108 [\\/]* | ?:[\\/]*) 39109 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39110 ;; 39111 *) 39112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39113 for as_dir in $PATH 39114 do 39115 IFS=$as_save_IFS 39116 test -z "$as_dir" && as_dir=. 39117 for ac_exec_ext in '' $ac_executable_extensions; do 39118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39119 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39121 break 2 39122 fi 39123 done 39124 done 39125 IFS=$as_save_IFS 39126 39127 ;; 39128 esac 39129 fi 39130 LIPO=$ac_cv_path_LIPO 39131 if test -n "$LIPO"; then 39132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39133 $as_echo "$LIPO" >&6; } 39134 else 39135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39136 $as_echo "no" >&6; } 39137 fi 39138 39139 39140 test -n "$LIPO" && break 39141 done 39142 39143 else 39144 # The variable is set, but is it from the command line or the environment? 39145 39146 # Try to remove the string !LIPO! from our list. 39147 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 39148 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39149 # If it failed, the variable was not from the command line. Ignore it, 39150 # but warn the user (except for BASH, which is always set by the calling BASH). 39151 if test "xLIPO" != xBASH; then 39152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 39153 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 39154 fi 39155 # Try to locate tool using the code snippet 39156 for ac_prog in lipo 39157 do 39158 # Extract the first word of "$ac_prog", so it can be a program name with args. 39159 set dummy $ac_prog; ac_word=$2 39160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39161 $as_echo_n "checking for $ac_word... " >&6; } 39162 if ${ac_cv_path_LIPO+:} false; then : 39163 $as_echo_n "(cached) " >&6 39164 else 39165 case $LIPO in 39166 [\\/]* | ?:[\\/]*) 39167 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39168 ;; 39169 *) 39170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39171 for as_dir in $PATH 39172 do 39173 IFS=$as_save_IFS 39174 test -z "$as_dir" && as_dir=. 39175 for ac_exec_ext in '' $ac_executable_extensions; do 39176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39177 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39179 break 2 39180 fi 39181 done 39182 done 39183 IFS=$as_save_IFS 39184 39185 ;; 39186 esac 39187 fi 39188 LIPO=$ac_cv_path_LIPO 39189 if test -n "$LIPO"; then 39190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39191 $as_echo "$LIPO" >&6; } 39192 else 39193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39194 $as_echo "no" >&6; } 39195 fi 39196 39197 39198 test -n "$LIPO" && break 39199 done 39200 39201 else 39202 # If it succeeded, then it was overridden by the user. We will use it 39203 # for the tool. 39204 39205 # First remove it from the list of overridden variables, so we can test 39206 # for unknown variables in the end. 39207 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39208 39209 # Check if we try to supply an empty value 39210 if test "x$LIPO" = x; then 39211 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 39212 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 39213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39214 $as_echo_n "checking for LIPO... " >&6; } 39215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39216 $as_echo "disabled" >&6; } 39217 else 39218 # Check if the provided tool contains a complete path. 39219 tool_specified="$LIPO" 39220 tool_basename="${tool_specified##*/}" 39221 if test "x$tool_basename" = "x$tool_specified"; then 39222 # A command without a complete path is provided, search $PATH. 39223 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 39224 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 39225 # Extract the first word of "$tool_basename", so it can be a program name with args. 39226 set dummy $tool_basename; ac_word=$2 39227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39228 $as_echo_n "checking for $ac_word... " >&6; } 39229 if ${ac_cv_path_LIPO+:} false; then : 39230 $as_echo_n "(cached) " >&6 39231 else 39232 case $LIPO in 39233 [\\/]* | ?:[\\/]*) 39234 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39235 ;; 39236 *) 39237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39238 for as_dir in $PATH 39239 do 39240 IFS=$as_save_IFS 39241 test -z "$as_dir" && as_dir=. 39242 for ac_exec_ext in '' $ac_executable_extensions; do 39243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39244 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39246 break 2 39247 fi 39248 done 39249 done 39250 IFS=$as_save_IFS 39251 39252 ;; 39253 esac 39254 fi 39255 LIPO=$ac_cv_path_LIPO 39256 if test -n "$LIPO"; then 39257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39258 $as_echo "$LIPO" >&6; } 39259 else 39260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39261 $as_echo "no" >&6; } 39262 fi 39263 39264 39265 if test "x$LIPO" = x; then 39266 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39267 fi 39268 else 39269 # Otherwise we believe it is a complete path. Use it as it is. 39270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 39271 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 39272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39273 $as_echo_n "checking for LIPO... " >&6; } 39274 if test ! -x "$tool_specified"; then 39275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39276 $as_echo "not found" >&6; } 39277 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 39278 fi 39279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39280 $as_echo "$tool_specified" >&6; } 39281 fi 39282 fi 39283 fi 39284 39285 fi 39286 39287 39288 39289 # Only process if variable expands to non-empty 39290 39291 if test "x$LIPO" != x; then 39292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39293 39294 # First separate the path from the arguments. This will split at the first 39295 # space. 39296 complete="$LIPO" 39297 path="${complete%% *}" 39298 tmp="$complete EOL" 39299 arguments="${tmp#* }" 39300 39301 # Input might be given as Windows format, start by converting to 39302 # unix format. 39303 new_path=`$CYGPATH -u "$path"` 39304 39305 # Now try to locate executable using which 39306 new_path=`$WHICH "$new_path" 2> /dev/null` 39307 # bat and cmd files are not always considered executable in cygwin causing which 39308 # to not find them 39309 if test "x$new_path" = x \ 39310 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39311 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39312 new_path=`$CYGPATH -u "$path"` 39313 fi 39314 if test "x$new_path" = x; then 39315 # Oops. Which didn't find the executable. 39316 # The splitting of arguments from the executable at a space might have been incorrect, 39317 # since paths with space are more likely in Windows. Give it another try with the whole 39318 # argument. 39319 path="$complete" 39320 arguments="EOL" 39321 new_path=`$CYGPATH -u "$path"` 39322 new_path=`$WHICH "$new_path" 2> /dev/null` 39323 # bat and cmd files are not always considered executable in cygwin causing which 39324 # to not find them 39325 if test "x$new_path" = x \ 39326 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39327 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39328 new_path=`$CYGPATH -u "$path"` 39329 fi 39330 if test "x$new_path" = x; then 39331 # It's still not found. Now this is an unrecoverable error. 39332 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39333 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39334 has_space=`$ECHO "$complete" | $GREP " "` 39335 if test "x$has_space" != x; then 39336 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39337 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39338 fi 39339 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39340 fi 39341 fi 39342 39343 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39344 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39345 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39346 # "foo.exe" is OK but "foo" is an error. 39347 # 39348 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39349 # It is also a way to make sure we got the proper file name for the real test later on. 39350 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39351 if test "x$test_shortpath" = x; then 39352 # Short path failed, file does not exist as specified. 39353 # Try adding .exe or .cmd 39354 if test -f "${new_path}.exe"; then 39355 input_to_shortpath="${new_path}.exe" 39356 elif test -f "${new_path}.cmd"; then 39357 input_to_shortpath="${new_path}.cmd" 39358 else 39359 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 39360 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 39361 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39362 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39363 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39364 fi 39365 else 39366 input_to_shortpath="$new_path" 39367 fi 39368 39369 # Call helper function which possibly converts this using DOS-style short mode. 39370 # If so, the updated path is stored in $new_path. 39371 new_path="$input_to_shortpath" 39372 39373 input_path="$input_to_shortpath" 39374 # Check if we need to convert this using DOS-style short mode. If the path 39375 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39376 # take no chances and rewrite it. 39377 # Note: m4 eats our [], so we need to use [ and ] instead. 39378 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39379 if test "x$has_forbidden_chars" != x; then 39380 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39381 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39382 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39383 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39384 # Going to short mode and back again did indeed matter. Since short mode is 39385 # case insensitive, let's make it lowercase to improve readability. 39386 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39387 # Now convert it back to Unix-style (cygpath) 39388 input_path=`$CYGPATH -u "$shortmode_path"` 39389 new_path="$input_path" 39390 fi 39391 fi 39392 39393 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39394 if test "x$test_cygdrive_prefix" = x; then 39395 # As a simple fix, exclude /usr/bin since it's not a real path. 39396 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39397 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39398 # a path prefixed by /cygdrive for fixpath to work. 39399 new_path="$CYGWIN_ROOT_PATH$input_path" 39400 fi 39401 fi 39402 39403 # remove trailing .exe if any 39404 new_path="${new_path/%.exe/}" 39405 39406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39407 39408 # First separate the path from the arguments. This will split at the first 39409 # space. 39410 complete="$LIPO" 39411 path="${complete%% *}" 39412 tmp="$complete EOL" 39413 arguments="${tmp#* }" 39414 39415 # Input might be given as Windows format, start by converting to 39416 # unix format. 39417 new_path="$path" 39418 39419 windows_path="$new_path" 39420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39421 unix_path=`$CYGPATH -u "$windows_path"` 39422 new_path="$unix_path" 39423 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39424 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39425 new_path="$unix_path" 39426 fi 39427 39428 39429 # Now try to locate executable using which 39430 new_path=`$WHICH "$new_path" 2> /dev/null` 39431 39432 if test "x$new_path" = x; then 39433 # Oops. Which didn't find the executable. 39434 # The splitting of arguments from the executable at a space might have been incorrect, 39435 # since paths with space are more likely in Windows. Give it another try with the whole 39436 # argument. 39437 path="$complete" 39438 arguments="EOL" 39439 new_path="$path" 39440 39441 windows_path="$new_path" 39442 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39443 unix_path=`$CYGPATH -u "$windows_path"` 39444 new_path="$unix_path" 39445 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39446 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39447 new_path="$unix_path" 39448 fi 39449 39450 39451 new_path=`$WHICH "$new_path" 2> /dev/null` 39452 # bat and cmd files are not always considered executable in MSYS causing which 39453 # to not find them 39454 if test "x$new_path" = x \ 39455 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39456 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39457 new_path="$path" 39458 39459 windows_path="$new_path" 39460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39461 unix_path=`$CYGPATH -u "$windows_path"` 39462 new_path="$unix_path" 39463 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39464 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39465 new_path="$unix_path" 39466 fi 39467 39468 fi 39469 39470 if test "x$new_path" = x; then 39471 # It's still not found. Now this is an unrecoverable error. 39472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39473 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39474 has_space=`$ECHO "$complete" | $GREP " "` 39475 if test "x$has_space" != x; then 39476 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39477 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39478 fi 39479 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39480 fi 39481 fi 39482 39483 # Now new_path has a complete unix path to the binary 39484 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39485 # Keep paths in /bin as-is, but remove trailing .exe if any 39486 new_path="${new_path/%.exe/}" 39487 # Do not save /bin paths to all_fixpath_prefixes! 39488 else 39489 # Not in mixed or Windows style, start by that. 39490 new_path=`cmd //c echo $new_path` 39491 39492 input_path="$new_path" 39493 # Check if we need to convert this using DOS-style short mode. If the path 39494 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39495 # take no chances and rewrite it. 39496 # Note: m4 eats our [], so we need to use [ and ] instead. 39497 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39498 if test "x$has_forbidden_chars" != x; then 39499 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39500 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39501 fi 39502 39503 # Output is in $new_path 39504 39505 windows_path="$new_path" 39506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39507 unix_path=`$CYGPATH -u "$windows_path"` 39508 new_path="$unix_path" 39509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39510 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39511 new_path="$unix_path" 39512 fi 39513 39514 # remove trailing .exe if any 39515 new_path="${new_path/%.exe/}" 39516 39517 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39518 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39519 fi 39520 39521 else 39522 # We're on a unix platform. Hooray! :) 39523 # First separate the path from the arguments. This will split at the first 39524 # space. 39525 complete="$LIPO" 39526 path="${complete%% *}" 39527 tmp="$complete EOL" 39528 arguments="${tmp#* }" 39529 39530 # Cannot rely on the command "which" here since it doesn't always work. 39531 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39532 if test -z "$is_absolute_path"; then 39533 # Path to executable is not absolute. Find it. 39534 IFS_save="$IFS" 39535 IFS=: 39536 for p in $PATH; do 39537 if test -f "$p/$path" && test -x "$p/$path"; then 39538 new_path="$p/$path" 39539 break 39540 fi 39541 done 39542 IFS="$IFS_save" 39543 else 39544 # This is an absolute path, we can use it without further modifications. 39545 new_path="$path" 39546 fi 39547 39548 if test "x$new_path" = x; then 39549 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39550 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39551 has_space=`$ECHO "$complete" | $GREP " "` 39552 if test "x$has_space" != x; then 39553 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39554 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39555 fi 39556 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39557 fi 39558 fi 39559 39560 # Now join together the path and the arguments once again 39561 if test "x$arguments" != xEOL; then 39562 new_complete="$new_path ${arguments% *}" 39563 else 39564 new_complete="$new_path" 39565 fi 39566 39567 if test "x$complete" != "x$new_complete"; then 39568 LIPO="$new_complete" 39569 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 39570 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 39571 fi 39572 fi 39573 39574 fi 39575 39576 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 39577 # Extract the first word of "mt", so it can be a program name with args. 39578 set dummy mt; ac_word=$2 39579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39580 $as_echo_n "checking for $ac_word... " >&6; } 39581 if ${ac_cv_prog_MT+:} false; then : 39582 $as_echo_n "(cached) " >&6 39583 else 39584 if test -n "$MT"; then 39585 ac_cv_prog_MT="$MT" # Let the user override the test. 39586 else 39587 ac_prog_rejected=no 39588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39589 for as_dir in $PATH 39590 do 39591 IFS=$as_save_IFS 39592 test -z "$as_dir" && as_dir=. 39593 for ac_exec_ext in '' $ac_executable_extensions; do 39594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39595 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 39596 ac_prog_rejected=yes 39597 continue 39598 fi 39599 ac_cv_prog_MT="mt" 39600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39601 break 2 39602 fi 39603 done 39604 done 39605 IFS=$as_save_IFS 39606 39607 if test $ac_prog_rejected = yes; then 39608 # We found a bogon in the path, so make sure we never use it. 39609 set dummy $ac_cv_prog_MT 39610 shift 39611 if test $# != 0; then 39612 # We chose a different compiler from the bogus one. 39613 # However, it has the same basename, so the bogon will be chosen 39614 # first if we set MT to just the basename; use the full file name. 39615 shift 39616 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 39617 fi 39618 fi 39619 fi 39620 fi 39621 MT=$ac_cv_prog_MT 39622 if test -n "$MT"; then 39623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 39624 $as_echo "$MT" >&6; } 39625 else 39626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39627 $as_echo "no" >&6; } 39628 fi 39629 39630 39631 39632 # Only process if variable expands to non-empty 39633 39634 if test "x$MT" != x; then 39635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39636 39637 # First separate the path from the arguments. This will split at the first 39638 # space. 39639 complete="$MT" 39640 path="${complete%% *}" 39641 tmp="$complete EOL" 39642 arguments="${tmp#* }" 39643 39644 # Input might be given as Windows format, start by converting to 39645 # unix format. 39646 new_path=`$CYGPATH -u "$path"` 39647 39648 # Now try to locate executable using which 39649 new_path=`$WHICH "$new_path" 2> /dev/null` 39650 # bat and cmd files are not always considered executable in cygwin causing which 39651 # to not find them 39652 if test "x$new_path" = x \ 39653 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39654 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39655 new_path=`$CYGPATH -u "$path"` 39656 fi 39657 if test "x$new_path" = x; then 39658 # Oops. Which didn't find the executable. 39659 # The splitting of arguments from the executable at a space might have been incorrect, 39660 # since paths with space are more likely in Windows. Give it another try with the whole 39661 # argument. 39662 path="$complete" 39663 arguments="EOL" 39664 new_path=`$CYGPATH -u "$path"` 39665 new_path=`$WHICH "$new_path" 2> /dev/null` 39666 # bat and cmd files are not always considered executable in cygwin causing which 39667 # to not find them 39668 if test "x$new_path" = x \ 39669 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39670 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39671 new_path=`$CYGPATH -u "$path"` 39672 fi 39673 if test "x$new_path" = x; then 39674 # It's still not found. Now this is an unrecoverable error. 39675 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39676 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39677 has_space=`$ECHO "$complete" | $GREP " "` 39678 if test "x$has_space" != x; then 39679 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39680 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39681 fi 39682 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39683 fi 39684 fi 39685 39686 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39687 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39688 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39689 # "foo.exe" is OK but "foo" is an error. 39690 # 39691 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39692 # It is also a way to make sure we got the proper file name for the real test later on. 39693 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39694 if test "x$test_shortpath" = x; then 39695 # Short path failed, file does not exist as specified. 39696 # Try adding .exe or .cmd 39697 if test -f "${new_path}.exe"; then 39698 input_to_shortpath="${new_path}.exe" 39699 elif test -f "${new_path}.cmd"; then 39700 input_to_shortpath="${new_path}.cmd" 39701 else 39702 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 39703 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 39704 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39705 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39706 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39707 fi 39708 else 39709 input_to_shortpath="$new_path" 39710 fi 39711 39712 # Call helper function which possibly converts this using DOS-style short mode. 39713 # If so, the updated path is stored in $new_path. 39714 new_path="$input_to_shortpath" 39715 39716 input_path="$input_to_shortpath" 39717 # Check if we need to convert this using DOS-style short mode. If the path 39718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39719 # take no chances and rewrite it. 39720 # Note: m4 eats our [], so we need to use [ and ] instead. 39721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39722 if test "x$has_forbidden_chars" != x; then 39723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39724 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39725 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39726 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39727 # Going to short mode and back again did indeed matter. Since short mode is 39728 # case insensitive, let's make it lowercase to improve readability. 39729 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39730 # Now convert it back to Unix-style (cygpath) 39731 input_path=`$CYGPATH -u "$shortmode_path"` 39732 new_path="$input_path" 39733 fi 39734 fi 39735 39736 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39737 if test "x$test_cygdrive_prefix" = x; then 39738 # As a simple fix, exclude /usr/bin since it's not a real path. 39739 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39740 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39741 # a path prefixed by /cygdrive for fixpath to work. 39742 new_path="$CYGWIN_ROOT_PATH$input_path" 39743 fi 39744 fi 39745 39746 # remove trailing .exe if any 39747 new_path="${new_path/%.exe/}" 39748 39749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39750 39751 # First separate the path from the arguments. This will split at the first 39752 # space. 39753 complete="$MT" 39754 path="${complete%% *}" 39755 tmp="$complete EOL" 39756 arguments="${tmp#* }" 39757 39758 # Input might be given as Windows format, start by converting to 39759 # unix format. 39760 new_path="$path" 39761 39762 windows_path="$new_path" 39763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39764 unix_path=`$CYGPATH -u "$windows_path"` 39765 new_path="$unix_path" 39766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39767 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39768 new_path="$unix_path" 39769 fi 39770 39771 39772 # Now try to locate executable using which 39773 new_path=`$WHICH "$new_path" 2> /dev/null` 39774 39775 if test "x$new_path" = x; then 39776 # Oops. Which didn't find the executable. 39777 # The splitting of arguments from the executable at a space might have been incorrect, 39778 # since paths with space are more likely in Windows. Give it another try with the whole 39779 # argument. 39780 path="$complete" 39781 arguments="EOL" 39782 new_path="$path" 39783 39784 windows_path="$new_path" 39785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39786 unix_path=`$CYGPATH -u "$windows_path"` 39787 new_path="$unix_path" 39788 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39789 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39790 new_path="$unix_path" 39791 fi 39792 39793 39794 new_path=`$WHICH "$new_path" 2> /dev/null` 39795 # bat and cmd files are not always considered executable in MSYS causing which 39796 # to not find them 39797 if test "x$new_path" = x \ 39798 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39799 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39800 new_path="$path" 39801 39802 windows_path="$new_path" 39803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39804 unix_path=`$CYGPATH -u "$windows_path"` 39805 new_path="$unix_path" 39806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39807 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39808 new_path="$unix_path" 39809 fi 39810 39811 fi 39812 39813 if test "x$new_path" = x; then 39814 # It's still not found. Now this is an unrecoverable error. 39815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39816 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39817 has_space=`$ECHO "$complete" | $GREP " "` 39818 if test "x$has_space" != x; then 39819 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39820 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39821 fi 39822 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39823 fi 39824 fi 39825 39826 # Now new_path has a complete unix path to the binary 39827 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39828 # Keep paths in /bin as-is, but remove trailing .exe if any 39829 new_path="${new_path/%.exe/}" 39830 # Do not save /bin paths to all_fixpath_prefixes! 39831 else 39832 # Not in mixed or Windows style, start by that. 39833 new_path=`cmd //c echo $new_path` 39834 39835 input_path="$new_path" 39836 # Check if we need to convert this using DOS-style short mode. If the path 39837 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39838 # take no chances and rewrite it. 39839 # Note: m4 eats our [], so we need to use [ and ] instead. 39840 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39841 if test "x$has_forbidden_chars" != x; then 39842 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39843 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39844 fi 39845 39846 # Output is in $new_path 39847 39848 windows_path="$new_path" 39849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39850 unix_path=`$CYGPATH -u "$windows_path"` 39851 new_path="$unix_path" 39852 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39853 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39854 new_path="$unix_path" 39855 fi 39856 39857 # remove trailing .exe if any 39858 new_path="${new_path/%.exe/}" 39859 39860 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39861 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39862 fi 39863 39864 else 39865 # We're on a unix platform. Hooray! :) 39866 # First separate the path from the arguments. This will split at the first 39867 # space. 39868 complete="$MT" 39869 path="${complete%% *}" 39870 tmp="$complete EOL" 39871 arguments="${tmp#* }" 39872 39873 # Cannot rely on the command "which" here since it doesn't always work. 39874 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39875 if test -z "$is_absolute_path"; then 39876 # Path to executable is not absolute. Find it. 39877 IFS_save="$IFS" 39878 IFS=: 39879 for p in $PATH; do 39880 if test -f "$p/$path" && test -x "$p/$path"; then 39881 new_path="$p/$path" 39882 break 39883 fi 39884 done 39885 IFS="$IFS_save" 39886 else 39887 # This is an absolute path, we can use it without further modifications. 39888 new_path="$path" 39889 fi 39890 39891 if test "x$new_path" = x; then 39892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 39893 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 39894 has_space=`$ECHO "$complete" | $GREP " "` 39895 if test "x$has_space" != x; then 39896 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39897 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39898 fi 39899 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 39900 fi 39901 fi 39902 39903 # Now join together the path and the arguments once again 39904 if test "x$arguments" != xEOL; then 39905 new_complete="$new_path ${arguments% *}" 39906 else 39907 new_complete="$new_path" 39908 fi 39909 39910 if test "x$complete" != "x$new_complete"; then 39911 MT="$new_complete" 39912 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 39913 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 39914 fi 39915 fi 39916 39917 # Setup the resource compiler (RC) 39918 # Extract the first word of "rc", so it can be a program name with args. 39919 set dummy rc; ac_word=$2 39920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39921 $as_echo_n "checking for $ac_word... " >&6; } 39922 if ${ac_cv_prog_RC+:} false; then : 39923 $as_echo_n "(cached) " >&6 39924 else 39925 if test -n "$RC"; then 39926 ac_cv_prog_RC="$RC" # Let the user override the test. 39927 else 39928 ac_prog_rejected=no 39929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39930 for as_dir in $PATH 39931 do 39932 IFS=$as_save_IFS 39933 test -z "$as_dir" && as_dir=. 39934 for ac_exec_ext in '' $ac_executable_extensions; do 39935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 39937 ac_prog_rejected=yes 39938 continue 39939 fi 39940 ac_cv_prog_RC="rc" 39941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39942 break 2 39943 fi 39944 done 39945 done 39946 IFS=$as_save_IFS 39947 39948 if test $ac_prog_rejected = yes; then 39949 # We found a bogon in the path, so make sure we never use it. 39950 set dummy $ac_cv_prog_RC 39951 shift 39952 if test $# != 0; then 39953 # We chose a different compiler from the bogus one. 39954 # However, it has the same basename, so the bogon will be chosen 39955 # first if we set RC to just the basename; use the full file name. 39956 shift 39957 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 39958 fi 39959 fi 39960 fi 39961 fi 39962 RC=$ac_cv_prog_RC 39963 if test -n "$RC"; then 39964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 39965 $as_echo "$RC" >&6; } 39966 else 39967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39968 $as_echo "no" >&6; } 39969 fi 39970 39971 39972 39973 # Only process if variable expands to non-empty 39974 39975 if test "x$RC" != x; then 39976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39977 39978 # First separate the path from the arguments. This will split at the first 39979 # space. 39980 complete="$RC" 39981 path="${complete%% *}" 39982 tmp="$complete EOL" 39983 arguments="${tmp#* }" 39984 39985 # Input might be given as Windows format, start by converting to 39986 # unix format. 39987 new_path=`$CYGPATH -u "$path"` 39988 39989 # Now try to locate executable using which 39990 new_path=`$WHICH "$new_path" 2> /dev/null` 39991 # bat and cmd files are not always considered executable in cygwin causing which 39992 # to not find them 39993 if test "x$new_path" = x \ 39994 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39995 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39996 new_path=`$CYGPATH -u "$path"` 39997 fi 39998 if test "x$new_path" = x; then 39999 # Oops. Which didn't find the executable. 40000 # The splitting of arguments from the executable at a space might have been incorrect, 40001 # since paths with space are more likely in Windows. Give it another try with the whole 40002 # argument. 40003 path="$complete" 40004 arguments="EOL" 40005 new_path=`$CYGPATH -u "$path"` 40006 new_path=`$WHICH "$new_path" 2> /dev/null` 40007 # bat and cmd files are not always considered executable in cygwin causing which 40008 # to not find them 40009 if test "x$new_path" = x \ 40010 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40011 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40012 new_path=`$CYGPATH -u "$path"` 40013 fi 40014 if test "x$new_path" = x; then 40015 # It's still not found. Now this is an unrecoverable error. 40016 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40017 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40018 has_space=`$ECHO "$complete" | $GREP " "` 40019 if test "x$has_space" != x; then 40020 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40021 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40022 fi 40023 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40024 fi 40025 fi 40026 40027 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40028 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40029 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40030 # "foo.exe" is OK but "foo" is an error. 40031 # 40032 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40033 # It is also a way to make sure we got the proper file name for the real test later on. 40034 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40035 if test "x$test_shortpath" = x; then 40036 # Short path failed, file does not exist as specified. 40037 # Try adding .exe or .cmd 40038 if test -f "${new_path}.exe"; then 40039 input_to_shortpath="${new_path}.exe" 40040 elif test -f "${new_path}.cmd"; then 40041 input_to_shortpath="${new_path}.cmd" 40042 else 40043 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 40044 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 40045 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40046 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40047 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40048 fi 40049 else 40050 input_to_shortpath="$new_path" 40051 fi 40052 40053 # Call helper function which possibly converts this using DOS-style short mode. 40054 # If so, the updated path is stored in $new_path. 40055 new_path="$input_to_shortpath" 40056 40057 input_path="$input_to_shortpath" 40058 # Check if we need to convert this using DOS-style short mode. If the path 40059 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40060 # take no chances and rewrite it. 40061 # Note: m4 eats our [], so we need to use [ and ] instead. 40062 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40063 if test "x$has_forbidden_chars" != x; then 40064 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40065 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40066 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40067 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40068 # Going to short mode and back again did indeed matter. Since short mode is 40069 # case insensitive, let's make it lowercase to improve readability. 40070 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40071 # Now convert it back to Unix-style (cygpath) 40072 input_path=`$CYGPATH -u "$shortmode_path"` 40073 new_path="$input_path" 40074 fi 40075 fi 40076 40077 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40078 if test "x$test_cygdrive_prefix" = x; then 40079 # As a simple fix, exclude /usr/bin since it's not a real path. 40080 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40081 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40082 # a path prefixed by /cygdrive for fixpath to work. 40083 new_path="$CYGWIN_ROOT_PATH$input_path" 40084 fi 40085 fi 40086 40087 # remove trailing .exe if any 40088 new_path="${new_path/%.exe/}" 40089 40090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40091 40092 # First separate the path from the arguments. This will split at the first 40093 # space. 40094 complete="$RC" 40095 path="${complete%% *}" 40096 tmp="$complete EOL" 40097 arguments="${tmp#* }" 40098 40099 # Input might be given as Windows format, start by converting to 40100 # unix format. 40101 new_path="$path" 40102 40103 windows_path="$new_path" 40104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40105 unix_path=`$CYGPATH -u "$windows_path"` 40106 new_path="$unix_path" 40107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40108 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40109 new_path="$unix_path" 40110 fi 40111 40112 40113 # Now try to locate executable using which 40114 new_path=`$WHICH "$new_path" 2> /dev/null` 40115 40116 if test "x$new_path" = x; then 40117 # Oops. Which didn't find the executable. 40118 # The splitting of arguments from the executable at a space might have been incorrect, 40119 # since paths with space are more likely in Windows. Give it another try with the whole 40120 # argument. 40121 path="$complete" 40122 arguments="EOL" 40123 new_path="$path" 40124 40125 windows_path="$new_path" 40126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40127 unix_path=`$CYGPATH -u "$windows_path"` 40128 new_path="$unix_path" 40129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40130 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40131 new_path="$unix_path" 40132 fi 40133 40134 40135 new_path=`$WHICH "$new_path" 2> /dev/null` 40136 # bat and cmd files are not always considered executable in MSYS causing which 40137 # to not find them 40138 if test "x$new_path" = x \ 40139 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40140 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40141 new_path="$path" 40142 40143 windows_path="$new_path" 40144 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40145 unix_path=`$CYGPATH -u "$windows_path"` 40146 new_path="$unix_path" 40147 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40148 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40149 new_path="$unix_path" 40150 fi 40151 40152 fi 40153 40154 if test "x$new_path" = x; then 40155 # It's still not found. Now this is an unrecoverable error. 40156 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40157 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40158 has_space=`$ECHO "$complete" | $GREP " "` 40159 if test "x$has_space" != x; then 40160 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40161 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40162 fi 40163 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40164 fi 40165 fi 40166 40167 # Now new_path has a complete unix path to the binary 40168 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40169 # Keep paths in /bin as-is, but remove trailing .exe if any 40170 new_path="${new_path/%.exe/}" 40171 # Do not save /bin paths to all_fixpath_prefixes! 40172 else 40173 # Not in mixed or Windows style, start by that. 40174 new_path=`cmd //c echo $new_path` 40175 40176 input_path="$new_path" 40177 # Check if we need to convert this using DOS-style short mode. If the path 40178 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40179 # take no chances and rewrite it. 40180 # Note: m4 eats our [], so we need to use [ and ] instead. 40181 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40182 if test "x$has_forbidden_chars" != x; then 40183 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40184 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40185 fi 40186 40187 # Output is in $new_path 40188 40189 windows_path="$new_path" 40190 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40191 unix_path=`$CYGPATH -u "$windows_path"` 40192 new_path="$unix_path" 40193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40194 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40195 new_path="$unix_path" 40196 fi 40197 40198 # remove trailing .exe if any 40199 new_path="${new_path/%.exe/}" 40200 40201 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40202 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40203 fi 40204 40205 else 40206 # We're on a unix platform. Hooray! :) 40207 # First separate the path from the arguments. This will split at the first 40208 # space. 40209 complete="$RC" 40210 path="${complete%% *}" 40211 tmp="$complete EOL" 40212 arguments="${tmp#* }" 40213 40214 # Cannot rely on the command "which" here since it doesn't always work. 40215 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40216 if test -z "$is_absolute_path"; then 40217 # Path to executable is not absolute. Find it. 40218 IFS_save="$IFS" 40219 IFS=: 40220 for p in $PATH; do 40221 if test -f "$p/$path" && test -x "$p/$path"; then 40222 new_path="$p/$path" 40223 break 40224 fi 40225 done 40226 IFS="$IFS_save" 40227 else 40228 # This is an absolute path, we can use it without further modifications. 40229 new_path="$path" 40230 fi 40231 40232 if test "x$new_path" = x; then 40233 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40234 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40235 has_space=`$ECHO "$complete" | $GREP " "` 40236 if test "x$has_space" != x; then 40237 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40238 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40239 fi 40240 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40241 fi 40242 fi 40243 40244 # Now join together the path and the arguments once again 40245 if test "x$arguments" != xEOL; then 40246 new_complete="$new_path ${arguments% *}" 40247 else 40248 new_complete="$new_path" 40249 fi 40250 40251 if test "x$complete" != "x$new_complete"; then 40252 RC="$new_complete" 40253 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 40254 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 40255 fi 40256 fi 40257 40258 # Extract the first word of "dumpbin", so it can be a program name with args. 40259 set dummy dumpbin; ac_word=$2 40260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40261 $as_echo_n "checking for $ac_word... " >&6; } 40262 if ${ac_cv_prog_DUMPBIN+:} false; then : 40263 $as_echo_n "(cached) " >&6 40264 else 40265 if test -n "$DUMPBIN"; then 40266 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 40267 else 40268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40269 for as_dir in $PATH 40270 do 40271 IFS=$as_save_IFS 40272 test -z "$as_dir" && as_dir=. 40273 for ac_exec_ext in '' $ac_executable_extensions; do 40274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40275 ac_cv_prog_DUMPBIN="dumpbin" 40276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40277 break 2 40278 fi 40279 done 40280 done 40281 IFS=$as_save_IFS 40282 40283 fi 40284 fi 40285 DUMPBIN=$ac_cv_prog_DUMPBIN 40286 if test -n "$DUMPBIN"; then 40287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 40288 $as_echo "$DUMPBIN" >&6; } 40289 else 40290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40291 $as_echo "no" >&6; } 40292 fi 40293 40294 40295 40296 # Only process if variable expands to non-empty 40297 40298 if test "x$DUMPBIN" != x; then 40299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40300 40301 # First separate the path from the arguments. This will split at the first 40302 # space. 40303 complete="$DUMPBIN" 40304 path="${complete%% *}" 40305 tmp="$complete EOL" 40306 arguments="${tmp#* }" 40307 40308 # Input might be given as Windows format, start by converting to 40309 # unix format. 40310 new_path=`$CYGPATH -u "$path"` 40311 40312 # Now try to locate executable using which 40313 new_path=`$WHICH "$new_path" 2> /dev/null` 40314 # bat and cmd files are not always considered executable in cygwin causing which 40315 # to not find them 40316 if test "x$new_path" = x \ 40317 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40318 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40319 new_path=`$CYGPATH -u "$path"` 40320 fi 40321 if test "x$new_path" = x; then 40322 # Oops. Which didn't find the executable. 40323 # The splitting of arguments from the executable at a space might have been incorrect, 40324 # since paths with space are more likely in Windows. Give it another try with the whole 40325 # argument. 40326 path="$complete" 40327 arguments="EOL" 40328 new_path=`$CYGPATH -u "$path"` 40329 new_path=`$WHICH "$new_path" 2> /dev/null` 40330 # bat and cmd files are not always considered executable in cygwin causing which 40331 # to not find them 40332 if test "x$new_path" = x \ 40333 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40334 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40335 new_path=`$CYGPATH -u "$path"` 40336 fi 40337 if test "x$new_path" = x; then 40338 # It's still not found. Now this is an unrecoverable error. 40339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 40340 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 40341 has_space=`$ECHO "$complete" | $GREP " "` 40342 if test "x$has_space" != x; then 40343 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40344 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40345 fi 40346 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40347 fi 40348 fi 40349 40350 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40351 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40352 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40353 # "foo.exe" is OK but "foo" is an error. 40354 # 40355 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40356 # It is also a way to make sure we got the proper file name for the real test later on. 40357 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40358 if test "x$test_shortpath" = x; then 40359 # Short path failed, file does not exist as specified. 40360 # Try adding .exe or .cmd 40361 if test -f "${new_path}.exe"; then 40362 input_to_shortpath="${new_path}.exe" 40363 elif test -f "${new_path}.cmd"; then 40364 input_to_shortpath="${new_path}.cmd" 40365 else 40366 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 40367 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 40368 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40369 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40370 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40371 fi 40372 else 40373 input_to_shortpath="$new_path" 40374 fi 40375 40376 # Call helper function which possibly converts this using DOS-style short mode. 40377 # If so, the updated path is stored in $new_path. 40378 new_path="$input_to_shortpath" 40379 40380 input_path="$input_to_shortpath" 40381 # Check if we need to convert this using DOS-style short mode. If the path 40382 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40383 # take no chances and rewrite it. 40384 # Note: m4 eats our [], so we need to use [ and ] instead. 40385 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40386 if test "x$has_forbidden_chars" != x; then 40387 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40388 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40389 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40390 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40391 # Going to short mode and back again did indeed matter. Since short mode is 40392 # case insensitive, let's make it lowercase to improve readability. 40393 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40394 # Now convert it back to Unix-style (cygpath) 40395 input_path=`$CYGPATH -u "$shortmode_path"` 40396 new_path="$input_path" 40397 fi 40398 fi 40399 40400 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40401 if test "x$test_cygdrive_prefix" = x; then 40402 # As a simple fix, exclude /usr/bin since it's not a real path. 40403 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40404 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40405 # a path prefixed by /cygdrive for fixpath to work. 40406 new_path="$CYGWIN_ROOT_PATH$input_path" 40407 fi 40408 fi 40409 40410 # remove trailing .exe if any 40411 new_path="${new_path/%.exe/}" 40412 40413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40414 40415 # First separate the path from the arguments. This will split at the first 40416 # space. 40417 complete="$DUMPBIN" 40418 path="${complete%% *}" 40419 tmp="$complete EOL" 40420 arguments="${tmp#* }" 40421 40422 # Input might be given as Windows format, start by converting to 40423 # unix format. 40424 new_path="$path" 40425 40426 windows_path="$new_path" 40427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40428 unix_path=`$CYGPATH -u "$windows_path"` 40429 new_path="$unix_path" 40430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40431 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40432 new_path="$unix_path" 40433 fi 40434 40435 40436 # Now try to locate executable using which 40437 new_path=`$WHICH "$new_path" 2> /dev/null` 40438 40439 if test "x$new_path" = x; then 40440 # Oops. Which didn't find the executable. 40441 # The splitting of arguments from the executable at a space might have been incorrect, 40442 # since paths with space are more likely in Windows. Give it another try with the whole 40443 # argument. 40444 path="$complete" 40445 arguments="EOL" 40446 new_path="$path" 40447 40448 windows_path="$new_path" 40449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40450 unix_path=`$CYGPATH -u "$windows_path"` 40451 new_path="$unix_path" 40452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40454 new_path="$unix_path" 40455 fi 40456 40457 40458 new_path=`$WHICH "$new_path" 2> /dev/null` 40459 # bat and cmd files are not always considered executable in MSYS causing which 40460 # to not find them 40461 if test "x$new_path" = x \ 40462 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40463 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40464 new_path="$path" 40465 40466 windows_path="$new_path" 40467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40468 unix_path=`$CYGPATH -u "$windows_path"` 40469 new_path="$unix_path" 40470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40472 new_path="$unix_path" 40473 fi 40474 40475 fi 40476 40477 if test "x$new_path" = x; then 40478 # It's still not found. Now this is an unrecoverable error. 40479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 40480 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 40481 has_space=`$ECHO "$complete" | $GREP " "` 40482 if test "x$has_space" != x; then 40483 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40484 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40485 fi 40486 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40487 fi 40488 fi 40489 40490 # Now new_path has a complete unix path to the binary 40491 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40492 # Keep paths in /bin as-is, but remove trailing .exe if any 40493 new_path="${new_path/%.exe/}" 40494 # Do not save /bin paths to all_fixpath_prefixes! 40495 else 40496 # Not in mixed or Windows style, start by that. 40497 new_path=`cmd //c echo $new_path` 40498 40499 input_path="$new_path" 40500 # Check if we need to convert this using DOS-style short mode. If the path 40501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40502 # take no chances and rewrite it. 40503 # Note: m4 eats our [], so we need to use [ and ] instead. 40504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40505 if test "x$has_forbidden_chars" != x; then 40506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40507 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40508 fi 40509 40510 # Output is in $new_path 40511 40512 windows_path="$new_path" 40513 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40514 unix_path=`$CYGPATH -u "$windows_path"` 40515 new_path="$unix_path" 40516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40517 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40518 new_path="$unix_path" 40519 fi 40520 40521 # remove trailing .exe if any 40522 new_path="${new_path/%.exe/}" 40523 40524 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40525 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40526 fi 40527 40528 else 40529 # We're on a unix platform. Hooray! :) 40530 # First separate the path from the arguments. This will split at the first 40531 # space. 40532 complete="$DUMPBIN" 40533 path="${complete%% *}" 40534 tmp="$complete EOL" 40535 arguments="${tmp#* }" 40536 40537 # Cannot rely on the command "which" here since it doesn't always work. 40538 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40539 if test -z "$is_absolute_path"; then 40540 # Path to executable is not absolute. Find it. 40541 IFS_save="$IFS" 40542 IFS=: 40543 for p in $PATH; do 40544 if test -f "$p/$path" && test -x "$p/$path"; then 40545 new_path="$p/$path" 40546 break 40547 fi 40548 done 40549 IFS="$IFS_save" 40550 else 40551 # This is an absolute path, we can use it without further modifications. 40552 new_path="$path" 40553 fi 40554 40555 if test "x$new_path" = x; then 40556 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 40557 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 40558 has_space=`$ECHO "$complete" | $GREP " "` 40559 if test "x$has_space" != x; then 40560 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40561 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40562 fi 40563 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 40564 fi 40565 fi 40566 40567 # Now join together the path and the arguments once again 40568 if test "x$arguments" != xEOL; then 40569 new_complete="$new_path ${arguments% *}" 40570 else 40571 new_complete="$new_path" 40572 fi 40573 40574 if test "x$complete" != "x$new_complete"; then 40575 DUMPBIN="$new_complete" 40576 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 40577 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 40578 fi 40579 fi 40580 40581 # We need to check for 'msbuild.exe' because at the place where we expect to 40582 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 40583 # won't find the 'msbuild.exe' executable in that case (and the 40584 # 'ac_executable_extensions' is unusable due to performance reasons). 40585 # Notice that we intentionally don't fix up the path to MSBUILD because we 40586 # will call it in a DOS shell during freetype detection on Windows (see 40587 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 40588 # Extract the first word of "msbuild.exe", so it can be a program name with args. 40589 set dummy msbuild.exe; ac_word=$2 40590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40591 $as_echo_n "checking for $ac_word... " >&6; } 40592 if ${ac_cv_prog_MSBUILD+:} false; then : 40593 $as_echo_n "(cached) " >&6 40594 else 40595 if test -n "$MSBUILD"; then 40596 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 40597 else 40598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40599 for as_dir in $PATH 40600 do 40601 IFS=$as_save_IFS 40602 test -z "$as_dir" && as_dir=. 40603 for ac_exec_ext in '' $ac_executable_extensions; do 40604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40605 ac_cv_prog_MSBUILD="msbuild.exe" 40606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40607 break 2 40608 fi 40609 done 40610 done 40611 IFS=$as_save_IFS 40612 40613 fi 40614 fi 40615 MSBUILD=$ac_cv_prog_MSBUILD 40616 if test -n "$MSBUILD"; then 40617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 40618 $as_echo "$MSBUILD" >&6; } 40619 else 40620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40621 $as_echo "no" >&6; } 40622 fi 40623 40624 40625 fi 40626 40627 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40628 40629 40630 # Publish this variable in the help. 40631 40632 40633 if [ -z "${STRIP+x}" ]; then 40634 # The variable is not set by user, try to locate tool using the code snippet 40635 for ac_prog in strip 40636 do 40637 # Extract the first word of "$ac_prog", so it can be a program name with args. 40638 set dummy $ac_prog; ac_word=$2 40639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40640 $as_echo_n "checking for $ac_word... " >&6; } 40641 if ${ac_cv_path_STRIP+:} false; then : 40642 $as_echo_n "(cached) " >&6 40643 else 40644 case $STRIP in 40645 [\\/]* | ?:[\\/]*) 40646 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40647 ;; 40648 *) 40649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40650 for as_dir in $PATH 40651 do 40652 IFS=$as_save_IFS 40653 test -z "$as_dir" && as_dir=. 40654 for ac_exec_ext in '' $ac_executable_extensions; do 40655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40656 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40658 break 2 40659 fi 40660 done 40661 done 40662 IFS=$as_save_IFS 40663 40664 ;; 40665 esac 40666 fi 40667 STRIP=$ac_cv_path_STRIP 40668 if test -n "$STRIP"; then 40669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40670 $as_echo "$STRIP" >&6; } 40671 else 40672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40673 $as_echo "no" >&6; } 40674 fi 40675 40676 40677 test -n "$STRIP" && break 40678 done 40679 40680 else 40681 # The variable is set, but is it from the command line or the environment? 40682 40683 # Try to remove the string !STRIP! from our list. 40684 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 40685 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40686 # If it failed, the variable was not from the command line. Ignore it, 40687 # but warn the user (except for BASH, which is always set by the calling BASH). 40688 if test "xSTRIP" != xBASH; then 40689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 40690 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 40691 fi 40692 # Try to locate tool using the code snippet 40693 for ac_prog in strip 40694 do 40695 # Extract the first word of "$ac_prog", so it can be a program name with args. 40696 set dummy $ac_prog; ac_word=$2 40697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40698 $as_echo_n "checking for $ac_word... " >&6; } 40699 if ${ac_cv_path_STRIP+:} false; then : 40700 $as_echo_n "(cached) " >&6 40701 else 40702 case $STRIP in 40703 [\\/]* | ?:[\\/]*) 40704 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40705 ;; 40706 *) 40707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40708 for as_dir in $PATH 40709 do 40710 IFS=$as_save_IFS 40711 test -z "$as_dir" && as_dir=. 40712 for ac_exec_ext in '' $ac_executable_extensions; do 40713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40714 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40716 break 2 40717 fi 40718 done 40719 done 40720 IFS=$as_save_IFS 40721 40722 ;; 40723 esac 40724 fi 40725 STRIP=$ac_cv_path_STRIP 40726 if test -n "$STRIP"; then 40727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40728 $as_echo "$STRIP" >&6; } 40729 else 40730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40731 $as_echo "no" >&6; } 40732 fi 40733 40734 40735 test -n "$STRIP" && break 40736 done 40737 40738 else 40739 # If it succeeded, then it was overridden by the user. We will use it 40740 # for the tool. 40741 40742 # First remove it from the list of overridden variables, so we can test 40743 # for unknown variables in the end. 40744 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40745 40746 # Check if we try to supply an empty value 40747 if test "x$STRIP" = x; then 40748 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 40749 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 40750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40751 $as_echo_n "checking for STRIP... " >&6; } 40752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40753 $as_echo "disabled" >&6; } 40754 else 40755 # Check if the provided tool contains a complete path. 40756 tool_specified="$STRIP" 40757 tool_basename="${tool_specified##*/}" 40758 if test "x$tool_basename" = "x$tool_specified"; then 40759 # A command without a complete path is provided, search $PATH. 40760 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 40761 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 40762 # Extract the first word of "$tool_basename", so it can be a program name with args. 40763 set dummy $tool_basename; ac_word=$2 40764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40765 $as_echo_n "checking for $ac_word... " >&6; } 40766 if ${ac_cv_path_STRIP+:} false; then : 40767 $as_echo_n "(cached) " >&6 40768 else 40769 case $STRIP in 40770 [\\/]* | ?:[\\/]*) 40771 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40772 ;; 40773 *) 40774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40775 for as_dir in $PATH 40776 do 40777 IFS=$as_save_IFS 40778 test -z "$as_dir" && as_dir=. 40779 for ac_exec_ext in '' $ac_executable_extensions; do 40780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40781 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40783 break 2 40784 fi 40785 done 40786 done 40787 IFS=$as_save_IFS 40788 40789 ;; 40790 esac 40791 fi 40792 STRIP=$ac_cv_path_STRIP 40793 if test -n "$STRIP"; then 40794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40795 $as_echo "$STRIP" >&6; } 40796 else 40797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40798 $as_echo "no" >&6; } 40799 fi 40800 40801 40802 if test "x$STRIP" = x; then 40803 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40804 fi 40805 else 40806 # Otherwise we believe it is a complete path. Use it as it is. 40807 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 40808 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 40809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40810 $as_echo_n "checking for STRIP... " >&6; } 40811 if test ! -x "$tool_specified"; then 40812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40813 $as_echo "not found" >&6; } 40814 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 40815 fi 40816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40817 $as_echo "$tool_specified" >&6; } 40818 fi 40819 fi 40820 fi 40821 40822 fi 40823 40824 40825 40826 # Only process if variable expands to non-empty 40827 40828 if test "x$STRIP" != x; then 40829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40830 40831 # First separate the path from the arguments. This will split at the first 40832 # space. 40833 complete="$STRIP" 40834 path="${complete%% *}" 40835 tmp="$complete EOL" 40836 arguments="${tmp#* }" 40837 40838 # Input might be given as Windows format, start by converting to 40839 # unix format. 40840 new_path=`$CYGPATH -u "$path"` 40841 40842 # Now try to locate executable using which 40843 new_path=`$WHICH "$new_path" 2> /dev/null` 40844 # bat and cmd files are not always considered executable in cygwin causing which 40845 # to not find them 40846 if test "x$new_path" = x \ 40847 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40848 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40849 new_path=`$CYGPATH -u "$path"` 40850 fi 40851 if test "x$new_path" = x; then 40852 # Oops. Which didn't find the executable. 40853 # The splitting of arguments from the executable at a space might have been incorrect, 40854 # since paths with space are more likely in Windows. Give it another try with the whole 40855 # argument. 40856 path="$complete" 40857 arguments="EOL" 40858 new_path=`$CYGPATH -u "$path"` 40859 new_path=`$WHICH "$new_path" 2> /dev/null` 40860 # bat and cmd files are not always considered executable in cygwin causing which 40861 # to not find them 40862 if test "x$new_path" = x \ 40863 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40864 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40865 new_path=`$CYGPATH -u "$path"` 40866 fi 40867 if test "x$new_path" = x; then 40868 # It's still not found. Now this is an unrecoverable error. 40869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40870 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40871 has_space=`$ECHO "$complete" | $GREP " "` 40872 if test "x$has_space" != x; then 40873 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40874 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40875 fi 40876 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40877 fi 40878 fi 40879 40880 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40881 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40882 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40883 # "foo.exe" is OK but "foo" is an error. 40884 # 40885 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40886 # It is also a way to make sure we got the proper file name for the real test later on. 40887 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40888 if test "x$test_shortpath" = x; then 40889 # Short path failed, file does not exist as specified. 40890 # Try adding .exe or .cmd 40891 if test -f "${new_path}.exe"; then 40892 input_to_shortpath="${new_path}.exe" 40893 elif test -f "${new_path}.cmd"; then 40894 input_to_shortpath="${new_path}.cmd" 40895 else 40896 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 40897 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 40898 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40899 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40900 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40901 fi 40902 else 40903 input_to_shortpath="$new_path" 40904 fi 40905 40906 # Call helper function which possibly converts this using DOS-style short mode. 40907 # If so, the updated path is stored in $new_path. 40908 new_path="$input_to_shortpath" 40909 40910 input_path="$input_to_shortpath" 40911 # Check if we need to convert this using DOS-style short mode. If the path 40912 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40913 # take no chances and rewrite it. 40914 # Note: m4 eats our [], so we need to use [ and ] instead. 40915 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40916 if test "x$has_forbidden_chars" != x; then 40917 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40918 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40919 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40920 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40921 # Going to short mode and back again did indeed matter. Since short mode is 40922 # case insensitive, let's make it lowercase to improve readability. 40923 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40924 # Now convert it back to Unix-style (cygpath) 40925 input_path=`$CYGPATH -u "$shortmode_path"` 40926 new_path="$input_path" 40927 fi 40928 fi 40929 40930 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40931 if test "x$test_cygdrive_prefix" = x; then 40932 # As a simple fix, exclude /usr/bin since it's not a real path. 40933 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40934 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40935 # a path prefixed by /cygdrive for fixpath to work. 40936 new_path="$CYGWIN_ROOT_PATH$input_path" 40937 fi 40938 fi 40939 40940 # remove trailing .exe if any 40941 new_path="${new_path/%.exe/}" 40942 40943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40944 40945 # First separate the path from the arguments. This will split at the first 40946 # space. 40947 complete="$STRIP" 40948 path="${complete%% *}" 40949 tmp="$complete EOL" 40950 arguments="${tmp#* }" 40951 40952 # Input might be given as Windows format, start by converting to 40953 # unix format. 40954 new_path="$path" 40955 40956 windows_path="$new_path" 40957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40958 unix_path=`$CYGPATH -u "$windows_path"` 40959 new_path="$unix_path" 40960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40962 new_path="$unix_path" 40963 fi 40964 40965 40966 # Now try to locate executable using which 40967 new_path=`$WHICH "$new_path" 2> /dev/null` 40968 40969 if test "x$new_path" = x; then 40970 # Oops. Which didn't find the executable. 40971 # The splitting of arguments from the executable at a space might have been incorrect, 40972 # since paths with space are more likely in Windows. Give it another try with the whole 40973 # argument. 40974 path="$complete" 40975 arguments="EOL" 40976 new_path="$path" 40977 40978 windows_path="$new_path" 40979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40980 unix_path=`$CYGPATH -u "$windows_path"` 40981 new_path="$unix_path" 40982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40983 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40984 new_path="$unix_path" 40985 fi 40986 40987 40988 new_path=`$WHICH "$new_path" 2> /dev/null` 40989 # bat and cmd files are not always considered executable in MSYS causing which 40990 # to not find them 40991 if test "x$new_path" = x \ 40992 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40993 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40994 new_path="$path" 40995 40996 windows_path="$new_path" 40997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40998 unix_path=`$CYGPATH -u "$windows_path"` 40999 new_path="$unix_path" 41000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41002 new_path="$unix_path" 41003 fi 41004 41005 fi 41006 41007 if test "x$new_path" = x; then 41008 # It's still not found. Now this is an unrecoverable error. 41009 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41010 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41011 has_space=`$ECHO "$complete" | $GREP " "` 41012 if test "x$has_space" != x; then 41013 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41014 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41015 fi 41016 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41017 fi 41018 fi 41019 41020 # Now new_path has a complete unix path to the binary 41021 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41022 # Keep paths in /bin as-is, but remove trailing .exe if any 41023 new_path="${new_path/%.exe/}" 41024 # Do not save /bin paths to all_fixpath_prefixes! 41025 else 41026 # Not in mixed or Windows style, start by that. 41027 new_path=`cmd //c echo $new_path` 41028 41029 input_path="$new_path" 41030 # Check if we need to convert this using DOS-style short mode. If the path 41031 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41032 # take no chances and rewrite it. 41033 # Note: m4 eats our [], so we need to use [ and ] instead. 41034 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41035 if test "x$has_forbidden_chars" != x; then 41036 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41037 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41038 fi 41039 41040 # Output is in $new_path 41041 41042 windows_path="$new_path" 41043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41044 unix_path=`$CYGPATH -u "$windows_path"` 41045 new_path="$unix_path" 41046 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41047 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41048 new_path="$unix_path" 41049 fi 41050 41051 # remove trailing .exe if any 41052 new_path="${new_path/%.exe/}" 41053 41054 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41055 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41056 fi 41057 41058 else 41059 # We're on a unix platform. Hooray! :) 41060 # First separate the path from the arguments. This will split at the first 41061 # space. 41062 complete="$STRIP" 41063 path="${complete%% *}" 41064 tmp="$complete EOL" 41065 arguments="${tmp#* }" 41066 41067 # Cannot rely on the command "which" here since it doesn't always work. 41068 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41069 if test -z "$is_absolute_path"; then 41070 # Path to executable is not absolute. Find it. 41071 IFS_save="$IFS" 41072 IFS=: 41073 for p in $PATH; do 41074 if test -f "$p/$path" && test -x "$p/$path"; then 41075 new_path="$p/$path" 41076 break 41077 fi 41078 done 41079 IFS="$IFS_save" 41080 else 41081 # This is an absolute path, we can use it without further modifications. 41082 new_path="$path" 41083 fi 41084 41085 if test "x$new_path" = x; then 41086 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41087 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41088 has_space=`$ECHO "$complete" | $GREP " "` 41089 if test "x$has_space" != x; then 41090 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41091 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41092 fi 41093 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41094 fi 41095 fi 41096 41097 # Now join together the path and the arguments once again 41098 if test "x$arguments" != xEOL; then 41099 new_complete="$new_path ${arguments% *}" 41100 else 41101 new_complete="$new_path" 41102 fi 41103 41104 if test "x$complete" != "x$new_complete"; then 41105 STRIP="$new_complete" 41106 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41107 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41108 fi 41109 fi 41110 41111 41112 41113 # Publish this variable in the help. 41114 41115 41116 if [ -z "${NM+x}" ]; then 41117 # The variable is not set by user, try to locate tool using the code snippet 41118 for ac_prog in nm 41119 do 41120 # Extract the first word of "$ac_prog", so it can be a program name with args. 41121 set dummy $ac_prog; ac_word=$2 41122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41123 $as_echo_n "checking for $ac_word... " >&6; } 41124 if ${ac_cv_path_NM+:} false; then : 41125 $as_echo_n "(cached) " >&6 41126 else 41127 case $NM in 41128 [\\/]* | ?:[\\/]*) 41129 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41130 ;; 41131 *) 41132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41133 for as_dir in $PATH 41134 do 41135 IFS=$as_save_IFS 41136 test -z "$as_dir" && as_dir=. 41137 for ac_exec_ext in '' $ac_executable_extensions; do 41138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41139 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41141 break 2 41142 fi 41143 done 41144 done 41145 IFS=$as_save_IFS 41146 41147 ;; 41148 esac 41149 fi 41150 NM=$ac_cv_path_NM 41151 if test -n "$NM"; then 41152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41153 $as_echo "$NM" >&6; } 41154 else 41155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41156 $as_echo "no" >&6; } 41157 fi 41158 41159 41160 test -n "$NM" && break 41161 done 41162 41163 else 41164 # The variable is set, but is it from the command line or the environment? 41165 41166 # Try to remove the string !NM! from our list. 41167 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41168 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41169 # If it failed, the variable was not from the command line. Ignore it, 41170 # but warn the user (except for BASH, which is always set by the calling BASH). 41171 if test "xNM" != xBASH; then 41172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41173 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41174 fi 41175 # Try to locate tool using the code snippet 41176 for ac_prog in nm 41177 do 41178 # Extract the first word of "$ac_prog", so it can be a program name with args. 41179 set dummy $ac_prog; ac_word=$2 41180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41181 $as_echo_n "checking for $ac_word... " >&6; } 41182 if ${ac_cv_path_NM+:} false; then : 41183 $as_echo_n "(cached) " >&6 41184 else 41185 case $NM in 41186 [\\/]* | ?:[\\/]*) 41187 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41188 ;; 41189 *) 41190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41191 for as_dir in $PATH 41192 do 41193 IFS=$as_save_IFS 41194 test -z "$as_dir" && as_dir=. 41195 for ac_exec_ext in '' $ac_executable_extensions; do 41196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41197 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41199 break 2 41200 fi 41201 done 41202 done 41203 IFS=$as_save_IFS 41204 41205 ;; 41206 esac 41207 fi 41208 NM=$ac_cv_path_NM 41209 if test -n "$NM"; then 41210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41211 $as_echo "$NM" >&6; } 41212 else 41213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41214 $as_echo "no" >&6; } 41215 fi 41216 41217 41218 test -n "$NM" && break 41219 done 41220 41221 else 41222 # If it succeeded, then it was overridden by the user. We will use it 41223 # for the tool. 41224 41225 # First remove it from the list of overridden variables, so we can test 41226 # for unknown variables in the end. 41227 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41228 41229 # Check if we try to supply an empty value 41230 if test "x$NM" = x; then 41231 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41232 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41234 $as_echo_n "checking for NM... " >&6; } 41235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41236 $as_echo "disabled" >&6; } 41237 else 41238 # Check if the provided tool contains a complete path. 41239 tool_specified="$NM" 41240 tool_basename="${tool_specified##*/}" 41241 if test "x$tool_basename" = "x$tool_specified"; then 41242 # A command without a complete path is provided, search $PATH. 41243 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41244 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41245 # Extract the first word of "$tool_basename", so it can be a program name with args. 41246 set dummy $tool_basename; ac_word=$2 41247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41248 $as_echo_n "checking for $ac_word... " >&6; } 41249 if ${ac_cv_path_NM+:} false; then : 41250 $as_echo_n "(cached) " >&6 41251 else 41252 case $NM in 41253 [\\/]* | ?:[\\/]*) 41254 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41255 ;; 41256 *) 41257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41258 for as_dir in $PATH 41259 do 41260 IFS=$as_save_IFS 41261 test -z "$as_dir" && as_dir=. 41262 for ac_exec_ext in '' $ac_executable_extensions; do 41263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41264 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41266 break 2 41267 fi 41268 done 41269 done 41270 IFS=$as_save_IFS 41271 41272 ;; 41273 esac 41274 fi 41275 NM=$ac_cv_path_NM 41276 if test -n "$NM"; then 41277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41278 $as_echo "$NM" >&6; } 41279 else 41280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41281 $as_echo "no" >&6; } 41282 fi 41283 41284 41285 if test "x$NM" = x; then 41286 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41287 fi 41288 else 41289 # Otherwise we believe it is a complete path. Use it as it is. 41290 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41291 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41293 $as_echo_n "checking for NM... " >&6; } 41294 if test ! -x "$tool_specified"; then 41295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41296 $as_echo "not found" >&6; } 41297 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 41298 fi 41299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41300 $as_echo "$tool_specified" >&6; } 41301 fi 41302 fi 41303 fi 41304 41305 fi 41306 41307 41308 41309 # Only process if variable expands to non-empty 41310 41311 if test "x$NM" != x; then 41312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41313 41314 # First separate the path from the arguments. This will split at the first 41315 # space. 41316 complete="$NM" 41317 path="${complete%% *}" 41318 tmp="$complete EOL" 41319 arguments="${tmp#* }" 41320 41321 # Input might be given as Windows format, start by converting to 41322 # unix format. 41323 new_path=`$CYGPATH -u "$path"` 41324 41325 # Now try to locate executable using which 41326 new_path=`$WHICH "$new_path" 2> /dev/null` 41327 # bat and cmd files are not always considered executable in cygwin causing which 41328 # to not find them 41329 if test "x$new_path" = x \ 41330 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41331 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41332 new_path=`$CYGPATH -u "$path"` 41333 fi 41334 if test "x$new_path" = x; then 41335 # Oops. Which didn't find the executable. 41336 # The splitting of arguments from the executable at a space might have been incorrect, 41337 # since paths with space are more likely in Windows. Give it another try with the whole 41338 # argument. 41339 path="$complete" 41340 arguments="EOL" 41341 new_path=`$CYGPATH -u "$path"` 41342 new_path=`$WHICH "$new_path" 2> /dev/null` 41343 # bat and cmd files are not always considered executable in cygwin causing which 41344 # to not find them 41345 if test "x$new_path" = x \ 41346 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41347 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41348 new_path=`$CYGPATH -u "$path"` 41349 fi 41350 if test "x$new_path" = x; then 41351 # It's still not found. Now this is an unrecoverable error. 41352 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41353 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41354 has_space=`$ECHO "$complete" | $GREP " "` 41355 if test "x$has_space" != x; then 41356 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41357 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41358 fi 41359 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41360 fi 41361 fi 41362 41363 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41364 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41365 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41366 # "foo.exe" is OK but "foo" is an error. 41367 # 41368 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41369 # It is also a way to make sure we got the proper file name for the real test later on. 41370 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41371 if test "x$test_shortpath" = x; then 41372 # Short path failed, file does not exist as specified. 41373 # Try adding .exe or .cmd 41374 if test -f "${new_path}.exe"; then 41375 input_to_shortpath="${new_path}.exe" 41376 elif test -f "${new_path}.cmd"; then 41377 input_to_shortpath="${new_path}.cmd" 41378 else 41379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 41380 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 41381 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41382 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41383 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41384 fi 41385 else 41386 input_to_shortpath="$new_path" 41387 fi 41388 41389 # Call helper function which possibly converts this using DOS-style short mode. 41390 # If so, the updated path is stored in $new_path. 41391 new_path="$input_to_shortpath" 41392 41393 input_path="$input_to_shortpath" 41394 # Check if we need to convert this using DOS-style short mode. If the path 41395 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41396 # take no chances and rewrite it. 41397 # Note: m4 eats our [], so we need to use [ and ] instead. 41398 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41399 if test "x$has_forbidden_chars" != x; then 41400 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41401 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41402 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41403 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41404 # Going to short mode and back again did indeed matter. Since short mode is 41405 # case insensitive, let's make it lowercase to improve readability. 41406 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41407 # Now convert it back to Unix-style (cygpath) 41408 input_path=`$CYGPATH -u "$shortmode_path"` 41409 new_path="$input_path" 41410 fi 41411 fi 41412 41413 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41414 if test "x$test_cygdrive_prefix" = x; then 41415 # As a simple fix, exclude /usr/bin since it's not a real path. 41416 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41417 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41418 # a path prefixed by /cygdrive for fixpath to work. 41419 new_path="$CYGWIN_ROOT_PATH$input_path" 41420 fi 41421 fi 41422 41423 # remove trailing .exe if any 41424 new_path="${new_path/%.exe/}" 41425 41426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41427 41428 # First separate the path from the arguments. This will split at the first 41429 # space. 41430 complete="$NM" 41431 path="${complete%% *}" 41432 tmp="$complete EOL" 41433 arguments="${tmp#* }" 41434 41435 # Input might be given as Windows format, start by converting to 41436 # unix format. 41437 new_path="$path" 41438 41439 windows_path="$new_path" 41440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41441 unix_path=`$CYGPATH -u "$windows_path"` 41442 new_path="$unix_path" 41443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41445 new_path="$unix_path" 41446 fi 41447 41448 41449 # Now try to locate executable using which 41450 new_path=`$WHICH "$new_path" 2> /dev/null` 41451 41452 if test "x$new_path" = x; then 41453 # Oops. Which didn't find the executable. 41454 # The splitting of arguments from the executable at a space might have been incorrect, 41455 # since paths with space are more likely in Windows. Give it another try with the whole 41456 # argument. 41457 path="$complete" 41458 arguments="EOL" 41459 new_path="$path" 41460 41461 windows_path="$new_path" 41462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41463 unix_path=`$CYGPATH -u "$windows_path"` 41464 new_path="$unix_path" 41465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41466 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41467 new_path="$unix_path" 41468 fi 41469 41470 41471 new_path=`$WHICH "$new_path" 2> /dev/null` 41472 # bat and cmd files are not always considered executable in MSYS causing which 41473 # to not find them 41474 if test "x$new_path" = x \ 41475 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41476 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41477 new_path="$path" 41478 41479 windows_path="$new_path" 41480 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41481 unix_path=`$CYGPATH -u "$windows_path"` 41482 new_path="$unix_path" 41483 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41484 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41485 new_path="$unix_path" 41486 fi 41487 41488 fi 41489 41490 if test "x$new_path" = x; then 41491 # It's still not found. Now this is an unrecoverable error. 41492 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41493 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41494 has_space=`$ECHO "$complete" | $GREP " "` 41495 if test "x$has_space" != x; then 41496 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41497 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41498 fi 41499 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41500 fi 41501 fi 41502 41503 # Now new_path has a complete unix path to the binary 41504 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41505 # Keep paths in /bin as-is, but remove trailing .exe if any 41506 new_path="${new_path/%.exe/}" 41507 # Do not save /bin paths to all_fixpath_prefixes! 41508 else 41509 # Not in mixed or Windows style, start by that. 41510 new_path=`cmd //c echo $new_path` 41511 41512 input_path="$new_path" 41513 # Check if we need to convert this using DOS-style short mode. If the path 41514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41515 # take no chances and rewrite it. 41516 # Note: m4 eats our [], so we need to use [ and ] instead. 41517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41518 if test "x$has_forbidden_chars" != x; then 41519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41520 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41521 fi 41522 41523 # Output is in $new_path 41524 41525 windows_path="$new_path" 41526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41527 unix_path=`$CYGPATH -u "$windows_path"` 41528 new_path="$unix_path" 41529 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41530 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41531 new_path="$unix_path" 41532 fi 41533 41534 # remove trailing .exe if any 41535 new_path="${new_path/%.exe/}" 41536 41537 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41538 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41539 fi 41540 41541 else 41542 # We're on a unix platform. Hooray! :) 41543 # First separate the path from the arguments. This will split at the first 41544 # space. 41545 complete="$NM" 41546 path="${complete%% *}" 41547 tmp="$complete EOL" 41548 arguments="${tmp#* }" 41549 41550 # Cannot rely on the command "which" here since it doesn't always work. 41551 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41552 if test -z "$is_absolute_path"; then 41553 # Path to executable is not absolute. Find it. 41554 IFS_save="$IFS" 41555 IFS=: 41556 for p in $PATH; do 41557 if test -f "$p/$path" && test -x "$p/$path"; then 41558 new_path="$p/$path" 41559 break 41560 fi 41561 done 41562 IFS="$IFS_save" 41563 else 41564 # This is an absolute path, we can use it without further modifications. 41565 new_path="$path" 41566 fi 41567 41568 if test "x$new_path" = x; then 41569 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41570 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41571 has_space=`$ECHO "$complete" | $GREP " "` 41572 if test "x$has_space" != x; then 41573 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41574 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41575 fi 41576 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41577 fi 41578 fi 41579 41580 # Now join together the path and the arguments once again 41581 if test "x$arguments" != xEOL; then 41582 new_complete="$new_path ${arguments% *}" 41583 else 41584 new_complete="$new_path" 41585 fi 41586 41587 if test "x$complete" != "x$new_complete"; then 41588 NM="$new_complete" 41589 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 41590 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 41591 fi 41592 fi 41593 41594 41595 41596 # Publish this variable in the help. 41597 41598 41599 if [ -z "${GNM+x}" ]; then 41600 # The variable is not set by user, try to locate tool using the code snippet 41601 for ac_prog in gnm 41602 do 41603 # Extract the first word of "$ac_prog", so it can be a program name with args. 41604 set dummy $ac_prog; ac_word=$2 41605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41606 $as_echo_n "checking for $ac_word... " >&6; } 41607 if ${ac_cv_path_GNM+:} false; then : 41608 $as_echo_n "(cached) " >&6 41609 else 41610 case $GNM in 41611 [\\/]* | ?:[\\/]*) 41612 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41613 ;; 41614 *) 41615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41616 for as_dir in $PATH 41617 do 41618 IFS=$as_save_IFS 41619 test -z "$as_dir" && as_dir=. 41620 for ac_exec_ext in '' $ac_executable_extensions; do 41621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41622 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41624 break 2 41625 fi 41626 done 41627 done 41628 IFS=$as_save_IFS 41629 41630 ;; 41631 esac 41632 fi 41633 GNM=$ac_cv_path_GNM 41634 if test -n "$GNM"; then 41635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41636 $as_echo "$GNM" >&6; } 41637 else 41638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41639 $as_echo "no" >&6; } 41640 fi 41641 41642 41643 test -n "$GNM" && break 41644 done 41645 41646 else 41647 # The variable is set, but is it from the command line or the environment? 41648 41649 # Try to remove the string !GNM! from our list. 41650 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 41651 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41652 # If it failed, the variable was not from the command line. Ignore it, 41653 # but warn the user (except for BASH, which is always set by the calling BASH). 41654 if test "xGNM" != xBASH; then 41655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 41656 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 41657 fi 41658 # Try to locate tool using the code snippet 41659 for ac_prog in gnm 41660 do 41661 # Extract the first word of "$ac_prog", so it can be a program name with args. 41662 set dummy $ac_prog; ac_word=$2 41663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41664 $as_echo_n "checking for $ac_word... " >&6; } 41665 if ${ac_cv_path_GNM+:} false; then : 41666 $as_echo_n "(cached) " >&6 41667 else 41668 case $GNM in 41669 [\\/]* | ?:[\\/]*) 41670 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41671 ;; 41672 *) 41673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41674 for as_dir in $PATH 41675 do 41676 IFS=$as_save_IFS 41677 test -z "$as_dir" && as_dir=. 41678 for ac_exec_ext in '' $ac_executable_extensions; do 41679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41680 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41682 break 2 41683 fi 41684 done 41685 done 41686 IFS=$as_save_IFS 41687 41688 ;; 41689 esac 41690 fi 41691 GNM=$ac_cv_path_GNM 41692 if test -n "$GNM"; then 41693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41694 $as_echo "$GNM" >&6; } 41695 else 41696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41697 $as_echo "no" >&6; } 41698 fi 41699 41700 41701 test -n "$GNM" && break 41702 done 41703 41704 else 41705 # If it succeeded, then it was overridden by the user. We will use it 41706 # for the tool. 41707 41708 # First remove it from the list of overridden variables, so we can test 41709 # for unknown variables in the end. 41710 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41711 41712 # Check if we try to supply an empty value 41713 if test "x$GNM" = x; then 41714 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 41715 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 41716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 41717 $as_echo_n "checking for GNM... " >&6; } 41718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41719 $as_echo "disabled" >&6; } 41720 else 41721 # Check if the provided tool contains a complete path. 41722 tool_specified="$GNM" 41723 tool_basename="${tool_specified##*/}" 41724 if test "x$tool_basename" = "x$tool_specified"; then 41725 # A command without a complete path is provided, search $PATH. 41726 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 41727 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 41728 # Extract the first word of "$tool_basename", so it can be a program name with args. 41729 set dummy $tool_basename; ac_word=$2 41730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41731 $as_echo_n "checking for $ac_word... " >&6; } 41732 if ${ac_cv_path_GNM+:} false; then : 41733 $as_echo_n "(cached) " >&6 41734 else 41735 case $GNM in 41736 [\\/]* | ?:[\\/]*) 41737 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 41738 ;; 41739 *) 41740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41741 for as_dir in $PATH 41742 do 41743 IFS=$as_save_IFS 41744 test -z "$as_dir" && as_dir=. 41745 for ac_exec_ext in '' $ac_executable_extensions; do 41746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41747 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 41748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41749 break 2 41750 fi 41751 done 41752 done 41753 IFS=$as_save_IFS 41754 41755 ;; 41756 esac 41757 fi 41758 GNM=$ac_cv_path_GNM 41759 if test -n "$GNM"; then 41760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 41761 $as_echo "$GNM" >&6; } 41762 else 41763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41764 $as_echo "no" >&6; } 41765 fi 41766 41767 41768 if test "x$GNM" = x; then 41769 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41770 fi 41771 else 41772 # Otherwise we believe it is a complete path. Use it as it is. 41773 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 41774 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 41775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 41776 $as_echo_n "checking for GNM... " >&6; } 41777 if test ! -x "$tool_specified"; then 41778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41779 $as_echo "not found" >&6; } 41780 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 41781 fi 41782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41783 $as_echo "$tool_specified" >&6; } 41784 fi 41785 fi 41786 fi 41787 41788 fi 41789 41790 41791 41792 # Only process if variable expands to non-empty 41793 41794 if test "x$GNM" != x; then 41795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41796 41797 # First separate the path from the arguments. This will split at the first 41798 # space. 41799 complete="$GNM" 41800 path="${complete%% *}" 41801 tmp="$complete EOL" 41802 arguments="${tmp#* }" 41803 41804 # Input might be given as Windows format, start by converting to 41805 # unix format. 41806 new_path=`$CYGPATH -u "$path"` 41807 41808 # Now try to locate executable using which 41809 new_path=`$WHICH "$new_path" 2> /dev/null` 41810 # bat and cmd files are not always considered executable in cygwin causing which 41811 # to not find them 41812 if test "x$new_path" = x \ 41813 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41814 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41815 new_path=`$CYGPATH -u "$path"` 41816 fi 41817 if test "x$new_path" = x; then 41818 # Oops. Which didn't find the executable. 41819 # The splitting of arguments from the executable at a space might have been incorrect, 41820 # since paths with space are more likely in Windows. Give it another try with the whole 41821 # argument. 41822 path="$complete" 41823 arguments="EOL" 41824 new_path=`$CYGPATH -u "$path"` 41825 new_path=`$WHICH "$new_path" 2> /dev/null` 41826 # bat and cmd files are not always considered executable in cygwin causing which 41827 # to not find them 41828 if test "x$new_path" = x \ 41829 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41830 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41831 new_path=`$CYGPATH -u "$path"` 41832 fi 41833 if test "x$new_path" = x; then 41834 # It's still not found. Now this is an unrecoverable error. 41835 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41836 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41837 has_space=`$ECHO "$complete" | $GREP " "` 41838 if test "x$has_space" != x; then 41839 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41840 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41841 fi 41842 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41843 fi 41844 fi 41845 41846 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41847 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41848 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41849 # "foo.exe" is OK but "foo" is an error. 41850 # 41851 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41852 # It is also a way to make sure we got the proper file name for the real test later on. 41853 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41854 if test "x$test_shortpath" = x; then 41855 # Short path failed, file does not exist as specified. 41856 # Try adding .exe or .cmd 41857 if test -f "${new_path}.exe"; then 41858 input_to_shortpath="${new_path}.exe" 41859 elif test -f "${new_path}.cmd"; then 41860 input_to_shortpath="${new_path}.cmd" 41861 else 41862 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 41863 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 41864 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41865 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41866 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41867 fi 41868 else 41869 input_to_shortpath="$new_path" 41870 fi 41871 41872 # Call helper function which possibly converts this using DOS-style short mode. 41873 # If so, the updated path is stored in $new_path. 41874 new_path="$input_to_shortpath" 41875 41876 input_path="$input_to_shortpath" 41877 # Check if we need to convert this using DOS-style short mode. If the path 41878 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41879 # take no chances and rewrite it. 41880 # Note: m4 eats our [], so we need to use [ and ] instead. 41881 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41882 if test "x$has_forbidden_chars" != x; then 41883 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41884 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41885 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41886 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41887 # Going to short mode and back again did indeed matter. Since short mode is 41888 # case insensitive, let's make it lowercase to improve readability. 41889 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41890 # Now convert it back to Unix-style (cygpath) 41891 input_path=`$CYGPATH -u "$shortmode_path"` 41892 new_path="$input_path" 41893 fi 41894 fi 41895 41896 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41897 if test "x$test_cygdrive_prefix" = x; then 41898 # As a simple fix, exclude /usr/bin since it's not a real path. 41899 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41900 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41901 # a path prefixed by /cygdrive for fixpath to work. 41902 new_path="$CYGWIN_ROOT_PATH$input_path" 41903 fi 41904 fi 41905 41906 # remove trailing .exe if any 41907 new_path="${new_path/%.exe/}" 41908 41909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41910 41911 # First separate the path from the arguments. This will split at the first 41912 # space. 41913 complete="$GNM" 41914 path="${complete%% *}" 41915 tmp="$complete EOL" 41916 arguments="${tmp#* }" 41917 41918 # Input might be given as Windows format, start by converting to 41919 # unix format. 41920 new_path="$path" 41921 41922 windows_path="$new_path" 41923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41924 unix_path=`$CYGPATH -u "$windows_path"` 41925 new_path="$unix_path" 41926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41927 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41928 new_path="$unix_path" 41929 fi 41930 41931 41932 # Now try to locate executable using which 41933 new_path=`$WHICH "$new_path" 2> /dev/null` 41934 41935 if test "x$new_path" = x; then 41936 # Oops. Which didn't find the executable. 41937 # The splitting of arguments from the executable at a space might have been incorrect, 41938 # since paths with space are more likely in Windows. Give it another try with the whole 41939 # argument. 41940 path="$complete" 41941 arguments="EOL" 41942 new_path="$path" 41943 41944 windows_path="$new_path" 41945 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41946 unix_path=`$CYGPATH -u "$windows_path"` 41947 new_path="$unix_path" 41948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41949 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41950 new_path="$unix_path" 41951 fi 41952 41953 41954 new_path=`$WHICH "$new_path" 2> /dev/null` 41955 # bat and cmd files are not always considered executable in MSYS causing which 41956 # to not find them 41957 if test "x$new_path" = x \ 41958 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41959 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41960 new_path="$path" 41961 41962 windows_path="$new_path" 41963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41964 unix_path=`$CYGPATH -u "$windows_path"` 41965 new_path="$unix_path" 41966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41967 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41968 new_path="$unix_path" 41969 fi 41970 41971 fi 41972 41973 if test "x$new_path" = x; then 41974 # It's still not found. Now this is an unrecoverable error. 41975 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41976 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41977 has_space=`$ECHO "$complete" | $GREP " "` 41978 if test "x$has_space" != x; then 41979 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41980 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41981 fi 41982 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41983 fi 41984 fi 41985 41986 # Now new_path has a complete unix path to the binary 41987 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41988 # Keep paths in /bin as-is, but remove trailing .exe if any 41989 new_path="${new_path/%.exe/}" 41990 # Do not save /bin paths to all_fixpath_prefixes! 41991 else 41992 # Not in mixed or Windows style, start by that. 41993 new_path=`cmd //c echo $new_path` 41994 41995 input_path="$new_path" 41996 # Check if we need to convert this using DOS-style short mode. If the path 41997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41998 # take no chances and rewrite it. 41999 # Note: m4 eats our [], so we need to use [ and ] instead. 42000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42001 if test "x$has_forbidden_chars" != x; then 42002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42003 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42004 fi 42005 42006 # Output is in $new_path 42007 42008 windows_path="$new_path" 42009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42010 unix_path=`$CYGPATH -u "$windows_path"` 42011 new_path="$unix_path" 42012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42014 new_path="$unix_path" 42015 fi 42016 42017 # remove trailing .exe if any 42018 new_path="${new_path/%.exe/}" 42019 42020 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42021 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42022 fi 42023 42024 else 42025 # We're on a unix platform. Hooray! :) 42026 # First separate the path from the arguments. This will split at the first 42027 # space. 42028 complete="$GNM" 42029 path="${complete%% *}" 42030 tmp="$complete EOL" 42031 arguments="${tmp#* }" 42032 42033 # Cannot rely on the command "which" here since it doesn't always work. 42034 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42035 if test -z "$is_absolute_path"; then 42036 # Path to executable is not absolute. Find it. 42037 IFS_save="$IFS" 42038 IFS=: 42039 for p in $PATH; do 42040 if test -f "$p/$path" && test -x "$p/$path"; then 42041 new_path="$p/$path" 42042 break 42043 fi 42044 done 42045 IFS="$IFS_save" 42046 else 42047 # This is an absolute path, we can use it without further modifications. 42048 new_path="$path" 42049 fi 42050 42051 if test "x$new_path" = x; then 42052 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42053 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42054 has_space=`$ECHO "$complete" | $GREP " "` 42055 if test "x$has_space" != x; then 42056 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42057 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42058 fi 42059 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42060 fi 42061 fi 42062 42063 # Now join together the path and the arguments once again 42064 if test "x$arguments" != xEOL; then 42065 new_complete="$new_path ${arguments% *}" 42066 else 42067 new_complete="$new_path" 42068 fi 42069 42070 if test "x$complete" != "x$new_complete"; then 42071 GNM="$new_complete" 42072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 42073 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 42074 fi 42075 fi 42076 42077 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 42078 # FIXME: we should unify this with the solaris case above. 42079 42080 42081 # Publish this variable in the help. 42082 42083 42084 if [ -z "${STRIP+x}" ]; then 42085 # The variable is not set by user, try to locate tool using the code snippet 42086 if test -n "$ac_tool_prefix"; then 42087 for ac_prog in strip 42088 do 42089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42092 $as_echo_n "checking for $ac_word... " >&6; } 42093 if ${ac_cv_prog_STRIP+:} false; then : 42094 $as_echo_n "(cached) " >&6 42095 else 42096 if test -n "$STRIP"; then 42097 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 42098 else 42099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42100 for as_dir in $PATH 42101 do 42102 IFS=$as_save_IFS 42103 test -z "$as_dir" && as_dir=. 42104 for ac_exec_ext in '' $ac_executable_extensions; do 42105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42106 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 42107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42108 break 2 42109 fi 42110 done 42111 done 42112 IFS=$as_save_IFS 42113 42114 fi 42115 fi 42116 STRIP=$ac_cv_prog_STRIP 42117 if test -n "$STRIP"; then 42118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42119 $as_echo "$STRIP" >&6; } 42120 else 42121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42122 $as_echo "no" >&6; } 42123 fi 42124 42125 42126 test -n "$STRIP" && break 42127 done 42128 fi 42129 if test -z "$STRIP"; then 42130 ac_ct_STRIP=$STRIP 42131 for ac_prog in strip 42132 do 42133 # Extract the first word of "$ac_prog", so it can be a program name with args. 42134 set dummy $ac_prog; ac_word=$2 42135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42136 $as_echo_n "checking for $ac_word... " >&6; } 42137 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 42138 $as_echo_n "(cached) " >&6 42139 else 42140 if test -n "$ac_ct_STRIP"; then 42141 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 42142 else 42143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42144 for as_dir in $PATH 42145 do 42146 IFS=$as_save_IFS 42147 test -z "$as_dir" && as_dir=. 42148 for ac_exec_ext in '' $ac_executable_extensions; do 42149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42150 ac_cv_prog_ac_ct_STRIP="$ac_prog" 42151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42152 break 2 42153 fi 42154 done 42155 done 42156 IFS=$as_save_IFS 42157 42158 fi 42159 fi 42160 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 42161 if test -n "$ac_ct_STRIP"; then 42162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 42163 $as_echo "$ac_ct_STRIP" >&6; } 42164 else 42165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42166 $as_echo "no" >&6; } 42167 fi 42168 42169 42170 test -n "$ac_ct_STRIP" && break 42171 done 42172 42173 if test "x$ac_ct_STRIP" = x; then 42174 STRIP="" 42175 else 42176 case $cross_compiling:$ac_tool_warned in 42177 yes:) 42178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42180 ac_tool_warned=yes ;; 42181 esac 42182 STRIP=$ac_ct_STRIP 42183 fi 42184 fi 42185 42186 else 42187 # The variable is set, but is it from the command line or the environment? 42188 42189 # Try to remove the string !STRIP! from our list. 42190 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 42191 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42192 # If it failed, the variable was not from the command line. Ignore it, 42193 # but warn the user (except for BASH, which is always set by the calling BASH). 42194 if test "xSTRIP" != xBASH; then 42195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 42196 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 42197 fi 42198 # Try to locate tool using the code snippet 42199 if test -n "$ac_tool_prefix"; then 42200 for ac_prog in strip 42201 do 42202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42205 $as_echo_n "checking for $ac_word... " >&6; } 42206 if ${ac_cv_prog_STRIP+:} false; then : 42207 $as_echo_n "(cached) " >&6 42208 else 42209 if test -n "$STRIP"; then 42210 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 42211 else 42212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42213 for as_dir in $PATH 42214 do 42215 IFS=$as_save_IFS 42216 test -z "$as_dir" && as_dir=. 42217 for ac_exec_ext in '' $ac_executable_extensions; do 42218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42219 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 42220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42221 break 2 42222 fi 42223 done 42224 done 42225 IFS=$as_save_IFS 42226 42227 fi 42228 fi 42229 STRIP=$ac_cv_prog_STRIP 42230 if test -n "$STRIP"; then 42231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42232 $as_echo "$STRIP" >&6; } 42233 else 42234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42235 $as_echo "no" >&6; } 42236 fi 42237 42238 42239 test -n "$STRIP" && break 42240 done 42241 fi 42242 if test -z "$STRIP"; then 42243 ac_ct_STRIP=$STRIP 42244 for ac_prog in strip 42245 do 42246 # Extract the first word of "$ac_prog", so it can be a program name with args. 42247 set dummy $ac_prog; ac_word=$2 42248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42249 $as_echo_n "checking for $ac_word... " >&6; } 42250 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 42251 $as_echo_n "(cached) " >&6 42252 else 42253 if test -n "$ac_ct_STRIP"; then 42254 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 42255 else 42256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42257 for as_dir in $PATH 42258 do 42259 IFS=$as_save_IFS 42260 test -z "$as_dir" && as_dir=. 42261 for ac_exec_ext in '' $ac_executable_extensions; do 42262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42263 ac_cv_prog_ac_ct_STRIP="$ac_prog" 42264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42265 break 2 42266 fi 42267 done 42268 done 42269 IFS=$as_save_IFS 42270 42271 fi 42272 fi 42273 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 42274 if test -n "$ac_ct_STRIP"; then 42275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 42276 $as_echo "$ac_ct_STRIP" >&6; } 42277 else 42278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42279 $as_echo "no" >&6; } 42280 fi 42281 42282 42283 test -n "$ac_ct_STRIP" && break 42284 done 42285 42286 if test "x$ac_ct_STRIP" = x; then 42287 STRIP="" 42288 else 42289 case $cross_compiling:$ac_tool_warned in 42290 yes:) 42291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42293 ac_tool_warned=yes ;; 42294 esac 42295 STRIP=$ac_ct_STRIP 42296 fi 42297 fi 42298 42299 else 42300 # If it succeeded, then it was overridden by the user. We will use it 42301 # for the tool. 42302 42303 # First remove it from the list of overridden variables, so we can test 42304 # for unknown variables in the end. 42305 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42306 42307 # Check if we try to supply an empty value 42308 if test "x$STRIP" = x; then 42309 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 42310 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 42311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 42312 $as_echo_n "checking for STRIP... " >&6; } 42313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42314 $as_echo "disabled" >&6; } 42315 else 42316 # Check if the provided tool contains a complete path. 42317 tool_specified="$STRIP" 42318 tool_basename="${tool_specified##*/}" 42319 if test "x$tool_basename" = "x$tool_specified"; then 42320 # A command without a complete path is provided, search $PATH. 42321 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 42322 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 42323 # Extract the first word of "$tool_basename", so it can be a program name with args. 42324 set dummy $tool_basename; ac_word=$2 42325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42326 $as_echo_n "checking for $ac_word... " >&6; } 42327 if ${ac_cv_path_STRIP+:} false; then : 42328 $as_echo_n "(cached) " >&6 42329 else 42330 case $STRIP in 42331 [\\/]* | ?:[\\/]*) 42332 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 42333 ;; 42334 *) 42335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42336 for as_dir in $PATH 42337 do 42338 IFS=$as_save_IFS 42339 test -z "$as_dir" && as_dir=. 42340 for ac_exec_ext in '' $ac_executable_extensions; do 42341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42342 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 42343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42344 break 2 42345 fi 42346 done 42347 done 42348 IFS=$as_save_IFS 42349 42350 ;; 42351 esac 42352 fi 42353 STRIP=$ac_cv_path_STRIP 42354 if test -n "$STRIP"; then 42355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42356 $as_echo "$STRIP" >&6; } 42357 else 42358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42359 $as_echo "no" >&6; } 42360 fi 42361 42362 42363 if test "x$STRIP" = x; then 42364 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42365 fi 42366 else 42367 # Otherwise we believe it is a complete path. Use it as it is. 42368 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 42369 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 42370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 42371 $as_echo_n "checking for STRIP... " >&6; } 42372 if test ! -x "$tool_specified"; then 42373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42374 $as_echo "not found" >&6; } 42375 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 42376 fi 42377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42378 $as_echo "$tool_specified" >&6; } 42379 fi 42380 fi 42381 fi 42382 42383 fi 42384 42385 42386 42387 # Only process if variable expands to non-empty 42388 42389 if test "x$STRIP" != x; then 42390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42391 42392 # First separate the path from the arguments. This will split at the first 42393 # space. 42394 complete="$STRIP" 42395 path="${complete%% *}" 42396 tmp="$complete EOL" 42397 arguments="${tmp#* }" 42398 42399 # Input might be given as Windows format, start by converting to 42400 # unix format. 42401 new_path=`$CYGPATH -u "$path"` 42402 42403 # Now try to locate executable using which 42404 new_path=`$WHICH "$new_path" 2> /dev/null` 42405 # bat and cmd files are not always considered executable in cygwin causing which 42406 # to not find them 42407 if test "x$new_path" = x \ 42408 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42409 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42410 new_path=`$CYGPATH -u "$path"` 42411 fi 42412 if test "x$new_path" = x; then 42413 # Oops. Which didn't find the executable. 42414 # The splitting of arguments from the executable at a space might have been incorrect, 42415 # since paths with space are more likely in Windows. Give it another try with the whole 42416 # argument. 42417 path="$complete" 42418 arguments="EOL" 42419 new_path=`$CYGPATH -u "$path"` 42420 new_path=`$WHICH "$new_path" 2> /dev/null` 42421 # bat and cmd files are not always considered executable in cygwin causing which 42422 # to not find them 42423 if test "x$new_path" = x \ 42424 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42425 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42426 new_path=`$CYGPATH -u "$path"` 42427 fi 42428 if test "x$new_path" = x; then 42429 # It's still not found. Now this is an unrecoverable error. 42430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42431 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42432 has_space=`$ECHO "$complete" | $GREP " "` 42433 if test "x$has_space" != x; then 42434 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42435 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42436 fi 42437 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42438 fi 42439 fi 42440 42441 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42442 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42443 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42444 # "foo.exe" is OK but "foo" is an error. 42445 # 42446 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42447 # It is also a way to make sure we got the proper file name for the real test later on. 42448 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42449 if test "x$test_shortpath" = x; then 42450 # Short path failed, file does not exist as specified. 42451 # Try adding .exe or .cmd 42452 if test -f "${new_path}.exe"; then 42453 input_to_shortpath="${new_path}.exe" 42454 elif test -f "${new_path}.cmd"; then 42455 input_to_shortpath="${new_path}.cmd" 42456 else 42457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 42458 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 42459 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42460 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42461 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42462 fi 42463 else 42464 input_to_shortpath="$new_path" 42465 fi 42466 42467 # Call helper function which possibly converts this using DOS-style short mode. 42468 # If so, the updated path is stored in $new_path. 42469 new_path="$input_to_shortpath" 42470 42471 input_path="$input_to_shortpath" 42472 # Check if we need to convert this using DOS-style short mode. If the path 42473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42474 # take no chances and rewrite it. 42475 # Note: m4 eats our [], so we need to use [ and ] instead. 42476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42477 if test "x$has_forbidden_chars" != x; then 42478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42479 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42480 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42481 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42482 # Going to short mode and back again did indeed matter. Since short mode is 42483 # case insensitive, let's make it lowercase to improve readability. 42484 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42485 # Now convert it back to Unix-style (cygpath) 42486 input_path=`$CYGPATH -u "$shortmode_path"` 42487 new_path="$input_path" 42488 fi 42489 fi 42490 42491 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42492 if test "x$test_cygdrive_prefix" = x; then 42493 # As a simple fix, exclude /usr/bin since it's not a real path. 42494 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42495 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42496 # a path prefixed by /cygdrive for fixpath to work. 42497 new_path="$CYGWIN_ROOT_PATH$input_path" 42498 fi 42499 fi 42500 42501 # remove trailing .exe if any 42502 new_path="${new_path/%.exe/}" 42503 42504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42505 42506 # First separate the path from the arguments. This will split at the first 42507 # space. 42508 complete="$STRIP" 42509 path="${complete%% *}" 42510 tmp="$complete EOL" 42511 arguments="${tmp#* }" 42512 42513 # Input might be given as Windows format, start by converting to 42514 # unix format. 42515 new_path="$path" 42516 42517 windows_path="$new_path" 42518 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42519 unix_path=`$CYGPATH -u "$windows_path"` 42520 new_path="$unix_path" 42521 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42522 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42523 new_path="$unix_path" 42524 fi 42525 42526 42527 # Now try to locate executable using which 42528 new_path=`$WHICH "$new_path" 2> /dev/null` 42529 42530 if test "x$new_path" = x; then 42531 # Oops. Which didn't find the executable. 42532 # The splitting of arguments from the executable at a space might have been incorrect, 42533 # since paths with space are more likely in Windows. Give it another try with the whole 42534 # argument. 42535 path="$complete" 42536 arguments="EOL" 42537 new_path="$path" 42538 42539 windows_path="$new_path" 42540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42541 unix_path=`$CYGPATH -u "$windows_path"` 42542 new_path="$unix_path" 42543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42545 new_path="$unix_path" 42546 fi 42547 42548 42549 new_path=`$WHICH "$new_path" 2> /dev/null` 42550 # bat and cmd files are not always considered executable in MSYS causing which 42551 # to not find them 42552 if test "x$new_path" = x \ 42553 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42554 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42555 new_path="$path" 42556 42557 windows_path="$new_path" 42558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42559 unix_path=`$CYGPATH -u "$windows_path"` 42560 new_path="$unix_path" 42561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42562 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42563 new_path="$unix_path" 42564 fi 42565 42566 fi 42567 42568 if test "x$new_path" = x; then 42569 # It's still not found. Now this is an unrecoverable error. 42570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42571 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42572 has_space=`$ECHO "$complete" | $GREP " "` 42573 if test "x$has_space" != x; then 42574 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42575 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42576 fi 42577 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42578 fi 42579 fi 42580 42581 # Now new_path has a complete unix path to the binary 42582 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42583 # Keep paths in /bin as-is, but remove trailing .exe if any 42584 new_path="${new_path/%.exe/}" 42585 # Do not save /bin paths to all_fixpath_prefixes! 42586 else 42587 # Not in mixed or Windows style, start by that. 42588 new_path=`cmd //c echo $new_path` 42589 42590 input_path="$new_path" 42591 # Check if we need to convert this using DOS-style short mode. If the path 42592 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42593 # take no chances and rewrite it. 42594 # Note: m4 eats our [], so we need to use [ and ] instead. 42595 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42596 if test "x$has_forbidden_chars" != x; then 42597 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42598 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42599 fi 42600 42601 # Output is in $new_path 42602 42603 windows_path="$new_path" 42604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42605 unix_path=`$CYGPATH -u "$windows_path"` 42606 new_path="$unix_path" 42607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42608 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42609 new_path="$unix_path" 42610 fi 42611 42612 # remove trailing .exe if any 42613 new_path="${new_path/%.exe/}" 42614 42615 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42616 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42617 fi 42618 42619 else 42620 # We're on a unix platform. Hooray! :) 42621 # First separate the path from the arguments. This will split at the first 42622 # space. 42623 complete="$STRIP" 42624 path="${complete%% *}" 42625 tmp="$complete EOL" 42626 arguments="${tmp#* }" 42627 42628 # Cannot rely on the command "which" here since it doesn't always work. 42629 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42630 if test -z "$is_absolute_path"; then 42631 # Path to executable is not absolute. Find it. 42632 IFS_save="$IFS" 42633 IFS=: 42634 for p in $PATH; do 42635 if test -f "$p/$path" && test -x "$p/$path"; then 42636 new_path="$p/$path" 42637 break 42638 fi 42639 done 42640 IFS="$IFS_save" 42641 else 42642 # This is an absolute path, we can use it without further modifications. 42643 new_path="$path" 42644 fi 42645 42646 if test "x$new_path" = x; then 42647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 42648 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 42649 has_space=`$ECHO "$complete" | $GREP " "` 42650 if test "x$has_space" != x; then 42651 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42652 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42653 fi 42654 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 42655 fi 42656 fi 42657 42658 # Now join together the path and the arguments once again 42659 if test "x$arguments" != xEOL; then 42660 new_complete="$new_path ${arguments% *}" 42661 else 42662 new_complete="$new_path" 42663 fi 42664 42665 if test "x$complete" != "x$new_complete"; then 42666 STRIP="$new_complete" 42667 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 42668 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 42669 fi 42670 fi 42671 42672 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42673 42674 42675 # Publish this variable in the help. 42676 42677 42678 if [ -z "${NM+x}" ]; then 42679 # The variable is not set by user, try to locate tool using the code snippet 42680 if test -n "$ac_tool_prefix"; then 42681 for ac_prog in nm gcc-nm 42682 do 42683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42686 $as_echo_n "checking for $ac_word... " >&6; } 42687 if ${ac_cv_prog_NM+:} false; then : 42688 $as_echo_n "(cached) " >&6 42689 else 42690 if test -n "$NM"; then 42691 ac_cv_prog_NM="$NM" # Let the user override the test. 42692 else 42693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42694 for as_dir in $PATH 42695 do 42696 IFS=$as_save_IFS 42697 test -z "$as_dir" && as_dir=. 42698 for ac_exec_ext in '' $ac_executable_extensions; do 42699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42700 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42702 break 2 42703 fi 42704 done 42705 done 42706 IFS=$as_save_IFS 42707 42708 fi 42709 fi 42710 NM=$ac_cv_prog_NM 42711 if test -n "$NM"; then 42712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42713 $as_echo "$NM" >&6; } 42714 else 42715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42716 $as_echo "no" >&6; } 42717 fi 42718 42719 42720 test -n "$NM" && break 42721 done 42722 fi 42723 if test -z "$NM"; then 42724 ac_ct_NM=$NM 42725 for ac_prog in nm gcc-nm 42726 do 42727 # Extract the first word of "$ac_prog", so it can be a program name with args. 42728 set dummy $ac_prog; ac_word=$2 42729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42730 $as_echo_n "checking for $ac_word... " >&6; } 42731 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42732 $as_echo_n "(cached) " >&6 42733 else 42734 if test -n "$ac_ct_NM"; then 42735 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42736 else 42737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42738 for as_dir in $PATH 42739 do 42740 IFS=$as_save_IFS 42741 test -z "$as_dir" && as_dir=. 42742 for ac_exec_ext in '' $ac_executable_extensions; do 42743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42744 ac_cv_prog_ac_ct_NM="$ac_prog" 42745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42746 break 2 42747 fi 42748 done 42749 done 42750 IFS=$as_save_IFS 42751 42752 fi 42753 fi 42754 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42755 if test -n "$ac_ct_NM"; then 42756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42757 $as_echo "$ac_ct_NM" >&6; } 42758 else 42759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42760 $as_echo "no" >&6; } 42761 fi 42762 42763 42764 test -n "$ac_ct_NM" && break 42765 done 42766 42767 if test "x$ac_ct_NM" = x; then 42768 NM="" 42769 else 42770 case $cross_compiling:$ac_tool_warned in 42771 yes:) 42772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42774 ac_tool_warned=yes ;; 42775 esac 42776 NM=$ac_ct_NM 42777 fi 42778 fi 42779 42780 else 42781 # The variable is set, but is it from the command line or the environment? 42782 42783 # Try to remove the string !NM! from our list. 42784 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42785 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42786 # If it failed, the variable was not from the command line. Ignore it, 42787 # but warn the user (except for BASH, which is always set by the calling BASH). 42788 if test "xNM" != xBASH; then 42789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42790 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42791 fi 42792 # Try to locate tool using the code snippet 42793 if test -n "$ac_tool_prefix"; then 42794 for ac_prog in nm gcc-nm 42795 do 42796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42799 $as_echo_n "checking for $ac_word... " >&6; } 42800 if ${ac_cv_prog_NM+:} false; then : 42801 $as_echo_n "(cached) " >&6 42802 else 42803 if test -n "$NM"; then 42804 ac_cv_prog_NM="$NM" # Let the user override the test. 42805 else 42806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42807 for as_dir in $PATH 42808 do 42809 IFS=$as_save_IFS 42810 test -z "$as_dir" && as_dir=. 42811 for ac_exec_ext in '' $ac_executable_extensions; do 42812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42813 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42815 break 2 42816 fi 42817 done 42818 done 42819 IFS=$as_save_IFS 42820 42821 fi 42822 fi 42823 NM=$ac_cv_prog_NM 42824 if test -n "$NM"; then 42825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42826 $as_echo "$NM" >&6; } 42827 else 42828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42829 $as_echo "no" >&6; } 42830 fi 42831 42832 42833 test -n "$NM" && break 42834 done 42835 fi 42836 if test -z "$NM"; then 42837 ac_ct_NM=$NM 42838 for ac_prog in nm gcc-nm 42839 do 42840 # Extract the first word of "$ac_prog", so it can be a program name with args. 42841 set dummy $ac_prog; ac_word=$2 42842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42843 $as_echo_n "checking for $ac_word... " >&6; } 42844 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42845 $as_echo_n "(cached) " >&6 42846 else 42847 if test -n "$ac_ct_NM"; then 42848 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42849 else 42850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42851 for as_dir in $PATH 42852 do 42853 IFS=$as_save_IFS 42854 test -z "$as_dir" && as_dir=. 42855 for ac_exec_ext in '' $ac_executable_extensions; do 42856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42857 ac_cv_prog_ac_ct_NM="$ac_prog" 42858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42859 break 2 42860 fi 42861 done 42862 done 42863 IFS=$as_save_IFS 42864 42865 fi 42866 fi 42867 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42868 if test -n "$ac_ct_NM"; then 42869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42870 $as_echo "$ac_ct_NM" >&6; } 42871 else 42872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42873 $as_echo "no" >&6; } 42874 fi 42875 42876 42877 test -n "$ac_ct_NM" && break 42878 done 42879 42880 if test "x$ac_ct_NM" = x; then 42881 NM="" 42882 else 42883 case $cross_compiling:$ac_tool_warned in 42884 yes:) 42885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42887 ac_tool_warned=yes ;; 42888 esac 42889 NM=$ac_ct_NM 42890 fi 42891 fi 42892 42893 else 42894 # If it succeeded, then it was overridden by the user. We will use it 42895 # for the tool. 42896 42897 # First remove it from the list of overridden variables, so we can test 42898 # for unknown variables in the end. 42899 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42900 42901 # Check if we try to supply an empty value 42902 if test "x$NM" = x; then 42903 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42904 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42906 $as_echo_n "checking for NM... " >&6; } 42907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42908 $as_echo "disabled" >&6; } 42909 else 42910 # Check if the provided tool contains a complete path. 42911 tool_specified="$NM" 42912 tool_basename="${tool_specified##*/}" 42913 if test "x$tool_basename" = "x$tool_specified"; then 42914 # A command without a complete path is provided, search $PATH. 42915 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42916 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42917 # Extract the first word of "$tool_basename", so it can be a program name with args. 42918 set dummy $tool_basename; ac_word=$2 42919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42920 $as_echo_n "checking for $ac_word... " >&6; } 42921 if ${ac_cv_path_NM+:} false; then : 42922 $as_echo_n "(cached) " >&6 42923 else 42924 case $NM in 42925 [\\/]* | ?:[\\/]*) 42926 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42927 ;; 42928 *) 42929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42930 for as_dir in $PATH 42931 do 42932 IFS=$as_save_IFS 42933 test -z "$as_dir" && as_dir=. 42934 for ac_exec_ext in '' $ac_executable_extensions; do 42935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42936 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42938 break 2 42939 fi 42940 done 42941 done 42942 IFS=$as_save_IFS 42943 42944 ;; 42945 esac 42946 fi 42947 NM=$ac_cv_path_NM 42948 if test -n "$NM"; then 42949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42950 $as_echo "$NM" >&6; } 42951 else 42952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42953 $as_echo "no" >&6; } 42954 fi 42955 42956 42957 if test "x$NM" = x; then 42958 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42959 fi 42960 else 42961 # Otherwise we believe it is a complete path. Use it as it is. 42962 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42963 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42965 $as_echo_n "checking for NM... " >&6; } 42966 if test ! -x "$tool_specified"; then 42967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42968 $as_echo "not found" >&6; } 42969 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42970 fi 42971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42972 $as_echo "$tool_specified" >&6; } 42973 fi 42974 fi 42975 fi 42976 42977 fi 42978 42979 42980 else 42981 42982 42983 # Publish this variable in the help. 42984 42985 42986 if [ -z "${NM+x}" ]; then 42987 # The variable is not set by user, try to locate tool using the code snippet 42988 if test -n "$ac_tool_prefix"; then 42989 for ac_prog in nm 42990 do 42991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42994 $as_echo_n "checking for $ac_word... " >&6; } 42995 if ${ac_cv_prog_NM+:} false; then : 42996 $as_echo_n "(cached) " >&6 42997 else 42998 if test -n "$NM"; then 42999 ac_cv_prog_NM="$NM" # Let the user override the test. 43000 else 43001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43002 for as_dir in $PATH 43003 do 43004 IFS=$as_save_IFS 43005 test -z "$as_dir" && as_dir=. 43006 for ac_exec_ext in '' $ac_executable_extensions; do 43007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43008 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43010 break 2 43011 fi 43012 done 43013 done 43014 IFS=$as_save_IFS 43015 43016 fi 43017 fi 43018 NM=$ac_cv_prog_NM 43019 if test -n "$NM"; then 43020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43021 $as_echo "$NM" >&6; } 43022 else 43023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43024 $as_echo "no" >&6; } 43025 fi 43026 43027 43028 test -n "$NM" && break 43029 done 43030 fi 43031 if test -z "$NM"; then 43032 ac_ct_NM=$NM 43033 for ac_prog in nm 43034 do 43035 # Extract the first word of "$ac_prog", so it can be a program name with args. 43036 set dummy $ac_prog; ac_word=$2 43037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43038 $as_echo_n "checking for $ac_word... " >&6; } 43039 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43040 $as_echo_n "(cached) " >&6 43041 else 43042 if test -n "$ac_ct_NM"; then 43043 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43044 else 43045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43046 for as_dir in $PATH 43047 do 43048 IFS=$as_save_IFS 43049 test -z "$as_dir" && as_dir=. 43050 for ac_exec_ext in '' $ac_executable_extensions; do 43051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43052 ac_cv_prog_ac_ct_NM="$ac_prog" 43053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43054 break 2 43055 fi 43056 done 43057 done 43058 IFS=$as_save_IFS 43059 43060 fi 43061 fi 43062 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43063 if test -n "$ac_ct_NM"; then 43064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43065 $as_echo "$ac_ct_NM" >&6; } 43066 else 43067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43068 $as_echo "no" >&6; } 43069 fi 43070 43071 43072 test -n "$ac_ct_NM" && break 43073 done 43074 43075 if test "x$ac_ct_NM" = x; then 43076 NM="" 43077 else 43078 case $cross_compiling:$ac_tool_warned in 43079 yes:) 43080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43082 ac_tool_warned=yes ;; 43083 esac 43084 NM=$ac_ct_NM 43085 fi 43086 fi 43087 43088 else 43089 # The variable is set, but is it from the command line or the environment? 43090 43091 # Try to remove the string !NM! from our list. 43092 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 43093 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43094 # If it failed, the variable was not from the command line. Ignore it, 43095 # but warn the user (except for BASH, which is always set by the calling BASH). 43096 if test "xNM" != xBASH; then 43097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 43098 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 43099 fi 43100 # Try to locate tool using the code snippet 43101 if test -n "$ac_tool_prefix"; then 43102 for ac_prog in nm 43103 do 43104 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43107 $as_echo_n "checking for $ac_word... " >&6; } 43108 if ${ac_cv_prog_NM+:} false; then : 43109 $as_echo_n "(cached) " >&6 43110 else 43111 if test -n "$NM"; then 43112 ac_cv_prog_NM="$NM" # Let the user override the test. 43113 else 43114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43115 for as_dir in $PATH 43116 do 43117 IFS=$as_save_IFS 43118 test -z "$as_dir" && as_dir=. 43119 for ac_exec_ext in '' $ac_executable_extensions; do 43120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43121 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43123 break 2 43124 fi 43125 done 43126 done 43127 IFS=$as_save_IFS 43128 43129 fi 43130 fi 43131 NM=$ac_cv_prog_NM 43132 if test -n "$NM"; then 43133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43134 $as_echo "$NM" >&6; } 43135 else 43136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43137 $as_echo "no" >&6; } 43138 fi 43139 43140 43141 test -n "$NM" && break 43142 done 43143 fi 43144 if test -z "$NM"; then 43145 ac_ct_NM=$NM 43146 for ac_prog in nm 43147 do 43148 # Extract the first word of "$ac_prog", so it can be a program name with args. 43149 set dummy $ac_prog; ac_word=$2 43150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43151 $as_echo_n "checking for $ac_word... " >&6; } 43152 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43153 $as_echo_n "(cached) " >&6 43154 else 43155 if test -n "$ac_ct_NM"; then 43156 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43157 else 43158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43159 for as_dir in $PATH 43160 do 43161 IFS=$as_save_IFS 43162 test -z "$as_dir" && as_dir=. 43163 for ac_exec_ext in '' $ac_executable_extensions; do 43164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43165 ac_cv_prog_ac_ct_NM="$ac_prog" 43166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43167 break 2 43168 fi 43169 done 43170 done 43171 IFS=$as_save_IFS 43172 43173 fi 43174 fi 43175 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43176 if test -n "$ac_ct_NM"; then 43177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43178 $as_echo "$ac_ct_NM" >&6; } 43179 else 43180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43181 $as_echo "no" >&6; } 43182 fi 43183 43184 43185 test -n "$ac_ct_NM" && break 43186 done 43187 43188 if test "x$ac_ct_NM" = x; then 43189 NM="" 43190 else 43191 case $cross_compiling:$ac_tool_warned in 43192 yes:) 43193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43195 ac_tool_warned=yes ;; 43196 esac 43197 NM=$ac_ct_NM 43198 fi 43199 fi 43200 43201 else 43202 # If it succeeded, then it was overridden by the user. We will use it 43203 # for the tool. 43204 43205 # First remove it from the list of overridden variables, so we can test 43206 # for unknown variables in the end. 43207 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43208 43209 # Check if we try to supply an empty value 43210 if test "x$NM" = x; then 43211 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 43212 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 43213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43214 $as_echo_n "checking for NM... " >&6; } 43215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43216 $as_echo "disabled" >&6; } 43217 else 43218 # Check if the provided tool contains a complete path. 43219 tool_specified="$NM" 43220 tool_basename="${tool_specified##*/}" 43221 if test "x$tool_basename" = "x$tool_specified"; then 43222 # A command without a complete path is provided, search $PATH. 43223 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 43224 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 43225 # Extract the first word of "$tool_basename", so it can be a program name with args. 43226 set dummy $tool_basename; ac_word=$2 43227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43228 $as_echo_n "checking for $ac_word... " >&6; } 43229 if ${ac_cv_path_NM+:} false; then : 43230 $as_echo_n "(cached) " >&6 43231 else 43232 case $NM in 43233 [\\/]* | ?:[\\/]*) 43234 ac_cv_path_NM="$NM" # Let the user override the test with a path. 43235 ;; 43236 *) 43237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43238 for as_dir in $PATH 43239 do 43240 IFS=$as_save_IFS 43241 test -z "$as_dir" && as_dir=. 43242 for ac_exec_ext in '' $ac_executable_extensions; do 43243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43244 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 43245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43246 break 2 43247 fi 43248 done 43249 done 43250 IFS=$as_save_IFS 43251 43252 ;; 43253 esac 43254 fi 43255 NM=$ac_cv_path_NM 43256 if test -n "$NM"; then 43257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43258 $as_echo "$NM" >&6; } 43259 else 43260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43261 $as_echo "no" >&6; } 43262 fi 43263 43264 43265 if test "x$NM" = x; then 43266 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43267 fi 43268 else 43269 # Otherwise we believe it is a complete path. Use it as it is. 43270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 43271 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 43272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43273 $as_echo_n "checking for NM... " >&6; } 43274 if test ! -x "$tool_specified"; then 43275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43276 $as_echo "not found" >&6; } 43277 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 43278 fi 43279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43280 $as_echo "$tool_specified" >&6; } 43281 fi 43282 fi 43283 fi 43284 43285 fi 43286 43287 43288 fi 43289 43290 # Only process if variable expands to non-empty 43291 43292 if test "x$NM" != x; then 43293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43294 43295 # First separate the path from the arguments. This will split at the first 43296 # space. 43297 complete="$NM" 43298 path="${complete%% *}" 43299 tmp="$complete EOL" 43300 arguments="${tmp#* }" 43301 43302 # Input might be given as Windows format, start by converting to 43303 # unix format. 43304 new_path=`$CYGPATH -u "$path"` 43305 43306 # Now try to locate executable using which 43307 new_path=`$WHICH "$new_path" 2> /dev/null` 43308 # bat and cmd files are not always considered executable in cygwin causing which 43309 # to not find them 43310 if test "x$new_path" = x \ 43311 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43312 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43313 new_path=`$CYGPATH -u "$path"` 43314 fi 43315 if test "x$new_path" = x; then 43316 # Oops. Which didn't find the executable. 43317 # The splitting of arguments from the executable at a space might have been incorrect, 43318 # since paths with space are more likely in Windows. Give it another try with the whole 43319 # argument. 43320 path="$complete" 43321 arguments="EOL" 43322 new_path=`$CYGPATH -u "$path"` 43323 new_path=`$WHICH "$new_path" 2> /dev/null` 43324 # bat and cmd files are not always considered executable in cygwin causing which 43325 # to not find them 43326 if test "x$new_path" = x \ 43327 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43328 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43329 new_path=`$CYGPATH -u "$path"` 43330 fi 43331 if test "x$new_path" = x; then 43332 # It's still not found. Now this is an unrecoverable error. 43333 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 43334 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 43335 has_space=`$ECHO "$complete" | $GREP " "` 43336 if test "x$has_space" != x; then 43337 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43338 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43339 fi 43340 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43341 fi 43342 fi 43343 43344 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43345 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43346 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43347 # "foo.exe" is OK but "foo" is an error. 43348 # 43349 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43350 # It is also a way to make sure we got the proper file name for the real test later on. 43351 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43352 if test "x$test_shortpath" = x; then 43353 # Short path failed, file does not exist as specified. 43354 # Try adding .exe or .cmd 43355 if test -f "${new_path}.exe"; then 43356 input_to_shortpath="${new_path}.exe" 43357 elif test -f "${new_path}.cmd"; then 43358 input_to_shortpath="${new_path}.cmd" 43359 else 43360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 43361 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 43362 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43363 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43364 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43365 fi 43366 else 43367 input_to_shortpath="$new_path" 43368 fi 43369 43370 # Call helper function which possibly converts this using DOS-style short mode. 43371 # If so, the updated path is stored in $new_path. 43372 new_path="$input_to_shortpath" 43373 43374 input_path="$input_to_shortpath" 43375 # Check if we need to convert this using DOS-style short mode. If the path 43376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43377 # take no chances and rewrite it. 43378 # Note: m4 eats our [], so we need to use [ and ] instead. 43379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43380 if test "x$has_forbidden_chars" != x; then 43381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43382 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43383 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43384 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43385 # Going to short mode and back again did indeed matter. Since short mode is 43386 # case insensitive, let's make it lowercase to improve readability. 43387 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43388 # Now convert it back to Unix-style (cygpath) 43389 input_path=`$CYGPATH -u "$shortmode_path"` 43390 new_path="$input_path" 43391 fi 43392 fi 43393 43394 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43395 if test "x$test_cygdrive_prefix" = x; then 43396 # As a simple fix, exclude /usr/bin since it's not a real path. 43397 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43398 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43399 # a path prefixed by /cygdrive for fixpath to work. 43400 new_path="$CYGWIN_ROOT_PATH$input_path" 43401 fi 43402 fi 43403 43404 # remove trailing .exe if any 43405 new_path="${new_path/%.exe/}" 43406 43407 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43408 43409 # First separate the path from the arguments. This will split at the first 43410 # space. 43411 complete="$NM" 43412 path="${complete%% *}" 43413 tmp="$complete EOL" 43414 arguments="${tmp#* }" 43415 43416 # Input might be given as Windows format, start by converting to 43417 # unix format. 43418 new_path="$path" 43419 43420 windows_path="$new_path" 43421 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43422 unix_path=`$CYGPATH -u "$windows_path"` 43423 new_path="$unix_path" 43424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43425 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43426 new_path="$unix_path" 43427 fi 43428 43429 43430 # Now try to locate executable using which 43431 new_path=`$WHICH "$new_path" 2> /dev/null` 43432 43433 if test "x$new_path" = x; then 43434 # Oops. Which didn't find the executable. 43435 # The splitting of arguments from the executable at a space might have been incorrect, 43436 # since paths with space are more likely in Windows. Give it another try with the whole 43437 # argument. 43438 path="$complete" 43439 arguments="EOL" 43440 new_path="$path" 43441 43442 windows_path="$new_path" 43443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43444 unix_path=`$CYGPATH -u "$windows_path"` 43445 new_path="$unix_path" 43446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43447 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43448 new_path="$unix_path" 43449 fi 43450 43451 43452 new_path=`$WHICH "$new_path" 2> /dev/null` 43453 # bat and cmd files are not always considered executable in MSYS causing which 43454 # to not find them 43455 if test "x$new_path" = x \ 43456 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43457 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43458 new_path="$path" 43459 43460 windows_path="$new_path" 43461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43462 unix_path=`$CYGPATH -u "$windows_path"` 43463 new_path="$unix_path" 43464 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43465 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43466 new_path="$unix_path" 43467 fi 43468 43469 fi 43470 43471 if test "x$new_path" = x; then 43472 # It's still not found. Now this is an unrecoverable error. 43473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 43474 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 43475 has_space=`$ECHO "$complete" | $GREP " "` 43476 if test "x$has_space" != x; then 43477 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43478 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43479 fi 43480 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43481 fi 43482 fi 43483 43484 # Now new_path has a complete unix path to the binary 43485 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43486 # Keep paths in /bin as-is, but remove trailing .exe if any 43487 new_path="${new_path/%.exe/}" 43488 # Do not save /bin paths to all_fixpath_prefixes! 43489 else 43490 # Not in mixed or Windows style, start by that. 43491 new_path=`cmd //c echo $new_path` 43492 43493 input_path="$new_path" 43494 # Check if we need to convert this using DOS-style short mode. If the path 43495 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43496 # take no chances and rewrite it. 43497 # Note: m4 eats our [], so we need to use [ and ] instead. 43498 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43499 if test "x$has_forbidden_chars" != x; then 43500 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43501 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43502 fi 43503 43504 # Output is in $new_path 43505 43506 windows_path="$new_path" 43507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43508 unix_path=`$CYGPATH -u "$windows_path"` 43509 new_path="$unix_path" 43510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43512 new_path="$unix_path" 43513 fi 43514 43515 # remove trailing .exe if any 43516 new_path="${new_path/%.exe/}" 43517 43518 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43519 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43520 fi 43521 43522 else 43523 # We're on a unix platform. Hooray! :) 43524 # First separate the path from the arguments. This will split at the first 43525 # space. 43526 complete="$NM" 43527 path="${complete%% *}" 43528 tmp="$complete EOL" 43529 arguments="${tmp#* }" 43530 43531 # Cannot rely on the command "which" here since it doesn't always work. 43532 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43533 if test -z "$is_absolute_path"; then 43534 # Path to executable is not absolute. Find it. 43535 IFS_save="$IFS" 43536 IFS=: 43537 for p in $PATH; do 43538 if test -f "$p/$path" && test -x "$p/$path"; then 43539 new_path="$p/$path" 43540 break 43541 fi 43542 done 43543 IFS="$IFS_save" 43544 else 43545 # This is an absolute path, we can use it without further modifications. 43546 new_path="$path" 43547 fi 43548 43549 if test "x$new_path" = x; then 43550 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 43551 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 43552 has_space=`$ECHO "$complete" | $GREP " "` 43553 if test "x$has_space" != x; then 43554 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43555 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43556 fi 43557 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 43558 fi 43559 fi 43560 43561 # Now join together the path and the arguments once again 43562 if test "x$arguments" != xEOL; then 43563 new_complete="$new_path ${arguments% *}" 43564 else 43565 new_complete="$new_path" 43566 fi 43567 43568 if test "x$complete" != "x$new_complete"; then 43569 NM="$new_complete" 43570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 43571 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 43572 fi 43573 fi 43574 43575 GNM="$NM" 43576 43577 fi 43578 43579 # objcopy is used for moving debug symbols to separate files when 43580 # full debug symbols are enabled. 43581 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 43582 43583 43584 # Publish this variable in the help. 43585 43586 43587 if [ -z "${OBJCOPY+x}" ]; then 43588 # The variable is not set by user, try to locate tool using the code snippet 43589 if test -n "$ac_tool_prefix"; then 43590 for ac_prog in gobjcopy objcopy 43591 do 43592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43595 $as_echo_n "checking for $ac_word... " >&6; } 43596 if ${ac_cv_prog_OBJCOPY+:} false; then : 43597 $as_echo_n "(cached) " >&6 43598 else 43599 if test -n "$OBJCOPY"; then 43600 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 43601 else 43602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43603 for as_dir in $PATH 43604 do 43605 IFS=$as_save_IFS 43606 test -z "$as_dir" && as_dir=. 43607 for ac_exec_ext in '' $ac_executable_extensions; do 43608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43609 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 43610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43611 break 2 43612 fi 43613 done 43614 done 43615 IFS=$as_save_IFS 43616 43617 fi 43618 fi 43619 OBJCOPY=$ac_cv_prog_OBJCOPY 43620 if test -n "$OBJCOPY"; then 43621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43622 $as_echo "$OBJCOPY" >&6; } 43623 else 43624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43625 $as_echo "no" >&6; } 43626 fi 43627 43628 43629 test -n "$OBJCOPY" && break 43630 done 43631 fi 43632 if test -z "$OBJCOPY"; then 43633 ac_ct_OBJCOPY=$OBJCOPY 43634 for ac_prog in gobjcopy objcopy 43635 do 43636 # Extract the first word of "$ac_prog", so it can be a program name with args. 43637 set dummy $ac_prog; ac_word=$2 43638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43639 $as_echo_n "checking for $ac_word... " >&6; } 43640 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 43641 $as_echo_n "(cached) " >&6 43642 else 43643 if test -n "$ac_ct_OBJCOPY"; then 43644 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 43645 else 43646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43647 for as_dir in $PATH 43648 do 43649 IFS=$as_save_IFS 43650 test -z "$as_dir" && as_dir=. 43651 for ac_exec_ext in '' $ac_executable_extensions; do 43652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43653 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 43654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43655 break 2 43656 fi 43657 done 43658 done 43659 IFS=$as_save_IFS 43660 43661 fi 43662 fi 43663 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 43664 if test -n "$ac_ct_OBJCOPY"; then 43665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 43666 $as_echo "$ac_ct_OBJCOPY" >&6; } 43667 else 43668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43669 $as_echo "no" >&6; } 43670 fi 43671 43672 43673 test -n "$ac_ct_OBJCOPY" && break 43674 done 43675 43676 if test "x$ac_ct_OBJCOPY" = x; then 43677 OBJCOPY="" 43678 else 43679 case $cross_compiling:$ac_tool_warned in 43680 yes:) 43681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43683 ac_tool_warned=yes ;; 43684 esac 43685 OBJCOPY=$ac_ct_OBJCOPY 43686 fi 43687 fi 43688 43689 else 43690 # The variable is set, but is it from the command line or the environment? 43691 43692 # Try to remove the string !OBJCOPY! from our list. 43693 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 43694 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43695 # If it failed, the variable was not from the command line. Ignore it, 43696 # but warn the user (except for BASH, which is always set by the calling BASH). 43697 if test "xOBJCOPY" != xBASH; then 43698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 43699 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 43700 fi 43701 # Try to locate tool using the code snippet 43702 if test -n "$ac_tool_prefix"; then 43703 for ac_prog in gobjcopy objcopy 43704 do 43705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43708 $as_echo_n "checking for $ac_word... " >&6; } 43709 if ${ac_cv_prog_OBJCOPY+:} false; then : 43710 $as_echo_n "(cached) " >&6 43711 else 43712 if test -n "$OBJCOPY"; then 43713 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 43714 else 43715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43716 for as_dir in $PATH 43717 do 43718 IFS=$as_save_IFS 43719 test -z "$as_dir" && as_dir=. 43720 for ac_exec_ext in '' $ac_executable_extensions; do 43721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43722 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 43723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43724 break 2 43725 fi 43726 done 43727 done 43728 IFS=$as_save_IFS 43729 43730 fi 43731 fi 43732 OBJCOPY=$ac_cv_prog_OBJCOPY 43733 if test -n "$OBJCOPY"; then 43734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43735 $as_echo "$OBJCOPY" >&6; } 43736 else 43737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43738 $as_echo "no" >&6; } 43739 fi 43740 43741 43742 test -n "$OBJCOPY" && break 43743 done 43744 fi 43745 if test -z "$OBJCOPY"; then 43746 ac_ct_OBJCOPY=$OBJCOPY 43747 for ac_prog in gobjcopy objcopy 43748 do 43749 # Extract the first word of "$ac_prog", so it can be a program name with args. 43750 set dummy $ac_prog; ac_word=$2 43751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43752 $as_echo_n "checking for $ac_word... " >&6; } 43753 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 43754 $as_echo_n "(cached) " >&6 43755 else 43756 if test -n "$ac_ct_OBJCOPY"; then 43757 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 43758 else 43759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43760 for as_dir in $PATH 43761 do 43762 IFS=$as_save_IFS 43763 test -z "$as_dir" && as_dir=. 43764 for ac_exec_ext in '' $ac_executable_extensions; do 43765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43766 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 43767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43768 break 2 43769 fi 43770 done 43771 done 43772 IFS=$as_save_IFS 43773 43774 fi 43775 fi 43776 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 43777 if test -n "$ac_ct_OBJCOPY"; then 43778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 43779 $as_echo "$ac_ct_OBJCOPY" >&6; } 43780 else 43781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43782 $as_echo "no" >&6; } 43783 fi 43784 43785 43786 test -n "$ac_ct_OBJCOPY" && break 43787 done 43788 43789 if test "x$ac_ct_OBJCOPY" = x; then 43790 OBJCOPY="" 43791 else 43792 case $cross_compiling:$ac_tool_warned in 43793 yes:) 43794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43796 ac_tool_warned=yes ;; 43797 esac 43798 OBJCOPY=$ac_ct_OBJCOPY 43799 fi 43800 fi 43801 43802 else 43803 # If it succeeded, then it was overridden by the user. We will use it 43804 # for the tool. 43805 43806 # First remove it from the list of overridden variables, so we can test 43807 # for unknown variables in the end. 43808 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43809 43810 # Check if we try to supply an empty value 43811 if test "x$OBJCOPY" = x; then 43812 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 43813 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 43814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 43815 $as_echo_n "checking for OBJCOPY... " >&6; } 43816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43817 $as_echo "disabled" >&6; } 43818 else 43819 # Check if the provided tool contains a complete path. 43820 tool_specified="$OBJCOPY" 43821 tool_basename="${tool_specified##*/}" 43822 if test "x$tool_basename" = "x$tool_specified"; then 43823 # A command without a complete path is provided, search $PATH. 43824 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 43825 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 43826 # Extract the first word of "$tool_basename", so it can be a program name with args. 43827 set dummy $tool_basename; ac_word=$2 43828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43829 $as_echo_n "checking for $ac_word... " >&6; } 43830 if ${ac_cv_path_OBJCOPY+:} false; then : 43831 $as_echo_n "(cached) " >&6 43832 else 43833 case $OBJCOPY in 43834 [\\/]* | ?:[\\/]*) 43835 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 43836 ;; 43837 *) 43838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43839 for as_dir in $PATH 43840 do 43841 IFS=$as_save_IFS 43842 test -z "$as_dir" && as_dir=. 43843 for ac_exec_ext in '' $ac_executable_extensions; do 43844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43845 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 43846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43847 break 2 43848 fi 43849 done 43850 done 43851 IFS=$as_save_IFS 43852 43853 ;; 43854 esac 43855 fi 43856 OBJCOPY=$ac_cv_path_OBJCOPY 43857 if test -n "$OBJCOPY"; then 43858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 43859 $as_echo "$OBJCOPY" >&6; } 43860 else 43861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43862 $as_echo "no" >&6; } 43863 fi 43864 43865 43866 if test "x$OBJCOPY" = x; then 43867 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43868 fi 43869 else 43870 # Otherwise we believe it is a complete path. Use it as it is. 43871 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 43872 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 43873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 43874 $as_echo_n "checking for OBJCOPY... " >&6; } 43875 if test ! -x "$tool_specified"; then 43876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43877 $as_echo "not found" >&6; } 43878 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 43879 fi 43880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43881 $as_echo "$tool_specified" >&6; } 43882 fi 43883 fi 43884 fi 43885 43886 fi 43887 43888 43889 # Only call fixup if objcopy was found. 43890 if test -n "$OBJCOPY"; then 43891 43892 # Only process if variable expands to non-empty 43893 43894 if test "x$OBJCOPY" != x; then 43895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43896 43897 # First separate the path from the arguments. This will split at the first 43898 # space. 43899 complete="$OBJCOPY" 43900 path="${complete%% *}" 43901 tmp="$complete EOL" 43902 arguments="${tmp#* }" 43903 43904 # Input might be given as Windows format, start by converting to 43905 # unix format. 43906 new_path=`$CYGPATH -u "$path"` 43907 43908 # Now try to locate executable using which 43909 new_path=`$WHICH "$new_path" 2> /dev/null` 43910 # bat and cmd files are not always considered executable in cygwin causing which 43911 # to not find them 43912 if test "x$new_path" = x \ 43913 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43914 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43915 new_path=`$CYGPATH -u "$path"` 43916 fi 43917 if test "x$new_path" = x; then 43918 # Oops. Which didn't find the executable. 43919 # The splitting of arguments from the executable at a space might have been incorrect, 43920 # since paths with space are more likely in Windows. Give it another try with the whole 43921 # argument. 43922 path="$complete" 43923 arguments="EOL" 43924 new_path=`$CYGPATH -u "$path"` 43925 new_path=`$WHICH "$new_path" 2> /dev/null` 43926 # bat and cmd files are not always considered executable in cygwin causing which 43927 # to not find them 43928 if test "x$new_path" = x \ 43929 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43930 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43931 new_path=`$CYGPATH -u "$path"` 43932 fi 43933 if test "x$new_path" = x; then 43934 # It's still not found. Now this is an unrecoverable error. 43935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43936 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43937 has_space=`$ECHO "$complete" | $GREP " "` 43938 if test "x$has_space" != x; then 43939 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43940 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43941 fi 43942 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43943 fi 43944 fi 43945 43946 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43947 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43948 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43949 # "foo.exe" is OK but "foo" is an error. 43950 # 43951 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43952 # It is also a way to make sure we got the proper file name for the real test later on. 43953 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43954 if test "x$test_shortpath" = x; then 43955 # Short path failed, file does not exist as specified. 43956 # Try adding .exe or .cmd 43957 if test -f "${new_path}.exe"; then 43958 input_to_shortpath="${new_path}.exe" 43959 elif test -f "${new_path}.cmd"; then 43960 input_to_shortpath="${new_path}.cmd" 43961 else 43962 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 43963 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 43964 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43965 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43966 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43967 fi 43968 else 43969 input_to_shortpath="$new_path" 43970 fi 43971 43972 # Call helper function which possibly converts this using DOS-style short mode. 43973 # If so, the updated path is stored in $new_path. 43974 new_path="$input_to_shortpath" 43975 43976 input_path="$input_to_shortpath" 43977 # Check if we need to convert this using DOS-style short mode. If the path 43978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43979 # take no chances and rewrite it. 43980 # Note: m4 eats our [], so we need to use [ and ] instead. 43981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43982 if test "x$has_forbidden_chars" != x; then 43983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43984 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43985 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43986 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43987 # Going to short mode and back again did indeed matter. Since short mode is 43988 # case insensitive, let's make it lowercase to improve readability. 43989 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43990 # Now convert it back to Unix-style (cygpath) 43991 input_path=`$CYGPATH -u "$shortmode_path"` 43992 new_path="$input_path" 43993 fi 43994 fi 43995 43996 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43997 if test "x$test_cygdrive_prefix" = x; then 43998 # As a simple fix, exclude /usr/bin since it's not a real path. 43999 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44000 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44001 # a path prefixed by /cygdrive for fixpath to work. 44002 new_path="$CYGWIN_ROOT_PATH$input_path" 44003 fi 44004 fi 44005 44006 # remove trailing .exe if any 44007 new_path="${new_path/%.exe/}" 44008 44009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44010 44011 # First separate the path from the arguments. This will split at the first 44012 # space. 44013 complete="$OBJCOPY" 44014 path="${complete%% *}" 44015 tmp="$complete EOL" 44016 arguments="${tmp#* }" 44017 44018 # Input might be given as Windows format, start by converting to 44019 # unix format. 44020 new_path="$path" 44021 44022 windows_path="$new_path" 44023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44024 unix_path=`$CYGPATH -u "$windows_path"` 44025 new_path="$unix_path" 44026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44027 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44028 new_path="$unix_path" 44029 fi 44030 44031 44032 # Now try to locate executable using which 44033 new_path=`$WHICH "$new_path" 2> /dev/null` 44034 44035 if test "x$new_path" = x; then 44036 # Oops. Which didn't find the executable. 44037 # The splitting of arguments from the executable at a space might have been incorrect, 44038 # since paths with space are more likely in Windows. Give it another try with the whole 44039 # argument. 44040 path="$complete" 44041 arguments="EOL" 44042 new_path="$path" 44043 44044 windows_path="$new_path" 44045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44046 unix_path=`$CYGPATH -u "$windows_path"` 44047 new_path="$unix_path" 44048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44049 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44050 new_path="$unix_path" 44051 fi 44052 44053 44054 new_path=`$WHICH "$new_path" 2> /dev/null` 44055 # bat and cmd files are not always considered executable in MSYS causing which 44056 # to not find them 44057 if test "x$new_path" = x \ 44058 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44059 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44060 new_path="$path" 44061 44062 windows_path="$new_path" 44063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44064 unix_path=`$CYGPATH -u "$windows_path"` 44065 new_path="$unix_path" 44066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44067 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44068 new_path="$unix_path" 44069 fi 44070 44071 fi 44072 44073 if test "x$new_path" = x; then 44074 # It's still not found. Now this is an unrecoverable error. 44075 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44076 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44077 has_space=`$ECHO "$complete" | $GREP " "` 44078 if test "x$has_space" != x; then 44079 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44080 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44081 fi 44082 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44083 fi 44084 fi 44085 44086 # Now new_path has a complete unix path to the binary 44087 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44088 # Keep paths in /bin as-is, but remove trailing .exe if any 44089 new_path="${new_path/%.exe/}" 44090 # Do not save /bin paths to all_fixpath_prefixes! 44091 else 44092 # Not in mixed or Windows style, start by that. 44093 new_path=`cmd //c echo $new_path` 44094 44095 input_path="$new_path" 44096 # Check if we need to convert this using DOS-style short mode. If the path 44097 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44098 # take no chances and rewrite it. 44099 # Note: m4 eats our [], so we need to use [ and ] instead. 44100 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44101 if test "x$has_forbidden_chars" != x; then 44102 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44103 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44104 fi 44105 44106 # Output is in $new_path 44107 44108 windows_path="$new_path" 44109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44110 unix_path=`$CYGPATH -u "$windows_path"` 44111 new_path="$unix_path" 44112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44113 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44114 new_path="$unix_path" 44115 fi 44116 44117 # remove trailing .exe if any 44118 new_path="${new_path/%.exe/}" 44119 44120 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44121 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44122 fi 44123 44124 else 44125 # We're on a unix platform. Hooray! :) 44126 # First separate the path from the arguments. This will split at the first 44127 # space. 44128 complete="$OBJCOPY" 44129 path="${complete%% *}" 44130 tmp="$complete EOL" 44131 arguments="${tmp#* }" 44132 44133 # Cannot rely on the command "which" here since it doesn't always work. 44134 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44135 if test -z "$is_absolute_path"; then 44136 # Path to executable is not absolute. Find it. 44137 IFS_save="$IFS" 44138 IFS=: 44139 for p in $PATH; do 44140 if test -f "$p/$path" && test -x "$p/$path"; then 44141 new_path="$p/$path" 44142 break 44143 fi 44144 done 44145 IFS="$IFS_save" 44146 else 44147 # This is an absolute path, we can use it without further modifications. 44148 new_path="$path" 44149 fi 44150 44151 if test "x$new_path" = x; then 44152 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44153 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44154 has_space=`$ECHO "$complete" | $GREP " "` 44155 if test "x$has_space" != x; then 44156 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44157 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44158 fi 44159 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44160 fi 44161 fi 44162 44163 # Now join together the path and the arguments once again 44164 if test "x$arguments" != xEOL; then 44165 new_complete="$new_path ${arguments% *}" 44166 else 44167 new_complete="$new_path" 44168 fi 44169 44170 if test "x$complete" != "x$new_complete"; then 44171 OBJCOPY="$new_complete" 44172 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 44173 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 44174 fi 44175 fi 44176 44177 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 44178 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 44179 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 44180 # - version number is last blank separate word on first line 44181 # - version number formats that have been seen: 44182 # - <major>.<minor> 44183 # - <major>.<minor>.<micro> 44184 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 44185 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 44186 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 44187 -e 's/.* //' \ 44188 -e '/^[01]\./b bad' \ 44189 -e '/^2\./{' \ 44190 -e ' s/^2\.//' \ 44191 -e ' /^[0-9]$/b bad' \ 44192 -e ' /^[0-9]\./b bad' \ 44193 -e ' /^1[0-9]$/b bad' \ 44194 -e ' /^1[0-9]\./b bad' \ 44195 -e ' /^20\./b bad' \ 44196 -e ' /^21\.0$/b bad' \ 44197 -e ' /^21\.0\./b bad' \ 44198 -e '}' \ 44199 -e ':good' \ 44200 -e 's/.*/VALID_VERSION/p' \ 44201 -e 'q' \ 44202 -e ':bad' \ 44203 -e 's/.*/BAD_VERSION/p' \ 44204 -e 'q'` 44205 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 44206 OBJCOPY= 44207 { $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 44208 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 44209 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 44210 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 44211 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 44212 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 44213 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 44214 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 44215 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 44216 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 44217 fi 44218 fi 44219 fi 44220 fi 44221 44222 44223 44224 # Publish this variable in the help. 44225 44226 44227 if [ -z "${OBJDUMP+x}" ]; then 44228 # The variable is not set by user, try to locate tool using the code snippet 44229 if test -n "$ac_tool_prefix"; then 44230 for ac_prog in gobjdump objdump 44231 do 44232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44233 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44235 $as_echo_n "checking for $ac_word... " >&6; } 44236 if ${ac_cv_prog_OBJDUMP+:} false; then : 44237 $as_echo_n "(cached) " >&6 44238 else 44239 if test -n "$OBJDUMP"; then 44240 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 44241 else 44242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44243 for as_dir in $PATH 44244 do 44245 IFS=$as_save_IFS 44246 test -z "$as_dir" && as_dir=. 44247 for ac_exec_ext in '' $ac_executable_extensions; do 44248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44249 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 44250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44251 break 2 44252 fi 44253 done 44254 done 44255 IFS=$as_save_IFS 44256 44257 fi 44258 fi 44259 OBJDUMP=$ac_cv_prog_OBJDUMP 44260 if test -n "$OBJDUMP"; then 44261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 44262 $as_echo "$OBJDUMP" >&6; } 44263 else 44264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44265 $as_echo "no" >&6; } 44266 fi 44267 44268 44269 test -n "$OBJDUMP" && break 44270 done 44271 fi 44272 if test -z "$OBJDUMP"; then 44273 ac_ct_OBJDUMP=$OBJDUMP 44274 for ac_prog in gobjdump objdump 44275 do 44276 # Extract the first word of "$ac_prog", so it can be a program name with args. 44277 set dummy $ac_prog; ac_word=$2 44278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44279 $as_echo_n "checking for $ac_word... " >&6; } 44280 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 44281 $as_echo_n "(cached) " >&6 44282 else 44283 if test -n "$ac_ct_OBJDUMP"; then 44284 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 44285 else 44286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44287 for as_dir in $PATH 44288 do 44289 IFS=$as_save_IFS 44290 test -z "$as_dir" && as_dir=. 44291 for ac_exec_ext in '' $ac_executable_extensions; do 44292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44293 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 44294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44295 break 2 44296 fi 44297 done 44298 done 44299 IFS=$as_save_IFS 44300 44301 fi 44302 fi 44303 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 44304 if test -n "$ac_ct_OBJDUMP"; then 44305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 44306 $as_echo "$ac_ct_OBJDUMP" >&6; } 44307 else 44308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44309 $as_echo "no" >&6; } 44310 fi 44311 44312 44313 test -n "$ac_ct_OBJDUMP" && break 44314 done 44315 44316 if test "x$ac_ct_OBJDUMP" = x; then 44317 OBJDUMP="" 44318 else 44319 case $cross_compiling:$ac_tool_warned in 44320 yes:) 44321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44323 ac_tool_warned=yes ;; 44324 esac 44325 OBJDUMP=$ac_ct_OBJDUMP 44326 fi 44327 fi 44328 44329 else 44330 # The variable is set, but is it from the command line or the environment? 44331 44332 # Try to remove the string !OBJDUMP! from our list. 44333 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 44334 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44335 # If it failed, the variable was not from the command line. Ignore it, 44336 # but warn the user (except for BASH, which is always set by the calling BASH). 44337 if test "xOBJDUMP" != xBASH; then 44338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 44339 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 44340 fi 44341 # Try to locate tool using the code snippet 44342 if test -n "$ac_tool_prefix"; then 44343 for ac_prog in gobjdump objdump 44344 do 44345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44348 $as_echo_n "checking for $ac_word... " >&6; } 44349 if ${ac_cv_prog_OBJDUMP+:} false; then : 44350 $as_echo_n "(cached) " >&6 44351 else 44352 if test -n "$OBJDUMP"; then 44353 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 44354 else 44355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44356 for as_dir in $PATH 44357 do 44358 IFS=$as_save_IFS 44359 test -z "$as_dir" && as_dir=. 44360 for ac_exec_ext in '' $ac_executable_extensions; do 44361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44362 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 44363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44364 break 2 44365 fi 44366 done 44367 done 44368 IFS=$as_save_IFS 44369 44370 fi 44371 fi 44372 OBJDUMP=$ac_cv_prog_OBJDUMP 44373 if test -n "$OBJDUMP"; then 44374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 44375 $as_echo "$OBJDUMP" >&6; } 44376 else 44377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44378 $as_echo "no" >&6; } 44379 fi 44380 44381 44382 test -n "$OBJDUMP" && break 44383 done 44384 fi 44385 if test -z "$OBJDUMP"; then 44386 ac_ct_OBJDUMP=$OBJDUMP 44387 for ac_prog in gobjdump objdump 44388 do 44389 # Extract the first word of "$ac_prog", so it can be a program name with args. 44390 set dummy $ac_prog; ac_word=$2 44391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44392 $as_echo_n "checking for $ac_word... " >&6; } 44393 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 44394 $as_echo_n "(cached) " >&6 44395 else 44396 if test -n "$ac_ct_OBJDUMP"; then 44397 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 44398 else 44399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44400 for as_dir in $PATH 44401 do 44402 IFS=$as_save_IFS 44403 test -z "$as_dir" && as_dir=. 44404 for ac_exec_ext in '' $ac_executable_extensions; do 44405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44406 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 44407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44408 break 2 44409 fi 44410 done 44411 done 44412 IFS=$as_save_IFS 44413 44414 fi 44415 fi 44416 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 44417 if test -n "$ac_ct_OBJDUMP"; then 44418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 44419 $as_echo "$ac_ct_OBJDUMP" >&6; } 44420 else 44421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44422 $as_echo "no" >&6; } 44423 fi 44424 44425 44426 test -n "$ac_ct_OBJDUMP" && break 44427 done 44428 44429 if test "x$ac_ct_OBJDUMP" = x; then 44430 OBJDUMP="" 44431 else 44432 case $cross_compiling:$ac_tool_warned in 44433 yes:) 44434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44436 ac_tool_warned=yes ;; 44437 esac 44438 OBJDUMP=$ac_ct_OBJDUMP 44439 fi 44440 fi 44441 44442 else 44443 # If it succeeded, then it was overridden by the user. We will use it 44444 # for the tool. 44445 44446 # First remove it from the list of overridden variables, so we can test 44447 # for unknown variables in the end. 44448 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44449 44450 # Check if we try to supply an empty value 44451 if test "x$OBJDUMP" = x; then 44452 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 44453 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 44454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 44455 $as_echo_n "checking for OBJDUMP... " >&6; } 44456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44457 $as_echo "disabled" >&6; } 44458 else 44459 # Check if the provided tool contains a complete path. 44460 tool_specified="$OBJDUMP" 44461 tool_basename="${tool_specified##*/}" 44462 if test "x$tool_basename" = "x$tool_specified"; then 44463 # A command without a complete path is provided, search $PATH. 44464 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 44465 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 44466 # Extract the first word of "$tool_basename", so it can be a program name with args. 44467 set dummy $tool_basename; ac_word=$2 44468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44469 $as_echo_n "checking for $ac_word... " >&6; } 44470 if ${ac_cv_path_OBJDUMP+:} false; then : 44471 $as_echo_n "(cached) " >&6 44472 else 44473 case $OBJDUMP in 44474 [\\/]* | ?:[\\/]*) 44475 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 44476 ;; 44477 *) 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_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 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 ;; 44494 esac 44495 fi 44496 OBJDUMP=$ac_cv_path_OBJDUMP 44497 if test -n "$OBJDUMP"; then 44498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 44499 $as_echo "$OBJDUMP" >&6; } 44500 else 44501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44502 $as_echo "no" >&6; } 44503 fi 44504 44505 44506 if test "x$OBJDUMP" = x; then 44507 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44508 fi 44509 else 44510 # Otherwise we believe it is a complete path. Use it as it is. 44511 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 44512 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 44513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 44514 $as_echo_n "checking for OBJDUMP... " >&6; } 44515 if test ! -x "$tool_specified"; then 44516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44517 $as_echo "not found" >&6; } 44518 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 44519 fi 44520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44521 $as_echo "$tool_specified" >&6; } 44522 fi 44523 fi 44524 fi 44525 44526 fi 44527 44528 44529 if test "x$OBJDUMP" != x; then 44530 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 44531 # bails if argument is missing. 44532 44533 # Only process if variable expands to non-empty 44534 44535 if test "x$OBJDUMP" != x; then 44536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44537 44538 # First separate the path from the arguments. This will split at the first 44539 # space. 44540 complete="$OBJDUMP" 44541 path="${complete%% *}" 44542 tmp="$complete EOL" 44543 arguments="${tmp#* }" 44544 44545 # Input might be given as Windows format, start by converting to 44546 # unix format. 44547 new_path=`$CYGPATH -u "$path"` 44548 44549 # Now try to locate executable using which 44550 new_path=`$WHICH "$new_path" 2> /dev/null` 44551 # bat and cmd files are not always considered executable in cygwin causing which 44552 # to not find them 44553 if test "x$new_path" = x \ 44554 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44555 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44556 new_path=`$CYGPATH -u "$path"` 44557 fi 44558 if test "x$new_path" = x; then 44559 # Oops. Which didn't find the executable. 44560 # The splitting of arguments from the executable at a space might have been incorrect, 44561 # since paths with space are more likely in Windows. Give it another try with the whole 44562 # argument. 44563 path="$complete" 44564 arguments="EOL" 44565 new_path=`$CYGPATH -u "$path"` 44566 new_path=`$WHICH "$new_path" 2> /dev/null` 44567 # bat and cmd files are not always considered executable in cygwin causing which 44568 # to not find them 44569 if test "x$new_path" = x \ 44570 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44571 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44572 new_path=`$CYGPATH -u "$path"` 44573 fi 44574 if test "x$new_path" = x; then 44575 # It's still not found. Now this is an unrecoverable error. 44576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44577 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44578 has_space=`$ECHO "$complete" | $GREP " "` 44579 if test "x$has_space" != x; then 44580 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44581 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44582 fi 44583 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44584 fi 44585 fi 44586 44587 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44588 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44589 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44590 # "foo.exe" is OK but "foo" is an error. 44591 # 44592 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44593 # It is also a way to make sure we got the proper file name for the real test later on. 44594 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44595 if test "x$test_shortpath" = x; then 44596 # Short path failed, file does not exist as specified. 44597 # Try adding .exe or .cmd 44598 if test -f "${new_path}.exe"; then 44599 input_to_shortpath="${new_path}.exe" 44600 elif test -f "${new_path}.cmd"; then 44601 input_to_shortpath="${new_path}.cmd" 44602 else 44603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 44604 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 44605 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44606 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44607 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44608 fi 44609 else 44610 input_to_shortpath="$new_path" 44611 fi 44612 44613 # Call helper function which possibly converts this using DOS-style short mode. 44614 # If so, the updated path is stored in $new_path. 44615 new_path="$input_to_shortpath" 44616 44617 input_path="$input_to_shortpath" 44618 # Check if we need to convert this using DOS-style short mode. If the path 44619 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44620 # take no chances and rewrite it. 44621 # Note: m4 eats our [], so we need to use [ and ] instead. 44622 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44623 if test "x$has_forbidden_chars" != x; then 44624 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44625 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44626 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44627 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44628 # Going to short mode and back again did indeed matter. Since short mode is 44629 # case insensitive, let's make it lowercase to improve readability. 44630 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44631 # Now convert it back to Unix-style (cygpath) 44632 input_path=`$CYGPATH -u "$shortmode_path"` 44633 new_path="$input_path" 44634 fi 44635 fi 44636 44637 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44638 if test "x$test_cygdrive_prefix" = x; then 44639 # As a simple fix, exclude /usr/bin since it's not a real path. 44640 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44641 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44642 # a path prefixed by /cygdrive for fixpath to work. 44643 new_path="$CYGWIN_ROOT_PATH$input_path" 44644 fi 44645 fi 44646 44647 # remove trailing .exe if any 44648 new_path="${new_path/%.exe/}" 44649 44650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44651 44652 # First separate the path from the arguments. This will split at the first 44653 # space. 44654 complete="$OBJDUMP" 44655 path="${complete%% *}" 44656 tmp="$complete EOL" 44657 arguments="${tmp#* }" 44658 44659 # Input might be given as Windows format, start by converting to 44660 # unix format. 44661 new_path="$path" 44662 44663 windows_path="$new_path" 44664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44665 unix_path=`$CYGPATH -u "$windows_path"` 44666 new_path="$unix_path" 44667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44668 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44669 new_path="$unix_path" 44670 fi 44671 44672 44673 # Now try to locate executable using which 44674 new_path=`$WHICH "$new_path" 2> /dev/null` 44675 44676 if test "x$new_path" = x; then 44677 # Oops. Which didn't find the executable. 44678 # The splitting of arguments from the executable at a space might have been incorrect, 44679 # since paths with space are more likely in Windows. Give it another try with the whole 44680 # argument. 44681 path="$complete" 44682 arguments="EOL" 44683 new_path="$path" 44684 44685 windows_path="$new_path" 44686 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44687 unix_path=`$CYGPATH -u "$windows_path"` 44688 new_path="$unix_path" 44689 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44690 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44691 new_path="$unix_path" 44692 fi 44693 44694 44695 new_path=`$WHICH "$new_path" 2> /dev/null` 44696 # bat and cmd files are not always considered executable in MSYS causing which 44697 # to not find them 44698 if test "x$new_path" = x \ 44699 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44700 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44701 new_path="$path" 44702 44703 windows_path="$new_path" 44704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44705 unix_path=`$CYGPATH -u "$windows_path"` 44706 new_path="$unix_path" 44707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44708 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44709 new_path="$unix_path" 44710 fi 44711 44712 fi 44713 44714 if test "x$new_path" = x; then 44715 # It's still not found. Now this is an unrecoverable error. 44716 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44717 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44718 has_space=`$ECHO "$complete" | $GREP " "` 44719 if test "x$has_space" != x; then 44720 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44721 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44722 fi 44723 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44724 fi 44725 fi 44726 44727 # Now new_path has a complete unix path to the binary 44728 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44729 # Keep paths in /bin as-is, but remove trailing .exe if any 44730 new_path="${new_path/%.exe/}" 44731 # Do not save /bin paths to all_fixpath_prefixes! 44732 else 44733 # Not in mixed or Windows style, start by that. 44734 new_path=`cmd //c echo $new_path` 44735 44736 input_path="$new_path" 44737 # Check if we need to convert this using DOS-style short mode. If the path 44738 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44739 # take no chances and rewrite it. 44740 # Note: m4 eats our [], so we need to use [ and ] instead. 44741 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44742 if test "x$has_forbidden_chars" != x; then 44743 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44744 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44745 fi 44746 44747 # Output is in $new_path 44748 44749 windows_path="$new_path" 44750 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44751 unix_path=`$CYGPATH -u "$windows_path"` 44752 new_path="$unix_path" 44753 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44754 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44755 new_path="$unix_path" 44756 fi 44757 44758 # remove trailing .exe if any 44759 new_path="${new_path/%.exe/}" 44760 44761 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44762 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44763 fi 44764 44765 else 44766 # We're on a unix platform. Hooray! :) 44767 # First separate the path from the arguments. This will split at the first 44768 # space. 44769 complete="$OBJDUMP" 44770 path="${complete%% *}" 44771 tmp="$complete EOL" 44772 arguments="${tmp#* }" 44773 44774 # Cannot rely on the command "which" here since it doesn't always work. 44775 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44776 if test -z "$is_absolute_path"; then 44777 # Path to executable is not absolute. Find it. 44778 IFS_save="$IFS" 44779 IFS=: 44780 for p in $PATH; do 44781 if test -f "$p/$path" && test -x "$p/$path"; then 44782 new_path="$p/$path" 44783 break 44784 fi 44785 done 44786 IFS="$IFS_save" 44787 else 44788 # This is an absolute path, we can use it without further modifications. 44789 new_path="$path" 44790 fi 44791 44792 if test "x$new_path" = x; then 44793 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 44794 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 44795 has_space=`$ECHO "$complete" | $GREP " "` 44796 if test "x$has_space" != x; then 44797 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44798 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44799 fi 44800 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 44801 fi 44802 fi 44803 44804 # Now join together the path and the arguments once again 44805 if test "x$arguments" != xEOL; then 44806 new_complete="$new_path ${arguments% *}" 44807 else 44808 new_complete="$new_path" 44809 fi 44810 44811 if test "x$complete" != "x$new_complete"; then 44812 OBJDUMP="$new_complete" 44813 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 44814 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 44815 fi 44816 fi 44817 44818 fi 44819 44820 44821 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 44822 # to remain in place. Otherwise the compiler will not work in some siutations 44823 # in later configure checks. 44824 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 44825 PATH="$OLD_PATH" 44826 fi 44827 44828 # Restore the flags to the user specified values. 44829 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 44830 CFLAGS="$ORG_CFLAGS" 44831 CXXFLAGS="$ORG_CXXFLAGS" 44832 44833 44834 # Finally do some processing after the detection phase 44835 44836 if test "x$COMPILE_TYPE" = "xcross"; then 44837 # Now we need to find a C/C++ compiler that can build executables for the 44838 # build platform. We can't use the AC_PROG_CC macro, since it can only be 44839 # used once. Also, we need to do this without adding a tools dir to the 44840 # path, otherwise we might pick up cross-compilers which don't use standard 44841 # naming. 44842 44843 OLDPATH="$PATH" 44844 44845 44846 # Check whether --with-build-devkit was given. 44847 if test "${with_build_devkit+set}" = set; then : 44848 withval=$with_build_devkit; 44849 fi 44850 44851 if test "x$with_build_devkit" = "xyes"; then 44852 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 44853 elif test -n "$with_build_devkit"; then 44854 if test ! -d "$with_build_devkit"; then 44855 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 44856 else 44857 44858 # Only process if variable expands to non-empty 44859 44860 if test "x$with_build_devkit" != x; then 44861 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44862 44863 # Input might be given as Windows format, start by converting to 44864 # unix format. 44865 path="$with_build_devkit" 44866 new_path=`$CYGPATH -u "$path"` 44867 44868 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44869 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44870 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44871 # "foo.exe" is OK but "foo" is an error. 44872 # 44873 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44874 # It is also a way to make sure we got the proper file name for the real test later on. 44875 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44876 if test "x$test_shortpath" = x; then 44877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 44878 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 44879 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 44880 fi 44881 44882 # Call helper function which possibly converts this using DOS-style short mode. 44883 # If so, the updated path is stored in $new_path. 44884 44885 input_path="$new_path" 44886 # Check if we need to convert this using DOS-style short mode. If the path 44887 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44888 # take no chances and rewrite it. 44889 # Note: m4 eats our [], so we need to use [ and ] instead. 44890 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44891 if test "x$has_forbidden_chars" != x; then 44892 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44893 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44894 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44895 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44896 # Going to short mode and back again did indeed matter. Since short mode is 44897 # case insensitive, let's make it lowercase to improve readability. 44898 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44899 # Now convert it back to Unix-style (cygpath) 44900 input_path=`$CYGPATH -u "$shortmode_path"` 44901 new_path="$input_path" 44902 fi 44903 fi 44904 44905 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44906 if test "x$test_cygdrive_prefix" = x; then 44907 # As a simple fix, exclude /usr/bin since it's not a real path. 44908 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44909 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44910 # a path prefixed by /cygdrive for fixpath to work. 44911 new_path="$CYGWIN_ROOT_PATH$input_path" 44912 fi 44913 fi 44914 44915 44916 if test "x$path" != "x$new_path"; then 44917 with_build_devkit="$new_path" 44918 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 44919 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 44920 fi 44921 44922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44923 44924 path="$with_build_devkit" 44925 has_colon=`$ECHO $path | $GREP ^.:` 44926 new_path="$path" 44927 if test "x$has_colon" = x; then 44928 # Not in mixed or Windows style, start by that. 44929 new_path=`cmd //c echo $path` 44930 fi 44931 44932 44933 input_path="$new_path" 44934 # Check if we need to convert this using DOS-style short mode. If the path 44935 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44936 # take no chances and rewrite it. 44937 # Note: m4 eats our [], so we need to use [ and ] instead. 44938 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44939 if test "x$has_forbidden_chars" != x; then 44940 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44941 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44942 fi 44943 44944 44945 windows_path="$new_path" 44946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44947 unix_path=`$CYGPATH -u "$windows_path"` 44948 new_path="$unix_path" 44949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44950 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44951 new_path="$unix_path" 44952 fi 44953 44954 if test "x$path" != "x$new_path"; then 44955 with_build_devkit="$new_path" 44956 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 44957 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 44958 fi 44959 44960 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44961 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44962 44963 else 44964 # We're on a unix platform. Hooray! :) 44965 path="$with_build_devkit" 44966 has_space=`$ECHO "$path" | $GREP " "` 44967 if test "x$has_space" != x; then 44968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 44969 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 44970 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44971 fi 44972 44973 # Use eval to expand a potential ~ 44974 eval path="$path" 44975 if test ! -f "$path" && test ! -d "$path"; then 44976 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 44977 fi 44978 44979 if test -d "$path"; then 44980 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 44981 else 44982 dir="`$DIRNAME "$path"`" 44983 base="`$BASENAME "$path"`" 44984 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 44985 fi 44986 fi 44987 fi 44988 44989 BUILD_DEVKIT_ROOT="$with_build_devkit" 44990 # Check for a meta data info file in the root of the devkit 44991 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 44992 # Process devkit.info so that existing devkit variables are not 44993 # modified by this 44994 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 44995 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 44996 -e "s/\$host/\$build/g" \ 44997 $BUILD_DEVKIT_ROOT/devkit.info \ 44998 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 44999 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 45000 # This potentially sets the following: 45001 # A descriptive name of the devkit 45002 45003 if test "x$BUILD_DEVKIT_NAME" = x; then 45004 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 45005 fi 45006 45007 # Corresponds to --with-extra-path 45008 45009 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 45010 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 45011 fi 45012 45013 # Corresponds to --with-toolchain-path 45014 45015 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45016 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 45017 fi 45018 45019 # Corresponds to --with-sysroot 45020 45021 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 45022 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 45023 fi 45024 45025 # Skip the Window specific parts 45026 fi 45027 45028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 45029 $as_echo_n "checking for build platform devkit... " >&6; } 45030 if test "x$BUILD_DEVKIT_NAME" != x; then 45031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 45032 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 45033 else 45034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 45035 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 45036 fi 45037 45038 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 45039 45040 if test "x$BUILD_SYSROOT" != "x"; then 45041 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 45042 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 45043 # Solaris Studio does not have a concept of sysroot. Instead we must 45044 # make sure the default include and lib dirs are appended to each 45045 # compile and link command line. Must also add -I-xbuiltin to enable 45046 # inlining of system functions and intrinsics. 45047 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 45048 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 45049 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 45050 fi 45051 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 45052 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 45053 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 45054 elif test "x$TOOLCHAIN_TYPE" = xclang; then 45055 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 45056 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 45057 fi 45058 # The global CFLAGS and LDFLAGS variables need these for configure to function 45059 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 45060 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 45061 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 45062 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 45063 fi 45064 45065 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 45066 # We also need -iframework<path>/System/Library/Frameworks 45067 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45068 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45069 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 45070 # set this here so it doesn't have to be peppered throughout the forest 45071 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45072 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45073 fi 45074 45075 45076 45077 45078 45079 # Fallback default of just /bin if DEVKIT_PATH is not defined 45080 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45081 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 45082 fi 45083 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 45084 fi 45085 fi 45086 45087 # FIXME: we should list the discovered compilers as an exclude pattern! 45088 # If we do that, we can do this detection before POST_DETECTION, and still 45089 # find the build compilers in the tools dir, if needed. 45090 45091 45092 45093 # Publish this variable in the help. 45094 45095 45096 if [ -z "${BUILD_CC+x}" ]; then 45097 # The variable is not set by user, try to locate tool using the code snippet 45098 for ac_prog in cl cc gcc 45099 do 45100 # Extract the first word of "$ac_prog", so it can be a program name with args. 45101 set dummy $ac_prog; ac_word=$2 45102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45103 $as_echo_n "checking for $ac_word... " >&6; } 45104 if ${ac_cv_path_BUILD_CC+:} false; then : 45105 $as_echo_n "(cached) " >&6 45106 else 45107 case $BUILD_CC in 45108 [\\/]* | ?:[\\/]*) 45109 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45110 ;; 45111 *) 45112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45113 for as_dir in $PATH 45114 do 45115 IFS=$as_save_IFS 45116 test -z "$as_dir" && as_dir=. 45117 for ac_exec_ext in '' $ac_executable_extensions; do 45118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45119 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45121 break 2 45122 fi 45123 done 45124 done 45125 IFS=$as_save_IFS 45126 45127 ;; 45128 esac 45129 fi 45130 BUILD_CC=$ac_cv_path_BUILD_CC 45131 if test -n "$BUILD_CC"; then 45132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45133 $as_echo "$BUILD_CC" >&6; } 45134 else 45135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45136 $as_echo "no" >&6; } 45137 fi 45138 45139 45140 test -n "$BUILD_CC" && break 45141 done 45142 45143 else 45144 # The variable is set, but is it from the command line or the environment? 45145 45146 # Try to remove the string !BUILD_CC! from our list. 45147 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 45148 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45149 # If it failed, the variable was not from the command line. Ignore it, 45150 # but warn the user (except for BASH, which is always set by the calling BASH). 45151 if test "xBUILD_CC" != xBASH; then 45152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 45153 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 45154 fi 45155 # Try to locate tool using the code snippet 45156 for ac_prog in cl cc gcc 45157 do 45158 # Extract the first word of "$ac_prog", so it can be a program name with args. 45159 set dummy $ac_prog; ac_word=$2 45160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45161 $as_echo_n "checking for $ac_word... " >&6; } 45162 if ${ac_cv_path_BUILD_CC+:} false; then : 45163 $as_echo_n "(cached) " >&6 45164 else 45165 case $BUILD_CC in 45166 [\\/]* | ?:[\\/]*) 45167 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45168 ;; 45169 *) 45170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45171 for as_dir in $PATH 45172 do 45173 IFS=$as_save_IFS 45174 test -z "$as_dir" && as_dir=. 45175 for ac_exec_ext in '' $ac_executable_extensions; do 45176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45177 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45179 break 2 45180 fi 45181 done 45182 done 45183 IFS=$as_save_IFS 45184 45185 ;; 45186 esac 45187 fi 45188 BUILD_CC=$ac_cv_path_BUILD_CC 45189 if test -n "$BUILD_CC"; then 45190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45191 $as_echo "$BUILD_CC" >&6; } 45192 else 45193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45194 $as_echo "no" >&6; } 45195 fi 45196 45197 45198 test -n "$BUILD_CC" && break 45199 done 45200 45201 else 45202 # If it succeeded, then it was overridden by the user. We will use it 45203 # for the tool. 45204 45205 # First remove it from the list of overridden variables, so we can test 45206 # for unknown variables in the end. 45207 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45208 45209 # Check if we try to supply an empty value 45210 if test "x$BUILD_CC" = x; then 45211 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 45212 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 45213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 45214 $as_echo_n "checking for BUILD_CC... " >&6; } 45215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45216 $as_echo "disabled" >&6; } 45217 else 45218 # Check if the provided tool contains a complete path. 45219 tool_specified="$BUILD_CC" 45220 tool_basename="${tool_specified##*/}" 45221 if test "x$tool_basename" = "x$tool_specified"; then 45222 # A command without a complete path is provided, search $PATH. 45223 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 45224 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 45225 # Extract the first word of "$tool_basename", so it can be a program name with args. 45226 set dummy $tool_basename; ac_word=$2 45227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45228 $as_echo_n "checking for $ac_word... " >&6; } 45229 if ${ac_cv_path_BUILD_CC+:} false; then : 45230 $as_echo_n "(cached) " >&6 45231 else 45232 case $BUILD_CC in 45233 [\\/]* | ?:[\\/]*) 45234 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45235 ;; 45236 *) 45237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45238 for as_dir in $PATH 45239 do 45240 IFS=$as_save_IFS 45241 test -z "$as_dir" && as_dir=. 45242 for ac_exec_ext in '' $ac_executable_extensions; do 45243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45244 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45246 break 2 45247 fi 45248 done 45249 done 45250 IFS=$as_save_IFS 45251 45252 ;; 45253 esac 45254 fi 45255 BUILD_CC=$ac_cv_path_BUILD_CC 45256 if test -n "$BUILD_CC"; then 45257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45258 $as_echo "$BUILD_CC" >&6; } 45259 else 45260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45261 $as_echo "no" >&6; } 45262 fi 45263 45264 45265 if test "x$BUILD_CC" = x; then 45266 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45267 fi 45268 else 45269 # Otherwise we believe it is a complete path. Use it as it is. 45270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 45271 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 45272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 45273 $as_echo_n "checking for BUILD_CC... " >&6; } 45274 if test ! -x "$tool_specified"; then 45275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45276 $as_echo "not found" >&6; } 45277 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 45278 fi 45279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45280 $as_echo "$tool_specified" >&6; } 45281 fi 45282 fi 45283 fi 45284 45285 fi 45286 45287 45288 45289 if test "x$BUILD_CC" = x; then 45290 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 45291 fi 45292 45293 45294 45295 # Only process if variable expands to non-empty 45296 45297 if test "x$BUILD_CC" != x; then 45298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45299 45300 # First separate the path from the arguments. This will split at the first 45301 # space. 45302 complete="$BUILD_CC" 45303 path="${complete%% *}" 45304 tmp="$complete EOL" 45305 arguments="${tmp#* }" 45306 45307 # Input might be given as Windows format, start by converting to 45308 # unix format. 45309 new_path=`$CYGPATH -u "$path"` 45310 45311 # Now try to locate executable using which 45312 new_path=`$WHICH "$new_path" 2> /dev/null` 45313 # bat and cmd files are not always considered executable in cygwin causing which 45314 # to not find them 45315 if test "x$new_path" = x \ 45316 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45317 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45318 new_path=`$CYGPATH -u "$path"` 45319 fi 45320 if test "x$new_path" = x; then 45321 # Oops. Which didn't find the executable. 45322 # The splitting of arguments from the executable at a space might have been incorrect, 45323 # since paths with space are more likely in Windows. Give it another try with the whole 45324 # argument. 45325 path="$complete" 45326 arguments="EOL" 45327 new_path=`$CYGPATH -u "$path"` 45328 new_path=`$WHICH "$new_path" 2> /dev/null` 45329 # bat and cmd files are not always considered executable in cygwin causing which 45330 # to not find them 45331 if test "x$new_path" = x \ 45332 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45333 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45334 new_path=`$CYGPATH -u "$path"` 45335 fi 45336 if test "x$new_path" = x; then 45337 # It's still not found. Now this is an unrecoverable error. 45338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 45339 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 45340 has_space=`$ECHO "$complete" | $GREP " "` 45341 if test "x$has_space" != x; then 45342 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45343 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45344 fi 45345 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45346 fi 45347 fi 45348 45349 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45350 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45351 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45352 # "foo.exe" is OK but "foo" is an error. 45353 # 45354 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45355 # It is also a way to make sure we got the proper file name for the real test later on. 45356 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45357 if test "x$test_shortpath" = x; then 45358 # Short path failed, file does not exist as specified. 45359 # Try adding .exe or .cmd 45360 if test -f "${new_path}.exe"; then 45361 input_to_shortpath="${new_path}.exe" 45362 elif test -f "${new_path}.cmd"; then 45363 input_to_shortpath="${new_path}.cmd" 45364 else 45365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 45366 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 45367 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45368 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45369 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45370 fi 45371 else 45372 input_to_shortpath="$new_path" 45373 fi 45374 45375 # Call helper function which possibly converts this using DOS-style short mode. 45376 # If so, the updated path is stored in $new_path. 45377 new_path="$input_to_shortpath" 45378 45379 input_path="$input_to_shortpath" 45380 # Check if we need to convert this using DOS-style short mode. If the path 45381 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45382 # take no chances and rewrite it. 45383 # Note: m4 eats our [], so we need to use [ and ] instead. 45384 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45385 if test "x$has_forbidden_chars" != x; then 45386 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45387 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45388 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45389 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45390 # Going to short mode and back again did indeed matter. Since short mode is 45391 # case insensitive, let's make it lowercase to improve readability. 45392 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45393 # Now convert it back to Unix-style (cygpath) 45394 input_path=`$CYGPATH -u "$shortmode_path"` 45395 new_path="$input_path" 45396 fi 45397 fi 45398 45399 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45400 if test "x$test_cygdrive_prefix" = x; then 45401 # As a simple fix, exclude /usr/bin since it's not a real path. 45402 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45403 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45404 # a path prefixed by /cygdrive for fixpath to work. 45405 new_path="$CYGWIN_ROOT_PATH$input_path" 45406 fi 45407 fi 45408 45409 # remove trailing .exe if any 45410 new_path="${new_path/%.exe/}" 45411 45412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45413 45414 # First separate the path from the arguments. This will split at the first 45415 # space. 45416 complete="$BUILD_CC" 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="$path" 45424 45425 windows_path="$new_path" 45426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45427 unix_path=`$CYGPATH -u "$windows_path"` 45428 new_path="$unix_path" 45429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45430 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45431 new_path="$unix_path" 45432 fi 45433 45434 45435 # Now try to locate executable using which 45436 new_path=`$WHICH "$new_path" 2> /dev/null` 45437 45438 if test "x$new_path" = x; then 45439 # Oops. Which didn't find the executable. 45440 # The splitting of arguments from the executable at a space might have been incorrect, 45441 # since paths with space are more likely in Windows. Give it another try with the whole 45442 # argument. 45443 path="$complete" 45444 arguments="EOL" 45445 new_path="$path" 45446 45447 windows_path="$new_path" 45448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45449 unix_path=`$CYGPATH -u "$windows_path"` 45450 new_path="$unix_path" 45451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45453 new_path="$unix_path" 45454 fi 45455 45456 45457 new_path=`$WHICH "$new_path" 2> /dev/null` 45458 # bat and cmd files are not always considered executable in MSYS causing which 45459 # to not find them 45460 if test "x$new_path" = x \ 45461 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45462 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45463 new_path="$path" 45464 45465 windows_path="$new_path" 45466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45467 unix_path=`$CYGPATH -u "$windows_path"` 45468 new_path="$unix_path" 45469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45471 new_path="$unix_path" 45472 fi 45473 45474 fi 45475 45476 if test "x$new_path" = x; then 45477 # It's still not found. Now this is an unrecoverable error. 45478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 45479 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 45480 has_space=`$ECHO "$complete" | $GREP " "` 45481 if test "x$has_space" != x; then 45482 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45483 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45484 fi 45485 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45486 fi 45487 fi 45488 45489 # Now new_path has a complete unix path to the binary 45490 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45491 # Keep paths in /bin as-is, but remove trailing .exe if any 45492 new_path="${new_path/%.exe/}" 45493 # Do not save /bin paths to all_fixpath_prefixes! 45494 else 45495 # Not in mixed or Windows style, start by that. 45496 new_path=`cmd //c echo $new_path` 45497 45498 input_path="$new_path" 45499 # Check if we need to convert this using DOS-style short mode. If the path 45500 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45501 # take no chances and rewrite it. 45502 # Note: m4 eats our [], so we need to use [ and ] instead. 45503 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45504 if test "x$has_forbidden_chars" != x; then 45505 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45506 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45507 fi 45508 45509 # Output is in $new_path 45510 45511 windows_path="$new_path" 45512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45513 unix_path=`$CYGPATH -u "$windows_path"` 45514 new_path="$unix_path" 45515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45516 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45517 new_path="$unix_path" 45518 fi 45519 45520 # remove trailing .exe if any 45521 new_path="${new_path/%.exe/}" 45522 45523 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45524 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45525 fi 45526 45527 else 45528 # We're on a unix platform. Hooray! :) 45529 # First separate the path from the arguments. This will split at the first 45530 # space. 45531 complete="$BUILD_CC" 45532 path="${complete%% *}" 45533 tmp="$complete EOL" 45534 arguments="${tmp#* }" 45535 45536 # Cannot rely on the command "which" here since it doesn't always work. 45537 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45538 if test -z "$is_absolute_path"; then 45539 # Path to executable is not absolute. Find it. 45540 IFS_save="$IFS" 45541 IFS=: 45542 for p in $PATH; do 45543 if test -f "$p/$path" && test -x "$p/$path"; then 45544 new_path="$p/$path" 45545 break 45546 fi 45547 done 45548 IFS="$IFS_save" 45549 else 45550 # This is an absolute path, we can use it without further modifications. 45551 new_path="$path" 45552 fi 45553 45554 if test "x$new_path" = x; then 45555 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 45556 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 45557 has_space=`$ECHO "$complete" | $GREP " "` 45558 if test "x$has_space" != x; then 45559 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45560 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45561 fi 45562 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 45563 fi 45564 fi 45565 45566 # Now join together the path and the arguments once again 45567 if test "x$arguments" != xEOL; then 45568 new_complete="$new_path ${arguments% *}" 45569 else 45570 new_complete="$new_path" 45571 fi 45572 45573 if test "x$complete" != "x$new_complete"; then 45574 BUILD_CC="$new_complete" 45575 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 45576 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 45577 fi 45578 fi 45579 45580 45581 45582 45583 # Publish this variable in the help. 45584 45585 45586 if [ -z "${BUILD_CXX+x}" ]; then 45587 # The variable is not set by user, try to locate tool using the code snippet 45588 for ac_prog in cl CC g++ 45589 do 45590 # Extract the first word of "$ac_prog", so it can be a program name with args. 45591 set dummy $ac_prog; ac_word=$2 45592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45593 $as_echo_n "checking for $ac_word... " >&6; } 45594 if ${ac_cv_path_BUILD_CXX+:} false; then : 45595 $as_echo_n "(cached) " >&6 45596 else 45597 case $BUILD_CXX in 45598 [\\/]* | ?:[\\/]*) 45599 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45600 ;; 45601 *) 45602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45603 for as_dir in $PATH 45604 do 45605 IFS=$as_save_IFS 45606 test -z "$as_dir" && as_dir=. 45607 for ac_exec_ext in '' $ac_executable_extensions; do 45608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45609 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45611 break 2 45612 fi 45613 done 45614 done 45615 IFS=$as_save_IFS 45616 45617 ;; 45618 esac 45619 fi 45620 BUILD_CXX=$ac_cv_path_BUILD_CXX 45621 if test -n "$BUILD_CXX"; then 45622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45623 $as_echo "$BUILD_CXX" >&6; } 45624 else 45625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45626 $as_echo "no" >&6; } 45627 fi 45628 45629 45630 test -n "$BUILD_CXX" && break 45631 done 45632 45633 else 45634 # The variable is set, but is it from the command line or the environment? 45635 45636 # Try to remove the string !BUILD_CXX! from our list. 45637 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 45638 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45639 # If it failed, the variable was not from the command line. Ignore it, 45640 # but warn the user (except for BASH, which is always set by the calling BASH). 45641 if test "xBUILD_CXX" != xBASH; then 45642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 45643 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 45644 fi 45645 # Try to locate tool using the code snippet 45646 for ac_prog in cl CC g++ 45647 do 45648 # Extract the first word of "$ac_prog", so it can be a program name with args. 45649 set dummy $ac_prog; ac_word=$2 45650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45651 $as_echo_n "checking for $ac_word... " >&6; } 45652 if ${ac_cv_path_BUILD_CXX+:} false; then : 45653 $as_echo_n "(cached) " >&6 45654 else 45655 case $BUILD_CXX in 45656 [\\/]* | ?:[\\/]*) 45657 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45658 ;; 45659 *) 45660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45661 for as_dir in $PATH 45662 do 45663 IFS=$as_save_IFS 45664 test -z "$as_dir" && as_dir=. 45665 for ac_exec_ext in '' $ac_executable_extensions; do 45666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45667 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45669 break 2 45670 fi 45671 done 45672 done 45673 IFS=$as_save_IFS 45674 45675 ;; 45676 esac 45677 fi 45678 BUILD_CXX=$ac_cv_path_BUILD_CXX 45679 if test -n "$BUILD_CXX"; then 45680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45681 $as_echo "$BUILD_CXX" >&6; } 45682 else 45683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45684 $as_echo "no" >&6; } 45685 fi 45686 45687 45688 test -n "$BUILD_CXX" && break 45689 done 45690 45691 else 45692 # If it succeeded, then it was overridden by the user. We will use it 45693 # for the tool. 45694 45695 # First remove it from the list of overridden variables, so we can test 45696 # for unknown variables in the end. 45697 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45698 45699 # Check if we try to supply an empty value 45700 if test "x$BUILD_CXX" = x; then 45701 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 45702 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 45703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 45704 $as_echo_n "checking for BUILD_CXX... " >&6; } 45705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45706 $as_echo "disabled" >&6; } 45707 else 45708 # Check if the provided tool contains a complete path. 45709 tool_specified="$BUILD_CXX" 45710 tool_basename="${tool_specified##*/}" 45711 if test "x$tool_basename" = "x$tool_specified"; then 45712 # A command without a complete path is provided, search $PATH. 45713 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 45714 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 45715 # Extract the first word of "$tool_basename", so it can be a program name with args. 45716 set dummy $tool_basename; ac_word=$2 45717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45718 $as_echo_n "checking for $ac_word... " >&6; } 45719 if ${ac_cv_path_BUILD_CXX+:} false; then : 45720 $as_echo_n "(cached) " >&6 45721 else 45722 case $BUILD_CXX in 45723 [\\/]* | ?:[\\/]*) 45724 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 45725 ;; 45726 *) 45727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45728 for as_dir in $PATH 45729 do 45730 IFS=$as_save_IFS 45731 test -z "$as_dir" && as_dir=. 45732 for ac_exec_ext in '' $ac_executable_extensions; do 45733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45734 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 45735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45736 break 2 45737 fi 45738 done 45739 done 45740 IFS=$as_save_IFS 45741 45742 ;; 45743 esac 45744 fi 45745 BUILD_CXX=$ac_cv_path_BUILD_CXX 45746 if test -n "$BUILD_CXX"; then 45747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 45748 $as_echo "$BUILD_CXX" >&6; } 45749 else 45750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45751 $as_echo "no" >&6; } 45752 fi 45753 45754 45755 if test "x$BUILD_CXX" = x; then 45756 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45757 fi 45758 else 45759 # Otherwise we believe it is a complete path. Use it as it is. 45760 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 45761 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 45762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 45763 $as_echo_n "checking for BUILD_CXX... " >&6; } 45764 if test ! -x "$tool_specified"; then 45765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45766 $as_echo "not found" >&6; } 45767 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 45768 fi 45769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45770 $as_echo "$tool_specified" >&6; } 45771 fi 45772 fi 45773 fi 45774 45775 fi 45776 45777 45778 45779 if test "x$BUILD_CXX" = x; then 45780 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 45781 fi 45782 45783 45784 45785 # Only process if variable expands to non-empty 45786 45787 if test "x$BUILD_CXX" != x; then 45788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45789 45790 # First separate the path from the arguments. This will split at the first 45791 # space. 45792 complete="$BUILD_CXX" 45793 path="${complete%% *}" 45794 tmp="$complete EOL" 45795 arguments="${tmp#* }" 45796 45797 # Input might be given as Windows format, start by converting to 45798 # unix format. 45799 new_path=`$CYGPATH -u "$path"` 45800 45801 # Now try to locate executable using which 45802 new_path=`$WHICH "$new_path" 2> /dev/null` 45803 # bat and cmd files are not always considered executable in cygwin causing which 45804 # to not find them 45805 if test "x$new_path" = x \ 45806 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45807 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45808 new_path=`$CYGPATH -u "$path"` 45809 fi 45810 if test "x$new_path" = x; then 45811 # Oops. Which didn't find the executable. 45812 # The splitting of arguments from the executable at a space might have been incorrect, 45813 # since paths with space are more likely in Windows. Give it another try with the whole 45814 # argument. 45815 path="$complete" 45816 arguments="EOL" 45817 new_path=`$CYGPATH -u "$path"` 45818 new_path=`$WHICH "$new_path" 2> /dev/null` 45819 # bat and cmd files are not always considered executable in cygwin causing which 45820 # to not find them 45821 if test "x$new_path" = x \ 45822 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45823 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45824 new_path=`$CYGPATH -u "$path"` 45825 fi 45826 if test "x$new_path" = x; then 45827 # It's still not found. Now this is an unrecoverable error. 45828 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45829 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45830 has_space=`$ECHO "$complete" | $GREP " "` 45831 if test "x$has_space" != x; then 45832 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45833 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45834 fi 45835 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45836 fi 45837 fi 45838 45839 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45840 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45841 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45842 # "foo.exe" is OK but "foo" is an error. 45843 # 45844 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45845 # It is also a way to make sure we got the proper file name for the real test later on. 45846 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45847 if test "x$test_shortpath" = x; then 45848 # Short path failed, file does not exist as specified. 45849 # Try adding .exe or .cmd 45850 if test -f "${new_path}.exe"; then 45851 input_to_shortpath="${new_path}.exe" 45852 elif test -f "${new_path}.cmd"; then 45853 input_to_shortpath="${new_path}.cmd" 45854 else 45855 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 45856 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 45857 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45858 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45859 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45860 fi 45861 else 45862 input_to_shortpath="$new_path" 45863 fi 45864 45865 # Call helper function which possibly converts this using DOS-style short mode. 45866 # If so, the updated path is stored in $new_path. 45867 new_path="$input_to_shortpath" 45868 45869 input_path="$input_to_shortpath" 45870 # Check if we need to convert this using DOS-style short mode. If the path 45871 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45872 # take no chances and rewrite it. 45873 # Note: m4 eats our [], so we need to use [ and ] instead. 45874 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45875 if test "x$has_forbidden_chars" != x; then 45876 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45877 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45878 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45879 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45880 # Going to short mode and back again did indeed matter. Since short mode is 45881 # case insensitive, let's make it lowercase to improve readability. 45882 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45883 # Now convert it back to Unix-style (cygpath) 45884 input_path=`$CYGPATH -u "$shortmode_path"` 45885 new_path="$input_path" 45886 fi 45887 fi 45888 45889 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45890 if test "x$test_cygdrive_prefix" = x; then 45891 # As a simple fix, exclude /usr/bin since it's not a real path. 45892 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45893 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45894 # a path prefixed by /cygdrive for fixpath to work. 45895 new_path="$CYGWIN_ROOT_PATH$input_path" 45896 fi 45897 fi 45898 45899 # remove trailing .exe if any 45900 new_path="${new_path/%.exe/}" 45901 45902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45903 45904 # First separate the path from the arguments. This will split at the first 45905 # space. 45906 complete="$BUILD_CXX" 45907 path="${complete%% *}" 45908 tmp="$complete EOL" 45909 arguments="${tmp#* }" 45910 45911 # Input might be given as Windows format, start by converting to 45912 # unix format. 45913 new_path="$path" 45914 45915 windows_path="$new_path" 45916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45917 unix_path=`$CYGPATH -u "$windows_path"` 45918 new_path="$unix_path" 45919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45921 new_path="$unix_path" 45922 fi 45923 45924 45925 # Now try to locate executable using which 45926 new_path=`$WHICH "$new_path" 2> /dev/null` 45927 45928 if test "x$new_path" = x; then 45929 # Oops. Which didn't find the executable. 45930 # The splitting of arguments from the executable at a space might have been incorrect, 45931 # since paths with space are more likely in Windows. Give it another try with the whole 45932 # argument. 45933 path="$complete" 45934 arguments="EOL" 45935 new_path="$path" 45936 45937 windows_path="$new_path" 45938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45939 unix_path=`$CYGPATH -u "$windows_path"` 45940 new_path="$unix_path" 45941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45942 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45943 new_path="$unix_path" 45944 fi 45945 45946 45947 new_path=`$WHICH "$new_path" 2> /dev/null` 45948 # bat and cmd files are not always considered executable in MSYS causing which 45949 # to not find them 45950 if test "x$new_path" = x \ 45951 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45952 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45953 new_path="$path" 45954 45955 windows_path="$new_path" 45956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45957 unix_path=`$CYGPATH -u "$windows_path"` 45958 new_path="$unix_path" 45959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45960 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45961 new_path="$unix_path" 45962 fi 45963 45964 fi 45965 45966 if test "x$new_path" = x; then 45967 # It's still not found. Now this is an unrecoverable error. 45968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45969 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45970 has_space=`$ECHO "$complete" | $GREP " "` 45971 if test "x$has_space" != x; then 45972 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45973 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45974 fi 45975 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45976 fi 45977 fi 45978 45979 # Now new_path has a complete unix path to the binary 45980 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45981 # Keep paths in /bin as-is, but remove trailing .exe if any 45982 new_path="${new_path/%.exe/}" 45983 # Do not save /bin paths to all_fixpath_prefixes! 45984 else 45985 # Not in mixed or Windows style, start by that. 45986 new_path=`cmd //c echo $new_path` 45987 45988 input_path="$new_path" 45989 # Check if we need to convert this using DOS-style short mode. If the path 45990 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45991 # take no chances and rewrite it. 45992 # Note: m4 eats our [], so we need to use [ and ] instead. 45993 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45994 if test "x$has_forbidden_chars" != x; then 45995 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45996 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45997 fi 45998 45999 # Output is in $new_path 46000 46001 windows_path="$new_path" 46002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46003 unix_path=`$CYGPATH -u "$windows_path"` 46004 new_path="$unix_path" 46005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46007 new_path="$unix_path" 46008 fi 46009 46010 # remove trailing .exe if any 46011 new_path="${new_path/%.exe/}" 46012 46013 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46014 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46015 fi 46016 46017 else 46018 # We're on a unix platform. Hooray! :) 46019 # First separate the path from the arguments. This will split at the first 46020 # space. 46021 complete="$BUILD_CXX" 46022 path="${complete%% *}" 46023 tmp="$complete EOL" 46024 arguments="${tmp#* }" 46025 46026 # Cannot rely on the command "which" here since it doesn't always work. 46027 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46028 if test -z "$is_absolute_path"; then 46029 # Path to executable is not absolute. Find it. 46030 IFS_save="$IFS" 46031 IFS=: 46032 for p in $PATH; do 46033 if test -f "$p/$path" && test -x "$p/$path"; then 46034 new_path="$p/$path" 46035 break 46036 fi 46037 done 46038 IFS="$IFS_save" 46039 else 46040 # This is an absolute path, we can use it without further modifications. 46041 new_path="$path" 46042 fi 46043 46044 if test "x$new_path" = x; then 46045 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46046 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46047 has_space=`$ECHO "$complete" | $GREP " "` 46048 if test "x$has_space" != x; then 46049 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46050 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46051 fi 46052 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46053 fi 46054 fi 46055 46056 # Now join together the path and the arguments once again 46057 if test "x$arguments" != xEOL; then 46058 new_complete="$new_path ${arguments% *}" 46059 else 46060 new_complete="$new_path" 46061 fi 46062 46063 if test "x$complete" != "x$new_complete"; then 46064 BUILD_CXX="$new_complete" 46065 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 46066 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 46067 fi 46068 fi 46069 46070 46071 46072 # Publish this variable in the help. 46073 46074 46075 if [ -z "${BUILD_NM+x}" ]; then 46076 # The variable is not set by user, try to locate tool using the code snippet 46077 for ac_prog in nm gcc-nm 46078 do 46079 # Extract the first word of "$ac_prog", so it can be a program name with args. 46080 set dummy $ac_prog; ac_word=$2 46081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46082 $as_echo_n "checking for $ac_word... " >&6; } 46083 if ${ac_cv_path_BUILD_NM+:} false; then : 46084 $as_echo_n "(cached) " >&6 46085 else 46086 case $BUILD_NM in 46087 [\\/]* | ?:[\\/]*) 46088 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46089 ;; 46090 *) 46091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46092 for as_dir in $PATH 46093 do 46094 IFS=$as_save_IFS 46095 test -z "$as_dir" && as_dir=. 46096 for ac_exec_ext in '' $ac_executable_extensions; do 46097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46098 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46100 break 2 46101 fi 46102 done 46103 done 46104 IFS=$as_save_IFS 46105 46106 ;; 46107 esac 46108 fi 46109 BUILD_NM=$ac_cv_path_BUILD_NM 46110 if test -n "$BUILD_NM"; then 46111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46112 $as_echo "$BUILD_NM" >&6; } 46113 else 46114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46115 $as_echo "no" >&6; } 46116 fi 46117 46118 46119 test -n "$BUILD_NM" && break 46120 done 46121 46122 else 46123 # The variable is set, but is it from the command line or the environment? 46124 46125 # Try to remove the string !BUILD_NM! from our list. 46126 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 46127 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46128 # If it failed, the variable was not from the command line. Ignore it, 46129 # but warn the user (except for BASH, which is always set by the calling BASH). 46130 if test "xBUILD_NM" != xBASH; then 46131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 46132 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 46133 fi 46134 # Try to locate tool using the code snippet 46135 for ac_prog in nm gcc-nm 46136 do 46137 # Extract the first word of "$ac_prog", so it can be a program name with args. 46138 set dummy $ac_prog; ac_word=$2 46139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46140 $as_echo_n "checking for $ac_word... " >&6; } 46141 if ${ac_cv_path_BUILD_NM+:} false; then : 46142 $as_echo_n "(cached) " >&6 46143 else 46144 case $BUILD_NM in 46145 [\\/]* | ?:[\\/]*) 46146 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46147 ;; 46148 *) 46149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46150 for as_dir in $PATH 46151 do 46152 IFS=$as_save_IFS 46153 test -z "$as_dir" && as_dir=. 46154 for ac_exec_ext in '' $ac_executable_extensions; do 46155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46156 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46158 break 2 46159 fi 46160 done 46161 done 46162 IFS=$as_save_IFS 46163 46164 ;; 46165 esac 46166 fi 46167 BUILD_NM=$ac_cv_path_BUILD_NM 46168 if test -n "$BUILD_NM"; then 46169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46170 $as_echo "$BUILD_NM" >&6; } 46171 else 46172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46173 $as_echo "no" >&6; } 46174 fi 46175 46176 46177 test -n "$BUILD_NM" && break 46178 done 46179 46180 else 46181 # If it succeeded, then it was overridden by the user. We will use it 46182 # for the tool. 46183 46184 # First remove it from the list of overridden variables, so we can test 46185 # for unknown variables in the end. 46186 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46187 46188 # Check if we try to supply an empty value 46189 if test "x$BUILD_NM" = x; then 46190 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 46191 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 46192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 46193 $as_echo_n "checking for BUILD_NM... " >&6; } 46194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46195 $as_echo "disabled" >&6; } 46196 else 46197 # Check if the provided tool contains a complete path. 46198 tool_specified="$BUILD_NM" 46199 tool_basename="${tool_specified##*/}" 46200 if test "x$tool_basename" = "x$tool_specified"; then 46201 # A command without a complete path is provided, search $PATH. 46202 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 46203 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 46204 # Extract the first word of "$tool_basename", so it can be a program name with args. 46205 set dummy $tool_basename; ac_word=$2 46206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46207 $as_echo_n "checking for $ac_word... " >&6; } 46208 if ${ac_cv_path_BUILD_NM+:} false; then : 46209 $as_echo_n "(cached) " >&6 46210 else 46211 case $BUILD_NM in 46212 [\\/]* | ?:[\\/]*) 46213 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46214 ;; 46215 *) 46216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46217 for as_dir in $PATH 46218 do 46219 IFS=$as_save_IFS 46220 test -z "$as_dir" && as_dir=. 46221 for ac_exec_ext in '' $ac_executable_extensions; do 46222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46223 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46225 break 2 46226 fi 46227 done 46228 done 46229 IFS=$as_save_IFS 46230 46231 ;; 46232 esac 46233 fi 46234 BUILD_NM=$ac_cv_path_BUILD_NM 46235 if test -n "$BUILD_NM"; then 46236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46237 $as_echo "$BUILD_NM" >&6; } 46238 else 46239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46240 $as_echo "no" >&6; } 46241 fi 46242 46243 46244 if test "x$BUILD_NM" = x; then 46245 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46246 fi 46247 else 46248 # Otherwise we believe it is a complete path. Use it as it is. 46249 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 46250 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 46251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 46252 $as_echo_n "checking for BUILD_NM... " >&6; } 46253 if test ! -x "$tool_specified"; then 46254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46255 $as_echo "not found" >&6; } 46256 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 46257 fi 46258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46259 $as_echo "$tool_specified" >&6; } 46260 fi 46261 fi 46262 fi 46263 46264 fi 46265 46266 46267 46268 # Only process if variable expands to non-empty 46269 46270 if test "x$BUILD_NM" != x; then 46271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46272 46273 # First separate the path from the arguments. This will split at the first 46274 # space. 46275 complete="$BUILD_NM" 46276 path="${complete%% *}" 46277 tmp="$complete EOL" 46278 arguments="${tmp#* }" 46279 46280 # Input might be given as Windows format, start by converting to 46281 # unix format. 46282 new_path=`$CYGPATH -u "$path"` 46283 46284 # Now try to locate executable using which 46285 new_path=`$WHICH "$new_path" 2> /dev/null` 46286 # bat and cmd files are not always considered executable in cygwin causing which 46287 # to not find them 46288 if test "x$new_path" = x \ 46289 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46290 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46291 new_path=`$CYGPATH -u "$path"` 46292 fi 46293 if test "x$new_path" = x; then 46294 # Oops. Which didn't find the executable. 46295 # The splitting of arguments from the executable at a space might have been incorrect, 46296 # since paths with space are more likely in Windows. Give it another try with the whole 46297 # argument. 46298 path="$complete" 46299 arguments="EOL" 46300 new_path=`$CYGPATH -u "$path"` 46301 new_path=`$WHICH "$new_path" 2> /dev/null` 46302 # bat and cmd files are not always considered executable in cygwin causing which 46303 # to not find them 46304 if test "x$new_path" = x \ 46305 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46306 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46307 new_path=`$CYGPATH -u "$path"` 46308 fi 46309 if test "x$new_path" = x; then 46310 # It's still not found. Now this is an unrecoverable error. 46311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 46312 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 46313 has_space=`$ECHO "$complete" | $GREP " "` 46314 if test "x$has_space" != x; then 46315 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46316 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46317 fi 46318 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46319 fi 46320 fi 46321 46322 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46323 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46324 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46325 # "foo.exe" is OK but "foo" is an error. 46326 # 46327 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46328 # It is also a way to make sure we got the proper file name for the real test later on. 46329 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46330 if test "x$test_shortpath" = x; then 46331 # Short path failed, file does not exist as specified. 46332 # Try adding .exe or .cmd 46333 if test -f "${new_path}.exe"; then 46334 input_to_shortpath="${new_path}.exe" 46335 elif test -f "${new_path}.cmd"; then 46336 input_to_shortpath="${new_path}.cmd" 46337 else 46338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 46339 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 46340 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46341 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46342 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46343 fi 46344 else 46345 input_to_shortpath="$new_path" 46346 fi 46347 46348 # Call helper function which possibly converts this using DOS-style short mode. 46349 # If so, the updated path is stored in $new_path. 46350 new_path="$input_to_shortpath" 46351 46352 input_path="$input_to_shortpath" 46353 # Check if we need to convert this using DOS-style short mode. If the path 46354 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46355 # take no chances and rewrite it. 46356 # Note: m4 eats our [], so we need to use [ and ] instead. 46357 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46358 if test "x$has_forbidden_chars" != x; then 46359 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46360 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46361 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46362 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46363 # Going to short mode and back again did indeed matter. Since short mode is 46364 # case insensitive, let's make it lowercase to improve readability. 46365 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46366 # Now convert it back to Unix-style (cygpath) 46367 input_path=`$CYGPATH -u "$shortmode_path"` 46368 new_path="$input_path" 46369 fi 46370 fi 46371 46372 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46373 if test "x$test_cygdrive_prefix" = x; then 46374 # As a simple fix, exclude /usr/bin since it's not a real path. 46375 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46376 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46377 # a path prefixed by /cygdrive for fixpath to work. 46378 new_path="$CYGWIN_ROOT_PATH$input_path" 46379 fi 46380 fi 46381 46382 # remove trailing .exe if any 46383 new_path="${new_path/%.exe/}" 46384 46385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46386 46387 # First separate the path from the arguments. This will split at the first 46388 # space. 46389 complete="$BUILD_NM" 46390 path="${complete%% *}" 46391 tmp="$complete EOL" 46392 arguments="${tmp#* }" 46393 46394 # Input might be given as Windows format, start by converting to 46395 # unix format. 46396 new_path="$path" 46397 46398 windows_path="$new_path" 46399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46400 unix_path=`$CYGPATH -u "$windows_path"` 46401 new_path="$unix_path" 46402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46403 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46404 new_path="$unix_path" 46405 fi 46406 46407 46408 # Now try to locate executable using which 46409 new_path=`$WHICH "$new_path" 2> /dev/null` 46410 46411 if test "x$new_path" = x; then 46412 # Oops. Which didn't find the executable. 46413 # The splitting of arguments from the executable at a space might have been incorrect, 46414 # since paths with space are more likely in Windows. Give it another try with the whole 46415 # argument. 46416 path="$complete" 46417 arguments="EOL" 46418 new_path="$path" 46419 46420 windows_path="$new_path" 46421 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46422 unix_path=`$CYGPATH -u "$windows_path"` 46423 new_path="$unix_path" 46424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46425 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46426 new_path="$unix_path" 46427 fi 46428 46429 46430 new_path=`$WHICH "$new_path" 2> /dev/null` 46431 # bat and cmd files are not always considered executable in MSYS causing which 46432 # to not find them 46433 if test "x$new_path" = x \ 46434 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46435 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46436 new_path="$path" 46437 46438 windows_path="$new_path" 46439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46440 unix_path=`$CYGPATH -u "$windows_path"` 46441 new_path="$unix_path" 46442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46443 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46444 new_path="$unix_path" 46445 fi 46446 46447 fi 46448 46449 if test "x$new_path" = x; then 46450 # It's still not found. Now this is an unrecoverable error. 46451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 46452 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 46453 has_space=`$ECHO "$complete" | $GREP " "` 46454 if test "x$has_space" != x; then 46455 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46456 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46457 fi 46458 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46459 fi 46460 fi 46461 46462 # Now new_path has a complete unix path to the binary 46463 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46464 # Keep paths in /bin as-is, but remove trailing .exe if any 46465 new_path="${new_path/%.exe/}" 46466 # Do not save /bin paths to all_fixpath_prefixes! 46467 else 46468 # Not in mixed or Windows style, start by that. 46469 new_path=`cmd //c echo $new_path` 46470 46471 input_path="$new_path" 46472 # Check if we need to convert this using DOS-style short mode. If the path 46473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46474 # take no chances and rewrite it. 46475 # Note: m4 eats our [], so we need to use [ and ] instead. 46476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46477 if test "x$has_forbidden_chars" != x; then 46478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46479 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46480 fi 46481 46482 # Output is in $new_path 46483 46484 windows_path="$new_path" 46485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46486 unix_path=`$CYGPATH -u "$windows_path"` 46487 new_path="$unix_path" 46488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46489 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46490 new_path="$unix_path" 46491 fi 46492 46493 # remove trailing .exe if any 46494 new_path="${new_path/%.exe/}" 46495 46496 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46497 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46498 fi 46499 46500 else 46501 # We're on a unix platform. Hooray! :) 46502 # First separate the path from the arguments. This will split at the first 46503 # space. 46504 complete="$BUILD_NM" 46505 path="${complete%% *}" 46506 tmp="$complete EOL" 46507 arguments="${tmp#* }" 46508 46509 # Cannot rely on the command "which" here since it doesn't always work. 46510 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46511 if test -z "$is_absolute_path"; then 46512 # Path to executable is not absolute. Find it. 46513 IFS_save="$IFS" 46514 IFS=: 46515 for p in $PATH; do 46516 if test -f "$p/$path" && test -x "$p/$path"; then 46517 new_path="$p/$path" 46518 break 46519 fi 46520 done 46521 IFS="$IFS_save" 46522 else 46523 # This is an absolute path, we can use it without further modifications. 46524 new_path="$path" 46525 fi 46526 46527 if test "x$new_path" = x; then 46528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 46529 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 46530 has_space=`$ECHO "$complete" | $GREP " "` 46531 if test "x$has_space" != x; then 46532 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46533 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46534 fi 46535 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 46536 fi 46537 fi 46538 46539 # Now join together the path and the arguments once again 46540 if test "x$arguments" != xEOL; then 46541 new_complete="$new_path ${arguments% *}" 46542 else 46543 new_complete="$new_path" 46544 fi 46545 46546 if test "x$complete" != "x$new_complete"; then 46547 BUILD_NM="$new_complete" 46548 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 46549 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 46550 fi 46551 fi 46552 46553 46554 46555 # Publish this variable in the help. 46556 46557 46558 if [ -z "${BUILD_AR+x}" ]; then 46559 # The variable is not set by user, try to locate tool using the code snippet 46560 for ac_prog in ar gcc-ar 46561 do 46562 # Extract the first word of "$ac_prog", so it can be a program name with args. 46563 set dummy $ac_prog; ac_word=$2 46564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46565 $as_echo_n "checking for $ac_word... " >&6; } 46566 if ${ac_cv_path_BUILD_AR+:} false; then : 46567 $as_echo_n "(cached) " >&6 46568 else 46569 case $BUILD_AR in 46570 [\\/]* | ?:[\\/]*) 46571 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46572 ;; 46573 *) 46574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46575 for as_dir in $PATH 46576 do 46577 IFS=$as_save_IFS 46578 test -z "$as_dir" && as_dir=. 46579 for ac_exec_ext in '' $ac_executable_extensions; do 46580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46581 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46583 break 2 46584 fi 46585 done 46586 done 46587 IFS=$as_save_IFS 46588 46589 ;; 46590 esac 46591 fi 46592 BUILD_AR=$ac_cv_path_BUILD_AR 46593 if test -n "$BUILD_AR"; then 46594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46595 $as_echo "$BUILD_AR" >&6; } 46596 else 46597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46598 $as_echo "no" >&6; } 46599 fi 46600 46601 46602 test -n "$BUILD_AR" && break 46603 done 46604 46605 else 46606 # The variable is set, but is it from the command line or the environment? 46607 46608 # Try to remove the string !BUILD_AR! from our list. 46609 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 46610 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46611 # If it failed, the variable was not from the command line. Ignore it, 46612 # but warn the user (except for BASH, which is always set by the calling BASH). 46613 if test "xBUILD_AR" != xBASH; then 46614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 46615 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 46616 fi 46617 # Try to locate tool using the code snippet 46618 for ac_prog in ar gcc-ar 46619 do 46620 # Extract the first word of "$ac_prog", so it can be a program name with args. 46621 set dummy $ac_prog; ac_word=$2 46622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46623 $as_echo_n "checking for $ac_word... " >&6; } 46624 if ${ac_cv_path_BUILD_AR+:} false; then : 46625 $as_echo_n "(cached) " >&6 46626 else 46627 case $BUILD_AR in 46628 [\\/]* | ?:[\\/]*) 46629 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46630 ;; 46631 *) 46632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46633 for as_dir in $PATH 46634 do 46635 IFS=$as_save_IFS 46636 test -z "$as_dir" && as_dir=. 46637 for ac_exec_ext in '' $ac_executable_extensions; do 46638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46639 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46641 break 2 46642 fi 46643 done 46644 done 46645 IFS=$as_save_IFS 46646 46647 ;; 46648 esac 46649 fi 46650 BUILD_AR=$ac_cv_path_BUILD_AR 46651 if test -n "$BUILD_AR"; then 46652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46653 $as_echo "$BUILD_AR" >&6; } 46654 else 46655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46656 $as_echo "no" >&6; } 46657 fi 46658 46659 46660 test -n "$BUILD_AR" && break 46661 done 46662 46663 else 46664 # If it succeeded, then it was overridden by the user. We will use it 46665 # for the tool. 46666 46667 # First remove it from the list of overridden variables, so we can test 46668 # for unknown variables in the end. 46669 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46670 46671 # Check if we try to supply an empty value 46672 if test "x$BUILD_AR" = x; then 46673 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 46674 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 46675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 46676 $as_echo_n "checking for BUILD_AR... " >&6; } 46677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46678 $as_echo "disabled" >&6; } 46679 else 46680 # Check if the provided tool contains a complete path. 46681 tool_specified="$BUILD_AR" 46682 tool_basename="${tool_specified##*/}" 46683 if test "x$tool_basename" = "x$tool_specified"; then 46684 # A command without a complete path is provided, search $PATH. 46685 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 46686 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 46687 # Extract the first word of "$tool_basename", so it can be a program name with args. 46688 set dummy $tool_basename; ac_word=$2 46689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46690 $as_echo_n "checking for $ac_word... " >&6; } 46691 if ${ac_cv_path_BUILD_AR+:} false; then : 46692 $as_echo_n "(cached) " >&6 46693 else 46694 case $BUILD_AR in 46695 [\\/]* | ?:[\\/]*) 46696 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 46697 ;; 46698 *) 46699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46700 for as_dir in $PATH 46701 do 46702 IFS=$as_save_IFS 46703 test -z "$as_dir" && as_dir=. 46704 for ac_exec_ext in '' $ac_executable_extensions; do 46705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46706 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 46707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46708 break 2 46709 fi 46710 done 46711 done 46712 IFS=$as_save_IFS 46713 46714 ;; 46715 esac 46716 fi 46717 BUILD_AR=$ac_cv_path_BUILD_AR 46718 if test -n "$BUILD_AR"; then 46719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 46720 $as_echo "$BUILD_AR" >&6; } 46721 else 46722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46723 $as_echo "no" >&6; } 46724 fi 46725 46726 46727 if test "x$BUILD_AR" = x; then 46728 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46729 fi 46730 else 46731 # Otherwise we believe it is a complete path. Use it as it is. 46732 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 46733 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 46734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 46735 $as_echo_n "checking for BUILD_AR... " >&6; } 46736 if test ! -x "$tool_specified"; then 46737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46738 $as_echo "not found" >&6; } 46739 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 46740 fi 46741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46742 $as_echo "$tool_specified" >&6; } 46743 fi 46744 fi 46745 fi 46746 46747 fi 46748 46749 46750 46751 # Only process if variable expands to non-empty 46752 46753 if test "x$BUILD_AR" != x; then 46754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46755 46756 # First separate the path from the arguments. This will split at the first 46757 # space. 46758 complete="$BUILD_AR" 46759 path="${complete%% *}" 46760 tmp="$complete EOL" 46761 arguments="${tmp#* }" 46762 46763 # Input might be given as Windows format, start by converting to 46764 # unix format. 46765 new_path=`$CYGPATH -u "$path"` 46766 46767 # Now try to locate executable using which 46768 new_path=`$WHICH "$new_path" 2> /dev/null` 46769 # bat and cmd files are not always considered executable in cygwin causing which 46770 # to not find them 46771 if test "x$new_path" = x \ 46772 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46773 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46774 new_path=`$CYGPATH -u "$path"` 46775 fi 46776 if test "x$new_path" = x; then 46777 # Oops. Which didn't find the executable. 46778 # The splitting of arguments from the executable at a space might have been incorrect, 46779 # since paths with space are more likely in Windows. Give it another try with the whole 46780 # argument. 46781 path="$complete" 46782 arguments="EOL" 46783 new_path=`$CYGPATH -u "$path"` 46784 new_path=`$WHICH "$new_path" 2> /dev/null` 46785 # bat and cmd files are not always considered executable in cygwin causing which 46786 # to not find them 46787 if test "x$new_path" = x \ 46788 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46789 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46790 new_path=`$CYGPATH -u "$path"` 46791 fi 46792 if test "x$new_path" = x; then 46793 # It's still not found. Now this is an unrecoverable error. 46794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46795 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46796 has_space=`$ECHO "$complete" | $GREP " "` 46797 if test "x$has_space" != x; then 46798 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46799 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46800 fi 46801 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46802 fi 46803 fi 46804 46805 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46806 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46807 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46808 # "foo.exe" is OK but "foo" is an error. 46809 # 46810 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46811 # It is also a way to make sure we got the proper file name for the real test later on. 46812 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46813 if test "x$test_shortpath" = x; then 46814 # Short path failed, file does not exist as specified. 46815 # Try adding .exe or .cmd 46816 if test -f "${new_path}.exe"; then 46817 input_to_shortpath="${new_path}.exe" 46818 elif test -f "${new_path}.cmd"; then 46819 input_to_shortpath="${new_path}.cmd" 46820 else 46821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 46822 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 46823 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46824 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46825 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46826 fi 46827 else 46828 input_to_shortpath="$new_path" 46829 fi 46830 46831 # Call helper function which possibly converts this using DOS-style short mode. 46832 # If so, the updated path is stored in $new_path. 46833 new_path="$input_to_shortpath" 46834 46835 input_path="$input_to_shortpath" 46836 # Check if we need to convert this using DOS-style short mode. If the path 46837 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46838 # take no chances and rewrite it. 46839 # Note: m4 eats our [], so we need to use [ and ] instead. 46840 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46841 if test "x$has_forbidden_chars" != x; then 46842 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46843 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46844 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46845 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46846 # Going to short mode and back again did indeed matter. Since short mode is 46847 # case insensitive, let's make it lowercase to improve readability. 46848 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46849 # Now convert it back to Unix-style (cygpath) 46850 input_path=`$CYGPATH -u "$shortmode_path"` 46851 new_path="$input_path" 46852 fi 46853 fi 46854 46855 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46856 if test "x$test_cygdrive_prefix" = x; then 46857 # As a simple fix, exclude /usr/bin since it's not a real path. 46858 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46859 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46860 # a path prefixed by /cygdrive for fixpath to work. 46861 new_path="$CYGWIN_ROOT_PATH$input_path" 46862 fi 46863 fi 46864 46865 # remove trailing .exe if any 46866 new_path="${new_path/%.exe/}" 46867 46868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46869 46870 # First separate the path from the arguments. This will split at the first 46871 # space. 46872 complete="$BUILD_AR" 46873 path="${complete%% *}" 46874 tmp="$complete EOL" 46875 arguments="${tmp#* }" 46876 46877 # Input might be given as Windows format, start by converting to 46878 # unix format. 46879 new_path="$path" 46880 46881 windows_path="$new_path" 46882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46883 unix_path=`$CYGPATH -u "$windows_path"` 46884 new_path="$unix_path" 46885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46886 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46887 new_path="$unix_path" 46888 fi 46889 46890 46891 # Now try to locate executable using which 46892 new_path=`$WHICH "$new_path" 2> /dev/null` 46893 46894 if test "x$new_path" = x; then 46895 # Oops. Which didn't find the executable. 46896 # The splitting of arguments from the executable at a space might have been incorrect, 46897 # since paths with space are more likely in Windows. Give it another try with the whole 46898 # argument. 46899 path="$complete" 46900 arguments="EOL" 46901 new_path="$path" 46902 46903 windows_path="$new_path" 46904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46905 unix_path=`$CYGPATH -u "$windows_path"` 46906 new_path="$unix_path" 46907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46908 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46909 new_path="$unix_path" 46910 fi 46911 46912 46913 new_path=`$WHICH "$new_path" 2> /dev/null` 46914 # bat and cmd files are not always considered executable in MSYS causing which 46915 # to not find them 46916 if test "x$new_path" = x \ 46917 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46918 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46919 new_path="$path" 46920 46921 windows_path="$new_path" 46922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46923 unix_path=`$CYGPATH -u "$windows_path"` 46924 new_path="$unix_path" 46925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46926 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46927 new_path="$unix_path" 46928 fi 46929 46930 fi 46931 46932 if test "x$new_path" = x; then 46933 # It's still not found. Now this is an unrecoverable error. 46934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46935 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46936 has_space=`$ECHO "$complete" | $GREP " "` 46937 if test "x$has_space" != x; then 46938 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46939 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46940 fi 46941 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46942 fi 46943 fi 46944 46945 # Now new_path has a complete unix path to the binary 46946 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46947 # Keep paths in /bin as-is, but remove trailing .exe if any 46948 new_path="${new_path/%.exe/}" 46949 # Do not save /bin paths to all_fixpath_prefixes! 46950 else 46951 # Not in mixed or Windows style, start by that. 46952 new_path=`cmd //c echo $new_path` 46953 46954 input_path="$new_path" 46955 # Check if we need to convert this using DOS-style short mode. If the path 46956 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46957 # take no chances and rewrite it. 46958 # Note: m4 eats our [], so we need to use [ and ] instead. 46959 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46960 if test "x$has_forbidden_chars" != x; then 46961 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46962 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46963 fi 46964 46965 # Output is in $new_path 46966 46967 windows_path="$new_path" 46968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46969 unix_path=`$CYGPATH -u "$windows_path"` 46970 new_path="$unix_path" 46971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46972 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46973 new_path="$unix_path" 46974 fi 46975 46976 # remove trailing .exe if any 46977 new_path="${new_path/%.exe/}" 46978 46979 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46980 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46981 fi 46982 46983 else 46984 # We're on a unix platform. Hooray! :) 46985 # First separate the path from the arguments. This will split at the first 46986 # space. 46987 complete="$BUILD_AR" 46988 path="${complete%% *}" 46989 tmp="$complete EOL" 46990 arguments="${tmp#* }" 46991 46992 # Cannot rely on the command "which" here since it doesn't always work. 46993 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46994 if test -z "$is_absolute_path"; then 46995 # Path to executable is not absolute. Find it. 46996 IFS_save="$IFS" 46997 IFS=: 46998 for p in $PATH; do 46999 if test -f "$p/$path" && test -x "$p/$path"; then 47000 new_path="$p/$path" 47001 break 47002 fi 47003 done 47004 IFS="$IFS_save" 47005 else 47006 # This is an absolute path, we can use it without further modifications. 47007 new_path="$path" 47008 fi 47009 47010 if test "x$new_path" = x; then 47011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47012 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47013 has_space=`$ECHO "$complete" | $GREP " "` 47014 if test "x$has_space" != x; then 47015 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47016 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47017 fi 47018 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47019 fi 47020 fi 47021 47022 # Now join together the path and the arguments once again 47023 if test "x$arguments" != xEOL; then 47024 new_complete="$new_path ${arguments% *}" 47025 else 47026 new_complete="$new_path" 47027 fi 47028 47029 if test "x$complete" != "x$new_complete"; then 47030 BUILD_AR="$new_complete" 47031 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 47032 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 47033 fi 47034 fi 47035 47036 47037 47038 # Publish this variable in the help. 47039 47040 47041 if [ -z "${BUILD_OBJCOPY+x}" ]; then 47042 # The variable is not set by user, try to locate tool using the code snippet 47043 for ac_prog in objcopy 47044 do 47045 # Extract the first word of "$ac_prog", so it can be a program name with args. 47046 set dummy $ac_prog; ac_word=$2 47047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47048 $as_echo_n "checking for $ac_word... " >&6; } 47049 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47050 $as_echo_n "(cached) " >&6 47051 else 47052 case $BUILD_OBJCOPY in 47053 [\\/]* | ?:[\\/]*) 47054 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47055 ;; 47056 *) 47057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47058 for as_dir in $PATH 47059 do 47060 IFS=$as_save_IFS 47061 test -z "$as_dir" && as_dir=. 47062 for ac_exec_ext in '' $ac_executable_extensions; do 47063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47064 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47066 break 2 47067 fi 47068 done 47069 done 47070 IFS=$as_save_IFS 47071 47072 ;; 47073 esac 47074 fi 47075 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47076 if test -n "$BUILD_OBJCOPY"; then 47077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47078 $as_echo "$BUILD_OBJCOPY" >&6; } 47079 else 47080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47081 $as_echo "no" >&6; } 47082 fi 47083 47084 47085 test -n "$BUILD_OBJCOPY" && break 47086 done 47087 47088 else 47089 # The variable is set, but is it from the command line or the environment? 47090 47091 # Try to remove the string !BUILD_OBJCOPY! from our list. 47092 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 47093 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47094 # If it failed, the variable was not from the command line. Ignore it, 47095 # but warn the user (except for BASH, which is always set by the calling BASH). 47096 if test "xBUILD_OBJCOPY" != xBASH; then 47097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 47098 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 47099 fi 47100 # Try to locate tool using the code snippet 47101 for ac_prog in objcopy 47102 do 47103 # Extract the first word of "$ac_prog", so it can be a program name with args. 47104 set dummy $ac_prog; ac_word=$2 47105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47106 $as_echo_n "checking for $ac_word... " >&6; } 47107 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47108 $as_echo_n "(cached) " >&6 47109 else 47110 case $BUILD_OBJCOPY in 47111 [\\/]* | ?:[\\/]*) 47112 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47113 ;; 47114 *) 47115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47116 for as_dir in $PATH 47117 do 47118 IFS=$as_save_IFS 47119 test -z "$as_dir" && as_dir=. 47120 for ac_exec_ext in '' $ac_executable_extensions; do 47121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47122 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47124 break 2 47125 fi 47126 done 47127 done 47128 IFS=$as_save_IFS 47129 47130 ;; 47131 esac 47132 fi 47133 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47134 if test -n "$BUILD_OBJCOPY"; then 47135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47136 $as_echo "$BUILD_OBJCOPY" >&6; } 47137 else 47138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47139 $as_echo "no" >&6; } 47140 fi 47141 47142 47143 test -n "$BUILD_OBJCOPY" && break 47144 done 47145 47146 else 47147 # If it succeeded, then it was overridden by the user. We will use it 47148 # for the tool. 47149 47150 # First remove it from the list of overridden variables, so we can test 47151 # for unknown variables in the end. 47152 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47153 47154 # Check if we try to supply an empty value 47155 if test "x$BUILD_OBJCOPY" = x; then 47156 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 47157 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 47158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 47159 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 47160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47161 $as_echo "disabled" >&6; } 47162 else 47163 # Check if the provided tool contains a complete path. 47164 tool_specified="$BUILD_OBJCOPY" 47165 tool_basename="${tool_specified##*/}" 47166 if test "x$tool_basename" = "x$tool_specified"; then 47167 # A command without a complete path is provided, search $PATH. 47168 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 47169 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 47170 # Extract the first word of "$tool_basename", so it can be a program name with args. 47171 set dummy $tool_basename; ac_word=$2 47172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47173 $as_echo_n "checking for $ac_word... " >&6; } 47174 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47175 $as_echo_n "(cached) " >&6 47176 else 47177 case $BUILD_OBJCOPY in 47178 [\\/]* | ?:[\\/]*) 47179 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47180 ;; 47181 *) 47182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47183 for as_dir in $PATH 47184 do 47185 IFS=$as_save_IFS 47186 test -z "$as_dir" && as_dir=. 47187 for ac_exec_ext in '' $ac_executable_extensions; do 47188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47189 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47191 break 2 47192 fi 47193 done 47194 done 47195 IFS=$as_save_IFS 47196 47197 ;; 47198 esac 47199 fi 47200 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47201 if test -n "$BUILD_OBJCOPY"; then 47202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47203 $as_echo "$BUILD_OBJCOPY" >&6; } 47204 else 47205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47206 $as_echo "no" >&6; } 47207 fi 47208 47209 47210 if test "x$BUILD_OBJCOPY" = x; then 47211 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47212 fi 47213 else 47214 # Otherwise we believe it is a complete path. Use it as it is. 47215 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 47216 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 47217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 47218 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 47219 if test ! -x "$tool_specified"; then 47220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47221 $as_echo "not found" >&6; } 47222 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 47223 fi 47224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47225 $as_echo "$tool_specified" >&6; } 47226 fi 47227 fi 47228 fi 47229 47230 fi 47231 47232 47233 47234 # Only process if variable expands to non-empty 47235 47236 if test "x$BUILD_OBJCOPY" != x; then 47237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47238 47239 # First separate the path from the arguments. This will split at the first 47240 # space. 47241 complete="$BUILD_OBJCOPY" 47242 path="${complete%% *}" 47243 tmp="$complete EOL" 47244 arguments="${tmp#* }" 47245 47246 # Input might be given as Windows format, start by converting to 47247 # unix format. 47248 new_path=`$CYGPATH -u "$path"` 47249 47250 # Now try to locate executable using which 47251 new_path=`$WHICH "$new_path" 2> /dev/null` 47252 # bat and cmd files are not always considered executable in cygwin causing which 47253 # to not find them 47254 if test "x$new_path" = x \ 47255 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47256 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47257 new_path=`$CYGPATH -u "$path"` 47258 fi 47259 if test "x$new_path" = x; then 47260 # Oops. Which didn't find the executable. 47261 # The splitting of arguments from the executable at a space might have been incorrect, 47262 # since paths with space are more likely in Windows. Give it another try with the whole 47263 # argument. 47264 path="$complete" 47265 arguments="EOL" 47266 new_path=`$CYGPATH -u "$path"` 47267 new_path=`$WHICH "$new_path" 2> /dev/null` 47268 # bat and cmd files are not always considered executable in cygwin causing which 47269 # to not find them 47270 if test "x$new_path" = x \ 47271 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47272 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47273 new_path=`$CYGPATH -u "$path"` 47274 fi 47275 if test "x$new_path" = x; then 47276 # It's still not found. Now this is an unrecoverable error. 47277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 47278 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 47279 has_space=`$ECHO "$complete" | $GREP " "` 47280 if test "x$has_space" != x; then 47281 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47282 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47283 fi 47284 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47285 fi 47286 fi 47287 47288 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47289 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47290 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47291 # "foo.exe" is OK but "foo" is an error. 47292 # 47293 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47294 # It is also a way to make sure we got the proper file name for the real test later on. 47295 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47296 if test "x$test_shortpath" = x; then 47297 # Short path failed, file does not exist as specified. 47298 # Try adding .exe or .cmd 47299 if test -f "${new_path}.exe"; then 47300 input_to_shortpath="${new_path}.exe" 47301 elif test -f "${new_path}.cmd"; then 47302 input_to_shortpath="${new_path}.cmd" 47303 else 47304 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 47305 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 47306 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47307 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47308 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47309 fi 47310 else 47311 input_to_shortpath="$new_path" 47312 fi 47313 47314 # Call helper function which possibly converts this using DOS-style short mode. 47315 # If so, the updated path is stored in $new_path. 47316 new_path="$input_to_shortpath" 47317 47318 input_path="$input_to_shortpath" 47319 # Check if we need to convert this using DOS-style short mode. If the path 47320 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47321 # take no chances and rewrite it. 47322 # Note: m4 eats our [], so we need to use [ and ] instead. 47323 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47324 if test "x$has_forbidden_chars" != x; then 47325 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47326 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47327 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47328 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47329 # Going to short mode and back again did indeed matter. Since short mode is 47330 # case insensitive, let's make it lowercase to improve readability. 47331 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47332 # Now convert it back to Unix-style (cygpath) 47333 input_path=`$CYGPATH -u "$shortmode_path"` 47334 new_path="$input_path" 47335 fi 47336 fi 47337 47338 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47339 if test "x$test_cygdrive_prefix" = x; then 47340 # As a simple fix, exclude /usr/bin since it's not a real path. 47341 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47342 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47343 # a path prefixed by /cygdrive for fixpath to work. 47344 new_path="$CYGWIN_ROOT_PATH$input_path" 47345 fi 47346 fi 47347 47348 # remove trailing .exe if any 47349 new_path="${new_path/%.exe/}" 47350 47351 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47352 47353 # First separate the path from the arguments. This will split at the first 47354 # space. 47355 complete="$BUILD_OBJCOPY" 47356 path="${complete%% *}" 47357 tmp="$complete EOL" 47358 arguments="${tmp#* }" 47359 47360 # Input might be given as Windows format, start by converting to 47361 # unix format. 47362 new_path="$path" 47363 47364 windows_path="$new_path" 47365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47366 unix_path=`$CYGPATH -u "$windows_path"` 47367 new_path="$unix_path" 47368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47370 new_path="$unix_path" 47371 fi 47372 47373 47374 # Now try to locate executable using which 47375 new_path=`$WHICH "$new_path" 2> /dev/null` 47376 47377 if test "x$new_path" = x; then 47378 # Oops. Which didn't find the executable. 47379 # The splitting of arguments from the executable at a space might have been incorrect, 47380 # since paths with space are more likely in Windows. Give it another try with the whole 47381 # argument. 47382 path="$complete" 47383 arguments="EOL" 47384 new_path="$path" 47385 47386 windows_path="$new_path" 47387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47388 unix_path=`$CYGPATH -u "$windows_path"` 47389 new_path="$unix_path" 47390 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47391 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47392 new_path="$unix_path" 47393 fi 47394 47395 47396 new_path=`$WHICH "$new_path" 2> /dev/null` 47397 # bat and cmd files are not always considered executable in MSYS causing which 47398 # to not find them 47399 if test "x$new_path" = x \ 47400 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47401 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47402 new_path="$path" 47403 47404 windows_path="$new_path" 47405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47406 unix_path=`$CYGPATH -u "$windows_path"` 47407 new_path="$unix_path" 47408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47410 new_path="$unix_path" 47411 fi 47412 47413 fi 47414 47415 if test "x$new_path" = x; then 47416 # It's still not found. Now this is an unrecoverable error. 47417 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 47418 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 47419 has_space=`$ECHO "$complete" | $GREP " "` 47420 if test "x$has_space" != x; then 47421 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47422 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47423 fi 47424 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47425 fi 47426 fi 47427 47428 # Now new_path has a complete unix path to the binary 47429 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47430 # Keep paths in /bin as-is, but remove trailing .exe if any 47431 new_path="${new_path/%.exe/}" 47432 # Do not save /bin paths to all_fixpath_prefixes! 47433 else 47434 # Not in mixed or Windows style, start by that. 47435 new_path=`cmd //c echo $new_path` 47436 47437 input_path="$new_path" 47438 # Check if we need to convert this using DOS-style short mode. If the path 47439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47440 # take no chances and rewrite it. 47441 # Note: m4 eats our [], so we need to use [ and ] instead. 47442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47443 if test "x$has_forbidden_chars" != x; then 47444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47445 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47446 fi 47447 47448 # Output is in $new_path 47449 47450 windows_path="$new_path" 47451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47452 unix_path=`$CYGPATH -u "$windows_path"` 47453 new_path="$unix_path" 47454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47455 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47456 new_path="$unix_path" 47457 fi 47458 47459 # remove trailing .exe if any 47460 new_path="${new_path/%.exe/}" 47461 47462 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47463 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47464 fi 47465 47466 else 47467 # We're on a unix platform. Hooray! :) 47468 # First separate the path from the arguments. This will split at the first 47469 # space. 47470 complete="$BUILD_OBJCOPY" 47471 path="${complete%% *}" 47472 tmp="$complete EOL" 47473 arguments="${tmp#* }" 47474 47475 # Cannot rely on the command "which" here since it doesn't always work. 47476 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47477 if test -z "$is_absolute_path"; then 47478 # Path to executable is not absolute. Find it. 47479 IFS_save="$IFS" 47480 IFS=: 47481 for p in $PATH; do 47482 if test -f "$p/$path" && test -x "$p/$path"; then 47483 new_path="$p/$path" 47484 break 47485 fi 47486 done 47487 IFS="$IFS_save" 47488 else 47489 # This is an absolute path, we can use it without further modifications. 47490 new_path="$path" 47491 fi 47492 47493 if test "x$new_path" = x; then 47494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 47495 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 47496 has_space=`$ECHO "$complete" | $GREP " "` 47497 if test "x$has_space" != x; then 47498 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47499 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47500 fi 47501 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 47502 fi 47503 fi 47504 47505 # Now join together the path and the arguments once again 47506 if test "x$arguments" != xEOL; then 47507 new_complete="$new_path ${arguments% *}" 47508 else 47509 new_complete="$new_path" 47510 fi 47511 47512 if test "x$complete" != "x$new_complete"; then 47513 BUILD_OBJCOPY="$new_complete" 47514 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 47515 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 47516 fi 47517 fi 47518 47519 47520 47521 # Publish this variable in the help. 47522 47523 47524 if [ -z "${BUILD_STRIP+x}" ]; then 47525 # The variable is not set by user, try to locate tool using the code snippet 47526 for ac_prog in strip 47527 do 47528 # Extract the first word of "$ac_prog", so it can be a program name with args. 47529 set dummy $ac_prog; ac_word=$2 47530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47531 $as_echo_n "checking for $ac_word... " >&6; } 47532 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47533 $as_echo_n "(cached) " >&6 47534 else 47535 case $BUILD_STRIP in 47536 [\\/]* | ?:[\\/]*) 47537 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47538 ;; 47539 *) 47540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47541 for as_dir in $PATH 47542 do 47543 IFS=$as_save_IFS 47544 test -z "$as_dir" && as_dir=. 47545 for ac_exec_ext in '' $ac_executable_extensions; do 47546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47547 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47549 break 2 47550 fi 47551 done 47552 done 47553 IFS=$as_save_IFS 47554 47555 ;; 47556 esac 47557 fi 47558 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47559 if test -n "$BUILD_STRIP"; then 47560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47561 $as_echo "$BUILD_STRIP" >&6; } 47562 else 47563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47564 $as_echo "no" >&6; } 47565 fi 47566 47567 47568 test -n "$BUILD_STRIP" && break 47569 done 47570 47571 else 47572 # The variable is set, but is it from the command line or the environment? 47573 47574 # Try to remove the string !BUILD_STRIP! from our list. 47575 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 47576 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47577 # If it failed, the variable was not from the command line. Ignore it, 47578 # but warn the user (except for BASH, which is always set by the calling BASH). 47579 if test "xBUILD_STRIP" != xBASH; then 47580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 47581 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 47582 fi 47583 # Try to locate tool using the code snippet 47584 for ac_prog in strip 47585 do 47586 # Extract the first word of "$ac_prog", so it can be a program name with args. 47587 set dummy $ac_prog; ac_word=$2 47588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47589 $as_echo_n "checking for $ac_word... " >&6; } 47590 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47591 $as_echo_n "(cached) " >&6 47592 else 47593 case $BUILD_STRIP in 47594 [\\/]* | ?:[\\/]*) 47595 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47596 ;; 47597 *) 47598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47599 for as_dir in $PATH 47600 do 47601 IFS=$as_save_IFS 47602 test -z "$as_dir" && as_dir=. 47603 for ac_exec_ext in '' $ac_executable_extensions; do 47604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47605 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47607 break 2 47608 fi 47609 done 47610 done 47611 IFS=$as_save_IFS 47612 47613 ;; 47614 esac 47615 fi 47616 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47617 if test -n "$BUILD_STRIP"; then 47618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47619 $as_echo "$BUILD_STRIP" >&6; } 47620 else 47621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47622 $as_echo "no" >&6; } 47623 fi 47624 47625 47626 test -n "$BUILD_STRIP" && break 47627 done 47628 47629 else 47630 # If it succeeded, then it was overridden by the user. We will use it 47631 # for the tool. 47632 47633 # First remove it from the list of overridden variables, so we can test 47634 # for unknown variables in the end. 47635 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47636 47637 # Check if we try to supply an empty value 47638 if test "x$BUILD_STRIP" = x; then 47639 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 47640 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 47641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 47642 $as_echo_n "checking for BUILD_STRIP... " >&6; } 47643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47644 $as_echo "disabled" >&6; } 47645 else 47646 # Check if the provided tool contains a complete path. 47647 tool_specified="$BUILD_STRIP" 47648 tool_basename="${tool_specified##*/}" 47649 if test "x$tool_basename" = "x$tool_specified"; then 47650 # A command without a complete path is provided, search $PATH. 47651 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 47652 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 47653 # Extract the first word of "$tool_basename", so it can be a program name with args. 47654 set dummy $tool_basename; ac_word=$2 47655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47656 $as_echo_n "checking for $ac_word... " >&6; } 47657 if ${ac_cv_path_BUILD_STRIP+:} false; then : 47658 $as_echo_n "(cached) " >&6 47659 else 47660 case $BUILD_STRIP in 47661 [\\/]* | ?:[\\/]*) 47662 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 47663 ;; 47664 *) 47665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47666 for as_dir in $PATH 47667 do 47668 IFS=$as_save_IFS 47669 test -z "$as_dir" && as_dir=. 47670 for ac_exec_ext in '' $ac_executable_extensions; do 47671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47672 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 47673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47674 break 2 47675 fi 47676 done 47677 done 47678 IFS=$as_save_IFS 47679 47680 ;; 47681 esac 47682 fi 47683 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 47684 if test -n "$BUILD_STRIP"; then 47685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 47686 $as_echo "$BUILD_STRIP" >&6; } 47687 else 47688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47689 $as_echo "no" >&6; } 47690 fi 47691 47692 47693 if test "x$BUILD_STRIP" = x; then 47694 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47695 fi 47696 else 47697 # Otherwise we believe it is a complete path. Use it as it is. 47698 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 47699 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 47700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 47701 $as_echo_n "checking for BUILD_STRIP... " >&6; } 47702 if test ! -x "$tool_specified"; then 47703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47704 $as_echo "not found" >&6; } 47705 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 47706 fi 47707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47708 $as_echo "$tool_specified" >&6; } 47709 fi 47710 fi 47711 fi 47712 47713 fi 47714 47715 47716 47717 # Only process if variable expands to non-empty 47718 47719 if test "x$BUILD_STRIP" != x; then 47720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47721 47722 # First separate the path from the arguments. This will split at the first 47723 # space. 47724 complete="$BUILD_STRIP" 47725 path="${complete%% *}" 47726 tmp="$complete EOL" 47727 arguments="${tmp#* }" 47728 47729 # Input might be given as Windows format, start by converting to 47730 # unix format. 47731 new_path=`$CYGPATH -u "$path"` 47732 47733 # Now try to locate executable using which 47734 new_path=`$WHICH "$new_path" 2> /dev/null` 47735 # bat and cmd files are not always considered executable in cygwin causing which 47736 # to not find them 47737 if test "x$new_path" = x \ 47738 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47739 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47740 new_path=`$CYGPATH -u "$path"` 47741 fi 47742 if test "x$new_path" = x; then 47743 # Oops. Which didn't find the executable. 47744 # The splitting of arguments from the executable at a space might have been incorrect, 47745 # since paths with space are more likely in Windows. Give it another try with the whole 47746 # argument. 47747 path="$complete" 47748 arguments="EOL" 47749 new_path=`$CYGPATH -u "$path"` 47750 new_path=`$WHICH "$new_path" 2> /dev/null` 47751 # bat and cmd files are not always considered executable in cygwin causing which 47752 # to not find them 47753 if test "x$new_path" = x \ 47754 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47755 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47756 new_path=`$CYGPATH -u "$path"` 47757 fi 47758 if test "x$new_path" = x; then 47759 # It's still not found. Now this is an unrecoverable error. 47760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47761 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47762 has_space=`$ECHO "$complete" | $GREP " "` 47763 if test "x$has_space" != x; then 47764 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47765 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47766 fi 47767 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47768 fi 47769 fi 47770 47771 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47772 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47773 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47774 # "foo.exe" is OK but "foo" is an error. 47775 # 47776 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47777 # It is also a way to make sure we got the proper file name for the real test later on. 47778 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47779 if test "x$test_shortpath" = x; then 47780 # Short path failed, file does not exist as specified. 47781 # Try adding .exe or .cmd 47782 if test -f "${new_path}.exe"; then 47783 input_to_shortpath="${new_path}.exe" 47784 elif test -f "${new_path}.cmd"; then 47785 input_to_shortpath="${new_path}.cmd" 47786 else 47787 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 47788 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 47789 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47790 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47791 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47792 fi 47793 else 47794 input_to_shortpath="$new_path" 47795 fi 47796 47797 # Call helper function which possibly converts this using DOS-style short mode. 47798 # If so, the updated path is stored in $new_path. 47799 new_path="$input_to_shortpath" 47800 47801 input_path="$input_to_shortpath" 47802 # Check if we need to convert this using DOS-style short mode. If the path 47803 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47804 # take no chances and rewrite it. 47805 # Note: m4 eats our [], so we need to use [ and ] instead. 47806 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47807 if test "x$has_forbidden_chars" != x; then 47808 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47809 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47810 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47811 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47812 # Going to short mode and back again did indeed matter. Since short mode is 47813 # case insensitive, let's make it lowercase to improve readability. 47814 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47815 # Now convert it back to Unix-style (cygpath) 47816 input_path=`$CYGPATH -u "$shortmode_path"` 47817 new_path="$input_path" 47818 fi 47819 fi 47820 47821 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47822 if test "x$test_cygdrive_prefix" = x; then 47823 # As a simple fix, exclude /usr/bin since it's not a real path. 47824 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47825 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47826 # a path prefixed by /cygdrive for fixpath to work. 47827 new_path="$CYGWIN_ROOT_PATH$input_path" 47828 fi 47829 fi 47830 47831 # remove trailing .exe if any 47832 new_path="${new_path/%.exe/}" 47833 47834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47835 47836 # First separate the path from the arguments. This will split at the first 47837 # space. 47838 complete="$BUILD_STRIP" 47839 path="${complete%% *}" 47840 tmp="$complete EOL" 47841 arguments="${tmp#* }" 47842 47843 # Input might be given as Windows format, start by converting to 47844 # unix format. 47845 new_path="$path" 47846 47847 windows_path="$new_path" 47848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47849 unix_path=`$CYGPATH -u "$windows_path"` 47850 new_path="$unix_path" 47851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47853 new_path="$unix_path" 47854 fi 47855 47856 47857 # Now try to locate executable using which 47858 new_path=`$WHICH "$new_path" 2> /dev/null` 47859 47860 if test "x$new_path" = x; then 47861 # Oops. Which didn't find the executable. 47862 # The splitting of arguments from the executable at a space might have been incorrect, 47863 # since paths with space are more likely in Windows. Give it another try with the whole 47864 # argument. 47865 path="$complete" 47866 arguments="EOL" 47867 new_path="$path" 47868 47869 windows_path="$new_path" 47870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47871 unix_path=`$CYGPATH -u "$windows_path"` 47872 new_path="$unix_path" 47873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47875 new_path="$unix_path" 47876 fi 47877 47878 47879 new_path=`$WHICH "$new_path" 2> /dev/null` 47880 # bat and cmd files are not always considered executable in MSYS causing which 47881 # to not find them 47882 if test "x$new_path" = x \ 47883 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47884 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47885 new_path="$path" 47886 47887 windows_path="$new_path" 47888 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47889 unix_path=`$CYGPATH -u "$windows_path"` 47890 new_path="$unix_path" 47891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47892 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47893 new_path="$unix_path" 47894 fi 47895 47896 fi 47897 47898 if test "x$new_path" = x; then 47899 # It's still not found. Now this is an unrecoverable error. 47900 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47901 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47902 has_space=`$ECHO "$complete" | $GREP " "` 47903 if test "x$has_space" != x; then 47904 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47905 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47906 fi 47907 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47908 fi 47909 fi 47910 47911 # Now new_path has a complete unix path to the binary 47912 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47913 # Keep paths in /bin as-is, but remove trailing .exe if any 47914 new_path="${new_path/%.exe/}" 47915 # Do not save /bin paths to all_fixpath_prefixes! 47916 else 47917 # Not in mixed or Windows style, start by that. 47918 new_path=`cmd //c echo $new_path` 47919 47920 input_path="$new_path" 47921 # Check if we need to convert this using DOS-style short mode. If the path 47922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47923 # take no chances and rewrite it. 47924 # Note: m4 eats our [], so we need to use [ and ] instead. 47925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47926 if test "x$has_forbidden_chars" != x; then 47927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47928 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47929 fi 47930 47931 # Output is in $new_path 47932 47933 windows_path="$new_path" 47934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47935 unix_path=`$CYGPATH -u "$windows_path"` 47936 new_path="$unix_path" 47937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47938 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47939 new_path="$unix_path" 47940 fi 47941 47942 # remove trailing .exe if any 47943 new_path="${new_path/%.exe/}" 47944 47945 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47946 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47947 fi 47948 47949 else 47950 # We're on a unix platform. Hooray! :) 47951 # First separate the path from the arguments. This will split at the first 47952 # space. 47953 complete="$BUILD_STRIP" 47954 path="${complete%% *}" 47955 tmp="$complete EOL" 47956 arguments="${tmp#* }" 47957 47958 # Cannot rely on the command "which" here since it doesn't always work. 47959 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47960 if test -z "$is_absolute_path"; then 47961 # Path to executable is not absolute. Find it. 47962 IFS_save="$IFS" 47963 IFS=: 47964 for p in $PATH; do 47965 if test -f "$p/$path" && test -x "$p/$path"; then 47966 new_path="$p/$path" 47967 break 47968 fi 47969 done 47970 IFS="$IFS_save" 47971 else 47972 # This is an absolute path, we can use it without further modifications. 47973 new_path="$path" 47974 fi 47975 47976 if test "x$new_path" = x; then 47977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 47978 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 47979 has_space=`$ECHO "$complete" | $GREP " "` 47980 if test "x$has_space" != x; then 47981 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47982 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47983 fi 47984 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 47985 fi 47986 fi 47987 47988 # Now join together the path and the arguments once again 47989 if test "x$arguments" != xEOL; then 47990 new_complete="$new_path ${arguments% *}" 47991 else 47992 new_complete="$new_path" 47993 fi 47994 47995 if test "x$complete" != "x$new_complete"; then 47996 BUILD_STRIP="$new_complete" 47997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 47998 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 47999 fi 48000 fi 48001 48002 # Assume the C compiler is the assembler 48003 BUILD_AS="$BUILD_CC -c" 48004 # Just like for the target compiler, use the compiler as linker 48005 BUILD_LD="$BUILD_CC" 48006 BUILD_LDCXX="$BUILD_CXX" 48007 48008 PATH="$OLDPATH" 48009 48010 48011 COMPILER=$BUILD_CC 48012 COMPILER_NAME=BuildC 48013 48014 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48015 # cc -V output typically looks like 48016 # cc: Sun C 5.12 Linux_i386 2011/11/16 48017 # or 48018 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48019 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48020 # Check that this is likely to be the Solaris Studio cc. 48021 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48022 if test $? -ne 0; then 48023 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48024 { $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 48025 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48026 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48027 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48028 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48029 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48030 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48031 fi 48032 # Remove usage instructions (if present), and 48033 # collapse compiler output into a single line 48034 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48035 $SED -e 's/ *[Uu]sage:.*//'` 48036 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48037 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48038 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48039 # xlc -qversion output typically looks like 48040 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48041 # Version: 11.01.0000.0015 48042 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48043 # Check that this is likely to be the IBM XL C compiler. 48044 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48045 if test $? -ne 0; then 48046 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48047 { $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 48048 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48049 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48050 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48051 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48052 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48053 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48054 fi 48055 # Collapse compiler output into a single line 48056 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48057 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48058 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48059 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48060 # There is no specific version flag, but all output starts with a version string. 48061 # First line typically looks something like: 48062 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 48063 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48064 # Check that this is likely to be Microsoft CL.EXE. 48065 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 48066 if test $? -ne 0; then 48067 { $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 48068 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48069 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48070 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48071 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48072 fi 48073 # Collapse compiler output into a single line 48074 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48075 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48076 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 48077 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48078 # gcc --version output typically looks like 48079 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 48080 # Copyright (C) 2013 Free Software Foundation, Inc. 48081 # This is free software; see the source for copying conditions. There is NO 48082 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48083 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48084 # Check that this is likely to be GCC. 48085 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 48086 if test $? -ne 0; then 48087 { $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 48088 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48089 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 48090 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 48091 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48092 fi 48093 # Remove Copyright and legalese from version string, and 48094 # collapse into a single line 48095 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48096 $SED -e 's/ *Copyright .*//'` 48097 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48098 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 48099 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48100 # clang --version output typically looks like 48101 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 48102 # clang version 3.3 (tags/RELEASE_33/final) 48103 # or 48104 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 48105 # Target: x86_64-pc-linux-gnu 48106 # Thread model: posix 48107 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48108 # Check that this is likely to be clang 48109 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48110 if test $? -ne 0; then 48111 { $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 48112 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48113 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48114 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48115 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48116 fi 48117 # Collapse compiler output into a single line 48118 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48119 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48120 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48121 else 48122 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48123 fi 48124 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 48125 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 48126 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 48127 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 48128 48129 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 48130 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 48131 48132 48133 COMPILER=$BUILD_CXX 48134 COMPILER_NAME=BuildC++ 48135 48136 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48137 # cc -V output typically looks like 48138 # cc: Sun C 5.12 Linux_i386 2011/11/16 48139 # or 48140 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48141 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48142 # Check that this is likely to be the Solaris Studio cc. 48143 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48144 if test $? -ne 0; then 48145 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48146 { $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 48147 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48148 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48149 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48150 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48151 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48152 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48153 fi 48154 # Remove usage instructions (if present), and 48155 # collapse compiler output into a single line 48156 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48157 $SED -e 's/ *[Uu]sage:.*//'` 48158 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48159 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48160 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48161 # xlc -qversion output typically looks like 48162 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48163 # Version: 11.01.0000.0015 48164 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48165 # Check that this is likely to be the IBM XL C compiler. 48166 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48167 if test $? -ne 0; then 48168 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48169 { $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 48170 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48171 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48172 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48173 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48174 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48175 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48176 fi 48177 # Collapse compiler output into a single line 48178 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48179 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48180 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48181 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48182 # There is no specific version flag, but all output starts with a version string. 48183 # First line typically looks something like: 48184 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 48185 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48186 # Check that this is likely to be Microsoft CL.EXE. 48187 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 48188 if test $? -ne 0; then 48189 { $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 48190 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48191 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48192 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48193 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48194 fi 48195 # Collapse compiler output into a single line 48196 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48197 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48198 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 48199 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48200 # gcc --version output typically looks like 48201 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 48202 # Copyright (C) 2013 Free Software Foundation, Inc. 48203 # This is free software; see the source for copying conditions. There is NO 48204 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48205 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48206 # Check that this is likely to be GCC. 48207 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 48208 if test $? -ne 0; then 48209 { $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 48210 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48211 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 48212 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 48213 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48214 fi 48215 # Remove Copyright and legalese from version string, and 48216 # collapse into a single line 48217 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48218 $SED -e 's/ *Copyright .*//'` 48219 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48220 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 48221 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48222 # clang --version output typically looks like 48223 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 48224 # clang version 3.3 (tags/RELEASE_33/final) 48225 # or 48226 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 48227 # Target: x86_64-pc-linux-gnu 48228 # Thread model: posix 48229 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48230 # Check that this is likely to be clang 48231 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48232 if test $? -ne 0; then 48233 { $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 48234 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48235 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48236 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48237 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48238 fi 48239 # Collapse compiler output into a single line 48240 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48241 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48242 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48243 else 48244 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48245 fi 48246 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 48247 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 48248 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 48249 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 48250 48251 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 48252 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 48253 48254 48255 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 48256 { $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 48257 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 48258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 48259 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 48260 fi 48261 48262 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 48263 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 48264 { $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 48265 $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;} 48266 fi 48267 48268 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 48269 { $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 48270 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 48271 fi 48272 48273 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$BUILD_CC_VERSION_NUMBER"` 48274 48275 else 48276 # If we are not cross compiling, use the normal target compilers for 48277 # building the build platform executables. 48278 BUILD_CC="$CC" 48279 BUILD_CXX="$CXX" 48280 BUILD_LD="$LD" 48281 BUILD_LDCXX="$LDCXX" 48282 BUILD_NM="$NM" 48283 BUILD_AS="$AS" 48284 BUILD_OBJCOPY="$OBJCOPY" 48285 BUILD_STRIP="$STRIP" 48286 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 48287 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 48288 BUILD_AR="$AR" 48289 48290 48291 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 48292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 48293 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 48294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 48295 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 48296 fi 48297 48298 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 48299 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 48300 { $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 48301 $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;} 48302 fi 48303 48304 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 48305 { $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 48306 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 48307 fi 48308 48309 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 48310 48311 fi 48312 48313 48314 48315 48316 48317 48318 48319 48320 48321 48322 48323 48324 48325 48326 # The package path is used only on macosx? 48327 # FIXME: clean this up, and/or move it elsewhere. 48328 PACKAGE_PATH=/opt/local 48329 48330 48331 # Check for extra potential brokenness. 48332 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48333 # On Windows, double-check that we got the right compiler. 48334 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48335 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 48336 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 48337 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 48338 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 48339 fi 48340 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 48341 if test "x$COMPILER_CPU_TEST" != "xx64"; then 48342 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 48343 fi 48344 fi 48345 fi 48346 48347 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48348 # If this is a --hash-style=gnu system, use --hash-style=both, why? 48349 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 48350 # This is later checked when setting flags. 48351 48352 # "-Og" suppported for GCC 4.8 and later 48353 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 48354 48355 48356 48357 48358 48359 48360 48361 48362 48363 48364 48365 48366 48367 48368 48369 48370 48371 48372 48373 48374 48375 48376 48377 48378 48379 48380 48381 48382 48383 48384 48385 48386 48387 48388 48389 48390 48391 48392 48393 48394 48395 48396 48397 48398 48399 48400 48401 # Execute function body 48402 48403 48404 48405 48406 48407 48408 48409 48410 48411 48412 48413 48414 48415 48416 48417 48418 48419 48420 48421 48422 48423 48424 48425 48426 48427 48428 48429 48430 48431 48432 48433 48434 48435 48436 48437 48438 48439 48440 48441 48442 48443 48444 48445 48446 48447 48448 48449 48450 # Execute function body 48451 48452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48453 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48454 supports=yes 48455 48456 saved_cflags="$CFLAGS" 48457 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 48458 ac_ext=c 48459 ac_cpp='$CPP $CPPFLAGS' 48460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48462 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48463 48464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48465 /* end confdefs.h. */ 48466 int i; 48467 _ACEOF 48468 if ac_fn_c_try_compile "$LINENO"; then : 48469 48470 else 48471 supports=no 48472 fi 48473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48474 ac_ext=cpp 48475 ac_cpp='$CXXCPP $CPPFLAGS' 48476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48479 48480 CFLAGS="$saved_cflags" 48481 48482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48483 $as_echo "$supports" >&6; } 48484 if test "x$supports" = "xyes" ; then 48485 : 48486 C_COMP_SUPPORTS="yes" 48487 else 48488 : 48489 C_COMP_SUPPORTS="no" 48490 fi 48491 48492 48493 48494 48495 48496 48497 48498 48499 48500 48501 48502 48503 48504 48505 48506 48507 48508 48509 48510 48511 48512 48513 48514 48515 48516 48517 48518 48519 48520 48521 48522 48523 48524 48525 48526 48527 48528 48529 48530 48531 48532 48533 48534 48535 48536 48537 48538 48539 48540 48541 48542 48543 48544 48545 48546 48547 48548 48549 48550 # Execute function body 48551 48552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48553 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48554 supports=yes 48555 48556 saved_cxxflags="$CXXFLAGS" 48557 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 48558 ac_ext=cpp 48559 ac_cpp='$CXXCPP $CPPFLAGS' 48560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48563 48564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48565 /* end confdefs.h. */ 48566 int i; 48567 _ACEOF 48568 if ac_fn_cxx_try_compile "$LINENO"; then : 48569 48570 else 48571 supports=no 48572 fi 48573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48574 ac_ext=cpp 48575 ac_cpp='$CXXCPP $CPPFLAGS' 48576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48579 48580 CXXFLAGS="$saved_cxxflags" 48581 48582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48583 $as_echo "$supports" >&6; } 48584 if test "x$supports" = "xyes" ; then 48585 : 48586 CXX_COMP_SUPPORTS="yes" 48587 else 48588 : 48589 CXX_COMP_SUPPORTS="no" 48590 fi 48591 48592 48593 48594 48595 48596 48597 48598 48599 48600 48601 48602 48603 48604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 48605 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 48606 supports=no 48607 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 48608 48609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48610 $as_echo "$supports" >&6; } 48611 if test "x$supports" = "xyes" ; then 48612 : 48613 HAS_CFLAG_OPTIMIZE_DEBUG=true 48614 else 48615 : 48616 HAS_CFLAG_OPTIMIZE_DEBUG=false 48617 fi 48618 48619 48620 48621 48622 48623 48624 48625 # "-z relro" supported in GNU binutils 2.17 and later 48626 LINKER_RELRO_FLAG="-Wl,-z,relro" 48627 48628 48629 48630 48631 48632 48633 48634 48635 48636 48637 48638 48639 48640 48641 48642 48643 48644 48645 48646 48647 48648 48649 48650 48651 48652 48653 48654 48655 48656 48657 48658 48659 48660 48661 48662 48663 48664 48665 48666 48667 48668 48669 48670 48671 48672 48673 48674 # Execute function body 48675 48676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 48677 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 48678 supports=yes 48679 48680 saved_ldflags="$LDFLAGS" 48681 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 48682 ac_ext=c 48683 ac_cpp='$CPP $CPPFLAGS' 48684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48686 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48687 48688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48689 /* end confdefs.h. */ 48690 48691 int 48692 main () 48693 { 48694 48695 ; 48696 return 0; 48697 } 48698 _ACEOF 48699 if ac_fn_c_try_link "$LINENO"; then : 48700 48701 else 48702 supports=no 48703 fi 48704 rm -f core conftest.err conftest.$ac_objext \ 48705 conftest$ac_exeext conftest.$ac_ext 48706 ac_ext=cpp 48707 ac_cpp='$CXXCPP $CPPFLAGS' 48708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48711 48712 LDFLAGS="$saved_ldflags" 48713 48714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48715 $as_echo "$supports" >&6; } 48716 if test "x$supports" = "xyes" ; then 48717 : 48718 HAS_LINKER_RELRO=true 48719 else 48720 : 48721 HAS_LINKER_RELRO=false 48722 fi 48723 48724 48725 48726 48727 48728 48729 48730 48731 48732 48733 48734 48735 48736 # "-z now" supported in GNU binutils 2.11 and later 48737 LINKER_NOW_FLAG="-Wl,-z,now" 48738 48739 48740 48741 48742 48743 48744 48745 48746 48747 48748 48749 48750 48751 48752 48753 48754 48755 48756 48757 48758 48759 48760 48761 48762 48763 48764 48765 48766 48767 48768 48769 48770 48771 48772 48773 48774 48775 48776 48777 48778 48779 48780 48781 48782 48783 48784 48785 # Execute function body 48786 48787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 48788 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 48789 supports=yes 48790 48791 saved_ldflags="$LDFLAGS" 48792 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 48793 ac_ext=c 48794 ac_cpp='$CPP $CPPFLAGS' 48795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48797 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48798 48799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48800 /* end confdefs.h. */ 48801 48802 int 48803 main () 48804 { 48805 48806 ; 48807 return 0; 48808 } 48809 _ACEOF 48810 if ac_fn_c_try_link "$LINENO"; then : 48811 48812 else 48813 supports=no 48814 fi 48815 rm -f core conftest.err conftest.$ac_objext \ 48816 conftest$ac_exeext conftest.$ac_ext 48817 ac_ext=cpp 48818 ac_cpp='$CXXCPP $CPPFLAGS' 48819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48822 48823 LDFLAGS="$saved_ldflags" 48824 48825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48826 $as_echo "$supports" >&6; } 48827 if test "x$supports" = "xyes" ; then 48828 : 48829 HAS_LINKER_NOW=true 48830 else 48831 : 48832 HAS_LINKER_NOW=false 48833 fi 48834 48835 48836 48837 48838 48839 48840 48841 48842 48843 48844 48845 48846 fi 48847 48848 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 48849 # in executable.' 48850 USING_BROKEN_SUSE_LD=no 48851 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 48852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 48853 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 48854 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 48855 $ECHO "int main() { }" > main.c 48856 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 48857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48858 $as_echo "no" >&6; } 48859 USING_BROKEN_SUSE_LD=no 48860 else 48861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48862 $as_echo "yes" >&6; } 48863 USING_BROKEN_SUSE_LD=yes 48864 fi 48865 $RM version-script.map main.c a.out 48866 fi 48867 48868 48869 # Setup hotspot lecagy names for toolchains 48870 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 48871 if test "x$TOOLCHAIN_TYPE" = xclang; then 48872 HOTSPOT_TOOLCHAIN_TYPE=gcc 48873 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48874 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 48875 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48876 HOTSPOT_TOOLCHAIN_TYPE=visCPP 48877 fi 48878 48879 48880 48881 # Setup the JTReg Regression Test Harness. 48882 48883 48884 # Check whether --with-jtreg was given. 48885 if test "${with_jtreg+set}" = set; then : 48886 withval=$with_jtreg; 48887 fi 48888 48889 48890 if test "x$with_jtreg" = xno; then 48891 # jtreg disabled 48892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 48893 $as_echo_n "checking for jtreg test harness... " >&6; } 48894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabled" >&5 48895 $as_echo "no, disabled" >&6; } 48896 elif test "x$with_jtreg" != xyes && test "x$with_jtreg" != x; then 48897 # An explicit path is specified, use it. 48898 JT_HOME="$with_jtreg" 48899 if test ! -d "$JT_HOME"; then 48900 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not exist" "$LINENO" 5 48901 fi 48902 48903 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 48904 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg is not a valid jtreg home" "$LINENO" 5 48905 fi 48906 48907 JTREGEXE="$JT_HOME/bin/jtreg" 48908 if test ! -x "$JTREGEXE"; then 48909 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not contain valid jtreg executable" "$LINENO" 5 48910 fi 48911 48912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 48913 $as_echo_n "checking for jtreg test harness... " >&6; } 48914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 48915 $as_echo "$JT_HOME" >&6; } 48916 else 48917 # Try to locate jtreg 48918 if test "x$JT_HOME" != x; then 48919 # JT_HOME set in environment, use it 48920 if test ! -d "$JT_HOME"; then 48921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&5 48922 $as_echo "$as_me: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&2;} 48923 JT_HOME= 48924 else 48925 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 48926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&5 48927 $as_echo "$as_me: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&2;} 48928 JT_HOME= 48929 elif test ! -x "$JT_HOME/bin/jtreg"; then 48930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&5 48931 $as_echo "$as_me: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&2;} 48932 JT_HOME= 48933 else 48934 JTREGEXE="$JT_HOME/bin/jtreg" 48935 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using JT_HOME from environment" >&5 48936 $as_echo "$as_me: Located jtreg using JT_HOME from environment" >&6;} 48937 fi 48938 fi 48939 fi 48940 48941 if test "x$JT_HOME" = x; then 48942 # JT_HOME is not set in environment, or was deemed invalid. 48943 # Try to find jtreg on path 48944 48945 48946 # Publish this variable in the help. 48947 48948 48949 if [ -z "${JTREGEXE+x}" ]; then 48950 # The variable is not set by user, try to locate tool using the code snippet 48951 for ac_prog in jtreg 48952 do 48953 # Extract the first word of "$ac_prog", so it can be a program name with args. 48954 set dummy $ac_prog; ac_word=$2 48955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48956 $as_echo_n "checking for $ac_word... " >&6; } 48957 if ${ac_cv_path_JTREGEXE+:} false; then : 48958 $as_echo_n "(cached) " >&6 48959 else 48960 case $JTREGEXE in 48961 [\\/]* | ?:[\\/]*) 48962 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48963 ;; 48964 *) 48965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48966 for as_dir in $PATH 48967 do 48968 IFS=$as_save_IFS 48969 test -z "$as_dir" && as_dir=. 48970 for ac_exec_ext in '' $ac_executable_extensions; do 48971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48972 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48974 break 2 48975 fi 48976 done 48977 done 48978 IFS=$as_save_IFS 48979 48980 ;; 48981 esac 48982 fi 48983 JTREGEXE=$ac_cv_path_JTREGEXE 48984 if test -n "$JTREGEXE"; then 48985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48986 $as_echo "$JTREGEXE" >&6; } 48987 else 48988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48989 $as_echo "no" >&6; } 48990 fi 48991 48992 48993 test -n "$JTREGEXE" && break 48994 done 48995 48996 else 48997 # The variable is set, but is it from the command line or the environment? 48998 48999 # Try to remove the string !JTREGEXE! from our list. 49000 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 49001 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 49002 # If it failed, the variable was not from the command line. Ignore it, 49003 # but warn the user (except for BASH, which is always set by the calling BASH). 49004 if test "xJTREGEXE" != xBASH; then 49005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 49006 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 49007 fi 49008 # Try to locate tool using the code snippet 49009 for ac_prog in jtreg 49010 do 49011 # Extract the first word of "$ac_prog", so it can be a program name with args. 49012 set dummy $ac_prog; ac_word=$2 49013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49014 $as_echo_n "checking for $ac_word... " >&6; } 49015 if ${ac_cv_path_JTREGEXE+:} false; then : 49016 $as_echo_n "(cached) " >&6 49017 else 49018 case $JTREGEXE in 49019 [\\/]* | ?:[\\/]*) 49020 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49021 ;; 49022 *) 49023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49024 for as_dir in $PATH 49025 do 49026 IFS=$as_save_IFS 49027 test -z "$as_dir" && as_dir=. 49028 for ac_exec_ext in '' $ac_executable_extensions; do 49029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49030 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49032 break 2 49033 fi 49034 done 49035 done 49036 IFS=$as_save_IFS 49037 49038 ;; 49039 esac 49040 fi 49041 JTREGEXE=$ac_cv_path_JTREGEXE 49042 if test -n "$JTREGEXE"; then 49043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49044 $as_echo "$JTREGEXE" >&6; } 49045 else 49046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49047 $as_echo "no" >&6; } 49048 fi 49049 49050 49051 test -n "$JTREGEXE" && break 49052 done 49053 49054 else 49055 # If it succeeded, then it was overridden by the user. We will use it 49056 # for the tool. 49057 49058 # First remove it from the list of overridden variables, so we can test 49059 # for unknown variables in the end. 49060 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 49061 49062 # Check if we try to supply an empty value 49063 if test "x$JTREGEXE" = x; then 49064 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 49065 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 49066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 49067 $as_echo_n "checking for JTREGEXE... " >&6; } 49068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 49069 $as_echo "disabled" >&6; } 49070 else 49071 # Check if the provided tool contains a complete path. 49072 tool_specified="$JTREGEXE" 49073 tool_basename="${tool_specified##*/}" 49074 if test "x$tool_basename" = "x$tool_specified"; then 49075 # A command without a complete path is provided, search $PATH. 49076 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 49077 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 49078 # Extract the first word of "$tool_basename", so it can be a program name with args. 49079 set dummy $tool_basename; ac_word=$2 49080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49081 $as_echo_n "checking for $ac_word... " >&6; } 49082 if ${ac_cv_path_JTREGEXE+:} false; then : 49083 $as_echo_n "(cached) " >&6 49084 else 49085 case $JTREGEXE in 49086 [\\/]* | ?:[\\/]*) 49087 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49088 ;; 49089 *) 49090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49091 for as_dir in $PATH 49092 do 49093 IFS=$as_save_IFS 49094 test -z "$as_dir" && as_dir=. 49095 for ac_exec_ext in '' $ac_executable_extensions; do 49096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49097 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49099 break 2 49100 fi 49101 done 49102 done 49103 IFS=$as_save_IFS 49104 49105 ;; 49106 esac 49107 fi 49108 JTREGEXE=$ac_cv_path_JTREGEXE 49109 if test -n "$JTREGEXE"; then 49110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49111 $as_echo "$JTREGEXE" >&6; } 49112 else 49113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49114 $as_echo "no" >&6; } 49115 fi 49116 49117 49118 if test "x$JTREGEXE" = x; then 49119 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 49120 fi 49121 else 49122 # Otherwise we believe it is a complete path. Use it as it is. 49123 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 49124 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 49125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 49126 $as_echo_n "checking for JTREGEXE... " >&6; } 49127 if test ! -x "$tool_specified"; then 49128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 49129 $as_echo "not found" >&6; } 49130 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 49131 fi 49132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 49133 $as_echo "$tool_specified" >&6; } 49134 fi 49135 fi 49136 fi 49137 49138 fi 49139 49140 49141 if test "x$JTREGEXE" != x; then 49142 # That's good, now try to derive JT_HOME 49143 JT_HOME=`(cd $($DIRNAME $JTREGEXE)/.. && pwd)` 49144 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&5 49146 $as_echo "$as_me: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&2;} 49147 JT_HOME= 49148 JTREGEXE= 49149 else 49150 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using jtreg executable in path" >&5 49151 $as_echo "$as_me: Located jtreg using jtreg executable in path" >&6;} 49152 fi 49153 fi 49154 fi 49155 49156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49157 $as_echo_n "checking for jtreg test harness... " >&6; } 49158 if test "x$JT_HOME" != x; then 49159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 49160 $as_echo "$JT_HOME" >&6; } 49161 else 49162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found" >&5 49163 $as_echo "no, not found" >&6; } 49164 49165 if test "x$with_jtreg" = xyes; then 49166 as_fn_error $? "--with-jtreg was specified, but no jtreg found." "$LINENO" 5 49167 fi 49168 fi 49169 fi 49170 49171 49172 # Only process if variable expands to non-empty 49173 49174 if test "x$JTREGEXE" != x; then 49175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49176 49177 # First separate the path from the arguments. This will split at the first 49178 # space. 49179 complete="$JTREGEXE" 49180 path="${complete%% *}" 49181 tmp="$complete EOL" 49182 arguments="${tmp#* }" 49183 49184 # Input might be given as Windows format, start by converting to 49185 # unix format. 49186 new_path=`$CYGPATH -u "$path"` 49187 49188 # Now try to locate executable using which 49189 new_path=`$WHICH "$new_path" 2> /dev/null` 49190 # bat and cmd files are not always considered executable in cygwin causing which 49191 # to not find them 49192 if test "x$new_path" = x \ 49193 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 49194 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 49195 new_path=`$CYGPATH -u "$path"` 49196 fi 49197 if test "x$new_path" = x; then 49198 # Oops. Which didn't find the executable. 49199 # The splitting of arguments from the executable at a space might have been incorrect, 49200 # since paths with space are more likely in Windows. Give it another try with the whole 49201 # argument. 49202 path="$complete" 49203 arguments="EOL" 49204 new_path=`$CYGPATH -u "$path"` 49205 new_path=`$WHICH "$new_path" 2> /dev/null` 49206 # bat and cmd files are not always considered executable in cygwin causing which 49207 # to not find them 49208 if test "x$new_path" = x \ 49209 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 49210 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 49211 new_path=`$CYGPATH -u "$path"` 49212 fi 49213 if test "x$new_path" = x; then 49214 # It's still not found. Now this is an unrecoverable error. 49215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 49216 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 49217 has_space=`$ECHO "$complete" | $GREP " "` 49218 if test "x$has_space" != x; then 49219 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 49220 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 49221 fi 49222 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49223 fi 49224 fi 49225 49226 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49227 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49228 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49229 # "foo.exe" is OK but "foo" is an error. 49230 # 49231 # This test is therefore slightly more accurate than "test -f" to check for file presence. 49232 # It is also a way to make sure we got the proper file name for the real test later on. 49233 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49234 if test "x$test_shortpath" = x; then 49235 # Short path failed, file does not exist as specified. 49236 # Try adding .exe or .cmd 49237 if test -f "${new_path}.exe"; then 49238 input_to_shortpath="${new_path}.exe" 49239 elif test -f "${new_path}.cmd"; then 49240 input_to_shortpath="${new_path}.cmd" 49241 else 49242 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&5 49243 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&6;} 49244 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 49245 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 49246 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49247 fi 49248 else 49249 input_to_shortpath="$new_path" 49250 fi 49251 49252 # Call helper function which possibly converts this using DOS-style short mode. 49253 # If so, the updated path is stored in $new_path. 49254 new_path="$input_to_shortpath" 49255 49256 input_path="$input_to_shortpath" 49257 # Check if we need to convert this using DOS-style short mode. If the path 49258 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49259 # take no chances and rewrite it. 49260 # Note: m4 eats our [], so we need to use [ and ] instead. 49261 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49262 if test "x$has_forbidden_chars" != x; then 49263 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49264 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49265 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49266 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49267 # Going to short mode and back again did indeed matter. Since short mode is 49268 # case insensitive, let's make it lowercase to improve readability. 49269 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49270 # Now convert it back to Unix-style (cygpath) 49271 input_path=`$CYGPATH -u "$shortmode_path"` 49272 new_path="$input_path" 49273 fi 49274 fi 49275 49276 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49277 if test "x$test_cygdrive_prefix" = x; then 49278 # As a simple fix, exclude /usr/bin since it's not a real path. 49279 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 49280 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49281 # a path prefixed by /cygdrive for fixpath to work. 49282 new_path="$CYGWIN_ROOT_PATH$input_path" 49283 fi 49284 fi 49285 49286 # remove trailing .exe if any 49287 new_path="${new_path/%.exe/}" 49288 49289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49290 49291 # First separate the path from the arguments. This will split at the first 49292 # space. 49293 complete="$JTREGEXE" 49294 path="${complete%% *}" 49295 tmp="$complete EOL" 49296 arguments="${tmp#* }" 49297 49298 # Input might be given as Windows format, start by converting to 49299 # unix format. 49300 new_path="$path" 49301 49302 windows_path="$new_path" 49303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49304 unix_path=`$CYGPATH -u "$windows_path"` 49305 new_path="$unix_path" 49306 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49307 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49308 new_path="$unix_path" 49309 fi 49310 49311 49312 # Now try to locate executable using which 49313 new_path=`$WHICH "$new_path" 2> /dev/null` 49314 49315 if test "x$new_path" = x; then 49316 # Oops. Which didn't find the executable. 49317 # The splitting of arguments from the executable at a space might have been incorrect, 49318 # since paths with space are more likely in Windows. Give it another try with the whole 49319 # argument. 49320 path="$complete" 49321 arguments="EOL" 49322 new_path="$path" 49323 49324 windows_path="$new_path" 49325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49326 unix_path=`$CYGPATH -u "$windows_path"` 49327 new_path="$unix_path" 49328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49330 new_path="$unix_path" 49331 fi 49332 49333 49334 new_path=`$WHICH "$new_path" 2> /dev/null` 49335 # bat and cmd files are not always considered executable in MSYS causing which 49336 # to not find them 49337 if test "x$new_path" = x \ 49338 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 49339 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 49340 new_path="$path" 49341 49342 windows_path="$new_path" 49343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49344 unix_path=`$CYGPATH -u "$windows_path"` 49345 new_path="$unix_path" 49346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49348 new_path="$unix_path" 49349 fi 49350 49351 fi 49352 49353 if test "x$new_path" = x; then 49354 # It's still not found. Now this is an unrecoverable error. 49355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 49356 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 49357 has_space=`$ECHO "$complete" | $GREP " "` 49358 if test "x$has_space" != x; then 49359 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 49360 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 49361 fi 49362 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49363 fi 49364 fi 49365 49366 # Now new_path has a complete unix path to the binary 49367 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 49368 # Keep paths in /bin as-is, but remove trailing .exe if any 49369 new_path="${new_path/%.exe/}" 49370 # Do not save /bin paths to all_fixpath_prefixes! 49371 else 49372 # Not in mixed or Windows style, start by that. 49373 new_path=`cmd //c echo $new_path` 49374 49375 input_path="$new_path" 49376 # Check if we need to convert this using DOS-style short mode. If the path 49377 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49378 # take no chances and rewrite it. 49379 # Note: m4 eats our [], so we need to use [ and ] instead. 49380 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49381 if test "x$has_forbidden_chars" != x; then 49382 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49383 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49384 fi 49385 49386 # Output is in $new_path 49387 49388 windows_path="$new_path" 49389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49390 unix_path=`$CYGPATH -u "$windows_path"` 49391 new_path="$unix_path" 49392 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49393 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49394 new_path="$unix_path" 49395 fi 49396 49397 # remove trailing .exe if any 49398 new_path="${new_path/%.exe/}" 49399 49400 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49401 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49402 fi 49403 49404 else 49405 # We're on a unix platform. Hooray! :) 49406 # First separate the path from the arguments. This will split at the first 49407 # space. 49408 complete="$JTREGEXE" 49409 path="${complete%% *}" 49410 tmp="$complete EOL" 49411 arguments="${tmp#* }" 49412 49413 # Cannot rely on the command "which" here since it doesn't always work. 49414 is_absolute_path=`$ECHO "$path" | $GREP ^/` 49415 if test -z "$is_absolute_path"; then 49416 # Path to executable is not absolute. Find it. 49417 IFS_save="$IFS" 49418 IFS=: 49419 for p in $PATH; do 49420 if test -f "$p/$path" && test -x "$p/$path"; then 49421 new_path="$p/$path" 49422 break 49423 fi 49424 done 49425 IFS="$IFS_save" 49426 else 49427 # This is an absolute path, we can use it without further modifications. 49428 new_path="$path" 49429 fi 49430 49431 if test "x$new_path" = x; then 49432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 49433 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 49434 has_space=`$ECHO "$complete" | $GREP " "` 49435 if test "x$has_space" != x; then 49436 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 49437 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 49438 fi 49439 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 49440 fi 49441 fi 49442 49443 # Now join together the path and the arguments once again 49444 if test "x$arguments" != xEOL; then 49445 new_complete="$new_path ${arguments% *}" 49446 else 49447 new_complete="$new_path" 49448 fi 49449 49450 if test "x$complete" != "x$new_complete"; then 49451 JTREGEXE="$new_complete" 49452 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JTREGEXE to \"$new_complete\"" >&5 49453 $as_echo "$as_me: Rewriting JTREGEXE to \"$new_complete\"" >&6;} 49454 fi 49455 fi 49456 49457 49458 # Only process if variable expands to non-empty 49459 49460 if test "x$JT_HOME" != x; then 49461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49462 49463 # Input might be given as Windows format, start by converting to 49464 # unix format. 49465 path="$JT_HOME" 49466 new_path=`$CYGPATH -u "$path"` 49467 49468 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49469 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49470 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49471 # "foo.exe" is OK but "foo" is an error. 49472 # 49473 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49474 # It is also a way to make sure we got the proper file name for the real test later on. 49475 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49476 if test "x$test_shortpath" = x; then 49477 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49478 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49479 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 49480 fi 49481 49482 # Call helper function which possibly converts this using DOS-style short mode. 49483 # If so, the updated path is stored in $new_path. 49484 49485 input_path="$new_path" 49486 # Check if we need to convert this using DOS-style short mode. If the path 49487 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49488 # take no chances and rewrite it. 49489 # Note: m4 eats our [], so we need to use [ and ] instead. 49490 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49491 if test "x$has_forbidden_chars" != x; then 49492 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49493 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49494 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49495 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49496 # Going to short mode and back again did indeed matter. Since short mode is 49497 # case insensitive, let's make it lowercase to improve readability. 49498 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49499 # Now convert it back to Unix-style (cygpath) 49500 input_path=`$CYGPATH -u "$shortmode_path"` 49501 new_path="$input_path" 49502 fi 49503 fi 49504 49505 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49506 if test "x$test_cygdrive_prefix" = x; then 49507 # As a simple fix, exclude /usr/bin since it's not a real path. 49508 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49509 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49510 # a path prefixed by /cygdrive for fixpath to work. 49511 new_path="$CYGWIN_ROOT_PATH$input_path" 49512 fi 49513 fi 49514 49515 49516 if test "x$path" != "x$new_path"; then 49517 JT_HOME="$new_path" 49518 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49519 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49520 fi 49521 49522 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49523 49524 path="$JT_HOME" 49525 has_colon=`$ECHO $path | $GREP ^.:` 49526 new_path="$path" 49527 if test "x$has_colon" = x; then 49528 # Not in mixed or Windows style, start by that. 49529 new_path=`cmd //c echo $path` 49530 fi 49531 49532 49533 input_path="$new_path" 49534 # Check if we need to convert this using DOS-style short mode. If the path 49535 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49536 # take no chances and rewrite it. 49537 # Note: m4 eats our [], so we need to use [ and ] instead. 49538 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49539 if test "x$has_forbidden_chars" != x; then 49540 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49541 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49542 fi 49543 49544 49545 windows_path="$new_path" 49546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49547 unix_path=`$CYGPATH -u "$windows_path"` 49548 new_path="$unix_path" 49549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49550 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49551 new_path="$unix_path" 49552 fi 49553 49554 if test "x$path" != "x$new_path"; then 49555 JT_HOME="$new_path" 49556 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49557 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49558 fi 49559 49560 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49561 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49562 49563 else 49564 # We're on a unix platform. Hooray! :) 49565 path="$JT_HOME" 49566 has_space=`$ECHO "$path" | $GREP " "` 49567 if test "x$has_space" != x; then 49568 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49569 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49570 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49571 fi 49572 49573 # Use eval to expand a potential ~ 49574 eval path="$path" 49575 if test ! -f "$path" && test ! -d "$path"; then 49576 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 49577 fi 49578 49579 if test -d "$path"; then 49580 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 49581 else 49582 dir="`$DIRNAME "$path"`" 49583 base="`$BASENAME "$path"`" 49584 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 49585 fi 49586 fi 49587 fi 49588 49589 49590 49591 49592 49593 # Setup Jib dependency tool 49594 49595 49596 # Check whether --with-jib was given. 49597 if test "${with_jib+set}" = set; then : 49598 withval=$with_jib; 49599 fi 49600 49601 49602 if test "x$with_jib" = xno || test "x$with_jib" = x; then 49603 # jib disabled 49604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 49605 $as_echo_n "checking for jib... " >&6; } 49606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49607 $as_echo "no" >&6; } 49608 elif test "x$with_jib" = xyes; then 49609 as_fn_error $? "Must supply a value to --with-jib" "$LINENO" 5 49610 else 49611 JIB_HOME="${with_jib}" 49612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 49613 $as_echo_n "checking for jib... " >&6; } 49614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JIB_HOME}" >&5 49615 $as_echo "${JIB_HOME}" >&6; } 49616 if test ! -d "${JIB_HOME}"; then 49617 as_fn_error $? "--with-jib must be a directory" "$LINENO" 5 49618 fi 49619 JIB_JAR=$(ls ${JIB_HOME}/lib/jib-*.jar) 49620 if test ! -f "${JIB_JAR}"; then 49621 as_fn_error $? "Could not find jib jar file in ${JIB_HOME}" "$LINENO" 5 49622 fi 49623 fi 49624 49625 49626 49627 49628 49629 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 49630 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 49631 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 49632 # commands produced by the link step (currently AIX only) 49633 if test "x$TOOLCHAIN_TYPE" = xxlc; then 49634 COMPILER_TARGET_BITS_FLAG="-q" 49635 COMPILER_COMMAND_FILE_FLAG="-f" 49636 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 49637 else 49638 COMPILER_TARGET_BITS_FLAG="-m" 49639 COMPILER_COMMAND_FILE_FLAG="@" 49640 COMPILER_BINDCMD_FILE_FLAG="" 49641 49642 # The solstudio linker does not support @-files. 49643 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49644 COMPILER_COMMAND_FILE_FLAG= 49645 fi 49646 49647 # Check if @file is supported by gcc 49648 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 49650 $as_echo_n "checking if @file is supported by gcc... " >&6; } 49651 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 49652 $ECHO "" "--version" > command.file 49653 if $CXX @command.file 2>&5 >&5; then 49654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49655 $as_echo "yes" >&6; } 49656 COMPILER_COMMAND_FILE_FLAG="@" 49657 else 49658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49659 $as_echo "no" >&6; } 49660 COMPILER_COMMAND_FILE_FLAG= 49661 fi 49662 $RM command.file 49663 fi 49664 fi 49665 49666 49667 49668 49669 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 49670 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49671 ARFLAGS="-r" 49672 elif test "x$OPENJDK_TARGET_OS" = xaix; then 49673 ARFLAGS="-X64" 49674 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 49675 # lib.exe is used as AR to create static libraries. 49676 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 49677 else 49678 ARFLAGS="" 49679 fi 49680 49681 49682 ## Setup strip. 49683 # FIXME: should this really be per platform, or should it be per toolchain type? 49684 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 49685 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 49686 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49687 STRIPFLAGS="-g" 49688 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 49689 STRIPFLAGS="-x" 49690 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 49691 STRIPFLAGS="-S" 49692 elif test "x$OPENJDK_TARGET_OS" = xaix; then 49693 STRIPFLAGS="-X32_64" 49694 fi 49695 49696 49697 49698 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49699 CC_OUT_OPTION=-Fo 49700 EXE_OUT_OPTION=-out: 49701 LD_OUT_OPTION=-out: 49702 AR_OUT_OPTION=-out: 49703 else 49704 # The option used to specify the target .o,.a or .so file. 49705 # When compiling, how to specify the to be created object file. 49706 CC_OUT_OPTION='-o$(SPACE)' 49707 # When linking, how to specify the to be created executable. 49708 EXE_OUT_OPTION='-o$(SPACE)' 49709 # When linking, how to specify the to be created dynamically linkable library. 49710 LD_OUT_OPTION='-o$(SPACE)' 49711 # When archiving, how to specify the to be create static archive for object files. 49712 AR_OUT_OPTION='rcs$(SPACE)' 49713 fi 49714 49715 49716 49717 49718 49719 # On Windows, we need to set RC flags. 49720 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49721 RC_FLAGS="-nologo -l0x409" 49722 JVM_RCFLAGS="-nologo" 49723 if test "x$DEBUG_LEVEL" = xrelease; then 49724 RC_FLAGS="$RC_FLAGS -DNDEBUG" 49725 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 49726 fi 49727 49728 # The version variables used to create RC_FLAGS may be overridden 49729 # in a custom configure script, or possibly the command line. 49730 # Let those variables be expanded at make time in spec.gmk. 49731 # The \$ are escaped to the shell, and the $(...) variables 49732 # are evaluated by make. 49733 RC_FLAGS="$RC_FLAGS \ 49734 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 49735 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 49736 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 49737 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 49738 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 49739 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 49740 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 49741 49742 JVM_RCFLAGS="$JVM_RCFLAGS \ 49743 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 49744 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 49745 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 49746 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 49747 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 49748 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 49749 -D\"HS_FNAME=jvm.dll\" \ 49750 -D\"HS_INTERNAL_NAME=jvm\"" 49751 fi 49752 49753 49754 49755 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49756 # silence copyright notice and other headers. 49757 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 49758 fi 49759 49760 49761 # Now we can test some aspects on the target using configure macros. 49762 49763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 49764 $as_echo_n "checking for ANSI C header files... " >&6; } 49765 if ${ac_cv_header_stdc+:} false; then : 49766 $as_echo_n "(cached) " >&6 49767 else 49768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49769 /* end confdefs.h. */ 49770 #include <stdlib.h> 49771 #include <stdarg.h> 49772 #include <string.h> 49773 #include <float.h> 49774 49775 int 49776 main () 49777 { 49778 49779 ; 49780 return 0; 49781 } 49782 _ACEOF 49783 if ac_fn_cxx_try_compile "$LINENO"; then : 49784 ac_cv_header_stdc=yes 49785 else 49786 ac_cv_header_stdc=no 49787 fi 49788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49789 49790 if test $ac_cv_header_stdc = yes; then 49791 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 49792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49793 /* end confdefs.h. */ 49794 #include <string.h> 49795 49796 _ACEOF 49797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49798 $EGREP "memchr" >/dev/null 2>&1; then : 49799 49800 else 49801 ac_cv_header_stdc=no 49802 fi 49803 rm -f conftest* 49804 49805 fi 49806 49807 if test $ac_cv_header_stdc = yes; then 49808 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 49809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49810 /* end confdefs.h. */ 49811 #include <stdlib.h> 49812 49813 _ACEOF 49814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 49815 $EGREP "free" >/dev/null 2>&1; then : 49816 49817 else 49818 ac_cv_header_stdc=no 49819 fi 49820 rm -f conftest* 49821 49822 fi 49823 49824 if test $ac_cv_header_stdc = yes; then 49825 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 49826 if test "$cross_compiling" = yes; then : 49827 : 49828 else 49829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49830 /* end confdefs.h. */ 49831 #include <ctype.h> 49832 #include <stdlib.h> 49833 #if ((' ' & 0x0FF) == 0x020) 49834 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 49835 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 49836 #else 49837 # define ISLOWER(c) \ 49838 (('a' <= (c) && (c) <= 'i') \ 49839 || ('j' <= (c) && (c) <= 'r') \ 49840 || ('s' <= (c) && (c) <= 'z')) 49841 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 49842 #endif 49843 49844 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 49845 int 49846 main () 49847 { 49848 int i; 49849 for (i = 0; i < 256; i++) 49850 if (XOR (islower (i), ISLOWER (i)) 49851 || toupper (i) != TOUPPER (i)) 49852 return 2; 49853 return 0; 49854 } 49855 _ACEOF 49856 if ac_fn_cxx_try_run "$LINENO"; then : 49857 49858 else 49859 ac_cv_header_stdc=no 49860 fi 49861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 49862 conftest.$ac_objext conftest.beam conftest.$ac_ext 49863 fi 49864 49865 fi 49866 fi 49867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 49868 $as_echo "$ac_cv_header_stdc" >&6; } 49869 if test $ac_cv_header_stdc = yes; then 49870 49871 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 49872 49873 fi 49874 49875 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 49876 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 49877 inttypes.h stdint.h unistd.h 49878 do : 49879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 49880 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 49881 " 49882 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 49883 cat >>confdefs.h <<_ACEOF 49884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 49885 _ACEOF 49886 49887 fi 49888 49889 done 49890 49891 49892 49893 ############################################################################### 49894 # 49895 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 49896 # (The JVM can use 32 or 64 bit Java pointers but that decision 49897 # is made at runtime.) 49898 # 49899 49900 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 49901 # Always specify -m flag on Solaris 49902 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 49903 49904 # When we add flags to the "official" CFLAGS etc, we need to 49905 # keep track of these additions in ADDED_CFLAGS etc. These 49906 # will later be checked to make sure only controlled additions 49907 # have been made to CFLAGS etc. 49908 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49909 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49910 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49911 49912 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 49913 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 49914 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 49915 49916 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 49917 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 49918 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 49919 49920 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 49921 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 49922 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 49923 49924 elif test "x$COMPILE_TYPE" = xreduced; then 49925 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 49926 # Specify -m if running reduced on unix platforms 49927 49928 # When we add flags to the "official" CFLAGS etc, we need to 49929 # keep track of these additions in ADDED_CFLAGS etc. These 49930 # will later be checked to make sure only controlled additions 49931 # have been made to CFLAGS etc. 49932 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49933 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49934 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49935 49936 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 49937 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 49938 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 49939 49940 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 49941 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 49942 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 49943 49944 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 49945 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 49946 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 49947 49948 fi 49949 fi 49950 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49951 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49952 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49953 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 49954 fi 49955 49956 # Make compilation sanity check 49957 for ac_header in stdio.h 49958 do : 49959 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 49960 if test "x$ac_cv_header_stdio_h" = xyes; then : 49961 cat >>confdefs.h <<_ACEOF 49962 #define HAVE_STDIO_H 1 49963 _ACEOF 49964 49965 else 49966 49967 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 49968 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 49969 if test "x$COMPILE_TYPE" = xreduced; then 49970 49971 # Print a helpful message on how to acquire the necessary build dependency. 49972 # reduced is the help tag: freetype, cups, alsa etc 49973 MISSING_DEPENDENCY=reduced 49974 49975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49976 cygwin_help $MISSING_DEPENDENCY 49977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49978 msys_help $MISSING_DEPENDENCY 49979 else 49980 PKGHANDLER_COMMAND= 49981 49982 case $PKGHANDLER in 49983 apt-get) 49984 apt_help $MISSING_DEPENDENCY ;; 49985 yum) 49986 yum_help $MISSING_DEPENDENCY ;; 49987 brew) 49988 brew_help $MISSING_DEPENDENCY ;; 49989 port) 49990 port_help $MISSING_DEPENDENCY ;; 49991 pkgutil) 49992 pkgutil_help $MISSING_DEPENDENCY ;; 49993 pkgadd) 49994 pkgadd_help $MISSING_DEPENDENCY ;; 49995 esac 49996 49997 if test "x$PKGHANDLER_COMMAND" != x; then 49998 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 49999 fi 50000 fi 50001 50002 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 50003 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 50004 elif test "x$COMPILE_TYPE" = xcross; then 50005 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 50006 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 50007 fi 50008 as_fn_error $? "Cannot continue." "$LINENO" 5 50009 50010 fi 50011 50012 done 50013 50014 50015 # The cast to long int works around a bug in the HP C Compiler 50016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 50017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 50018 # This bug is HP SR number 8606223364. 50019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 50020 $as_echo_n "checking size of int *... " >&6; } 50021 if ${ac_cv_sizeof_int_p+:} false; then : 50022 $as_echo_n "(cached) " >&6 50023 else 50024 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 50025 50026 else 50027 if test "$ac_cv_type_int_p" = yes; then 50028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50030 as_fn_error 77 "cannot compute sizeof (int *) 50031 See \`config.log' for more details" "$LINENO" 5; } 50032 else 50033 ac_cv_sizeof_int_p=0 50034 fi 50035 fi 50036 50037 fi 50038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 50039 $as_echo "$ac_cv_sizeof_int_p" >&6; } 50040 50041 50042 50043 cat >>confdefs.h <<_ACEOF 50044 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 50045 _ACEOF 50046 50047 50048 50049 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 50050 if test "x$ac_cv_sizeof_int_p" = x; then 50051 # The test failed, lets stick to the assumed value. 50052 { $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 50053 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 50054 else 50055 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 50056 50057 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 50058 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 50059 # Let's try to implicitely set the compilers target architecture and retry the test 50060 { $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 50061 $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;} 50062 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 50063 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 50064 50065 # When we add flags to the "official" CFLAGS etc, we need to 50066 # keep track of these additions in ADDED_CFLAGS etc. These 50067 # will later be checked to make sure only controlled additions 50068 # have been made to CFLAGS etc. 50069 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50070 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50071 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50072 50073 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50074 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50075 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50076 50077 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50078 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50079 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50080 50081 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50082 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50083 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50084 50085 50086 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 50087 unset ac_cv_sizeof_int_p 50088 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 50089 cat >>confdefs.h <<_ACEOF 50090 #undef SIZEOF_INT_P 50091 _ACEOF 50092 50093 # The cast to long int works around a bug in the HP C Compiler 50094 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 50095 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 50096 # This bug is HP SR number 8606223364. 50097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 50098 $as_echo_n "checking size of int *... " >&6; } 50099 if ${ac_cv_sizeof_int_p+:} false; then : 50100 $as_echo_n "(cached) " >&6 50101 else 50102 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 50103 50104 else 50105 if test "$ac_cv_type_int_p" = yes; then 50106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50108 as_fn_error 77 "cannot compute sizeof (int *) 50109 See \`config.log' for more details" "$LINENO" 5; } 50110 else 50111 ac_cv_sizeof_int_p=0 50112 fi 50113 fi 50114 50115 fi 50116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 50117 $as_echo "$ac_cv_sizeof_int_p" >&6; } 50118 50119 50120 50121 cat >>confdefs.h <<_ACEOF 50122 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 50123 _ACEOF 50124 50125 50126 50127 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 50128 50129 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 50130 { $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 50131 $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;} 50132 if test "x$COMPILE_TYPE" = xreduced; then 50133 50134 # Print a helpful message on how to acquire the necessary build dependency. 50135 # reduced is the help tag: freetype, cups, alsa etc 50136 MISSING_DEPENDENCY=reduced 50137 50138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50139 cygwin_help $MISSING_DEPENDENCY 50140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50141 msys_help $MISSING_DEPENDENCY 50142 else 50143 PKGHANDLER_COMMAND= 50144 50145 case $PKGHANDLER in 50146 apt-get) 50147 apt_help $MISSING_DEPENDENCY ;; 50148 yum) 50149 yum_help $MISSING_DEPENDENCY ;; 50150 brew) 50151 brew_help $MISSING_DEPENDENCY ;; 50152 port) 50153 port_help $MISSING_DEPENDENCY ;; 50154 pkgutil) 50155 pkgutil_help $MISSING_DEPENDENCY ;; 50156 pkgadd) 50157 pkgadd_help $MISSING_DEPENDENCY ;; 50158 esac 50159 50160 if test "x$PKGHANDLER_COMMAND" != x; then 50161 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 50162 fi 50163 fi 50164 50165 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 50166 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 50167 elif test "x$COMPILE_TYPE" = xcross; then 50168 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 50169 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 50170 fi 50171 as_fn_error $? "Cannot continue." "$LINENO" 5 50172 fi 50173 fi 50174 fi 50175 50176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 50177 $as_echo_n "checking for target address size... " >&6; } 50178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 50179 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 50180 50181 50182 ############################################################################### 50183 # 50184 # Is the target little of big endian? 50185 # 50186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 50187 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 50188 if ${ac_cv_c_bigendian+:} false; then : 50189 $as_echo_n "(cached) " >&6 50190 else 50191 ac_cv_c_bigendian=unknown 50192 # See if we're dealing with a universal compiler. 50193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50194 /* end confdefs.h. */ 50195 #ifndef __APPLE_CC__ 50196 not a universal capable compiler 50197 #endif 50198 typedef int dummy; 50199 50200 _ACEOF 50201 if ac_fn_cxx_try_compile "$LINENO"; then : 50202 50203 # Check for potential -arch flags. It is not universal unless 50204 # there are at least two -arch flags with different values. 50205 ac_arch= 50206 ac_prev= 50207 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 50208 if test -n "$ac_prev"; then 50209 case $ac_word in 50210 i?86 | x86_64 | ppc | ppc64) 50211 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 50212 ac_arch=$ac_word 50213 else 50214 ac_cv_c_bigendian=universal 50215 break 50216 fi 50217 ;; 50218 esac 50219 ac_prev= 50220 elif test "x$ac_word" = "x-arch"; then 50221 ac_prev=arch 50222 fi 50223 done 50224 fi 50225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50226 if test $ac_cv_c_bigendian = unknown; then 50227 # See if sys/param.h defines the BYTE_ORDER macro. 50228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50229 /* end confdefs.h. */ 50230 #include <sys/types.h> 50231 #include <sys/param.h> 50232 50233 int 50234 main () 50235 { 50236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 50237 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 50238 && LITTLE_ENDIAN) 50239 bogus endian macros 50240 #endif 50241 50242 ; 50243 return 0; 50244 } 50245 _ACEOF 50246 if ac_fn_cxx_try_compile "$LINENO"; then : 50247 # It does; now see whether it defined to BIG_ENDIAN or not. 50248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50249 /* end confdefs.h. */ 50250 #include <sys/types.h> 50251 #include <sys/param.h> 50252 50253 int 50254 main () 50255 { 50256 #if BYTE_ORDER != BIG_ENDIAN 50257 not big endian 50258 #endif 50259 50260 ; 50261 return 0; 50262 } 50263 _ACEOF 50264 if ac_fn_cxx_try_compile "$LINENO"; then : 50265 ac_cv_c_bigendian=yes 50266 else 50267 ac_cv_c_bigendian=no 50268 fi 50269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50270 fi 50271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50272 fi 50273 if test $ac_cv_c_bigendian = unknown; then 50274 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 50275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50276 /* end confdefs.h. */ 50277 #include <limits.h> 50278 50279 int 50280 main () 50281 { 50282 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 50283 bogus endian macros 50284 #endif 50285 50286 ; 50287 return 0; 50288 } 50289 _ACEOF 50290 if ac_fn_cxx_try_compile "$LINENO"; then : 50291 # It does; now see whether it defined to _BIG_ENDIAN or not. 50292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50293 /* end confdefs.h. */ 50294 #include <limits.h> 50295 50296 int 50297 main () 50298 { 50299 #ifndef _BIG_ENDIAN 50300 not big endian 50301 #endif 50302 50303 ; 50304 return 0; 50305 } 50306 _ACEOF 50307 if ac_fn_cxx_try_compile "$LINENO"; then : 50308 ac_cv_c_bigendian=yes 50309 else 50310 ac_cv_c_bigendian=no 50311 fi 50312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50313 fi 50314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50315 fi 50316 if test $ac_cv_c_bigendian = unknown; then 50317 # Compile a test program. 50318 if test "$cross_compiling" = yes; then : 50319 # Try to guess by grepping values from an object file. 50320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50321 /* end confdefs.h. */ 50322 short int ascii_mm[] = 50323 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 50324 short int ascii_ii[] = 50325 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 50326 int use_ascii (int i) { 50327 return ascii_mm[i] + ascii_ii[i]; 50328 } 50329 short int ebcdic_ii[] = 50330 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 50331 short int ebcdic_mm[] = 50332 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 50333 int use_ebcdic (int i) { 50334 return ebcdic_mm[i] + ebcdic_ii[i]; 50335 } 50336 extern int foo; 50337 50338 int 50339 main () 50340 { 50341 return use_ascii (foo) == use_ebcdic (foo); 50342 ; 50343 return 0; 50344 } 50345 _ACEOF 50346 if ac_fn_cxx_try_compile "$LINENO"; then : 50347 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 50348 ac_cv_c_bigendian=yes 50349 fi 50350 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 50351 if test "$ac_cv_c_bigendian" = unknown; then 50352 ac_cv_c_bigendian=no 50353 else 50354 # finding both strings is unlikely to happen, but who knows? 50355 ac_cv_c_bigendian=unknown 50356 fi 50357 fi 50358 fi 50359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50360 else 50361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50362 /* end confdefs.h. */ 50363 $ac_includes_default 50364 int 50365 main () 50366 { 50367 50368 /* Are we little or big endian? From Harbison&Steele. */ 50369 union 50370 { 50371 long int l; 50372 char c[sizeof (long int)]; 50373 } u; 50374 u.l = 1; 50375 return u.c[sizeof (long int) - 1] == 1; 50376 50377 ; 50378 return 0; 50379 } 50380 _ACEOF 50381 if ac_fn_cxx_try_run "$LINENO"; then : 50382 ac_cv_c_bigendian=no 50383 else 50384 ac_cv_c_bigendian=yes 50385 fi 50386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 50387 conftest.$ac_objext conftest.beam conftest.$ac_ext 50388 fi 50389 50390 fi 50391 fi 50392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 50393 $as_echo "$ac_cv_c_bigendian" >&6; } 50394 case $ac_cv_c_bigendian in #( 50395 yes) 50396 ENDIAN="big";; #( 50397 no) 50398 ENDIAN="little" ;; #( 50399 universal) 50400 ENDIAN="universal_endianness" 50401 ;; #( 50402 *) 50403 ENDIAN="unknown" ;; 50404 esac 50405 50406 50407 if test "x$ENDIAN" = xuniversal_endianness; then 50408 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 50409 fi 50410 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 50411 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 50412 fi 50413 50414 50415 # Configure flags for the tools 50416 50417 ############################################################################### 50418 # 50419 # How to compile shared libraries. 50420 # 50421 50422 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50423 PICFLAG="-fPIC" 50424 C_FLAG_REORDER='' 50425 CXX_FLAG_REORDER='' 50426 50427 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50428 # Linking is different on MacOSX 50429 if test "x$STATIC_BUILD" = xtrue; then 50430 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 50431 else 50432 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 50433 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 50434 fi 50435 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 50436 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 50437 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 50438 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 50439 else 50440 # Default works for linux, might work on other platforms as well. 50441 SHARED_LIBRARY_FLAGS='-shared' 50442 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 50443 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 50444 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 50445 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 50446 fi 50447 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50448 C_FLAG_REORDER='' 50449 CXX_FLAG_REORDER='' 50450 50451 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50452 # Linking is different on MacOSX 50453 PICFLAG='' 50454 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 50455 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 50456 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 50457 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 50458 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 50459 50460 if test "x$STATIC_BUILD" = xfalse; then 50461 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 50462 fi 50463 else 50464 # Default works for linux, might work on other platforms as well. 50465 PICFLAG='-fPIC' 50466 SHARED_LIBRARY_FLAGS='-shared' 50467 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 50468 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 50469 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 50470 50471 # arm specific settings 50472 if test "x$OPENJDK_TARGET_CPU" = "xarm"; then 50473 # '-Wl,-z,origin' isn't used on arm. 50474 SET_SHARED_LIBRARY_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 50475 else 50476 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 50477 fi 50478 50479 fi 50480 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50481 if test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50482 PICFLAG="-xcode=pic32" 50483 else 50484 PICFLAG="-KPIC" 50485 fi 50486 C_FLAG_REORDER='-xF' 50487 CXX_FLAG_REORDER='-xF' 50488 SHARED_LIBRARY_FLAGS="-G" 50489 SET_EXECUTABLE_ORIGIN='-R\$$ORIGIN$1' 50490 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 50491 SET_SHARED_LIBRARY_NAME='-h $1' 50492 SET_SHARED_LIBRARY_MAPFILE='-M$1' 50493 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50494 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 50495 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 50496 # will have to patch this single instruction with a call to some out-of-order code which 50497 # does the load from the TOC. This is of course slow. But in that case we also would have 50498 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 50499 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 50500 # can be patched directly by the linker and does not require a jump to out-of-order code. 50501 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 50502 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 50503 # loads for accessing a global variable). But there are rumors that this may be seen as a 50504 # 'performance feature' because of improved code locality of the symbols used in a 50505 # compilation unit. 50506 PICFLAG="-qpic" 50507 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 50508 C_FLAG_REORDER='' 50509 CXX_FLAG_REORDER='' 50510 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 50511 SET_EXECUTABLE_ORIGIN="" 50512 SET_SHARED_LIBRARY_ORIGIN='' 50513 SET_SHARED_LIBRARY_NAME='' 50514 SET_SHARED_LIBRARY_MAPFILE='' 50515 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50516 PICFLAG="" 50517 C_FLAG_REORDER='' 50518 CXX_FLAG_REORDER='' 50519 SHARED_LIBRARY_FLAGS="-dll" 50520 SET_EXECUTABLE_ORIGIN='' 50521 SET_SHARED_LIBRARY_ORIGIN='' 50522 SET_SHARED_LIBRARY_NAME='' 50523 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 50524 fi 50525 50526 50527 50528 50529 50530 50531 50532 50533 50534 # The (cross) compiler is now configured, we can now test capabilities 50535 # of the target platform. 50536 50537 50538 50539 ############################################################################### 50540 # 50541 # Setup the opt flags for different compilers 50542 # and different operating systems. 50543 # 50544 50545 # FIXME: this was indirectly the old default, but just inherited. 50546 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50547 # C_FLAG_DEPS="-MMD -MF" 50548 # fi 50549 50550 # Generate make dependency files 50551 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50552 C_FLAG_DEPS="-MMD -MF" 50553 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50554 C_FLAG_DEPS="-MMD -MF" 50555 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50556 C_FLAG_DEPS="-xMMD -xMF" 50557 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50558 C_FLAG_DEPS="-qmakedep=gcc -MF" 50559 fi 50560 CXX_FLAG_DEPS="$C_FLAG_DEPS" 50561 50562 50563 50564 # Debug symbols 50565 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50566 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 50567 # reduce from default "-g2" option to save space 50568 CFLAGS_DEBUG_SYMBOLS="-g1" 50569 CXXFLAGS_DEBUG_SYMBOLS="-g1" 50570 else 50571 CFLAGS_DEBUG_SYMBOLS="-g" 50572 CXXFLAGS_DEBUG_SYMBOLS="-g" 50573 fi 50574 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50575 CFLAGS_DEBUG_SYMBOLS="-g" 50576 CXXFLAGS_DEBUG_SYMBOLS="-g" 50577 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50578 CFLAGS_DEBUG_SYMBOLS="-g -xs" 50579 # -g0 enables debug symbols without disabling inlining. 50580 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 50581 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50582 CFLAGS_DEBUG_SYMBOLS="-g" 50583 CXXFLAGS_DEBUG_SYMBOLS="-g" 50584 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50585 CFLAGS_DEBUG_SYMBOLS="-Zi" 50586 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 50587 fi 50588 50589 50590 50591 # Debug symbols for JVM_CFLAGS 50592 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50593 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 50594 if test "x$DEBUG_LEVEL" = xslowdebug; then 50595 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 50596 else 50597 # -g0 does not disable inlining, which -g does. 50598 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 50599 fi 50600 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50601 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 50602 else 50603 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 50604 fi 50605 50606 50607 # bounds, memory and behavior checking options 50608 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50609 case $DEBUG_LEVEL in 50610 release ) 50611 # no adjustment 50612 ;; 50613 fastdebug ) 50614 # no adjustment 50615 ;; 50616 slowdebug ) 50617 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 50618 # get's added conditionally on whether we produce debug symbols or not. 50619 # This is most likely not really correct. 50620 50621 # Add runtime stack smashing and undefined behavior checks. 50622 # Not all versions of gcc support -fstack-protector 50623 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 50624 50625 50626 50627 50628 50629 50630 50631 50632 50633 50634 50635 50636 50637 50638 50639 50640 50641 50642 50643 50644 50645 50646 50647 50648 50649 50650 50651 50652 50653 50654 50655 50656 50657 50658 50659 50660 50661 50662 50663 50664 50665 50666 # Execute function body 50667 50668 50669 50670 50671 50672 50673 50674 50675 50676 50677 50678 50679 50680 50681 50682 50683 50684 50685 50686 50687 50688 50689 50690 50691 50692 50693 50694 50695 50696 50697 50698 50699 50700 50701 50702 50703 50704 50705 50706 50707 50708 50709 50710 50711 50712 50713 50714 50715 # Execute function body 50716 50717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 50718 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 50719 supports=yes 50720 50721 saved_cflags="$CFLAGS" 50722 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 50723 ac_ext=c 50724 ac_cpp='$CPP $CPPFLAGS' 50725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50727 ac_compiler_gnu=$ac_cv_c_compiler_gnu 50728 50729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50730 /* end confdefs.h. */ 50731 int i; 50732 _ACEOF 50733 if ac_fn_c_try_compile "$LINENO"; then : 50734 50735 else 50736 supports=no 50737 fi 50738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50739 ac_ext=cpp 50740 ac_cpp='$CXXCPP $CPPFLAGS' 50741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50744 50745 CFLAGS="$saved_cflags" 50746 50747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50748 $as_echo "$supports" >&6; } 50749 if test "x$supports" = "xyes" ; then 50750 : 50751 C_COMP_SUPPORTS="yes" 50752 else 50753 : 50754 C_COMP_SUPPORTS="no" 50755 fi 50756 50757 50758 50759 50760 50761 50762 50763 50764 50765 50766 50767 50768 50769 50770 50771 50772 50773 50774 50775 50776 50777 50778 50779 50780 50781 50782 50783 50784 50785 50786 50787 50788 50789 50790 50791 50792 50793 50794 50795 50796 50797 50798 50799 50800 50801 50802 50803 50804 50805 50806 50807 50808 50809 50810 50811 50812 50813 50814 50815 # Execute function body 50816 50817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 50818 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 50819 supports=yes 50820 50821 saved_cxxflags="$CXXFLAGS" 50822 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 50823 ac_ext=cpp 50824 ac_cpp='$CXXCPP $CPPFLAGS' 50825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50828 50829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50830 /* end confdefs.h. */ 50831 int i; 50832 _ACEOF 50833 if ac_fn_cxx_try_compile "$LINENO"; then : 50834 50835 else 50836 supports=no 50837 fi 50838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50839 ac_ext=cpp 50840 ac_cpp='$CXXCPP $CPPFLAGS' 50841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50844 50845 CXXFLAGS="$saved_cxxflags" 50846 50847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50848 $as_echo "$supports" >&6; } 50849 if test "x$supports" = "xyes" ; then 50850 : 50851 CXX_COMP_SUPPORTS="yes" 50852 else 50853 : 50854 CXX_COMP_SUPPORTS="no" 50855 fi 50856 50857 50858 50859 50860 50861 50862 50863 50864 50865 50866 50867 50868 50869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 50870 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 50871 supports=no 50872 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 50873 50874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50875 $as_echo "$supports" >&6; } 50876 if test "x$supports" = "xyes" ; then 50877 : 50878 50879 else 50880 : 50881 STACK_PROTECTOR_CFLAG="" 50882 fi 50883 50884 50885 50886 50887 50888 50889 50890 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 50891 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 50892 if test "x$STACK_PROTECTOR_CFLAG" != x; then 50893 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 50894 fi 50895 ;; 50896 esac 50897 fi 50898 50899 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50900 if test "x$DEBUG_LEVEL" != xrelease; then 50901 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 50902 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 50903 fi 50904 fi 50905 fi 50906 50907 # Optimization levels 50908 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50909 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 50910 50911 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 50912 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 50913 C_O_FLAG_HIGHEST_JVM="-xO4" 50914 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 50915 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 50916 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 50917 C_O_FLAG_DEBUG="-xregs=no%frameptr" 50918 C_O_FLAG_DEBUG_JVM="" 50919 C_O_FLAG_NONE="-xregs=no%frameptr" 50920 CXX_O_FLAG_HIGHEST_JVM="-xO4" 50921 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 50922 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 50923 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 50924 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 50925 CXX_O_FLAG_DEBUG_JVM="" 50926 CXX_O_FLAG_NONE="-xregs=no%frameptr" 50927 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 50928 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 50929 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 50930 fi 50931 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 50932 C_O_FLAG_HIGHEST_JVM="-xO4" 50933 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 50934 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 50935 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 50936 C_O_FLAG_DEBUG="" 50937 C_O_FLAG_DEBUG_JVM="" 50938 C_O_FLAG_NONE="" 50939 CXX_O_FLAG_HIGHEST_JVM="-xO4" 50940 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 50941 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 50942 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 50943 CXX_O_FLAG_DEBUG="" 50944 CXX_O_FLAG_DEBUG_JVM="" 50945 CXX_O_FLAG_NONE="" 50946 fi 50947 else 50948 # The remaining toolchains share opt flags between CC and CXX; 50949 # setup for C and duplicate afterwards. 50950 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50951 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50952 # On MacOSX we optimize for size, something 50953 # we should do for all platforms? 50954 C_O_FLAG_HIGHEST_JVM="-Os" 50955 C_O_FLAG_HIGHEST="-Os" 50956 C_O_FLAG_HI="-Os" 50957 C_O_FLAG_NORM="-Os" 50958 C_O_FLAG_SIZE="-Os" 50959 else 50960 C_O_FLAG_HIGHEST_JVM="-O3" 50961 C_O_FLAG_HIGHEST="-O3" 50962 C_O_FLAG_HI="-O3" 50963 C_O_FLAG_NORM="-O2" 50964 C_O_FLAG_SIZE="-Os" 50965 fi 50966 C_O_FLAG_DEBUG="-O0" 50967 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50968 C_O_FLAG_DEBUG_JVM="" 50969 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50970 C_O_FLAG_DEBUG_JVM="-O0" 50971 fi 50972 C_O_FLAG_NONE="-O0" 50973 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50974 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50975 # On MacOSX we optimize for size, something 50976 # we should do for all platforms? 50977 C_O_FLAG_HIGHEST_JVM="-Os" 50978 C_O_FLAG_HIGHEST="-Os" 50979 C_O_FLAG_HI="-Os" 50980 C_O_FLAG_NORM="-Os" 50981 C_O_FLAG_SIZE="-Os" 50982 else 50983 C_O_FLAG_HIGHEST_JVM="-O3" 50984 C_O_FLAG_HIGHEST="-O3" 50985 C_O_FLAG_HI="-O3" 50986 C_O_FLAG_NORM="-O2" 50987 C_O_FLAG_SIZE="-Os" 50988 fi 50989 C_O_FLAG_DEBUG="-O0" 50990 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50991 C_O_FLAG_DEBUG_JVM="" 50992 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50993 C_O_FLAG_DEBUG_JVM="-O0" 50994 fi 50995 C_O_FLAG_NONE="-O0" 50996 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50997 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 50998 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 50999 C_O_FLAG_HI="-O3 -qinline -qinlglue" 51000 C_O_FLAG_NORM="-O2" 51001 C_O_FLAG_DEBUG="-qnoopt" 51002 # FIXME: Value below not verified. 51003 C_O_FLAG_DEBUG_JVM="" 51004 C_O_FLAG_NONE="-qnoopt" 51005 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51006 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 51007 C_O_FLAG_HIGHEST="-O2" 51008 C_O_FLAG_HI="-O1" 51009 C_O_FLAG_NORM="-O1" 51010 C_O_FLAG_DEBUG="-Od" 51011 C_O_FLAG_DEBUG_JVM="" 51012 C_O_FLAG_NONE="-Od" 51013 C_O_FLAG_SIZE="-Os" 51014 fi 51015 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 51016 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 51017 CXX_O_FLAG_HI="$C_O_FLAG_HI" 51018 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 51019 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 51020 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 51021 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 51022 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 51023 fi 51024 51025 # Adjust optimization flags according to debug level. 51026 case $DEBUG_LEVEL in 51027 release ) 51028 # no adjustment 51029 ;; 51030 fastdebug ) 51031 # Not quite so much optimization 51032 C_O_FLAG_HI="$C_O_FLAG_NORM" 51033 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 51034 ;; 51035 slowdebug ) 51036 # Disable optimization 51037 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 51038 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 51039 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 51040 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 51041 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 51042 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 51043 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 51044 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 51045 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 51046 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 51047 ;; 51048 esac 51049 51050 51051 51052 51053 51054 51055 51056 51057 51058 51059 51060 51061 51062 51063 51064 51065 51066 51067 51068 51069 # Check whether --with-abi-profile was given. 51070 if test "${with_abi_profile+set}" = set; then : 51071 withval=$with_abi_profile; 51072 fi 51073 51074 51075 if test "x$with_abi_profile" != x; then 51076 if test "x$OPENJDK_TARGET_CPU" != xarm && \ 51077 test "x$OPENJDK_TARGET_CPU" != xaarch64; then 51078 as_fn_error $? "--with-abi-profile only available on arm/aarch64" "$LINENO" 5 51079 fi 51080 51081 OPENJDK_TARGET_ABI_PROFILE=$with_abi_profile 51082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI profle" >&5 51083 $as_echo_n "checking for ABI profle... " >&6; } 51084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_ABI_PROFILE" >&5 51085 $as_echo "$OPENJDK_TARGET_ABI_PROFILE" >&6; } 51086 51087 if test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-sflt; then 51088 ARM_FLOAT_TYPE=vfp-sflt 51089 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 51090 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-hflt; then 51091 ARM_FLOAT_TYPE=vfp-hflt 51092 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 51093 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-sflt; then 51094 ARM_FLOAT_TYPE=sflt 51095 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 51096 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv5-vfp-sflt; then 51097 ARM_FLOAT_TYPE=vfp-sflt 51098 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 51099 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv6-vfp-hflt; then 51100 ARM_FLOAT_TYPE=vfp-hflt 51101 ARM_ARCH_TYPE_FLAGS='-march=armv6 -marm' 51102 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm64; then 51103 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 51104 ARM_FLOAT_TYPE= 51105 ARM_ARCH_TYPE_FLAGS= 51106 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xaarch64; then 51107 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 51108 ARM_FLOAT_TYPE= 51109 ARM_ARCH_TYPE_FLAGS= 51110 else 51111 as_fn_error $? "Invalid ABI profile: \"$OPENJDK_TARGET_ABI_PROFILE\"" "$LINENO" 5 51112 fi 51113 51114 if test "x$ARM_FLOAT_TYPE" = xvfp-sflt; then 51115 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=softfp -mfpu=vfp -DFLOAT_ARCH=-vfp-sflt' 51116 elif test "x$ARM_FLOAT_TYPE" = xvfp-hflt; then 51117 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=hard -mfpu=vfp -DFLOAT_ARCH=-vfp-hflt' 51118 elif test "x$ARM_FLOAT_TYPE" = xsflt; then 51119 ARM_FLOAT_TYPE_FLAGS='-msoft-float -mfpu=vfp' 51120 fi 51121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ARM_FLOAT_TYPE floating point flags" >&5 51122 $as_echo_n "checking for $ARM_FLOAT_TYPE floating point flags... " >&6; } 51123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_FLOAT_TYPE_FLAGS" >&5 51124 $as_echo "$ARM_FLOAT_TYPE_FLAGS" >&6; } 51125 51126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arch type flags" >&5 51127 $as_echo_n "checking for arch type flags... " >&6; } 51128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_ARCH_TYPE_FLAGS" >&5 51129 $as_echo "$ARM_ARCH_TYPE_FLAGS" >&6; } 51130 51131 # Now set JDK_ARCH_ABI_PROP_NAME. This is equivalent to the last part of the 51132 # autoconf target triplet. 51133 JDK_ARCH_ABI_PROP_NAME=`$ECHO $OPENJDK_TARGET_AUTOCONF_NAME | $SED -e 's/.*-\([^-]*\)$/\1/'` 51134 # Sanity check that it is a known ABI. 51135 if test "x$JDK_ARCH_ABI_PROP_NAME" != xgnu && \ 51136 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabi && \ 51137 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabihf; then 51138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&5 51139 $as_echo "$as_me: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&2;} 51140 fi 51141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI property name" >&5 51142 $as_echo_n "checking for ABI property name... " >&6; } 51143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_ARCH_ABI_PROP_NAME" >&5 51144 $as_echo "$JDK_ARCH_ABI_PROP_NAME" >&6; } 51145 51146 51147 # Pass these on to the open part of configure as if they were set using 51148 # --with-extra-c[xx]flags. 51149 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 51150 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 51151 # Get rid of annoying "note: the mangling of 'va_list' has changed in GCC 4.4" 51152 # FIXME: This should not really be set using extra_cflags. 51153 if test "x$OPENJDK_TARGET_CPU" = xarm; then 51154 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-psabi" 51155 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -Wno-psabi" 51156 fi 51157 # Also add JDK_ARCH_ABI_PROP_NAME define, but only to CFLAGS. 51158 EXTRA_CFLAGS="$EXTRA_CFLAGS -DJDK_ARCH_ABI_PROP_NAME='\"\$(JDK_ARCH_ABI_PROP_NAME)\"'" 51159 # And pass the architecture flags to the linker as well 51160 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 51161 fi 51162 51163 # When building with an abi profile, the name of that profile is appended on the 51164 # bundle platform, which is used in bundle names. 51165 if test "x$OPENJDK_TARGET_ABI_PROFILE" != x; then 51166 OPENJDK_TARGET_BUNDLE_PLATFORM="$OPENJDK_TARGET_OS_BUNDLE-$OPENJDK_TARGET_ABI_PROFILE" 51167 fi 51168 51169 51170 # Optional POSIX functionality needed by the JVM 51171 # 51172 # Check if clock_gettime is available and in which library. This indicates 51173 # availability of CLOCK_MONOTONIC for hotspot. But we don't need to link, so 51174 # don't let it update LIBS. 51175 save_LIBS="$LIBS" 51176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 51177 $as_echo_n "checking for library containing clock_gettime... " >&6; } 51178 if ${ac_cv_search_clock_gettime+:} false; then : 51179 $as_echo_n "(cached) " >&6 51180 else 51181 ac_func_search_save_LIBS=$LIBS 51182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51183 /* end confdefs.h. */ 51184 51185 /* Override any GCC internal prototype to avoid an error. 51186 Use char because int might match the return type of a GCC 51187 builtin and then its argument prototype would still apply. */ 51188 #ifdef __cplusplus 51189 extern "C" 51190 #endif 51191 char clock_gettime (); 51192 int 51193 main () 51194 { 51195 return clock_gettime (); 51196 ; 51197 return 0; 51198 } 51199 _ACEOF 51200 for ac_lib in '' rt; do 51201 if test -z "$ac_lib"; then 51202 ac_res="none required" 51203 else 51204 ac_res=-l$ac_lib 51205 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 51206 fi 51207 if ac_fn_cxx_try_link "$LINENO"; then : 51208 ac_cv_search_clock_gettime=$ac_res 51209 fi 51210 rm -f core conftest.err conftest.$ac_objext \ 51211 conftest$ac_exeext 51212 if ${ac_cv_search_clock_gettime+:} false; then : 51213 break 51214 fi 51215 done 51216 if ${ac_cv_search_clock_gettime+:} false; then : 51217 51218 else 51219 ac_cv_search_clock_gettime=no 51220 fi 51221 rm conftest.$ac_ext 51222 LIBS=$ac_func_search_save_LIBS 51223 fi 51224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 51225 $as_echo "$ac_cv_search_clock_gettime" >&6; } 51226 ac_res=$ac_cv_search_clock_gettime 51227 if test "$ac_res" != no; then : 51228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 51229 HAS_CLOCK_GETTIME=true 51230 fi 51231 51232 if test "x$LIBS" = "x-lrt "; then 51233 CLOCK_GETTIME_IN_LIBRT=true 51234 fi 51235 LIBS="$save_LIBS" 51236 51237 51238 # Special extras... 51239 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51240 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 51241 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 51242 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 51243 fi 51244 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 51245 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 51246 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51247 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51248 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 51249 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51250 CXXSTD_CXXFLAG="-std=gnu++98" 51251 51252 51253 51254 51255 51256 51257 51258 51259 51260 51261 51262 51263 51264 51265 51266 51267 51268 51269 51270 51271 51272 51273 51274 51275 51276 51277 51278 51279 51280 51281 51282 51283 51284 51285 51286 51287 51288 51289 51290 51291 51292 51293 # Execute function body 51294 51295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 51296 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 51297 supports=yes 51298 51299 saved_cxxflags="$CXXFLAGS" 51300 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 51301 ac_ext=cpp 51302 ac_cpp='$CXXCPP $CPPFLAGS' 51303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51306 51307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51308 /* end confdefs.h. */ 51309 int i; 51310 _ACEOF 51311 if ac_fn_cxx_try_compile "$LINENO"; then : 51312 51313 else 51314 supports=no 51315 fi 51316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51317 ac_ext=cpp 51318 ac_cpp='$CXXCPP $CPPFLAGS' 51319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51322 51323 CXXFLAGS="$saved_cxxflags" 51324 51325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51326 $as_echo "$supports" >&6; } 51327 if test "x$supports" = "xyes" ; then 51328 : 51329 51330 else 51331 : 51332 CXXSTD_CXXFLAG="" 51333 fi 51334 51335 51336 51337 51338 51339 51340 51341 51342 51343 51344 51345 51346 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 51347 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 51348 51349 fi 51350 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51351 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 51352 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 51353 fi 51354 51355 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 51356 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 51357 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 51358 51359 ############################################################################### 51360 # 51361 # Now setup the CFLAGS and LDFLAGS for the JDK build. 51362 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 51363 # 51364 51365 # Setup compiler/platform specific flags into 51366 # CFLAGS_JDK - C Compiler flags 51367 # CXXFLAGS_JDK - C++ Compiler flags 51368 # COMMON_CCXXFLAGS_JDK - common to C and C++ 51369 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51370 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 51371 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 51372 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 51373 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51374 # Force compatibility with i586 on 32 bit intel platforms. 51375 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 51376 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 51377 fi 51378 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 51379 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 51380 case $OPENJDK_TARGET_CPU_ARCH in 51381 arm ) 51382 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51383 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51384 COMMON_CCXXFLAGS_JDK="${COMMON_CCXXFLAGS_JDK} -fsigned-char" 51385 ;; 51386 ppc ) 51387 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51388 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51389 ;; 51390 s390 ) 51391 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 51392 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51393 ;; 51394 * ) 51395 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 51396 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51397 ;; 51398 esac 51399 51400 51401 51402 51403 51404 51405 51406 51407 51408 51409 51410 51411 51412 51413 51414 51415 51416 51417 51418 51419 51420 51421 51422 51423 51424 51425 51426 51427 51428 51429 51430 51431 51432 51433 51434 51435 51436 51437 51438 51439 51440 51441 51442 51443 51444 51445 51446 51447 51448 51449 51450 51451 51452 51453 # Execute function body 51454 51455 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51456 REFERENCE_VERSION=6 51457 51458 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 51459 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 51460 fi 51461 51462 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51463 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 51464 fi 51465 51466 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51467 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 51468 51469 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51470 : 51471 51472 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 51473 # runs afoul of the more aggressive versions of these optimisations. 51474 # Notably, value range propagation now assumes that the this pointer of C++ 51475 # member functions is non-null. 51476 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 51477 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 51478 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 51479 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 51480 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 51481 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 51482 51483 else 51484 : 51485 51486 fi 51487 51488 51489 51490 51491 51492 51493 51494 51495 51496 51497 51498 51499 51500 51501 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51502 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 51503 51504 # Restrict the debug information created by Clang to avoid 51505 # too big object files and speed the build up a little bit 51506 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 51507 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 51508 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51509 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51510 # Force compatibility with i586 on 32 bit intel platforms. 51511 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 51512 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 51513 fi 51514 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 51515 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 51516 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 51517 case $OPENJDK_TARGET_CPU_ARCH in 51518 ppc ) 51519 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 51520 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51521 ;; 51522 * ) 51523 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 51524 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 51525 ;; 51526 esac 51527 fi 51528 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51529 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 51530 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 51531 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 51532 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 51533 fi 51534 51535 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 51536 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 51537 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51538 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 51539 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 51540 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 51541 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51542 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 51543 -MD -Zc:wchar_t- -W3 -wd4800 \ 51544 -DWIN32_LEAN_AND_MEAN \ 51545 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 51546 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 51547 -DWIN32 -DIAL" 51548 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 51549 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 51550 else 51551 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 51552 fi 51553 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 51554 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 51555 # studio. 51556 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 51557 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 51558 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 51559 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 51560 fi 51561 fi 51562 51563 ############################################################################### 51564 51565 # Adjust flags according to debug level. 51566 case $DEBUG_LEVEL in 51567 fastdebug | slowdebug ) 51568 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 51569 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 51570 ;; 51571 release ) 51572 ;; 51573 * ) 51574 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51575 ;; 51576 esac 51577 51578 # Set some common defines. These works for all compilers, but assume 51579 # -D is universally accepted. 51580 51581 # Setup endianness 51582 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 51583 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 51584 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 51585 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 51586 # Note: -Dmacro is the same as #define macro 1 51587 # -Dmacro= is the same as #define macro 51588 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51589 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 51590 else 51591 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 51592 fi 51593 else 51594 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 51595 # are defined in the system? 51596 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51597 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 51598 else 51599 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 51600 fi 51601 fi 51602 51603 # Always enable optional macros for VM. 51604 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_FORMAT_MACROS" 51605 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_LIMIT_MACROS" 51606 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 51607 51608 # Setup target OS define. Use OS target name but in upper case. 51609 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 51610 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 51611 51612 # Setup target CPU 51613 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51614 $OPENJDK_TARGET_ADD_LP64 \ 51615 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 51616 51617 # Setup debug/release defines 51618 if test "x$DEBUG_LEVEL" = xrelease; then 51619 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 51620 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 51621 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 51622 fi 51623 else 51624 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 51625 fi 51626 51627 # Optional POSIX functionality needed by the VM 51628 51629 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 51630 JVM_CFLAGS="$JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 51631 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 51632 JVM_CFLAGS="$JVM_CFLAGS -DNEEDS_LIBRT" 51633 fi 51634 fi 51635 51636 51637 # Set some additional per-OS defines. 51638 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51639 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 51640 JVM_CFLAGS="$JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 51641 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 51642 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 51643 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 51644 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 51645 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 51646 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 51647 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 51648 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 51649 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 51650 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 51651 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 51652 -fno-omit-frame-pointer" 51653 elif test "x$OPENJDK_TARGET_OS" = xaix; then 51654 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 51655 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 51656 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 51657 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 51658 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 51659 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 51660 # so for slowdebug we build with '-qpic=large -bbigtoc'. 51661 if test "x$DEBUG_LEVEL" = xslowdebug; then 51662 JVM_CFLAGS="$JVM_CFLAGS -qpic=large" 51663 fi 51664 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 51665 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 51666 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 51667 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 51668 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 51669 fi 51670 51671 # Set some additional per-CPU defines. 51672 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 51673 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 51674 elif test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xsolaris-sparcv9; then 51675 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 51676 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 51677 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51678 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51679 # fixes `relocation truncated to fit' error for gcc 4.1. 51680 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 51681 # Use ppc64 instructions, but schedule for power5 51682 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 51683 elif test "x$OPENJDK_TARGET_OS" = xaix; then 51684 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 51685 fi 51686 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 51687 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51688 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51689 # Little endian machine uses ELFv2 ABI. 51690 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 51691 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 51692 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power8 -mtune=power8" 51693 fi 51694 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 51695 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51696 JVM_CFLAGS="$JVM_CFLAGS -mbackchain -march=z10" 51697 fi 51698 fi 51699 51700 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 51701 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 51702 fi 51703 51704 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 51705 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 51706 # Solaris does not have _LP64=1 in the old build. 51707 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 51708 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 51709 fi 51710 fi 51711 51712 # Set JVM_CFLAGS warning handling 51713 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51714 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 51715 -Wunused-value -Woverloaded-virtual" 51716 51717 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51718 51719 51720 51721 51722 51723 51724 51725 51726 51727 51728 51729 51730 51731 51732 51733 51734 51735 51736 51737 51738 51739 51740 51741 51742 51743 51744 51745 51746 51747 51748 51749 51750 51751 51752 51753 51754 51755 51756 51757 51758 51759 51760 51761 51762 51763 51764 51765 51766 51767 51768 51769 51770 51771 51772 # Execute function body 51773 51774 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51775 REFERENCE_VERSION=4.8 51776 51777 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 51778 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 51779 fi 51780 51781 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51782 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 51783 fi 51784 51785 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51786 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 51787 51788 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51789 : 51790 51791 # These flags either do not work or give spurious warnings prior to gcc 4.8. 51792 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 51793 51794 51795 else 51796 : 51797 51798 fi 51799 51800 51801 51802 51803 51804 51805 51806 51807 51808 51809 51810 51811 51812 51813 fi 51814 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 51815 # Non-zero builds have stricter warnings 51816 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 51817 else 51818 if test "x$TOOLCHAIN_TYPE" = xclang; then 51819 # Some versions of llvm do not like -Wundef 51820 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 51821 fi 51822 fi 51823 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 51824 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 51825 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 51826 fi 51827 51828 # Additional macosx handling 51829 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51830 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 51831 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 51832 # JDK can be built and makes the linked binaries compatible even if built on 51833 # a newer version of the OS. 51834 MACOSX_VERSION_MIN=10.7.0 51835 51836 51837 # Setting --with-macosx-version-max=<version> makes it an error to build or 51838 # link to macosx APIs that are newer than the given OS version. The expected 51839 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 51840 51841 # Check whether --with-macosx-version-max was given. 51842 if test "${with_macosx_version_max+set}" = set; then : 51843 withval=$with_macosx_version_max; 51844 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 51845 MACOSX_VERSION_MAX=$with_macosx_version_max 51846 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 51847 MACOSX_VERSION_MAX=$with_macosx_version_max 51848 elif test "x$with_macosx_version_max" = "xno"; then 51849 # Use build system default 51850 MACOSX_VERSION_MAX= 51851 else 51852 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 51853 fi 51854 51855 else 51856 MACOSX_VERSION_MAX= 51857 51858 fi 51859 51860 51861 51862 # Let the flags variables get resolved in make for easier override on make 51863 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 51864 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51865 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 51866 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51867 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51868 JVM_CFLAGS="$JVM_CFLAGS \ 51869 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 51870 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51871 51872 if test -n "$MACOSX_VERSION_MAX"; then 51873 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51874 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 51875 JVM_CFLAGS="$JVM_CFLAGS \ 51876 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 51877 fi 51878 fi 51879 51880 # Setup some hard coded includes 51881 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 51882 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 51883 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 51884 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 51885 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 51886 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 51887 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 51888 51889 # The shared libraries are compiled using the picflag. 51890 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 51891 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 51892 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 51893 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 51894 51895 # Executable flags 51896 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 51897 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 51898 51899 51900 51901 51902 51903 51904 # Setup LDFLAGS et al. 51905 # 51906 51907 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51908 LDFLAGS_MICROSOFT="-nologo -opt:ref" 51909 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 51910 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 51911 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 51912 LDFLAGS_SAFESH="-safeseh" 51913 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 51914 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 51915 # NOTE: Old build added -machine. Probably not needed. 51916 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 51917 else 51918 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 51919 fi 51920 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51921 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 51922 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51923 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 51924 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51925 fi 51926 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51927 # If this is a --hash-style=gnu system, use --hash-style=both, why? 51928 # We have previously set HAS_GNU_HASH if this is the case 51929 if test -n "$HAS_GNU_HASH"; then 51930 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 51931 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 51932 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 51933 fi 51934 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51935 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51936 fi 51937 if test "x$OPENJDK_TARGET_OS" = xlinux; then 51938 # And since we now know that the linker is gnu, then add -z defs, to forbid 51939 # undefined symbols in object files. 51940 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 51941 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 51942 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 51943 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 51944 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 51945 if test "x$OPENJDK_TARGET_CPU" = xx86; then 51946 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 51947 fi 51948 case $DEBUG_LEVEL in 51949 release ) 51950 # tell linker to optimize libraries. 51951 # Should this be supplied to the OSS linker as well? 51952 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 51953 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 51954 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 51955 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51956 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 51957 fi 51958 ;; 51959 slowdebug ) 51960 # Hotspot always let the linker optimize 51961 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 51962 if test "x$HAS_LINKER_NOW" = "xtrue"; then 51963 # do relocations at load 51964 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 51965 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 51966 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 51967 fi 51968 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51969 # mark relocations read only 51970 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 51971 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51972 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 51973 fi 51974 ;; 51975 fastdebug ) 51976 # Hotspot always let the linker optimize 51977 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 51978 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51979 # mark relocations read only 51980 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 51981 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51982 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 51983 fi 51984 ;; 51985 * ) 51986 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51987 ;; 51988 esac 51989 fi 51990 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51991 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 51992 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 51993 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 51994 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 51995 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 51996 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 51997 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 51998 fi 51999 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52000 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 52001 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 52002 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 52003 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52004 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52005 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52006 if test "x$DEBUG_LEVEL" = xslowdebug; then 52007 JVM_LDFLAGS="$JVM_LDFLAGS -bbigtoc" 52008 fi 52009 fi 52010 52011 # Customize LDFLAGS for executables 52012 52013 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 52014 52015 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52016 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 52017 LDFLAGS_STACK_SIZE=1048576 52018 else 52019 LDFLAGS_STACK_SIZE=327680 52020 fi 52021 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 52022 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 52023 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 52024 fi 52025 52026 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 52027 52028 # Customize LDFLAGS for libs 52029 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 52030 52031 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 52032 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52033 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52034 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 52035 JDKLIB_LIBS="" 52036 else 52037 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52038 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 52039 52040 if test "xTARGET" = "xTARGET"; then 52041 # On some platforms (mac) the linker warns about non existing -L dirs. 52042 # For any of the variants server, client or minimal, the dir matches the 52043 # variant name. The "main" variant should be used for linking. For the 52044 # rest, the dir is just server. 52045 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 52046 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 52047 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52048 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 52049 else 52050 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52051 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52052 fi 52053 elif test "xTARGET" = "xBUILD"; then 52054 # When building a buildjdk, it's always only the server variant 52055 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52056 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52057 fi 52058 52059 JDKLIB_LIBS="-ljava -ljvm" 52060 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52061 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 52062 fi 52063 52064 fi 52065 52066 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 52067 52068 # Set JVM_LIBS (per os) 52069 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52070 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 52071 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 52072 # FIXME: This hard-coded path is not really proper. 52073 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 52074 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 52075 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 52076 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 52077 fi 52078 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 52079 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 52080 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52081 JVM_LIBS="$JVM_LIBS -lm" 52082 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52083 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 52084 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 52085 JVM_LIBS="$JVM_LIBS -lm" 52086 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 52087 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 52088 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 52089 wsock32.lib winmm.lib version.lib psapi.lib" 52090 fi 52091 52092 # Set JVM_ASFLAGS 52093 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52094 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52095 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 52096 fi 52097 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52098 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 52099 fi 52100 52101 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 52102 52103 52104 52105 52106 52107 52108 52109 52110 52111 52112 52113 52114 52115 52116 52117 # Special extras... 52118 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52119 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 52120 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52121 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52122 fi 52123 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52124 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52125 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52126 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52127 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52128 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52129 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 52130 52131 52132 52133 52134 52135 52136 52137 52138 52139 52140 52141 52142 52143 52144 52145 52146 52147 52148 52149 52150 52151 52152 52153 52154 52155 52156 52157 52158 52159 52160 52161 52162 52163 52164 52165 52166 52167 52168 52169 52170 52171 52172 # Execute function body 52173 52174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 52175 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 52176 supports=yes 52177 52178 saved_cxxflags="$CXXFLAGS" 52179 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 52180 ac_ext=cpp 52181 ac_cpp='$CXXCPP $CPPFLAGS' 52182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52185 52186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52187 /* end confdefs.h. */ 52188 int i; 52189 _ACEOF 52190 if ac_fn_cxx_try_compile "$LINENO"; then : 52191 52192 else 52193 supports=no 52194 fi 52195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52196 ac_ext=cpp 52197 ac_cpp='$CXXCPP $CPPFLAGS' 52198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52201 52202 CXXFLAGS="$saved_cxxflags" 52203 52204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52205 $as_echo "$supports" >&6; } 52206 if test "x$supports" = "xyes" ; then 52207 : 52208 52209 else 52210 : 52211 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 52212 fi 52213 52214 52215 52216 52217 52218 52219 52220 52221 52222 52223 52224 52225 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 52226 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 52227 52228 fi 52229 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52230 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 52231 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 52232 fi 52233 52234 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 52235 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 52236 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 52237 52238 ############################################################################### 52239 # 52240 # Now setup the CFLAGS and LDFLAGS for the JDK build. 52241 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 52242 # 52243 52244 # Setup compiler/platform specific flags into 52245 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 52246 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 52247 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 52248 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52249 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 52250 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 52251 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 52252 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52253 # Force compatibility with i586 on 32 bit intel platforms. 52254 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 52255 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 52256 fi 52257 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52258 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52259 case $OPENJDK_BUILD_CPU_ARCH in 52260 arm ) 52261 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52262 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52263 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="${OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK} -fsigned-char" 52264 ;; 52265 ppc ) 52266 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52267 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52268 ;; 52269 s390 ) 52270 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 52271 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52272 ;; 52273 * ) 52274 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52275 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52276 ;; 52277 esac 52278 52279 52280 52281 52282 52283 52284 52285 52286 52287 52288 52289 52290 52291 52292 52293 52294 52295 52296 52297 52298 52299 52300 52301 52302 52303 52304 52305 52306 52307 52308 52309 52310 52311 52312 52313 52314 52315 52316 52317 52318 52319 52320 52321 52322 52323 52324 52325 52326 52327 52328 52329 52330 52331 52332 # Execute function body 52333 52334 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52335 REFERENCE_VERSION=6 52336 52337 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52338 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52339 fi 52340 52341 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52342 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 52343 fi 52344 52345 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52346 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52347 52348 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52349 : 52350 52351 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 52352 # runs afoul of the more aggressive versions of these optimisations. 52353 # Notably, value range propagation now assumes that the this pointer of C++ 52354 # member functions is non-null. 52355 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 52356 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 52357 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 52358 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 52359 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52360 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52361 52362 else 52363 : 52364 52365 fi 52366 52367 52368 52369 52370 52371 52372 52373 52374 52375 52376 52377 52378 52379 52380 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52381 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 52382 52383 # Restrict the debug information created by Clang to avoid 52384 # too big object files and speed the build up a little bit 52385 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 52386 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 52387 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52388 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52389 # Force compatibility with i586 on 32 bit intel platforms. 52390 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 52391 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 52392 fi 52393 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 52394 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52395 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52396 case $OPENJDK_BUILD_CPU_ARCH in 52397 ppc ) 52398 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52399 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52400 ;; 52401 * ) 52402 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52403 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 52404 ;; 52405 esac 52406 fi 52407 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52408 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 52409 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 52410 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 52411 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 52412 fi 52413 52414 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 52415 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 52416 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52417 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 52418 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52419 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52420 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52421 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52422 -MD -Zc:wchar_t- -W3 -wd4800 \ 52423 -DWIN32_LEAN_AND_MEAN \ 52424 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 52425 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 52426 -DWIN32 -DIAL" 52427 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 52428 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 52429 else 52430 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 52431 fi 52432 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 52433 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 52434 # studio. 52435 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 52436 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 52437 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 52438 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 52439 fi 52440 fi 52441 52442 ############################################################################### 52443 52444 # Adjust flags according to debug level. 52445 case $DEBUG_LEVEL in 52446 fastdebug | slowdebug ) 52447 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 52448 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 52449 ;; 52450 release ) 52451 ;; 52452 * ) 52453 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52454 ;; 52455 esac 52456 52457 # Set some common defines. These works for all compilers, but assume 52458 # -D is universally accepted. 52459 52460 # Setup endianness 52461 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 52462 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 52463 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 52464 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 52465 # Note: -Dmacro is the same as #define macro 1 52466 # -Dmacro= is the same as #define macro 52467 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 52468 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 52469 else 52470 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 52471 fi 52472 else 52473 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 52474 # are defined in the system? 52475 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 52476 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 52477 else 52478 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 52479 fi 52480 fi 52481 52482 # Always enable optional macros for VM. 52483 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_FORMAT_MACROS" 52484 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_LIMIT_MACROS" 52485 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 52486 52487 # Setup target OS define. Use OS target name but in upper case. 52488 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 52489 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 52490 52491 # Setup target CPU 52492 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52493 $OPENJDK_BUILD_ADD_LP64 \ 52494 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 52495 52496 # Setup debug/release defines 52497 if test "x$DEBUG_LEVEL" = xrelease; then 52498 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 52499 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 52500 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 52501 fi 52502 else 52503 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 52504 fi 52505 52506 # Optional POSIX functionality needed by the VM 52507 52508 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 52509 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 52510 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 52511 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DNEEDS_LIBRT" 52512 fi 52513 fi 52514 52515 52516 # Set some additional per-OS defines. 52517 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52518 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 52519 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 52520 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 52521 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 52522 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 52523 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 52524 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 52525 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 52526 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 52527 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 52528 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 52529 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 52530 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 52531 -fno-omit-frame-pointer" 52532 elif test "x$OPENJDK_BUILD_OS" = xaix; then 52533 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 52534 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 52535 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 52536 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 52537 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52538 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52539 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52540 if test "x$DEBUG_LEVEL" = xslowdebug; then 52541 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qpic=large" 52542 fi 52543 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 52544 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 52545 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 52546 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 52547 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 52548 fi 52549 52550 # Set some additional per-CPU defines. 52551 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 52552 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 52553 elif test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xsolaris-sparcv9; then 52554 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 52555 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 52556 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52557 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52558 # fixes `relocation truncated to fit' error for gcc 4.1. 52559 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 52560 # Use ppc64 instructions, but schedule for power5 52561 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 52562 elif test "x$OPENJDK_BUILD_OS" = xaix; then 52563 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 52564 fi 52565 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 52566 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52567 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52568 # Little endian machine uses ELFv2 ABI. 52569 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 52570 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 52571 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power8 -mtune=power8" 52572 fi 52573 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 52574 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52575 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mbackchain -march=z10" 52576 fi 52577 fi 52578 52579 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 52580 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 52581 fi 52582 52583 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 52584 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 52585 # Solaris does not have _LP64=1 in the old build. 52586 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 52587 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 52588 fi 52589 fi 52590 52591 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 52592 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52593 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 52594 -Wunused-value -Woverloaded-virtual" 52595 52596 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52597 52598 52599 52600 52601 52602 52603 52604 52605 52606 52607 52608 52609 52610 52611 52612 52613 52614 52615 52616 52617 52618 52619 52620 52621 52622 52623 52624 52625 52626 52627 52628 52629 52630 52631 52632 52633 52634 52635 52636 52637 52638 52639 52640 52641 52642 52643 52644 52645 52646 52647 52648 52649 52650 52651 # Execute function body 52652 52653 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52654 REFERENCE_VERSION=4.8 52655 52656 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52657 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52658 fi 52659 52660 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52661 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 52662 fi 52663 52664 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52665 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52666 52667 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52668 : 52669 52670 # These flags either do not work or give spurious warnings prior to gcc 4.8. 52671 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 52672 52673 52674 else 52675 : 52676 52677 fi 52678 52679 52680 52681 52682 52683 52684 52685 52686 52687 52688 52689 52690 52691 52692 fi 52693 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52694 # Non-zero builds have stricter warnings 52695 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 52696 else 52697 if test "x$TOOLCHAIN_TYPE" = xclang; then 52698 # Some versions of llvm do not like -Wundef 52699 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 52700 fi 52701 fi 52702 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 52703 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 52704 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 52705 fi 52706 52707 # Additional macosx handling 52708 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 52709 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 52710 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 52711 # JDK can be built and makes the linked binaries compatible even if built on 52712 # a newer version of the OS. 52713 MACOSX_VERSION_MIN=10.7.0 52714 52715 52716 # Setting --with-macosx-version-max=<version> makes it an error to build or 52717 # link to macosx APIs that are newer than the given OS version. The expected 52718 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 52719 52720 # Check whether --with-macosx-version-max was given. 52721 if test "${with_macosx_version_max+set}" = set; then : 52722 withval=$with_macosx_version_max; 52723 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 52724 MACOSX_VERSION_MAX=$with_macosx_version_max 52725 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 52726 MACOSX_VERSION_MAX=$with_macosx_version_max 52727 elif test "x$with_macosx_version_max" = "xno"; then 52728 # Use build system default 52729 MACOSX_VERSION_MAX= 52730 else 52731 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 52732 fi 52733 52734 else 52735 MACOSX_VERSION_MAX= 52736 52737 fi 52738 52739 52740 52741 # Let the flags variables get resolved in make for easier override on make 52742 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 52743 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52744 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52745 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52746 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52747 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 52748 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52749 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52750 52751 if test -n "$MACOSX_VERSION_MAX"; then 52752 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52753 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52754 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 52755 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52756 fi 52757 fi 52758 52759 # Setup some hard coded includes 52760 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52761 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 52762 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 52763 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 52764 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 52765 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 52766 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava" 52767 52768 # The shared libraries are compiled using the picflag. 52769 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52770 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 52771 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 52772 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 52773 52774 # Executable flags 52775 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 52776 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 52777 52778 52779 52780 52781 52782 52783 # Setup LDFLAGS et al. 52784 # 52785 52786 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52787 LDFLAGS_MICROSOFT="-nologo -opt:ref" 52788 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 52789 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 52790 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 52791 LDFLAGS_SAFESH="-safeseh" 52792 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 52793 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 52794 # NOTE: Old build added -machine. Probably not needed. 52795 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 52796 else 52797 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 52798 fi 52799 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52800 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 52801 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 52802 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 52803 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52804 fi 52805 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52806 # If this is a --hash-style=gnu system, use --hash-style=both, why? 52807 # We have previously set HAS_GNU_HASH if this is the case 52808 if test -n "$HAS_GNU_HASH"; then 52809 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 52810 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 52811 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 52812 fi 52813 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 52814 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52815 fi 52816 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52817 # And since we now know that the linker is gnu, then add -z defs, to forbid 52818 # undefined symbols in object files. 52819 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 52820 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 52821 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 52822 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 52823 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 52824 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52825 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 52826 fi 52827 case $DEBUG_LEVEL in 52828 release ) 52829 # tell linker to optimize libraries. 52830 # Should this be supplied to the OSS linker as well? 52831 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 52832 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 52833 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 52834 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52835 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 52836 fi 52837 ;; 52838 slowdebug ) 52839 # Hotspot always let the linker optimize 52840 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 52841 if test "x$HAS_LINKER_NOW" = "xtrue"; then 52842 # do relocations at load 52843 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 52844 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 52845 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 52846 fi 52847 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52848 # mark relocations read only 52849 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 52850 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52851 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 52852 fi 52853 ;; 52854 fastdebug ) 52855 # Hotspot always let the linker optimize 52856 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 52857 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52858 # mark relocations read only 52859 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 52860 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52861 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 52862 fi 52863 ;; 52864 * ) 52865 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52866 ;; 52867 esac 52868 fi 52869 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52870 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 52871 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 52872 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 52873 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 52874 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 52875 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 52876 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 52877 fi 52878 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52879 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 52880 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 52881 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 52882 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52883 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52884 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52885 if test "x$DEBUG_LEVEL" = xslowdebug; then 52886 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -bbigtoc" 52887 fi 52888 fi 52889 52890 # Customize LDFLAGS for executables 52891 52892 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 52893 52894 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52895 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 52896 LDFLAGS_STACK_SIZE=1048576 52897 else 52898 LDFLAGS_STACK_SIZE=327680 52899 fi 52900 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 52901 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 52902 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 52903 fi 52904 52905 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 52906 52907 # Customize LDFLAGS for libs 52908 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 52909 52910 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 52911 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52912 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52913 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 52914 OPENJDK_BUILD_JDKLIB_LIBS="" 52915 else 52916 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52917 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 52918 52919 if test "xBUILD" = "xTARGET"; then 52920 # On some platforms (mac) the linker warns about non existing -L dirs. 52921 # For any of the variants server, client or minimal, the dir matches the 52922 # variant name. The "main" variant should be used for linking. For the 52923 # rest, the dir is just server. 52924 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 52925 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 52926 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52927 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 52928 else 52929 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52930 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52931 fi 52932 elif test "xBUILD" = "xBUILD"; then 52933 # When building a buildjdk, it's always only the server variant 52934 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 52935 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52936 fi 52937 52938 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 52939 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52940 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 52941 fi 52942 52943 fi 52944 52945 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 52946 52947 # Set OPENJDK_BUILD_JVM_LIBS (per os) 52948 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52949 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 52950 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 52951 # FIXME: This hard-coded path is not really proper. 52952 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 52953 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 52954 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 52955 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 52956 fi 52957 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 52958 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 52959 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 52960 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 52961 elif test "x$OPENJDK_BUILD_OS" = xaix; then 52962 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 52963 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 52964 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 52965 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 52966 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 52967 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 52968 wsock32.lib winmm.lib version.lib psapi.lib" 52969 fi 52970 52971 # Set OPENJDK_BUILD_JVM_ASFLAGS 52972 if test "x$OPENJDK_BUILD_OS" = xlinux; then 52973 if test "x$OPENJDK_BUILD_CPU" = xx86; then 52974 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 52975 fi 52976 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 52977 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 52978 fi 52979 52980 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 52981 52982 52983 52984 52985 52986 52987 52988 52989 52990 52991 52992 52993 52994 52995 52996 # Tests are only ever compiled for TARGET 52997 # Flags for compiling test libraries 52998 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 52999 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 53000 53001 # Flags for compiling test executables 53002 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 53003 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 53004 53005 53006 53007 53008 53009 53010 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 53011 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 53012 53013 53014 53015 53016 53017 53018 # Check that the compiler supports -mX (or -qX on AIX) flags 53019 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 53020 53021 53022 53023 53024 53025 53026 53027 53028 53029 53030 53031 53032 53033 53034 53035 53036 53037 53038 53039 53040 53041 53042 53043 53044 53045 53046 53047 53048 53049 53050 53051 53052 53053 53054 53055 53056 53057 53058 53059 53060 53061 53062 53063 53064 53065 53066 53067 # Execute function body 53068 53069 53070 53071 53072 53073 53074 53075 53076 53077 53078 53079 53080 53081 53082 53083 53084 53085 53086 53087 53088 53089 53090 53091 53092 53093 53094 53095 53096 53097 53098 53099 53100 53101 53102 53103 53104 53105 53106 53107 53108 53109 53110 53111 53112 53113 53114 53115 53116 # Execute function body 53117 53118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53119 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 53120 supports=yes 53121 53122 saved_cflags="$CFLAGS" 53123 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 53124 ac_ext=c 53125 ac_cpp='$CPP $CPPFLAGS' 53126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53128 ac_compiler_gnu=$ac_cv_c_compiler_gnu 53129 53130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53131 /* end confdefs.h. */ 53132 int i; 53133 _ACEOF 53134 if ac_fn_c_try_compile "$LINENO"; then : 53135 53136 else 53137 supports=no 53138 fi 53139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53140 ac_ext=cpp 53141 ac_cpp='$CXXCPP $CPPFLAGS' 53142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53145 53146 CFLAGS="$saved_cflags" 53147 53148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53149 $as_echo "$supports" >&6; } 53150 if test "x$supports" = "xyes" ; then 53151 : 53152 C_COMP_SUPPORTS="yes" 53153 else 53154 : 53155 C_COMP_SUPPORTS="no" 53156 fi 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 53185 53186 53187 53188 53189 53190 53191 53192 53193 53194 53195 53196 53197 53198 53199 53200 53201 53202 53203 53204 53205 53206 53207 53208 53209 53210 53211 53212 53213 53214 53215 53216 # Execute function body 53217 53218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53219 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 53220 supports=yes 53221 53222 saved_cxxflags="$CXXFLAGS" 53223 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 53224 ac_ext=cpp 53225 ac_cpp='$CXXCPP $CPPFLAGS' 53226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53229 53230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53231 /* end confdefs.h. */ 53232 int i; 53233 _ACEOF 53234 if ac_fn_cxx_try_compile "$LINENO"; then : 53235 53236 else 53237 supports=no 53238 fi 53239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53240 ac_ext=cpp 53241 ac_cpp='$CXXCPP $CPPFLAGS' 53242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53245 53246 CXXFLAGS="$saved_cxxflags" 53247 53248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53249 $as_echo "$supports" >&6; } 53250 if test "x$supports" = "xyes" ; then 53251 : 53252 CXX_COMP_SUPPORTS="yes" 53253 else 53254 : 53255 CXX_COMP_SUPPORTS="no" 53256 fi 53257 53258 53259 53260 53261 53262 53263 53264 53265 53266 53267 53268 53269 53270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53271 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 53272 supports=no 53273 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53274 53275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53276 $as_echo "$supports" >&6; } 53277 if test "x$supports" = "xyes" ; then 53278 : 53279 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 53280 else 53281 : 53282 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 53283 fi 53284 53285 53286 53287 53288 53289 53290 53291 53292 # Check whether --enable-warnings-as-errors was given. 53293 if test "${enable_warnings_as_errors+set}" = set; then : 53294 enableval=$enable_warnings_as_errors; 53295 fi 53296 53297 53298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 53299 $as_echo_n "checking if native warnings are errors... " >&6; } 53300 if test "x$enable_warnings_as_errors" = "xyes"; then 53301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitly set)" >&5 53302 $as_echo "yes (explicitly set)" >&6; } 53303 WARNINGS_AS_ERRORS=true 53304 elif test "x$enable_warnings_as_errors" = "xno"; then 53305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53306 $as_echo "no" >&6; } 53307 WARNINGS_AS_ERRORS=false 53308 elif test "x$enable_warnings_as_errors" = "x"; then 53309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 53310 $as_echo "yes (default)" >&6; } 53311 WARNINGS_AS_ERRORS=true 53312 else 53313 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 53314 fi 53315 53316 53317 53318 case "${TOOLCHAIN_TYPE}" in 53319 microsoft) 53320 DISABLE_WARNING_PREFIX="-wd" 53321 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 53322 ;; 53323 solstudio) 53324 DISABLE_WARNING_PREFIX="-erroff=" 53325 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 53326 ;; 53327 gcc) 53328 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 53329 53330 53331 53332 53333 53334 53335 53336 53337 53338 53339 53340 53341 53342 53343 53344 53345 53346 53347 53348 53349 53350 53351 53352 53353 53354 53355 53356 53357 53358 53359 53360 53361 53362 53363 53364 53365 53366 53367 53368 53369 53370 53371 53372 53373 53374 53375 53376 # Execute function body 53377 53378 53379 53380 53381 53382 53383 53384 53385 53386 53387 53388 53389 53390 53391 53392 53393 53394 53395 53396 53397 53398 53399 53400 53401 53402 53403 53404 53405 53406 53407 53408 53409 53410 53411 53412 53413 53414 53415 53416 53417 53418 53419 53420 53421 53422 53423 53424 53425 # Execute function body 53426 53427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53428 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53429 supports=yes 53430 53431 saved_cflags="$CFLAGS" 53432 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 53433 ac_ext=c 53434 ac_cpp='$CPP $CPPFLAGS' 53435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53437 ac_compiler_gnu=$ac_cv_c_compiler_gnu 53438 53439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53440 /* end confdefs.h. */ 53441 int i; 53442 _ACEOF 53443 if ac_fn_c_try_compile "$LINENO"; then : 53444 53445 else 53446 supports=no 53447 fi 53448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53449 ac_ext=cpp 53450 ac_cpp='$CXXCPP $CPPFLAGS' 53451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53454 53455 CFLAGS="$saved_cflags" 53456 53457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53458 $as_echo "$supports" >&6; } 53459 if test "x$supports" = "xyes" ; then 53460 : 53461 C_COMP_SUPPORTS="yes" 53462 else 53463 : 53464 C_COMP_SUPPORTS="no" 53465 fi 53466 53467 53468 53469 53470 53471 53472 53473 53474 53475 53476 53477 53478 53479 53480 53481 53482 53483 53484 53485 53486 53487 53488 53489 53490 53491 53492 53493 53494 53495 53496 53497 53498 53499 53500 53501 53502 53503 53504 53505 53506 53507 53508 53509 53510 53511 53512 53513 53514 53515 53516 53517 53518 53519 53520 53521 53522 53523 53524 53525 # Execute function body 53526 53527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53528 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53529 supports=yes 53530 53531 saved_cxxflags="$CXXFLAGS" 53532 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 53533 ac_ext=cpp 53534 ac_cpp='$CXXCPP $CPPFLAGS' 53535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53538 53539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53540 /* end confdefs.h. */ 53541 int i; 53542 _ACEOF 53543 if ac_fn_cxx_try_compile "$LINENO"; then : 53544 53545 else 53546 supports=no 53547 fi 53548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53549 ac_ext=cpp 53550 ac_cpp='$CXXCPP $CPPFLAGS' 53551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53554 53555 CXXFLAGS="$saved_cxxflags" 53556 53557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53558 $as_echo "$supports" >&6; } 53559 if test "x$supports" = "xyes" ; then 53560 : 53561 CXX_COMP_SUPPORTS="yes" 53562 else 53563 : 53564 CXX_COMP_SUPPORTS="no" 53565 fi 53566 53567 53568 53569 53570 53571 53572 53573 53574 53575 53576 53577 53578 53579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53580 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53581 supports=no 53582 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53583 53584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53585 $as_echo "$supports" >&6; } 53586 if test "x$supports" = "xyes" ; then 53587 : 53588 GCC_CAN_DISABLE_WARNINGS=true 53589 else 53590 : 53591 GCC_CAN_DISABLE_WARNINGS=false 53592 53593 fi 53594 53595 53596 53597 53598 53599 53600 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 53601 DISABLE_WARNING_PREFIX="-Wno-" 53602 else 53603 DISABLE_WARNING_PREFIX= 53604 fi 53605 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 53606 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 53607 # CFLAGS since any target specific flags will likely not work with the 53608 # build compiler 53609 CC_OLD="$CC" 53610 CXX_OLD="$CXX" 53611 CC="$BUILD_CC" 53612 CXX="$BUILD_CXX" 53613 CFLAGS_OLD="$CFLAGS" 53614 CFLAGS="" 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 # Execute function body 53663 53664 53665 53666 53667 53668 53669 53670 53671 53672 53673 53674 53675 53676 53677 53678 53679 53680 53681 53682 53683 53684 53685 53686 53687 53688 53689 53690 53691 53692 53693 53694 53695 53696 53697 53698 53699 53700 53701 53702 53703 53704 53705 53706 53707 53708 53709 53710 53711 # Execute function body 53712 53713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53714 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53715 supports=yes 53716 53717 saved_cflags="$CFLAGS" 53718 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 53719 ac_ext=c 53720 ac_cpp='$CPP $CPPFLAGS' 53721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53723 ac_compiler_gnu=$ac_cv_c_compiler_gnu 53724 53725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53726 /* end confdefs.h. */ 53727 int i; 53728 _ACEOF 53729 if ac_fn_c_try_compile "$LINENO"; then : 53730 53731 else 53732 supports=no 53733 fi 53734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53735 ac_ext=cpp 53736 ac_cpp='$CXXCPP $CPPFLAGS' 53737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53740 53741 CFLAGS="$saved_cflags" 53742 53743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53744 $as_echo "$supports" >&6; } 53745 if test "x$supports" = "xyes" ; then 53746 : 53747 C_COMP_SUPPORTS="yes" 53748 else 53749 : 53750 C_COMP_SUPPORTS="no" 53751 fi 53752 53753 53754 53755 53756 53757 53758 53759 53760 53761 53762 53763 53764 53765 53766 53767 53768 53769 53770 53771 53772 53773 53774 53775 53776 53777 53778 53779 53780 53781 53782 53783 53784 53785 53786 53787 53788 53789 53790 53791 53792 53793 53794 53795 53796 53797 53798 53799 53800 53801 53802 53803 53804 53805 53806 53807 53808 53809 53810 53811 # Execute function body 53812 53813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53814 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53815 supports=yes 53816 53817 saved_cxxflags="$CXXFLAGS" 53818 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 53819 ac_ext=cpp 53820 ac_cpp='$CXXCPP $CPPFLAGS' 53821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53824 53825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53826 /* end confdefs.h. */ 53827 int i; 53828 _ACEOF 53829 if ac_fn_cxx_try_compile "$LINENO"; then : 53830 53831 else 53832 supports=no 53833 fi 53834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53835 ac_ext=cpp 53836 ac_cpp='$CXXCPP $CPPFLAGS' 53837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53840 53841 CXXFLAGS="$saved_cxxflags" 53842 53843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53844 $as_echo "$supports" >&6; } 53845 if test "x$supports" = "xyes" ; then 53846 : 53847 CXX_COMP_SUPPORTS="yes" 53848 else 53849 : 53850 CXX_COMP_SUPPORTS="no" 53851 fi 53852 53853 53854 53855 53856 53857 53858 53859 53860 53861 53862 53863 53864 53865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 53866 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 53867 supports=no 53868 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 53869 53870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53871 $as_echo "$supports" >&6; } 53872 if test "x$supports" = "xyes" ; then 53873 : 53874 BUILD_CC_CAN_DISABLE_WARNINGS=true 53875 else 53876 : 53877 BUILD_CC_CAN_DISABLE_WARNINGS=false 53878 53879 fi 53880 53881 53882 53883 53884 53885 53886 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 53887 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 53888 else 53889 BUILD_CC_DISABLE_WARNING_PREFIX= 53890 fi 53891 CC="$CC_OLD" 53892 CXX="$CXX_OLD" 53893 CFLAGS="$CFLAGS_OLD" 53894 ;; 53895 clang) 53896 DISABLE_WARNING_PREFIX="-Wno-" 53897 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 53898 ;; 53899 xlc) 53900 DISABLE_WARNING_PREFIX="-qsuppress=" 53901 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 53902 ;; 53903 esac 53904 53905 53906 53907 53908 53909 # Setup debug symbols (need objcopy from the toolchain for that) 53910 53911 # 53912 # NATIVE_DEBUG_SYMBOLS 53913 # This must be done after the toolchain is setup, since we're looking at objcopy. 53914 # 53915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 53916 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 53917 53918 # Check whether --with-native-debug-symbols was given. 53919 if test "${with_native_debug_symbols+set}" = set; then : 53920 withval=$with_native_debug_symbols; 53921 if test "x$OPENJDK_TARGET_OS" = xaix; then 53922 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 53923 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 53924 fi 53925 fi 53926 53927 else 53928 53929 if test "x$OPENJDK_TARGET_OS" = xaix; then 53930 # AIX doesn't support 'zipped' so use 'internal' as default 53931 with_native_debug_symbols="internal" 53932 else 53933 if test "x$STATIC_BUILD" = xtrue; then 53934 with_native_debug_symbols="none" 53935 else 53936 with_native_debug_symbols="zipped" 53937 fi 53938 fi 53939 53940 fi 53941 53942 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 53943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 53944 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 53945 53946 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 53947 53948 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 53949 if test "x$OBJCOPY" = x; then 53950 # enabling of enable-debug-symbols and can't find objcopy 53951 # this is an error 53952 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 53953 fi 53954 fi 53955 53956 COMPILE_WITH_DEBUG_SYMBOLS=true 53957 COPY_DEBUG_SYMBOLS=true 53958 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 53959 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 53960 COMPILE_WITH_DEBUG_SYMBOLS=false 53961 COPY_DEBUG_SYMBOLS=false 53962 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 53963 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 53964 COMPILE_WITH_DEBUG_SYMBOLS=true 53965 COPY_DEBUG_SYMBOLS=false 53966 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 53967 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 53968 53969 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 53970 if test "x$OBJCOPY" = x; then 53971 # enabling of enable-debug-symbols and can't find objcopy 53972 # this is an error 53973 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 53974 fi 53975 fi 53976 53977 COMPILE_WITH_DEBUG_SYMBOLS=true 53978 COPY_DEBUG_SYMBOLS=true 53979 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 53980 else 53981 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 53982 fi 53983 53984 # --enable-debug-symbols is deprecated. 53985 # Please use --with-native-debug-symbols=[internal,external,zipped] . 53986 53987 # Check whether --enable-debug-symbols was given. 53988 if test "${enable_debug_symbols+set}" = set; then : 53989 enableval=$enable_debug_symbols; 53990 fi 53991 53992 if test "x$enable_debug_symbols" != x; then 53993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 53994 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 53995 53996 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 53997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 53998 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 53999 fi 54000 54001 fi 54002 54003 54004 # --enable-zip-debug-info is deprecated. 54005 # Please use --with-native-debug-symbols=zipped . 54006 54007 # Check whether --enable-zip-debug-info was given. 54008 if test "${enable_zip_debug_info+set}" = set; then : 54009 enableval=$enable_zip_debug_info; 54010 fi 54011 54012 if test "x$enable_zip_debug_info" != x; then 54013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 54014 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 54015 54016 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 54017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 54018 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 54019 fi 54020 54021 fi 54022 54023 54024 54025 54026 54027 54028 54029 # Check whether --enable-native-coverage was given. 54030 if test "${enable_native_coverage+set}" = set; then : 54031 enableval=$enable_native_coverage; 54032 fi 54033 54034 GCOV_ENABLED="false" 54035 if test "x$enable_native_coverage" = "xyes"; then 54036 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 54037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 54038 $as_echo_n "checking if native coverage is enabled... " >&6; } 54039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54040 $as_echo "yes" >&6; } 54041 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 54042 GCOV_LDFLAGS="-fprofile-arcs" 54043 JVM_CFLAGS="$JVM_CFLAGS $GCOV_CFLAGS" 54044 JVM_LDFLAGS="$JVM_LDFLAGS $GCOV_LDFLAGS" 54045 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 54046 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 54047 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 54048 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 54049 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 54050 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 54051 GCOV_ENABLED="true" 54052 else 54053 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 54054 fi 54055 elif test "x$enable_native_coverage" = "xno"; then 54056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 54057 $as_echo_n "checking if native coverage is enabled... " >&6; } 54058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54059 $as_echo "no" >&6; } 54060 elif test "x$enable_native_coverage" != "x"; then 54061 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 54062 fi 54063 54064 54065 54066 54067 # Need toolchain to setup dtrace 54068 54069 # Test for dtrace dependencies 54070 # Check whether --enable-dtrace was given. 54071 if test "${enable_dtrace+set}" = set; then : 54072 enableval=$enable_dtrace; 54073 fi 54074 54075 54076 DTRACE_DEP_MISSING=false 54077 54078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 54079 $as_echo_n "checking for dtrace tool... " >&6; } 54080 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 54081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 54082 $as_echo "$DTRACE" >&6; } 54083 else 54084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 54085 $as_echo "not found, cannot build dtrace" >&6; } 54086 DTRACE_DEP_MISSING=true 54087 fi 54088 54089 for ac_header in sys/sdt.h 54090 do : 54091 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 54092 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 54093 cat >>confdefs.h <<_ACEOF 54094 #define HAVE_SYS_SDT_H 1 54095 _ACEOF 54096 DTRACE_HEADERS_OK=yes 54097 else 54098 DTRACE_HEADERS_OK=no 54099 fi 54100 54101 done 54102 54103 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 54104 DTRACE_DEP_MISSING=true 54105 fi 54106 54107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 54108 $as_echo_n "checking if dtrace should be built... " >&6; } 54109 if test "x$enable_dtrace" = "xyes"; then 54110 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 54111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 54112 $as_echo "no, missing dependencies" >&6; } 54113 54114 # Print a helpful message on how to acquire the necessary build dependency. 54115 # dtrace is the help tag: freetype, cups, alsa etc 54116 MISSING_DEPENDENCY=dtrace 54117 54118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54119 cygwin_help $MISSING_DEPENDENCY 54120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54121 msys_help $MISSING_DEPENDENCY 54122 else 54123 PKGHANDLER_COMMAND= 54124 54125 case $PKGHANDLER in 54126 apt-get) 54127 apt_help $MISSING_DEPENDENCY ;; 54128 yum) 54129 yum_help $MISSING_DEPENDENCY ;; 54130 brew) 54131 brew_help $MISSING_DEPENDENCY ;; 54132 port) 54133 port_help $MISSING_DEPENDENCY ;; 54134 pkgutil) 54135 pkgutil_help $MISSING_DEPENDENCY ;; 54136 pkgadd) 54137 pkgadd_help $MISSING_DEPENDENCY ;; 54138 esac 54139 54140 if test "x$PKGHANDLER_COMMAND" != x; then 54141 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 54142 fi 54143 fi 54144 54145 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 54146 else 54147 INCLUDE_DTRACE=true 54148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 54149 $as_echo "yes, forced" >&6; } 54150 fi 54151 elif test "x$enable_dtrace" = "xno"; then 54152 INCLUDE_DTRACE=false 54153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 54154 $as_echo "no, forced" >&6; } 54155 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 54156 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 54157 INCLUDE_DTRACE=false 54158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 54159 $as_echo "no, missing dependencies" >&6; } 54160 else 54161 INCLUDE_DTRACE=true 54162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 54163 $as_echo "yes, dependencies present" >&6; } 54164 fi 54165 else 54166 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 54167 fi 54168 54169 54170 # Check whether --enable-aot was given. 54171 if test "${enable_aot+set}" = set; then : 54172 enableval=$enable_aot; 54173 fi 54174 54175 54176 if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then 54177 ENABLE_AOT="true" 54178 elif test "x$enable_aot" = "xyes"; then 54179 ENABLE_AOT="true" 54180 elif test "x$enable_aot" = "xno"; then 54181 ENABLE_AOT="false" 54182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 54183 $as_echo_n "checking if aot should be enabled... " >&6; } 54184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 54185 $as_echo "no, forced" >&6; } 54186 else 54187 as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5 54188 fi 54189 54190 if test "x$ENABLE_AOT" = "xtrue"; then 54191 # Only enable AOT on X64 platforms. 54192 if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 54193 if test -e "$HOTSPOT_TOPDIR/src/jdk.aot"; then 54194 if test -e "$HOTSPOT_TOPDIR/src/jdk.internal.vm.compiler"; then 54195 ENABLE_AOT="true" 54196 else 54197 ENABLE_AOT="false" 54198 if test "x$enable_aot" = "xyes"; then 54199 as_fn_error $? "Cannot build AOT without hotspot/src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5 54200 fi 54201 fi 54202 else 54203 ENABLE_AOT="false" 54204 if test "x$enable_aot" = "xyes"; then 54205 as_fn_error $? "Cannot build AOT without hotspot/src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5 54206 fi 54207 fi 54208 else 54209 ENABLE_AOT="false" 54210 if test "x$enable_aot" = "xyes"; then 54211 as_fn_error $? "AOT is currently only supported on x86_64. Remove --enable-aot." "$LINENO" 5 54212 fi 54213 fi 54214 fi 54215 54216 54217 54218 54219 # Check whether --enable-hotspot-gtest was given. 54220 if test "${enable_hotspot_gtest+set}" = set; then : 54221 enableval=$enable_hotspot_gtest; 54222 fi 54223 54224 54225 if test -e "$HOTSPOT_TOPDIR/test/native"; then 54226 GTEST_DIR_EXISTS="true" 54227 else 54228 GTEST_DIR_EXISTS="false" 54229 fi 54230 54231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 54232 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 54233 if test "x$enable_hotspot_gtest" = "xyes"; then 54234 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 54235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 54236 $as_echo "yes, forced" >&6; } 54237 BUILD_GTEST="true" 54238 else 54239 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 54240 fi 54241 elif test "x$enable_hotspot_gtest" = "xno"; then 54242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 54243 $as_echo "no, forced" >&6; } 54244 BUILD_GTEST="false" 54245 elif test "x$enable_hotspot_gtest" = "x"; then 54246 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 54247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54248 $as_echo "yes" >&6; } 54249 BUILD_GTEST="true" 54250 else 54251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54252 $as_echo "no" >&6; } 54253 BUILD_GTEST="false" 54254 fi 54255 else 54256 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 54257 fi 54258 54259 54260 54261 54262 ############################################################################### 54263 # 54264 # Check dependencies for external and internal libraries. 54265 # 54266 ############################################################################### 54267 54268 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 54269 54270 # When using cygwin or msys, we need a wrapper binary that renames 54271 # /cygdrive/c/ arguments into c:/ arguments and peeks into 54272 # @files and rewrites these too! This wrapper binary is 54273 # called fixpath. 54274 FIXPATH= 54275 if test "x$OPENJDK_BUILD_OS" = xwindows; then 54276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 54277 $as_echo_n "checking if fixpath can be created... " >&6; } 54278 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 54279 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 54280 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 54281 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 54282 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 54283 FIXPATH="$FIXPATH_BIN -c" 54284 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 54285 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 54286 # @ was chosen as separator to minimize risk of other tools messing around with it 54287 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 54288 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 54289 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 54290 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 54291 fi 54292 FIXPATH_SRC_W="$FIXPATH_SRC" 54293 FIXPATH_BIN_W="$FIXPATH_BIN" 54294 54295 unix_path="$FIXPATH_SRC_W" 54296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54297 windows_path=`$CYGPATH -m "$unix_path"` 54298 FIXPATH_SRC_W="$windows_path" 54299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54300 windows_path=`cmd //c echo $unix_path` 54301 FIXPATH_SRC_W="$windows_path" 54302 fi 54303 54304 54305 unix_path="$FIXPATH_BIN_W" 54306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54307 windows_path=`$CYGPATH -m "$unix_path"` 54308 FIXPATH_BIN_W="$windows_path" 54309 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54310 windows_path=`cmd //c echo $unix_path` 54311 FIXPATH_BIN_W="$windows_path" 54312 fi 54313 54314 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 54315 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 54316 cd $FIXPATH_DIR 54317 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 54318 cd $CURDIR 54319 54320 if test ! -x $FIXPATH_BIN; then 54321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54322 $as_echo "no" >&6; } 54323 cat $FIXPATH_DIR/fixpath1.log 54324 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 54325 fi 54326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54327 $as_echo "yes" >&6; } 54328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 54329 $as_echo_n "checking if fixpath.exe works... " >&6; } 54330 cd $FIXPATH_DIR 54331 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 54332 > $FIXPATH_DIR/fixpath2.log 2>&1 54333 cd $CURDIR 54334 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 54335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54336 $as_echo "no" >&6; } 54337 cat $FIXPATH_DIR/fixpath2.log 54338 as_fn_error $? "fixpath did not work!" "$LINENO" 5 54339 fi 54340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54341 $as_echo "yes" >&6; } 54342 54343 FIXPATH_DETACH_FLAG="--detach" 54344 fi 54345 54346 54347 54348 54349 54350 54351 # Check if X11 is needed 54352 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 54353 # No X11 support on windows or macosx 54354 NEEDS_LIB_X11=false 54355 else 54356 # All other instances need X11, even if building headless only, libawt still 54357 # needs X11 headers. 54358 NEEDS_LIB_X11=true 54359 fi 54360 54361 # Check if cups is needed 54362 if test "x$OPENJDK_TARGET_OS" = xwindows; then 54363 # Windows have a separate print system 54364 NEEDS_LIB_CUPS=false 54365 else 54366 NEEDS_LIB_CUPS=true 54367 fi 54368 54369 # A custom hook may have set this already 54370 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 54371 NEEDS_LIB_FREETYPE=true 54372 fi 54373 54374 # Check if alsa is needed 54375 if test "x$OPENJDK_TARGET_OS" = xlinux; then 54376 NEEDS_LIB_ALSA=true 54377 else 54378 NEEDS_LIB_ALSA=false 54379 fi 54380 54381 # Check if ffi is needed 54382 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 54383 NEEDS_LIB_FFI=true 54384 else 54385 NEEDS_LIB_FFI=false 54386 fi 54387 54388 54389 # statically link libstdc++ before C++ ABI is stablized on Linux unless 54390 # dynamic build is configured on command line. 54391 54392 # Check whether --with-stdc++lib was given. 54393 if test "${with_stdc__lib+set}" = set; then : 54394 withval=$with_stdc__lib; 54395 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 54396 && test "x$with_stdc__lib" != xdefault; then 54397 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 54398 fi 54399 54400 else 54401 with_stdc__lib=default 54402 54403 fi 54404 54405 54406 if test "x$OPENJDK_TARGET_OS" = xlinux; then 54407 # Test if stdc++ can be linked statically. 54408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 54409 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 54410 STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc" 54411 ac_ext=cpp 54412 ac_cpp='$CXXCPP $CPPFLAGS' 54413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54416 54417 OLD_LIBS="$LIBS" 54418 LIBS="$STATIC_STDCXX_FLAGS" 54419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54420 /* end confdefs.h. */ 54421 54422 int 54423 main () 54424 { 54425 return 0; 54426 ; 54427 return 0; 54428 } 54429 _ACEOF 54430 if ac_fn_cxx_try_link "$LINENO"; then : 54431 has_static_libstdcxx=yes 54432 else 54433 has_static_libstdcxx=no 54434 fi 54435 rm -f core conftest.err conftest.$ac_objext \ 54436 conftest$ac_exeext conftest.$ac_ext 54437 LIBS="$OLD_LIBS" 54438 ac_ext=cpp 54439 ac_cpp='$CXXCPP $CPPFLAGS' 54440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54443 54444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 54445 $as_echo "$has_static_libstdcxx" >&6; } 54446 54447 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 54448 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 54449 fi 54450 54451 # If dynamic was requested, it's available since it would fail above otherwise. 54452 # If dynamic wasn't requested, go with static unless it isn't available. 54453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 54454 $as_echo_n "checking how to link with libstdc++... " >&6; } 54455 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno \ 54456 || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 54457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 54458 $as_echo "dynamic" >&6; } 54459 else 54460 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 54461 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 54462 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 54463 # just use the same setting as for the TARGET toolchain. 54464 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 54465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 54466 $as_echo "static" >&6; } 54467 fi 54468 fi 54469 54470 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 54471 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 54472 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 54473 fi 54474 54475 54476 54477 # Setup Windows runtime dlls 54478 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 54479 54480 54481 # Check whether --with-msvcr-dll was given. 54482 if test "${with_msvcr_dll+set}" = set; then : 54483 withval=$with_msvcr_dll; 54484 fi 54485 54486 54487 if test "x$with_msvcr_dll" != x; then 54488 # If given explicitly by user, do not probe. If not present, fail directly. 54489 54490 DLL_NAME="$MSVCR_NAME" 54491 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 54492 METHOD="--with-msvcr-dll" 54493 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54494 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54495 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54496 54497 # Need to check if the found msvcr is correct architecture 54498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54499 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54500 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54502 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54503 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54504 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54505 CORRECT_MSVCR_ARCH="PE32 executable" 54506 else 54507 CORRECT_MSVCR_ARCH="PE32+ executable" 54508 fi 54509 else 54510 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54511 CORRECT_MSVCR_ARCH=386 54512 else 54513 CORRECT_MSVCR_ARCH=x86-64 54514 fi 54515 fi 54516 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54518 $as_echo "ok" >&6; } 54519 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54520 54521 # Only process if variable expands to non-empty 54522 54523 if test "x$MSVC_DLL" != x; then 54524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54525 54526 # Input might be given as Windows format, start by converting to 54527 # unix format. 54528 path="$MSVC_DLL" 54529 new_path=`$CYGPATH -u "$path"` 54530 54531 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54532 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54533 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54534 # "foo.exe" is OK but "foo" is an error. 54535 # 54536 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54537 # It is also a way to make sure we got the proper file name for the real test later on. 54538 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54539 if test "x$test_shortpath" = x; then 54540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54541 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54542 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54543 fi 54544 54545 # Call helper function which possibly converts this using DOS-style short mode. 54546 # If so, the updated path is stored in $new_path. 54547 54548 input_path="$new_path" 54549 # Check if we need to convert this using DOS-style short mode. If the path 54550 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54551 # take no chances and rewrite it. 54552 # Note: m4 eats our [], so we need to use [ and ] instead. 54553 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54554 if test "x$has_forbidden_chars" != x; then 54555 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54556 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54557 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54558 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54559 # Going to short mode and back again did indeed matter. Since short mode is 54560 # case insensitive, let's make it lowercase to improve readability. 54561 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54562 # Now convert it back to Unix-style (cygpath) 54563 input_path=`$CYGPATH -u "$shortmode_path"` 54564 new_path="$input_path" 54565 fi 54566 fi 54567 54568 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54569 if test "x$test_cygdrive_prefix" = x; then 54570 # As a simple fix, exclude /usr/bin since it's not a real path. 54571 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54572 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54573 # a path prefixed by /cygdrive for fixpath to work. 54574 new_path="$CYGWIN_ROOT_PATH$input_path" 54575 fi 54576 fi 54577 54578 54579 if test "x$path" != "x$new_path"; then 54580 MSVC_DLL="$new_path" 54581 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54582 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54583 fi 54584 54585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54586 54587 path="$MSVC_DLL" 54588 has_colon=`$ECHO $path | $GREP ^.:` 54589 new_path="$path" 54590 if test "x$has_colon" = x; then 54591 # Not in mixed or Windows style, start by that. 54592 new_path=`cmd //c echo $path` 54593 fi 54594 54595 54596 input_path="$new_path" 54597 # Check if we need to convert this using DOS-style short mode. If the path 54598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54599 # take no chances and rewrite it. 54600 # Note: m4 eats our [], so we need to use [ and ] instead. 54601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54602 if test "x$has_forbidden_chars" != x; then 54603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54604 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54605 fi 54606 54607 54608 windows_path="$new_path" 54609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54610 unix_path=`$CYGPATH -u "$windows_path"` 54611 new_path="$unix_path" 54612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54613 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54614 new_path="$unix_path" 54615 fi 54616 54617 if test "x$path" != "x$new_path"; then 54618 MSVC_DLL="$new_path" 54619 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54620 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54621 fi 54622 54623 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54624 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54625 54626 else 54627 # We're on a unix platform. Hooray! :) 54628 path="$MSVC_DLL" 54629 has_space=`$ECHO "$path" | $GREP " "` 54630 if test "x$has_space" != x; then 54631 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54632 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54633 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54634 fi 54635 54636 # Use eval to expand a potential ~ 54637 eval path="$path" 54638 if test ! -f "$path" && test ! -d "$path"; then 54639 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54640 fi 54641 54642 if test -d "$path"; then 54643 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54644 else 54645 dir="`$DIRNAME "$path"`" 54646 base="`$BASENAME "$path"`" 54647 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54648 fi 54649 fi 54650 fi 54651 54652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54653 $as_echo_n "checking for $DLL_NAME... " >&6; } 54654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54655 $as_echo "$MSVC_DLL" >&6; } 54656 else 54657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54658 $as_echo "incorrect, ignoring" >&6; } 54659 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54660 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54661 fi 54662 fi 54663 54664 if test "x$MSVC_DLL" = x; then 54665 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 54666 fi 54667 MSVCR_DLL="$MSVC_DLL" 54668 elif test "x$DEVKIT_MSVCR_DLL" != x; then 54669 54670 DLL_NAME="$MSVCR_NAME" 54671 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 54672 METHOD="devkit" 54673 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54674 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54675 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54676 54677 # Need to check if the found msvcr is correct architecture 54678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54679 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54680 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54682 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54683 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54684 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54685 CORRECT_MSVCR_ARCH="PE32 executable" 54686 else 54687 CORRECT_MSVCR_ARCH="PE32+ executable" 54688 fi 54689 else 54690 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54691 CORRECT_MSVCR_ARCH=386 54692 else 54693 CORRECT_MSVCR_ARCH=x86-64 54694 fi 54695 fi 54696 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54698 $as_echo "ok" >&6; } 54699 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54700 54701 # Only process if variable expands to non-empty 54702 54703 if test "x$MSVC_DLL" != x; then 54704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54705 54706 # Input might be given as Windows format, start by converting to 54707 # unix format. 54708 path="$MSVC_DLL" 54709 new_path=`$CYGPATH -u "$path"` 54710 54711 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54712 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54713 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54714 # "foo.exe" is OK but "foo" is an error. 54715 # 54716 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54717 # It is also a way to make sure we got the proper file name for the real test later on. 54718 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54719 if test "x$test_shortpath" = x; then 54720 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54721 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54722 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54723 fi 54724 54725 # Call helper function which possibly converts this using DOS-style short mode. 54726 # If so, the updated path is stored in $new_path. 54727 54728 input_path="$new_path" 54729 # Check if we need to convert this using DOS-style short mode. If the path 54730 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54731 # take no chances and rewrite it. 54732 # Note: m4 eats our [], so we need to use [ and ] instead. 54733 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54734 if test "x$has_forbidden_chars" != x; then 54735 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54736 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54737 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54738 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54739 # Going to short mode and back again did indeed matter. Since short mode is 54740 # case insensitive, let's make it lowercase to improve readability. 54741 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54742 # Now convert it back to Unix-style (cygpath) 54743 input_path=`$CYGPATH -u "$shortmode_path"` 54744 new_path="$input_path" 54745 fi 54746 fi 54747 54748 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54749 if test "x$test_cygdrive_prefix" = x; then 54750 # As a simple fix, exclude /usr/bin since it's not a real path. 54751 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54752 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54753 # a path prefixed by /cygdrive for fixpath to work. 54754 new_path="$CYGWIN_ROOT_PATH$input_path" 54755 fi 54756 fi 54757 54758 54759 if test "x$path" != "x$new_path"; then 54760 MSVC_DLL="$new_path" 54761 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54762 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54763 fi 54764 54765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54766 54767 path="$MSVC_DLL" 54768 has_colon=`$ECHO $path | $GREP ^.:` 54769 new_path="$path" 54770 if test "x$has_colon" = x; then 54771 # Not in mixed or Windows style, start by that. 54772 new_path=`cmd //c echo $path` 54773 fi 54774 54775 54776 input_path="$new_path" 54777 # Check if we need to convert this using DOS-style short mode. If the path 54778 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54779 # take no chances and rewrite it. 54780 # Note: m4 eats our [], so we need to use [ and ] instead. 54781 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54782 if test "x$has_forbidden_chars" != x; then 54783 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54784 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54785 fi 54786 54787 54788 windows_path="$new_path" 54789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54790 unix_path=`$CYGPATH -u "$windows_path"` 54791 new_path="$unix_path" 54792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54793 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54794 new_path="$unix_path" 54795 fi 54796 54797 if test "x$path" != "x$new_path"; then 54798 MSVC_DLL="$new_path" 54799 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54800 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54801 fi 54802 54803 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54804 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54805 54806 else 54807 # We're on a unix platform. Hooray! :) 54808 path="$MSVC_DLL" 54809 has_space=`$ECHO "$path" | $GREP " "` 54810 if test "x$has_space" != x; then 54811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54812 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54813 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54814 fi 54815 54816 # Use eval to expand a potential ~ 54817 eval path="$path" 54818 if test ! -f "$path" && test ! -d "$path"; then 54819 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54820 fi 54821 54822 if test -d "$path"; then 54823 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54824 else 54825 dir="`$DIRNAME "$path"`" 54826 base="`$BASENAME "$path"`" 54827 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54828 fi 54829 fi 54830 fi 54831 54832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54833 $as_echo_n "checking for $DLL_NAME... " >&6; } 54834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54835 $as_echo "$MSVC_DLL" >&6; } 54836 else 54837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54838 $as_echo "incorrect, ignoring" >&6; } 54839 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54840 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54841 fi 54842 fi 54843 54844 if test "x$MSVC_DLL" = x; then 54845 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 54846 fi 54847 MSVCR_DLL="$MSVC_DLL" 54848 else 54849 54850 DLL_NAME="${MSVCR_NAME}" 54851 MSVC_DLL= 54852 54853 if test "x$MSVC_DLL" = x; then 54854 # Probe: Using well-known location from Visual Studio 10.0 54855 if test "x$VCINSTALLDIR" != x; then 54856 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 54857 54858 windows_path="$CYGWIN_VC_INSTALL_DIR" 54859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54860 unix_path=`$CYGPATH -u "$windows_path"` 54861 CYGWIN_VC_INSTALL_DIR="$unix_path" 54862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54863 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54864 CYGWIN_VC_INSTALL_DIR="$unix_path" 54865 fi 54866 54867 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54868 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54869 else 54870 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54871 fi 54872 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 54873 54874 DLL_NAME="$DLL_NAME" 54875 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54876 METHOD="well-known location in VCINSTALLDIR" 54877 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54878 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54879 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54880 54881 # Need to check if the found msvcr is correct architecture 54882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54883 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54884 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54886 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54887 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54888 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54889 CORRECT_MSVCR_ARCH="PE32 executable" 54890 else 54891 CORRECT_MSVCR_ARCH="PE32+ executable" 54892 fi 54893 else 54894 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54895 CORRECT_MSVCR_ARCH=386 54896 else 54897 CORRECT_MSVCR_ARCH=x86-64 54898 fi 54899 fi 54900 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54902 $as_echo "ok" >&6; } 54903 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54904 54905 # Only process if variable expands to non-empty 54906 54907 if test "x$MSVC_DLL" != x; then 54908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54909 54910 # Input might be given as Windows format, start by converting to 54911 # unix format. 54912 path="$MSVC_DLL" 54913 new_path=`$CYGPATH -u "$path"` 54914 54915 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54916 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54917 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54918 # "foo.exe" is OK but "foo" is an error. 54919 # 54920 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54921 # It is also a way to make sure we got the proper file name for the real test later on. 54922 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54923 if test "x$test_shortpath" = x; then 54924 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54925 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54926 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54927 fi 54928 54929 # Call helper function which possibly converts this using DOS-style short mode. 54930 # If so, the updated path is stored in $new_path. 54931 54932 input_path="$new_path" 54933 # Check if we need to convert this using DOS-style short mode. If the path 54934 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54935 # take no chances and rewrite it. 54936 # Note: m4 eats our [], so we need to use [ and ] instead. 54937 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54938 if test "x$has_forbidden_chars" != x; then 54939 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54940 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54941 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54942 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54943 # Going to short mode and back again did indeed matter. Since short mode is 54944 # case insensitive, let's make it lowercase to improve readability. 54945 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54946 # Now convert it back to Unix-style (cygpath) 54947 input_path=`$CYGPATH -u "$shortmode_path"` 54948 new_path="$input_path" 54949 fi 54950 fi 54951 54952 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54953 if test "x$test_cygdrive_prefix" = x; then 54954 # As a simple fix, exclude /usr/bin since it's not a real path. 54955 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54956 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54957 # a path prefixed by /cygdrive for fixpath to work. 54958 new_path="$CYGWIN_ROOT_PATH$input_path" 54959 fi 54960 fi 54961 54962 54963 if test "x$path" != "x$new_path"; then 54964 MSVC_DLL="$new_path" 54965 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54966 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54967 fi 54968 54969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54970 54971 path="$MSVC_DLL" 54972 has_colon=`$ECHO $path | $GREP ^.:` 54973 new_path="$path" 54974 if test "x$has_colon" = x; then 54975 # Not in mixed or Windows style, start by that. 54976 new_path=`cmd //c echo $path` 54977 fi 54978 54979 54980 input_path="$new_path" 54981 # Check if we need to convert this using DOS-style short mode. If the path 54982 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54983 # take no chances and rewrite it. 54984 # Note: m4 eats our [], so we need to use [ and ] instead. 54985 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54986 if test "x$has_forbidden_chars" != x; then 54987 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54988 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54989 fi 54990 54991 54992 windows_path="$new_path" 54993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54994 unix_path=`$CYGPATH -u "$windows_path"` 54995 new_path="$unix_path" 54996 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54997 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54998 new_path="$unix_path" 54999 fi 55000 55001 if test "x$path" != "x$new_path"; then 55002 MSVC_DLL="$new_path" 55003 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55004 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55005 fi 55006 55007 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55008 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55009 55010 else 55011 # We're on a unix platform. Hooray! :) 55012 path="$MSVC_DLL" 55013 has_space=`$ECHO "$path" | $GREP " "` 55014 if test "x$has_space" != x; then 55015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55016 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55017 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55018 fi 55019 55020 # Use eval to expand a potential ~ 55021 eval path="$path" 55022 if test ! -f "$path" && test ! -d "$path"; then 55023 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55024 fi 55025 55026 if test -d "$path"; then 55027 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55028 else 55029 dir="`$DIRNAME "$path"`" 55030 base="`$BASENAME "$path"`" 55031 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55032 fi 55033 fi 55034 fi 55035 55036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55037 $as_echo_n "checking for $DLL_NAME... " >&6; } 55038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55039 $as_echo "$MSVC_DLL" >&6; } 55040 else 55041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55042 $as_echo "incorrect, ignoring" >&6; } 55043 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55044 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55045 fi 55046 fi 55047 55048 fi 55049 fi 55050 55051 if test "x$MSVC_DLL" = x; then 55052 # Probe: Check in the Boot JDK directory. 55053 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 55054 55055 DLL_NAME="$DLL_NAME" 55056 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55057 METHOD="well-known location in Boot JDK" 55058 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55059 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55060 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55061 55062 # Need to check if the found msvcr is correct architecture 55063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55064 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55065 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55066 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55067 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55068 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55069 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55070 CORRECT_MSVCR_ARCH="PE32 executable" 55071 else 55072 CORRECT_MSVCR_ARCH="PE32+ executable" 55073 fi 55074 else 55075 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55076 CORRECT_MSVCR_ARCH=386 55077 else 55078 CORRECT_MSVCR_ARCH=x86-64 55079 fi 55080 fi 55081 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55083 $as_echo "ok" >&6; } 55084 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55085 55086 # Only process if variable expands to non-empty 55087 55088 if test "x$MSVC_DLL" != x; then 55089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55090 55091 # Input might be given as Windows format, start by converting to 55092 # unix format. 55093 path="$MSVC_DLL" 55094 new_path=`$CYGPATH -u "$path"` 55095 55096 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55097 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55098 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55099 # "foo.exe" is OK but "foo" is an error. 55100 # 55101 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55102 # It is also a way to make sure we got the proper file name for the real test later on. 55103 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55104 if test "x$test_shortpath" = x; then 55105 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55106 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55107 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55108 fi 55109 55110 # Call helper function which possibly converts this using DOS-style short mode. 55111 # If so, the updated path is stored in $new_path. 55112 55113 input_path="$new_path" 55114 # Check if we need to convert this using DOS-style short mode. If the path 55115 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55116 # take no chances and rewrite it. 55117 # Note: m4 eats our [], so we need to use [ and ] instead. 55118 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55119 if test "x$has_forbidden_chars" != x; then 55120 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55121 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55122 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55123 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55124 # Going to short mode and back again did indeed matter. Since short mode is 55125 # case insensitive, let's make it lowercase to improve readability. 55126 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55127 # Now convert it back to Unix-style (cygpath) 55128 input_path=`$CYGPATH -u "$shortmode_path"` 55129 new_path="$input_path" 55130 fi 55131 fi 55132 55133 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55134 if test "x$test_cygdrive_prefix" = x; then 55135 # As a simple fix, exclude /usr/bin since it's not a real path. 55136 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55137 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55138 # a path prefixed by /cygdrive for fixpath to work. 55139 new_path="$CYGWIN_ROOT_PATH$input_path" 55140 fi 55141 fi 55142 55143 55144 if test "x$path" != "x$new_path"; then 55145 MSVC_DLL="$new_path" 55146 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55147 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55148 fi 55149 55150 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55151 55152 path="$MSVC_DLL" 55153 has_colon=`$ECHO $path | $GREP ^.:` 55154 new_path="$path" 55155 if test "x$has_colon" = x; then 55156 # Not in mixed or Windows style, start by that. 55157 new_path=`cmd //c echo $path` 55158 fi 55159 55160 55161 input_path="$new_path" 55162 # Check if we need to convert this using DOS-style short mode. If the path 55163 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55164 # take no chances and rewrite it. 55165 # Note: m4 eats our [], so we need to use [ and ] instead. 55166 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55167 if test "x$has_forbidden_chars" != x; then 55168 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55169 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55170 fi 55171 55172 55173 windows_path="$new_path" 55174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55175 unix_path=`$CYGPATH -u "$windows_path"` 55176 new_path="$unix_path" 55177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55178 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55179 new_path="$unix_path" 55180 fi 55181 55182 if test "x$path" != "x$new_path"; then 55183 MSVC_DLL="$new_path" 55184 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55185 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55186 fi 55187 55188 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55189 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55190 55191 else 55192 # We're on a unix platform. Hooray! :) 55193 path="$MSVC_DLL" 55194 has_space=`$ECHO "$path" | $GREP " "` 55195 if test "x$has_space" != x; then 55196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55197 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55198 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55199 fi 55200 55201 # Use eval to expand a potential ~ 55202 eval path="$path" 55203 if test ! -f "$path" && test ! -d "$path"; then 55204 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55205 fi 55206 55207 if test -d "$path"; then 55208 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55209 else 55210 dir="`$DIRNAME "$path"`" 55211 base="`$BASENAME "$path"`" 55212 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55213 fi 55214 fi 55215 fi 55216 55217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55218 $as_echo_n "checking for $DLL_NAME... " >&6; } 55219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55220 $as_echo "$MSVC_DLL" >&6; } 55221 else 55222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55223 $as_echo "incorrect, ignoring" >&6; } 55224 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55225 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55226 fi 55227 fi 55228 55229 fi 55230 55231 if test "x$MSVC_DLL" = x; then 55232 # Probe: Look in the Windows system32 directory 55233 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 55234 55235 windows_path="$CYGWIN_SYSTEMROOT" 55236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55237 unix_path=`$CYGPATH -u "$windows_path"` 55238 CYGWIN_SYSTEMROOT="$unix_path" 55239 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55240 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55241 CYGWIN_SYSTEMROOT="$unix_path" 55242 fi 55243 55244 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 55245 55246 DLL_NAME="$DLL_NAME" 55247 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55248 METHOD="well-known location in SYSTEMROOT" 55249 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55250 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55251 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55252 55253 # Need to check if the found msvcr is correct architecture 55254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55255 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55256 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55258 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55259 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55260 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55261 CORRECT_MSVCR_ARCH="PE32 executable" 55262 else 55263 CORRECT_MSVCR_ARCH="PE32+ executable" 55264 fi 55265 else 55266 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55267 CORRECT_MSVCR_ARCH=386 55268 else 55269 CORRECT_MSVCR_ARCH=x86-64 55270 fi 55271 fi 55272 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55274 $as_echo "ok" >&6; } 55275 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55276 55277 # Only process if variable expands to non-empty 55278 55279 if test "x$MSVC_DLL" != x; then 55280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55281 55282 # Input might be given as Windows format, start by converting to 55283 # unix format. 55284 path="$MSVC_DLL" 55285 new_path=`$CYGPATH -u "$path"` 55286 55287 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55288 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55289 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55290 # "foo.exe" is OK but "foo" is an error. 55291 # 55292 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55293 # It is also a way to make sure we got the proper file name for the real test later on. 55294 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55295 if test "x$test_shortpath" = x; then 55296 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55297 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55298 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55299 fi 55300 55301 # Call helper function which possibly converts this using DOS-style short mode. 55302 # If so, the updated path is stored in $new_path. 55303 55304 input_path="$new_path" 55305 # Check if we need to convert this using DOS-style short mode. If the path 55306 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55307 # take no chances and rewrite it. 55308 # Note: m4 eats our [], so we need to use [ and ] instead. 55309 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55310 if test "x$has_forbidden_chars" != x; then 55311 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55312 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55313 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55314 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55315 # Going to short mode and back again did indeed matter. Since short mode is 55316 # case insensitive, let's make it lowercase to improve readability. 55317 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55318 # Now convert it back to Unix-style (cygpath) 55319 input_path=`$CYGPATH -u "$shortmode_path"` 55320 new_path="$input_path" 55321 fi 55322 fi 55323 55324 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55325 if test "x$test_cygdrive_prefix" = x; then 55326 # As a simple fix, exclude /usr/bin since it's not a real path. 55327 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55328 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55329 # a path prefixed by /cygdrive for fixpath to work. 55330 new_path="$CYGWIN_ROOT_PATH$input_path" 55331 fi 55332 fi 55333 55334 55335 if test "x$path" != "x$new_path"; then 55336 MSVC_DLL="$new_path" 55337 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55338 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55339 fi 55340 55341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55342 55343 path="$MSVC_DLL" 55344 has_colon=`$ECHO $path | $GREP ^.:` 55345 new_path="$path" 55346 if test "x$has_colon" = x; then 55347 # Not in mixed or Windows style, start by that. 55348 new_path=`cmd //c echo $path` 55349 fi 55350 55351 55352 input_path="$new_path" 55353 # Check if we need to convert this using DOS-style short mode. If the path 55354 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55355 # take no chances and rewrite it. 55356 # Note: m4 eats our [], so we need to use [ and ] instead. 55357 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55358 if test "x$has_forbidden_chars" != x; then 55359 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55360 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55361 fi 55362 55363 55364 windows_path="$new_path" 55365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55366 unix_path=`$CYGPATH -u "$windows_path"` 55367 new_path="$unix_path" 55368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55370 new_path="$unix_path" 55371 fi 55372 55373 if test "x$path" != "x$new_path"; then 55374 MSVC_DLL="$new_path" 55375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55376 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55377 fi 55378 55379 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55380 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55381 55382 else 55383 # We're on a unix platform. Hooray! :) 55384 path="$MSVC_DLL" 55385 has_space=`$ECHO "$path" | $GREP " "` 55386 if test "x$has_space" != x; then 55387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55388 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55389 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55390 fi 55391 55392 # Use eval to expand a potential ~ 55393 eval path="$path" 55394 if test ! -f "$path" && test ! -d "$path"; then 55395 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55396 fi 55397 55398 if test -d "$path"; then 55399 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55400 else 55401 dir="`$DIRNAME "$path"`" 55402 base="`$BASENAME "$path"`" 55403 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55404 fi 55405 fi 55406 fi 55407 55408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55409 $as_echo_n "checking for $DLL_NAME... " >&6; } 55410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55411 $as_echo "$MSVC_DLL" >&6; } 55412 else 55413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55414 $as_echo "incorrect, ignoring" >&6; } 55415 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55416 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55417 fi 55418 fi 55419 55420 fi 55421 55422 if test "x$MSVC_DLL" = x; then 55423 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 55424 if test "x$VS100COMNTOOLS" != x; then 55425 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 55426 55427 windows_path="$CYGWIN_VS_TOOLS_DIR" 55428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55429 unix_path=`$CYGPATH -u "$windows_path"` 55430 CYGWIN_VS_TOOLS_DIR="$unix_path" 55431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55432 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55433 CYGWIN_VS_TOOLS_DIR="$unix_path" 55434 fi 55435 55436 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55437 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55438 | $GREP -i /x64/ | $HEAD --lines 1` 55439 else 55440 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55441 | $GREP -i /x86/ | $HEAD --lines 1` 55442 fi 55443 55444 DLL_NAME="$DLL_NAME" 55445 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55446 METHOD="search of VS100COMNTOOLS" 55447 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55448 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55449 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55450 55451 # Need to check if the found msvcr is correct architecture 55452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55453 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55454 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55456 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55457 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55458 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55459 CORRECT_MSVCR_ARCH="PE32 executable" 55460 else 55461 CORRECT_MSVCR_ARCH="PE32+ executable" 55462 fi 55463 else 55464 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55465 CORRECT_MSVCR_ARCH=386 55466 else 55467 CORRECT_MSVCR_ARCH=x86-64 55468 fi 55469 fi 55470 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55472 $as_echo "ok" >&6; } 55473 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55474 55475 # Only process if variable expands to non-empty 55476 55477 if test "x$MSVC_DLL" != x; then 55478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55479 55480 # Input might be given as Windows format, start by converting to 55481 # unix format. 55482 path="$MSVC_DLL" 55483 new_path=`$CYGPATH -u "$path"` 55484 55485 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55486 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55487 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55488 # "foo.exe" is OK but "foo" is an error. 55489 # 55490 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55491 # It is also a way to make sure we got the proper file name for the real test later on. 55492 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55493 if test "x$test_shortpath" = x; then 55494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55495 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55496 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55497 fi 55498 55499 # Call helper function which possibly converts this using DOS-style short mode. 55500 # If so, the updated path is stored in $new_path. 55501 55502 input_path="$new_path" 55503 # Check if we need to convert this using DOS-style short mode. If the path 55504 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55505 # take no chances and rewrite it. 55506 # Note: m4 eats our [], so we need to use [ and ] instead. 55507 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55508 if test "x$has_forbidden_chars" != x; then 55509 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55510 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55511 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55512 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55513 # Going to short mode and back again did indeed matter. Since short mode is 55514 # case insensitive, let's make it lowercase to improve readability. 55515 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55516 # Now convert it back to Unix-style (cygpath) 55517 input_path=`$CYGPATH -u "$shortmode_path"` 55518 new_path="$input_path" 55519 fi 55520 fi 55521 55522 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55523 if test "x$test_cygdrive_prefix" = x; then 55524 # As a simple fix, exclude /usr/bin since it's not a real path. 55525 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55526 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55527 # a path prefixed by /cygdrive for fixpath to work. 55528 new_path="$CYGWIN_ROOT_PATH$input_path" 55529 fi 55530 fi 55531 55532 55533 if test "x$path" != "x$new_path"; then 55534 MSVC_DLL="$new_path" 55535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55536 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55537 fi 55538 55539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55540 55541 path="$MSVC_DLL" 55542 has_colon=`$ECHO $path | $GREP ^.:` 55543 new_path="$path" 55544 if test "x$has_colon" = x; then 55545 # Not in mixed or Windows style, start by that. 55546 new_path=`cmd //c echo $path` 55547 fi 55548 55549 55550 input_path="$new_path" 55551 # Check if we need to convert this using DOS-style short mode. If the path 55552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55553 # take no chances and rewrite it. 55554 # Note: m4 eats our [], so we need to use [ and ] instead. 55555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55556 if test "x$has_forbidden_chars" != x; then 55557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55558 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55559 fi 55560 55561 55562 windows_path="$new_path" 55563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55564 unix_path=`$CYGPATH -u "$windows_path"` 55565 new_path="$unix_path" 55566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55567 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55568 new_path="$unix_path" 55569 fi 55570 55571 if test "x$path" != "x$new_path"; then 55572 MSVC_DLL="$new_path" 55573 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55574 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55575 fi 55576 55577 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55578 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55579 55580 else 55581 # We're on a unix platform. Hooray! :) 55582 path="$MSVC_DLL" 55583 has_space=`$ECHO "$path" | $GREP " "` 55584 if test "x$has_space" != x; then 55585 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55586 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55587 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55588 fi 55589 55590 # Use eval to expand a potential ~ 55591 eval path="$path" 55592 if test ! -f "$path" && test ! -d "$path"; then 55593 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55594 fi 55595 55596 if test -d "$path"; then 55597 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55598 else 55599 dir="`$DIRNAME "$path"`" 55600 base="`$BASENAME "$path"`" 55601 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55602 fi 55603 fi 55604 fi 55605 55606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55607 $as_echo_n "checking for $DLL_NAME... " >&6; } 55608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55609 $as_echo "$MSVC_DLL" >&6; } 55610 else 55611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55612 $as_echo "incorrect, ignoring" >&6; } 55613 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55614 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55615 fi 55616 fi 55617 55618 fi 55619 fi 55620 55621 if test "x$MSVC_DLL" = x; then 55622 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 55623 # (This was the original behaviour; kept since it might turn something up) 55624 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 55625 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55626 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55627 | $GREP x64 | $HEAD --lines 1` 55628 else 55629 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55630 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 55631 if test "x$POSSIBLE_MSVC_DLL" = x; then 55632 # We're grasping at straws now... 55633 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55634 | $HEAD --lines 1` 55635 fi 55636 fi 55637 55638 55639 DLL_NAME="$DLL_NAME" 55640 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55641 METHOD="search of VCINSTALLDIR" 55642 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55643 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55644 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55645 55646 # Need to check if the found msvcr is correct architecture 55647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55648 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55649 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55651 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55652 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55653 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55654 CORRECT_MSVCR_ARCH="PE32 executable" 55655 else 55656 CORRECT_MSVCR_ARCH="PE32+ executable" 55657 fi 55658 else 55659 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55660 CORRECT_MSVCR_ARCH=386 55661 else 55662 CORRECT_MSVCR_ARCH=x86-64 55663 fi 55664 fi 55665 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55667 $as_echo "ok" >&6; } 55668 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55669 55670 # Only process if variable expands to non-empty 55671 55672 if test "x$MSVC_DLL" != x; then 55673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55674 55675 # Input might be given as Windows format, start by converting to 55676 # unix format. 55677 path="$MSVC_DLL" 55678 new_path=`$CYGPATH -u "$path"` 55679 55680 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55681 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55682 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55683 # "foo.exe" is OK but "foo" is an error. 55684 # 55685 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55686 # It is also a way to make sure we got the proper file name for the real test later on. 55687 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55688 if test "x$test_shortpath" = x; then 55689 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55690 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55691 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55692 fi 55693 55694 # Call helper function which possibly converts this using DOS-style short mode. 55695 # If so, the updated path is stored in $new_path. 55696 55697 input_path="$new_path" 55698 # Check if we need to convert this using DOS-style short mode. If the path 55699 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55700 # take no chances and rewrite it. 55701 # Note: m4 eats our [], so we need to use [ and ] instead. 55702 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55703 if test "x$has_forbidden_chars" != x; then 55704 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55705 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55706 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55707 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55708 # Going to short mode and back again did indeed matter. Since short mode is 55709 # case insensitive, let's make it lowercase to improve readability. 55710 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55711 # Now convert it back to Unix-style (cygpath) 55712 input_path=`$CYGPATH -u "$shortmode_path"` 55713 new_path="$input_path" 55714 fi 55715 fi 55716 55717 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55718 if test "x$test_cygdrive_prefix" = x; then 55719 # As a simple fix, exclude /usr/bin since it's not a real path. 55720 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55721 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55722 # a path prefixed by /cygdrive for fixpath to work. 55723 new_path="$CYGWIN_ROOT_PATH$input_path" 55724 fi 55725 fi 55726 55727 55728 if test "x$path" != "x$new_path"; then 55729 MSVC_DLL="$new_path" 55730 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55731 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55732 fi 55733 55734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55735 55736 path="$MSVC_DLL" 55737 has_colon=`$ECHO $path | $GREP ^.:` 55738 new_path="$path" 55739 if test "x$has_colon" = x; then 55740 # Not in mixed or Windows style, start by that. 55741 new_path=`cmd //c echo $path` 55742 fi 55743 55744 55745 input_path="$new_path" 55746 # Check if we need to convert this using DOS-style short mode. If the path 55747 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55748 # take no chances and rewrite it. 55749 # Note: m4 eats our [], so we need to use [ and ] instead. 55750 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55751 if test "x$has_forbidden_chars" != x; then 55752 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55753 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55754 fi 55755 55756 55757 windows_path="$new_path" 55758 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55759 unix_path=`$CYGPATH -u "$windows_path"` 55760 new_path="$unix_path" 55761 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55762 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55763 new_path="$unix_path" 55764 fi 55765 55766 if test "x$path" != "x$new_path"; then 55767 MSVC_DLL="$new_path" 55768 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55769 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55770 fi 55771 55772 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55773 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55774 55775 else 55776 # We're on a unix platform. Hooray! :) 55777 path="$MSVC_DLL" 55778 has_space=`$ECHO "$path" | $GREP " "` 55779 if test "x$has_space" != x; then 55780 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55781 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55782 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55783 fi 55784 55785 # Use eval to expand a potential ~ 55786 eval path="$path" 55787 if test ! -f "$path" && test ! -d "$path"; then 55788 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55789 fi 55790 55791 if test -d "$path"; then 55792 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55793 else 55794 dir="`$DIRNAME "$path"`" 55795 base="`$BASENAME "$path"`" 55796 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55797 fi 55798 fi 55799 fi 55800 55801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55802 $as_echo_n "checking for $DLL_NAME... " >&6; } 55803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55804 $as_echo "$MSVC_DLL" >&6; } 55805 else 55806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55807 $as_echo "incorrect, ignoring" >&6; } 55808 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55809 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55810 fi 55811 fi 55812 55813 fi 55814 fi 55815 55816 if test "x$MSVC_DLL" = x; then 55817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55818 $as_echo_n "checking for $DLL_NAME... " >&6; } 55819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55820 $as_echo "no" >&6; } 55821 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 55822 fi 55823 55824 MSVCR_DLL="$MSVC_DLL" 55825 fi 55826 55827 55828 55829 # Check whether --with-msvcp-dll was given. 55830 if test "${with_msvcp_dll+set}" = set; then : 55831 withval=$with_msvcp_dll; 55832 fi 55833 55834 55835 if test "x$MSVCP_NAME" != "x"; then 55836 if test "x$with_msvcp_dll" != x; then 55837 # If given explicitly by user, do not probe. If not present, fail directly. 55838 55839 DLL_NAME="$MSVCP_NAME" 55840 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 55841 METHOD="--with-msvcp-dll" 55842 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55843 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55844 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55845 55846 # Need to check if the found msvcr is correct architecture 55847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55848 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55849 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55850 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55851 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55852 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55853 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55854 CORRECT_MSVCR_ARCH="PE32 executable" 55855 else 55856 CORRECT_MSVCR_ARCH="PE32+ executable" 55857 fi 55858 else 55859 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55860 CORRECT_MSVCR_ARCH=386 55861 else 55862 CORRECT_MSVCR_ARCH=x86-64 55863 fi 55864 fi 55865 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55867 $as_echo "ok" >&6; } 55868 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55869 55870 # Only process if variable expands to non-empty 55871 55872 if test "x$MSVC_DLL" != x; then 55873 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55874 55875 # Input might be given as Windows format, start by converting to 55876 # unix format. 55877 path="$MSVC_DLL" 55878 new_path=`$CYGPATH -u "$path"` 55879 55880 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55881 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55882 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55883 # "foo.exe" is OK but "foo" is an error. 55884 # 55885 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55886 # It is also a way to make sure we got the proper file name for the real test later on. 55887 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55888 if test "x$test_shortpath" = x; then 55889 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55890 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55891 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55892 fi 55893 55894 # Call helper function which possibly converts this using DOS-style short mode. 55895 # If so, the updated path is stored in $new_path. 55896 55897 input_path="$new_path" 55898 # Check if we need to convert this using DOS-style short mode. If the path 55899 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55900 # take no chances and rewrite it. 55901 # Note: m4 eats our [], so we need to use [ and ] instead. 55902 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55903 if test "x$has_forbidden_chars" != x; then 55904 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55905 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55906 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55907 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55908 # Going to short mode and back again did indeed matter. Since short mode is 55909 # case insensitive, let's make it lowercase to improve readability. 55910 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55911 # Now convert it back to Unix-style (cygpath) 55912 input_path=`$CYGPATH -u "$shortmode_path"` 55913 new_path="$input_path" 55914 fi 55915 fi 55916 55917 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55918 if test "x$test_cygdrive_prefix" = x; then 55919 # As a simple fix, exclude /usr/bin since it's not a real path. 55920 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55921 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55922 # a path prefixed by /cygdrive for fixpath to work. 55923 new_path="$CYGWIN_ROOT_PATH$input_path" 55924 fi 55925 fi 55926 55927 55928 if test "x$path" != "x$new_path"; then 55929 MSVC_DLL="$new_path" 55930 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55931 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55932 fi 55933 55934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55935 55936 path="$MSVC_DLL" 55937 has_colon=`$ECHO $path | $GREP ^.:` 55938 new_path="$path" 55939 if test "x$has_colon" = x; then 55940 # Not in mixed or Windows style, start by that. 55941 new_path=`cmd //c echo $path` 55942 fi 55943 55944 55945 input_path="$new_path" 55946 # Check if we need to convert this using DOS-style short mode. If the path 55947 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55948 # take no chances and rewrite it. 55949 # Note: m4 eats our [], so we need to use [ and ] instead. 55950 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55951 if test "x$has_forbidden_chars" != x; then 55952 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55953 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55954 fi 55955 55956 55957 windows_path="$new_path" 55958 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55959 unix_path=`$CYGPATH -u "$windows_path"` 55960 new_path="$unix_path" 55961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55962 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55963 new_path="$unix_path" 55964 fi 55965 55966 if test "x$path" != "x$new_path"; then 55967 MSVC_DLL="$new_path" 55968 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55969 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55970 fi 55971 55972 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55973 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55974 55975 else 55976 # We're on a unix platform. Hooray! :) 55977 path="$MSVC_DLL" 55978 has_space=`$ECHO "$path" | $GREP " "` 55979 if test "x$has_space" != x; then 55980 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55981 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55982 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55983 fi 55984 55985 # Use eval to expand a potential ~ 55986 eval path="$path" 55987 if test ! -f "$path" && test ! -d "$path"; then 55988 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55989 fi 55990 55991 if test -d "$path"; then 55992 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55993 else 55994 dir="`$DIRNAME "$path"`" 55995 base="`$BASENAME "$path"`" 55996 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55997 fi 55998 fi 55999 fi 56000 56001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56002 $as_echo_n "checking for $DLL_NAME... " >&6; } 56003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56004 $as_echo "$MSVC_DLL" >&6; } 56005 else 56006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56007 $as_echo "incorrect, ignoring" >&6; } 56008 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56009 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56010 fi 56011 fi 56012 56013 if test "x$MSVC_DLL" = x; then 56014 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 56015 fi 56016 MSVCP_DLL="$MSVC_DLL" 56017 elif test "x$DEVKIT_MSVCP_DLL" != x; then 56018 56019 DLL_NAME="$MSVCP_NAME" 56020 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 56021 METHOD="devkit" 56022 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56023 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56024 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56025 56026 # Need to check if the found msvcr is correct architecture 56027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56028 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56029 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56030 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56031 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56032 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56033 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56034 CORRECT_MSVCR_ARCH="PE32 executable" 56035 else 56036 CORRECT_MSVCR_ARCH="PE32+ executable" 56037 fi 56038 else 56039 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56040 CORRECT_MSVCR_ARCH=386 56041 else 56042 CORRECT_MSVCR_ARCH=x86-64 56043 fi 56044 fi 56045 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56047 $as_echo "ok" >&6; } 56048 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56049 56050 # Only process if variable expands to non-empty 56051 56052 if test "x$MSVC_DLL" != x; then 56053 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56054 56055 # Input might be given as Windows format, start by converting to 56056 # unix format. 56057 path="$MSVC_DLL" 56058 new_path=`$CYGPATH -u "$path"` 56059 56060 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56061 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56062 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56063 # "foo.exe" is OK but "foo" is an error. 56064 # 56065 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56066 # It is also a way to make sure we got the proper file name for the real test later on. 56067 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56068 if test "x$test_shortpath" = x; then 56069 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56070 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56071 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56072 fi 56073 56074 # Call helper function which possibly converts this using DOS-style short mode. 56075 # If so, the updated path is stored in $new_path. 56076 56077 input_path="$new_path" 56078 # Check if we need to convert this using DOS-style short mode. If the path 56079 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56080 # take no chances and rewrite it. 56081 # Note: m4 eats our [], so we need to use [ and ] instead. 56082 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56083 if test "x$has_forbidden_chars" != x; then 56084 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56085 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56086 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56087 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56088 # Going to short mode and back again did indeed matter. Since short mode is 56089 # case insensitive, let's make it lowercase to improve readability. 56090 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56091 # Now convert it back to Unix-style (cygpath) 56092 input_path=`$CYGPATH -u "$shortmode_path"` 56093 new_path="$input_path" 56094 fi 56095 fi 56096 56097 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56098 if test "x$test_cygdrive_prefix" = x; then 56099 # As a simple fix, exclude /usr/bin since it's not a real path. 56100 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56101 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56102 # a path prefixed by /cygdrive for fixpath to work. 56103 new_path="$CYGWIN_ROOT_PATH$input_path" 56104 fi 56105 fi 56106 56107 56108 if test "x$path" != "x$new_path"; then 56109 MSVC_DLL="$new_path" 56110 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56111 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56112 fi 56113 56114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56115 56116 path="$MSVC_DLL" 56117 has_colon=`$ECHO $path | $GREP ^.:` 56118 new_path="$path" 56119 if test "x$has_colon" = x; then 56120 # Not in mixed or Windows style, start by that. 56121 new_path=`cmd //c echo $path` 56122 fi 56123 56124 56125 input_path="$new_path" 56126 # Check if we need to convert this using DOS-style short mode. If the path 56127 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56128 # take no chances and rewrite it. 56129 # Note: m4 eats our [], so we need to use [ and ] instead. 56130 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56131 if test "x$has_forbidden_chars" != x; then 56132 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56133 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56134 fi 56135 56136 56137 windows_path="$new_path" 56138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56139 unix_path=`$CYGPATH -u "$windows_path"` 56140 new_path="$unix_path" 56141 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56142 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56143 new_path="$unix_path" 56144 fi 56145 56146 if test "x$path" != "x$new_path"; then 56147 MSVC_DLL="$new_path" 56148 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56149 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56150 fi 56151 56152 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56153 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56154 56155 else 56156 # We're on a unix platform. Hooray! :) 56157 path="$MSVC_DLL" 56158 has_space=`$ECHO "$path" | $GREP " "` 56159 if test "x$has_space" != x; then 56160 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56161 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56162 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56163 fi 56164 56165 # Use eval to expand a potential ~ 56166 eval path="$path" 56167 if test ! -f "$path" && test ! -d "$path"; then 56168 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56169 fi 56170 56171 if test -d "$path"; then 56172 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56173 else 56174 dir="`$DIRNAME "$path"`" 56175 base="`$BASENAME "$path"`" 56176 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56177 fi 56178 fi 56179 fi 56180 56181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56182 $as_echo_n "checking for $DLL_NAME... " >&6; } 56183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56184 $as_echo "$MSVC_DLL" >&6; } 56185 else 56186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56187 $as_echo "incorrect, ignoring" >&6; } 56188 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56189 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56190 fi 56191 fi 56192 56193 if test "x$MSVC_DLL" = x; then 56194 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 56195 fi 56196 MSVCP_DLL="$MSVC_DLL" 56197 else 56198 56199 DLL_NAME="${MSVCP_NAME}" 56200 MSVC_DLL= 56201 56202 if test "x$MSVC_DLL" = x; then 56203 # Probe: Using well-known location from Visual Studio 10.0 56204 if test "x$VCINSTALLDIR" != x; then 56205 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 56206 56207 windows_path="$CYGWIN_VC_INSTALL_DIR" 56208 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56209 unix_path=`$CYGPATH -u "$windows_path"` 56210 CYGWIN_VC_INSTALL_DIR="$unix_path" 56211 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56212 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56213 CYGWIN_VC_INSTALL_DIR="$unix_path" 56214 fi 56215 56216 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56217 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 56218 else 56219 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 56220 fi 56221 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 56222 56223 DLL_NAME="$DLL_NAME" 56224 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56225 METHOD="well-known location in VCINSTALLDIR" 56226 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56227 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56228 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56229 56230 # Need to check if the found msvcr is correct architecture 56231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56232 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56233 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56235 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56236 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56237 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56238 CORRECT_MSVCR_ARCH="PE32 executable" 56239 else 56240 CORRECT_MSVCR_ARCH="PE32+ executable" 56241 fi 56242 else 56243 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56244 CORRECT_MSVCR_ARCH=386 56245 else 56246 CORRECT_MSVCR_ARCH=x86-64 56247 fi 56248 fi 56249 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56251 $as_echo "ok" >&6; } 56252 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56253 56254 # Only process if variable expands to non-empty 56255 56256 if test "x$MSVC_DLL" != x; then 56257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56258 56259 # Input might be given as Windows format, start by converting to 56260 # unix format. 56261 path="$MSVC_DLL" 56262 new_path=`$CYGPATH -u "$path"` 56263 56264 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56265 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56266 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56267 # "foo.exe" is OK but "foo" is an error. 56268 # 56269 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56270 # It is also a way to make sure we got the proper file name for the real test later on. 56271 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56272 if test "x$test_shortpath" = x; then 56273 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56274 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56275 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56276 fi 56277 56278 # Call helper function which possibly converts this using DOS-style short mode. 56279 # If so, the updated path is stored in $new_path. 56280 56281 input_path="$new_path" 56282 # Check if we need to convert this using DOS-style short mode. If the path 56283 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56284 # take no chances and rewrite it. 56285 # Note: m4 eats our [], so we need to use [ and ] instead. 56286 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56287 if test "x$has_forbidden_chars" != x; then 56288 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56289 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56290 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56291 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56292 # Going to short mode and back again did indeed matter. Since short mode is 56293 # case insensitive, let's make it lowercase to improve readability. 56294 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56295 # Now convert it back to Unix-style (cygpath) 56296 input_path=`$CYGPATH -u "$shortmode_path"` 56297 new_path="$input_path" 56298 fi 56299 fi 56300 56301 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56302 if test "x$test_cygdrive_prefix" = x; then 56303 # As a simple fix, exclude /usr/bin since it's not a real path. 56304 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56305 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56306 # a path prefixed by /cygdrive for fixpath to work. 56307 new_path="$CYGWIN_ROOT_PATH$input_path" 56308 fi 56309 fi 56310 56311 56312 if test "x$path" != "x$new_path"; then 56313 MSVC_DLL="$new_path" 56314 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56315 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56316 fi 56317 56318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56319 56320 path="$MSVC_DLL" 56321 has_colon=`$ECHO $path | $GREP ^.:` 56322 new_path="$path" 56323 if test "x$has_colon" = x; then 56324 # Not in mixed or Windows style, start by that. 56325 new_path=`cmd //c echo $path` 56326 fi 56327 56328 56329 input_path="$new_path" 56330 # Check if we need to convert this using DOS-style short mode. If the path 56331 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56332 # take no chances and rewrite it. 56333 # Note: m4 eats our [], so we need to use [ and ] instead. 56334 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56335 if test "x$has_forbidden_chars" != x; then 56336 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56337 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56338 fi 56339 56340 56341 windows_path="$new_path" 56342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56343 unix_path=`$CYGPATH -u "$windows_path"` 56344 new_path="$unix_path" 56345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56347 new_path="$unix_path" 56348 fi 56349 56350 if test "x$path" != "x$new_path"; then 56351 MSVC_DLL="$new_path" 56352 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56353 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56354 fi 56355 56356 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56357 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56358 56359 else 56360 # We're on a unix platform. Hooray! :) 56361 path="$MSVC_DLL" 56362 has_space=`$ECHO "$path" | $GREP " "` 56363 if test "x$has_space" != x; then 56364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56365 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56366 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56367 fi 56368 56369 # Use eval to expand a potential ~ 56370 eval path="$path" 56371 if test ! -f "$path" && test ! -d "$path"; then 56372 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56373 fi 56374 56375 if test -d "$path"; then 56376 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56377 else 56378 dir="`$DIRNAME "$path"`" 56379 base="`$BASENAME "$path"`" 56380 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56381 fi 56382 fi 56383 fi 56384 56385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56386 $as_echo_n "checking for $DLL_NAME... " >&6; } 56387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56388 $as_echo "$MSVC_DLL" >&6; } 56389 else 56390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56391 $as_echo "incorrect, ignoring" >&6; } 56392 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56393 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56394 fi 56395 fi 56396 56397 fi 56398 fi 56399 56400 if test "x$MSVC_DLL" = x; then 56401 # Probe: Check in the Boot JDK directory. 56402 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 56403 56404 DLL_NAME="$DLL_NAME" 56405 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56406 METHOD="well-known location in Boot JDK" 56407 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56408 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56409 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56410 56411 # Need to check if the found msvcr is correct architecture 56412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56413 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56414 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56415 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56416 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56417 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56418 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56419 CORRECT_MSVCR_ARCH="PE32 executable" 56420 else 56421 CORRECT_MSVCR_ARCH="PE32+ executable" 56422 fi 56423 else 56424 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56425 CORRECT_MSVCR_ARCH=386 56426 else 56427 CORRECT_MSVCR_ARCH=x86-64 56428 fi 56429 fi 56430 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56432 $as_echo "ok" >&6; } 56433 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56434 56435 # Only process if variable expands to non-empty 56436 56437 if test "x$MSVC_DLL" != x; then 56438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56439 56440 # Input might be given as Windows format, start by converting to 56441 # unix format. 56442 path="$MSVC_DLL" 56443 new_path=`$CYGPATH -u "$path"` 56444 56445 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56446 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56447 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56448 # "foo.exe" is OK but "foo" is an error. 56449 # 56450 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56451 # It is also a way to make sure we got the proper file name for the real test later on. 56452 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56453 if test "x$test_shortpath" = x; then 56454 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56455 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56456 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56457 fi 56458 56459 # Call helper function which possibly converts this using DOS-style short mode. 56460 # If so, the updated path is stored in $new_path. 56461 56462 input_path="$new_path" 56463 # Check if we need to convert this using DOS-style short mode. If the path 56464 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56465 # take no chances and rewrite it. 56466 # Note: m4 eats our [], so we need to use [ and ] instead. 56467 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56468 if test "x$has_forbidden_chars" != x; then 56469 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56470 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56471 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56472 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56473 # Going to short mode and back again did indeed matter. Since short mode is 56474 # case insensitive, let's make it lowercase to improve readability. 56475 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56476 # Now convert it back to Unix-style (cygpath) 56477 input_path=`$CYGPATH -u "$shortmode_path"` 56478 new_path="$input_path" 56479 fi 56480 fi 56481 56482 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56483 if test "x$test_cygdrive_prefix" = x; then 56484 # As a simple fix, exclude /usr/bin since it's not a real path. 56485 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56486 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56487 # a path prefixed by /cygdrive for fixpath to work. 56488 new_path="$CYGWIN_ROOT_PATH$input_path" 56489 fi 56490 fi 56491 56492 56493 if test "x$path" != "x$new_path"; then 56494 MSVC_DLL="$new_path" 56495 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56496 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56497 fi 56498 56499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56500 56501 path="$MSVC_DLL" 56502 has_colon=`$ECHO $path | $GREP ^.:` 56503 new_path="$path" 56504 if test "x$has_colon" = x; then 56505 # Not in mixed or Windows style, start by that. 56506 new_path=`cmd //c echo $path` 56507 fi 56508 56509 56510 input_path="$new_path" 56511 # Check if we need to convert this using DOS-style short mode. If the path 56512 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56513 # take no chances and rewrite it. 56514 # Note: m4 eats our [], so we need to use [ and ] instead. 56515 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56516 if test "x$has_forbidden_chars" != x; then 56517 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56518 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56519 fi 56520 56521 56522 windows_path="$new_path" 56523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56524 unix_path=`$CYGPATH -u "$windows_path"` 56525 new_path="$unix_path" 56526 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56527 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56528 new_path="$unix_path" 56529 fi 56530 56531 if test "x$path" != "x$new_path"; then 56532 MSVC_DLL="$new_path" 56533 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56534 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56535 fi 56536 56537 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56538 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56539 56540 else 56541 # We're on a unix platform. Hooray! :) 56542 path="$MSVC_DLL" 56543 has_space=`$ECHO "$path" | $GREP " "` 56544 if test "x$has_space" != x; then 56545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56546 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56547 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56548 fi 56549 56550 # Use eval to expand a potential ~ 56551 eval path="$path" 56552 if test ! -f "$path" && test ! -d "$path"; then 56553 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56554 fi 56555 56556 if test -d "$path"; then 56557 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56558 else 56559 dir="`$DIRNAME "$path"`" 56560 base="`$BASENAME "$path"`" 56561 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56562 fi 56563 fi 56564 fi 56565 56566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56567 $as_echo_n "checking for $DLL_NAME... " >&6; } 56568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56569 $as_echo "$MSVC_DLL" >&6; } 56570 else 56571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56572 $as_echo "incorrect, ignoring" >&6; } 56573 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56574 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56575 fi 56576 fi 56577 56578 fi 56579 56580 if test "x$MSVC_DLL" = x; then 56581 # Probe: Look in the Windows system32 directory 56582 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 56583 56584 windows_path="$CYGWIN_SYSTEMROOT" 56585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56586 unix_path=`$CYGPATH -u "$windows_path"` 56587 CYGWIN_SYSTEMROOT="$unix_path" 56588 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56589 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56590 CYGWIN_SYSTEMROOT="$unix_path" 56591 fi 56592 56593 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 56594 56595 DLL_NAME="$DLL_NAME" 56596 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56597 METHOD="well-known location in SYSTEMROOT" 56598 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56599 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56600 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56601 56602 # Need to check if the found msvcr is correct architecture 56603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56604 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56605 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56607 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56608 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56609 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56610 CORRECT_MSVCR_ARCH="PE32 executable" 56611 else 56612 CORRECT_MSVCR_ARCH="PE32+ executable" 56613 fi 56614 else 56615 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56616 CORRECT_MSVCR_ARCH=386 56617 else 56618 CORRECT_MSVCR_ARCH=x86-64 56619 fi 56620 fi 56621 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56623 $as_echo "ok" >&6; } 56624 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56625 56626 # Only process if variable expands to non-empty 56627 56628 if test "x$MSVC_DLL" != x; then 56629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56630 56631 # Input might be given as Windows format, start by converting to 56632 # unix format. 56633 path="$MSVC_DLL" 56634 new_path=`$CYGPATH -u "$path"` 56635 56636 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56637 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56638 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56639 # "foo.exe" is OK but "foo" is an error. 56640 # 56641 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56642 # It is also a way to make sure we got the proper file name for the real test later on. 56643 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56644 if test "x$test_shortpath" = x; then 56645 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56646 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56647 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56648 fi 56649 56650 # Call helper function which possibly converts this using DOS-style short mode. 56651 # If so, the updated path is stored in $new_path. 56652 56653 input_path="$new_path" 56654 # Check if we need to convert this using DOS-style short mode. If the path 56655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56656 # take no chances and rewrite it. 56657 # Note: m4 eats our [], so we need to use [ and ] instead. 56658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56659 if test "x$has_forbidden_chars" != x; then 56660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56661 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56662 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56663 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56664 # Going to short mode and back again did indeed matter. Since short mode is 56665 # case insensitive, let's make it lowercase to improve readability. 56666 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56667 # Now convert it back to Unix-style (cygpath) 56668 input_path=`$CYGPATH -u "$shortmode_path"` 56669 new_path="$input_path" 56670 fi 56671 fi 56672 56673 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56674 if test "x$test_cygdrive_prefix" = x; then 56675 # As a simple fix, exclude /usr/bin since it's not a real path. 56676 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56677 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56678 # a path prefixed by /cygdrive for fixpath to work. 56679 new_path="$CYGWIN_ROOT_PATH$input_path" 56680 fi 56681 fi 56682 56683 56684 if test "x$path" != "x$new_path"; then 56685 MSVC_DLL="$new_path" 56686 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56687 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56688 fi 56689 56690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56691 56692 path="$MSVC_DLL" 56693 has_colon=`$ECHO $path | $GREP ^.:` 56694 new_path="$path" 56695 if test "x$has_colon" = x; then 56696 # Not in mixed or Windows style, start by that. 56697 new_path=`cmd //c echo $path` 56698 fi 56699 56700 56701 input_path="$new_path" 56702 # Check if we need to convert this using DOS-style short mode. If the path 56703 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56704 # take no chances and rewrite it. 56705 # Note: m4 eats our [], so we need to use [ and ] instead. 56706 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56707 if test "x$has_forbidden_chars" != x; then 56708 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56709 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56710 fi 56711 56712 56713 windows_path="$new_path" 56714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56715 unix_path=`$CYGPATH -u "$windows_path"` 56716 new_path="$unix_path" 56717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56718 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56719 new_path="$unix_path" 56720 fi 56721 56722 if test "x$path" != "x$new_path"; then 56723 MSVC_DLL="$new_path" 56724 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56725 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56726 fi 56727 56728 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56729 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56730 56731 else 56732 # We're on a unix platform. Hooray! :) 56733 path="$MSVC_DLL" 56734 has_space=`$ECHO "$path" | $GREP " "` 56735 if test "x$has_space" != x; then 56736 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56737 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56738 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56739 fi 56740 56741 # Use eval to expand a potential ~ 56742 eval path="$path" 56743 if test ! -f "$path" && test ! -d "$path"; then 56744 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56745 fi 56746 56747 if test -d "$path"; then 56748 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56749 else 56750 dir="`$DIRNAME "$path"`" 56751 base="`$BASENAME "$path"`" 56752 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56753 fi 56754 fi 56755 fi 56756 56757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56758 $as_echo_n "checking for $DLL_NAME... " >&6; } 56759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56760 $as_echo "$MSVC_DLL" >&6; } 56761 else 56762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56763 $as_echo "incorrect, ignoring" >&6; } 56764 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56765 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56766 fi 56767 fi 56768 56769 fi 56770 56771 if test "x$MSVC_DLL" = x; then 56772 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 56773 if test "x$VS100COMNTOOLS" != x; then 56774 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 56775 56776 windows_path="$CYGWIN_VS_TOOLS_DIR" 56777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56778 unix_path=`$CYGPATH -u "$windows_path"` 56779 CYGWIN_VS_TOOLS_DIR="$unix_path" 56780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56781 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56782 CYGWIN_VS_TOOLS_DIR="$unix_path" 56783 fi 56784 56785 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56786 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56787 | $GREP -i /x64/ | $HEAD --lines 1` 56788 else 56789 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56790 | $GREP -i /x86/ | $HEAD --lines 1` 56791 fi 56792 56793 DLL_NAME="$DLL_NAME" 56794 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56795 METHOD="search of VS100COMNTOOLS" 56796 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56797 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56798 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56799 56800 # Need to check if the found msvcr is correct architecture 56801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56802 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56803 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56805 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56806 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56807 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56808 CORRECT_MSVCR_ARCH="PE32 executable" 56809 else 56810 CORRECT_MSVCR_ARCH="PE32+ executable" 56811 fi 56812 else 56813 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56814 CORRECT_MSVCR_ARCH=386 56815 else 56816 CORRECT_MSVCR_ARCH=x86-64 56817 fi 56818 fi 56819 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56821 $as_echo "ok" >&6; } 56822 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56823 56824 # Only process if variable expands to non-empty 56825 56826 if test "x$MSVC_DLL" != x; then 56827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56828 56829 # Input might be given as Windows format, start by converting to 56830 # unix format. 56831 path="$MSVC_DLL" 56832 new_path=`$CYGPATH -u "$path"` 56833 56834 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56835 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56836 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56837 # "foo.exe" is OK but "foo" is an error. 56838 # 56839 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56840 # It is also a way to make sure we got the proper file name for the real test later on. 56841 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56842 if test "x$test_shortpath" = x; then 56843 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56844 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56845 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56846 fi 56847 56848 # Call helper function which possibly converts this using DOS-style short mode. 56849 # If so, the updated path is stored in $new_path. 56850 56851 input_path="$new_path" 56852 # Check if we need to convert this using DOS-style short mode. If the path 56853 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56854 # take no chances and rewrite it. 56855 # Note: m4 eats our [], so we need to use [ and ] instead. 56856 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56857 if test "x$has_forbidden_chars" != x; then 56858 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56859 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56860 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56861 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56862 # Going to short mode and back again did indeed matter. Since short mode is 56863 # case insensitive, let's make it lowercase to improve readability. 56864 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56865 # Now convert it back to Unix-style (cygpath) 56866 input_path=`$CYGPATH -u "$shortmode_path"` 56867 new_path="$input_path" 56868 fi 56869 fi 56870 56871 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56872 if test "x$test_cygdrive_prefix" = x; then 56873 # As a simple fix, exclude /usr/bin since it's not a real path. 56874 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56875 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56876 # a path prefixed by /cygdrive for fixpath to work. 56877 new_path="$CYGWIN_ROOT_PATH$input_path" 56878 fi 56879 fi 56880 56881 56882 if test "x$path" != "x$new_path"; then 56883 MSVC_DLL="$new_path" 56884 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56885 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56886 fi 56887 56888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56889 56890 path="$MSVC_DLL" 56891 has_colon=`$ECHO $path | $GREP ^.:` 56892 new_path="$path" 56893 if test "x$has_colon" = x; then 56894 # Not in mixed or Windows style, start by that. 56895 new_path=`cmd //c echo $path` 56896 fi 56897 56898 56899 input_path="$new_path" 56900 # Check if we need to convert this using DOS-style short mode. If the path 56901 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56902 # take no chances and rewrite it. 56903 # Note: m4 eats our [], so we need to use [ and ] instead. 56904 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56905 if test "x$has_forbidden_chars" != x; then 56906 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56907 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56908 fi 56909 56910 56911 windows_path="$new_path" 56912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56913 unix_path=`$CYGPATH -u "$windows_path"` 56914 new_path="$unix_path" 56915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56916 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56917 new_path="$unix_path" 56918 fi 56919 56920 if test "x$path" != "x$new_path"; then 56921 MSVC_DLL="$new_path" 56922 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56923 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56924 fi 56925 56926 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56927 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56928 56929 else 56930 # We're on a unix platform. Hooray! :) 56931 path="$MSVC_DLL" 56932 has_space=`$ECHO "$path" | $GREP " "` 56933 if test "x$has_space" != x; then 56934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56935 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56936 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56937 fi 56938 56939 # Use eval to expand a potential ~ 56940 eval path="$path" 56941 if test ! -f "$path" && test ! -d "$path"; then 56942 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56943 fi 56944 56945 if test -d "$path"; then 56946 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56947 else 56948 dir="`$DIRNAME "$path"`" 56949 base="`$BASENAME "$path"`" 56950 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56951 fi 56952 fi 56953 fi 56954 56955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56956 $as_echo_n "checking for $DLL_NAME... " >&6; } 56957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56958 $as_echo "$MSVC_DLL" >&6; } 56959 else 56960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56961 $as_echo "incorrect, ignoring" >&6; } 56962 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56963 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56964 fi 56965 fi 56966 56967 fi 56968 fi 56969 56970 if test "x$MSVC_DLL" = x; then 56971 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 56972 # (This was the original behaviour; kept since it might turn something up) 56973 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 56974 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56975 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56976 | $GREP x64 | $HEAD --lines 1` 56977 else 56978 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56979 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 56980 if test "x$POSSIBLE_MSVC_DLL" = x; then 56981 # We're grasping at straws now... 56982 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56983 | $HEAD --lines 1` 56984 fi 56985 fi 56986 56987 56988 DLL_NAME="$DLL_NAME" 56989 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56990 METHOD="search of VCINSTALLDIR" 56991 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56992 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56993 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56994 56995 # Need to check if the found msvcr is correct architecture 56996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56997 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56998 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57000 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57001 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57002 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57003 CORRECT_MSVCR_ARCH="PE32 executable" 57004 else 57005 CORRECT_MSVCR_ARCH="PE32+ executable" 57006 fi 57007 else 57008 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57009 CORRECT_MSVCR_ARCH=386 57010 else 57011 CORRECT_MSVCR_ARCH=x86-64 57012 fi 57013 fi 57014 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57016 $as_echo "ok" >&6; } 57017 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57018 57019 # Only process if variable expands to non-empty 57020 57021 if test "x$MSVC_DLL" != x; then 57022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57023 57024 # Input might be given as Windows format, start by converting to 57025 # unix format. 57026 path="$MSVC_DLL" 57027 new_path=`$CYGPATH -u "$path"` 57028 57029 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57030 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57031 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57032 # "foo.exe" is OK but "foo" is an error. 57033 # 57034 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57035 # It is also a way to make sure we got the proper file name for the real test later on. 57036 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57037 if test "x$test_shortpath" = x; then 57038 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57039 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57040 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57041 fi 57042 57043 # Call helper function which possibly converts this using DOS-style short mode. 57044 # If so, the updated path is stored in $new_path. 57045 57046 input_path="$new_path" 57047 # Check if we need to convert this using DOS-style short mode. If the path 57048 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57049 # take no chances and rewrite it. 57050 # Note: m4 eats our [], so we need to use [ and ] instead. 57051 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57052 if test "x$has_forbidden_chars" != x; then 57053 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57054 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57055 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57056 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57057 # Going to short mode and back again did indeed matter. Since short mode is 57058 # case insensitive, let's make it lowercase to improve readability. 57059 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57060 # Now convert it back to Unix-style (cygpath) 57061 input_path=`$CYGPATH -u "$shortmode_path"` 57062 new_path="$input_path" 57063 fi 57064 fi 57065 57066 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57067 if test "x$test_cygdrive_prefix" = x; then 57068 # As a simple fix, exclude /usr/bin since it's not a real path. 57069 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57070 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57071 # a path prefixed by /cygdrive for fixpath to work. 57072 new_path="$CYGWIN_ROOT_PATH$input_path" 57073 fi 57074 fi 57075 57076 57077 if test "x$path" != "x$new_path"; then 57078 MSVC_DLL="$new_path" 57079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57080 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57081 fi 57082 57083 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57084 57085 path="$MSVC_DLL" 57086 has_colon=`$ECHO $path | $GREP ^.:` 57087 new_path="$path" 57088 if test "x$has_colon" = x; then 57089 # Not in mixed or Windows style, start by that. 57090 new_path=`cmd //c echo $path` 57091 fi 57092 57093 57094 input_path="$new_path" 57095 # Check if we need to convert this using DOS-style short mode. If the path 57096 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57097 # take no chances and rewrite it. 57098 # Note: m4 eats our [], so we need to use [ and ] instead. 57099 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57100 if test "x$has_forbidden_chars" != x; then 57101 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57102 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57103 fi 57104 57105 57106 windows_path="$new_path" 57107 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57108 unix_path=`$CYGPATH -u "$windows_path"` 57109 new_path="$unix_path" 57110 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57111 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57112 new_path="$unix_path" 57113 fi 57114 57115 if test "x$path" != "x$new_path"; then 57116 MSVC_DLL="$new_path" 57117 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57118 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57119 fi 57120 57121 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57122 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57123 57124 else 57125 # We're on a unix platform. Hooray! :) 57126 path="$MSVC_DLL" 57127 has_space=`$ECHO "$path" | $GREP " "` 57128 if test "x$has_space" != x; then 57129 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57130 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57131 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57132 fi 57133 57134 # Use eval to expand a potential ~ 57135 eval path="$path" 57136 if test ! -f "$path" && test ! -d "$path"; then 57137 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57138 fi 57139 57140 if test -d "$path"; then 57141 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57142 else 57143 dir="`$DIRNAME "$path"`" 57144 base="`$BASENAME "$path"`" 57145 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57146 fi 57147 fi 57148 fi 57149 57150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57151 $as_echo_n "checking for $DLL_NAME... " >&6; } 57152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57153 $as_echo "$MSVC_DLL" >&6; } 57154 else 57155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57156 $as_echo "incorrect, ignoring" >&6; } 57157 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57158 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57159 fi 57160 fi 57161 57162 fi 57163 fi 57164 57165 if test "x$MSVC_DLL" = x; then 57166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57167 $as_echo_n "checking for $DLL_NAME... " >&6; } 57168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57169 $as_echo "no" >&6; } 57170 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 57171 fi 57172 57173 MSVCP_DLL="$MSVC_DLL" 57174 fi 57175 57176 fi 57177 57178 fi 57179 57180 57181 if test "x$NEEDS_LIB_X11" = xfalse; then 57182 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 57183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 57184 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 57185 fi 57186 X_CFLAGS= 57187 X_LIBS= 57188 else 57189 57190 if test "x${with_x}" = xno; then 57191 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 57192 fi 57193 57194 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 57195 # The user has specified a X11 base directory. Use it for includes and 57196 # libraries, unless explicitly overridden. 57197 if test "x$x_includes" = xNONE; then 57198 x_includes="${with_x}/include" 57199 fi 57200 if test "x$x_libraries" = xNONE; then 57201 x_libraries="${with_x}/lib" 57202 fi 57203 else 57204 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 57205 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 57206 # --x-libraries for the sysroot, if that seems to be correct. 57207 if test "x$SYSROOT" != "x"; then 57208 if test "x$x_includes" = xNONE; then 57209 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 57210 x_includes="$SYSROOT/usr/X11R6/include" 57211 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 57212 x_includes="$SYSROOT/usr/include" 57213 fi 57214 fi 57215 if test "x$x_libraries" = xNONE; then 57216 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 57217 x_libraries="$SYSROOT/usr/X11R6/lib" 57218 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57219 x_libraries="$SYSROOT/usr/lib64" 57220 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 57221 x_libraries="$SYSROOT/usr/lib" 57222 fi 57223 fi 57224 fi 57225 fi 57226 57227 # Now let autoconf do it's magic 57228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 57229 $as_echo_n "checking for X... " >&6; } 57230 57231 57232 # Check whether --with-x was given. 57233 if test "${with_x+set}" = set; then : 57234 withval=$with_x; 57235 fi 57236 57237 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 57238 if test "x$with_x" = xno; then 57239 # The user explicitly disabled X. 57240 have_x=disabled 57241 else 57242 case $x_includes,$x_libraries in #( 57243 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 57244 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 57245 $as_echo_n "(cached) " >&6 57246 else 57247 # One or both of the vars are not set, and there is no cached value. 57248 ac_x_includes=no ac_x_libraries=no 57249 rm -f -r conftest.dir 57250 if mkdir conftest.dir; then 57251 cd conftest.dir 57252 cat >Imakefile <<'_ACEOF' 57253 incroot: 57254 @echo incroot='${INCROOT}' 57255 usrlibdir: 57256 @echo usrlibdir='${USRLIBDIR}' 57257 libdir: 57258 @echo libdir='${LIBDIR}' 57259 _ACEOF 57260 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 57261 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 57262 for ac_var in incroot usrlibdir libdir; do 57263 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 57264 done 57265 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 57266 for ac_extension in a so sl dylib la dll; do 57267 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 57268 test -f "$ac_im_libdir/libX11.$ac_extension"; then 57269 ac_im_usrlibdir=$ac_im_libdir; break 57270 fi 57271 done 57272 # Screen out bogus values from the imake configuration. They are 57273 # bogus both because they are the default anyway, and because 57274 # using them would break gcc on systems where it needs fixed includes. 57275 case $ac_im_incroot in 57276 /usr/include) ac_x_includes= ;; 57277 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 57278 esac 57279 case $ac_im_usrlibdir in 57280 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 57281 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 57282 esac 57283 fi 57284 cd .. 57285 rm -f -r conftest.dir 57286 fi 57287 57288 # Standard set of common directories for X headers. 57289 # Check X11 before X11Rn because it is often a symlink to the current release. 57290 ac_x_header_dirs=' 57291 /usr/X11/include 57292 /usr/X11R7/include 57293 /usr/X11R6/include 57294 /usr/X11R5/include 57295 /usr/X11R4/include 57296 57297 /usr/include/X11 57298 /usr/include/X11R7 57299 /usr/include/X11R6 57300 /usr/include/X11R5 57301 /usr/include/X11R4 57302 57303 /usr/local/X11/include 57304 /usr/local/X11R7/include 57305 /usr/local/X11R6/include 57306 /usr/local/X11R5/include 57307 /usr/local/X11R4/include 57308 57309 /usr/local/include/X11 57310 /usr/local/include/X11R7 57311 /usr/local/include/X11R6 57312 /usr/local/include/X11R5 57313 /usr/local/include/X11R4 57314 57315 /usr/X386/include 57316 /usr/x386/include 57317 /usr/XFree86/include/X11 57318 57319 /usr/include 57320 /usr/local/include 57321 /usr/unsupported/include 57322 /usr/athena/include 57323 /usr/local/x11r5/include 57324 /usr/lpp/Xamples/include 57325 57326 /usr/openwin/include 57327 /usr/openwin/share/include' 57328 57329 if test "$ac_x_includes" = no; then 57330 # Guess where to find include files, by looking for Xlib.h. 57331 # First, try using that file with no special directory specified. 57332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57333 /* end confdefs.h. */ 57334 #include <X11/Xlib.h> 57335 _ACEOF 57336 if ac_fn_cxx_try_cpp "$LINENO"; then : 57337 # We can compile using X headers with no special include directory. 57338 ac_x_includes= 57339 else 57340 for ac_dir in $ac_x_header_dirs; do 57341 if test -r "$ac_dir/X11/Xlib.h"; then 57342 ac_x_includes=$ac_dir 57343 break 57344 fi 57345 done 57346 fi 57347 rm -f conftest.err conftest.i conftest.$ac_ext 57348 fi # $ac_x_includes = no 57349 57350 if test "$ac_x_libraries" = no; then 57351 # Check for the libraries. 57352 # See if we find them without any special options. 57353 # Don't add to $LIBS permanently. 57354 ac_save_LIBS=$LIBS 57355 LIBS="-lX11 $LIBS" 57356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57357 /* end confdefs.h. */ 57358 #include <X11/Xlib.h> 57359 int 57360 main () 57361 { 57362 XrmInitialize () 57363 ; 57364 return 0; 57365 } 57366 _ACEOF 57367 if ac_fn_cxx_try_link "$LINENO"; then : 57368 LIBS=$ac_save_LIBS 57369 # We can link X programs with no special library path. 57370 ac_x_libraries= 57371 else 57372 LIBS=$ac_save_LIBS 57373 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 57374 do 57375 # Don't even attempt the hair of trying to link an X program! 57376 for ac_extension in a so sl dylib la dll; do 57377 if test -r "$ac_dir/libX11.$ac_extension"; then 57378 ac_x_libraries=$ac_dir 57379 break 2 57380 fi 57381 done 57382 done 57383 fi 57384 rm -f core conftest.err conftest.$ac_objext \ 57385 conftest$ac_exeext conftest.$ac_ext 57386 fi # $ac_x_libraries = no 57387 57388 case $ac_x_includes,$ac_x_libraries in #( 57389 no,* | *,no | *\'*) 57390 # Didn't find X, or a directory has "'" in its name. 57391 ac_cv_have_x="have_x=no";; #( 57392 *) 57393 # Record where we found X for the cache. 57394 ac_cv_have_x="have_x=yes\ 57395 ac_x_includes='$ac_x_includes'\ 57396 ac_x_libraries='$ac_x_libraries'" 57397 esac 57398 fi 57399 ;; #( 57400 *) have_x=yes;; 57401 esac 57402 eval "$ac_cv_have_x" 57403 fi # $with_x != no 57404 57405 if test "$have_x" != yes; then 57406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 57407 $as_echo "$have_x" >&6; } 57408 no_x=yes 57409 else 57410 # If each of the values was on the command line, it overrides each guess. 57411 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 57412 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 57413 # Update the cache value to reflect the command line values. 57414 ac_cv_have_x="have_x=yes\ 57415 ac_x_includes='$x_includes'\ 57416 ac_x_libraries='$x_libraries'" 57417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 57418 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 57419 fi 57420 57421 if test "$no_x" = yes; then 57422 # Not all programs may use this symbol, but it does not hurt to define it. 57423 57424 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 57425 57426 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 57427 else 57428 if test -n "$x_includes"; then 57429 X_CFLAGS="$X_CFLAGS -I$x_includes" 57430 fi 57431 57432 # It would also be nice to do this for all -L options, not just this one. 57433 if test -n "$x_libraries"; then 57434 X_LIBS="$X_LIBS -L$x_libraries" 57435 # For Solaris; some versions of Sun CC require a space after -R and 57436 # others require no space. Words are not sufficient . . . . 57437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 57438 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 57439 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 57440 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 57441 ac_cxx_werror_flag=yes 57442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57443 /* end confdefs.h. */ 57444 57445 int 57446 main () 57447 { 57448 57449 ; 57450 return 0; 57451 } 57452 _ACEOF 57453 if ac_fn_cxx_try_link "$LINENO"; then : 57454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57455 $as_echo "no" >&6; } 57456 X_LIBS="$X_LIBS -R$x_libraries" 57457 else 57458 LIBS="$ac_xsave_LIBS -R $x_libraries" 57459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57460 /* end confdefs.h. */ 57461 57462 int 57463 main () 57464 { 57465 57466 ; 57467 return 0; 57468 } 57469 _ACEOF 57470 if ac_fn_cxx_try_link "$LINENO"; then : 57471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57472 $as_echo "yes" >&6; } 57473 X_LIBS="$X_LIBS -R $x_libraries" 57474 else 57475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 57476 $as_echo "neither works" >&6; } 57477 fi 57478 rm -f core conftest.err conftest.$ac_objext \ 57479 conftest$ac_exeext conftest.$ac_ext 57480 fi 57481 rm -f core conftest.err conftest.$ac_objext \ 57482 conftest$ac_exeext conftest.$ac_ext 57483 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 57484 LIBS=$ac_xsave_LIBS 57485 fi 57486 57487 # Check for system-dependent libraries X programs must link with. 57488 # Do this before checking for the system-independent R6 libraries 57489 # (-lICE), since we may need -lsocket or whatever for X linking. 57490 57491 if test "$ISC" = yes; then 57492 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 57493 else 57494 # Martyn Johnson says this is needed for Ultrix, if the X 57495 # libraries were built with DECnet support. And Karl Berry says 57496 # the Alpha needs dnet_stub (dnet does not exist). 57497 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 57498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57499 /* end confdefs.h. */ 57500 57501 /* Override any GCC internal prototype to avoid an error. 57502 Use char because int might match the return type of a GCC 57503 builtin and then its argument prototype would still apply. */ 57504 #ifdef __cplusplus 57505 extern "C" 57506 #endif 57507 char XOpenDisplay (); 57508 int 57509 main () 57510 { 57511 return XOpenDisplay (); 57512 ; 57513 return 0; 57514 } 57515 _ACEOF 57516 if ac_fn_cxx_try_link "$LINENO"; then : 57517 57518 else 57519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 57520 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 57521 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 57522 $as_echo_n "(cached) " >&6 57523 else 57524 ac_check_lib_save_LIBS=$LIBS 57525 LIBS="-ldnet $LIBS" 57526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57527 /* end confdefs.h. */ 57528 57529 /* Override any GCC internal prototype to avoid an error. 57530 Use char because int might match the return type of a GCC 57531 builtin and then its argument prototype would still apply. */ 57532 #ifdef __cplusplus 57533 extern "C" 57534 #endif 57535 char dnet_ntoa (); 57536 int 57537 main () 57538 { 57539 return dnet_ntoa (); 57540 ; 57541 return 0; 57542 } 57543 _ACEOF 57544 if ac_fn_cxx_try_link "$LINENO"; then : 57545 ac_cv_lib_dnet_dnet_ntoa=yes 57546 else 57547 ac_cv_lib_dnet_dnet_ntoa=no 57548 fi 57549 rm -f core conftest.err conftest.$ac_objext \ 57550 conftest$ac_exeext conftest.$ac_ext 57551 LIBS=$ac_check_lib_save_LIBS 57552 fi 57553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 57554 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 57555 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 57556 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 57557 fi 57558 57559 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 57560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 57561 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 57562 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 57563 $as_echo_n "(cached) " >&6 57564 else 57565 ac_check_lib_save_LIBS=$LIBS 57566 LIBS="-ldnet_stub $LIBS" 57567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57568 /* end confdefs.h. */ 57569 57570 /* Override any GCC internal prototype to avoid an error. 57571 Use char because int might match the return type of a GCC 57572 builtin and then its argument prototype would still apply. */ 57573 #ifdef __cplusplus 57574 extern "C" 57575 #endif 57576 char dnet_ntoa (); 57577 int 57578 main () 57579 { 57580 return dnet_ntoa (); 57581 ; 57582 return 0; 57583 } 57584 _ACEOF 57585 if ac_fn_cxx_try_link "$LINENO"; then : 57586 ac_cv_lib_dnet_stub_dnet_ntoa=yes 57587 else 57588 ac_cv_lib_dnet_stub_dnet_ntoa=no 57589 fi 57590 rm -f core conftest.err conftest.$ac_objext \ 57591 conftest$ac_exeext conftest.$ac_ext 57592 LIBS=$ac_check_lib_save_LIBS 57593 fi 57594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 57595 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 57596 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 57597 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 57598 fi 57599 57600 fi 57601 fi 57602 rm -f core conftest.err conftest.$ac_objext \ 57603 conftest$ac_exeext conftest.$ac_ext 57604 LIBS="$ac_xsave_LIBS" 57605 57606 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 57607 # to get the SysV transport functions. 57608 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 57609 # needs -lnsl. 57610 # The nsl library prevents programs from opening the X display 57611 # on Irix 5.2, according to T.E. Dickey. 57612 # The functions gethostbyname, getservbyname, and inet_addr are 57613 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 57614 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 57615 if test "x$ac_cv_func_gethostbyname" = xyes; then : 57616 57617 fi 57618 57619 if test $ac_cv_func_gethostbyname = no; then 57620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 57621 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 57622 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 57623 $as_echo_n "(cached) " >&6 57624 else 57625 ac_check_lib_save_LIBS=$LIBS 57626 LIBS="-lnsl $LIBS" 57627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57628 /* end confdefs.h. */ 57629 57630 /* Override any GCC internal prototype to avoid an error. 57631 Use char because int might match the return type of a GCC 57632 builtin and then its argument prototype would still apply. */ 57633 #ifdef __cplusplus 57634 extern "C" 57635 #endif 57636 char gethostbyname (); 57637 int 57638 main () 57639 { 57640 return gethostbyname (); 57641 ; 57642 return 0; 57643 } 57644 _ACEOF 57645 if ac_fn_cxx_try_link "$LINENO"; then : 57646 ac_cv_lib_nsl_gethostbyname=yes 57647 else 57648 ac_cv_lib_nsl_gethostbyname=no 57649 fi 57650 rm -f core conftest.err conftest.$ac_objext \ 57651 conftest$ac_exeext conftest.$ac_ext 57652 LIBS=$ac_check_lib_save_LIBS 57653 fi 57654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 57655 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 57656 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 57657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 57658 fi 57659 57660 if test $ac_cv_lib_nsl_gethostbyname = no; then 57661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 57662 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 57663 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 57664 $as_echo_n "(cached) " >&6 57665 else 57666 ac_check_lib_save_LIBS=$LIBS 57667 LIBS="-lbsd $LIBS" 57668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57669 /* end confdefs.h. */ 57670 57671 /* Override any GCC internal prototype to avoid an error. 57672 Use char because int might match the return type of a GCC 57673 builtin and then its argument prototype would still apply. */ 57674 #ifdef __cplusplus 57675 extern "C" 57676 #endif 57677 char gethostbyname (); 57678 int 57679 main () 57680 { 57681 return gethostbyname (); 57682 ; 57683 return 0; 57684 } 57685 _ACEOF 57686 if ac_fn_cxx_try_link "$LINENO"; then : 57687 ac_cv_lib_bsd_gethostbyname=yes 57688 else 57689 ac_cv_lib_bsd_gethostbyname=no 57690 fi 57691 rm -f core conftest.err conftest.$ac_objext \ 57692 conftest$ac_exeext conftest.$ac_ext 57693 LIBS=$ac_check_lib_save_LIBS 57694 fi 57695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 57696 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 57697 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 57698 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 57699 fi 57700 57701 fi 57702 fi 57703 57704 # lieder@skyler.mavd.honeywell.com says without -lsocket, 57705 # socket/setsockopt and other routines are undefined under SCO ODT 57706 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 57707 # on later versions), says Simon Leinen: it contains gethostby* 57708 # variants that don't use the name server (or something). -lsocket 57709 # must be given before -lnsl if both are needed. We assume that 57710 # if connect needs -lnsl, so does gethostbyname. 57711 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 57712 if test "x$ac_cv_func_connect" = xyes; then : 57713 57714 fi 57715 57716 if test $ac_cv_func_connect = no; then 57717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 57718 $as_echo_n "checking for connect in -lsocket... " >&6; } 57719 if ${ac_cv_lib_socket_connect+:} false; then : 57720 $as_echo_n "(cached) " >&6 57721 else 57722 ac_check_lib_save_LIBS=$LIBS 57723 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 57724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57725 /* end confdefs.h. */ 57726 57727 /* Override any GCC internal prototype to avoid an error. 57728 Use char because int might match the return type of a GCC 57729 builtin and then its argument prototype would still apply. */ 57730 #ifdef __cplusplus 57731 extern "C" 57732 #endif 57733 char connect (); 57734 int 57735 main () 57736 { 57737 return connect (); 57738 ; 57739 return 0; 57740 } 57741 _ACEOF 57742 if ac_fn_cxx_try_link "$LINENO"; then : 57743 ac_cv_lib_socket_connect=yes 57744 else 57745 ac_cv_lib_socket_connect=no 57746 fi 57747 rm -f core conftest.err conftest.$ac_objext \ 57748 conftest$ac_exeext conftest.$ac_ext 57749 LIBS=$ac_check_lib_save_LIBS 57750 fi 57751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 57752 $as_echo "$ac_cv_lib_socket_connect" >&6; } 57753 if test "x$ac_cv_lib_socket_connect" = xyes; then : 57754 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 57755 fi 57756 57757 fi 57758 57759 # Guillermo Gomez says -lposix is necessary on A/UX. 57760 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 57761 if test "x$ac_cv_func_remove" = xyes; then : 57762 57763 fi 57764 57765 if test $ac_cv_func_remove = no; then 57766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 57767 $as_echo_n "checking for remove in -lposix... " >&6; } 57768 if ${ac_cv_lib_posix_remove+:} false; then : 57769 $as_echo_n "(cached) " >&6 57770 else 57771 ac_check_lib_save_LIBS=$LIBS 57772 LIBS="-lposix $LIBS" 57773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57774 /* end confdefs.h. */ 57775 57776 /* Override any GCC internal prototype to avoid an error. 57777 Use char because int might match the return type of a GCC 57778 builtin and then its argument prototype would still apply. */ 57779 #ifdef __cplusplus 57780 extern "C" 57781 #endif 57782 char remove (); 57783 int 57784 main () 57785 { 57786 return remove (); 57787 ; 57788 return 0; 57789 } 57790 _ACEOF 57791 if ac_fn_cxx_try_link "$LINENO"; then : 57792 ac_cv_lib_posix_remove=yes 57793 else 57794 ac_cv_lib_posix_remove=no 57795 fi 57796 rm -f core conftest.err conftest.$ac_objext \ 57797 conftest$ac_exeext conftest.$ac_ext 57798 LIBS=$ac_check_lib_save_LIBS 57799 fi 57800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 57801 $as_echo "$ac_cv_lib_posix_remove" >&6; } 57802 if test "x$ac_cv_lib_posix_remove" = xyes; then : 57803 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 57804 fi 57805 57806 fi 57807 57808 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 57809 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 57810 if test "x$ac_cv_func_shmat" = xyes; then : 57811 57812 fi 57813 57814 if test $ac_cv_func_shmat = no; then 57815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 57816 $as_echo_n "checking for shmat in -lipc... " >&6; } 57817 if ${ac_cv_lib_ipc_shmat+:} false; then : 57818 $as_echo_n "(cached) " >&6 57819 else 57820 ac_check_lib_save_LIBS=$LIBS 57821 LIBS="-lipc $LIBS" 57822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57823 /* end confdefs.h. */ 57824 57825 /* Override any GCC internal prototype to avoid an error. 57826 Use char because int might match the return type of a GCC 57827 builtin and then its argument prototype would still apply. */ 57828 #ifdef __cplusplus 57829 extern "C" 57830 #endif 57831 char shmat (); 57832 int 57833 main () 57834 { 57835 return shmat (); 57836 ; 57837 return 0; 57838 } 57839 _ACEOF 57840 if ac_fn_cxx_try_link "$LINENO"; then : 57841 ac_cv_lib_ipc_shmat=yes 57842 else 57843 ac_cv_lib_ipc_shmat=no 57844 fi 57845 rm -f core conftest.err conftest.$ac_objext \ 57846 conftest$ac_exeext conftest.$ac_ext 57847 LIBS=$ac_check_lib_save_LIBS 57848 fi 57849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 57850 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 57851 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 57852 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 57853 fi 57854 57855 fi 57856 fi 57857 57858 # Check for libraries that X11R6 Xt/Xaw programs need. 57859 ac_save_LDFLAGS=$LDFLAGS 57860 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 57861 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 57862 # check for ICE first), but we must link in the order -lSM -lICE or 57863 # we get undefined symbols. So assume we have SM if we have ICE. 57864 # These have to be linked with before -lX11, unlike the other 57865 # libraries we check for below, so use a different variable. 57866 # John Interrante, Karl Berry 57867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 57868 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 57869 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 57870 $as_echo_n "(cached) " >&6 57871 else 57872 ac_check_lib_save_LIBS=$LIBS 57873 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 57874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 57875 /* end confdefs.h. */ 57876 57877 /* Override any GCC internal prototype to avoid an error. 57878 Use char because int might match the return type of a GCC 57879 builtin and then its argument prototype would still apply. */ 57880 #ifdef __cplusplus 57881 extern "C" 57882 #endif 57883 char IceConnectionNumber (); 57884 int 57885 main () 57886 { 57887 return IceConnectionNumber (); 57888 ; 57889 return 0; 57890 } 57891 _ACEOF 57892 if ac_fn_cxx_try_link "$LINENO"; then : 57893 ac_cv_lib_ICE_IceConnectionNumber=yes 57894 else 57895 ac_cv_lib_ICE_IceConnectionNumber=no 57896 fi 57897 rm -f core conftest.err conftest.$ac_objext \ 57898 conftest$ac_exeext conftest.$ac_ext 57899 LIBS=$ac_check_lib_save_LIBS 57900 fi 57901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 57902 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 57903 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 57904 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 57905 fi 57906 57907 LDFLAGS=$ac_save_LDFLAGS 57908 57909 fi 57910 57911 57912 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 57913 # this doesn't make sense so we remove it. 57914 if test "x$COMPILE_TYPE" = xcross; then 57915 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 57916 fi 57917 57918 if test "x$no_x" = xyes; then 57919 57920 # Print a helpful message on how to acquire the necessary build dependency. 57921 # x11 is the help tag: freetype, cups, alsa etc 57922 MISSING_DEPENDENCY=x11 57923 57924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57925 cygwin_help $MISSING_DEPENDENCY 57926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57927 msys_help $MISSING_DEPENDENCY 57928 else 57929 PKGHANDLER_COMMAND= 57930 57931 case $PKGHANDLER in 57932 apt-get) 57933 apt_help $MISSING_DEPENDENCY ;; 57934 yum) 57935 yum_help $MISSING_DEPENDENCY ;; 57936 brew) 57937 brew_help $MISSING_DEPENDENCY ;; 57938 port) 57939 port_help $MISSING_DEPENDENCY ;; 57940 pkgutil) 57941 pkgutil_help $MISSING_DEPENDENCY ;; 57942 pkgadd) 57943 pkgadd_help $MISSING_DEPENDENCY ;; 57944 esac 57945 57946 if test "x$PKGHANDLER_COMMAND" != x; then 57947 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 57948 fi 57949 fi 57950 57951 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 57952 fi 57953 57954 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 57955 OPENWIN_HOME="/usr/openwin" 57956 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 57957 X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 57958 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 57959 fi 57960 57961 ac_ext=c 57962 ac_cpp='$CPP $CPPFLAGS' 57963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 57964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 57965 ac_compiler_gnu=$ac_cv_c_compiler_gnu 57966 57967 OLD_CFLAGS="$CFLAGS" 57968 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 57969 57970 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 57971 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 57972 do : 57973 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 57974 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 57975 # include <X11/Xlib.h> 57976 # include <X11/Xutil.h> 57977 57978 57979 " 57980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 57981 cat >>confdefs.h <<_ACEOF 57982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 57983 _ACEOF 57984 X11_HEADERS_OK=yes 57985 else 57986 X11_HEADERS_OK=no; break 57987 fi 57988 57989 done 57990 57991 57992 if test "x$X11_HEADERS_OK" = xno; then 57993 57994 # Print a helpful message on how to acquire the necessary build dependency. 57995 # x11 is the help tag: freetype, cups, alsa etc 57996 MISSING_DEPENDENCY=x11 57997 57998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57999 cygwin_help $MISSING_DEPENDENCY 58000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58001 msys_help $MISSING_DEPENDENCY 58002 else 58003 PKGHANDLER_COMMAND= 58004 58005 case $PKGHANDLER in 58006 apt-get) 58007 apt_help $MISSING_DEPENDENCY ;; 58008 yum) 58009 yum_help $MISSING_DEPENDENCY ;; 58010 brew) 58011 brew_help $MISSING_DEPENDENCY ;; 58012 port) 58013 port_help $MISSING_DEPENDENCY ;; 58014 pkgutil) 58015 pkgutil_help $MISSING_DEPENDENCY ;; 58016 pkgadd) 58017 pkgadd_help $MISSING_DEPENDENCY ;; 58018 esac 58019 58020 if test "x$PKGHANDLER_COMMAND" != x; then 58021 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58022 fi 58023 fi 58024 58025 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 58026 fi 58027 58028 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 58029 # defined in libawt_xawt. 58030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 58031 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 58032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58033 /* end confdefs.h. */ 58034 #include <X11/extensions/Xrender.h> 58035 int 58036 main () 58037 { 58038 XLinearGradient x; 58039 ; 58040 return 0; 58041 } 58042 _ACEOF 58043 if ac_fn_c_try_compile "$LINENO"; then : 58044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58045 $as_echo "yes" >&6; } 58046 else 58047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58048 $as_echo "no" >&6; } 58049 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 58050 fi 58051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 58052 58053 CFLAGS="$OLD_CFLAGS" 58054 ac_ext=cpp 58055 ac_cpp='$CXXCPP $CPPFLAGS' 58056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 58057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 58058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 58059 58060 fi # NEEDS_LIB_X11 58061 58062 58063 58064 58065 58066 58067 # Check whether --with-cups was given. 58068 if test "${with_cups+set}" = set; then : 58069 withval=$with_cups; 58070 fi 58071 58072 58073 # Check whether --with-cups-include was given. 58074 if test "${with_cups_include+set}" = set; then : 58075 withval=$with_cups_include; 58076 fi 58077 58078 58079 if test "x$NEEDS_LIB_CUPS" = xfalse; then 58080 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 58081 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 58082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 58083 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 58084 fi 58085 CUPS_CFLAGS= 58086 else 58087 CUPS_FOUND=no 58088 58089 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 58090 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 58091 fi 58092 58093 if test "x${with_cups}" != x; then 58094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 58095 $as_echo_n "checking for cups headers... " >&6; } 58096 if test -s "${with_cups}/include/cups/cups.h"; then 58097 CUPS_CFLAGS="-I${with_cups}/include" 58098 CUPS_FOUND=yes 58099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 58100 $as_echo "$CUPS_FOUND" >&6; } 58101 else 58102 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 58103 fi 58104 fi 58105 if test "x${with_cups_include}" != x; then 58106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 58107 $as_echo_n "checking for cups headers... " >&6; } 58108 if test -s "${with_cups_include}/cups/cups.h"; then 58109 CUPS_CFLAGS="-I${with_cups_include}" 58110 CUPS_FOUND=yes 58111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 58112 $as_echo "$CUPS_FOUND" >&6; } 58113 else 58114 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 58115 fi 58116 fi 58117 if test "x$CUPS_FOUND" = xno; then 58118 # Are the cups headers installed in the default /usr/include location? 58119 for ac_header in cups/cups.h cups/ppd.h 58120 do : 58121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 58122 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 58123 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 58124 cat >>confdefs.h <<_ACEOF 58125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 58126 _ACEOF 58127 58128 CUPS_FOUND=yes 58129 CUPS_CFLAGS= 58130 DEFAULT_CUPS=yes 58131 58132 fi 58133 58134 done 58135 58136 fi 58137 if test "x$CUPS_FOUND" = xno; then 58138 58139 # Print a helpful message on how to acquire the necessary build dependency. 58140 # cups is the help tag: freetype, cups, alsa etc 58141 MISSING_DEPENDENCY=cups 58142 58143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58144 cygwin_help $MISSING_DEPENDENCY 58145 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58146 msys_help $MISSING_DEPENDENCY 58147 else 58148 PKGHANDLER_COMMAND= 58149 58150 case $PKGHANDLER in 58151 apt-get) 58152 apt_help $MISSING_DEPENDENCY ;; 58153 yum) 58154 yum_help $MISSING_DEPENDENCY ;; 58155 brew) 58156 brew_help $MISSING_DEPENDENCY ;; 58157 port) 58158 port_help $MISSING_DEPENDENCY ;; 58159 pkgutil) 58160 pkgutil_help $MISSING_DEPENDENCY ;; 58161 pkgadd) 58162 pkgadd_help $MISSING_DEPENDENCY ;; 58163 esac 58164 58165 if test "x$PKGHANDLER_COMMAND" != x; then 58166 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58167 fi 58168 fi 58169 58170 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 58171 fi 58172 fi 58173 58174 58175 58176 58177 58178 # Check whether --with-freetype was given. 58179 if test "${with_freetype+set}" = set; then : 58180 withval=$with_freetype; 58181 fi 58182 58183 58184 # Check whether --with-freetype-include was given. 58185 if test "${with_freetype_include+set}" = set; then : 58186 withval=$with_freetype_include; 58187 fi 58188 58189 58190 # Check whether --with-freetype-lib was given. 58191 if test "${with_freetype_lib+set}" = set; then : 58192 withval=$with_freetype_lib; 58193 fi 58194 58195 58196 # Check whether --with-freetype-src was given. 58197 if test "${with_freetype_src+set}" = set; then : 58198 withval=$with_freetype_src; 58199 fi 58200 58201 # Check whether --enable-freetype-bundling was given. 58202 if test "${enable_freetype_bundling+set}" = set; then : 58203 enableval=$enable_freetype_bundling; 58204 fi 58205 58206 58207 # Check whether --with-freetype-license was given. 58208 if test "${with_freetype_license+set}" = set; then : 58209 withval=$with_freetype_license; 58210 fi 58211 58212 58213 # Need to specify explicitly since it needs to be overridden on some versions of macosx 58214 FREETYPE_BASE_NAME=freetype 58215 FREETYPE_CFLAGS= 58216 FREETYPE_LIBS= 58217 FREETYPE_BUNDLE_LIB_PATH= 58218 58219 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 58220 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 58221 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 58222 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 58223 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 58224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 58225 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 58226 fi 58227 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 58228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 58229 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 58230 fi 58231 else 58232 # freetype is needed to build; go get it! 58233 58234 BUNDLE_FREETYPE="$enable_freetype_bundling" 58235 58236 if test "x$with_freetype_src" != x; then 58237 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58238 # Try to build freetype if --with-freetype-src was given on Windows 58239 58240 FREETYPE_SRC_PATH="$with_freetype_src" 58241 BUILD_FREETYPE=yes 58242 58243 # Check if the freetype sources are acessible.. 58244 if ! test -d $FREETYPE_SRC_PATH; then 58245 { $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 58246 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 58247 BUILD_FREETYPE=no 58248 fi 58249 # ..and contain a vc2010 project file 58250 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 58251 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 58252 { $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 58253 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 58254 BUILD_FREETYPE=no 58255 fi 58256 # Now check if configure found a version of 'msbuild.exe' 58257 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 58258 { $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 58259 $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;} 58260 BUILD_FREETYPE=no 58261 fi 58262 58263 # Ready to go.. 58264 if test "x$BUILD_FREETYPE" = xyes; then 58265 # msbuild requires trailing slashes for output directories 58266 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 58267 freetype_lib_path_unix="$freetype_lib_path" 58268 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 58269 58270 unix_path="$vcxproj_path" 58271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58272 windows_path=`$CYGPATH -m "$unix_path"` 58273 vcxproj_path="$windows_path" 58274 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58275 windows_path=`cmd //c echo $unix_path` 58276 vcxproj_path="$windows_path" 58277 fi 58278 58279 58280 unix_path="$freetype_lib_path" 58281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58282 windows_path=`$CYGPATH -m "$unix_path"` 58283 freetype_lib_path="$windows_path" 58284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58285 windows_path=`cmd //c echo $unix_path` 58286 freetype_lib_path="$windows_path" 58287 fi 58288 58289 58290 unix_path="$freetype_obj_path" 58291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58292 windows_path=`$CYGPATH -m "$unix_path"` 58293 freetype_obj_path="$windows_path" 58294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58295 windows_path=`cmd //c echo $unix_path` 58296 freetype_obj_path="$windows_path" 58297 fi 58298 58299 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58300 freetype_platform=x64 58301 else 58302 freetype_platform=win32 58303 fi 58304 58305 # The original freetype project file is for VS 2010 (i.e. 'v100'), 58306 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 58307 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 58308 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 58309 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 58310 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 58311 58312 # First we try to build the freetype.dll 58313 $ECHO -e "@echo off\n"\ 58314 "$MSBUILD $vcxproj_path "\ 58315 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 58316 "/p:Configuration=\"Release Multithreaded\" "\ 58317 "/p:Platform=$freetype_platform "\ 58318 "/p:ConfigurationType=DynamicLibrary "\ 58319 "/p:TargetName=freetype "\ 58320 "/p:OutDir=\"$freetype_lib_path\" "\ 58321 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 58322 cmd /c freetype.bat 58323 58324 if test -s "$freetype_lib_path_unix/freetype.dll"; then 58325 # If that succeeds we also build freetype.lib 58326 $ECHO -e "@echo off\n"\ 58327 "$MSBUILD $vcxproj_path "\ 58328 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 58329 "/p:Configuration=\"Release Multithreaded\" "\ 58330 "/p:Platform=$freetype_platform "\ 58331 "/p:ConfigurationType=StaticLibrary "\ 58332 "/p:TargetName=freetype "\ 58333 "/p:OutDir=\"$freetype_lib_path\" "\ 58334 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 58335 cmd /c freetype.bat 58336 58337 if test -s "$freetype_lib_path_unix/freetype.lib"; then 58338 # Once we build both, lib and dll, set freetype lib and include path appropriately 58339 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 58340 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 58341 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 58342 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 58343 else 58344 BUILD_FREETYPE=no 58345 fi 58346 else 58347 BUILD_FREETYPE=no 58348 fi 58349 fi 58350 58351 if test "x$BUILD_FREETYPE" = xyes; then 58352 # Okay, we built it. Check that it works. 58353 58354 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58355 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58356 METHOD="--with-freetype-src" 58357 58358 # Let's start with an optimistic view of the world :-) 58359 FOUND_FREETYPE=yes 58360 58361 # First look for the canonical freetype main include file ft2build.h. 58362 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58363 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58364 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58365 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58366 # Fail. 58367 FOUND_FREETYPE=no 58368 fi 58369 fi 58370 58371 if test "x$FOUND_FREETYPE" = xyes; then 58372 # Include file found, let's continue the sanity check. 58373 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58374 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58375 58376 # Reset to default value 58377 FREETYPE_BASE_NAME=freetype 58378 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58379 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58380 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58381 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58382 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58383 # for the .6 version explicitly. 58384 FREETYPE_BASE_NAME=freetype.6 58385 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58386 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58387 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58388 else 58389 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58390 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58391 FOUND_FREETYPE=no 58392 fi 58393 else 58394 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58395 # On Windows, we will need both .lib and .dll file. 58396 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58397 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58398 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58399 FOUND_FREETYPE=no 58400 fi 58401 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58402 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58403 # Found lib in isa dir, use that instead. 58404 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58405 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58406 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58407 fi 58408 fi 58409 fi 58410 58411 if test "x$FOUND_FREETYPE" = xyes; then 58412 58413 # Only process if variable expands to non-empty 58414 58415 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58417 58418 # Input might be given as Windows format, start by converting to 58419 # unix format. 58420 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58421 new_path=`$CYGPATH -u "$path"` 58422 58423 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58424 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58425 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58426 # "foo.exe" is OK but "foo" is an error. 58427 # 58428 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58429 # It is also a way to make sure we got the proper file name for the real test later on. 58430 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58431 if test "x$test_shortpath" = x; then 58432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58433 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58434 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58435 fi 58436 58437 # Call helper function which possibly converts this using DOS-style short mode. 58438 # If so, the updated path is stored in $new_path. 58439 58440 input_path="$new_path" 58441 # Check if we need to convert this using DOS-style short mode. If the path 58442 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58443 # take no chances and rewrite it. 58444 # Note: m4 eats our [], so we need to use [ and ] instead. 58445 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58446 if test "x$has_forbidden_chars" != x; then 58447 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58448 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58449 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58450 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58451 # Going to short mode and back again did indeed matter. Since short mode is 58452 # case insensitive, let's make it lowercase to improve readability. 58453 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58454 # Now convert it back to Unix-style (cygpath) 58455 input_path=`$CYGPATH -u "$shortmode_path"` 58456 new_path="$input_path" 58457 fi 58458 fi 58459 58460 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58461 if test "x$test_cygdrive_prefix" = x; then 58462 # As a simple fix, exclude /usr/bin since it's not a real path. 58463 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58464 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58465 # a path prefixed by /cygdrive for fixpath to work. 58466 new_path="$CYGWIN_ROOT_PATH$input_path" 58467 fi 58468 fi 58469 58470 58471 if test "x$path" != "x$new_path"; then 58472 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58473 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58474 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58475 fi 58476 58477 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58478 58479 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58480 has_colon=`$ECHO $path | $GREP ^.:` 58481 new_path="$path" 58482 if test "x$has_colon" = x; then 58483 # Not in mixed or Windows style, start by that. 58484 new_path=`cmd //c echo $path` 58485 fi 58486 58487 58488 input_path="$new_path" 58489 # Check if we need to convert this using DOS-style short mode. If the path 58490 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58491 # take no chances and rewrite it. 58492 # Note: m4 eats our [], so we need to use [ and ] instead. 58493 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58494 if test "x$has_forbidden_chars" != x; then 58495 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58496 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58497 fi 58498 58499 58500 windows_path="$new_path" 58501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58502 unix_path=`$CYGPATH -u "$windows_path"` 58503 new_path="$unix_path" 58504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58505 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58506 new_path="$unix_path" 58507 fi 58508 58509 if test "x$path" != "x$new_path"; then 58510 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58511 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58512 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58513 fi 58514 58515 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58516 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58517 58518 else 58519 # We're on a unix platform. Hooray! :) 58520 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58521 has_space=`$ECHO "$path" | $GREP " "` 58522 if test "x$has_space" != x; then 58523 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58524 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58525 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58526 fi 58527 58528 # Use eval to expand a potential ~ 58529 eval path="$path" 58530 if test ! -f "$path" && test ! -d "$path"; then 58531 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58532 fi 58533 58534 if test -d "$path"; then 58535 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58536 else 58537 dir="`$DIRNAME "$path"`" 58538 base="`$BASENAME "$path"`" 58539 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58540 fi 58541 fi 58542 fi 58543 58544 58545 # Only process if variable expands to non-empty 58546 58547 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58549 58550 # Input might be given as Windows format, start by converting to 58551 # unix format. 58552 path="$POTENTIAL_FREETYPE_LIB_PATH" 58553 new_path=`$CYGPATH -u "$path"` 58554 58555 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58556 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58557 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58558 # "foo.exe" is OK but "foo" is an error. 58559 # 58560 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58561 # It is also a way to make sure we got the proper file name for the real test later on. 58562 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58563 if test "x$test_shortpath" = x; then 58564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58565 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58566 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58567 fi 58568 58569 # Call helper function which possibly converts this using DOS-style short mode. 58570 # If so, the updated path is stored in $new_path. 58571 58572 input_path="$new_path" 58573 # Check if we need to convert this using DOS-style short mode. If the path 58574 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58575 # take no chances and rewrite it. 58576 # Note: m4 eats our [], so we need to use [ and ] instead. 58577 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58578 if test "x$has_forbidden_chars" != x; then 58579 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58580 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58581 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58582 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58583 # Going to short mode and back again did indeed matter. Since short mode is 58584 # case insensitive, let's make it lowercase to improve readability. 58585 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58586 # Now convert it back to Unix-style (cygpath) 58587 input_path=`$CYGPATH -u "$shortmode_path"` 58588 new_path="$input_path" 58589 fi 58590 fi 58591 58592 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58593 if test "x$test_cygdrive_prefix" = x; then 58594 # As a simple fix, exclude /usr/bin since it's not a real path. 58595 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58596 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58597 # a path prefixed by /cygdrive for fixpath to work. 58598 new_path="$CYGWIN_ROOT_PATH$input_path" 58599 fi 58600 fi 58601 58602 58603 if test "x$path" != "x$new_path"; then 58604 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58605 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58606 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58607 fi 58608 58609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58610 58611 path="$POTENTIAL_FREETYPE_LIB_PATH" 58612 has_colon=`$ECHO $path | $GREP ^.:` 58613 new_path="$path" 58614 if test "x$has_colon" = x; then 58615 # Not in mixed or Windows style, start by that. 58616 new_path=`cmd //c echo $path` 58617 fi 58618 58619 58620 input_path="$new_path" 58621 # Check if we need to convert this using DOS-style short mode. If the path 58622 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58623 # take no chances and rewrite it. 58624 # Note: m4 eats our [], so we need to use [ and ] instead. 58625 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58626 if test "x$has_forbidden_chars" != x; then 58627 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58628 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58629 fi 58630 58631 58632 windows_path="$new_path" 58633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58634 unix_path=`$CYGPATH -u "$windows_path"` 58635 new_path="$unix_path" 58636 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58637 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58638 new_path="$unix_path" 58639 fi 58640 58641 if test "x$path" != "x$new_path"; then 58642 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58643 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58644 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58645 fi 58646 58647 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58648 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58649 58650 else 58651 # We're on a unix platform. Hooray! :) 58652 path="$POTENTIAL_FREETYPE_LIB_PATH" 58653 has_space=`$ECHO "$path" | $GREP " "` 58654 if test "x$has_space" != x; then 58655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58656 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58657 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58658 fi 58659 58660 # Use eval to expand a potential ~ 58661 eval path="$path" 58662 if test ! -f "$path" && test ! -d "$path"; then 58663 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58664 fi 58665 58666 if test -d "$path"; then 58667 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58668 else 58669 dir="`$DIRNAME "$path"`" 58670 base="`$BASENAME "$path"`" 58671 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58672 fi 58673 fi 58674 fi 58675 58676 58677 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58679 $as_echo_n "checking for freetype includes... " >&6; } 58680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58681 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58682 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58684 $as_echo_n "checking for freetype libraries... " >&6; } 58685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58686 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58687 fi 58688 58689 if test "x$FOUND_FREETYPE" != xyes; then 58690 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 58691 fi 58692 else 58693 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 58694 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 58695 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 58696 fi 58697 else 58698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 58699 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 58700 fi 58701 fi 58702 58703 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 58704 # User has specified settings 58705 58706 if test "x$BUNDLE_FREETYPE" = x; then 58707 # If not specified, default is to bundle freetype 58708 BUNDLE_FREETYPE=yes 58709 fi 58710 58711 if test "x$with_freetype" != x; then 58712 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 58713 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 58714 fi 58715 58716 # Allow --with-freetype-lib and --with-freetype-include to override 58717 if test "x$with_freetype_include" != x; then 58718 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 58719 fi 58720 if test "x$with_freetype_lib" != x; then 58721 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 58722 fi 58723 58724 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58725 # Okay, we got it. Check that it works. 58726 58727 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58728 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58729 METHOD="--with-freetype" 58730 58731 # Let's start with an optimistic view of the world :-) 58732 FOUND_FREETYPE=yes 58733 58734 # First look for the canonical freetype main include file ft2build.h. 58735 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58736 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58737 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58738 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58739 # Fail. 58740 FOUND_FREETYPE=no 58741 fi 58742 fi 58743 58744 if test "x$FOUND_FREETYPE" = xyes; then 58745 # Include file found, let's continue the sanity check. 58746 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58747 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58748 58749 # Reset to default value 58750 FREETYPE_BASE_NAME=freetype 58751 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58752 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58753 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58754 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58755 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58756 # for the .6 version explicitly. 58757 FREETYPE_BASE_NAME=freetype.6 58758 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58759 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58760 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58761 else 58762 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58763 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58764 FOUND_FREETYPE=no 58765 fi 58766 else 58767 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58768 # On Windows, we will need both .lib and .dll file. 58769 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58770 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58771 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58772 FOUND_FREETYPE=no 58773 fi 58774 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58775 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58776 # Found lib in isa dir, use that instead. 58777 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58778 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58779 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58780 fi 58781 fi 58782 fi 58783 58784 if test "x$FOUND_FREETYPE" = xyes; then 58785 58786 # Only process if variable expands to non-empty 58787 58788 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58790 58791 # Input might be given as Windows format, start by converting to 58792 # unix format. 58793 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58794 new_path=`$CYGPATH -u "$path"` 58795 58796 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58797 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58798 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58799 # "foo.exe" is OK but "foo" is an error. 58800 # 58801 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58802 # It is also a way to make sure we got the proper file name for the real test later on. 58803 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58804 if test "x$test_shortpath" = x; then 58805 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58806 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58807 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58808 fi 58809 58810 # Call helper function which possibly converts this using DOS-style short mode. 58811 # If so, the updated path is stored in $new_path. 58812 58813 input_path="$new_path" 58814 # Check if we need to convert this using DOS-style short mode. If the path 58815 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58816 # take no chances and rewrite it. 58817 # Note: m4 eats our [], so we need to use [ and ] instead. 58818 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58819 if test "x$has_forbidden_chars" != x; then 58820 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58821 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58822 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58823 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58824 # Going to short mode and back again did indeed matter. Since short mode is 58825 # case insensitive, let's make it lowercase to improve readability. 58826 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58827 # Now convert it back to Unix-style (cygpath) 58828 input_path=`$CYGPATH -u "$shortmode_path"` 58829 new_path="$input_path" 58830 fi 58831 fi 58832 58833 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58834 if test "x$test_cygdrive_prefix" = x; then 58835 # As a simple fix, exclude /usr/bin since it's not a real path. 58836 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58837 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58838 # a path prefixed by /cygdrive for fixpath to work. 58839 new_path="$CYGWIN_ROOT_PATH$input_path" 58840 fi 58841 fi 58842 58843 58844 if test "x$path" != "x$new_path"; then 58845 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58846 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58847 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58848 fi 58849 58850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58851 58852 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58853 has_colon=`$ECHO $path | $GREP ^.:` 58854 new_path="$path" 58855 if test "x$has_colon" = x; then 58856 # Not in mixed or Windows style, start by that. 58857 new_path=`cmd //c echo $path` 58858 fi 58859 58860 58861 input_path="$new_path" 58862 # Check if we need to convert this using DOS-style short mode. If the path 58863 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58864 # take no chances and rewrite it. 58865 # Note: m4 eats our [], so we need to use [ and ] instead. 58866 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58867 if test "x$has_forbidden_chars" != x; then 58868 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58869 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58870 fi 58871 58872 58873 windows_path="$new_path" 58874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58875 unix_path=`$CYGPATH -u "$windows_path"` 58876 new_path="$unix_path" 58877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58878 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58879 new_path="$unix_path" 58880 fi 58881 58882 if test "x$path" != "x$new_path"; then 58883 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58884 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58885 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58886 fi 58887 58888 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58889 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58890 58891 else 58892 # We're on a unix platform. Hooray! :) 58893 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58894 has_space=`$ECHO "$path" | $GREP " "` 58895 if test "x$has_space" != x; then 58896 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58897 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58898 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58899 fi 58900 58901 # Use eval to expand a potential ~ 58902 eval path="$path" 58903 if test ! -f "$path" && test ! -d "$path"; then 58904 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58905 fi 58906 58907 if test -d "$path"; then 58908 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58909 else 58910 dir="`$DIRNAME "$path"`" 58911 base="`$BASENAME "$path"`" 58912 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58913 fi 58914 fi 58915 fi 58916 58917 58918 # Only process if variable expands to non-empty 58919 58920 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58922 58923 # Input might be given as Windows format, start by converting to 58924 # unix format. 58925 path="$POTENTIAL_FREETYPE_LIB_PATH" 58926 new_path=`$CYGPATH -u "$path"` 58927 58928 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58929 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58930 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58931 # "foo.exe" is OK but "foo" is an error. 58932 # 58933 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58934 # It is also a way to make sure we got the proper file name for the real test later on. 58935 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58936 if test "x$test_shortpath" = x; then 58937 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58938 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58939 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58940 fi 58941 58942 # Call helper function which possibly converts this using DOS-style short mode. 58943 # If so, the updated path is stored in $new_path. 58944 58945 input_path="$new_path" 58946 # Check if we need to convert this using DOS-style short mode. If the path 58947 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58948 # take no chances and rewrite it. 58949 # Note: m4 eats our [], so we need to use [ and ] instead. 58950 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58951 if test "x$has_forbidden_chars" != x; then 58952 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58953 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58954 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58955 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58956 # Going to short mode and back again did indeed matter. Since short mode is 58957 # case insensitive, let's make it lowercase to improve readability. 58958 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58959 # Now convert it back to Unix-style (cygpath) 58960 input_path=`$CYGPATH -u "$shortmode_path"` 58961 new_path="$input_path" 58962 fi 58963 fi 58964 58965 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58966 if test "x$test_cygdrive_prefix" = x; then 58967 # As a simple fix, exclude /usr/bin since it's not a real path. 58968 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58969 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58970 # a path prefixed by /cygdrive for fixpath to work. 58971 new_path="$CYGWIN_ROOT_PATH$input_path" 58972 fi 58973 fi 58974 58975 58976 if test "x$path" != "x$new_path"; then 58977 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58978 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58979 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58980 fi 58981 58982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58983 58984 path="$POTENTIAL_FREETYPE_LIB_PATH" 58985 has_colon=`$ECHO $path | $GREP ^.:` 58986 new_path="$path" 58987 if test "x$has_colon" = x; then 58988 # Not in mixed or Windows style, start by that. 58989 new_path=`cmd //c echo $path` 58990 fi 58991 58992 58993 input_path="$new_path" 58994 # Check if we need to convert this using DOS-style short mode. If the path 58995 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58996 # take no chances and rewrite it. 58997 # Note: m4 eats our [], so we need to use [ and ] instead. 58998 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58999 if test "x$has_forbidden_chars" != x; then 59000 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59001 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59002 fi 59003 59004 59005 windows_path="$new_path" 59006 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59007 unix_path=`$CYGPATH -u "$windows_path"` 59008 new_path="$unix_path" 59009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59010 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59011 new_path="$unix_path" 59012 fi 59013 59014 if test "x$path" != "x$new_path"; then 59015 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59016 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59017 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59018 fi 59019 59020 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59021 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59022 59023 else 59024 # We're on a unix platform. Hooray! :) 59025 path="$POTENTIAL_FREETYPE_LIB_PATH" 59026 has_space=`$ECHO "$path" | $GREP " "` 59027 if test "x$has_space" != x; then 59028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59029 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59030 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59031 fi 59032 59033 # Use eval to expand a potential ~ 59034 eval path="$path" 59035 if test ! -f "$path" && test ! -d "$path"; then 59036 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59037 fi 59038 59039 if test -d "$path"; then 59040 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59041 else 59042 dir="`$DIRNAME "$path"`" 59043 base="`$BASENAME "$path"`" 59044 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59045 fi 59046 fi 59047 fi 59048 59049 59050 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59052 $as_echo_n "checking for freetype includes... " >&6; } 59053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59054 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59055 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59057 $as_echo_n "checking for freetype libraries... " >&6; } 59058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59059 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59060 fi 59061 59062 if test "x$FOUND_FREETYPE" != xyes; then 59063 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 59064 fi 59065 else 59066 # User specified only one of lib or include. This is an error. 59067 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 59068 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 59069 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 59070 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 59071 else 59072 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 59073 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 59074 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 59075 fi 59076 fi 59077 else 59078 # User did not specify settings, but we need freetype. Try to locate it. 59079 59080 if test "x$BUNDLE_FREETYPE" = x; then 59081 # If not specified, default is to bundle freetype only on windows 59082 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59083 BUNDLE_FREETYPE=yes 59084 else 59085 BUNDLE_FREETYPE=no 59086 fi 59087 fi 59088 59089 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 59090 if test "x$SYSROOT" = x; then 59091 if test "x$FOUND_FREETYPE" != xyes; then 59092 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 59093 if test "x$PKG_CONFIG" != x; then 59094 59095 pkg_failed=no 59096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 59097 $as_echo_n "checking for FREETYPE... " >&6; } 59098 59099 if test -n "$FREETYPE_CFLAGS"; then 59100 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 59101 elif test -n "$PKG_CONFIG"; then 59102 if test -n "$PKG_CONFIG" && \ 59103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 59104 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 59105 ac_status=$? 59106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 59107 test $ac_status = 0; }; then 59108 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 59109 else 59110 pkg_failed=yes 59111 fi 59112 else 59113 pkg_failed=untried 59114 fi 59115 if test -n "$FREETYPE_LIBS"; then 59116 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 59117 elif test -n "$PKG_CONFIG"; then 59118 if test -n "$PKG_CONFIG" && \ 59119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 59120 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 59121 ac_status=$? 59122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 59123 test $ac_status = 0; }; then 59124 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 59125 else 59126 pkg_failed=yes 59127 fi 59128 else 59129 pkg_failed=untried 59130 fi 59131 59132 59133 59134 if test $pkg_failed = yes; then 59135 59136 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 59137 _pkg_short_errors_supported=yes 59138 else 59139 _pkg_short_errors_supported=no 59140 fi 59141 if test $_pkg_short_errors_supported = yes; then 59142 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 59143 else 59144 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 59145 fi 59146 # Put the nasty error message in config.log where it belongs 59147 echo "$FREETYPE_PKG_ERRORS" >&5 59148 59149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59150 $as_echo "no" >&6; } 59151 FOUND_FREETYPE=no 59152 elif test $pkg_failed = untried; then 59153 FOUND_FREETYPE=no 59154 else 59155 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 59156 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 59157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 59158 $as_echo "yes" >&6; } 59159 FOUND_FREETYPE=yes 59160 fi 59161 if test "x$FOUND_FREETYPE" = xyes; then 59162 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 59163 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 59164 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 59165 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 59166 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 59167 fi 59168 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 59169 if test "x$BUNDLE_FREETYPE" = xyes; then 59170 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 59171 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 59172 FOUND_FREETYPE=no 59173 else 59174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 59175 $as_echo_n "checking for freetype... " >&6; } 59176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 59177 $as_echo "yes (using pkg-config)" >&6; } 59178 fi 59179 fi 59180 fi 59181 fi 59182 fi 59183 59184 if test "x$FOUND_FREETYPE" != xyes; then 59185 # Check in well-known locations 59186 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59187 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 59188 59189 windows_path="$FREETYPE_BASE_DIR" 59190 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59191 unix_path=`$CYGPATH -u "$windows_path"` 59192 FREETYPE_BASE_DIR="$unix_path" 59193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59194 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59195 FREETYPE_BASE_DIR="$unix_path" 59196 fi 59197 59198 59199 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59200 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 59201 METHOD="well-known location" 59202 59203 # Let's start with an optimistic view of the world :-) 59204 FOUND_FREETYPE=yes 59205 59206 # First look for the canonical freetype main include file ft2build.h. 59207 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59208 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59209 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59210 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59211 # Fail. 59212 FOUND_FREETYPE=no 59213 fi 59214 fi 59215 59216 if test "x$FOUND_FREETYPE" = xyes; then 59217 # Include file found, let's continue the sanity check. 59218 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59219 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59220 59221 # Reset to default value 59222 FREETYPE_BASE_NAME=freetype 59223 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59224 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59225 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59226 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59227 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59228 # for the .6 version explicitly. 59229 FREETYPE_BASE_NAME=freetype.6 59230 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59231 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59232 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59233 else 59234 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59235 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59236 FOUND_FREETYPE=no 59237 fi 59238 else 59239 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59240 # On Windows, we will need both .lib and .dll file. 59241 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59242 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59243 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59244 FOUND_FREETYPE=no 59245 fi 59246 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59247 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59248 # Found lib in isa dir, use that instead. 59249 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59250 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59251 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59252 fi 59253 fi 59254 fi 59255 59256 if test "x$FOUND_FREETYPE" = xyes; then 59257 59258 # Only process if variable expands to non-empty 59259 59260 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59262 59263 # Input might be given as Windows format, start by converting to 59264 # unix format. 59265 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59266 new_path=`$CYGPATH -u "$path"` 59267 59268 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59269 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59270 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59271 # "foo.exe" is OK but "foo" is an error. 59272 # 59273 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59274 # It is also a way to make sure we got the proper file name for the real test later on. 59275 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59276 if test "x$test_shortpath" = x; then 59277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59278 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59279 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59280 fi 59281 59282 # Call helper function which possibly converts this using DOS-style short mode. 59283 # If so, the updated path is stored in $new_path. 59284 59285 input_path="$new_path" 59286 # Check if we need to convert this using DOS-style short mode. If the path 59287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59288 # take no chances and rewrite it. 59289 # Note: m4 eats our [], so we need to use [ and ] instead. 59290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59291 if test "x$has_forbidden_chars" != x; then 59292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59293 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59294 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59295 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59296 # Going to short mode and back again did indeed matter. Since short mode is 59297 # case insensitive, let's make it lowercase to improve readability. 59298 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59299 # Now convert it back to Unix-style (cygpath) 59300 input_path=`$CYGPATH -u "$shortmode_path"` 59301 new_path="$input_path" 59302 fi 59303 fi 59304 59305 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59306 if test "x$test_cygdrive_prefix" = x; then 59307 # As a simple fix, exclude /usr/bin since it's not a real path. 59308 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59309 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59310 # a path prefixed by /cygdrive for fixpath to work. 59311 new_path="$CYGWIN_ROOT_PATH$input_path" 59312 fi 59313 fi 59314 59315 59316 if test "x$path" != "x$new_path"; then 59317 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59319 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59320 fi 59321 59322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59323 59324 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59325 has_colon=`$ECHO $path | $GREP ^.:` 59326 new_path="$path" 59327 if test "x$has_colon" = x; then 59328 # Not in mixed or Windows style, start by that. 59329 new_path=`cmd //c echo $path` 59330 fi 59331 59332 59333 input_path="$new_path" 59334 # Check if we need to convert this using DOS-style short mode. If the path 59335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59336 # take no chances and rewrite it. 59337 # Note: m4 eats our [], so we need to use [ and ] instead. 59338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59339 if test "x$has_forbidden_chars" != x; then 59340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59341 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59342 fi 59343 59344 59345 windows_path="$new_path" 59346 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59347 unix_path=`$CYGPATH -u "$windows_path"` 59348 new_path="$unix_path" 59349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59350 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59351 new_path="$unix_path" 59352 fi 59353 59354 if test "x$path" != "x$new_path"; then 59355 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59356 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59357 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59358 fi 59359 59360 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59361 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59362 59363 else 59364 # We're on a unix platform. Hooray! :) 59365 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59366 has_space=`$ECHO "$path" | $GREP " "` 59367 if test "x$has_space" != x; then 59368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59369 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59370 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59371 fi 59372 59373 # Use eval to expand a potential ~ 59374 eval path="$path" 59375 if test ! -f "$path" && test ! -d "$path"; then 59376 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59377 fi 59378 59379 if test -d "$path"; then 59380 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59381 else 59382 dir="`$DIRNAME "$path"`" 59383 base="`$BASENAME "$path"`" 59384 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59385 fi 59386 fi 59387 fi 59388 59389 59390 # Only process if variable expands to non-empty 59391 59392 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59394 59395 # Input might be given as Windows format, start by converting to 59396 # unix format. 59397 path="$POTENTIAL_FREETYPE_LIB_PATH" 59398 new_path=`$CYGPATH -u "$path"` 59399 59400 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59401 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59402 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59403 # "foo.exe" is OK but "foo" is an error. 59404 # 59405 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59406 # It is also a way to make sure we got the proper file name for the real test later on. 59407 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59408 if test "x$test_shortpath" = x; then 59409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59410 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59411 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59412 fi 59413 59414 # Call helper function which possibly converts this using DOS-style short mode. 59415 # If so, the updated path is stored in $new_path. 59416 59417 input_path="$new_path" 59418 # Check if we need to convert this using DOS-style short mode. If the path 59419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59420 # take no chances and rewrite it. 59421 # Note: m4 eats our [], so we need to use [ and ] instead. 59422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59423 if test "x$has_forbidden_chars" != x; then 59424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59425 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59426 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59427 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59428 # Going to short mode and back again did indeed matter. Since short mode is 59429 # case insensitive, let's make it lowercase to improve readability. 59430 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59431 # Now convert it back to Unix-style (cygpath) 59432 input_path=`$CYGPATH -u "$shortmode_path"` 59433 new_path="$input_path" 59434 fi 59435 fi 59436 59437 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59438 if test "x$test_cygdrive_prefix" = x; then 59439 # As a simple fix, exclude /usr/bin since it's not a real path. 59440 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59441 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59442 # a path prefixed by /cygdrive for fixpath to work. 59443 new_path="$CYGWIN_ROOT_PATH$input_path" 59444 fi 59445 fi 59446 59447 59448 if test "x$path" != "x$new_path"; then 59449 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59450 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59451 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59452 fi 59453 59454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59455 59456 path="$POTENTIAL_FREETYPE_LIB_PATH" 59457 has_colon=`$ECHO $path | $GREP ^.:` 59458 new_path="$path" 59459 if test "x$has_colon" = x; then 59460 # Not in mixed or Windows style, start by that. 59461 new_path=`cmd //c echo $path` 59462 fi 59463 59464 59465 input_path="$new_path" 59466 # Check if we need to convert this using DOS-style short mode. If the path 59467 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59468 # take no chances and rewrite it. 59469 # Note: m4 eats our [], so we need to use [ and ] instead. 59470 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59471 if test "x$has_forbidden_chars" != x; then 59472 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59473 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59474 fi 59475 59476 59477 windows_path="$new_path" 59478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59479 unix_path=`$CYGPATH -u "$windows_path"` 59480 new_path="$unix_path" 59481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59482 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59483 new_path="$unix_path" 59484 fi 59485 59486 if test "x$path" != "x$new_path"; then 59487 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59488 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59489 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59490 fi 59491 59492 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59493 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59494 59495 else 59496 # We're on a unix platform. Hooray! :) 59497 path="$POTENTIAL_FREETYPE_LIB_PATH" 59498 has_space=`$ECHO "$path" | $GREP " "` 59499 if test "x$has_space" != x; then 59500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59501 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59502 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59503 fi 59504 59505 # Use eval to expand a potential ~ 59506 eval path="$path" 59507 if test ! -f "$path" && test ! -d "$path"; then 59508 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59509 fi 59510 59511 if test -d "$path"; then 59512 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59513 else 59514 dir="`$DIRNAME "$path"`" 59515 base="`$BASENAME "$path"`" 59516 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59517 fi 59518 fi 59519 fi 59520 59521 59522 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59524 $as_echo_n "checking for freetype includes... " >&6; } 59525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59526 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59527 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59529 $as_echo_n "checking for freetype libraries... " >&6; } 59530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59531 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59532 fi 59533 59534 if test "x$FOUND_FREETYPE" != xyes; then 59535 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 59536 59537 windows_path="$FREETYPE_BASE_DIR" 59538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59539 unix_path=`$CYGPATH -u "$windows_path"` 59540 FREETYPE_BASE_DIR="$unix_path" 59541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59542 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59543 FREETYPE_BASE_DIR="$unix_path" 59544 fi 59545 59546 59547 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59548 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 59549 METHOD="well-known location" 59550 59551 # Let's start with an optimistic view of the world :-) 59552 FOUND_FREETYPE=yes 59553 59554 # First look for the canonical freetype main include file ft2build.h. 59555 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59556 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59557 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59558 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59559 # Fail. 59560 FOUND_FREETYPE=no 59561 fi 59562 fi 59563 59564 if test "x$FOUND_FREETYPE" = xyes; then 59565 # Include file found, let's continue the sanity check. 59566 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59567 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59568 59569 # Reset to default value 59570 FREETYPE_BASE_NAME=freetype 59571 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59572 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59573 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59574 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59575 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59576 # for the .6 version explicitly. 59577 FREETYPE_BASE_NAME=freetype.6 59578 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59579 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59580 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59581 else 59582 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59583 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59584 FOUND_FREETYPE=no 59585 fi 59586 else 59587 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59588 # On Windows, we will need both .lib and .dll file. 59589 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59590 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59591 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59592 FOUND_FREETYPE=no 59593 fi 59594 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59595 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59596 # Found lib in isa dir, use that instead. 59597 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59598 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59599 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59600 fi 59601 fi 59602 fi 59603 59604 if test "x$FOUND_FREETYPE" = xyes; then 59605 59606 # Only process if variable expands to non-empty 59607 59608 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59610 59611 # Input might be given as Windows format, start by converting to 59612 # unix format. 59613 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59614 new_path=`$CYGPATH -u "$path"` 59615 59616 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59617 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59618 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59619 # "foo.exe" is OK but "foo" is an error. 59620 # 59621 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59622 # It is also a way to make sure we got the proper file name for the real test later on. 59623 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59624 if test "x$test_shortpath" = x; then 59625 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59626 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59627 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59628 fi 59629 59630 # Call helper function which possibly converts this using DOS-style short mode. 59631 # If so, the updated path is stored in $new_path. 59632 59633 input_path="$new_path" 59634 # Check if we need to convert this using DOS-style short mode. If the path 59635 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59636 # take no chances and rewrite it. 59637 # Note: m4 eats our [], so we need to use [ and ] instead. 59638 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59639 if test "x$has_forbidden_chars" != x; then 59640 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59641 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59642 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59643 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59644 # Going to short mode and back again did indeed matter. Since short mode is 59645 # case insensitive, let's make it lowercase to improve readability. 59646 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59647 # Now convert it back to Unix-style (cygpath) 59648 input_path=`$CYGPATH -u "$shortmode_path"` 59649 new_path="$input_path" 59650 fi 59651 fi 59652 59653 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59654 if test "x$test_cygdrive_prefix" = x; then 59655 # As a simple fix, exclude /usr/bin since it's not a real path. 59656 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59657 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59658 # a path prefixed by /cygdrive for fixpath to work. 59659 new_path="$CYGWIN_ROOT_PATH$input_path" 59660 fi 59661 fi 59662 59663 59664 if test "x$path" != "x$new_path"; then 59665 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59666 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59667 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59668 fi 59669 59670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59671 59672 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59673 has_colon=`$ECHO $path | $GREP ^.:` 59674 new_path="$path" 59675 if test "x$has_colon" = x; then 59676 # Not in mixed or Windows style, start by that. 59677 new_path=`cmd //c echo $path` 59678 fi 59679 59680 59681 input_path="$new_path" 59682 # Check if we need to convert this using DOS-style short mode. If the path 59683 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59684 # take no chances and rewrite it. 59685 # Note: m4 eats our [], so we need to use [ and ] instead. 59686 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59687 if test "x$has_forbidden_chars" != x; then 59688 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59689 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59690 fi 59691 59692 59693 windows_path="$new_path" 59694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59695 unix_path=`$CYGPATH -u "$windows_path"` 59696 new_path="$unix_path" 59697 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59698 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59699 new_path="$unix_path" 59700 fi 59701 59702 if test "x$path" != "x$new_path"; then 59703 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59704 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59705 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59706 fi 59707 59708 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59709 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59710 59711 else 59712 # We're on a unix platform. Hooray! :) 59713 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59714 has_space=`$ECHO "$path" | $GREP " "` 59715 if test "x$has_space" != x; then 59716 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59717 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59718 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59719 fi 59720 59721 # Use eval to expand a potential ~ 59722 eval path="$path" 59723 if test ! -f "$path" && test ! -d "$path"; then 59724 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59725 fi 59726 59727 if test -d "$path"; then 59728 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59729 else 59730 dir="`$DIRNAME "$path"`" 59731 base="`$BASENAME "$path"`" 59732 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59733 fi 59734 fi 59735 fi 59736 59737 59738 # Only process if variable expands to non-empty 59739 59740 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59741 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59742 59743 # Input might be given as Windows format, start by converting to 59744 # unix format. 59745 path="$POTENTIAL_FREETYPE_LIB_PATH" 59746 new_path=`$CYGPATH -u "$path"` 59747 59748 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59749 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59750 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59751 # "foo.exe" is OK but "foo" is an error. 59752 # 59753 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59754 # It is also a way to make sure we got the proper file name for the real test later on. 59755 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59756 if test "x$test_shortpath" = x; then 59757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59758 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59759 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59760 fi 59761 59762 # Call helper function which possibly converts this using DOS-style short mode. 59763 # If so, the updated path is stored in $new_path. 59764 59765 input_path="$new_path" 59766 # Check if we need to convert this using DOS-style short mode. If the path 59767 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59768 # take no chances and rewrite it. 59769 # Note: m4 eats our [], so we need to use [ and ] instead. 59770 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59771 if test "x$has_forbidden_chars" != x; then 59772 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59773 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59774 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59775 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59776 # Going to short mode and back again did indeed matter. Since short mode is 59777 # case insensitive, let's make it lowercase to improve readability. 59778 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59779 # Now convert it back to Unix-style (cygpath) 59780 input_path=`$CYGPATH -u "$shortmode_path"` 59781 new_path="$input_path" 59782 fi 59783 fi 59784 59785 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59786 if test "x$test_cygdrive_prefix" = x; then 59787 # As a simple fix, exclude /usr/bin since it's not a real path. 59788 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59789 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59790 # a path prefixed by /cygdrive for fixpath to work. 59791 new_path="$CYGWIN_ROOT_PATH$input_path" 59792 fi 59793 fi 59794 59795 59796 if test "x$path" != "x$new_path"; then 59797 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59798 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59799 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59800 fi 59801 59802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59803 59804 path="$POTENTIAL_FREETYPE_LIB_PATH" 59805 has_colon=`$ECHO $path | $GREP ^.:` 59806 new_path="$path" 59807 if test "x$has_colon" = x; then 59808 # Not in mixed or Windows style, start by that. 59809 new_path=`cmd //c echo $path` 59810 fi 59811 59812 59813 input_path="$new_path" 59814 # Check if we need to convert this using DOS-style short mode. If the path 59815 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59816 # take no chances and rewrite it. 59817 # Note: m4 eats our [], so we need to use [ and ] instead. 59818 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59819 if test "x$has_forbidden_chars" != x; then 59820 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59821 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59822 fi 59823 59824 59825 windows_path="$new_path" 59826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59827 unix_path=`$CYGPATH -u "$windows_path"` 59828 new_path="$unix_path" 59829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59830 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59831 new_path="$unix_path" 59832 fi 59833 59834 if test "x$path" != "x$new_path"; then 59835 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59836 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59837 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59838 fi 59839 59840 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59841 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59842 59843 else 59844 # We're on a unix platform. Hooray! :) 59845 path="$POTENTIAL_FREETYPE_LIB_PATH" 59846 has_space=`$ECHO "$path" | $GREP " "` 59847 if test "x$has_space" != x; then 59848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59849 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59850 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59851 fi 59852 59853 # Use eval to expand a potential ~ 59854 eval path="$path" 59855 if test ! -f "$path" && test ! -d "$path"; then 59856 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59857 fi 59858 59859 if test -d "$path"; then 59860 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59861 else 59862 dir="`$DIRNAME "$path"`" 59863 base="`$BASENAME "$path"`" 59864 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59865 fi 59866 fi 59867 fi 59868 59869 59870 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59872 $as_echo_n "checking for freetype includes... " >&6; } 59873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59874 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59875 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59877 $as_echo_n "checking for freetype libraries... " >&6; } 59878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59879 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59880 fi 59881 59882 fi 59883 if test "x$FOUND_FREETYPE" != xyes; then 59884 FREETYPE_BASE_DIR="$HOME/freetype" 59885 59886 windows_path="$FREETYPE_BASE_DIR" 59887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59888 unix_path=`$CYGPATH -u "$windows_path"` 59889 FREETYPE_BASE_DIR="$unix_path" 59890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59891 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59892 FREETYPE_BASE_DIR="$unix_path" 59893 fi 59894 59895 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59896 59897 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59898 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 59899 METHOD="well-known location" 59900 59901 # Let's start with an optimistic view of the world :-) 59902 FOUND_FREETYPE=yes 59903 59904 # First look for the canonical freetype main include file ft2build.h. 59905 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59906 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59907 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59908 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59909 # Fail. 59910 FOUND_FREETYPE=no 59911 fi 59912 fi 59913 59914 if test "x$FOUND_FREETYPE" = xyes; then 59915 # Include file found, let's continue the sanity check. 59916 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59917 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59918 59919 # Reset to default value 59920 FREETYPE_BASE_NAME=freetype 59921 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59922 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59923 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59924 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59925 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59926 # for the .6 version explicitly. 59927 FREETYPE_BASE_NAME=freetype.6 59928 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59929 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59930 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59931 else 59932 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59933 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59934 FOUND_FREETYPE=no 59935 fi 59936 else 59937 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59938 # On Windows, we will need both .lib and .dll file. 59939 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59940 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59941 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59942 FOUND_FREETYPE=no 59943 fi 59944 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59945 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59946 # Found lib in isa dir, use that instead. 59947 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59948 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59949 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59950 fi 59951 fi 59952 fi 59953 59954 if test "x$FOUND_FREETYPE" = xyes; then 59955 59956 # Only process if variable expands to non-empty 59957 59958 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59960 59961 # Input might be given as Windows format, start by converting to 59962 # unix format. 59963 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59964 new_path=`$CYGPATH -u "$path"` 59965 59966 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59967 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59968 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59969 # "foo.exe" is OK but "foo" is an error. 59970 # 59971 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59972 # It is also a way to make sure we got the proper file name for the real test later on. 59973 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59974 if test "x$test_shortpath" = x; then 59975 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59976 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59977 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59978 fi 59979 59980 # Call helper function which possibly converts this using DOS-style short mode. 59981 # If so, the updated path is stored in $new_path. 59982 59983 input_path="$new_path" 59984 # Check if we need to convert this using DOS-style short mode. If the path 59985 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59986 # take no chances and rewrite it. 59987 # Note: m4 eats our [], so we need to use [ and ] instead. 59988 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59989 if test "x$has_forbidden_chars" != x; then 59990 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59991 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59992 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59993 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59994 # Going to short mode and back again did indeed matter. Since short mode is 59995 # case insensitive, let's make it lowercase to improve readability. 59996 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59997 # Now convert it back to Unix-style (cygpath) 59998 input_path=`$CYGPATH -u "$shortmode_path"` 59999 new_path="$input_path" 60000 fi 60001 fi 60002 60003 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60004 if test "x$test_cygdrive_prefix" = x; then 60005 # As a simple fix, exclude /usr/bin since it's not a real path. 60006 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60007 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60008 # a path prefixed by /cygdrive for fixpath to work. 60009 new_path="$CYGWIN_ROOT_PATH$input_path" 60010 fi 60011 fi 60012 60013 60014 if test "x$path" != "x$new_path"; then 60015 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60016 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60017 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60018 fi 60019 60020 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60021 60022 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60023 has_colon=`$ECHO $path | $GREP ^.:` 60024 new_path="$path" 60025 if test "x$has_colon" = x; then 60026 # Not in mixed or Windows style, start by that. 60027 new_path=`cmd //c echo $path` 60028 fi 60029 60030 60031 input_path="$new_path" 60032 # Check if we need to convert this using DOS-style short mode. If the path 60033 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60034 # take no chances and rewrite it. 60035 # Note: m4 eats our [], so we need to use [ and ] instead. 60036 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60037 if test "x$has_forbidden_chars" != x; then 60038 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60039 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60040 fi 60041 60042 60043 windows_path="$new_path" 60044 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60045 unix_path=`$CYGPATH -u "$windows_path"` 60046 new_path="$unix_path" 60047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60048 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60049 new_path="$unix_path" 60050 fi 60051 60052 if test "x$path" != "x$new_path"; then 60053 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60054 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60055 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60056 fi 60057 60058 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60059 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60060 60061 else 60062 # We're on a unix platform. Hooray! :) 60063 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60064 has_space=`$ECHO "$path" | $GREP " "` 60065 if test "x$has_space" != x; then 60066 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60067 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60068 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60069 fi 60070 60071 # Use eval to expand a potential ~ 60072 eval path="$path" 60073 if test ! -f "$path" && test ! -d "$path"; then 60074 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60075 fi 60076 60077 if test -d "$path"; then 60078 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60079 else 60080 dir="`$DIRNAME "$path"`" 60081 base="`$BASENAME "$path"`" 60082 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60083 fi 60084 fi 60085 fi 60086 60087 60088 # Only process if variable expands to non-empty 60089 60090 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60092 60093 # Input might be given as Windows format, start by converting to 60094 # unix format. 60095 path="$POTENTIAL_FREETYPE_LIB_PATH" 60096 new_path=`$CYGPATH -u "$path"` 60097 60098 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60099 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60100 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60101 # "foo.exe" is OK but "foo" is an error. 60102 # 60103 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60104 # It is also a way to make sure we got the proper file name for the real test later on. 60105 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60106 if test "x$test_shortpath" = x; then 60107 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60108 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60109 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60110 fi 60111 60112 # Call helper function which possibly converts this using DOS-style short mode. 60113 # If so, the updated path is stored in $new_path. 60114 60115 input_path="$new_path" 60116 # Check if we need to convert this using DOS-style short mode. If the path 60117 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60118 # take no chances and rewrite it. 60119 # Note: m4 eats our [], so we need to use [ and ] instead. 60120 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60121 if test "x$has_forbidden_chars" != x; then 60122 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60123 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60124 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60125 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60126 # Going to short mode and back again did indeed matter. Since short mode is 60127 # case insensitive, let's make it lowercase to improve readability. 60128 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60129 # Now convert it back to Unix-style (cygpath) 60130 input_path=`$CYGPATH -u "$shortmode_path"` 60131 new_path="$input_path" 60132 fi 60133 fi 60134 60135 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60136 if test "x$test_cygdrive_prefix" = x; then 60137 # As a simple fix, exclude /usr/bin since it's not a real path. 60138 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60139 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60140 # a path prefixed by /cygdrive for fixpath to work. 60141 new_path="$CYGWIN_ROOT_PATH$input_path" 60142 fi 60143 fi 60144 60145 60146 if test "x$path" != "x$new_path"; then 60147 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60148 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60149 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60150 fi 60151 60152 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60153 60154 path="$POTENTIAL_FREETYPE_LIB_PATH" 60155 has_colon=`$ECHO $path | $GREP ^.:` 60156 new_path="$path" 60157 if test "x$has_colon" = x; then 60158 # Not in mixed or Windows style, start by that. 60159 new_path=`cmd //c echo $path` 60160 fi 60161 60162 60163 input_path="$new_path" 60164 # Check if we need to convert this using DOS-style short mode. If the path 60165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60166 # take no chances and rewrite it. 60167 # Note: m4 eats our [], so we need to use [ and ] instead. 60168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60169 if test "x$has_forbidden_chars" != x; then 60170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60171 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60172 fi 60173 60174 60175 windows_path="$new_path" 60176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60177 unix_path=`$CYGPATH -u "$windows_path"` 60178 new_path="$unix_path" 60179 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60180 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60181 new_path="$unix_path" 60182 fi 60183 60184 if test "x$path" != "x$new_path"; then 60185 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60186 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60187 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60188 fi 60189 60190 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60191 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60192 60193 else 60194 # We're on a unix platform. Hooray! :) 60195 path="$POTENTIAL_FREETYPE_LIB_PATH" 60196 has_space=`$ECHO "$path" | $GREP " "` 60197 if test "x$has_space" != x; then 60198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60199 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60200 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60201 fi 60202 60203 # Use eval to expand a potential ~ 60204 eval path="$path" 60205 if test ! -f "$path" && test ! -d "$path"; then 60206 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60207 fi 60208 60209 if test -d "$path"; then 60210 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60211 else 60212 dir="`$DIRNAME "$path"`" 60213 base="`$BASENAME "$path"`" 60214 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60215 fi 60216 fi 60217 fi 60218 60219 60220 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60222 $as_echo_n "checking for freetype includes... " >&6; } 60223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60224 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60225 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60227 $as_echo_n "checking for freetype libraries... " >&6; } 60228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60229 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60230 fi 60231 60232 else 60233 60234 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60235 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 60236 METHOD="well-known location" 60237 60238 # Let's start with an optimistic view of the world :-) 60239 FOUND_FREETYPE=yes 60240 60241 # First look for the canonical freetype main include file ft2build.h. 60242 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60243 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60244 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60245 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60246 # Fail. 60247 FOUND_FREETYPE=no 60248 fi 60249 fi 60250 60251 if test "x$FOUND_FREETYPE" = xyes; then 60252 # Include file found, let's continue the sanity check. 60253 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60254 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60255 60256 # Reset to default value 60257 FREETYPE_BASE_NAME=freetype 60258 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60259 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60260 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60261 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60262 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60263 # for the .6 version explicitly. 60264 FREETYPE_BASE_NAME=freetype.6 60265 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60266 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60267 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60268 else 60269 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60270 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60271 FOUND_FREETYPE=no 60272 fi 60273 else 60274 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60275 # On Windows, we will need both .lib and .dll file. 60276 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60277 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60278 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60279 FOUND_FREETYPE=no 60280 fi 60281 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60282 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60283 # Found lib in isa dir, use that instead. 60284 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60285 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60286 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60287 fi 60288 fi 60289 fi 60290 60291 if test "x$FOUND_FREETYPE" = xyes; then 60292 60293 # Only process if variable expands to non-empty 60294 60295 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60297 60298 # Input might be given as Windows format, start by converting to 60299 # unix format. 60300 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60301 new_path=`$CYGPATH -u "$path"` 60302 60303 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60304 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60305 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60306 # "foo.exe" is OK but "foo" is an error. 60307 # 60308 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60309 # It is also a way to make sure we got the proper file name for the real test later on. 60310 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60311 if test "x$test_shortpath" = x; then 60312 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60313 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60314 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60315 fi 60316 60317 # Call helper function which possibly converts this using DOS-style short mode. 60318 # If so, the updated path is stored in $new_path. 60319 60320 input_path="$new_path" 60321 # Check if we need to convert this using DOS-style short mode. If the path 60322 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60323 # take no chances and rewrite it. 60324 # Note: m4 eats our [], so we need to use [ and ] instead. 60325 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60326 if test "x$has_forbidden_chars" != x; then 60327 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60328 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60329 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60330 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60331 # Going to short mode and back again did indeed matter. Since short mode is 60332 # case insensitive, let's make it lowercase to improve readability. 60333 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60334 # Now convert it back to Unix-style (cygpath) 60335 input_path=`$CYGPATH -u "$shortmode_path"` 60336 new_path="$input_path" 60337 fi 60338 fi 60339 60340 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60341 if test "x$test_cygdrive_prefix" = x; then 60342 # As a simple fix, exclude /usr/bin since it's not a real path. 60343 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60344 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60345 # a path prefixed by /cygdrive for fixpath to work. 60346 new_path="$CYGWIN_ROOT_PATH$input_path" 60347 fi 60348 fi 60349 60350 60351 if test "x$path" != "x$new_path"; then 60352 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60353 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60354 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60355 fi 60356 60357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60358 60359 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60360 has_colon=`$ECHO $path | $GREP ^.:` 60361 new_path="$path" 60362 if test "x$has_colon" = x; then 60363 # Not in mixed or Windows style, start by that. 60364 new_path=`cmd //c echo $path` 60365 fi 60366 60367 60368 input_path="$new_path" 60369 # Check if we need to convert this using DOS-style short mode. If the path 60370 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60371 # take no chances and rewrite it. 60372 # Note: m4 eats our [], so we need to use [ and ] instead. 60373 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60374 if test "x$has_forbidden_chars" != x; then 60375 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60376 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60377 fi 60378 60379 60380 windows_path="$new_path" 60381 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60382 unix_path=`$CYGPATH -u "$windows_path"` 60383 new_path="$unix_path" 60384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60385 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60386 new_path="$unix_path" 60387 fi 60388 60389 if test "x$path" != "x$new_path"; then 60390 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60391 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60392 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60393 fi 60394 60395 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60396 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60397 60398 else 60399 # We're on a unix platform. Hooray! :) 60400 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60401 has_space=`$ECHO "$path" | $GREP " "` 60402 if test "x$has_space" != x; then 60403 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60404 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60405 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60406 fi 60407 60408 # Use eval to expand a potential ~ 60409 eval path="$path" 60410 if test ! -f "$path" && test ! -d "$path"; then 60411 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60412 fi 60413 60414 if test -d "$path"; then 60415 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60416 else 60417 dir="`$DIRNAME "$path"`" 60418 base="`$BASENAME "$path"`" 60419 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60420 fi 60421 fi 60422 fi 60423 60424 60425 # Only process if variable expands to non-empty 60426 60427 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60429 60430 # Input might be given as Windows format, start by converting to 60431 # unix format. 60432 path="$POTENTIAL_FREETYPE_LIB_PATH" 60433 new_path=`$CYGPATH -u "$path"` 60434 60435 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60436 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60437 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60438 # "foo.exe" is OK but "foo" is an error. 60439 # 60440 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60441 # It is also a way to make sure we got the proper file name for the real test later on. 60442 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60443 if test "x$test_shortpath" = x; then 60444 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60445 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60446 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60447 fi 60448 60449 # Call helper function which possibly converts this using DOS-style short mode. 60450 # If so, the updated path is stored in $new_path. 60451 60452 input_path="$new_path" 60453 # Check if we need to convert this using DOS-style short mode. If the path 60454 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60455 # take no chances and rewrite it. 60456 # Note: m4 eats our [], so we need to use [ and ] instead. 60457 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60458 if test "x$has_forbidden_chars" != x; then 60459 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60460 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60461 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60462 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60463 # Going to short mode and back again did indeed matter. Since short mode is 60464 # case insensitive, let's make it lowercase to improve readability. 60465 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60466 # Now convert it back to Unix-style (cygpath) 60467 input_path=`$CYGPATH -u "$shortmode_path"` 60468 new_path="$input_path" 60469 fi 60470 fi 60471 60472 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60473 if test "x$test_cygdrive_prefix" = x; then 60474 # As a simple fix, exclude /usr/bin since it's not a real path. 60475 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60476 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60477 # a path prefixed by /cygdrive for fixpath to work. 60478 new_path="$CYGWIN_ROOT_PATH$input_path" 60479 fi 60480 fi 60481 60482 60483 if test "x$path" != "x$new_path"; then 60484 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60485 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60486 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60487 fi 60488 60489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60490 60491 path="$POTENTIAL_FREETYPE_LIB_PATH" 60492 has_colon=`$ECHO $path | $GREP ^.:` 60493 new_path="$path" 60494 if test "x$has_colon" = x; then 60495 # Not in mixed or Windows style, start by that. 60496 new_path=`cmd //c echo $path` 60497 fi 60498 60499 60500 input_path="$new_path" 60501 # Check if we need to convert this using DOS-style short mode. If the path 60502 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60503 # take no chances and rewrite it. 60504 # Note: m4 eats our [], so we need to use [ and ] instead. 60505 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60506 if test "x$has_forbidden_chars" != x; then 60507 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60508 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60509 fi 60510 60511 60512 windows_path="$new_path" 60513 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60514 unix_path=`$CYGPATH -u "$windows_path"` 60515 new_path="$unix_path" 60516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60517 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60518 new_path="$unix_path" 60519 fi 60520 60521 if test "x$path" != "x$new_path"; then 60522 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60523 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60524 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60525 fi 60526 60527 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60528 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60529 60530 else 60531 # We're on a unix platform. Hooray! :) 60532 path="$POTENTIAL_FREETYPE_LIB_PATH" 60533 has_space=`$ECHO "$path" | $GREP " "` 60534 if test "x$has_space" != x; then 60535 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60536 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60537 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60538 fi 60539 60540 # Use eval to expand a potential ~ 60541 eval path="$path" 60542 if test ! -f "$path" && test ! -d "$path"; then 60543 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60544 fi 60545 60546 if test -d "$path"; then 60547 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60548 else 60549 dir="`$DIRNAME "$path"`" 60550 base="`$BASENAME "$path"`" 60551 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60552 fi 60553 fi 60554 fi 60555 60556 60557 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60559 $as_echo_n "checking for freetype includes... " >&6; } 60560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60561 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60562 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60564 $as_echo_n "checking for freetype libraries... " >&6; } 60565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60566 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60567 fi 60568 60569 fi 60570 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 60571 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 60572 # Source is available, as a last resort try to build freetype in default location 60573 60574 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 60575 BUILD_FREETYPE=yes 60576 60577 # Check if the freetype sources are acessible.. 60578 if ! test -d $FREETYPE_SRC_PATH; then 60579 { $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 60580 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 60581 BUILD_FREETYPE=no 60582 fi 60583 # ..and contain a vc2010 project file 60584 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 60585 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 60586 { $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 60587 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 60588 BUILD_FREETYPE=no 60589 fi 60590 # Now check if configure found a version of 'msbuild.exe' 60591 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 60592 { $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 60593 $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;} 60594 BUILD_FREETYPE=no 60595 fi 60596 60597 # Ready to go.. 60598 if test "x$BUILD_FREETYPE" = xyes; then 60599 # msbuild requires trailing slashes for output directories 60600 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 60601 freetype_lib_path_unix="$freetype_lib_path" 60602 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 60603 60604 unix_path="$vcxproj_path" 60605 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60606 windows_path=`$CYGPATH -m "$unix_path"` 60607 vcxproj_path="$windows_path" 60608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60609 windows_path=`cmd //c echo $unix_path` 60610 vcxproj_path="$windows_path" 60611 fi 60612 60613 60614 unix_path="$freetype_lib_path" 60615 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60616 windows_path=`$CYGPATH -m "$unix_path"` 60617 freetype_lib_path="$windows_path" 60618 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60619 windows_path=`cmd //c echo $unix_path` 60620 freetype_lib_path="$windows_path" 60621 fi 60622 60623 60624 unix_path="$freetype_obj_path" 60625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60626 windows_path=`$CYGPATH -m "$unix_path"` 60627 freetype_obj_path="$windows_path" 60628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60629 windows_path=`cmd //c echo $unix_path` 60630 freetype_obj_path="$windows_path" 60631 fi 60632 60633 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 60634 freetype_platform=x64 60635 else 60636 freetype_platform=win32 60637 fi 60638 60639 # The original freetype project file is for VS 2010 (i.e. 'v100'), 60640 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 60641 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 60642 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 60643 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 60644 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 60645 60646 # First we try to build the freetype.dll 60647 $ECHO -e "@echo off\n"\ 60648 "$MSBUILD $vcxproj_path "\ 60649 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 60650 "/p:Configuration=\"Release Multithreaded\" "\ 60651 "/p:Platform=$freetype_platform "\ 60652 "/p:ConfigurationType=DynamicLibrary "\ 60653 "/p:TargetName=freetype "\ 60654 "/p:OutDir=\"$freetype_lib_path\" "\ 60655 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 60656 cmd /c freetype.bat 60657 60658 if test -s "$freetype_lib_path_unix/freetype.dll"; then 60659 # If that succeeds we also build freetype.lib 60660 $ECHO -e "@echo off\n"\ 60661 "$MSBUILD $vcxproj_path "\ 60662 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 60663 "/p:Configuration=\"Release Multithreaded\" "\ 60664 "/p:Platform=$freetype_platform "\ 60665 "/p:ConfigurationType=StaticLibrary "\ 60666 "/p:TargetName=freetype "\ 60667 "/p:OutDir=\"$freetype_lib_path\" "\ 60668 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 60669 cmd /c freetype.bat 60670 60671 if test -s "$freetype_lib_path_unix/freetype.lib"; then 60672 # Once we build both, lib and dll, set freetype lib and include path appropriately 60673 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 60674 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 60675 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 60676 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 60677 else 60678 BUILD_FREETYPE=no 60679 fi 60680 else 60681 BUILD_FREETYPE=no 60682 fi 60683 fi 60684 60685 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 60686 60687 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60688 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 60689 METHOD="well-known location" 60690 60691 # Let's start with an optimistic view of the world :-) 60692 FOUND_FREETYPE=yes 60693 60694 # First look for the canonical freetype main include file ft2build.h. 60695 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60696 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60697 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60698 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60699 # Fail. 60700 FOUND_FREETYPE=no 60701 fi 60702 fi 60703 60704 if test "x$FOUND_FREETYPE" = xyes; then 60705 # Include file found, let's continue the sanity check. 60706 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60707 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60708 60709 # Reset to default value 60710 FREETYPE_BASE_NAME=freetype 60711 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60712 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60713 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60714 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60715 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60716 # for the .6 version explicitly. 60717 FREETYPE_BASE_NAME=freetype.6 60718 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60719 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60720 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60721 else 60722 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60723 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60724 FOUND_FREETYPE=no 60725 fi 60726 else 60727 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60728 # On Windows, we will need both .lib and .dll file. 60729 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60730 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60731 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60732 FOUND_FREETYPE=no 60733 fi 60734 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60735 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60736 # Found lib in isa dir, use that instead. 60737 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60738 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60739 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60740 fi 60741 fi 60742 fi 60743 60744 if test "x$FOUND_FREETYPE" = xyes; then 60745 60746 # Only process if variable expands to non-empty 60747 60748 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60750 60751 # Input might be given as Windows format, start by converting to 60752 # unix format. 60753 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60754 new_path=`$CYGPATH -u "$path"` 60755 60756 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60757 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60758 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60759 # "foo.exe" is OK but "foo" is an error. 60760 # 60761 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60762 # It is also a way to make sure we got the proper file name for the real test later on. 60763 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60764 if test "x$test_shortpath" = x; then 60765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60766 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60767 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60768 fi 60769 60770 # Call helper function which possibly converts this using DOS-style short mode. 60771 # If so, the updated path is stored in $new_path. 60772 60773 input_path="$new_path" 60774 # Check if we need to convert this using DOS-style short mode. If the path 60775 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60776 # take no chances and rewrite it. 60777 # Note: m4 eats our [], so we need to use [ and ] instead. 60778 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60779 if test "x$has_forbidden_chars" != x; then 60780 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60781 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60782 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60783 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60784 # Going to short mode and back again did indeed matter. Since short mode is 60785 # case insensitive, let's make it lowercase to improve readability. 60786 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60787 # Now convert it back to Unix-style (cygpath) 60788 input_path=`$CYGPATH -u "$shortmode_path"` 60789 new_path="$input_path" 60790 fi 60791 fi 60792 60793 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60794 if test "x$test_cygdrive_prefix" = x; then 60795 # As a simple fix, exclude /usr/bin since it's not a real path. 60796 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60797 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60798 # a path prefixed by /cygdrive for fixpath to work. 60799 new_path="$CYGWIN_ROOT_PATH$input_path" 60800 fi 60801 fi 60802 60803 60804 if test "x$path" != "x$new_path"; then 60805 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60806 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60807 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60808 fi 60809 60810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60811 60812 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60813 has_colon=`$ECHO $path | $GREP ^.:` 60814 new_path="$path" 60815 if test "x$has_colon" = x; then 60816 # Not in mixed or Windows style, start by that. 60817 new_path=`cmd //c echo $path` 60818 fi 60819 60820 60821 input_path="$new_path" 60822 # Check if we need to convert this using DOS-style short mode. If the path 60823 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60824 # take no chances and rewrite it. 60825 # Note: m4 eats our [], so we need to use [ and ] instead. 60826 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60827 if test "x$has_forbidden_chars" != x; then 60828 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60829 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60830 fi 60831 60832 60833 windows_path="$new_path" 60834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60835 unix_path=`$CYGPATH -u "$windows_path"` 60836 new_path="$unix_path" 60837 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60838 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60839 new_path="$unix_path" 60840 fi 60841 60842 if test "x$path" != "x$new_path"; then 60843 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60844 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60845 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60846 fi 60847 60848 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60849 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60850 60851 else 60852 # We're on a unix platform. Hooray! :) 60853 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60854 has_space=`$ECHO "$path" | $GREP " "` 60855 if test "x$has_space" != x; then 60856 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60857 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60858 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60859 fi 60860 60861 # Use eval to expand a potential ~ 60862 eval path="$path" 60863 if test ! -f "$path" && test ! -d "$path"; then 60864 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60865 fi 60866 60867 if test -d "$path"; then 60868 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60869 else 60870 dir="`$DIRNAME "$path"`" 60871 base="`$BASENAME "$path"`" 60872 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60873 fi 60874 fi 60875 fi 60876 60877 60878 # Only process if variable expands to non-empty 60879 60880 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60882 60883 # Input might be given as Windows format, start by converting to 60884 # unix format. 60885 path="$POTENTIAL_FREETYPE_LIB_PATH" 60886 new_path=`$CYGPATH -u "$path"` 60887 60888 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60889 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60890 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60891 # "foo.exe" is OK but "foo" is an error. 60892 # 60893 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60894 # It is also a way to make sure we got the proper file name for the real test later on. 60895 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60896 if test "x$test_shortpath" = x; then 60897 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60898 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60899 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60900 fi 60901 60902 # Call helper function which possibly converts this using DOS-style short mode. 60903 # If so, the updated path is stored in $new_path. 60904 60905 input_path="$new_path" 60906 # Check if we need to convert this using DOS-style short mode. If the path 60907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60908 # take no chances and rewrite it. 60909 # Note: m4 eats our [], so we need to use [ and ] instead. 60910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60911 if test "x$has_forbidden_chars" != x; then 60912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60913 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60914 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60915 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60916 # Going to short mode and back again did indeed matter. Since short mode is 60917 # case insensitive, let's make it lowercase to improve readability. 60918 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60919 # Now convert it back to Unix-style (cygpath) 60920 input_path=`$CYGPATH -u "$shortmode_path"` 60921 new_path="$input_path" 60922 fi 60923 fi 60924 60925 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60926 if test "x$test_cygdrive_prefix" = x; then 60927 # As a simple fix, exclude /usr/bin since it's not a real path. 60928 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60929 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60930 # a path prefixed by /cygdrive for fixpath to work. 60931 new_path="$CYGWIN_ROOT_PATH$input_path" 60932 fi 60933 fi 60934 60935 60936 if test "x$path" != "x$new_path"; then 60937 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60938 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60939 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60940 fi 60941 60942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60943 60944 path="$POTENTIAL_FREETYPE_LIB_PATH" 60945 has_colon=`$ECHO $path | $GREP ^.:` 60946 new_path="$path" 60947 if test "x$has_colon" = x; then 60948 # Not in mixed or Windows style, start by that. 60949 new_path=`cmd //c echo $path` 60950 fi 60951 60952 60953 input_path="$new_path" 60954 # Check if we need to convert this using DOS-style short mode. If the path 60955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60956 # take no chances and rewrite it. 60957 # Note: m4 eats our [], so we need to use [ and ] instead. 60958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60959 if test "x$has_forbidden_chars" != x; then 60960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60961 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60962 fi 60963 60964 60965 windows_path="$new_path" 60966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60967 unix_path=`$CYGPATH -u "$windows_path"` 60968 new_path="$unix_path" 60969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60970 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60971 new_path="$unix_path" 60972 fi 60973 60974 if test "x$path" != "x$new_path"; then 60975 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60976 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60977 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60978 fi 60979 60980 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60981 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60982 60983 else 60984 # We're on a unix platform. Hooray! :) 60985 path="$POTENTIAL_FREETYPE_LIB_PATH" 60986 has_space=`$ECHO "$path" | $GREP " "` 60987 if test "x$has_space" != x; then 60988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60989 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60990 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60991 fi 60992 60993 # Use eval to expand a potential ~ 60994 eval path="$path" 60995 if test ! -f "$path" && test ! -d "$path"; then 60996 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60997 fi 60998 60999 if test -d "$path"; then 61000 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61001 else 61002 dir="`$DIRNAME "$path"`" 61003 base="`$BASENAME "$path"`" 61004 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61005 fi 61006 fi 61007 fi 61008 61009 61010 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61012 $as_echo_n "checking for freetype includes... " >&6; } 61013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61014 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61015 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61017 $as_echo_n "checking for freetype libraries... " >&6; } 61018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61019 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61020 fi 61021 61022 else 61023 61024 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61025 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 61026 METHOD="well-known location" 61027 61028 # Let's start with an optimistic view of the world :-) 61029 FOUND_FREETYPE=yes 61030 61031 # First look for the canonical freetype main include file ft2build.h. 61032 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61033 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61034 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61035 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61036 # Fail. 61037 FOUND_FREETYPE=no 61038 fi 61039 fi 61040 61041 if test "x$FOUND_FREETYPE" = xyes; then 61042 # Include file found, let's continue the sanity check. 61043 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61044 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61045 61046 # Reset to default value 61047 FREETYPE_BASE_NAME=freetype 61048 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61049 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61050 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61051 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61052 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61053 # for the .6 version explicitly. 61054 FREETYPE_BASE_NAME=freetype.6 61055 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61056 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61057 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61058 else 61059 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61060 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61061 FOUND_FREETYPE=no 61062 fi 61063 else 61064 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61065 # On Windows, we will need both .lib and .dll file. 61066 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61067 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61068 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61069 FOUND_FREETYPE=no 61070 fi 61071 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61072 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61073 # Found lib in isa dir, use that instead. 61074 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61075 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61076 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61077 fi 61078 fi 61079 fi 61080 61081 if test "x$FOUND_FREETYPE" = xyes; then 61082 61083 # Only process if variable expands to non-empty 61084 61085 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61086 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61087 61088 # Input might be given as Windows format, start by converting to 61089 # unix format. 61090 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61091 new_path=`$CYGPATH -u "$path"` 61092 61093 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61094 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61095 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61096 # "foo.exe" is OK but "foo" is an error. 61097 # 61098 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61099 # It is also a way to make sure we got the proper file name for the real test later on. 61100 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61101 if test "x$test_shortpath" = x; then 61102 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61103 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61104 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61105 fi 61106 61107 # Call helper function which possibly converts this using DOS-style short mode. 61108 # If so, the updated path is stored in $new_path. 61109 61110 input_path="$new_path" 61111 # Check if we need to convert this using DOS-style short mode. If the path 61112 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61113 # take no chances and rewrite it. 61114 # Note: m4 eats our [], so we need to use [ and ] instead. 61115 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61116 if test "x$has_forbidden_chars" != x; then 61117 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61118 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61119 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61120 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61121 # Going to short mode and back again did indeed matter. Since short mode is 61122 # case insensitive, let's make it lowercase to improve readability. 61123 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61124 # Now convert it back to Unix-style (cygpath) 61125 input_path=`$CYGPATH -u "$shortmode_path"` 61126 new_path="$input_path" 61127 fi 61128 fi 61129 61130 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61131 if test "x$test_cygdrive_prefix" = x; then 61132 # As a simple fix, exclude /usr/bin since it's not a real path. 61133 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61134 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61135 # a path prefixed by /cygdrive for fixpath to work. 61136 new_path="$CYGWIN_ROOT_PATH$input_path" 61137 fi 61138 fi 61139 61140 61141 if test "x$path" != "x$new_path"; then 61142 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61143 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61144 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61145 fi 61146 61147 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61148 61149 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61150 has_colon=`$ECHO $path | $GREP ^.:` 61151 new_path="$path" 61152 if test "x$has_colon" = x; then 61153 # Not in mixed or Windows style, start by that. 61154 new_path=`cmd //c echo $path` 61155 fi 61156 61157 61158 input_path="$new_path" 61159 # Check if we need to convert this using DOS-style short mode. If the path 61160 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61161 # take no chances and rewrite it. 61162 # Note: m4 eats our [], so we need to use [ and ] instead. 61163 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61164 if test "x$has_forbidden_chars" != x; then 61165 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61166 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61167 fi 61168 61169 61170 windows_path="$new_path" 61171 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61172 unix_path=`$CYGPATH -u "$windows_path"` 61173 new_path="$unix_path" 61174 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61175 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61176 new_path="$unix_path" 61177 fi 61178 61179 if test "x$path" != "x$new_path"; then 61180 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61181 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61182 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61183 fi 61184 61185 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61186 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61187 61188 else 61189 # We're on a unix platform. Hooray! :) 61190 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61191 has_space=`$ECHO "$path" | $GREP " "` 61192 if test "x$has_space" != x; then 61193 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61194 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61195 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61196 fi 61197 61198 # Use eval to expand a potential ~ 61199 eval path="$path" 61200 if test ! -f "$path" && test ! -d "$path"; then 61201 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61202 fi 61203 61204 if test -d "$path"; then 61205 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61206 else 61207 dir="`$DIRNAME "$path"`" 61208 base="`$BASENAME "$path"`" 61209 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61210 fi 61211 fi 61212 fi 61213 61214 61215 # Only process if variable expands to non-empty 61216 61217 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61219 61220 # Input might be given as Windows format, start by converting to 61221 # unix format. 61222 path="$POTENTIAL_FREETYPE_LIB_PATH" 61223 new_path=`$CYGPATH -u "$path"` 61224 61225 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61226 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61227 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61228 # "foo.exe" is OK but "foo" is an error. 61229 # 61230 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61231 # It is also a way to make sure we got the proper file name for the real test later on. 61232 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61233 if test "x$test_shortpath" = x; then 61234 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61235 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61236 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61237 fi 61238 61239 # Call helper function which possibly converts this using DOS-style short mode. 61240 # If so, the updated path is stored in $new_path. 61241 61242 input_path="$new_path" 61243 # Check if we need to convert this using DOS-style short mode. If the path 61244 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61245 # take no chances and rewrite it. 61246 # Note: m4 eats our [], so we need to use [ and ] instead. 61247 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61248 if test "x$has_forbidden_chars" != x; then 61249 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61250 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61251 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61252 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61253 # Going to short mode and back again did indeed matter. Since short mode is 61254 # case insensitive, let's make it lowercase to improve readability. 61255 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61256 # Now convert it back to Unix-style (cygpath) 61257 input_path=`$CYGPATH -u "$shortmode_path"` 61258 new_path="$input_path" 61259 fi 61260 fi 61261 61262 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61263 if test "x$test_cygdrive_prefix" = x; then 61264 # As a simple fix, exclude /usr/bin since it's not a real path. 61265 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61266 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61267 # a path prefixed by /cygdrive for fixpath to work. 61268 new_path="$CYGWIN_ROOT_PATH$input_path" 61269 fi 61270 fi 61271 61272 61273 if test "x$path" != "x$new_path"; then 61274 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61275 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61276 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61277 fi 61278 61279 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61280 61281 path="$POTENTIAL_FREETYPE_LIB_PATH" 61282 has_colon=`$ECHO $path | $GREP ^.:` 61283 new_path="$path" 61284 if test "x$has_colon" = x; then 61285 # Not in mixed or Windows style, start by that. 61286 new_path=`cmd //c echo $path` 61287 fi 61288 61289 61290 input_path="$new_path" 61291 # Check if we need to convert this using DOS-style short mode. If the path 61292 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61293 # take no chances and rewrite it. 61294 # Note: m4 eats our [], so we need to use [ and ] instead. 61295 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61296 if test "x$has_forbidden_chars" != x; then 61297 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61298 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61299 fi 61300 61301 61302 windows_path="$new_path" 61303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61304 unix_path=`$CYGPATH -u "$windows_path"` 61305 new_path="$unix_path" 61306 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61307 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61308 new_path="$unix_path" 61309 fi 61310 61311 if test "x$path" != "x$new_path"; then 61312 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61313 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61314 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61315 fi 61316 61317 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61318 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61319 61320 else 61321 # We're on a unix platform. Hooray! :) 61322 path="$POTENTIAL_FREETYPE_LIB_PATH" 61323 has_space=`$ECHO "$path" | $GREP " "` 61324 if test "x$has_space" != x; then 61325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61326 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61327 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61328 fi 61329 61330 # Use eval to expand a potential ~ 61331 eval path="$path" 61332 if test ! -f "$path" && test ! -d "$path"; then 61333 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61334 fi 61335 61336 if test -d "$path"; then 61337 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61338 else 61339 dir="`$DIRNAME "$path"`" 61340 base="`$BASENAME "$path"`" 61341 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61342 fi 61343 fi 61344 fi 61345 61346 61347 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61349 $as_echo_n "checking for freetype includes... " >&6; } 61350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61351 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61352 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61354 $as_echo_n "checking for freetype libraries... " >&6; } 61355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61356 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61357 fi 61358 61359 fi 61360 fi 61361 fi 61362 else 61363 FREETYPE_BASE_DIR="$SYSROOT/usr" 61364 61365 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61366 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61367 METHOD="well-known location" 61368 61369 # Let's start with an optimistic view of the world :-) 61370 FOUND_FREETYPE=yes 61371 61372 # First look for the canonical freetype main include file ft2build.h. 61373 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61374 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61375 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61376 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61377 # Fail. 61378 FOUND_FREETYPE=no 61379 fi 61380 fi 61381 61382 if test "x$FOUND_FREETYPE" = xyes; then 61383 # Include file found, let's continue the sanity check. 61384 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61385 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61386 61387 # Reset to default value 61388 FREETYPE_BASE_NAME=freetype 61389 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61390 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61391 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61392 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61393 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61394 # for the .6 version explicitly. 61395 FREETYPE_BASE_NAME=freetype.6 61396 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61397 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61398 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61399 else 61400 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61401 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61402 FOUND_FREETYPE=no 61403 fi 61404 else 61405 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61406 # On Windows, we will need both .lib and .dll file. 61407 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61408 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61409 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61410 FOUND_FREETYPE=no 61411 fi 61412 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61413 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61414 # Found lib in isa dir, use that instead. 61415 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61417 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61418 fi 61419 fi 61420 fi 61421 61422 if test "x$FOUND_FREETYPE" = xyes; then 61423 61424 # Only process if variable expands to non-empty 61425 61426 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61428 61429 # Input might be given as Windows format, start by converting to 61430 # unix format. 61431 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61432 new_path=`$CYGPATH -u "$path"` 61433 61434 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61435 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61436 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61437 # "foo.exe" is OK but "foo" is an error. 61438 # 61439 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61440 # It is also a way to make sure we got the proper file name for the real test later on. 61441 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61442 if test "x$test_shortpath" = x; then 61443 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61444 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61445 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61446 fi 61447 61448 # Call helper function which possibly converts this using DOS-style short mode. 61449 # If so, the updated path is stored in $new_path. 61450 61451 input_path="$new_path" 61452 # Check if we need to convert this using DOS-style short mode. If the path 61453 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61454 # take no chances and rewrite it. 61455 # Note: m4 eats our [], so we need to use [ and ] instead. 61456 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61457 if test "x$has_forbidden_chars" != x; then 61458 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61459 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61460 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61461 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61462 # Going to short mode and back again did indeed matter. Since short mode is 61463 # case insensitive, let's make it lowercase to improve readability. 61464 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61465 # Now convert it back to Unix-style (cygpath) 61466 input_path=`$CYGPATH -u "$shortmode_path"` 61467 new_path="$input_path" 61468 fi 61469 fi 61470 61471 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61472 if test "x$test_cygdrive_prefix" = x; then 61473 # As a simple fix, exclude /usr/bin since it's not a real path. 61474 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61475 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61476 # a path prefixed by /cygdrive for fixpath to work. 61477 new_path="$CYGWIN_ROOT_PATH$input_path" 61478 fi 61479 fi 61480 61481 61482 if test "x$path" != "x$new_path"; then 61483 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61484 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61485 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61486 fi 61487 61488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61489 61490 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61491 has_colon=`$ECHO $path | $GREP ^.:` 61492 new_path="$path" 61493 if test "x$has_colon" = x; then 61494 # Not in mixed or Windows style, start by that. 61495 new_path=`cmd //c echo $path` 61496 fi 61497 61498 61499 input_path="$new_path" 61500 # Check if we need to convert this using DOS-style short mode. If the path 61501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61502 # take no chances and rewrite it. 61503 # Note: m4 eats our [], so we need to use [ and ] instead. 61504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61505 if test "x$has_forbidden_chars" != x; then 61506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61507 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61508 fi 61509 61510 61511 windows_path="$new_path" 61512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61513 unix_path=`$CYGPATH -u "$windows_path"` 61514 new_path="$unix_path" 61515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61516 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61517 new_path="$unix_path" 61518 fi 61519 61520 if test "x$path" != "x$new_path"; then 61521 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61522 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61523 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61524 fi 61525 61526 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61527 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61528 61529 else 61530 # We're on a unix platform. Hooray! :) 61531 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61532 has_space=`$ECHO "$path" | $GREP " "` 61533 if test "x$has_space" != x; then 61534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61535 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61536 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61537 fi 61538 61539 # Use eval to expand a potential ~ 61540 eval path="$path" 61541 if test ! -f "$path" && test ! -d "$path"; then 61542 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61543 fi 61544 61545 if test -d "$path"; then 61546 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61547 else 61548 dir="`$DIRNAME "$path"`" 61549 base="`$BASENAME "$path"`" 61550 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61551 fi 61552 fi 61553 fi 61554 61555 61556 # Only process if variable expands to non-empty 61557 61558 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61560 61561 # Input might be given as Windows format, start by converting to 61562 # unix format. 61563 path="$POTENTIAL_FREETYPE_LIB_PATH" 61564 new_path=`$CYGPATH -u "$path"` 61565 61566 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61567 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61568 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61569 # "foo.exe" is OK but "foo" is an error. 61570 # 61571 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61572 # It is also a way to make sure we got the proper file name for the real test later on. 61573 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61574 if test "x$test_shortpath" = x; then 61575 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61576 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61577 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61578 fi 61579 61580 # Call helper function which possibly converts this using DOS-style short mode. 61581 # If so, the updated path is stored in $new_path. 61582 61583 input_path="$new_path" 61584 # Check if we need to convert this using DOS-style short mode. If the path 61585 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61586 # take no chances and rewrite it. 61587 # Note: m4 eats our [], so we need to use [ and ] instead. 61588 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61589 if test "x$has_forbidden_chars" != x; then 61590 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61591 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61592 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61593 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61594 # Going to short mode and back again did indeed matter. Since short mode is 61595 # case insensitive, let's make it lowercase to improve readability. 61596 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61597 # Now convert it back to Unix-style (cygpath) 61598 input_path=`$CYGPATH -u "$shortmode_path"` 61599 new_path="$input_path" 61600 fi 61601 fi 61602 61603 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61604 if test "x$test_cygdrive_prefix" = x; then 61605 # As a simple fix, exclude /usr/bin since it's not a real path. 61606 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61607 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61608 # a path prefixed by /cygdrive for fixpath to work. 61609 new_path="$CYGWIN_ROOT_PATH$input_path" 61610 fi 61611 fi 61612 61613 61614 if test "x$path" != "x$new_path"; then 61615 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61617 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61618 fi 61619 61620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61621 61622 path="$POTENTIAL_FREETYPE_LIB_PATH" 61623 has_colon=`$ECHO $path | $GREP ^.:` 61624 new_path="$path" 61625 if test "x$has_colon" = x; then 61626 # Not in mixed or Windows style, start by that. 61627 new_path=`cmd //c echo $path` 61628 fi 61629 61630 61631 input_path="$new_path" 61632 # Check if we need to convert this using DOS-style short mode. If the path 61633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61634 # take no chances and rewrite it. 61635 # Note: m4 eats our [], so we need to use [ and ] instead. 61636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61637 if test "x$has_forbidden_chars" != x; then 61638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61639 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61640 fi 61641 61642 61643 windows_path="$new_path" 61644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61645 unix_path=`$CYGPATH -u "$windows_path"` 61646 new_path="$unix_path" 61647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61649 new_path="$unix_path" 61650 fi 61651 61652 if test "x$path" != "x$new_path"; then 61653 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61654 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61655 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61656 fi 61657 61658 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61659 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61660 61661 else 61662 # We're on a unix platform. Hooray! :) 61663 path="$POTENTIAL_FREETYPE_LIB_PATH" 61664 has_space=`$ECHO "$path" | $GREP " "` 61665 if test "x$has_space" != x; then 61666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61667 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61668 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61669 fi 61670 61671 # Use eval to expand a potential ~ 61672 eval path="$path" 61673 if test ! -f "$path" && test ! -d "$path"; then 61674 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61675 fi 61676 61677 if test -d "$path"; then 61678 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61679 else 61680 dir="`$DIRNAME "$path"`" 61681 base="`$BASENAME "$path"`" 61682 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61683 fi 61684 fi 61685 fi 61686 61687 61688 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61690 $as_echo_n "checking for freetype includes... " >&6; } 61691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61692 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61693 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61695 $as_echo_n "checking for freetype libraries... " >&6; } 61696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61697 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61698 fi 61699 61700 61701 if test "x$FOUND_FREETYPE" != xyes; then 61702 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 61703 61704 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61705 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 61706 METHOD="well-known location" 61707 61708 # Let's start with an optimistic view of the world :-) 61709 FOUND_FREETYPE=yes 61710 61711 # First look for the canonical freetype main include file ft2build.h. 61712 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61713 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61714 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61715 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61716 # Fail. 61717 FOUND_FREETYPE=no 61718 fi 61719 fi 61720 61721 if test "x$FOUND_FREETYPE" = xyes; then 61722 # Include file found, let's continue the sanity check. 61723 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61724 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61725 61726 # Reset to default value 61727 FREETYPE_BASE_NAME=freetype 61728 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61729 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61730 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61731 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61732 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61733 # for the .6 version explicitly. 61734 FREETYPE_BASE_NAME=freetype.6 61735 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61736 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61737 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61738 else 61739 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61740 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61741 FOUND_FREETYPE=no 61742 fi 61743 else 61744 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61745 # On Windows, we will need both .lib and .dll file. 61746 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61747 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61748 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61749 FOUND_FREETYPE=no 61750 fi 61751 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61752 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61753 # Found lib in isa dir, use that instead. 61754 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61755 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61756 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61757 fi 61758 fi 61759 fi 61760 61761 if test "x$FOUND_FREETYPE" = xyes; then 61762 61763 # Only process if variable expands to non-empty 61764 61765 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61767 61768 # Input might be given as Windows format, start by converting to 61769 # unix format. 61770 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61771 new_path=`$CYGPATH -u "$path"` 61772 61773 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61774 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61775 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61776 # "foo.exe" is OK but "foo" is an error. 61777 # 61778 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61779 # It is also a way to make sure we got the proper file name for the real test later on. 61780 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61781 if test "x$test_shortpath" = x; then 61782 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61783 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61784 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61785 fi 61786 61787 # Call helper function which possibly converts this using DOS-style short mode. 61788 # If so, the updated path is stored in $new_path. 61789 61790 input_path="$new_path" 61791 # Check if we need to convert this using DOS-style short mode. If the path 61792 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61793 # take no chances and rewrite it. 61794 # Note: m4 eats our [], so we need to use [ and ] instead. 61795 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61796 if test "x$has_forbidden_chars" != x; then 61797 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61798 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61799 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61800 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61801 # Going to short mode and back again did indeed matter. Since short mode is 61802 # case insensitive, let's make it lowercase to improve readability. 61803 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61804 # Now convert it back to Unix-style (cygpath) 61805 input_path=`$CYGPATH -u "$shortmode_path"` 61806 new_path="$input_path" 61807 fi 61808 fi 61809 61810 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61811 if test "x$test_cygdrive_prefix" = x; then 61812 # As a simple fix, exclude /usr/bin since it's not a real path. 61813 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61814 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61815 # a path prefixed by /cygdrive for fixpath to work. 61816 new_path="$CYGWIN_ROOT_PATH$input_path" 61817 fi 61818 fi 61819 61820 61821 if test "x$path" != "x$new_path"; then 61822 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61823 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61824 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61825 fi 61826 61827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61828 61829 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61830 has_colon=`$ECHO $path | $GREP ^.:` 61831 new_path="$path" 61832 if test "x$has_colon" = x; then 61833 # Not in mixed or Windows style, start by that. 61834 new_path=`cmd //c echo $path` 61835 fi 61836 61837 61838 input_path="$new_path" 61839 # Check if we need to convert this using DOS-style short mode. If the path 61840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61841 # take no chances and rewrite it. 61842 # Note: m4 eats our [], so we need to use [ and ] instead. 61843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61844 if test "x$has_forbidden_chars" != x; then 61845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61846 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61847 fi 61848 61849 61850 windows_path="$new_path" 61851 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61852 unix_path=`$CYGPATH -u "$windows_path"` 61853 new_path="$unix_path" 61854 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61855 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61856 new_path="$unix_path" 61857 fi 61858 61859 if test "x$path" != "x$new_path"; then 61860 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61861 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61862 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61863 fi 61864 61865 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61866 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61867 61868 else 61869 # We're on a unix platform. Hooray! :) 61870 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61871 has_space=`$ECHO "$path" | $GREP " "` 61872 if test "x$has_space" != x; then 61873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61874 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61875 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61876 fi 61877 61878 # Use eval to expand a potential ~ 61879 eval path="$path" 61880 if test ! -f "$path" && test ! -d "$path"; then 61881 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61882 fi 61883 61884 if test -d "$path"; then 61885 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61886 else 61887 dir="`$DIRNAME "$path"`" 61888 base="`$BASENAME "$path"`" 61889 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61890 fi 61891 fi 61892 fi 61893 61894 61895 # Only process if variable expands to non-empty 61896 61897 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61899 61900 # Input might be given as Windows format, start by converting to 61901 # unix format. 61902 path="$POTENTIAL_FREETYPE_LIB_PATH" 61903 new_path=`$CYGPATH -u "$path"` 61904 61905 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61906 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61907 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61908 # "foo.exe" is OK but "foo" is an error. 61909 # 61910 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61911 # It is also a way to make sure we got the proper file name for the real test later on. 61912 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61913 if test "x$test_shortpath" = x; then 61914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61915 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61916 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61917 fi 61918 61919 # Call helper function which possibly converts this using DOS-style short mode. 61920 # If so, the updated path is stored in $new_path. 61921 61922 input_path="$new_path" 61923 # Check if we need to convert this using DOS-style short mode. If the path 61924 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61925 # take no chances and rewrite it. 61926 # Note: m4 eats our [], so we need to use [ and ] instead. 61927 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61928 if test "x$has_forbidden_chars" != x; then 61929 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61930 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61931 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61932 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61933 # Going to short mode and back again did indeed matter. Since short mode is 61934 # case insensitive, let's make it lowercase to improve readability. 61935 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61936 # Now convert it back to Unix-style (cygpath) 61937 input_path=`$CYGPATH -u "$shortmode_path"` 61938 new_path="$input_path" 61939 fi 61940 fi 61941 61942 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61943 if test "x$test_cygdrive_prefix" = x; then 61944 # As a simple fix, exclude /usr/bin since it's not a real path. 61945 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61946 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61947 # a path prefixed by /cygdrive for fixpath to work. 61948 new_path="$CYGWIN_ROOT_PATH$input_path" 61949 fi 61950 fi 61951 61952 61953 if test "x$path" != "x$new_path"; then 61954 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61955 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61956 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61957 fi 61958 61959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61960 61961 path="$POTENTIAL_FREETYPE_LIB_PATH" 61962 has_colon=`$ECHO $path | $GREP ^.:` 61963 new_path="$path" 61964 if test "x$has_colon" = x; then 61965 # Not in mixed or Windows style, start by that. 61966 new_path=`cmd //c echo $path` 61967 fi 61968 61969 61970 input_path="$new_path" 61971 # Check if we need to convert this using DOS-style short mode. If the path 61972 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61973 # take no chances and rewrite it. 61974 # Note: m4 eats our [], so we need to use [ and ] instead. 61975 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61976 if test "x$has_forbidden_chars" != x; then 61977 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61978 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61979 fi 61980 61981 61982 windows_path="$new_path" 61983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61984 unix_path=`$CYGPATH -u "$windows_path"` 61985 new_path="$unix_path" 61986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61987 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61988 new_path="$unix_path" 61989 fi 61990 61991 if test "x$path" != "x$new_path"; then 61992 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61993 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61994 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61995 fi 61996 61997 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61998 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61999 62000 else 62001 # We're on a unix platform. Hooray! :) 62002 path="$POTENTIAL_FREETYPE_LIB_PATH" 62003 has_space=`$ECHO "$path" | $GREP " "` 62004 if test "x$has_space" != x; then 62005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62006 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62007 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62008 fi 62009 62010 # Use eval to expand a potential ~ 62011 eval path="$path" 62012 if test ! -f "$path" && test ! -d "$path"; then 62013 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62014 fi 62015 62016 if test -d "$path"; then 62017 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62018 else 62019 dir="`$DIRNAME "$path"`" 62020 base="`$BASENAME "$path"`" 62021 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62022 fi 62023 fi 62024 fi 62025 62026 62027 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62029 $as_echo_n "checking for freetype includes... " >&6; } 62030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62031 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62032 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62034 $as_echo_n "checking for freetype libraries... " >&6; } 62035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62036 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62037 fi 62038 62039 fi 62040 if test "x$FOUND_FREETYPE" != xyes; then 62041 FREETYPE_BASE_DIR="$SYSROOT/usr/local" 62042 62043 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62044 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62045 METHOD="well-known location" 62046 62047 # Let's start with an optimistic view of the world :-) 62048 FOUND_FREETYPE=yes 62049 62050 # First look for the canonical freetype main include file ft2build.h. 62051 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62052 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62053 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62054 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62055 # Fail. 62056 FOUND_FREETYPE=no 62057 fi 62058 fi 62059 62060 if test "x$FOUND_FREETYPE" = xyes; then 62061 # Include file found, let's continue the sanity check. 62062 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62063 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62064 62065 # Reset to default value 62066 FREETYPE_BASE_NAME=freetype 62067 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62068 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62069 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62070 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62071 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62072 # for the .6 version explicitly. 62073 FREETYPE_BASE_NAME=freetype.6 62074 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62075 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62076 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62077 else 62078 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62079 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62080 FOUND_FREETYPE=no 62081 fi 62082 else 62083 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62084 # On Windows, we will need both .lib and .dll file. 62085 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62086 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62087 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62088 FOUND_FREETYPE=no 62089 fi 62090 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62091 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62092 # Found lib in isa dir, use that instead. 62093 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62094 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62095 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62096 fi 62097 fi 62098 fi 62099 62100 if test "x$FOUND_FREETYPE" = xyes; then 62101 62102 # Only process if variable expands to non-empty 62103 62104 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62106 62107 # Input might be given as Windows format, start by converting to 62108 # unix format. 62109 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62110 new_path=`$CYGPATH -u "$path"` 62111 62112 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62113 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62114 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62115 # "foo.exe" is OK but "foo" is an error. 62116 # 62117 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62118 # It is also a way to make sure we got the proper file name for the real test later on. 62119 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62120 if test "x$test_shortpath" = x; then 62121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62122 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62123 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62124 fi 62125 62126 # Call helper function which possibly converts this using DOS-style short mode. 62127 # If so, the updated path is stored in $new_path. 62128 62129 input_path="$new_path" 62130 # Check if we need to convert this using DOS-style short mode. If the path 62131 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62132 # take no chances and rewrite it. 62133 # Note: m4 eats our [], so we need to use [ and ] instead. 62134 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62135 if test "x$has_forbidden_chars" != x; then 62136 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62137 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62138 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62139 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62140 # Going to short mode and back again did indeed matter. Since short mode is 62141 # case insensitive, let's make it lowercase to improve readability. 62142 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62143 # Now convert it back to Unix-style (cygpath) 62144 input_path=`$CYGPATH -u "$shortmode_path"` 62145 new_path="$input_path" 62146 fi 62147 fi 62148 62149 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62150 if test "x$test_cygdrive_prefix" = x; then 62151 # As a simple fix, exclude /usr/bin since it's not a real path. 62152 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62153 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62154 # a path prefixed by /cygdrive for fixpath to work. 62155 new_path="$CYGWIN_ROOT_PATH$input_path" 62156 fi 62157 fi 62158 62159 62160 if test "x$path" != "x$new_path"; then 62161 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62162 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62163 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62164 fi 62165 62166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62167 62168 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62169 has_colon=`$ECHO $path | $GREP ^.:` 62170 new_path="$path" 62171 if test "x$has_colon" = x; then 62172 # Not in mixed or Windows style, start by that. 62173 new_path=`cmd //c echo $path` 62174 fi 62175 62176 62177 input_path="$new_path" 62178 # Check if we need to convert this using DOS-style short mode. If the path 62179 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62180 # take no chances and rewrite it. 62181 # Note: m4 eats our [], so we need to use [ and ] instead. 62182 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62183 if test "x$has_forbidden_chars" != x; then 62184 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62185 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62186 fi 62187 62188 62189 windows_path="$new_path" 62190 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62191 unix_path=`$CYGPATH -u "$windows_path"` 62192 new_path="$unix_path" 62193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62194 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62195 new_path="$unix_path" 62196 fi 62197 62198 if test "x$path" != "x$new_path"; then 62199 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62200 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62201 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62202 fi 62203 62204 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62205 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62206 62207 else 62208 # We're on a unix platform. Hooray! :) 62209 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62210 has_space=`$ECHO "$path" | $GREP " "` 62211 if test "x$has_space" != x; then 62212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62213 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62214 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62215 fi 62216 62217 # Use eval to expand a potential ~ 62218 eval path="$path" 62219 if test ! -f "$path" && test ! -d "$path"; then 62220 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62221 fi 62222 62223 if test -d "$path"; then 62224 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62225 else 62226 dir="`$DIRNAME "$path"`" 62227 base="`$BASENAME "$path"`" 62228 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62229 fi 62230 fi 62231 fi 62232 62233 62234 # Only process if variable expands to non-empty 62235 62236 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62238 62239 # Input might be given as Windows format, start by converting to 62240 # unix format. 62241 path="$POTENTIAL_FREETYPE_LIB_PATH" 62242 new_path=`$CYGPATH -u "$path"` 62243 62244 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62245 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62246 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62247 # "foo.exe" is OK but "foo" is an error. 62248 # 62249 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62250 # It is also a way to make sure we got the proper file name for the real test later on. 62251 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62252 if test "x$test_shortpath" = x; then 62253 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62254 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62255 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62256 fi 62257 62258 # Call helper function which possibly converts this using DOS-style short mode. 62259 # If so, the updated path is stored in $new_path. 62260 62261 input_path="$new_path" 62262 # Check if we need to convert this using DOS-style short mode. If the path 62263 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62264 # take no chances and rewrite it. 62265 # Note: m4 eats our [], so we need to use [ and ] instead. 62266 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62267 if test "x$has_forbidden_chars" != x; then 62268 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62269 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62270 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62271 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62272 # Going to short mode and back again did indeed matter. Since short mode is 62273 # case insensitive, let's make it lowercase to improve readability. 62274 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62275 # Now convert it back to Unix-style (cygpath) 62276 input_path=`$CYGPATH -u "$shortmode_path"` 62277 new_path="$input_path" 62278 fi 62279 fi 62280 62281 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62282 if test "x$test_cygdrive_prefix" = x; then 62283 # As a simple fix, exclude /usr/bin since it's not a real path. 62284 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62285 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62286 # a path prefixed by /cygdrive for fixpath to work. 62287 new_path="$CYGWIN_ROOT_PATH$input_path" 62288 fi 62289 fi 62290 62291 62292 if test "x$path" != "x$new_path"; then 62293 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62294 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62295 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62296 fi 62297 62298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62299 62300 path="$POTENTIAL_FREETYPE_LIB_PATH" 62301 has_colon=`$ECHO $path | $GREP ^.:` 62302 new_path="$path" 62303 if test "x$has_colon" = x; then 62304 # Not in mixed or Windows style, start by that. 62305 new_path=`cmd //c echo $path` 62306 fi 62307 62308 62309 input_path="$new_path" 62310 # Check if we need to convert this using DOS-style short mode. If the path 62311 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62312 # take no chances and rewrite it. 62313 # Note: m4 eats our [], so we need to use [ and ] instead. 62314 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62315 if test "x$has_forbidden_chars" != x; then 62316 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62317 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62318 fi 62319 62320 62321 windows_path="$new_path" 62322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62323 unix_path=`$CYGPATH -u "$windows_path"` 62324 new_path="$unix_path" 62325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62326 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62327 new_path="$unix_path" 62328 fi 62329 62330 if test "x$path" != "x$new_path"; then 62331 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62332 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62333 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62334 fi 62335 62336 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62337 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62338 62339 else 62340 # We're on a unix platform. Hooray! :) 62341 path="$POTENTIAL_FREETYPE_LIB_PATH" 62342 has_space=`$ECHO "$path" | $GREP " "` 62343 if test "x$has_space" != x; then 62344 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62345 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62346 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62347 fi 62348 62349 # Use eval to expand a potential ~ 62350 eval path="$path" 62351 if test ! -f "$path" && test ! -d "$path"; then 62352 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62353 fi 62354 62355 if test -d "$path"; then 62356 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62357 else 62358 dir="`$DIRNAME "$path"`" 62359 base="`$BASENAME "$path"`" 62360 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62361 fi 62362 fi 62363 fi 62364 62365 62366 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62368 $as_echo_n "checking for freetype includes... " >&6; } 62369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62370 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62371 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62373 $as_echo_n "checking for freetype libraries... " >&6; } 62374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62375 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62376 fi 62377 62378 fi 62379 62380 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 62381 if test "x$FOUND_FREETYPE" != xyes; then 62382 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 62383 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 62384 62385 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62386 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62387 METHOD="well-known location" 62388 62389 # Let's start with an optimistic view of the world :-) 62390 FOUND_FREETYPE=yes 62391 62392 # First look for the canonical freetype main include file ft2build.h. 62393 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62394 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62395 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62396 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62397 # Fail. 62398 FOUND_FREETYPE=no 62399 fi 62400 fi 62401 62402 if test "x$FOUND_FREETYPE" = xyes; then 62403 # Include file found, let's continue the sanity check. 62404 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62405 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62406 62407 # Reset to default value 62408 FREETYPE_BASE_NAME=freetype 62409 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62410 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62411 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62412 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62413 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62414 # for the .6 version explicitly. 62415 FREETYPE_BASE_NAME=freetype.6 62416 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62417 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62418 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62419 else 62420 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62421 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62422 FOUND_FREETYPE=no 62423 fi 62424 else 62425 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62426 # On Windows, we will need both .lib and .dll file. 62427 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62428 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62429 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62430 FOUND_FREETYPE=no 62431 fi 62432 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62433 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62434 # Found lib in isa dir, use that instead. 62435 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62436 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62437 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62438 fi 62439 fi 62440 fi 62441 62442 if test "x$FOUND_FREETYPE" = xyes; then 62443 62444 # Only process if variable expands to non-empty 62445 62446 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62448 62449 # Input might be given as Windows format, start by converting to 62450 # unix format. 62451 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62452 new_path=`$CYGPATH -u "$path"` 62453 62454 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62455 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62456 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62457 # "foo.exe" is OK but "foo" is an error. 62458 # 62459 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62460 # It is also a way to make sure we got the proper file name for the real test later on. 62461 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62462 if test "x$test_shortpath" = x; then 62463 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62464 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62465 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62466 fi 62467 62468 # Call helper function which possibly converts this using DOS-style short mode. 62469 # If so, the updated path is stored in $new_path. 62470 62471 input_path="$new_path" 62472 # Check if we need to convert this using DOS-style short mode. If the path 62473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62474 # take no chances and rewrite it. 62475 # Note: m4 eats our [], so we need to use [ and ] instead. 62476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62477 if test "x$has_forbidden_chars" != x; then 62478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62479 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62480 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62481 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62482 # Going to short mode and back again did indeed matter. Since short mode is 62483 # case insensitive, let's make it lowercase to improve readability. 62484 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62485 # Now convert it back to Unix-style (cygpath) 62486 input_path=`$CYGPATH -u "$shortmode_path"` 62487 new_path="$input_path" 62488 fi 62489 fi 62490 62491 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62492 if test "x$test_cygdrive_prefix" = x; then 62493 # As a simple fix, exclude /usr/bin since it's not a real path. 62494 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62495 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62496 # a path prefixed by /cygdrive for fixpath to work. 62497 new_path="$CYGWIN_ROOT_PATH$input_path" 62498 fi 62499 fi 62500 62501 62502 if test "x$path" != "x$new_path"; then 62503 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62504 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62505 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62506 fi 62507 62508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62509 62510 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62511 has_colon=`$ECHO $path | $GREP ^.:` 62512 new_path="$path" 62513 if test "x$has_colon" = x; then 62514 # Not in mixed or Windows style, start by that. 62515 new_path=`cmd //c echo $path` 62516 fi 62517 62518 62519 input_path="$new_path" 62520 # Check if we need to convert this using DOS-style short mode. If the path 62521 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62522 # take no chances and rewrite it. 62523 # Note: m4 eats our [], so we need to use [ and ] instead. 62524 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62525 if test "x$has_forbidden_chars" != x; then 62526 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62527 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62528 fi 62529 62530 62531 windows_path="$new_path" 62532 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62533 unix_path=`$CYGPATH -u "$windows_path"` 62534 new_path="$unix_path" 62535 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62536 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62537 new_path="$unix_path" 62538 fi 62539 62540 if test "x$path" != "x$new_path"; then 62541 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62542 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62543 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62544 fi 62545 62546 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62547 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62548 62549 else 62550 # We're on a unix platform. Hooray! :) 62551 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62552 has_space=`$ECHO "$path" | $GREP " "` 62553 if test "x$has_space" != x; then 62554 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62555 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62556 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62557 fi 62558 62559 # Use eval to expand a potential ~ 62560 eval path="$path" 62561 if test ! -f "$path" && test ! -d "$path"; then 62562 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62563 fi 62564 62565 if test -d "$path"; then 62566 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62567 else 62568 dir="`$DIRNAME "$path"`" 62569 base="`$BASENAME "$path"`" 62570 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62571 fi 62572 fi 62573 fi 62574 62575 62576 # Only process if variable expands to non-empty 62577 62578 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62580 62581 # Input might be given as Windows format, start by converting to 62582 # unix format. 62583 path="$POTENTIAL_FREETYPE_LIB_PATH" 62584 new_path=`$CYGPATH -u "$path"` 62585 62586 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62587 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62588 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62589 # "foo.exe" is OK but "foo" is an error. 62590 # 62591 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62592 # It is also a way to make sure we got the proper file name for the real test later on. 62593 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62594 if test "x$test_shortpath" = x; then 62595 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62596 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62597 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62598 fi 62599 62600 # Call helper function which possibly converts this using DOS-style short mode. 62601 # If so, the updated path is stored in $new_path. 62602 62603 input_path="$new_path" 62604 # Check if we need to convert this using DOS-style short mode. If the path 62605 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62606 # take no chances and rewrite it. 62607 # Note: m4 eats our [], so we need to use [ and ] instead. 62608 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62609 if test "x$has_forbidden_chars" != x; then 62610 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62611 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62612 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62613 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62614 # Going to short mode and back again did indeed matter. Since short mode is 62615 # case insensitive, let's make it lowercase to improve readability. 62616 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62617 # Now convert it back to Unix-style (cygpath) 62618 input_path=`$CYGPATH -u "$shortmode_path"` 62619 new_path="$input_path" 62620 fi 62621 fi 62622 62623 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62624 if test "x$test_cygdrive_prefix" = x; then 62625 # As a simple fix, exclude /usr/bin since it's not a real path. 62626 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62627 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62628 # a path prefixed by /cygdrive for fixpath to work. 62629 new_path="$CYGWIN_ROOT_PATH$input_path" 62630 fi 62631 fi 62632 62633 62634 if test "x$path" != "x$new_path"; then 62635 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62636 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62637 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62638 fi 62639 62640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62641 62642 path="$POTENTIAL_FREETYPE_LIB_PATH" 62643 has_colon=`$ECHO $path | $GREP ^.:` 62644 new_path="$path" 62645 if test "x$has_colon" = x; then 62646 # Not in mixed or Windows style, start by that. 62647 new_path=`cmd //c echo $path` 62648 fi 62649 62650 62651 input_path="$new_path" 62652 # Check if we need to convert this using DOS-style short mode. If the path 62653 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62654 # take no chances and rewrite it. 62655 # Note: m4 eats our [], so we need to use [ and ] instead. 62656 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62657 if test "x$has_forbidden_chars" != x; then 62658 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62659 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62660 fi 62661 62662 62663 windows_path="$new_path" 62664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62665 unix_path=`$CYGPATH -u "$windows_path"` 62666 new_path="$unix_path" 62667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62668 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62669 new_path="$unix_path" 62670 fi 62671 62672 if test "x$path" != "x$new_path"; then 62673 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62674 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62675 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62676 fi 62677 62678 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62679 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62680 62681 else 62682 # We're on a unix platform. Hooray! :) 62683 path="$POTENTIAL_FREETYPE_LIB_PATH" 62684 has_space=`$ECHO "$path" | $GREP " "` 62685 if test "x$has_space" != x; then 62686 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62687 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62688 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62689 fi 62690 62691 # Use eval to expand a potential ~ 62692 eval path="$path" 62693 if test ! -f "$path" && test ! -d "$path"; then 62694 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62695 fi 62696 62697 if test -d "$path"; then 62698 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62699 else 62700 dir="`$DIRNAME "$path"`" 62701 base="`$BASENAME "$path"`" 62702 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62703 fi 62704 fi 62705 fi 62706 62707 62708 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62710 $as_echo_n "checking for freetype includes... " >&6; } 62711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62712 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62713 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62715 $as_echo_n "checking for freetype libraries... " >&6; } 62716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62717 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62718 fi 62719 62720 fi 62721 fi 62722 62723 if test "x$FOUND_FREETYPE" != xyes; then 62724 FREETYPE_BASE_DIR="$SYSROOT/usr" 62725 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 62726 62727 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62728 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/$OPENJDK_TARGET_CPU-linux-gnu" 62729 METHOD="well-known location" 62730 62731 # Let's start with an optimistic view of the world :-) 62732 FOUND_FREETYPE=yes 62733 62734 # First look for the canonical freetype main include file ft2build.h. 62735 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62736 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62737 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62738 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62739 # Fail. 62740 FOUND_FREETYPE=no 62741 fi 62742 fi 62743 62744 if test "x$FOUND_FREETYPE" = xyes; then 62745 # Include file found, let's continue the sanity check. 62746 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62747 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62748 62749 # Reset to default value 62750 FREETYPE_BASE_NAME=freetype 62751 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62752 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62753 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62754 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62755 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62756 # for the .6 version explicitly. 62757 FREETYPE_BASE_NAME=freetype.6 62758 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62759 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62760 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62761 else 62762 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62763 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62764 FOUND_FREETYPE=no 62765 fi 62766 else 62767 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62768 # On Windows, we will need both .lib and .dll file. 62769 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62770 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62771 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62772 FOUND_FREETYPE=no 62773 fi 62774 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62775 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62776 # Found lib in isa dir, use that instead. 62777 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62778 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62779 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62780 fi 62781 fi 62782 fi 62783 62784 if test "x$FOUND_FREETYPE" = xyes; then 62785 62786 # Only process if variable expands to non-empty 62787 62788 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62790 62791 # Input might be given as Windows format, start by converting to 62792 # unix format. 62793 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62794 new_path=`$CYGPATH -u "$path"` 62795 62796 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62797 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62798 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62799 # "foo.exe" is OK but "foo" is an error. 62800 # 62801 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62802 # It is also a way to make sure we got the proper file name for the real test later on. 62803 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62804 if test "x$test_shortpath" = x; then 62805 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62806 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62807 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62808 fi 62809 62810 # Call helper function which possibly converts this using DOS-style short mode. 62811 # If so, the updated path is stored in $new_path. 62812 62813 input_path="$new_path" 62814 # Check if we need to convert this using DOS-style short mode. If the path 62815 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62816 # take no chances and rewrite it. 62817 # Note: m4 eats our [], so we need to use [ and ] instead. 62818 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62819 if test "x$has_forbidden_chars" != x; then 62820 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62821 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62822 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62823 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62824 # Going to short mode and back again did indeed matter. Since short mode is 62825 # case insensitive, let's make it lowercase to improve readability. 62826 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62827 # Now convert it back to Unix-style (cygpath) 62828 input_path=`$CYGPATH -u "$shortmode_path"` 62829 new_path="$input_path" 62830 fi 62831 fi 62832 62833 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62834 if test "x$test_cygdrive_prefix" = x; then 62835 # As a simple fix, exclude /usr/bin since it's not a real path. 62836 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62837 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62838 # a path prefixed by /cygdrive for fixpath to work. 62839 new_path="$CYGWIN_ROOT_PATH$input_path" 62840 fi 62841 fi 62842 62843 62844 if test "x$path" != "x$new_path"; then 62845 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62846 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62847 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62848 fi 62849 62850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62851 62852 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62853 has_colon=`$ECHO $path | $GREP ^.:` 62854 new_path="$path" 62855 if test "x$has_colon" = x; then 62856 # Not in mixed or Windows style, start by that. 62857 new_path=`cmd //c echo $path` 62858 fi 62859 62860 62861 input_path="$new_path" 62862 # Check if we need to convert this using DOS-style short mode. If the path 62863 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62864 # take no chances and rewrite it. 62865 # Note: m4 eats our [], so we need to use [ and ] instead. 62866 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62867 if test "x$has_forbidden_chars" != x; then 62868 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62869 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62870 fi 62871 62872 62873 windows_path="$new_path" 62874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62875 unix_path=`$CYGPATH -u "$windows_path"` 62876 new_path="$unix_path" 62877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62878 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62879 new_path="$unix_path" 62880 fi 62881 62882 if test "x$path" != "x$new_path"; then 62883 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62884 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62885 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62886 fi 62887 62888 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62889 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62890 62891 else 62892 # We're on a unix platform. Hooray! :) 62893 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62894 has_space=`$ECHO "$path" | $GREP " "` 62895 if test "x$has_space" != x; then 62896 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62897 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62898 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62899 fi 62900 62901 # Use eval to expand a potential ~ 62902 eval path="$path" 62903 if test ! -f "$path" && test ! -d "$path"; then 62904 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62905 fi 62906 62907 if test -d "$path"; then 62908 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62909 else 62910 dir="`$DIRNAME "$path"`" 62911 base="`$BASENAME "$path"`" 62912 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62913 fi 62914 fi 62915 fi 62916 62917 62918 # Only process if variable expands to non-empty 62919 62920 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62922 62923 # Input might be given as Windows format, start by converting to 62924 # unix format. 62925 path="$POTENTIAL_FREETYPE_LIB_PATH" 62926 new_path=`$CYGPATH -u "$path"` 62927 62928 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62929 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62930 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62931 # "foo.exe" is OK but "foo" is an error. 62932 # 62933 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62934 # It is also a way to make sure we got the proper file name for the real test later on. 62935 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62936 if test "x$test_shortpath" = x; then 62937 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62938 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62939 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62940 fi 62941 62942 # Call helper function which possibly converts this using DOS-style short mode. 62943 # If so, the updated path is stored in $new_path. 62944 62945 input_path="$new_path" 62946 # Check if we need to convert this using DOS-style short mode. If the path 62947 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62948 # take no chances and rewrite it. 62949 # Note: m4 eats our [], so we need to use [ and ] instead. 62950 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62951 if test "x$has_forbidden_chars" != x; then 62952 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62953 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62954 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62955 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62956 # Going to short mode and back again did indeed matter. Since short mode is 62957 # case insensitive, let's make it lowercase to improve readability. 62958 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62959 # Now convert it back to Unix-style (cygpath) 62960 input_path=`$CYGPATH -u "$shortmode_path"` 62961 new_path="$input_path" 62962 fi 62963 fi 62964 62965 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62966 if test "x$test_cygdrive_prefix" = x; then 62967 # As a simple fix, exclude /usr/bin since it's not a real path. 62968 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62969 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62970 # a path prefixed by /cygdrive for fixpath to work. 62971 new_path="$CYGWIN_ROOT_PATH$input_path" 62972 fi 62973 fi 62974 62975 62976 if test "x$path" != "x$new_path"; then 62977 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62978 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62979 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62980 fi 62981 62982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62983 62984 path="$POTENTIAL_FREETYPE_LIB_PATH" 62985 has_colon=`$ECHO $path | $GREP ^.:` 62986 new_path="$path" 62987 if test "x$has_colon" = x; then 62988 # Not in mixed or Windows style, start by that. 62989 new_path=`cmd //c echo $path` 62990 fi 62991 62992 62993 input_path="$new_path" 62994 # Check if we need to convert this using DOS-style short mode. If the path 62995 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62996 # take no chances and rewrite it. 62997 # Note: m4 eats our [], so we need to use [ and ] instead. 62998 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62999 if test "x$has_forbidden_chars" != x; then 63000 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63001 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63002 fi 63003 63004 63005 windows_path="$new_path" 63006 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63007 unix_path=`$CYGPATH -u "$windows_path"` 63008 new_path="$unix_path" 63009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63010 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63011 new_path="$unix_path" 63012 fi 63013 63014 if test "x$path" != "x$new_path"; then 63015 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63016 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63017 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63018 fi 63019 63020 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63021 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63022 63023 else 63024 # We're on a unix platform. Hooray! :) 63025 path="$POTENTIAL_FREETYPE_LIB_PATH" 63026 has_space=`$ECHO "$path" | $GREP " "` 63027 if test "x$has_space" != x; then 63028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63029 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63030 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63031 fi 63032 63033 # Use eval to expand a potential ~ 63034 eval path="$path" 63035 if test ! -f "$path" && test ! -d "$path"; then 63036 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63037 fi 63038 63039 if test -d "$path"; then 63040 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63041 else 63042 dir="`$DIRNAME "$path"`" 63043 base="`$BASENAME "$path"`" 63044 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63045 fi 63046 fi 63047 fi 63048 63049 63050 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63052 $as_echo_n "checking for freetype includes... " >&6; } 63053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63054 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63055 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63057 $as_echo_n "checking for freetype libraries... " >&6; } 63058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63059 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63060 fi 63061 63062 else 63063 63064 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63065 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 63066 METHOD="well-known location" 63067 63068 # Let's start with an optimistic view of the world :-) 63069 FOUND_FREETYPE=yes 63070 63071 # First look for the canonical freetype main include file ft2build.h. 63072 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63073 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63074 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63075 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63076 # Fail. 63077 FOUND_FREETYPE=no 63078 fi 63079 fi 63080 63081 if test "x$FOUND_FREETYPE" = xyes; then 63082 # Include file found, let's continue the sanity check. 63083 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63084 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63085 63086 # Reset to default value 63087 FREETYPE_BASE_NAME=freetype 63088 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63089 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63090 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63091 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63092 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63093 # for the .6 version explicitly. 63094 FREETYPE_BASE_NAME=freetype.6 63095 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63096 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63097 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63098 else 63099 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63100 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63101 FOUND_FREETYPE=no 63102 fi 63103 else 63104 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63105 # On Windows, we will need both .lib and .dll file. 63106 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63107 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63108 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63109 FOUND_FREETYPE=no 63110 fi 63111 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63112 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63113 # Found lib in isa dir, use that instead. 63114 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63115 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63116 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63117 fi 63118 fi 63119 fi 63120 63121 if test "x$FOUND_FREETYPE" = xyes; then 63122 63123 # Only process if variable expands to non-empty 63124 63125 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63126 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63127 63128 # Input might be given as Windows format, start by converting to 63129 # unix format. 63130 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63131 new_path=`$CYGPATH -u "$path"` 63132 63133 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63134 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63135 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63136 # "foo.exe" is OK but "foo" is an error. 63137 # 63138 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63139 # It is also a way to make sure we got the proper file name for the real test later on. 63140 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63141 if test "x$test_shortpath" = x; then 63142 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63143 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63144 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63145 fi 63146 63147 # Call helper function which possibly converts this using DOS-style short mode. 63148 # If so, the updated path is stored in $new_path. 63149 63150 input_path="$new_path" 63151 # Check if we need to convert this using DOS-style short mode. If the path 63152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63153 # take no chances and rewrite it. 63154 # Note: m4 eats our [], so we need to use [ and ] instead. 63155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63156 if test "x$has_forbidden_chars" != x; then 63157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63158 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63159 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63160 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63161 # Going to short mode and back again did indeed matter. Since short mode is 63162 # case insensitive, let's make it lowercase to improve readability. 63163 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63164 # Now convert it back to Unix-style (cygpath) 63165 input_path=`$CYGPATH -u "$shortmode_path"` 63166 new_path="$input_path" 63167 fi 63168 fi 63169 63170 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63171 if test "x$test_cygdrive_prefix" = x; then 63172 # As a simple fix, exclude /usr/bin since it's not a real path. 63173 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63174 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63175 # a path prefixed by /cygdrive for fixpath to work. 63176 new_path="$CYGWIN_ROOT_PATH$input_path" 63177 fi 63178 fi 63179 63180 63181 if test "x$path" != "x$new_path"; then 63182 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63183 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63184 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63185 fi 63186 63187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63188 63189 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63190 has_colon=`$ECHO $path | $GREP ^.:` 63191 new_path="$path" 63192 if test "x$has_colon" = x; then 63193 # Not in mixed or Windows style, start by that. 63194 new_path=`cmd //c echo $path` 63195 fi 63196 63197 63198 input_path="$new_path" 63199 # Check if we need to convert this using DOS-style short mode. If the path 63200 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63201 # take no chances and rewrite it. 63202 # Note: m4 eats our [], so we need to use [ and ] instead. 63203 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63204 if test "x$has_forbidden_chars" != x; then 63205 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63206 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63207 fi 63208 63209 63210 windows_path="$new_path" 63211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63212 unix_path=`$CYGPATH -u "$windows_path"` 63213 new_path="$unix_path" 63214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63215 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63216 new_path="$unix_path" 63217 fi 63218 63219 if test "x$path" != "x$new_path"; then 63220 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63221 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63222 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63223 fi 63224 63225 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63226 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63227 63228 else 63229 # We're on a unix platform. Hooray! :) 63230 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63231 has_space=`$ECHO "$path" | $GREP " "` 63232 if test "x$has_space" != x; then 63233 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63234 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63235 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63236 fi 63237 63238 # Use eval to expand a potential ~ 63239 eval path="$path" 63240 if test ! -f "$path" && test ! -d "$path"; then 63241 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63242 fi 63243 63244 if test -d "$path"; then 63245 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63246 else 63247 dir="`$DIRNAME "$path"`" 63248 base="`$BASENAME "$path"`" 63249 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63250 fi 63251 fi 63252 fi 63253 63254 63255 # Only process if variable expands to non-empty 63256 63257 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63259 63260 # Input might be given as Windows format, start by converting to 63261 # unix format. 63262 path="$POTENTIAL_FREETYPE_LIB_PATH" 63263 new_path=`$CYGPATH -u "$path"` 63264 63265 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63266 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63267 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63268 # "foo.exe" is OK but "foo" is an error. 63269 # 63270 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63271 # It is also a way to make sure we got the proper file name for the real test later on. 63272 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63273 if test "x$test_shortpath" = x; then 63274 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63275 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63276 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63277 fi 63278 63279 # Call helper function which possibly converts this using DOS-style short mode. 63280 # If so, the updated path is stored in $new_path. 63281 63282 input_path="$new_path" 63283 # Check if we need to convert this using DOS-style short mode. If the path 63284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63285 # take no chances and rewrite it. 63286 # Note: m4 eats our [], so we need to use [ and ] instead. 63287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63288 if test "x$has_forbidden_chars" != x; then 63289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63290 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63291 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63292 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63293 # Going to short mode and back again did indeed matter. Since short mode is 63294 # case insensitive, let's make it lowercase to improve readability. 63295 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63296 # Now convert it back to Unix-style (cygpath) 63297 input_path=`$CYGPATH -u "$shortmode_path"` 63298 new_path="$input_path" 63299 fi 63300 fi 63301 63302 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63303 if test "x$test_cygdrive_prefix" = x; then 63304 # As a simple fix, exclude /usr/bin since it's not a real path. 63305 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63306 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63307 # a path prefixed by /cygdrive for fixpath to work. 63308 new_path="$CYGWIN_ROOT_PATH$input_path" 63309 fi 63310 fi 63311 63312 63313 if test "x$path" != "x$new_path"; then 63314 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63315 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63316 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63317 fi 63318 63319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63320 63321 path="$POTENTIAL_FREETYPE_LIB_PATH" 63322 has_colon=`$ECHO $path | $GREP ^.:` 63323 new_path="$path" 63324 if test "x$has_colon" = x; then 63325 # Not in mixed or Windows style, start by that. 63326 new_path=`cmd //c echo $path` 63327 fi 63328 63329 63330 input_path="$new_path" 63331 # Check if we need to convert this using DOS-style short mode. If the path 63332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63333 # take no chances and rewrite it. 63334 # Note: m4 eats our [], so we need to use [ and ] instead. 63335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63336 if test "x$has_forbidden_chars" != x; then 63337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63338 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63339 fi 63340 63341 63342 windows_path="$new_path" 63343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63344 unix_path=`$CYGPATH -u "$windows_path"` 63345 new_path="$unix_path" 63346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63348 new_path="$unix_path" 63349 fi 63350 63351 if test "x$path" != "x$new_path"; then 63352 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63353 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63354 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63355 fi 63356 63357 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63358 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63359 63360 else 63361 # We're on a unix platform. Hooray! :) 63362 path="$POTENTIAL_FREETYPE_LIB_PATH" 63363 has_space=`$ECHO "$path" | $GREP " "` 63364 if test "x$has_space" != x; then 63365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63366 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63367 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63368 fi 63369 63370 # Use eval to expand a potential ~ 63371 eval path="$path" 63372 if test ! -f "$path" && test ! -d "$path"; then 63373 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63374 fi 63375 63376 if test -d "$path"; then 63377 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63378 else 63379 dir="`$DIRNAME "$path"`" 63380 base="`$BASENAME "$path"`" 63381 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63382 fi 63383 fi 63384 fi 63385 63386 63387 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63389 $as_echo_n "checking for freetype includes... " >&6; } 63390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63391 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63392 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63394 $as_echo_n "checking for freetype libraries... " >&6; } 63395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63396 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63397 fi 63398 63399 if test "x$FOUND_FREETYPE" != xyes; then 63400 63401 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63402 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 63403 METHOD="well-known location" 63404 63405 # Let's start with an optimistic view of the world :-) 63406 FOUND_FREETYPE=yes 63407 63408 # First look for the canonical freetype main include file ft2build.h. 63409 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63410 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63411 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63412 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63413 # Fail. 63414 FOUND_FREETYPE=no 63415 fi 63416 fi 63417 63418 if test "x$FOUND_FREETYPE" = xyes; then 63419 # Include file found, let's continue the sanity check. 63420 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63421 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63422 63423 # Reset to default value 63424 FREETYPE_BASE_NAME=freetype 63425 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63426 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63427 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63428 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63429 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63430 # for the .6 version explicitly. 63431 FREETYPE_BASE_NAME=freetype.6 63432 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63433 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63434 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63435 else 63436 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63437 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63438 FOUND_FREETYPE=no 63439 fi 63440 else 63441 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63442 # On Windows, we will need both .lib and .dll file. 63443 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63444 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63445 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63446 FOUND_FREETYPE=no 63447 fi 63448 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63449 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63450 # Found lib in isa dir, use that instead. 63451 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63452 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63453 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63454 fi 63455 fi 63456 fi 63457 63458 if test "x$FOUND_FREETYPE" = xyes; then 63459 63460 # Only process if variable expands to non-empty 63461 63462 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63464 63465 # Input might be given as Windows format, start by converting to 63466 # unix format. 63467 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63468 new_path=`$CYGPATH -u "$path"` 63469 63470 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63471 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63472 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63473 # "foo.exe" is OK but "foo" is an error. 63474 # 63475 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63476 # It is also a way to make sure we got the proper file name for the real test later on. 63477 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63478 if test "x$test_shortpath" = x; then 63479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63480 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63481 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63482 fi 63483 63484 # Call helper function which possibly converts this using DOS-style short mode. 63485 # If so, the updated path is stored in $new_path. 63486 63487 input_path="$new_path" 63488 # Check if we need to convert this using DOS-style short mode. If the path 63489 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63490 # take no chances and rewrite it. 63491 # Note: m4 eats our [], so we need to use [ and ] instead. 63492 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63493 if test "x$has_forbidden_chars" != x; then 63494 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63495 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63496 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63497 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63498 # Going to short mode and back again did indeed matter. Since short mode is 63499 # case insensitive, let's make it lowercase to improve readability. 63500 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63501 # Now convert it back to Unix-style (cygpath) 63502 input_path=`$CYGPATH -u "$shortmode_path"` 63503 new_path="$input_path" 63504 fi 63505 fi 63506 63507 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63508 if test "x$test_cygdrive_prefix" = x; then 63509 # As a simple fix, exclude /usr/bin since it's not a real path. 63510 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63511 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63512 # a path prefixed by /cygdrive for fixpath to work. 63513 new_path="$CYGWIN_ROOT_PATH$input_path" 63514 fi 63515 fi 63516 63517 63518 if test "x$path" != "x$new_path"; then 63519 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63520 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63521 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63522 fi 63523 63524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63525 63526 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63527 has_colon=`$ECHO $path | $GREP ^.:` 63528 new_path="$path" 63529 if test "x$has_colon" = x; then 63530 # Not in mixed or Windows style, start by that. 63531 new_path=`cmd //c echo $path` 63532 fi 63533 63534 63535 input_path="$new_path" 63536 # Check if we need to convert this using DOS-style short mode. If the path 63537 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63538 # take no chances and rewrite it. 63539 # Note: m4 eats our [], so we need to use [ and ] instead. 63540 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63541 if test "x$has_forbidden_chars" != x; then 63542 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63543 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63544 fi 63545 63546 63547 windows_path="$new_path" 63548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63549 unix_path=`$CYGPATH -u "$windows_path"` 63550 new_path="$unix_path" 63551 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63552 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63553 new_path="$unix_path" 63554 fi 63555 63556 if test "x$path" != "x$new_path"; then 63557 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63558 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63559 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63560 fi 63561 63562 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63563 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63564 63565 else 63566 # We're on a unix platform. Hooray! :) 63567 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63568 has_space=`$ECHO "$path" | $GREP " "` 63569 if test "x$has_space" != x; then 63570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63571 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63572 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63573 fi 63574 63575 # Use eval to expand a potential ~ 63576 eval path="$path" 63577 if test ! -f "$path" && test ! -d "$path"; then 63578 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63579 fi 63580 63581 if test -d "$path"; then 63582 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63583 else 63584 dir="`$DIRNAME "$path"`" 63585 base="`$BASENAME "$path"`" 63586 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63587 fi 63588 fi 63589 fi 63590 63591 63592 # Only process if variable expands to non-empty 63593 63594 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63596 63597 # Input might be given as Windows format, start by converting to 63598 # unix format. 63599 path="$POTENTIAL_FREETYPE_LIB_PATH" 63600 new_path=`$CYGPATH -u "$path"` 63601 63602 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63603 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63604 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63605 # "foo.exe" is OK but "foo" is an error. 63606 # 63607 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63608 # It is also a way to make sure we got the proper file name for the real test later on. 63609 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63610 if test "x$test_shortpath" = x; then 63611 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63612 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63613 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63614 fi 63615 63616 # Call helper function which possibly converts this using DOS-style short mode. 63617 # If so, the updated path is stored in $new_path. 63618 63619 input_path="$new_path" 63620 # Check if we need to convert this using DOS-style short mode. If the path 63621 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63622 # take no chances and rewrite it. 63623 # Note: m4 eats our [], so we need to use [ and ] instead. 63624 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63625 if test "x$has_forbidden_chars" != x; then 63626 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63627 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63628 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63629 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63630 # Going to short mode and back again did indeed matter. Since short mode is 63631 # case insensitive, let's make it lowercase to improve readability. 63632 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63633 # Now convert it back to Unix-style (cygpath) 63634 input_path=`$CYGPATH -u "$shortmode_path"` 63635 new_path="$input_path" 63636 fi 63637 fi 63638 63639 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63640 if test "x$test_cygdrive_prefix" = x; then 63641 # As a simple fix, exclude /usr/bin since it's not a real path. 63642 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63643 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63644 # a path prefixed by /cygdrive for fixpath to work. 63645 new_path="$CYGWIN_ROOT_PATH$input_path" 63646 fi 63647 fi 63648 63649 63650 if test "x$path" != "x$new_path"; then 63651 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63652 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63653 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63654 fi 63655 63656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63657 63658 path="$POTENTIAL_FREETYPE_LIB_PATH" 63659 has_colon=`$ECHO $path | $GREP ^.:` 63660 new_path="$path" 63661 if test "x$has_colon" = x; then 63662 # Not in mixed or Windows style, start by that. 63663 new_path=`cmd //c echo $path` 63664 fi 63665 63666 63667 input_path="$new_path" 63668 # Check if we need to convert this using DOS-style short mode. If the path 63669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63670 # take no chances and rewrite it. 63671 # Note: m4 eats our [], so we need to use [ and ] instead. 63672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63673 if test "x$has_forbidden_chars" != x; then 63674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63675 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63676 fi 63677 63678 63679 windows_path="$new_path" 63680 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63681 unix_path=`$CYGPATH -u "$windows_path"` 63682 new_path="$unix_path" 63683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63684 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63685 new_path="$unix_path" 63686 fi 63687 63688 if test "x$path" != "x$new_path"; then 63689 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63690 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63691 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63692 fi 63693 63694 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63695 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63696 63697 else 63698 # We're on a unix platform. Hooray! :) 63699 path="$POTENTIAL_FREETYPE_LIB_PATH" 63700 has_space=`$ECHO "$path" | $GREP " "` 63701 if test "x$has_space" != x; then 63702 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63703 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63704 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63705 fi 63706 63707 # Use eval to expand a potential ~ 63708 eval path="$path" 63709 if test ! -f "$path" && test ! -d "$path"; then 63710 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63711 fi 63712 63713 if test -d "$path"; then 63714 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63715 else 63716 dir="`$DIRNAME "$path"`" 63717 base="`$BASENAME "$path"`" 63718 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63719 fi 63720 fi 63721 fi 63722 63723 63724 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63726 $as_echo_n "checking for freetype includes... " >&6; } 63727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63728 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63729 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63731 $as_echo_n "checking for freetype libraries... " >&6; } 63732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63733 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63734 fi 63735 63736 fi 63737 fi 63738 fi 63739 fi 63740 fi # end check in well-known locations 63741 63742 if test "x$FOUND_FREETYPE" != xyes; then 63743 63744 # Print a helpful message on how to acquire the necessary build dependency. 63745 # freetype is the help tag: freetype, cups, alsa etc 63746 MISSING_DEPENDENCY=freetype 63747 63748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63749 cygwin_help $MISSING_DEPENDENCY 63750 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63751 msys_help $MISSING_DEPENDENCY 63752 else 63753 PKGHANDLER_COMMAND= 63754 63755 case $PKGHANDLER in 63756 apt-get) 63757 apt_help $MISSING_DEPENDENCY ;; 63758 yum) 63759 yum_help $MISSING_DEPENDENCY ;; 63760 brew) 63761 brew_help $MISSING_DEPENDENCY ;; 63762 port) 63763 port_help $MISSING_DEPENDENCY ;; 63764 pkgutil) 63765 pkgutil_help $MISSING_DEPENDENCY ;; 63766 pkgadd) 63767 pkgadd_help $MISSING_DEPENDENCY ;; 63768 esac 63769 63770 if test "x$PKGHANDLER_COMMAND" != x; then 63771 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63772 fi 63773 fi 63774 63775 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 63776 fi 63777 fi # end user specified settings 63778 63779 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 63780 if test "x$FREETYPE_CFLAGS" = x; then 63781 63782 # Only process if variable expands to non-empty 63783 63784 if test "x$FREETYPE_INCLUDE_PATH" != x; then 63785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63786 63787 # Input might be given as Windows format, start by converting to 63788 # unix format. 63789 path="$FREETYPE_INCLUDE_PATH" 63790 new_path=`$CYGPATH -u "$path"` 63791 63792 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63793 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63794 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63795 # "foo.exe" is OK but "foo" is an error. 63796 # 63797 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63798 # It is also a way to make sure we got the proper file name for the real test later on. 63799 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63800 if test "x$test_shortpath" = x; then 63801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63802 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63803 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 63804 fi 63805 63806 # Call helper function which possibly converts this using DOS-style short mode. 63807 # If so, the updated path is stored in $new_path. 63808 63809 input_path="$new_path" 63810 # Check if we need to convert this using DOS-style short mode. If the path 63811 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63812 # take no chances and rewrite it. 63813 # Note: m4 eats our [], so we need to use [ and ] instead. 63814 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63815 if test "x$has_forbidden_chars" != x; then 63816 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63817 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63818 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63819 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63820 # Going to short mode and back again did indeed matter. Since short mode is 63821 # case insensitive, let's make it lowercase to improve readability. 63822 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63823 # Now convert it back to Unix-style (cygpath) 63824 input_path=`$CYGPATH -u "$shortmode_path"` 63825 new_path="$input_path" 63826 fi 63827 fi 63828 63829 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63830 if test "x$test_cygdrive_prefix" = x; then 63831 # As a simple fix, exclude /usr/bin since it's not a real path. 63832 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63833 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63834 # a path prefixed by /cygdrive for fixpath to work. 63835 new_path="$CYGWIN_ROOT_PATH$input_path" 63836 fi 63837 fi 63838 63839 63840 if test "x$path" != "x$new_path"; then 63841 FREETYPE_INCLUDE_PATH="$new_path" 63842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63843 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63844 fi 63845 63846 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63847 63848 path="$FREETYPE_INCLUDE_PATH" 63849 has_colon=`$ECHO $path | $GREP ^.:` 63850 new_path="$path" 63851 if test "x$has_colon" = x; then 63852 # Not in mixed or Windows style, start by that. 63853 new_path=`cmd //c echo $path` 63854 fi 63855 63856 63857 input_path="$new_path" 63858 # Check if we need to convert this using DOS-style short mode. If the path 63859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63860 # take no chances and rewrite it. 63861 # Note: m4 eats our [], so we need to use [ and ] instead. 63862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63863 if test "x$has_forbidden_chars" != x; then 63864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63865 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63866 fi 63867 63868 63869 windows_path="$new_path" 63870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63871 unix_path=`$CYGPATH -u "$windows_path"` 63872 new_path="$unix_path" 63873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63875 new_path="$unix_path" 63876 fi 63877 63878 if test "x$path" != "x$new_path"; then 63879 FREETYPE_INCLUDE_PATH="$new_path" 63880 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63881 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63882 fi 63883 63884 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63885 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63886 63887 else 63888 # We're on a unix platform. Hooray! :) 63889 path="$FREETYPE_INCLUDE_PATH" 63890 has_space=`$ECHO "$path" | $GREP " "` 63891 if test "x$has_space" != x; then 63892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63893 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63894 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63895 fi 63896 63897 # Use eval to expand a potential ~ 63898 eval path="$path" 63899 if test ! -f "$path" && test ! -d "$path"; then 63900 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63901 fi 63902 63903 if test -d "$path"; then 63904 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63905 else 63906 dir="`$DIRNAME "$path"`" 63907 base="`$BASENAME "$path"`" 63908 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63909 fi 63910 fi 63911 fi 63912 63913 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 63914 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 63915 else 63916 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 63917 fi 63918 fi 63919 63920 if test "x$FREETYPE_LIBS" = x; then 63921 63922 # Only process if variable expands to non-empty 63923 63924 if test "x$FREETYPE_LIB_PATH" != x; then 63925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63926 63927 # Input might be given as Windows format, start by converting to 63928 # unix format. 63929 path="$FREETYPE_LIB_PATH" 63930 new_path=`$CYGPATH -u "$path"` 63931 63932 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63933 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63934 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63935 # "foo.exe" is OK but "foo" is an error. 63936 # 63937 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63938 # It is also a way to make sure we got the proper file name for the real test later on. 63939 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63940 if test "x$test_shortpath" = x; then 63941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63942 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63943 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 63944 fi 63945 63946 # Call helper function which possibly converts this using DOS-style short mode. 63947 # If so, the updated path is stored in $new_path. 63948 63949 input_path="$new_path" 63950 # Check if we need to convert this using DOS-style short mode. If the path 63951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63952 # take no chances and rewrite it. 63953 # Note: m4 eats our [], so we need to use [ and ] instead. 63954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63955 if test "x$has_forbidden_chars" != x; then 63956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63957 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63958 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63959 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63960 # Going to short mode and back again did indeed matter. Since short mode is 63961 # case insensitive, let's make it lowercase to improve readability. 63962 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63963 # Now convert it back to Unix-style (cygpath) 63964 input_path=`$CYGPATH -u "$shortmode_path"` 63965 new_path="$input_path" 63966 fi 63967 fi 63968 63969 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63970 if test "x$test_cygdrive_prefix" = x; then 63971 # As a simple fix, exclude /usr/bin since it's not a real path. 63972 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63973 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63974 # a path prefixed by /cygdrive for fixpath to work. 63975 new_path="$CYGWIN_ROOT_PATH$input_path" 63976 fi 63977 fi 63978 63979 63980 if test "x$path" != "x$new_path"; then 63981 FREETYPE_LIB_PATH="$new_path" 63982 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 63983 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63984 fi 63985 63986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63987 63988 path="$FREETYPE_LIB_PATH" 63989 has_colon=`$ECHO $path | $GREP ^.:` 63990 new_path="$path" 63991 if test "x$has_colon" = x; then 63992 # Not in mixed or Windows style, start by that. 63993 new_path=`cmd //c echo $path` 63994 fi 63995 63996 63997 input_path="$new_path" 63998 # Check if we need to convert this using DOS-style short mode. If the path 63999 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64000 # take no chances and rewrite it. 64001 # Note: m4 eats our [], so we need to use [ and ] instead. 64002 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64003 if test "x$has_forbidden_chars" != x; then 64004 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64005 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64006 fi 64007 64008 64009 windows_path="$new_path" 64010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64011 unix_path=`$CYGPATH -u "$windows_path"` 64012 new_path="$unix_path" 64013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64014 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64015 new_path="$unix_path" 64016 fi 64017 64018 if test "x$path" != "x$new_path"; then 64019 FREETYPE_LIB_PATH="$new_path" 64020 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 64021 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64022 fi 64023 64024 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64025 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64026 64027 else 64028 # We're on a unix platform. Hooray! :) 64029 path="$FREETYPE_LIB_PATH" 64030 has_space=`$ECHO "$path" | $GREP " "` 64031 if test "x$has_space" != x; then 64032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64033 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64034 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64035 fi 64036 64037 # Use eval to expand a potential ~ 64038 eval path="$path" 64039 if test ! -f "$path" && test ! -d "$path"; then 64040 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64041 fi 64042 64043 if test -d "$path"; then 64044 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64045 else 64046 dir="`$DIRNAME "$path"`" 64047 base="`$BASENAME "$path"`" 64048 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64049 fi 64050 fi 64051 fi 64052 64053 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64054 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 64055 else 64056 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 64057 fi 64058 fi 64059 64060 # Try to compile it 64061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 64062 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 64063 ac_ext=cpp 64064 ac_cpp='$CXXCPP $CPPFLAGS' 64065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64068 64069 PREV_CXXCFLAGS="$CXXFLAGS" 64070 PREV_LIBS="$LIBS" 64071 PREV_CXX="$CXX" 64072 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 64073 LIBS="$LIBS $FREETYPE_LIBS" 64074 CXX="$FIXPATH $CXX" 64075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64076 /* end confdefs.h. */ 64077 64078 #include<ft2build.h> 64079 #include FT_FREETYPE_H 64080 int main () { 64081 FT_Init_FreeType(NULL); 64082 return 0; 64083 } 64084 64085 _ACEOF 64086 if ac_fn_cxx_try_link "$LINENO"; then : 64087 64088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64089 $as_echo "yes" >&6; } 64090 64091 else 64092 64093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64094 $as_echo "no" >&6; } 64095 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 64096 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 64097 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 64098 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 64099 64100 64101 # Print a helpful message on how to acquire the necessary build dependency. 64102 # freetype is the help tag: freetype, cups, alsa etc 64103 MISSING_DEPENDENCY=freetype 64104 64105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64106 cygwin_help $MISSING_DEPENDENCY 64107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64108 msys_help $MISSING_DEPENDENCY 64109 else 64110 PKGHANDLER_COMMAND= 64111 64112 case $PKGHANDLER in 64113 apt-get) 64114 apt_help $MISSING_DEPENDENCY ;; 64115 yum) 64116 yum_help $MISSING_DEPENDENCY ;; 64117 brew) 64118 brew_help $MISSING_DEPENDENCY ;; 64119 port) 64120 port_help $MISSING_DEPENDENCY ;; 64121 pkgutil) 64122 pkgutil_help $MISSING_DEPENDENCY ;; 64123 pkgadd) 64124 pkgadd_help $MISSING_DEPENDENCY ;; 64125 esac 64126 64127 if test "x$PKGHANDLER_COMMAND" != x; then 64128 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64129 fi 64130 fi 64131 64132 64133 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 64134 64135 64136 fi 64137 rm -f core conftest.err conftest.$ac_objext \ 64138 conftest$ac_exeext conftest.$ac_ext 64139 CXXCFLAGS="$PREV_CXXFLAGS" 64140 LIBS="$PREV_LIBS" 64141 CXX="$PREV_CXX" 64142 ac_ext=cpp 64143 ac_cpp='$CXXCPP $CPPFLAGS' 64144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64147 64148 64149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 64150 $as_echo_n "checking if we should bundle freetype... " >&6; } 64151 if test "x$BUNDLE_FREETYPE" = xyes; then 64152 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 64153 fi 64154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 64155 $as_echo "$BUNDLE_FREETYPE" >&6; } 64156 64157 fi # end freetype needed 64158 64159 FREETYPE_LICENSE="" 64160 if test "x$with_freetype_license" = "xyes"; then 64161 as_fn_error $? "--with-freetype-license must have a value" "$LINENO" 5 64162 elif test "x$with_freetype_license" != "x"; then 64163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype license" >&5 64164 $as_echo_n "checking for freetype license... " >&6; } 64165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_license" >&5 64166 $as_echo "$with_freetype_license" >&6; } 64167 FREETYPE_LICENSE="$with_freetype_license" 64168 64169 # Only process if variable expands to non-empty 64170 64171 if test "x$FREETYPE_LICENSE" != x; then 64172 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64173 64174 # Input might be given as Windows format, start by converting to 64175 # unix format. 64176 path="$FREETYPE_LICENSE" 64177 new_path=`$CYGPATH -u "$path"` 64178 64179 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64180 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64181 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64182 # "foo.exe" is OK but "foo" is an error. 64183 # 64184 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64185 # It is also a way to make sure we got the proper file name for the real test later on. 64186 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64187 if test "x$test_shortpath" = x; then 64188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 64189 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 64190 as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5 64191 fi 64192 64193 # Call helper function which possibly converts this using DOS-style short mode. 64194 # If so, the updated path is stored in $new_path. 64195 64196 input_path="$new_path" 64197 # Check if we need to convert this using DOS-style short mode. If the path 64198 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64199 # take no chances and rewrite it. 64200 # Note: m4 eats our [], so we need to use [ and ] instead. 64201 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64202 if test "x$has_forbidden_chars" != x; then 64203 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64204 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64205 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64206 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64207 # Going to short mode and back again did indeed matter. Since short mode is 64208 # case insensitive, let's make it lowercase to improve readability. 64209 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64210 # Now convert it back to Unix-style (cygpath) 64211 input_path=`$CYGPATH -u "$shortmode_path"` 64212 new_path="$input_path" 64213 fi 64214 fi 64215 64216 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64217 if test "x$test_cygdrive_prefix" = x; then 64218 # As a simple fix, exclude /usr/bin since it's not a real path. 64219 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64220 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64221 # a path prefixed by /cygdrive for fixpath to work. 64222 new_path="$CYGWIN_ROOT_PATH$input_path" 64223 fi 64224 fi 64225 64226 64227 if test "x$path" != "x$new_path"; then 64228 FREETYPE_LICENSE="$new_path" 64229 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 64230 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 64231 fi 64232 64233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64234 64235 path="$FREETYPE_LICENSE" 64236 has_colon=`$ECHO $path | $GREP ^.:` 64237 new_path="$path" 64238 if test "x$has_colon" = x; then 64239 # Not in mixed or Windows style, start by that. 64240 new_path=`cmd //c echo $path` 64241 fi 64242 64243 64244 input_path="$new_path" 64245 # Check if we need to convert this using DOS-style short mode. If the path 64246 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64247 # take no chances and rewrite it. 64248 # Note: m4 eats our [], so we need to use [ and ] instead. 64249 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64250 if test "x$has_forbidden_chars" != x; then 64251 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64252 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64253 fi 64254 64255 64256 windows_path="$new_path" 64257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64258 unix_path=`$CYGPATH -u "$windows_path"` 64259 new_path="$unix_path" 64260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64261 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64262 new_path="$unix_path" 64263 fi 64264 64265 if test "x$path" != "x$new_path"; then 64266 FREETYPE_LICENSE="$new_path" 64267 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 64268 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 64269 fi 64270 64271 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64272 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64273 64274 else 64275 # We're on a unix platform. Hooray! :) 64276 path="$FREETYPE_LICENSE" 64277 has_space=`$ECHO "$path" | $GREP " "` 64278 if test "x$has_space" != x; then 64279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 64280 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 64281 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64282 fi 64283 64284 # Use eval to expand a potential ~ 64285 eval path="$path" 64286 if test ! -f "$path" && test ! -d "$path"; then 64287 as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5 64288 fi 64289 64290 if test -d "$path"; then 64291 FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`" 64292 else 64293 dir="`$DIRNAME "$path"`" 64294 base="`$BASENAME "$path"`" 64295 FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base" 64296 fi 64297 fi 64298 fi 64299 64300 if test ! -f "$FREETYPE_LICENSE"; then 64301 as_fn_error $? "$FREETYPE_LICENSE cannot be found" "$LINENO" 5 64302 fi 64303 fi 64304 64305 64306 64307 64308 64309 64310 64311 64312 # Check whether --with-alsa was given. 64313 if test "${with_alsa+set}" = set; then : 64314 withval=$with_alsa; 64315 fi 64316 64317 64318 # Check whether --with-alsa-include was given. 64319 if test "${with_alsa_include+set}" = set; then : 64320 withval=$with_alsa_include; 64321 fi 64322 64323 64324 # Check whether --with-alsa-lib was given. 64325 if test "${with_alsa_lib+set}" = set; then : 64326 withval=$with_alsa_lib; 64327 fi 64328 64329 64330 if test "x$NEEDS_LIB_ALSA" = xfalse; then 64331 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 64332 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 64333 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 64334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 64335 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 64336 fi 64337 ALSA_CFLAGS= 64338 ALSA_LIBS= 64339 else 64340 ALSA_FOUND=no 64341 64342 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 64343 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 64344 fi 64345 64346 if test "x${with_alsa}" != x; then 64347 ALSA_LIBS="-L${with_alsa}/lib -lasound" 64348 ALSA_CFLAGS="-I${with_alsa}/include" 64349 ALSA_FOUND=yes 64350 fi 64351 if test "x${with_alsa_include}" != x; then 64352 ALSA_CFLAGS="-I${with_alsa_include}" 64353 ALSA_FOUND=yes 64354 fi 64355 if test "x${with_alsa_lib}" != x; then 64356 ALSA_LIBS="-L${with_alsa_lib} -lasound" 64357 ALSA_FOUND=yes 64358 fi 64359 # Do not try pkg-config if we have a sysroot set. 64360 if test "x$SYSROOT" = x; then 64361 if test "x$ALSA_FOUND" = xno; then 64362 64363 pkg_failed=no 64364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 64365 $as_echo_n "checking for ALSA... " >&6; } 64366 64367 if test -n "$ALSA_CFLAGS"; then 64368 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 64369 elif test -n "$PKG_CONFIG"; then 64370 if test -n "$PKG_CONFIG" && \ 64371 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 64372 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 64373 ac_status=$? 64374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64375 test $ac_status = 0; }; then 64376 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 64377 else 64378 pkg_failed=yes 64379 fi 64380 else 64381 pkg_failed=untried 64382 fi 64383 if test -n "$ALSA_LIBS"; then 64384 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 64385 elif test -n "$PKG_CONFIG"; then 64386 if test -n "$PKG_CONFIG" && \ 64387 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 64388 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 64389 ac_status=$? 64390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64391 test $ac_status = 0; }; then 64392 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 64393 else 64394 pkg_failed=yes 64395 fi 64396 else 64397 pkg_failed=untried 64398 fi 64399 64400 64401 64402 if test $pkg_failed = yes; then 64403 64404 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64405 _pkg_short_errors_supported=yes 64406 else 64407 _pkg_short_errors_supported=no 64408 fi 64409 if test $_pkg_short_errors_supported = yes; then 64410 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 64411 else 64412 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 64413 fi 64414 # Put the nasty error message in config.log where it belongs 64415 echo "$ALSA_PKG_ERRORS" >&5 64416 64417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64418 $as_echo "no" >&6; } 64419 ALSA_FOUND=no 64420 elif test $pkg_failed = untried; then 64421 ALSA_FOUND=no 64422 else 64423 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 64424 ALSA_LIBS=$pkg_cv_ALSA_LIBS 64425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64426 $as_echo "yes" >&6; } 64427 ALSA_FOUND=yes 64428 fi 64429 fi 64430 fi 64431 if test "x$ALSA_FOUND" = xno; then 64432 for ac_header in alsa/asoundlib.h 64433 do : 64434 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 64435 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 64436 cat >>confdefs.h <<_ACEOF 64437 #define HAVE_ALSA_ASOUNDLIB_H 1 64438 _ACEOF 64439 64440 ALSA_FOUND=yes 64441 ALSA_CFLAGS=-Iignoreme 64442 ALSA_LIBS=-lasound 64443 DEFAULT_ALSA=yes 64444 64445 else 64446 ALSA_FOUND=no 64447 64448 fi 64449 64450 done 64451 64452 fi 64453 if test "x$ALSA_FOUND" = xno; then 64454 64455 # Print a helpful message on how to acquire the necessary build dependency. 64456 # alsa is the help tag: freetype, cups, alsa etc 64457 MISSING_DEPENDENCY=alsa 64458 64459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64460 cygwin_help $MISSING_DEPENDENCY 64461 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64462 msys_help $MISSING_DEPENDENCY 64463 else 64464 PKGHANDLER_COMMAND= 64465 64466 case $PKGHANDLER in 64467 apt-get) 64468 apt_help $MISSING_DEPENDENCY ;; 64469 yum) 64470 yum_help $MISSING_DEPENDENCY ;; 64471 brew) 64472 brew_help $MISSING_DEPENDENCY ;; 64473 port) 64474 port_help $MISSING_DEPENDENCY ;; 64475 pkgutil) 64476 pkgutil_help $MISSING_DEPENDENCY ;; 64477 pkgadd) 64478 pkgadd_help $MISSING_DEPENDENCY ;; 64479 esac 64480 64481 if test "x$PKGHANDLER_COMMAND" != x; then 64482 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64483 fi 64484 fi 64485 64486 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 64487 fi 64488 fi 64489 64490 64491 64492 64493 64494 64495 # Check whether --with-libffi was given. 64496 if test "${with_libffi+set}" = set; then : 64497 withval=$with_libffi; 64498 fi 64499 64500 64501 # Check whether --with-libffi-include was given. 64502 if test "${with_libffi_include+set}" = set; then : 64503 withval=$with_libffi_include; 64504 fi 64505 64506 64507 # Check whether --with-libffi-lib was given. 64508 if test "${with_libffi_lib+set}" = set; then : 64509 withval=$with_libffi_lib; 64510 fi 64511 64512 # Check whether --enable-libffi-bundling was given. 64513 if test "${enable_libffi_bundling+set}" = set; then : 64514 enableval=$enable_libffi_bundling; 64515 fi 64516 64517 64518 if test "x$NEEDS_LIB_FFI" = xfalse; then 64519 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 64520 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 64521 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 64522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 64523 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 64524 fi 64525 LIBFFI_CFLAGS= 64526 LIBFFI_LIBS= 64527 else 64528 LIBFFI_FOUND=no 64529 64530 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 64531 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 64532 fi 64533 64534 if test "x${with_libffi}" != x; then 64535 LIBFFI_LIB_PATH="${with_libffi}/lib" 64536 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 64537 LIBFFI_CFLAGS="-I${with_libffi}/include" 64538 LIBFFI_FOUND=yes 64539 fi 64540 if test "x${with_libffi_include}" != x; then 64541 LIBFFI_CFLAGS="-I${with_libffi_include}" 64542 LIBFFI_FOUND=yes 64543 fi 64544 if test "x${with_libffi_lib}" != x; then 64545 LIBFFI_LIB_PATH="${with_libffi_lib}" 64546 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 64547 LIBFFI_FOUND=yes 64548 fi 64549 # Do not try pkg-config if we have a sysroot set. 64550 if test "x$SYSROOT" = x; then 64551 if test "x$LIBFFI_FOUND" = xno; then 64552 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 64553 64554 pkg_failed=no 64555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 64556 $as_echo_n "checking for LIBFFI... " >&6; } 64557 64558 if test -n "$LIBFFI_CFLAGS"; then 64559 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 64560 elif test -n "$PKG_CONFIG"; then 64561 if test -n "$PKG_CONFIG" && \ 64562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 64563 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 64564 ac_status=$? 64565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64566 test $ac_status = 0; }; then 64567 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 64568 else 64569 pkg_failed=yes 64570 fi 64571 else 64572 pkg_failed=untried 64573 fi 64574 if test -n "$LIBFFI_LIBS"; then 64575 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 64576 elif test -n "$PKG_CONFIG"; then 64577 if test -n "$PKG_CONFIG" && \ 64578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 64579 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 64580 ac_status=$? 64581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64582 test $ac_status = 0; }; then 64583 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 64584 else 64585 pkg_failed=yes 64586 fi 64587 else 64588 pkg_failed=untried 64589 fi 64590 64591 64592 64593 if test $pkg_failed = yes; then 64594 64595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64596 _pkg_short_errors_supported=yes 64597 else 64598 _pkg_short_errors_supported=no 64599 fi 64600 if test $_pkg_short_errors_supported = yes; then 64601 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 64602 else 64603 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 64604 fi 64605 # Put the nasty error message in config.log where it belongs 64606 echo "$LIBFFI_PKG_ERRORS" >&5 64607 64608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64609 $as_echo "no" >&6; } 64610 LIBFFI_FOUND=no 64611 elif test $pkg_failed = untried; then 64612 LIBFFI_FOUND=no 64613 else 64614 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 64615 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 64616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64617 $as_echo "yes" >&6; } 64618 LIBFFI_FOUND=yes 64619 fi 64620 fi 64621 fi 64622 if test "x$LIBFFI_FOUND" = xno; then 64623 for ac_header in ffi.h 64624 do : 64625 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 64626 if test "x$ac_cv_header_ffi_h" = xyes; then : 64627 cat >>confdefs.h <<_ACEOF 64628 #define HAVE_FFI_H 1 64629 _ACEOF 64630 64631 LIBFFI_FOUND=yes 64632 LIBFFI_CFLAGS= 64633 LIBFFI_LIBS=-lffi 64634 64635 else 64636 LIBFFI_FOUND=no 64637 64638 fi 64639 64640 done 64641 64642 fi 64643 if test "x$LIBFFI_FOUND" = xno; then 64644 64645 # Print a helpful message on how to acquire the necessary build dependency. 64646 # ffi is the help tag: freetype, cups, alsa etc 64647 MISSING_DEPENDENCY=ffi 64648 64649 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64650 cygwin_help $MISSING_DEPENDENCY 64651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64652 msys_help $MISSING_DEPENDENCY 64653 else 64654 PKGHANDLER_COMMAND= 64655 64656 case $PKGHANDLER in 64657 apt-get) 64658 apt_help $MISSING_DEPENDENCY ;; 64659 yum) 64660 yum_help $MISSING_DEPENDENCY ;; 64661 brew) 64662 brew_help $MISSING_DEPENDENCY ;; 64663 port) 64664 port_help $MISSING_DEPENDENCY ;; 64665 pkgutil) 64666 pkgutil_help $MISSING_DEPENDENCY ;; 64667 pkgadd) 64668 pkgadd_help $MISSING_DEPENDENCY ;; 64669 esac 64670 64671 if test "x$PKGHANDLER_COMMAND" != x; then 64672 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64673 fi 64674 fi 64675 64676 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 64677 fi 64678 64679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 64680 $as_echo_n "checking if libffi works... " >&6; } 64681 ac_ext=c 64682 ac_cpp='$CPP $CPPFLAGS' 64683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64685 ac_compiler_gnu=$ac_cv_c_compiler_gnu 64686 64687 OLD_CFLAGS="$CFLAGS" 64688 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 64689 OLD_LIBS="$LIBS" 64690 LIBS="$LIBS $LIBFFI_LIBS" 64691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64692 /* end confdefs.h. */ 64693 #include <ffi.h> 64694 int 64695 main () 64696 { 64697 64698 ffi_call(NULL, NULL, NULL, NULL); 64699 return 0; 64700 64701 ; 64702 return 0; 64703 } 64704 _ACEOF 64705 if ac_fn_c_try_link "$LINENO"; then : 64706 LIBFFI_WORKS=yes 64707 else 64708 LIBFFI_WORKS=no 64709 64710 fi 64711 rm -f core conftest.err conftest.$ac_objext \ 64712 conftest$ac_exeext conftest.$ac_ext 64713 CFLAGS="$OLD_CFLAGS" 64714 LIBS="$OLD_LIBS" 64715 ac_ext=cpp 64716 ac_cpp='$CXXCPP $CPPFLAGS' 64717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64720 64721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 64722 $as_echo "$LIBFFI_WORKS" >&6; } 64723 64724 if test "x$LIBFFI_WORKS" = xno; then 64725 64726 # Print a helpful message on how to acquire the necessary build dependency. 64727 # ffi is the help tag: freetype, cups, alsa etc 64728 MISSING_DEPENDENCY=ffi 64729 64730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64731 cygwin_help $MISSING_DEPENDENCY 64732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64733 msys_help $MISSING_DEPENDENCY 64734 else 64735 PKGHANDLER_COMMAND= 64736 64737 case $PKGHANDLER in 64738 apt-get) 64739 apt_help $MISSING_DEPENDENCY ;; 64740 yum) 64741 yum_help $MISSING_DEPENDENCY ;; 64742 brew) 64743 brew_help $MISSING_DEPENDENCY ;; 64744 port) 64745 port_help $MISSING_DEPENDENCY ;; 64746 pkgutil) 64747 pkgutil_help $MISSING_DEPENDENCY ;; 64748 pkgadd) 64749 pkgadd_help $MISSING_DEPENDENCY ;; 64750 esac 64751 64752 if test "x$PKGHANDLER_COMMAND" != x; then 64753 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64754 fi 64755 fi 64756 64757 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 64758 fi 64759 64760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi should be bundled" >&5 64761 $as_echo_n "checking if libffi should be bundled... " >&6; } 64762 if test "x$enable_libffi_bundling" = "x"; then 64763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64764 $as_echo "no" >&6; } 64765 ENABLE_LIBFFI_BUNDLING=false 64766 elif test "x$enable_libffi_bundling" = "xno"; then 64767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64768 $as_echo "no, forced" >&6; } 64769 ENABLE_LIBFFI_BUNDLING=false 64770 elif test "x$enable_libffi_bundling" = "xyes"; then 64771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64772 $as_echo "yes, forced" >&6; } 64773 ENABLE_LIBFFI_BUNDLING=true 64774 else 64775 as_fn_error $? "Invalid value for --enable-libffi-bundling" "$LINENO" 5 64776 fi 64777 64778 # Find the libffi.so.X to bundle 64779 if test "x${ENABLE_LIBFFI_BUNDLING}" = "xtrue"; then 64780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi lib file location" >&5 64781 $as_echo_n "checking for libffi lib file location... " >&6; } 64782 if test "x${LIBFFI_LIB_PATH}" != x; then 64783 if test -e ${LIBFFI_LIB_PATH}/libffi.so.?; then 64784 LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/libffi.so.?" 64785 else 64786 as_fn_error $? "Could not locate libffi.so.? for bundling in ${LIBFFI_LIB_PATH}" "$LINENO" 5 64787 fi 64788 else 64789 # If we don't have an explicit path, look in a few obvious places 64790 if test "x${OPENJDK_TARGET_CPU}" = "xx86"; then 64791 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 64792 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 64793 elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.? ; then 64794 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.?" 64795 else 64796 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 64797 fi 64798 elif test "x${OPENJDK_TARGET_CPU}" = "xx86_64"; then 64799 if test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then 64800 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?" 64801 elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.? ; then 64802 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.?" 64803 else 64804 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 64805 fi 64806 else 64807 # Fallback on the default /usr/lib dir 64808 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 64809 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 64810 else 64811 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 64812 fi 64813 fi 64814 fi 64815 # Make sure the wildcard is evaluated 64816 LIBFFI_LIB_FILE="$(ls ${LIBFFI_LIB_FILE})" 64817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBFFI_LIB_FILE}" >&5 64818 $as_echo "${LIBFFI_LIB_FILE}" >&6; } 64819 fi 64820 fi 64821 64822 64823 64824 64825 64826 64827 64828 if [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 64829 # Extract the first word of "llvm-config", so it can be a program name with args. 64830 set dummy llvm-config; ac_word=$2 64831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64832 $as_echo_n "checking for $ac_word... " >&6; } 64833 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 64834 $as_echo_n "(cached) " >&6 64835 else 64836 if test -n "$LLVM_CONFIG"; then 64837 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 64838 else 64839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64840 for as_dir in $PATH 64841 do 64842 IFS=$as_save_IFS 64843 test -z "$as_dir" && as_dir=. 64844 for ac_exec_ext in '' $ac_executable_extensions; do 64845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64846 ac_cv_prog_LLVM_CONFIG="llvm-config" 64847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64848 break 2 64849 fi 64850 done 64851 done 64852 IFS=$as_save_IFS 64853 64854 fi 64855 fi 64856 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 64857 if test -n "$LLVM_CONFIG"; then 64858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 64859 $as_echo "$LLVM_CONFIG" >&6; } 64860 else 64861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64862 $as_echo "no" >&6; } 64863 fi 64864 64865 64866 64867 if test "x$LLVM_CONFIG" != xllvm-config; then 64868 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 64869 fi 64870 64871 llvm_components="jit mcjit engine nativecodegen native" 64872 unset LLVM_CFLAGS 64873 for flag in $("$LLVM_CONFIG" --cxxflags); do 64874 if echo "${flag}" | grep -q '^-[ID]'; then 64875 if test "${flag}" != "-D_DEBUG" ; then 64876 if test "${LLVM_CFLAGS}" != "" ; then 64877 LLVM_CFLAGS="${LLVM_CFLAGS} " 64878 fi 64879 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 64880 fi 64881 fi 64882 done 64883 llvm_version=$("${LLVM_CONFIG}" --version | $SED 's/\.//; s/svn.*//') 64884 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 64885 64886 unset LLVM_LDFLAGS 64887 for flag in $("${LLVM_CONFIG}" --ldflags); do 64888 if echo "${flag}" | grep -q '^-L'; then 64889 if test "${LLVM_LDFLAGS}" != ""; then 64890 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 64891 fi 64892 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 64893 fi 64894 done 64895 64896 unset LLVM_LIBS 64897 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 64898 if echo "${flag}" | grep -q '^-l'; then 64899 if test "${LLVM_LIBS}" != ""; then 64900 LLVM_LIBS="${LLVM_LIBS} " 64901 fi 64902 LLVM_LIBS="${LLVM_LIBS}${flag}" 64903 fi 64904 done 64905 64906 # Due to https://llvm.org/bugs/show_bug.cgi?id=16902, llvm does not 64907 # always properly detect -ltinfo 64908 LLVM_LIBS="${LLVM_LIBS} -ltinfo" 64909 64910 64911 64912 64913 fi 64914 64915 64916 64917 # Check whether --with-libjpeg was given. 64918 if test "${with_libjpeg+set}" = set; then : 64919 withval=$with_libjpeg; 64920 fi 64921 64922 64923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 64924 $as_echo_n "checking for which libjpeg to use... " >&6; } 64925 # default is bundled 64926 DEFAULT_LIBJPEG=bundled 64927 # if user didn't specify, use DEFAULT_LIBJPEG 64928 if test "x${with_libjpeg}" = "x"; then 64929 with_libjpeg=${DEFAULT_LIBJPEG} 64930 fi 64931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 64932 $as_echo "${with_libjpeg}" >&6; } 64933 64934 if test "x${with_libjpeg}" = "xbundled"; then 64935 USE_EXTERNAL_LIBJPEG=false 64936 elif test "x${with_libjpeg}" = "xsystem"; then 64937 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 64938 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 64939 64940 else 64941 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 64942 fi 64943 64944 64945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 64946 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 64947 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 64948 $as_echo_n "(cached) " >&6 64949 else 64950 ac_check_lib_save_LIBS=$LIBS 64951 LIBS="-ljpeg $LIBS" 64952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64953 /* end confdefs.h. */ 64954 64955 /* Override any GCC internal prototype to avoid an error. 64956 Use char because int might match the return type of a GCC 64957 builtin and then its argument prototype would still apply. */ 64958 #ifdef __cplusplus 64959 extern "C" 64960 #endif 64961 char jpeg_CreateDecompress (); 64962 int 64963 main () 64964 { 64965 return jpeg_CreateDecompress (); 64966 ; 64967 return 0; 64968 } 64969 _ACEOF 64970 if ac_fn_cxx_try_link "$LINENO"; then : 64971 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 64972 else 64973 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 64974 fi 64975 rm -f core conftest.err conftest.$ac_objext \ 64976 conftest$ac_exeext conftest.$ac_ext 64977 LIBS=$ac_check_lib_save_LIBS 64978 fi 64979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 64980 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 64981 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 64982 cat >>confdefs.h <<_ACEOF 64983 #define HAVE_LIBJPEG 1 64984 _ACEOF 64985 64986 LIBS="-ljpeg $LIBS" 64987 64988 else 64989 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 64990 fi 64991 64992 64993 USE_EXTERNAL_LIBJPEG=true 64994 else 64995 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 64996 fi 64997 64998 64999 65000 65001 65002 # Check whether --with-giflib was given. 65003 if test "${with_giflib+set}" = set; then : 65004 withval=$with_giflib; 65005 fi 65006 65007 65008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 65009 $as_echo_n "checking for which giflib to use... " >&6; } 65010 # default is bundled 65011 DEFAULT_GIFLIB=bundled 65012 # if user didn't specify, use DEFAULT_GIFLIB 65013 if test "x${with_giflib}" = "x"; then 65014 with_giflib=${DEFAULT_GIFLIB} 65015 fi 65016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 65017 $as_echo "${with_giflib}" >&6; } 65018 65019 if test "x${with_giflib}" = "xbundled"; then 65020 USE_EXTERNAL_LIBGIF=false 65021 elif test "x${with_giflib}" = "xsystem"; then 65022 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 65023 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 65024 65025 else 65026 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 65027 fi 65028 65029 65030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 65031 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 65032 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 65033 $as_echo_n "(cached) " >&6 65034 else 65035 ac_check_lib_save_LIBS=$LIBS 65036 LIBS="-lgif $LIBS" 65037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65038 /* end confdefs.h. */ 65039 65040 /* Override any GCC internal prototype to avoid an error. 65041 Use char because int might match the return type of a GCC 65042 builtin and then its argument prototype would still apply. */ 65043 #ifdef __cplusplus 65044 extern "C" 65045 #endif 65046 char DGifGetCode (); 65047 int 65048 main () 65049 { 65050 return DGifGetCode (); 65051 ; 65052 return 0; 65053 } 65054 _ACEOF 65055 if ac_fn_cxx_try_link "$LINENO"; then : 65056 ac_cv_lib_gif_DGifGetCode=yes 65057 else 65058 ac_cv_lib_gif_DGifGetCode=no 65059 fi 65060 rm -f core conftest.err conftest.$ac_objext \ 65061 conftest$ac_exeext conftest.$ac_ext 65062 LIBS=$ac_check_lib_save_LIBS 65063 fi 65064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 65065 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 65066 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 65067 cat >>confdefs.h <<_ACEOF 65068 #define HAVE_LIBGIF 1 65069 _ACEOF 65070 65071 LIBS="-lgif $LIBS" 65072 65073 else 65074 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 65075 fi 65076 65077 65078 USE_EXTERNAL_LIBGIF=true 65079 else 65080 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 65081 fi 65082 65083 65084 65085 65086 65087 # Check whether --with-libpng was given. 65088 if test "${with_libpng+set}" = set; then : 65089 withval=$with_libpng; 65090 fi 65091 65092 65093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 65094 $as_echo_n "checking for which libpng to use... " >&6; } 65095 65096 # default is bundled 65097 DEFAULT_LIBPNG=bundled 65098 # if user didn't specify, use DEFAULT_LIBPNG 65099 if test "x${with_libpng}" = "x"; then 65100 with_libpng=${DEFAULT_LIBPNG} 65101 fi 65102 65103 if test "x${with_libpng}" = "xbundled"; then 65104 USE_EXTERNAL_LIBPNG=false 65105 PNG_CFLAGS="" 65106 PNG_LIBS="" 65107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 65108 $as_echo "bundled" >&6; } 65109 elif test "x${with_libpng}" = "xsystem"; then 65110 65111 pkg_failed=no 65112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 65113 $as_echo_n "checking for PNG... " >&6; } 65114 65115 if test -n "$PNG_CFLAGS"; then 65116 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 65117 elif test -n "$PKG_CONFIG"; then 65118 if test -n "$PKG_CONFIG" && \ 65119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 65120 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 65121 ac_status=$? 65122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65123 test $ac_status = 0; }; then 65124 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 65125 else 65126 pkg_failed=yes 65127 fi 65128 else 65129 pkg_failed=untried 65130 fi 65131 if test -n "$PNG_LIBS"; then 65132 pkg_cv_PNG_LIBS="$PNG_LIBS" 65133 elif test -n "$PKG_CONFIG"; then 65134 if test -n "$PKG_CONFIG" && \ 65135 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 65136 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 65137 ac_status=$? 65138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65139 test $ac_status = 0; }; then 65140 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 65141 else 65142 pkg_failed=yes 65143 fi 65144 else 65145 pkg_failed=untried 65146 fi 65147 65148 65149 65150 if test $pkg_failed = yes; then 65151 65152 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65153 _pkg_short_errors_supported=yes 65154 else 65155 _pkg_short_errors_supported=no 65156 fi 65157 if test $_pkg_short_errors_supported = yes; then 65158 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 65159 else 65160 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 65161 fi 65162 # Put the nasty error message in config.log where it belongs 65163 echo "$PNG_PKG_ERRORS" >&5 65164 65165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65166 $as_echo "no" >&6; } 65167 LIBPNG_FOUND=no 65168 elif test $pkg_failed = untried; then 65169 LIBPNG_FOUND=no 65170 else 65171 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 65172 PNG_LIBS=$pkg_cv_PNG_LIBS 65173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65174 $as_echo "yes" >&6; } 65175 LIBPNG_FOUND=yes 65176 fi 65177 if test "x${LIBPNG_FOUND}" = "xyes"; then 65178 # PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS 65179 USE_EXTERNAL_LIBPNG=true 65180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 65181 $as_echo "system" >&6; } 65182 else 65183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 65184 $as_echo "system not found" >&6; } 65185 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 65186 fi 65187 else 65188 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 65189 fi 65190 65191 65192 65193 65194 65195 65196 65197 # Check whether --with-zlib was given. 65198 if test "${with_zlib+set}" = set; then : 65199 withval=$with_zlib; 65200 fi 65201 65202 65203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 65204 $as_echo_n "checking for compress in -lz... " >&6; } 65205 if ${ac_cv_lib_z_compress+:} false; then : 65206 $as_echo_n "(cached) " >&6 65207 else 65208 ac_check_lib_save_LIBS=$LIBS 65209 LIBS="-lz $LIBS" 65210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65211 /* end confdefs.h. */ 65212 65213 /* Override any GCC internal prototype to avoid an error. 65214 Use char because int might match the return type of a GCC 65215 builtin and then its argument prototype would still apply. */ 65216 #ifdef __cplusplus 65217 extern "C" 65218 #endif 65219 char compress (); 65220 int 65221 main () 65222 { 65223 return compress (); 65224 ; 65225 return 0; 65226 } 65227 _ACEOF 65228 if ac_fn_cxx_try_link "$LINENO"; then : 65229 ac_cv_lib_z_compress=yes 65230 else 65231 ac_cv_lib_z_compress=no 65232 fi 65233 rm -f core conftest.err conftest.$ac_objext \ 65234 conftest$ac_exeext conftest.$ac_ext 65235 LIBS=$ac_check_lib_save_LIBS 65236 fi 65237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 65238 $as_echo "$ac_cv_lib_z_compress" >&6; } 65239 if test "x$ac_cv_lib_z_compress" = xyes; then : 65240 ZLIB_FOUND=yes 65241 else 65242 ZLIB_FOUND=no 65243 fi 65244 65245 65246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 65247 $as_echo_n "checking for which zlib to use... " >&6; } 65248 65249 DEFAULT_ZLIB=system 65250 if test "x$OPENJDK_TARGET_OS" = xwindows; then 65251 # On windows default is bundled...on others default is system 65252 DEFAULT_ZLIB=bundled 65253 fi 65254 65255 if test "x${ZLIB_FOUND}" != "xyes"; then 65256 # If we don't find any system...set default to bundled 65257 DEFAULT_ZLIB=bundled 65258 fi 65259 65260 # If user didn't specify, use DEFAULT_ZLIB 65261 if test "x${with_zlib}" = "x"; then 65262 with_zlib=${DEFAULT_ZLIB} 65263 fi 65264 65265 if test "x${with_zlib}" = "xbundled"; then 65266 USE_EXTERNAL_LIBZ=false 65267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 65268 $as_echo "bundled" >&6; } 65269 elif test "x${with_zlib}" = "xsystem"; then 65270 if test "x${ZLIB_FOUND}" = "xyes"; then 65271 USE_EXTERNAL_LIBZ=true 65272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 65273 $as_echo "system" >&6; } 65274 else 65275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 65276 $as_echo "system not found" >&6; } 65277 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 65278 fi 65279 else 65280 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 65281 fi 65282 65283 65284 65285 65286 65287 # Check whether --with-lcms was given. 65288 if test "${with_lcms+set}" = set; then : 65289 withval=$with_lcms; 65290 fi 65291 65292 65293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 65294 $as_echo_n "checking for which lcms to use... " >&6; } 65295 65296 DEFAULT_LCMS=bundled 65297 # If user didn't specify, use DEFAULT_LCMS 65298 if test "x${with_lcms}" = "x"; then 65299 with_lcms=${DEFAULT_LCMS} 65300 fi 65301 65302 if test "x${with_lcms}" = "xbundled"; then 65303 USE_EXTERNAL_LCMS=false 65304 LCMS_CFLAGS="" 65305 LCMS_LIBS="" 65306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 65307 $as_echo "bundled" >&6; } 65308 elif test "x${with_lcms}" = "xsystem"; then 65309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 65310 $as_echo "system" >&6; } 65311 65312 pkg_failed=no 65313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 65314 $as_echo_n "checking for LCMS... " >&6; } 65315 65316 if test -n "$LCMS_CFLAGS"; then 65317 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 65318 elif test -n "$PKG_CONFIG"; then 65319 if test -n "$PKG_CONFIG" && \ 65320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 65321 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 65322 ac_status=$? 65323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65324 test $ac_status = 0; }; then 65325 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 65326 else 65327 pkg_failed=yes 65328 fi 65329 else 65330 pkg_failed=untried 65331 fi 65332 if test -n "$LCMS_LIBS"; then 65333 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 65334 elif test -n "$PKG_CONFIG"; then 65335 if test -n "$PKG_CONFIG" && \ 65336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 65337 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 65338 ac_status=$? 65339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65340 test $ac_status = 0; }; then 65341 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 65342 else 65343 pkg_failed=yes 65344 fi 65345 else 65346 pkg_failed=untried 65347 fi 65348 65349 65350 65351 if test $pkg_failed = yes; then 65352 65353 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65354 _pkg_short_errors_supported=yes 65355 else 65356 _pkg_short_errors_supported=no 65357 fi 65358 if test $_pkg_short_errors_supported = yes; then 65359 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 65360 else 65361 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 65362 fi 65363 # Put the nasty error message in config.log where it belongs 65364 echo "$LCMS_PKG_ERRORS" >&5 65365 65366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65367 $as_echo "no" >&6; } 65368 LCMS_FOUND=no 65369 elif test $pkg_failed = untried; then 65370 LCMS_FOUND=no 65371 else 65372 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 65373 LCMS_LIBS=$pkg_cv_LCMS_LIBS 65374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65375 $as_echo "yes" >&6; } 65376 LCMS_FOUND=yes 65377 fi 65378 if test "x${LCMS_FOUND}" = "xyes"; then 65379 # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS 65380 USE_EXTERNAL_LCMS=true 65381 else 65382 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 65383 fi 65384 else 65385 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 65386 fi 65387 65388 65389 65390 65391 65392 65393 65394 65395 65396 65397 65398 65399 65400 # Setup libm (the maths library) 65401 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 65402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 65403 $as_echo_n "checking for cos in -lm... " >&6; } 65404 if ${ac_cv_lib_m_cos+:} false; then : 65405 $as_echo_n "(cached) " >&6 65406 else 65407 ac_check_lib_save_LIBS=$LIBS 65408 LIBS="-lm $LIBS" 65409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65410 /* end confdefs.h. */ 65411 65412 /* Override any GCC internal prototype to avoid an error. 65413 Use char because int might match the return type of a GCC 65414 builtin and then its argument prototype would still apply. */ 65415 #ifdef __cplusplus 65416 extern "C" 65417 #endif 65418 char cos (); 65419 int 65420 main () 65421 { 65422 return cos (); 65423 ; 65424 return 0; 65425 } 65426 _ACEOF 65427 if ac_fn_cxx_try_link "$LINENO"; then : 65428 ac_cv_lib_m_cos=yes 65429 else 65430 ac_cv_lib_m_cos=no 65431 fi 65432 rm -f core conftest.err conftest.$ac_objext \ 65433 conftest$ac_exeext conftest.$ac_ext 65434 LIBS=$ac_check_lib_save_LIBS 65435 fi 65436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 65437 $as_echo "$ac_cv_lib_m_cos" >&6; } 65438 if test "x$ac_cv_lib_m_cos" = xyes; then : 65439 cat >>confdefs.h <<_ACEOF 65440 #define HAVE_LIBM 1 65441 _ACEOF 65442 65443 LIBS="-lm $LIBS" 65444 65445 else 65446 65447 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 65448 $as_echo "$as_me: Maths library was not found" >&6;} 65449 65450 fi 65451 65452 LIBM="-lm" 65453 else 65454 LIBM="" 65455 fi 65456 65457 65458 # Setup libdl (for dynamic library loading) 65459 save_LIBS="$LIBS" 65460 LIBS="" 65461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 65462 $as_echo_n "checking for dlopen in -ldl... " >&6; } 65463 if ${ac_cv_lib_dl_dlopen+:} false; then : 65464 $as_echo_n "(cached) " >&6 65465 else 65466 ac_check_lib_save_LIBS=$LIBS 65467 LIBS="-ldl $LIBS" 65468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65469 /* end confdefs.h. */ 65470 65471 /* Override any GCC internal prototype to avoid an error. 65472 Use char because int might match the return type of a GCC 65473 builtin and then its argument prototype would still apply. */ 65474 #ifdef __cplusplus 65475 extern "C" 65476 #endif 65477 char dlopen (); 65478 int 65479 main () 65480 { 65481 return dlopen (); 65482 ; 65483 return 0; 65484 } 65485 _ACEOF 65486 if ac_fn_cxx_try_link "$LINENO"; then : 65487 ac_cv_lib_dl_dlopen=yes 65488 else 65489 ac_cv_lib_dl_dlopen=no 65490 fi 65491 rm -f core conftest.err conftest.$ac_objext \ 65492 conftest$ac_exeext conftest.$ac_ext 65493 LIBS=$ac_check_lib_save_LIBS 65494 fi 65495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 65496 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 65497 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 65498 cat >>confdefs.h <<_ACEOF 65499 #define HAVE_LIBDL 1 65500 _ACEOF 65501 65502 LIBS="-ldl $LIBS" 65503 65504 fi 65505 65506 LIBDL="$LIBS" 65507 65508 LIBS="$save_LIBS" 65509 65510 # Deprecated libraries, keep the flags for backwards compatibility 65511 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 65512 65513 65514 # Check whether --with-dxsdk was given. 65515 if test "${with_dxsdk+set}" = set; then : 65516 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 65517 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 65518 fi 65519 65520 65521 65522 65523 # Check whether --with-dxsdk-lib was given. 65524 if test "${with_dxsdk_lib+set}" = set; then : 65525 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 65526 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 65527 fi 65528 65529 65530 65531 65532 # Check whether --with-dxsdk-include was given. 65533 if test "${with_dxsdk_include+set}" = set; then : 65534 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 65535 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 65536 fi 65537 65538 65539 fi 65540 65541 # Control if libzip can use mmap. Available for purposes of overriding. 65542 LIBZIP_CAN_USE_MMAP=true 65543 65544 65545 65546 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 65547 # Find the root of the Solaris Studio installation from the compiler path 65548 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 65549 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 65550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 65551 $as_echo_n "checking for libstlport.so.1... " >&6; } 65552 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 65553 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 65554 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 65555 fi 65556 if test -f "$STLPORT_LIB"; then 65557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 65558 $as_echo "yes, $STLPORT_LIB" >&6; } 65559 65560 # Only process if variable expands to non-empty 65561 65562 if test "x$STLPORT_LIB" != x; then 65563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65564 65565 # Input might be given as Windows format, start by converting to 65566 # unix format. 65567 path="$STLPORT_LIB" 65568 new_path=`$CYGPATH -u "$path"` 65569 65570 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65571 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65572 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65573 # "foo.exe" is OK but "foo" is an error. 65574 # 65575 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65576 # It is also a way to make sure we got the proper file name for the real test later on. 65577 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65578 if test "x$test_shortpath" = x; then 65579 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 65580 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 65581 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 65582 fi 65583 65584 # Call helper function which possibly converts this using DOS-style short mode. 65585 # If so, the updated path is stored in $new_path. 65586 65587 input_path="$new_path" 65588 # Check if we need to convert this using DOS-style short mode. If the path 65589 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65590 # take no chances and rewrite it. 65591 # Note: m4 eats our [], so we need to use [ and ] instead. 65592 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65593 if test "x$has_forbidden_chars" != x; then 65594 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65595 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65596 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65597 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65598 # Going to short mode and back again did indeed matter. Since short mode is 65599 # case insensitive, let's make it lowercase to improve readability. 65600 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65601 # Now convert it back to Unix-style (cygpath) 65602 input_path=`$CYGPATH -u "$shortmode_path"` 65603 new_path="$input_path" 65604 fi 65605 fi 65606 65607 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65608 if test "x$test_cygdrive_prefix" = x; then 65609 # As a simple fix, exclude /usr/bin since it's not a real path. 65610 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65611 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65612 # a path prefixed by /cygdrive for fixpath to work. 65613 new_path="$CYGWIN_ROOT_PATH$input_path" 65614 fi 65615 fi 65616 65617 65618 if test "x$path" != "x$new_path"; then 65619 STLPORT_LIB="$new_path" 65620 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 65621 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 65622 fi 65623 65624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65625 65626 path="$STLPORT_LIB" 65627 has_colon=`$ECHO $path | $GREP ^.:` 65628 new_path="$path" 65629 if test "x$has_colon" = x; then 65630 # Not in mixed or Windows style, start by that. 65631 new_path=`cmd //c echo $path` 65632 fi 65633 65634 65635 input_path="$new_path" 65636 # Check if we need to convert this using DOS-style short mode. If the path 65637 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65638 # take no chances and rewrite it. 65639 # Note: m4 eats our [], so we need to use [ and ] instead. 65640 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65641 if test "x$has_forbidden_chars" != x; then 65642 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65643 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65644 fi 65645 65646 65647 windows_path="$new_path" 65648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65649 unix_path=`$CYGPATH -u "$windows_path"` 65650 new_path="$unix_path" 65651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65652 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65653 new_path="$unix_path" 65654 fi 65655 65656 if test "x$path" != "x$new_path"; then 65657 STLPORT_LIB="$new_path" 65658 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 65659 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 65660 fi 65661 65662 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65663 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65664 65665 else 65666 # We're on a unix platform. Hooray! :) 65667 path="$STLPORT_LIB" 65668 has_space=`$ECHO "$path" | $GREP " "` 65669 if test "x$has_space" != x; then 65670 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 65671 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 65672 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65673 fi 65674 65675 # Use eval to expand a potential ~ 65676 eval path="$path" 65677 if test ! -f "$path" && test ! -d "$path"; then 65678 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 65679 fi 65680 65681 if test -d "$path"; then 65682 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 65683 else 65684 dir="`$DIRNAME "$path"`" 65685 base="`$BASENAME "$path"`" 65686 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 65687 fi 65688 fi 65689 fi 65690 65691 else 65692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 65693 $as_echo "no, not found at $STLPORT_LIB" >&6; } 65694 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 65695 fi 65696 65697 fi 65698 65699 65700 65701 65702 65703 65704 65705 65706 65707 65708 65709 65710 65711 65712 # Hotspot setup depends on lib checks. 65713 65714 65715 # The user can in some cases supply additional jvm features. For the custom 65716 # variant, this defines the entire variant. 65717 65718 # Check whether --with-jvm-features was given. 65719 if test "${with_jvm_features+set}" = set; then : 65720 withval=$with_jvm_features; 65721 fi 65722 65723 if test "x$with_jvm_features" != x; then 65724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 65725 $as_echo_n "checking additional JVM features... " >&6; } 65726 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 65727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 65728 $as_echo "$JVM_FEATURES" >&6; } 65729 fi 65730 65731 # Override hotspot cpu definitions for ARM platforms 65732 if test "x$OPENJDK_TARGET_CPU" = xarm; then 65733 HOTSPOT_TARGET_CPU=arm_32 65734 HOTSPOT_TARGET_CPU_DEFINE="ARM32" 65735 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 65736 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 65737 elif test "x$OPENJDK_TARGET_CPU" = xaarch64 && test "x$HOTSPOT_TARGET_CPU_PORT" = xarm64; then 65738 HOTSPOT_TARGET_CPU=arm_64 65739 HOTSPOT_TARGET_CPU_ARCH=arm 65740 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 65741 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 65742 fi 65743 65744 # Verify that dependencies are met for explicitly set features. 65745 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 65746 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 65747 fi 65748 65749 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 65750 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 65751 fi 65752 65753 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 65754 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 65755 fi 65756 65757 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 65758 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 65759 fi 65760 65761 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 65762 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 65763 fi 65764 65765 # Turn on additional features based on other parts of configure 65766 if test "x$INCLUDE_DTRACE" = "xtrue"; then 65767 JVM_FEATURES="$JVM_FEATURES dtrace" 65768 else 65769 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 65770 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 65771 fi 65772 fi 65773 65774 if test "x$STATIC_BUILD" = "xtrue"; then 65775 JVM_FEATURES="$JVM_FEATURES static-build" 65776 else 65777 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 65778 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 65779 fi 65780 fi 65781 65782 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 65783 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 65784 as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5 65785 fi 65786 fi 65787 65788 if ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 65789 if [[ " $JVM_FEATURES " =~ " shark " ]] ; then 65790 as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5 65791 fi 65792 fi 65793 65794 # Only enable jvmci on x86_64, sparcv9 and aarch64. 65795 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 65796 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 65797 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 65798 JVM_FEATURES_jvmci="jvmci" 65799 else 65800 JVM_FEATURES_jvmci="" 65801 fi 65802 65803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jdk.internal.vm.compiler should be built" >&5 65804 $as_echo_n "checking if jdk.internal.vm.compiler should be built... " >&6; } 65805 if [[ " $JVM_FEATURES " =~ " graal " ]] ; then 65806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65807 $as_echo "yes, forced" >&6; } 65808 if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then 65809 as_fn_error $? "Specified JVM feature 'graal' requires feature 'jvmci'" "$LINENO" 5 65810 fi 65811 INCLUDE_GRAAL="true" 65812 else 65813 # By default enable graal build where AOT is available 65814 if test "x$ENABLE_AOT" = "xtrue"; then 65815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65816 $as_echo "yes" >&6; } 65817 JVM_FEATURES_graal="graal" 65818 INCLUDE_GRAAL="true" 65819 else 65820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65821 $as_echo "no" >&6; } 65822 JVM_FEATURES_graal="" 65823 INCLUDE_GRAAL="false" 65824 fi 65825 fi 65826 65827 65828 65829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 65830 $as_echo_n "checking if aot should be enabled... " >&6; } 65831 if test "x$ENABLE_AOT" = "xtrue"; then 65832 if test "x$enable_aot" = "xyes"; then 65833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65834 $as_echo "yes, forced" >&6; } 65835 else 65836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65837 $as_echo "yes" >&6; } 65838 fi 65839 JVM_FEATURES_aot="aot" 65840 else 65841 if test "x$enable_aot" = "xno"; then 65842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65843 $as_echo "no, forced" >&6; } 65844 else 65845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65846 $as_echo "no" >&6; } 65847 fi 65848 JVM_FEATURES_aot="" 65849 fi 65850 65851 if test "x$OPENJDK_TARGET_CPU" = xarm ; then 65852 # Default to use link time optimizations on minimal on arm 65853 JVM_FEATURES_link_time_opt="link-time-opt" 65854 else 65855 JVM_FEATURES_link_time_opt="" 65856 fi 65857 65858 # All variants but minimal (and custom) get these features 65859 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti fprof vm-structs jni-check services management all-gcs nmt cds" 65860 65861 # Enable features depending on variant. 65862 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal" 65863 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 65864 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 65865 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt" 65866 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 65867 JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES" 65868 JVM_FEATURES_custom="$JVM_FEATURES" 65869 65870 65871 65872 65873 65874 65875 65876 65877 65878 # Used for verification of Makefiles by check-jvm-feature 65879 65880 65881 # We don't support --with-jvm-interpreter anymore, use zero instead. 65882 65883 65884 # Check whether --with-jvm-interpreter was given. 65885 if test "${with_jvm_interpreter+set}" = set; then : 65886 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 65887 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 65888 fi 65889 65890 65891 65892 65893 ############################################################################### 65894 # 65895 # We need to do some final tweaking, when everything else is done. 65896 # 65897 ############################################################################### 65898 65899 65900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 65901 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 65902 65903 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 65904 ENABLE_INTREE_EC=true 65905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65906 $as_echo "yes" >&6; } 65907 else 65908 ENABLE_INTREE_EC=false 65909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65910 $as_echo "no" >&6; } 65911 fi 65912 65913 65914 65915 65916 # Check whether --enable-jtreg-failure-handler was given. 65917 if test "${enable_jtreg_failure_handler+set}" = set; then : 65918 enableval=$enable_jtreg_failure_handler; 65919 fi 65920 65921 65922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 65923 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 65924 65925 if test "x$enable_jtreg_failure_handler" = "xyes"; then 65926 if test "x$JT_HOME" = "x"; then 65927 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 65928 else 65929 BUILD_FAILURE_HANDLER=true 65930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65931 $as_echo "yes, forced" >&6; } 65932 fi 65933 elif test "x$enable_jtreg_failure_handler" = "xno"; then 65934 BUILD_FAILURE_HANDLER=false 65935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65936 $as_echo "no, forced" >&6; } 65937 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 65938 || test "x$enable_jtreg_failure_handler" = "x"; then 65939 if test "x$JT_HOME" = "x"; then 65940 BUILD_FAILURE_HANDLER=false 65941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 65942 $as_echo "no, missing jtreg" >&6; } 65943 else 65944 BUILD_FAILURE_HANDLER=true 65945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 65946 $as_echo "yes, jtreg present" >&6; } 65947 fi 65948 else 65949 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 65950 fi 65951 65952 65953 65954 65955 # Check whether --enable-generate-classlist was given. 65956 if test "${enable_generate_classlist+set}" = set; then : 65957 enableval=$enable_generate_classlist; 65958 fi 65959 65960 65961 # Check if it's likely that it's possible to generate the classlist. Depending 65962 # on exact jvm configuration it could be possible anyway. 65963 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ; then 65964 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 65965 else 65966 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 65967 fi 65968 65969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 65970 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 65971 if test "x$enable_generate_classlist" = "xyes"; then 65972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65973 $as_echo "yes, forced" >&6; } 65974 ENABLE_GENERATE_CLASSLIST="true" 65975 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 65976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&5 65977 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&2;} 65978 fi 65979 elif test "x$enable_generate_classlist" = "xno"; then 65980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65981 $as_echo "no, forced" >&6; } 65982 ENABLE_GENERATE_CLASSLIST="false" 65983 elif test "x$enable_generate_classlist" = "x"; then 65984 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 65985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65986 $as_echo "yes" >&6; } 65987 ENABLE_GENERATE_CLASSLIST="true" 65988 else 65989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65990 $as_echo "no" >&6; } 65991 ENABLE_GENERATE_CLASSLIST="false" 65992 fi 65993 else 65994 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 65995 fi 65996 65997 65998 65999 66000 ############################################################################### 66001 # 66002 # Configure parts of the build that only affect the build performance, 66003 # not the result. 66004 # 66005 ############################################################################### 66006 66007 66008 # How many cores do we have on this build system? 66009 66010 # Check whether --with-num-cores was given. 66011 if test "${with_num_cores+set}" = set; then : 66012 withval=$with_num_cores; 66013 fi 66014 66015 if test "x$with_num_cores" = x; then 66016 # The number of cores were not specified, try to probe them. 66017 66018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 66019 $as_echo_n "checking for number of cores... " >&6; } 66020 NUM_CORES=1 66021 FOUND_CORES=no 66022 66023 if test -f /proc/cpuinfo; then 66024 # Looks like a Linux (or cygwin) system 66025 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 66026 FOUND_CORES=yes 66027 elif test -x /usr/sbin/psrinfo; then 66028 # Looks like a Solaris system 66029 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 66030 FOUND_CORES=yes 66031 elif test -x /usr/sbin/sysctl; then 66032 # Looks like a MacOSX system 66033 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 66034 FOUND_CORES=yes 66035 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 66036 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 66037 FOUND_CORES=yes 66038 elif test -n "$NUMBER_OF_PROCESSORS"; then 66039 # On windows, look in the env 66040 NUM_CORES=$NUMBER_OF_PROCESSORS 66041 FOUND_CORES=yes 66042 fi 66043 66044 if test "x$FOUND_CORES" = xyes; then 66045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 66046 $as_echo "$NUM_CORES" >&6; } 66047 else 66048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 66049 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 66050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 66051 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 66052 fi 66053 66054 else 66055 NUM_CORES=$with_num_cores 66056 fi 66057 66058 66059 66060 # How much memory do we have on this build system? 66061 66062 # Check whether --with-memory-size was given. 66063 if test "${with_memory_size+set}" = set; then : 66064 withval=$with_memory_size; 66065 fi 66066 66067 if test "x$with_memory_size" = x; then 66068 # The memory size was not specified, try to probe it. 66069 66070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 66071 $as_echo_n "checking for memory size... " >&6; } 66072 # Default to 1024 MB 66073 MEMORY_SIZE=1024 66074 FOUND_MEM=no 66075 66076 if test -f /proc/meminfo; then 66077 # Looks like a Linux (or cygwin) system 66078 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 66079 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 66080 FOUND_MEM=yes 66081 elif test -x /usr/sbin/prtconf; then 66082 # Looks like a Solaris or AIX system 66083 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 66084 FOUND_MEM=yes 66085 elif test -x /usr/sbin/sysctl; then 66086 # Looks like a MacOSX system 66087 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 66088 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 66089 FOUND_MEM=yes 66090 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 66091 # Windows, but without cygwin 66092 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 66093 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 66094 FOUND_MEM=yes 66095 fi 66096 66097 if test "x$FOUND_MEM" = xyes; then 66098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 66099 $as_echo "$MEMORY_SIZE MB" >&6; } 66100 else 66101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 66102 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 66103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 66104 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 66105 fi 66106 66107 else 66108 MEMORY_SIZE=$with_memory_size 66109 fi 66110 66111 66112 66113 # Provide a decent default number of parallel jobs for make depending on 66114 # number of cores, amount of memory and machine architecture. 66115 66116 # Check whether --with-jobs was given. 66117 if test "${with_jobs+set}" = set; then : 66118 withval=$with_jobs; 66119 fi 66120 66121 if test "x$with_jobs" = x; then 66122 # Number of jobs was not specified, calculate. 66123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 66124 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 66125 # Approximate memory in GB. 66126 memory_gb=`expr $MEMORY_SIZE / 1024` 66127 # Pick the lowest of memory in gb and number of cores. 66128 if test "$memory_gb" -lt "$NUM_CORES"; then 66129 JOBS="$memory_gb" 66130 else 66131 JOBS="$NUM_CORES" 66132 fi 66133 if test "$JOBS" -eq "0"; then 66134 JOBS=1 66135 fi 66136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 66137 $as_echo "$JOBS" >&6; } 66138 else 66139 JOBS=$with_jobs 66140 fi 66141 66142 66143 66144 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 66145 66146 # Check whether --with-test-jobs was given. 66147 if test "${with_test_jobs+set}" = set; then : 66148 withval=$with_test_jobs; 66149 fi 66150 66151 if test "x$with_test_jobs" = x; then 66152 TEST_JOBS=0 66153 else 66154 TEST_JOBS=$with_test_jobs 66155 fi 66156 66157 66158 66159 # Setup arguments for the boot jdk (after cores and memory have been setup) 66160 66161 ############################################################################## 66162 # 66163 # Specify jvm options for anything that is run with the Boot JDK. 66164 # Not all JVM:s accept the same arguments on the command line. 66165 # 66166 66167 # Check whether --with-boot-jdk-jvmargs was given. 66168 if test "${with_boot_jdk_jvmargs+set}" = set; then : 66169 withval=$with_boot_jdk_jvmargs; 66170 fi 66171 66172 66173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 66174 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 66175 66176 # Disable special log output when a debug build is used as Boot JDK... 66177 66178 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 66179 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 66180 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 66181 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66182 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66183 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66184 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 66185 JVM_ARG_OK=true 66186 else 66187 $ECHO "Arg failed:" >&5 66188 $ECHO "$OUTPUT" >&5 66189 JVM_ARG_OK=false 66190 fi 66191 66192 66193 # Force en-US environment 66194 66195 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 66196 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 66197 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 66198 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66199 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66200 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66201 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 66202 JVM_ARG_OK=true 66203 else 66204 $ECHO "Arg failed:" >&5 66205 $ECHO "$OUTPUT" >&5 66206 JVM_ARG_OK=false 66207 fi 66208 66209 66210 # Apply user provided options. 66211 66212 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 66213 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 66214 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 66215 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66216 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66217 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66218 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 66219 JVM_ARG_OK=true 66220 else 66221 $ECHO "Arg failed:" >&5 66222 $ECHO "$OUTPUT" >&5 66223 JVM_ARG_OK=false 66224 fi 66225 66226 66227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 66228 $as_echo "$boot_jdk_jvmargs" >&6; } 66229 66230 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 66231 JAVA_FLAGS=$boot_jdk_jvmargs 66232 66233 66234 66235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 66236 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 66237 66238 # Starting amount of heap memory. 66239 66240 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 66241 $ECHO "Command: $JAVA -Xms64M -version" >&5 66242 OUTPUT=`$JAVA -Xms64M -version 2>&1` 66243 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66244 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66245 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66246 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 66247 JVM_ARG_OK=true 66248 else 66249 $ECHO "Arg failed:" >&5 66250 $ECHO "$OUTPUT" >&5 66251 JVM_ARG_OK=false 66252 fi 66253 66254 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 66255 66256 # Maximum amount of heap memory and stack size. 66257 JVM_HEAP_LIMIT_32="1024" 66258 # Running a 64 bit JVM allows for and requires a bigger heap 66259 JVM_HEAP_LIMIT_64="1600" 66260 STACK_SIZE_32=768 66261 STACK_SIZE_64=1536 66262 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 66263 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 66264 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 66265 fi 66266 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 66267 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 66268 fi 66269 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 66270 JVM_HEAP_LIMIT_32=512 66271 JVM_HEAP_LIMIT_64=512 66272 fi 66273 66274 if test "x$BOOT_JDK_BITS" = "x32"; then 66275 STACK_SIZE=$STACK_SIZE_32 66276 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 66277 else 66278 STACK_SIZE=$STACK_SIZE_64 66279 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 66280 fi 66281 66282 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 66283 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 66284 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 66285 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66286 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66287 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66288 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 66289 JVM_ARG_OK=true 66290 else 66291 $ECHO "Arg failed:" >&5 66292 $ECHO "$OUTPUT" >&5 66293 JVM_ARG_OK=false 66294 fi 66295 66296 66297 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 66298 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 66299 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 66300 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66301 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66302 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66303 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 66304 JVM_ARG_OK=true 66305 else 66306 $ECHO "Arg failed:" >&5 66307 $ECHO "$OUTPUT" >&5 66308 JVM_ARG_OK=false 66309 fi 66310 66311 66312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 66313 $as_echo "$boot_jdk_jvmargs_big" >&6; } 66314 66315 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 66316 66317 66318 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 66319 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 66320 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 66321 else 66322 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 66323 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 66324 fi 66325 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 66326 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 66327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 66328 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 66329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 66330 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 66331 66332 66333 # By default, the main javac compilations use big 66334 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 66335 66336 66337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 66338 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 66339 66340 # Use serial gc for small short lived tools if possible 66341 66342 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 66343 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 66344 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 66345 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66346 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66347 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66348 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 66349 JVM_ARG_OK=true 66350 else 66351 $ECHO "Arg failed:" >&5 66352 $ECHO "$OUTPUT" >&5 66353 JVM_ARG_OK=false 66354 fi 66355 66356 66357 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 66358 $ECHO "Command: $JAVA -Xms32M -version" >&5 66359 OUTPUT=`$JAVA -Xms32M -version 2>&1` 66360 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66361 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66362 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66363 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 66364 JVM_ARG_OK=true 66365 else 66366 $ECHO "Arg failed:" >&5 66367 $ECHO "$OUTPUT" >&5 66368 JVM_ARG_OK=false 66369 fi 66370 66371 66372 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 66373 $ECHO "Command: $JAVA -Xmx512M -version" >&5 66374 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 66375 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66376 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66377 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66378 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 66379 JVM_ARG_OK=true 66380 else 66381 $ECHO "Arg failed:" >&5 66382 $ECHO "$OUTPUT" >&5 66383 JVM_ARG_OK=false 66384 fi 66385 66386 66387 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 66388 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 66389 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 66390 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66391 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66392 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66393 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 66394 JVM_ARG_OK=true 66395 else 66396 $ECHO "Arg failed:" >&5 66397 $ECHO "$OUTPUT" >&5 66398 JVM_ARG_OK=false 66399 fi 66400 66401 66402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 66403 $as_echo "$boot_jdk_jvmargs_small" >&6; } 66404 66405 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 66406 66407 66408 JAVA_TOOL_FLAGS_SMALL="" 66409 for f in $JAVA_FLAGS_SMALL; do 66410 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 66411 done 66412 66413 66414 66415 # Setup smart javac (after cores and memory have been setup) 66416 66417 66418 # Check whether --with-sjavac-server-java was given. 66419 if test "${with_sjavac_server_java+set}" = set; then : 66420 withval=$with_sjavac_server_java; 66421 fi 66422 66423 66424 if test "x$with_sjavac_server_java" != x; then 66425 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 66426 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 66427 if test "x$FOUND_VERSION" = x; then 66428 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 66429 fi 66430 else 66431 SJAVAC_SERVER_JAVA="$JAVA" 66432 fi 66433 66434 66435 if test "$MEMORY_SIZE" -gt "3000"; then 66436 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 66437 JVM_64BIT=true 66438 fi 66439 fi 66440 66441 MX_VALUE=`expr $MEMORY_SIZE / 2` 66442 if test "$JVM_64BIT" = true; then 66443 # Set ms lower than mx since more than one instance of the server might 66444 # get launched at the same time before they figure out which instance won. 66445 MS_VALUE=512 66446 if test "$MX_VALUE" -gt "2048"; then 66447 MX_VALUE=2048 66448 fi 66449 else 66450 MS_VALUE=256 66451 if test "$MX_VALUE" -gt "1500"; then 66452 MX_VALUE=1500 66453 fi 66454 fi 66455 if test "$MX_VALUE" -lt "512"; then 66456 MX_VALUE=512 66457 fi 66458 66459 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 66460 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 66461 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 66462 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 66463 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 66464 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 66465 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 66466 JVM_ARG_OK=true 66467 else 66468 $ECHO "Arg failed:" >&5 66469 $ECHO "$OUTPUT" >&5 66470 JVM_ARG_OK=false 66471 fi 66472 66473 66474 66475 # Check whether --enable-sjavac was given. 66476 if test "${enable_sjavac+set}" = set; then : 66477 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 66478 else 66479 ENABLE_SJAVAC="no" 66480 fi 66481 66482 if test "x$JVM_ARG_OK" = "xfalse"; then 66483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 66484 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 66485 ENABLE_SJAVAC="no" 66486 fi 66487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 66488 $as_echo_n "checking whether to use sjavac... " >&6; } 66489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 66490 $as_echo "$ENABLE_SJAVAC" >&6; } 66491 66492 66493 # Check whether --enable-javac-server was given. 66494 if test "${enable_javac_server+set}" = set; then : 66495 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 66496 else 66497 ENABLE_JAVAC_SERVER="yes" 66498 fi 66499 66500 if test "x$JVM_ARG_OK" = "xfalse"; then 66501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 66502 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 66503 ENABLE_JAVAC_SERVER="no" 66504 fi 66505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 66506 $as_echo_n "checking whether to use javac server... " >&6; } 66507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 66508 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 66509 66510 66511 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 66512 # When using a server javac, the small client instances do not need much 66513 # resources. 66514 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 66515 fi 66516 66517 66518 # Setup use of icecc if requested 66519 66520 # Check whether --enable-icecc was given. 66521 if test "${enable_icecc+set}" = set; then : 66522 enableval=$enable_icecc; 66523 fi 66524 66525 66526 if test "x${enable_icecc}" = "xyes"; then 66527 66528 66529 66530 # Publish this variable in the help. 66531 66532 66533 if [ -z "${ICECC_CMD+x}" ]; then 66534 # The variable is not set by user, try to locate tool using the code snippet 66535 for ac_prog in icecc 66536 do 66537 # Extract the first word of "$ac_prog", so it can be a program name with args. 66538 set dummy $ac_prog; ac_word=$2 66539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66540 $as_echo_n "checking for $ac_word... " >&6; } 66541 if ${ac_cv_path_ICECC_CMD+:} false; then : 66542 $as_echo_n "(cached) " >&6 66543 else 66544 case $ICECC_CMD in 66545 [\\/]* | ?:[\\/]*) 66546 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 66547 ;; 66548 *) 66549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66550 for as_dir in $PATH 66551 do 66552 IFS=$as_save_IFS 66553 test -z "$as_dir" && as_dir=. 66554 for ac_exec_ext in '' $ac_executable_extensions; do 66555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66556 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 66557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66558 break 2 66559 fi 66560 done 66561 done 66562 IFS=$as_save_IFS 66563 66564 ;; 66565 esac 66566 fi 66567 ICECC_CMD=$ac_cv_path_ICECC_CMD 66568 if test -n "$ICECC_CMD"; then 66569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 66570 $as_echo "$ICECC_CMD" >&6; } 66571 else 66572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66573 $as_echo "no" >&6; } 66574 fi 66575 66576 66577 test -n "$ICECC_CMD" && break 66578 done 66579 66580 else 66581 # The variable is set, but is it from the command line or the environment? 66582 66583 # Try to remove the string !ICECC_CMD! from our list. 66584 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 66585 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 66586 # If it failed, the variable was not from the command line. Ignore it, 66587 # but warn the user (except for BASH, which is always set by the calling BASH). 66588 if test "xICECC_CMD" != xBASH; then 66589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 66590 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 66591 fi 66592 # Try to locate tool using the code snippet 66593 for ac_prog in icecc 66594 do 66595 # Extract the first word of "$ac_prog", so it can be a program name with args. 66596 set dummy $ac_prog; ac_word=$2 66597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66598 $as_echo_n "checking for $ac_word... " >&6; } 66599 if ${ac_cv_path_ICECC_CMD+:} false; then : 66600 $as_echo_n "(cached) " >&6 66601 else 66602 case $ICECC_CMD in 66603 [\\/]* | ?:[\\/]*) 66604 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 66605 ;; 66606 *) 66607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66608 for as_dir in $PATH 66609 do 66610 IFS=$as_save_IFS 66611 test -z "$as_dir" && as_dir=. 66612 for ac_exec_ext in '' $ac_executable_extensions; do 66613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66614 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 66615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66616 break 2 66617 fi 66618 done 66619 done 66620 IFS=$as_save_IFS 66621 66622 ;; 66623 esac 66624 fi 66625 ICECC_CMD=$ac_cv_path_ICECC_CMD 66626 if test -n "$ICECC_CMD"; then 66627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 66628 $as_echo "$ICECC_CMD" >&6; } 66629 else 66630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66631 $as_echo "no" >&6; } 66632 fi 66633 66634 66635 test -n "$ICECC_CMD" && break 66636 done 66637 66638 else 66639 # If it succeeded, then it was overridden by the user. We will use it 66640 # for the tool. 66641 66642 # First remove it from the list of overridden variables, so we can test 66643 # for unknown variables in the end. 66644 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 66645 66646 # Check if we try to supply an empty value 66647 if test "x$ICECC_CMD" = x; then 66648 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 66649 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 66650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 66651 $as_echo_n "checking for ICECC_CMD... " >&6; } 66652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 66653 $as_echo "disabled" >&6; } 66654 else 66655 # Check if the provided tool contains a complete path. 66656 tool_specified="$ICECC_CMD" 66657 tool_basename="${tool_specified##*/}" 66658 if test "x$tool_basename" = "x$tool_specified"; then 66659 # A command without a complete path is provided, search $PATH. 66660 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 66661 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 66662 # Extract the first word of "$tool_basename", so it can be a program name with args. 66663 set dummy $tool_basename; ac_word=$2 66664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66665 $as_echo_n "checking for $ac_word... " >&6; } 66666 if ${ac_cv_path_ICECC_CMD+:} false; then : 66667 $as_echo_n "(cached) " >&6 66668 else 66669 case $ICECC_CMD in 66670 [\\/]* | ?:[\\/]*) 66671 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 66672 ;; 66673 *) 66674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66675 for as_dir in $PATH 66676 do 66677 IFS=$as_save_IFS 66678 test -z "$as_dir" && as_dir=. 66679 for ac_exec_ext in '' $ac_executable_extensions; do 66680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66681 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 66682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66683 break 2 66684 fi 66685 done 66686 done 66687 IFS=$as_save_IFS 66688 66689 ;; 66690 esac 66691 fi 66692 ICECC_CMD=$ac_cv_path_ICECC_CMD 66693 if test -n "$ICECC_CMD"; then 66694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 66695 $as_echo "$ICECC_CMD" >&6; } 66696 else 66697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66698 $as_echo "no" >&6; } 66699 fi 66700 66701 66702 if test "x$ICECC_CMD" = x; then 66703 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 66704 fi 66705 else 66706 # Otherwise we believe it is a complete path. Use it as it is. 66707 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 66708 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 66709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 66710 $as_echo_n "checking for ICECC_CMD... " >&6; } 66711 if test ! -x "$tool_specified"; then 66712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 66713 $as_echo "not found" >&6; } 66714 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 66715 fi 66716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 66717 $as_echo "$tool_specified" >&6; } 66718 fi 66719 fi 66720 fi 66721 66722 fi 66723 66724 66725 66726 if test "x$ICECC_CMD" = x; then 66727 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 66728 fi 66729 66730 66731 old_path="$PATH" 66732 66733 # Look for icecc-create-env in some known places 66734 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 66735 66736 66737 66738 # Publish this variable in the help. 66739 66740 66741 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 66742 # The variable is not set by user, try to locate tool using the code snippet 66743 for ac_prog in icecc-create-env 66744 do 66745 # Extract the first word of "$ac_prog", so it can be a program name with args. 66746 set dummy $ac_prog; ac_word=$2 66747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66748 $as_echo_n "checking for $ac_word... " >&6; } 66749 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 66750 $as_echo_n "(cached) " >&6 66751 else 66752 case $ICECC_CREATE_ENV in 66753 [\\/]* | ?:[\\/]*) 66754 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 66755 ;; 66756 *) 66757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66758 for as_dir in $PATH 66759 do 66760 IFS=$as_save_IFS 66761 test -z "$as_dir" && as_dir=. 66762 for ac_exec_ext in '' $ac_executable_extensions; do 66763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66764 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 66765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66766 break 2 66767 fi 66768 done 66769 done 66770 IFS=$as_save_IFS 66771 66772 ;; 66773 esac 66774 fi 66775 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 66776 if test -n "$ICECC_CREATE_ENV"; then 66777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 66778 $as_echo "$ICECC_CREATE_ENV" >&6; } 66779 else 66780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66781 $as_echo "no" >&6; } 66782 fi 66783 66784 66785 test -n "$ICECC_CREATE_ENV" && break 66786 done 66787 66788 else 66789 # The variable is set, but is it from the command line or the environment? 66790 66791 # Try to remove the string !ICECC_CREATE_ENV! from our list. 66792 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 66793 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 66794 # If it failed, the variable was not from the command line. Ignore it, 66795 # but warn the user (except for BASH, which is always set by the calling BASH). 66796 if test "xICECC_CREATE_ENV" != xBASH; then 66797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 66798 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 66799 fi 66800 # Try to locate tool using the code snippet 66801 for ac_prog in icecc-create-env 66802 do 66803 # Extract the first word of "$ac_prog", so it can be a program name with args. 66804 set dummy $ac_prog; ac_word=$2 66805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66806 $as_echo_n "checking for $ac_word... " >&6; } 66807 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 66808 $as_echo_n "(cached) " >&6 66809 else 66810 case $ICECC_CREATE_ENV in 66811 [\\/]* | ?:[\\/]*) 66812 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 66813 ;; 66814 *) 66815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66816 for as_dir in $PATH 66817 do 66818 IFS=$as_save_IFS 66819 test -z "$as_dir" && as_dir=. 66820 for ac_exec_ext in '' $ac_executable_extensions; do 66821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66822 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 66823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66824 break 2 66825 fi 66826 done 66827 done 66828 IFS=$as_save_IFS 66829 66830 ;; 66831 esac 66832 fi 66833 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 66834 if test -n "$ICECC_CREATE_ENV"; then 66835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 66836 $as_echo "$ICECC_CREATE_ENV" >&6; } 66837 else 66838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66839 $as_echo "no" >&6; } 66840 fi 66841 66842 66843 test -n "$ICECC_CREATE_ENV" && break 66844 done 66845 66846 else 66847 # If it succeeded, then it was overridden by the user. We will use it 66848 # for the tool. 66849 66850 # First remove it from the list of overridden variables, so we can test 66851 # for unknown variables in the end. 66852 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 66853 66854 # Check if we try to supply an empty value 66855 if test "x$ICECC_CREATE_ENV" = x; then 66856 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 66857 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 66858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 66859 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 66860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 66861 $as_echo "disabled" >&6; } 66862 else 66863 # Check if the provided tool contains a complete path. 66864 tool_specified="$ICECC_CREATE_ENV" 66865 tool_basename="${tool_specified##*/}" 66866 if test "x$tool_basename" = "x$tool_specified"; then 66867 # A command without a complete path is provided, search $PATH. 66868 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 66869 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 66870 # Extract the first word of "$tool_basename", so it can be a program name with args. 66871 set dummy $tool_basename; ac_word=$2 66872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66873 $as_echo_n "checking for $ac_word... " >&6; } 66874 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 66875 $as_echo_n "(cached) " >&6 66876 else 66877 case $ICECC_CREATE_ENV in 66878 [\\/]* | ?:[\\/]*) 66879 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 66880 ;; 66881 *) 66882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66883 for as_dir in $PATH 66884 do 66885 IFS=$as_save_IFS 66886 test -z "$as_dir" && as_dir=. 66887 for ac_exec_ext in '' $ac_executable_extensions; do 66888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66889 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 66890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66891 break 2 66892 fi 66893 done 66894 done 66895 IFS=$as_save_IFS 66896 66897 ;; 66898 esac 66899 fi 66900 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 66901 if test -n "$ICECC_CREATE_ENV"; then 66902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 66903 $as_echo "$ICECC_CREATE_ENV" >&6; } 66904 else 66905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66906 $as_echo "no" >&6; } 66907 fi 66908 66909 66910 if test "x$ICECC_CREATE_ENV" = x; then 66911 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 66912 fi 66913 else 66914 # Otherwise we believe it is a complete path. Use it as it is. 66915 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 66916 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 66917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 66918 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 66919 if test ! -x "$tool_specified"; then 66920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 66921 $as_echo "not found" >&6; } 66922 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 66923 fi 66924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 66925 $as_echo "$tool_specified" >&6; } 66926 fi 66927 fi 66928 fi 66929 66930 fi 66931 66932 66933 66934 if test "x$ICECC_CREATE_ENV" = x; then 66935 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 66936 fi 66937 66938 66939 # Use icecc-create-env to create a minimal compilation environment that can 66940 # be sent to the other hosts in the icecream cluster. 66941 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 66942 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 66943 # Older versions of icecc does not have the --gcc parameter 66944 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 66945 icecc_gcc_arg="--gcc" 66946 fi 66947 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 66948 66949 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 66950 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 66951 ${icecc_create_env_log} 2>&1 ) 66952 if test "$?" != "0"; then 66953 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 66954 $as_echo "$as_me: icecc-create-env output:" >&6;} 66955 cat \ 66956 ${icecc_create_env_log} 66957 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 66958 fi 66959 66960 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 66961 # For clang, the icecc compilerwrapper is needed. It usually resides next 66962 # to icecc-create-env. 66963 66964 66965 66966 # Publish this variable in the help. 66967 66968 66969 if [ -z "${ICECC_WRAPPER+x}" ]; then 66970 # The variable is not set by user, try to locate tool using the code snippet 66971 for ac_prog in compilerwrapper 66972 do 66973 # Extract the first word of "$ac_prog", so it can be a program name with args. 66974 set dummy $ac_prog; ac_word=$2 66975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 66976 $as_echo_n "checking for $ac_word... " >&6; } 66977 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 66978 $as_echo_n "(cached) " >&6 66979 else 66980 case $ICECC_WRAPPER in 66981 [\\/]* | ?:[\\/]*) 66982 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 66983 ;; 66984 *) 66985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66986 for as_dir in $PATH 66987 do 66988 IFS=$as_save_IFS 66989 test -z "$as_dir" && as_dir=. 66990 for ac_exec_ext in '' $ac_executable_extensions; do 66991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 66992 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 66993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 66994 break 2 66995 fi 66996 done 66997 done 66998 IFS=$as_save_IFS 66999 67000 ;; 67001 esac 67002 fi 67003 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 67004 if test -n "$ICECC_WRAPPER"; then 67005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 67006 $as_echo "$ICECC_WRAPPER" >&6; } 67007 else 67008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67009 $as_echo "no" >&6; } 67010 fi 67011 67012 67013 test -n "$ICECC_WRAPPER" && break 67014 done 67015 67016 else 67017 # The variable is set, but is it from the command line or the environment? 67018 67019 # Try to remove the string !ICECC_WRAPPER! from our list. 67020 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 67021 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67022 # If it failed, the variable was not from the command line. Ignore it, 67023 # but warn the user (except for BASH, which is always set by the calling BASH). 67024 if test "xICECC_WRAPPER" != xBASH; then 67025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 67026 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 67027 fi 67028 # Try to locate tool using the code snippet 67029 for ac_prog in compilerwrapper 67030 do 67031 # Extract the first word of "$ac_prog", so it can be a program name with args. 67032 set dummy $ac_prog; ac_word=$2 67033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67034 $as_echo_n "checking for $ac_word... " >&6; } 67035 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 67036 $as_echo_n "(cached) " >&6 67037 else 67038 case $ICECC_WRAPPER in 67039 [\\/]* | ?:[\\/]*) 67040 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 67041 ;; 67042 *) 67043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67044 for as_dir in $PATH 67045 do 67046 IFS=$as_save_IFS 67047 test -z "$as_dir" && as_dir=. 67048 for ac_exec_ext in '' $ac_executable_extensions; do 67049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67050 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 67051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67052 break 2 67053 fi 67054 done 67055 done 67056 IFS=$as_save_IFS 67057 67058 ;; 67059 esac 67060 fi 67061 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 67062 if test -n "$ICECC_WRAPPER"; then 67063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 67064 $as_echo "$ICECC_WRAPPER" >&6; } 67065 else 67066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67067 $as_echo "no" >&6; } 67068 fi 67069 67070 67071 test -n "$ICECC_WRAPPER" && break 67072 done 67073 67074 else 67075 # If it succeeded, then it was overridden by the user. We will use it 67076 # for the tool. 67077 67078 # First remove it from the list of overridden variables, so we can test 67079 # for unknown variables in the end. 67080 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67081 67082 # Check if we try to supply an empty value 67083 if test "x$ICECC_WRAPPER" = x; then 67084 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 67085 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 67086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 67087 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 67088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67089 $as_echo "disabled" >&6; } 67090 else 67091 # Check if the provided tool contains a complete path. 67092 tool_specified="$ICECC_WRAPPER" 67093 tool_basename="${tool_specified##*/}" 67094 if test "x$tool_basename" = "x$tool_specified"; then 67095 # A command without a complete path is provided, search $PATH. 67096 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 67097 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 67098 # Extract the first word of "$tool_basename", so it can be a program name with args. 67099 set dummy $tool_basename; ac_word=$2 67100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67101 $as_echo_n "checking for $ac_word... " >&6; } 67102 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 67103 $as_echo_n "(cached) " >&6 67104 else 67105 case $ICECC_WRAPPER in 67106 [\\/]* | ?:[\\/]*) 67107 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 67108 ;; 67109 *) 67110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67111 for as_dir in $PATH 67112 do 67113 IFS=$as_save_IFS 67114 test -z "$as_dir" && as_dir=. 67115 for ac_exec_ext in '' $ac_executable_extensions; do 67116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67117 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 67118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67119 break 2 67120 fi 67121 done 67122 done 67123 IFS=$as_save_IFS 67124 67125 ;; 67126 esac 67127 fi 67128 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 67129 if test -n "$ICECC_WRAPPER"; then 67130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 67131 $as_echo "$ICECC_WRAPPER" >&6; } 67132 else 67133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67134 $as_echo "no" >&6; } 67135 fi 67136 67137 67138 if test "x$ICECC_WRAPPER" = x; then 67139 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 67140 fi 67141 else 67142 # Otherwise we believe it is a complete path. Use it as it is. 67143 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 67144 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 67145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 67146 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 67147 if test ! -x "$tool_specified"; then 67148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 67149 $as_echo "not found" >&6; } 67150 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 67151 fi 67152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 67153 $as_echo "$tool_specified" >&6; } 67154 fi 67155 fi 67156 fi 67157 67158 fi 67159 67160 67161 67162 if test "x$ICECC_WRAPPER" = x; then 67163 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 67164 fi 67165 67166 67167 67168 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67169 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 67170 if test "$?" != "0"; then 67171 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67172 $as_echo "$as_me: icecc-create-env output:" >&6;} 67173 cat ${icecc_create_env_log} 67174 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67175 fi 67176 67177 else 67178 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 67179 fi 67180 PATH="$old_path" 67181 # The bundle with the compiler gets a name based on checksums. Parse log file 67182 # to find it. 67183 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 67184 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 67185 if test ! -f ${ICECC_ENV_BUNDLE}; then 67186 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 67187 fi 67188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 67189 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 67190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 67191 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 67192 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 67193 67194 if test "x${COMPILE_TYPE}" = "xcross"; then 67195 # If cross compiling, create a separate env package for the build compiler 67196 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 67197 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 67198 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 67199 67200 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67201 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 67202 ${icecc_create_env_log_build} 2>&1 ) 67203 if test "$?" != "0"; then 67204 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67205 $as_echo "$as_me: icecc-create-env output:" >&6;} 67206 cat \ 67207 ${icecc_create_env_log_build} 67208 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67209 fi 67210 67211 elif test "x${BUILD_CC##*/}" = "xclang"; then 67212 67213 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 67214 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 67215 if test "$?" != "0"; then 67216 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 67217 $as_echo "$as_me: icecc-create-env output:" >&6;} 67218 cat ${icecc_create_env_log_build} 67219 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 67220 fi 67221 67222 else 67223 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 67224 fi 67225 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 67226 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 67227 if test ! -f ${ICECC_ENV_BUNDLE}; then 67228 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 67229 fi 67230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 67231 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 67232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 67233 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 67234 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 67235 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 67236 else 67237 BUILD_ICECC="${ICECC}" 67238 fi 67239 67240 67241 fi 67242 67243 67244 # Can the C/C++ compiler use precompiled headers? 67245 67246 67247 ############################################################################### 67248 # 67249 # Can the C/C++ compiler use precompiled headers? 67250 # 67251 # Check whether --enable-precompiled-headers was given. 67252 if test "${enable_precompiled_headers+set}" = set; then : 67253 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 67254 else 67255 ENABLE_PRECOMPH=yes 67256 fi 67257 67258 67259 USE_PRECOMPILED_HEADER=true 67260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 67261 $as_echo_n "checking If precompiled header is enabled... " >&6; } 67262 if test "x$ENABLE_PRECOMPH" = xno; then 67263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67264 $as_echo "no, forced" >&6; } 67265 USE_PRECOMPILED_HEADER=false 67266 elif test "x$ICECC" != "x"; then 67267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 67268 $as_echo "no, does not work effectively with icecc" >&6; } 67269 USE_PRECOMPILED_HEADER=false 67270 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 67271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 67272 $as_echo "no, does not work with Solaris Studio" >&6; } 67273 USE_PRECOMPILED_HEADER=false 67274 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 67275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 67276 $as_echo "no, does not work with xlc" >&6; } 67277 USE_PRECOMPILED_HEADER=false 67278 else 67279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67280 $as_echo "yes" >&6; } 67281 fi 67282 67283 if test "x$ENABLE_PRECOMPH" = xyes; then 67284 # Check that the compiler actually supports precomp headers. 67285 if test "x$TOOLCHAIN_TYPE" = xgcc; then 67286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 67287 $as_echo_n "checking that precompiled headers work... " >&6; } 67288 echo "int alfa();" > conftest.h 67289 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 67290 if test ! -f conftest.hpp.gch; then 67291 USE_PRECOMPILED_HEADER=false 67292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67293 $as_echo "no" >&6; } 67294 else 67295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67296 $as_echo "yes" >&6; } 67297 fi 67298 $RM conftest.h conftest.hpp.gch 67299 fi 67300 fi 67301 67302 67303 67304 67305 # Setup use of ccache, if available 67306 67307 # Check whether --enable-ccache was given. 67308 if test "${enable_ccache+set}" = set; then : 67309 enableval=$enable_ccache; 67310 fi 67311 67312 67313 CCACHE_STATUS= 67314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 67315 $as_echo_n "checking is ccache enabled... " >&6; } 67316 if test "x$enable_ccache" = xyes; then 67317 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 67318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67319 $as_echo "yes" >&6; } 67320 OLD_PATH="$PATH" 67321 if test "x$TOOLCHAIN_PATH" != x; then 67322 PATH=$TOOLCHAIN_PATH:$PATH 67323 fi 67324 67325 67326 67327 # Publish this variable in the help. 67328 67329 67330 if [ -z "${CCACHE+x}" ]; then 67331 # The variable is not set by user, try to locate tool using the code snippet 67332 for ac_prog in ccache 67333 do 67334 # Extract the first word of "$ac_prog", so it can be a program name with args. 67335 set dummy $ac_prog; ac_word=$2 67336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67337 $as_echo_n "checking for $ac_word... " >&6; } 67338 if ${ac_cv_path_CCACHE+:} false; then : 67339 $as_echo_n "(cached) " >&6 67340 else 67341 case $CCACHE in 67342 [\\/]* | ?:[\\/]*) 67343 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 67344 ;; 67345 *) 67346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67347 for as_dir in $PATH 67348 do 67349 IFS=$as_save_IFS 67350 test -z "$as_dir" && as_dir=. 67351 for ac_exec_ext in '' $ac_executable_extensions; do 67352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67353 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 67354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67355 break 2 67356 fi 67357 done 67358 done 67359 IFS=$as_save_IFS 67360 67361 ;; 67362 esac 67363 fi 67364 CCACHE=$ac_cv_path_CCACHE 67365 if test -n "$CCACHE"; then 67366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 67367 $as_echo "$CCACHE" >&6; } 67368 else 67369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67370 $as_echo "no" >&6; } 67371 fi 67372 67373 67374 test -n "$CCACHE" && break 67375 done 67376 67377 else 67378 # The variable is set, but is it from the command line or the environment? 67379 67380 # Try to remove the string !CCACHE! from our list. 67381 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 67382 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67383 # If it failed, the variable was not from the command line. Ignore it, 67384 # but warn the user (except for BASH, which is always set by the calling BASH). 67385 if test "xCCACHE" != xBASH; then 67386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 67387 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 67388 fi 67389 # Try to locate tool using the code snippet 67390 for ac_prog in ccache 67391 do 67392 # Extract the first word of "$ac_prog", so it can be a program name with args. 67393 set dummy $ac_prog; ac_word=$2 67394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67395 $as_echo_n "checking for $ac_word... " >&6; } 67396 if ${ac_cv_path_CCACHE+:} false; then : 67397 $as_echo_n "(cached) " >&6 67398 else 67399 case $CCACHE in 67400 [\\/]* | ?:[\\/]*) 67401 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 67402 ;; 67403 *) 67404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67405 for as_dir in $PATH 67406 do 67407 IFS=$as_save_IFS 67408 test -z "$as_dir" && as_dir=. 67409 for ac_exec_ext in '' $ac_executable_extensions; do 67410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67411 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 67412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67413 break 2 67414 fi 67415 done 67416 done 67417 IFS=$as_save_IFS 67418 67419 ;; 67420 esac 67421 fi 67422 CCACHE=$ac_cv_path_CCACHE 67423 if test -n "$CCACHE"; then 67424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 67425 $as_echo "$CCACHE" >&6; } 67426 else 67427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67428 $as_echo "no" >&6; } 67429 fi 67430 67431 67432 test -n "$CCACHE" && break 67433 done 67434 67435 else 67436 # If it succeeded, then it was overridden by the user. We will use it 67437 # for the tool. 67438 67439 # First remove it from the list of overridden variables, so we can test 67440 # for unknown variables in the end. 67441 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67442 67443 # Check if we try to supply an empty value 67444 if test "x$CCACHE" = x; then 67445 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 67446 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 67447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 67448 $as_echo_n "checking for CCACHE... " >&6; } 67449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67450 $as_echo "disabled" >&6; } 67451 else 67452 # Check if the provided tool contains a complete path. 67453 tool_specified="$CCACHE" 67454 tool_basename="${tool_specified##*/}" 67455 if test "x$tool_basename" = "x$tool_specified"; then 67456 # A command without a complete path is provided, search $PATH. 67457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 67458 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 67459 # Extract the first word of "$tool_basename", so it can be a program name with args. 67460 set dummy $tool_basename; ac_word=$2 67461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67462 $as_echo_n "checking for $ac_word... " >&6; } 67463 if ${ac_cv_path_CCACHE+:} false; then : 67464 $as_echo_n "(cached) " >&6 67465 else 67466 case $CCACHE in 67467 [\\/]* | ?:[\\/]*) 67468 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 67469 ;; 67470 *) 67471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67472 for as_dir in $PATH 67473 do 67474 IFS=$as_save_IFS 67475 test -z "$as_dir" && as_dir=. 67476 for ac_exec_ext in '' $ac_executable_extensions; do 67477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67478 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 67479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67480 break 2 67481 fi 67482 done 67483 done 67484 IFS=$as_save_IFS 67485 67486 ;; 67487 esac 67488 fi 67489 CCACHE=$ac_cv_path_CCACHE 67490 if test -n "$CCACHE"; then 67491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 67492 $as_echo "$CCACHE" >&6; } 67493 else 67494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67495 $as_echo "no" >&6; } 67496 fi 67497 67498 67499 if test "x$CCACHE" = x; then 67500 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 67501 fi 67502 else 67503 # Otherwise we believe it is a complete path. Use it as it is. 67504 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 67505 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 67506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 67507 $as_echo_n "checking for CCACHE... " >&6; } 67508 if test ! -x "$tool_specified"; then 67509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 67510 $as_echo "not found" >&6; } 67511 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 67512 fi 67513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 67514 $as_echo "$tool_specified" >&6; } 67515 fi 67516 fi 67517 fi 67518 67519 fi 67520 67521 67522 67523 if test "x$CCACHE" = x; then 67524 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 67525 fi 67526 67527 67528 PATH="$OLD_PATH" 67529 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 67530 CCACHE_STATUS="Active ($CCACHE_VERSION)" 67531 else 67532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67533 $as_echo "no" >&6; } 67534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 67535 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 67536 fi 67537 elif test "x$enable_ccache" = xno; then 67538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 67539 $as_echo "no, explicitly disabled" >&6; } 67540 CCACHE_STATUS="Disabled" 67541 elif test "x$enable_ccache" = x; then 67542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67543 $as_echo "no" >&6; } 67544 else 67545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 67546 $as_echo "unknown" >&6; } 67547 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 67548 fi 67549 67550 67551 67552 # Check whether --with-ccache-dir was given. 67553 if test "${with_ccache_dir+set}" = set; then : 67554 withval=$with_ccache_dir; 67555 fi 67556 67557 67558 if test "x$with_ccache_dir" != x; then 67559 # When using a non home ccache directory, assume the use is to share ccache files 67560 # with other users. Thus change the umask. 67561 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 67562 if test "x$CCACHE" = x; then 67563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 67564 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 67565 fi 67566 fi 67567 67568 if test "x$CCACHE" != x; then 67569 67570 if test "x$CCACHE" != x; then 67571 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 67572 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 67573 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'` 67574 if test "x$HAS_BAD_CCACHE" != "x"; then 67575 as_fn_error $? "On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION" "$LINENO" 5 67576 fi 67577 fi 67578 if test "x$USE_PRECOMPILED_HEADER" = "xtrue"; then 67579 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 67580 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 67581 if test "x$HAS_BAD_CCACHE" != "x"; then 67582 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 67583 fi 67584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 67585 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 67586 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 67587 PUSHED_FLAGS="$CXXFLAGS" 67588 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 67589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 67590 /* end confdefs.h. */ 67591 67592 int 67593 main () 67594 { 67595 67596 ; 67597 return 0; 67598 } 67599 _ACEOF 67600 if ac_fn_cxx_try_compile "$LINENO"; then : 67601 CC_KNOWS_CCACHE_TRICK=yes 67602 else 67603 CC_KNOWS_CCACHE_TRICK=no 67604 fi 67605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 67606 CXXFLAGS="$PUSHED_FLAGS" 67607 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 67608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67609 $as_echo "yes" >&6; } 67610 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 67611 67612 CCACHE_SLOPPINESS=pch_defines,time_macros 67613 else 67614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67615 $as_echo "no" >&6; } 67616 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 67617 fi 67618 fi 67619 67620 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 67621 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 67622 67623 if test "x$SET_CCACHE_DIR" != x; then 67624 mkdir -p $CCACHE_DIR > /dev/null 2>&1 67625 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 67626 fi 67627 fi 67628 67629 fi 67630 67631 67632 ############################################################################### 67633 # 67634 # And now the finish... 67635 # 67636 ############################################################################### 67637 67638 # Check for some common pitfalls 67639 67640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 67641 file_to_test="$SRC_ROOT/LICENSE" 67642 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 67643 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 67644 fi 67645 fi 67646 67647 67648 # Did user specify any unknown variables? 67649 67650 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 67651 # Replace the separating ! with spaces before presenting for end user. 67652 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 67653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 67654 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 67655 fi 67656 67657 67658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 67659 $as_echo_n "checking if build directory is on local disk... " >&6; } 67660 67661 # df -l lists only local disks; if the given directory is not found then 67662 # a non-zero exit code is given 67663 if test "x$DF" = x; then 67664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 67665 # msys does not have df; use Windows "net use" instead. 67666 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 67667 if test "x$IS_NETWORK_DISK" = x; then 67668 OUTPUT_DIR_IS_LOCAL="yes" 67669 else 67670 OUTPUT_DIR_IS_LOCAL="no" 67671 fi 67672 else 67673 # No df here, say it's local 67674 OUTPUT_DIR_IS_LOCAL="yes" 67675 fi 67676 else 67677 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 67678 OUTPUT_DIR_IS_LOCAL="yes" 67679 else 67680 OUTPUT_DIR_IS_LOCAL="no" 67681 fi 67682 fi 67683 67684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 67685 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 67686 67687 67688 67689 # Check if the user has any old-style ALT_ variables set. 67690 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 67691 67692 # Before generating output files, test if they exist. If they do, this is a reconfigure. 67693 # Since we can't properly handle the dependencies for this, warn the user about the situation 67694 if test -e $OUTPUT_ROOT/spec.gmk; then 67695 IS_RECONFIGURE=yes 67696 else 67697 IS_RECONFIGURE=no 67698 fi 67699 67700 67701 # At the end, call the custom hook. (Dummy macro if no custom sources available) 67702 67703 67704 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 67705 67706 # Keep feature lists sorted and free of duplicates 67707 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 67708 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 67709 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 67710 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 67711 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 67712 JVM_FEATURES_zeroshark="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zeroshark | $SORT -u))" 67713 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 67714 67715 # Validate features 67716 for variant in $JVM_VARIANTS; do 67717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 67718 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 67719 features_var_name=JVM_FEATURES_$variant 67720 JVM_FEATURES_TO_TEST=${!features_var_name} 67721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 67722 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 67723 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 67724 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 67725 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 67726 if test "x$INVALID_FEATURES" != x; then 67727 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 67728 fi 67729 done 67730 67731 67732 # We're messing a bit with internal autoconf variables to put the config.status 67733 # in the output directory instead of the current directory. 67734 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 67735 67736 # Create the actual output files. Now the main work of configure is done. 67737 cat >confcache <<\_ACEOF 67738 # This file is a shell script that caches the results of configure 67739 # tests run on this system so they can be shared between configure 67740 # scripts and configure runs, see configure's option --config-cache. 67741 # It is not useful on other systems. If it contains results you don't 67742 # want to keep, you may remove or edit it. 67743 # 67744 # config.status only pays attention to the cache file if you give it 67745 # the --recheck option to rerun configure. 67746 # 67747 # `ac_cv_env_foo' variables (set or unset) will be overridden when 67748 # loading this file, other *unset* `ac_cv_foo' will be assigned the 67749 # following values. 67750 67751 _ACEOF 67752 67753 # The following way of writing the cache mishandles newlines in values, 67754 # but we know of no workaround that is simple, portable, and efficient. 67755 # So, we kill variables containing newlines. 67756 # Ultrix sh set writes to stderr and can't be redirected directly, 67757 # and sets the high bit in the cache file unless we assign to the vars. 67758 ( 67759 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 67760 eval ac_val=\$$ac_var 67761 case $ac_val in #( 67762 *${as_nl}*) 67763 case $ac_var in #( 67764 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 67765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 67766 esac 67767 case $ac_var in #( 67768 _ | IFS | as_nl) ;; #( 67769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 67770 *) { eval $ac_var=; unset $ac_var;} ;; 67771 esac ;; 67772 esac 67773 done 67774 67775 (set) 2>&1 | 67776 case $as_nl`(ac_space=' '; set) 2>&1` in #( 67777 *${as_nl}ac_space=\ *) 67778 # `set' does not quote correctly, so add quotes: double-quote 67779 # substitution turns \\\\ into \\, and sed turns \\ into \. 67780 sed -n \ 67781 "s/'/'\\\\''/g; 67782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 67783 ;; #( 67784 *) 67785 # `set' quotes correctly as required by POSIX, so do not add quotes. 67786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 67787 ;; 67788 esac | 67789 sort 67790 ) | 67791 sed ' 67792 /^ac_cv_env_/b end 67793 t clear 67794 :clear 67795 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 67796 t end 67797 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 67798 :end' >>confcache 67799 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 67800 if test -w "$cache_file"; then 67801 if test "x$cache_file" != "x/dev/null"; then 67802 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 67803 $as_echo "$as_me: updating cache $cache_file" >&6;} 67804 if test ! -f "$cache_file" || test -h "$cache_file"; then 67805 cat confcache >"$cache_file" 67806 else 67807 case $cache_file in #( 67808 */* | ?:*) 67809 mv -f confcache "$cache_file"$$ && 67810 mv -f "$cache_file"$$ "$cache_file" ;; #( 67811 *) 67812 mv -f confcache "$cache_file" ;; 67813 esac 67814 fi 67815 fi 67816 else 67817 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 67818 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 67819 fi 67820 fi 67821 rm -f confcache 67822 67823 test "x$prefix" = xNONE && prefix=$ac_default_prefix 67824 # Let make expand exec_prefix. 67825 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 67826 67827 # Transform confdefs.h into DEFS. 67828 # Protect against shell expansion while executing Makefile rules. 67829 # Protect against Makefile macro expansion. 67830 # 67831 # If the first sed substitution is executed (which looks for macros that 67832 # take arguments), then branch to the quote section. Otherwise, 67833 # look for a macro that doesn't take arguments. 67834 ac_script=' 67835 :mline 67836 /\\$/{ 67837 N 67838 s,\\\n,, 67839 b mline 67840 } 67841 t clear 67842 :clear 67843 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 67844 t quote 67845 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 67846 t quote 67847 b any 67848 :quote 67849 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 67850 s/\[/\\&/g 67851 s/\]/\\&/g 67852 s/\$/$$/g 67853 H 67854 :any 67855 ${ 67856 g 67857 s/^\n// 67858 s/\n/ /g 67859 p 67860 } 67861 ' 67862 DEFS=`sed -n "$ac_script" confdefs.h` 67863 67864 67865 ac_libobjs= 67866 ac_ltlibobjs= 67867 U= 67868 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 67869 # 1. Remove the extension, and $U if already installed. 67870 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 67871 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 67872 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 67873 # will be set to the directory where LIBOBJS objects are built. 67874 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 67875 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 67876 done 67877 LIBOBJS=$ac_libobjs 67878 67879 LTLIBOBJS=$ac_ltlibobjs 67880 67881 67882 67883 : "${CONFIG_STATUS=./config.status}" 67884 ac_write_fail=0 67885 ac_clean_files_save=$ac_clean_files 67886 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 67887 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 67888 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 67889 as_write_fail=0 67890 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 67891 #! $SHELL 67892 # Generated by $as_me. 67893 # Run this file to recreate the current configuration. 67894 # Compiler output produced by configure, useful for debugging 67895 # configure, is in config.log if it exists. 67896 67897 debug=false 67898 ac_cs_recheck=false 67899 ac_cs_silent=false 67900 67901 SHELL=\${CONFIG_SHELL-$SHELL} 67902 export SHELL 67903 _ASEOF 67904 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 67905 ## -------------------- ## 67906 ## M4sh Initialization. ## 67907 ## -------------------- ## 67908 67909 # Be more Bourne compatible 67910 DUALCASE=1; export DUALCASE # for MKS sh 67911 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 67912 emulate sh 67913 NULLCMD=: 67914 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 67915 # is contrary to our usage. Disable this feature. 67916 alias -g '${1+"$@"}'='"$@"' 67917 setopt NO_GLOB_SUBST 67918 else 67919 case `(set -o) 2>/dev/null` in #( 67920 *posix*) : 67921 set -o posix ;; #( 67922 *) : 67923 ;; 67924 esac 67925 fi 67926 67927 67928 as_nl=' 67929 ' 67930 export as_nl 67931 # Printing a long string crashes Solaris 7 /usr/bin/printf. 67932 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 67933 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 67934 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 67935 # Prefer a ksh shell builtin over an external printf program on Solaris, 67936 # but without wasting forks for bash or zsh. 67937 if test -z "$BASH_VERSION$ZSH_VERSION" \ 67938 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 67939 as_echo='print -r --' 67940 as_echo_n='print -rn --' 67941 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 67942 as_echo='printf %s\n' 67943 as_echo_n='printf %s' 67944 else 67945 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 67946 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 67947 as_echo_n='/usr/ucb/echo -n' 67948 else 67949 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 67950 as_echo_n_body='eval 67951 arg=$1; 67952 case $arg in #( 67953 *"$as_nl"*) 67954 expr "X$arg" : "X\\(.*\\)$as_nl"; 67955 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 67956 esac; 67957 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67958 ' 67959 export as_echo_n_body 67960 as_echo_n='sh -c $as_echo_n_body as_echo' 67961 fi 67962 export as_echo_body 67963 as_echo='sh -c $as_echo_body as_echo' 67964 fi 67965 67966 # The user is always right. 67967 if test "${PATH_SEPARATOR+set}" != set; then 67968 PATH_SEPARATOR=: 67969 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 67970 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 67971 PATH_SEPARATOR=';' 67972 } 67973 fi 67974 67975 67976 # IFS 67977 # We need space, tab and new line, in precisely that order. Quoting is 67978 # there to prevent editors from complaining about space-tab. 67979 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 67980 # splitting by setting IFS to empty value.) 67981 IFS=" "" $as_nl" 67982 67983 # Find who we are. Look in the path if we contain no directory separator. 67984 as_myself= 67985 case $0 in #(( 67986 *[\\/]* ) as_myself=$0 ;; 67987 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67988 for as_dir in $PATH 67989 do 67990 IFS=$as_save_IFS 67991 test -z "$as_dir" && as_dir=. 67992 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 67993 done 67994 IFS=$as_save_IFS 67995 67996 ;; 67997 esac 67998 # We did not find ourselves, most probably we were run as `sh COMMAND' 67999 # in which case we are not to be found in the path. 68000 if test "x$as_myself" = x; then 68001 as_myself=$0 68002 fi 68003 if test ! -f "$as_myself"; then 68004 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 68005 exit 1 68006 fi 68007 68008 # Unset variables that we do not need and which cause bugs (e.g. in 68009 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 68010 # suppresses any "Segmentation fault" message there. '((' could 68011 # trigger a bug in pdksh 5.2.14. 68012 for as_var in BASH_ENV ENV MAIL MAILPATH 68013 do eval test x\${$as_var+set} = xset \ 68014 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 68015 done 68016 PS1='$ ' 68017 PS2='> ' 68018 PS4='+ ' 68019 68020 # NLS nuisances. 68021 LC_ALL=C 68022 export LC_ALL 68023 LANGUAGE=C 68024 export LANGUAGE 68025 68026 # CDPATH. 68027 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 68028 68029 68030 # as_fn_error STATUS ERROR [LINENO LOG_FD] 68031 # ---------------------------------------- 68032 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 68033 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 68034 # script with STATUS, using 1 if that was 0. 68035 as_fn_error () 68036 { 68037 as_status=$1; test $as_status -eq 0 && as_status=1 68038 if test "$4"; then 68039 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 68040 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 68041 fi 68042 $as_echo "$as_me: error: $2" >&2 68043 as_fn_exit $as_status 68044 } # as_fn_error 68045 68046 68047 # as_fn_set_status STATUS 68048 # ----------------------- 68049 # Set $? to STATUS, without forking. 68050 as_fn_set_status () 68051 { 68052 return $1 68053 } # as_fn_set_status 68054 68055 # as_fn_exit STATUS 68056 # ----------------- 68057 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 68058 as_fn_exit () 68059 { 68060 set +e 68061 as_fn_set_status $1 68062 exit $1 68063 } # as_fn_exit 68064 68065 # as_fn_unset VAR 68066 # --------------- 68067 # Portably unset VAR. 68068 as_fn_unset () 68069 { 68070 { eval $1=; unset $1;} 68071 } 68072 as_unset=as_fn_unset 68073 # as_fn_append VAR VALUE 68074 # ---------------------- 68075 # Append the text in VALUE to the end of the definition contained in VAR. Take 68076 # advantage of any shell optimizations that allow amortized linear growth over 68077 # repeated appends, instead of the typical quadratic growth present in naive 68078 # implementations. 68079 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 68080 eval 'as_fn_append () 68081 { 68082 eval $1+=\$2 68083 }' 68084 else 68085 as_fn_append () 68086 { 68087 eval $1=\$$1\$2 68088 } 68089 fi # as_fn_append 68090 68091 # as_fn_arith ARG... 68092 # ------------------ 68093 # Perform arithmetic evaluation on the ARGs, and store the result in the 68094 # global $as_val. Take advantage of shells that can avoid forks. The arguments 68095 # must be portable across $(()) and expr. 68096 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 68097 eval 'as_fn_arith () 68098 { 68099 as_val=$(( $* )) 68100 }' 68101 else 68102 as_fn_arith () 68103 { 68104 as_val=`expr "$@" || test $? -eq 1` 68105 } 68106 fi # as_fn_arith 68107 68108 68109 if expr a : '\(a\)' >/dev/null 2>&1 && 68110 test "X`expr 00001 : '.*\(...\)'`" = X001; then 68111 as_expr=expr 68112 else 68113 as_expr=false 68114 fi 68115 68116 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 68117 as_basename=basename 68118 else 68119 as_basename=false 68120 fi 68121 68122 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 68123 as_dirname=dirname 68124 else 68125 as_dirname=false 68126 fi 68127 68128 as_me=`$as_basename -- "$0" || 68129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68130 X"$0" : 'X\(//\)$' \| \ 68131 X"$0" : 'X\(/\)' \| . 2>/dev/null || 68132 $as_echo X/"$0" | 68133 sed '/^.*\/\([^/][^/]*\)\/*$/{ 68134 s//\1/ 68135 q 68136 } 68137 /^X\/\(\/\/\)$/{ 68138 s//\1/ 68139 q 68140 } 68141 /^X\/\(\/\).*/{ 68142 s//\1/ 68143 q 68144 } 68145 s/.*/./; q'` 68146 68147 # Avoid depending upon Character Ranges. 68148 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 68149 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 68150 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 68151 as_cr_digits='0123456789' 68152 as_cr_alnum=$as_cr_Letters$as_cr_digits 68153 68154 ECHO_C= ECHO_N= ECHO_T= 68155 case `echo -n x` in #((((( 68156 -n*) 68157 case `echo 'xy\c'` in 68158 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 68159 xy) ECHO_C='\c';; 68160 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 68161 ECHO_T=' ';; 68162 esac;; 68163 *) 68164 ECHO_N='-n';; 68165 esac 68166 68167 rm -f conf$$ conf$$.exe conf$$.file 68168 if test -d conf$$.dir; then 68169 rm -f conf$$.dir/conf$$.file 68170 else 68171 rm -f conf$$.dir 68172 mkdir conf$$.dir 2>/dev/null 68173 fi 68174 if (echo >conf$$.file) 2>/dev/null; then 68175 if ln -s conf$$.file conf$$ 2>/dev/null; then 68176 as_ln_s='ln -s' 68177 # ... but there are two gotchas: 68178 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 68179 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 68180 # In both cases, we have to default to `cp -pR'. 68181 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 68182 as_ln_s='cp -pR' 68183 elif ln conf$$.file conf$$ 2>/dev/null; then 68184 as_ln_s=ln 68185 else 68186 as_ln_s='cp -pR' 68187 fi 68188 else 68189 as_ln_s='cp -pR' 68190 fi 68191 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 68192 rmdir conf$$.dir 2>/dev/null 68193 68194 68195 # as_fn_mkdir_p 68196 # ------------- 68197 # Create "$as_dir" as a directory, including parents if necessary. 68198 as_fn_mkdir_p () 68199 { 68200 68201 case $as_dir in #( 68202 -*) as_dir=./$as_dir;; 68203 esac 68204 test -d "$as_dir" || eval $as_mkdir_p || { 68205 as_dirs= 68206 while :; do 68207 case $as_dir in #( 68208 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 68209 *) as_qdir=$as_dir;; 68210 esac 68211 as_dirs="'$as_qdir' $as_dirs" 68212 as_dir=`$as_dirname -- "$as_dir" || 68213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 68214 X"$as_dir" : 'X\(//\)[^/]' \| \ 68215 X"$as_dir" : 'X\(//\)$' \| \ 68216 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 68217 $as_echo X"$as_dir" | 68218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 68219 s//\1/ 68220 q 68221 } 68222 /^X\(\/\/\)[^/].*/{ 68223 s//\1/ 68224 q 68225 } 68226 /^X\(\/\/\)$/{ 68227 s//\1/ 68228 q 68229 } 68230 /^X\(\/\).*/{ 68231 s//\1/ 68232 q 68233 } 68234 s/.*/./; q'` 68235 test -d "$as_dir" && break 68236 done 68237 test -z "$as_dirs" || eval "mkdir $as_dirs" 68238 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 68239 68240 68241 } # as_fn_mkdir_p 68242 if mkdir -p . 2>/dev/null; then 68243 as_mkdir_p='mkdir -p "$as_dir"' 68244 else 68245 test -d ./-p && rmdir ./-p 68246 as_mkdir_p=false 68247 fi 68248 68249 68250 # as_fn_executable_p FILE 68251 # ----------------------- 68252 # Test if FILE is an executable regular file. 68253 as_fn_executable_p () 68254 { 68255 test -f "$1" && test -x "$1" 68256 } # as_fn_executable_p 68257 as_test_x='test -x' 68258 as_executable_p=as_fn_executable_p 68259 68260 # Sed expression to map a string onto a valid CPP name. 68261 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 68262 68263 # Sed expression to map a string onto a valid variable name. 68264 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 68265 68266 68267 exec 6>&1 68268 ## ----------------------------------- ## 68269 ## Main body of $CONFIG_STATUS script. ## 68270 ## ----------------------------------- ## 68271 _ASEOF 68272 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 68273 68274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68275 # Save the log message, to keep $0 and so on meaningful, and to 68276 # report actual input values of CONFIG_FILES etc. instead of their 68277 # values after options handling. 68278 ac_log=" 68279 This file was extended by OpenJDK $as_me jdk9, which was 68280 generated by GNU Autoconf 2.69. Invocation command line was 68281 68282 CONFIG_FILES = $CONFIG_FILES 68283 CONFIG_HEADERS = $CONFIG_HEADERS 68284 CONFIG_LINKS = $CONFIG_LINKS 68285 CONFIG_COMMANDS = $CONFIG_COMMANDS 68286 $ $0 $@ 68287 68288 on `(hostname || uname -n) 2>/dev/null | sed 1q` 68289 " 68290 68291 _ACEOF 68292 68293 case $ac_config_files in *" 68294 "*) set x $ac_config_files; shift; ac_config_files=$*;; 68295 esac 68296 68297 68298 68299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68300 # Files that config.status was made for. 68301 config_files="$ac_config_files" 68302 68303 _ACEOF 68304 68305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68306 ac_cs_usage="\ 68307 \`$as_me' instantiates files and other configuration actions 68308 from templates according to the current configuration. Unless the files 68309 and actions are specified as TAGs, all are instantiated by default. 68310 68311 Usage: $0 [OPTION]... [TAG]... 68312 68313 -h, --help print this help, then exit 68314 -V, --version print version number and configuration settings, then exit 68315 --config print configuration, then exit 68316 -q, --quiet, --silent 68317 do not print progress messages 68318 -d, --debug don't remove temporary files 68319 --recheck update $as_me by reconfiguring in the same conditions 68320 --file=FILE[:TEMPLATE] 68321 instantiate the configuration file FILE 68322 68323 Configuration files: 68324 $config_files 68325 68326 Report bugs to <build-dev@openjdk.java.net>. 68327 OpenJDK home page: <http://openjdk.java.net>." 68328 68329 _ACEOF 68330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68331 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 68332 ac_cs_version="\\ 68333 OpenJDK config.status jdk9 68334 configured by $0, generated by GNU Autoconf 2.69, 68335 with options \\"\$ac_cs_config\\" 68336 68337 Copyright (C) 2012 Free Software Foundation, Inc. 68338 This config.status script is free software; the Free Software Foundation 68339 gives unlimited permission to copy, distribute and modify it." 68340 68341 ac_pwd='$ac_pwd' 68342 srcdir='$srcdir' 68343 AWK='$AWK' 68344 test -n "\$AWK" || AWK=awk 68345 _ACEOF 68346 68347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68348 # The default lists apply if the user does not specify any file. 68349 ac_need_defaults=: 68350 while test $# != 0 68351 do 68352 case $1 in 68353 --*=?*) 68354 ac_option=`expr "X$1" : 'X\([^=]*\)='` 68355 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 68356 ac_shift=: 68357 ;; 68358 --*=) 68359 ac_option=`expr "X$1" : 'X\([^=]*\)='` 68360 ac_optarg= 68361 ac_shift=: 68362 ;; 68363 *) 68364 ac_option=$1 68365 ac_optarg=$2 68366 ac_shift=shift 68367 ;; 68368 esac 68369 68370 case $ac_option in 68371 # Handling of the options. 68372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 68373 ac_cs_recheck=: ;; 68374 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 68375 $as_echo "$ac_cs_version"; exit ;; 68376 --config | --confi | --conf | --con | --co | --c ) 68377 $as_echo "$ac_cs_config"; exit ;; 68378 --debug | --debu | --deb | --de | --d | -d ) 68379 debug=: ;; 68380 --file | --fil | --fi | --f ) 68381 $ac_shift 68382 case $ac_optarg in 68383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 68384 '') as_fn_error $? "missing file argument" ;; 68385 esac 68386 as_fn_append CONFIG_FILES " '$ac_optarg'" 68387 ac_need_defaults=false;; 68388 --he | --h | --help | --hel | -h ) 68389 $as_echo "$ac_cs_usage"; exit ;; 68390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 68391 | -silent | --silent | --silen | --sile | --sil | --si | --s) 68392 ac_cs_silent=: ;; 68393 68394 # This is an error. 68395 -*) as_fn_error $? "unrecognized option: \`$1' 68396 Try \`$0 --help' for more information." ;; 68397 68398 *) as_fn_append ac_config_targets " $1" 68399 ac_need_defaults=false ;; 68400 68401 esac 68402 shift 68403 done 68404 68405 ac_configure_extra_args= 68406 68407 if $ac_cs_silent; then 68408 exec 6>/dev/null 68409 ac_configure_extra_args="$ac_configure_extra_args --silent" 68410 fi 68411 68412 _ACEOF 68413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68414 if \$ac_cs_recheck; then 68415 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 68416 shift 68417 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 68418 CONFIG_SHELL='$SHELL' 68419 export CONFIG_SHELL 68420 exec "\$@" 68421 fi 68422 68423 _ACEOF 68424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68425 exec 5>>config.log 68426 { 68427 echo 68428 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 68429 ## Running $as_me. ## 68430 _ASBOX 68431 $as_echo "$ac_log" 68432 } >&5 68433 68434 _ACEOF 68435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68436 _ACEOF 68437 68438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68439 68440 # Handling of arguments. 68441 for ac_config_target in $ac_config_targets 68442 do 68443 case $ac_config_target in 68444 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 68445 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 68446 "$OUTPUT_ROOT/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 68447 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 68448 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 68449 68450 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 68451 esac 68452 done 68453 68454 68455 # If the user did not use the arguments to specify the items to instantiate, 68456 # then the envvar interface is used. Set only those that are not. 68457 # We use the long form for the default assignment because of an extremely 68458 # bizarre bug on SunOS 4.1.3. 68459 if $ac_need_defaults; then 68460 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 68461 fi 68462 68463 # Have a temporary directory for convenience. Make it in the build tree 68464 # simply because there is no reason against having it here, and in addition, 68465 # creating and moving files from /tmp can sometimes cause problems. 68466 # Hook for its removal unless debugging. 68467 # Note that there is a small window in which the directory will not be cleaned: 68468 # after its creation but before its name has been assigned to `$tmp'. 68469 $debug || 68470 { 68471 tmp= ac_tmp= 68472 trap 'exit_status=$? 68473 : "${ac_tmp:=$tmp}" 68474 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 68475 ' 0 68476 trap 'as_fn_exit 1' 1 2 13 15 68477 } 68478 # Create a (secure) tmp directory for tmp files. 68479 68480 { 68481 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 68482 test -d "$tmp" 68483 } || 68484 { 68485 tmp=./conf$$-$RANDOM 68486 (umask 077 && mkdir "$tmp") 68487 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 68488 ac_tmp=$tmp 68489 68490 # Set up the scripts for CONFIG_FILES section. 68491 # No need to generate them if there are no CONFIG_FILES. 68492 # This happens for instance with `./config.status config.h'. 68493 if test -n "$CONFIG_FILES"; then 68494 68495 68496 ac_cr=`echo X | tr X '\015'` 68497 # On cygwin, bash can eat \r inside `` if the user requested igncr. 68498 # But we know of no other shell where ac_cr would be empty at this 68499 # point, so we can use a bashism as a fallback. 68500 if test "x$ac_cr" = x; then 68501 eval ac_cr=\$\'\\r\' 68502 fi 68503 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 68504 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 68505 ac_cs_awk_cr='\\r' 68506 else 68507 ac_cs_awk_cr=$ac_cr 68508 fi 68509 68510 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 68511 _ACEOF 68512 68513 68514 { 68515 echo "cat >conf$$subs.awk <<_ACEOF" && 68516 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 68517 echo "_ACEOF" 68518 } >conf$$subs.sh || 68519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 68520 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 68521 ac_delim='%!_!# ' 68522 for ac_last_try in false false false false false :; do 68523 . ./conf$$subs.sh || 68524 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 68525 68526 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 68527 if test $ac_delim_n = $ac_delim_num; then 68528 break 68529 elif $ac_last_try; then 68530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 68531 else 68532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 68533 fi 68534 done 68535 rm -f conf$$subs.sh 68536 68537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68538 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 68539 _ACEOF 68540 sed -n ' 68541 h 68542 s/^/S["/; s/!.*/"]=/ 68543 p 68544 g 68545 s/^[^!]*!// 68546 :repl 68547 t repl 68548 s/'"$ac_delim"'$// 68549 t delim 68550 :nl 68551 h 68552 s/\(.\{148\}\)..*/\1/ 68553 t more1 68554 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 68555 p 68556 n 68557 b repl 68558 :more1 68559 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 68560 p 68561 g 68562 s/.\{148\}// 68563 t nl 68564 :delim 68565 h 68566 s/\(.\{148\}\)..*/\1/ 68567 t more2 68568 s/["\\]/\\&/g; s/^/"/; s/$/"/ 68569 p 68570 b 68571 :more2 68572 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 68573 p 68574 g 68575 s/.\{148\}// 68576 t delim 68577 ' <conf$$subs.awk | sed ' 68578 /^[^""]/{ 68579 N 68580 s/\n// 68581 } 68582 ' >>$CONFIG_STATUS || ac_write_fail=1 68583 rm -f conf$$subs.awk 68584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68585 _ACAWK 68586 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 68587 for (key in S) S_is_set[key] = 1 68588 FS = "" 68589 68590 } 68591 { 68592 line = $ 0 68593 nfields = split(line, field, "@") 68594 substed = 0 68595 len = length(field[1]) 68596 for (i = 2; i < nfields; i++) { 68597 key = field[i] 68598 keylen = length(key) 68599 if (S_is_set[key]) { 68600 value = S[key] 68601 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 68602 len += length(value) + length(field[++i]) 68603 substed = 1 68604 } else 68605 len += 1 + keylen 68606 } 68607 68608 print line 68609 } 68610 68611 _ACAWK 68612 _ACEOF 68613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68614 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 68615 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 68616 else 68617 cat 68618 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 68619 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 68620 _ACEOF 68621 68622 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 68623 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 68624 # trailing colons and then remove the whole line if VPATH becomes empty 68625 # (actually we leave an empty line to preserve line numbers). 68626 if test "x$srcdir" = x.; then 68627 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 68628 h 68629 s/// 68630 s/^/:/ 68631 s/[ ]*$/:/ 68632 s/:\$(srcdir):/:/g 68633 s/:\${srcdir}:/:/g 68634 s/:@srcdir@:/:/g 68635 s/^:*// 68636 s/:*$// 68637 x 68638 s/\(=[ ]*\).*/\1/ 68639 G 68640 s/\n// 68641 s/^[^=]*=[ ]*$// 68642 }' 68643 fi 68644 68645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68646 fi # test -n "$CONFIG_FILES" 68647 68648 68649 eval set X " :F $CONFIG_FILES " 68650 shift 68651 for ac_tag 68652 do 68653 case $ac_tag in 68654 :[FHLC]) ac_mode=$ac_tag; continue;; 68655 esac 68656 case $ac_mode$ac_tag in 68657 :[FHL]*:*);; 68658 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 68659 :[FH]-) ac_tag=-:-;; 68660 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 68661 esac 68662 ac_save_IFS=$IFS 68663 IFS=: 68664 set x $ac_tag 68665 IFS=$ac_save_IFS 68666 shift 68667 ac_file=$1 68668 shift 68669 68670 case $ac_mode in 68671 :L) ac_source=$1;; 68672 :[FH]) 68673 ac_file_inputs= 68674 for ac_f 68675 do 68676 case $ac_f in 68677 -) ac_f="$ac_tmp/stdin";; 68678 *) # Look for the file first in the build tree, then in the source tree 68679 # (if the path is not absolute). The absolute path cannot be DOS-style, 68680 # because $ac_f cannot contain `:'. 68681 test -f "$ac_f" || 68682 case $ac_f in 68683 [\\/$]*) false;; 68684 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 68685 esac || 68686 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 68687 esac 68688 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 68689 as_fn_append ac_file_inputs " '$ac_f'" 68690 done 68691 68692 # Let's still pretend it is `configure' which instantiates (i.e., don't 68693 # use $as_me), people would be surprised to read: 68694 # /* config.h. Generated by config.status. */ 68695 configure_input='Generated from '` 68696 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 68697 `' by configure.' 68698 if test x"$ac_file" != x-; then 68699 configure_input="$ac_file. $configure_input" 68700 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 68701 $as_echo "$as_me: creating $ac_file" >&6;} 68702 fi 68703 # Neutralize special characters interpreted by sed in replacement strings. 68704 case $configure_input in #( 68705 *\&* | *\|* | *\\* ) 68706 ac_sed_conf_input=`$as_echo "$configure_input" | 68707 sed 's/[\\\\&|]/\\\\&/g'`;; #( 68708 *) ac_sed_conf_input=$configure_input;; 68709 esac 68710 68711 case $ac_tag in 68712 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 68713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 68714 esac 68715 ;; 68716 esac 68717 68718 ac_dir=`$as_dirname -- "$ac_file" || 68719 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 68720 X"$ac_file" : 'X\(//\)[^/]' \| \ 68721 X"$ac_file" : 'X\(//\)$' \| \ 68722 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 68723 $as_echo X"$ac_file" | 68724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 68725 s//\1/ 68726 q 68727 } 68728 /^X\(\/\/\)[^/].*/{ 68729 s//\1/ 68730 q 68731 } 68732 /^X\(\/\/\)$/{ 68733 s//\1/ 68734 q 68735 } 68736 /^X\(\/\).*/{ 68737 s//\1/ 68738 q 68739 } 68740 s/.*/./; q'` 68741 as_dir="$ac_dir"; as_fn_mkdir_p 68742 ac_builddir=. 68743 68744 case "$ac_dir" in 68745 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 68746 *) 68747 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 68748 # A ".." for each directory in $ac_dir_suffix. 68749 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 68750 case $ac_top_builddir_sub in 68751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 68752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 68753 esac ;; 68754 esac 68755 ac_abs_top_builddir=$ac_pwd 68756 ac_abs_builddir=$ac_pwd$ac_dir_suffix 68757 # for backward compatibility: 68758 ac_top_builddir=$ac_top_build_prefix 68759 68760 case $srcdir in 68761 .) # We are building in place. 68762 ac_srcdir=. 68763 ac_top_srcdir=$ac_top_builddir_sub 68764 ac_abs_top_srcdir=$ac_pwd ;; 68765 [\\/]* | ?:[\\/]* ) # Absolute name. 68766 ac_srcdir=$srcdir$ac_dir_suffix; 68767 ac_top_srcdir=$srcdir 68768 ac_abs_top_srcdir=$srcdir ;; 68769 *) # Relative name. 68770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 68771 ac_top_srcdir=$ac_top_build_prefix$srcdir 68772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 68773 esac 68774 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 68775 68776 68777 case $ac_mode in 68778 :F) 68779 # 68780 # CONFIG_FILE 68781 # 68782 68783 _ACEOF 68784 68785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68786 # If the template does not know about datarootdir, expand it. 68787 # FIXME: This hack should be removed a few years after 2.60. 68788 ac_datarootdir_hack=; ac_datarootdir_seen= 68789 ac_sed_dataroot=' 68790 /datarootdir/ { 68791 p 68792 q 68793 } 68794 /@datadir@/p 68795 /@docdir@/p 68796 /@infodir@/p 68797 /@localedir@/p 68798 /@mandir@/p' 68799 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 68800 *datarootdir*) ac_datarootdir_seen=yes;; 68801 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 68802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 68803 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 68804 _ACEOF 68805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68806 ac_datarootdir_hack=' 68807 s&@datadir@&$datadir&g 68808 s&@docdir@&$docdir&g 68809 s&@infodir@&$infodir&g 68810 s&@localedir@&$localedir&g 68811 s&@mandir@&$mandir&g 68812 s&\\\${datarootdir}&$datarootdir&g' ;; 68813 esac 68814 _ACEOF 68815 68816 # Neutralize VPATH when `$srcdir' = `.'. 68817 # Shell code in configure.ac might set extrasub. 68818 # FIXME: do we really want to maintain this feature? 68819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 68820 ac_sed_extra="$ac_vpsub 68821 $extrasub 68822 _ACEOF 68823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 68824 :t 68825 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 68826 s|@configure_input@|$ac_sed_conf_input|;t t 68827 s&@top_builddir@&$ac_top_builddir_sub&;t t 68828 s&@top_build_prefix@&$ac_top_build_prefix&;t t 68829 s&@srcdir@&$ac_srcdir&;t t 68830 s&@abs_srcdir@&$ac_abs_srcdir&;t t 68831 s&@top_srcdir@&$ac_top_srcdir&;t t 68832 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 68833 s&@builddir@&$ac_builddir&;t t 68834 s&@abs_builddir@&$ac_abs_builddir&;t t 68835 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 68836 $ac_datarootdir_hack 68837 " 68838 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 68839 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 68840 68841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 68842 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 68843 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 68844 "$ac_tmp/out"`; test -z "$ac_out"; } && 68845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 68846 which seems to be undefined. Please make sure it is defined" >&5 68847 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 68848 which seems to be undefined. Please make sure it is defined" >&2;} 68849 68850 rm -f "$ac_tmp/stdin" 68851 case $ac_file in 68852 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 68853 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 68854 esac \ 68855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 68856 ;; 68857 68858 68859 68860 esac 68861 68862 done # for ac_tag 68863 68864 68865 as_fn_exit 0 68866 _ACEOF 68867 ac_clean_files=$ac_clean_files_save 68868 68869 test $ac_write_fail = 0 || 68870 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 68871 68872 68873 # configure is writing to config.log, and then calls config.status. 68874 # config.status does its own redirection, appending to config.log. 68875 # Unfortunately, on DOS this fails, as config.log is still kept open 68876 # by configure, so config.status won't be able to write to it; its 68877 # output is simply discarded. So we exec the FD to /dev/null, 68878 # effectively closing config.log, so it can be properly (re)opened and 68879 # appended to by config.status. When coming back to configure, we 68880 # need to make the FD available again. 68881 if test "$no_create" != yes; then 68882 ac_cs_success=: 68883 ac_config_status_args= 68884 test "$silent" = yes && 68885 ac_config_status_args="$ac_config_status_args --quiet" 68886 exec 5>/dev/null 68887 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 68888 exec 5>>config.log 68889 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 68890 # would make configure fail if this is the last instruction. 68891 $ac_cs_success || as_fn_exit 1 68892 fi 68893 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 68894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 68895 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 68896 fi 68897 68898 68899 # After AC_OUTPUT, we need to do final work 68900 68901 68902 # Try to move config.log (generated by autoconf) to the configure-support directory. 68903 if test -e ./config.log; then 68904 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 68905 fi 68906 68907 # Rotate our log file (configure.log) 68908 if test -e "$OUTPUT_ROOT/configure.log.old"; then 68909 $RM -f "$OUTPUT_ROOT/configure.log.old" 68910 fi 68911 if test -e "$OUTPUT_ROOT/configure.log"; then 68912 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 68913 fi 68914 68915 # Move configure.log from current directory to the build output root 68916 if test -e ./configure.log; then 68917 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 68918 fi 68919 68920 # Make the compare script executable 68921 $CHMOD +x $OUTPUT_ROOT/compare.sh 68922 68923 68924 # Finally output some useful information to the user 68925 68926 # Finally output some useful information to the user 68927 68928 printf "\n" 68929 printf "====================================================\n" 68930 if test "x$no_create" != "xyes"; then 68931 if test "x$IS_RECONFIGURE" != "xyes"; then 68932 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 68933 else 68934 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 68935 fi 68936 else 68937 if test "x$IS_RECONFIGURE" != "xyes"; then 68938 printf "A configuration has been successfully checked but not created\n" 68939 else 68940 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 68941 fi 68942 fi 68943 if test "x$CONFIGURE_COMMAND_LINE" != x; then 68944 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 68945 else 68946 printf "using default settings.\n" 68947 fi 68948 68949 printf "\n" 68950 printf "Configuration summary:\n" 68951 printf "* Debug level: $DEBUG_LEVEL\n" 68952 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 68953 printf "* JDK variant: $JDK_VARIANT\n" 68954 printf "* JVM variants: $JVM_VARIANTS\n" 68955 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 68956 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 68957 68958 printf "\n" 68959 printf "Tools summary:\n" 68960 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 68961 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 68962 fi 68963 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 68964 if test "x$TOOLCHAIN_VERSION" != "x"; then 68965 print_version=" $TOOLCHAIN_VERSION" 68966 fi 68967 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 68968 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 68969 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 68970 68971 printf "\n" 68972 printf "Build performance summary:\n" 68973 printf "* Cores to use: $JOBS\n" 68974 printf "* Memory limit: $MEMORY_SIZE MB\n" 68975 if test "x$CCACHE_STATUS" != "x"; then 68976 printf "* ccache status: $CCACHE_STATUS\n" 68977 fi 68978 printf "\n" 68979 68980 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 68981 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 68982 printf "will result in longer build times.\n" 68983 printf "\n" 68984 fi 68985 68986 if test "x$FOUND_ALT_VARIABLES" != "x"; then 68987 printf "WARNING: You have old-style ALT_ environment variables set.\n" 68988 printf "These are not respected, and will be ignored. It is recommended\n" 68989 printf "that you clean your environment. The following variables are set:\n" 68990 printf "$FOUND_ALT_VARIABLES\n" 68991 printf "\n" 68992 fi 68993 68994 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 68995 printf "WARNING: Your build output directory is not on a local disk.\n" 68996 printf "This will severely degrade build performance!\n" 68997 printf "It is recommended that you create an output directory on a local disk,\n" 68998 printf "and run the configure script again from that directory.\n" 68999 printf "\n" 69000 fi 69001 69002 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 69003 printf "WARNING: The result of this configuration has overridden an older\n" 69004 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 69005 printf "proper build. Failure to do so might result in strange build problems.\n" 69006 printf "\n" 69007 fi 69008 69009 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 69010 printf "WARNING: The result of this configuration was not saved.\n" 69011 printf "You should run without '--no-create | -n' to create the configuration.\n" 69012 printf "\n" 69013 fi 69014 69015 69016 69017 # Locate config.log. 69018 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 69019 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 69020 elif test -e "./config.log"; then 69021 CONFIG_LOG_PATH="." 69022 fi 69023 69024 if test -e "$CONFIG_LOG_PATH/config.log"; then 69025 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 69026 if test $? -eq 0; then 69027 printf "The following warnings were produced. Repeated here for convenience:\n" 69028 # We must quote sed expression (using []) to stop m4 from eating the []. 69029 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 69030 printf "\n" 69031 fi 69032 fi 69033