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 NEEDS_LIB_JELFSHIM 658 ELF_LIBS 659 ELF_CFLAGS 660 STLPORT_LIB 661 LIBZIP_CAN_USE_MMAP 662 LIBDL 663 LIBM 664 USE_EXTERNAL_LCMS 665 LCMS_LIBS 666 LCMS_CFLAGS 667 USE_EXTERNAL_LIBZ 668 USE_EXTERNAL_LIBPNG 669 PNG_LIBS 670 PNG_CFLAGS 671 USE_EXTERNAL_LIBGIF 672 USE_EXTERNAL_LIBJPEG 673 LLVM_LIBS 674 LLVM_LDFLAGS 675 LLVM_CFLAGS 676 LLVM_CONFIG 677 LIBFFI_LIBS 678 LIBFFI_CFLAGS 679 ALSA_LIBS 680 ALSA_CFLAGS 681 FREETYPE_BUNDLE_LIB_PATH 682 FREETYPE_LIBS 683 FREETYPE_CFLAGS 684 CUPS_CFLAGS 685 X_EXTRA_LIBS 686 X_LIBS 687 X_PRE_LIBS 688 X_CFLAGS 689 XMKMF 690 MSVCP_DLL 691 MSVCR_DLL 692 LIBCXX 693 FIXPATH_DETACH_FLAG 694 FIXPATH 695 BUILD_GTEST 696 VALID_JVM_FEATURES 697 JVM_FEATURES_custom 698 JVM_FEATURES_zeroshark 699 JVM_FEATURES_zero 700 JVM_FEATURES_minimal 701 JVM_FEATURES_core 702 JVM_FEATURES_client 703 JVM_FEATURES_server 704 ENABLE_AOT 705 INCLUDE_DTRACE 706 GCOV_ENABLED 707 STRIP_POLICY 708 DEBUG_BINARIES 709 ZIP_EXTERNAL_DEBUG_SYMBOLS 710 COPY_DEBUG_SYMBOLS 711 COMPILE_WITH_DEBUG_SYMBOLS 712 CFLAGS_WARNINGS_ARE_ERRORS 713 BUILD_CC_DISABLE_WARNING_PREFIX 714 DISABLE_WARNING_PREFIX 715 HOTSPOT_SET_WARNINGS_AS_ERRORS 716 WARNINGS_AS_ERRORS 717 COMPILER_SUPPORTS_TARGET_BITS_FLAG 718 ZERO_ARCHFLAG 719 LDFLAGS_TESTEXE 720 LDFLAGS_TESTLIB 721 CXXFLAGS_TESTEXE 722 CXXFLAGS_TESTLIB 723 CFLAGS_TESTEXE 724 CFLAGS_TESTLIB 725 OPENJDK_BUILD_JVM_LIBS 726 OPENJDK_BUILD_JVM_ASFLAGS 727 OPENJDK_BUILD_JVM_LDFLAGS 728 OPENJDK_BUILD_JVM_CFLAGS 729 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 730 OPENJDK_BUILD_LDFLAGS_CXX_JDK 731 OPENJDK_BUILD_JDKEXE_LIBS 732 OPENJDK_BUILD_JDKLIB_LIBS 733 OPENJDK_BUILD_LDFLAGS_JDKEXE 734 OPENJDK_BUILD_LDFLAGS_JDKLIB 735 OPENJDK_BUILD_CXXFLAGS_JDKEXE 736 OPENJDK_BUILD_CXXFLAGS_JDKLIB 737 OPENJDK_BUILD_CFLAGS_JDKEXE 738 OPENJDK_BUILD_CFLAGS_JDKLIB 739 OPENJDK_BUILD_CXXSTD_CXXFLAG 740 JVM_LIBS 741 JVM_ASFLAGS 742 JVM_LDFLAGS 743 JVM_CFLAGS 744 LDFLAGS_HASH_STYLE 745 LDFLAGS_CXX_JDK 746 JDKEXE_LIBS 747 JDKLIB_LIBS 748 LDFLAGS_JDKEXE 749 LDFLAGS_JDKLIB 750 CXXFLAGS_JDKEXE 751 CXXFLAGS_JDKLIB 752 CFLAGS_JDKEXE 753 CFLAGS_JDKLIB 754 MACOSX_VERSION_MIN 755 CXXSTD_CXXFLAG 756 CXX_O_FLAG_SIZE 757 CXX_O_FLAG_NONE 758 CXX_O_FLAG_DEBUG 759 CXX_O_FLAG_NORM 760 CXX_O_FLAG_HI 761 CXX_O_FLAG_HIGHEST 762 CXX_O_FLAG_HIGHEST_JVM 763 C_O_FLAG_SIZE 764 C_O_FLAG_NONE 765 C_O_FLAG_DEBUG 766 C_O_FLAG_NORM 767 C_O_FLAG_HI 768 C_O_FLAG_HIGHEST 769 C_O_FLAG_HIGHEST_JVM 770 JVM_CFLAGS_SYMBOLS 771 CXXFLAGS_DEBUG_SYMBOLS 772 CFLAGS_DEBUG_SYMBOLS 773 CXX_FLAG_DEPS 774 C_FLAG_DEPS 775 SHARED_LIBRARY_FLAGS 776 SET_SHARED_LIBRARY_MAPFILE 777 SET_SHARED_LIBRARY_NAME 778 SET_SHARED_LIBRARY_ORIGIN 779 SET_EXECUTABLE_ORIGIN 780 CXX_FLAG_REORDER 781 C_FLAG_REORDER 782 JVM_RCFLAGS 783 RC_FLAGS 784 AR_OUT_OPTION 785 LD_OUT_OPTION 786 EXE_OUT_OPTION 787 CC_OUT_OPTION 788 STRIPFLAGS 789 ARFLAGS 790 COMPILER_BINDCMD_FILE_FLAG 791 COMPILER_COMMAND_FILE_FLAG 792 COMPILER_TARGET_BITS_FLAG 793 JT_HOME 794 JTREGEXE 795 HOTSPOT_TOOLCHAIN_TYPE 796 USING_BROKEN_SUSE_LD 797 PACKAGE_PATH 798 USE_CLANG 799 HOTSPOT_LD 800 HOTSPOT_CXX 801 HOTSPOT_RC 802 HOTSPOT_MT 803 BUILD_AS 804 BUILD_LDCXX 805 BUILD_LD 806 BUILD_STRIP 807 BUILD_OBJCOPY 808 BUILD_AR 809 BUILD_NM 810 BUILD_CXX 811 BUILD_CC 812 BUILD_SYSROOT_LDFLAGS 813 BUILD_SYSROOT_CFLAGS 814 ac_ct_OBJDUMP 815 OBJDUMP 816 ac_ct_OBJCOPY 817 OBJCOPY 818 ac_ct_NM 819 ac_ct_STRIP 820 GNM 821 NM 822 STRIP 823 MSBUILD 824 DUMPBIN 825 RC 826 MT 827 LIPO 828 ac_ct_AR 829 AR 830 AS 831 LDCXX 832 LD 833 CXXCPP 834 CPP 835 CXX_VERSION_NUMBER 836 CC_VERSION_NUMBER 837 ac_ct_CXX 838 CXXFLAGS 839 CXX 840 TOOLCHAIN_PATH_CXX 841 POTENTIAL_CXX 842 OBJEXT 843 EXEEXT 844 ac_ct_CC 845 CPPFLAGS 846 LDFLAGS 847 CFLAGS 848 CC 849 TOOLCHAIN_PATH_CC 850 POTENTIAL_CC 851 TOOLCHAIN_VERSION 852 VS_LIB 853 VS_INCLUDE 854 VS_PATH 855 CYGWIN_LINK 856 SYSROOT_LDFLAGS 857 SYSROOT_CFLAGS 858 EXTRA_LDFLAGS 859 EXTRA_CXXFLAGS 860 EXTRA_CFLAGS 861 LEGACY_EXTRA_LDFLAGS 862 LEGACY_EXTRA_CXXFLAGS 863 LEGACY_EXTRA_CFLAGS 864 EXE_SUFFIX 865 OBJ_SUFFIX 866 STATIC_LIBRARY 867 SHARED_LIBRARY 868 STATIC_LIBRARY_SUFFIX 869 SHARED_LIBRARY_SUFFIX 870 LIBRARY_PREFIX 871 TOOLCHAIN_TYPE 872 STATIC_BUILD 873 IMPORT_MODULES_MAKE 874 IMPORT_MODULES_SRC 875 IMPORT_MODULES_CONF 876 IMPORT_MODULES_LIBS 877 IMPORT_MODULES_CMDS 878 IMPORT_MODULES_CLASSES 879 BUILD_HOTSPOT 880 HOTSPOT_DIST 881 BUILD_OUTPUT 882 JDK_TOPDIR 883 NASHORN_TOPDIR 884 HOTSPOT_TOPDIR 885 JAXWS_TOPDIR 886 JAXP_TOPDIR 887 CORBA_TOPDIR 888 LANGTOOLS_TOPDIR 889 EXTERNAL_BUILDJDK 890 BUILD_JDK 891 CREATE_BUILDJDK 892 JLINK 893 JMOD 894 BOOT_JDK_BITS 895 JAVAC_FLAGS 896 BOOT_JDK_MODULAR 897 BOOT_JDK_SOURCETARGET 898 JARSIGNER 899 JAR 900 JAVAH 901 JAVAC 902 JAVA 903 BOOT_JDK 904 JAVA_CHECK 905 JAVAC_CHECK 906 VERSION_IS_GA 907 VERSION_SHORT 908 VERSION_STRING 909 VERSION_NUMBER_FOUR_POSITIONS 910 VERSION_NUMBER 911 VERSION_OPT 912 VERSION_BUILD 913 VERSION_PRE 914 VERSION_PATCH 915 VERSION_SECURITY 916 VERSION_MINOR 917 VERSION_MAJOR 918 MACOSX_BUNDLE_ID_BASE 919 MACOSX_BUNDLE_NAME_BASE 920 HOTSPOT_VM_DISTRO 921 COMPANY_NAME 922 JDK_RC_PLATFORM_NAME 923 PRODUCT_SUFFIX 924 PRODUCT_NAME 925 LAUNCHER_NAME 926 JLINK_KEEP_PACKAGED_MODULES 927 COPYRIGHT_YEAR 928 COMPRESS_JARS 929 INCLUDE_SA 930 UNLIMITED_CRYPTO 931 CACERTS_FILE 932 ENABLE_HEADLESS_ONLY 933 DEFAULT_MAKE_TARGET 934 OS_VERSION_MICRO 935 OS_VERSION_MINOR 936 OS_VERSION_MAJOR 937 PKG_CONFIG 938 BASH_ARGS 939 SETFILE 940 CODESIGN 941 XATTR 942 DSYMUTIL 943 IS_GNU_TIME 944 PATCH 945 DTRACE 946 TIME 947 STAT 948 HG 949 READELF 950 OTOOL 951 LDD 952 ZIP 953 UNZIP 954 TAR_SUPPORTS_TRANSFORM 955 TAR_INCLUDE_PARAM 956 TAR_CREATE_EXTRA_PARAM 957 TAR_TYPE 958 FIND_DELETE 959 OUTPUT_SYNC 960 OUTPUT_SYNC_SUPPORTED 961 CHECK_TOOLSDIR_MAKE 962 CHECK_TOOLSDIR_GMAKE 963 CHECK_MAKE 964 CHECK_GMAKE 965 MAKE 966 PKGHANDLER 967 CONFIGURESUPPORT_OUTPUTDIR 968 OUTPUT_ROOT 969 CONF_NAME 970 SPEC 971 SDKROOT 972 XCODEBUILD 973 VALID_JVM_VARIANTS 974 JVM_VARIANTS 975 DEBUG_LEVEL 976 HOTSPOT_DEBUG_LEVEL 977 JDK_VARIANT 978 USERNAME 979 CANONICAL_TOPDIR 980 ORIGINAL_TOPDIR 981 TOPDIR 982 PATH_SEP 983 ZERO_ARCHDEF 984 HOTSPOT_BUILD_CPU_DEFINE 985 HOTSPOT_BUILD_CPU_ARCH 986 HOTSPOT_BUILD_CPU 987 HOTSPOT_BUILD_OS_TYPE 988 HOTSPOT_BUILD_OS 989 OPENJDK_BUILD_BUNDLE_PLATFORM 990 OPENJDK_BUILD_CPU_BUNDLE 991 OPENJDK_BUILD_OS_BUNDLE 992 OPENJDK_BUILD_OS_EXPORT_DIR 993 OPENJDK_BUILD_CPU_JLI_CFLAGS 994 OPENJDK_BUILD_CPU_OSARCH 995 OPENJDK_BUILD_CPU_ISADIR 996 OPENJDK_BUILD_CPU_LIBDIR 997 OPENJDK_BUILD_CPU_LEGACY_LIB 998 OPENJDK_BUILD_CPU_LEGACY 999 HOTSPOT_TARGET_CPU_DEFINE 1000 HOTSPOT_TARGET_CPU_ARCH 1001 HOTSPOT_TARGET_CPU 1002 HOTSPOT_TARGET_OS_TYPE 1003 HOTSPOT_TARGET_OS 1004 DEFINE_CROSS_COMPILE_ARCH 1005 LP64 1006 OPENJDK_TARGET_BUNDLE_PLATFORM 1007 OPENJDK_TARGET_CPU_BUNDLE 1008 OPENJDK_TARGET_OS_BUNDLE 1009 OPENJDK_TARGET_OS_EXPORT_DIR 1010 OPENJDK_TARGET_CPU_JLI_CFLAGS 1011 OPENJDK_TARGET_CPU_OSARCH 1012 OPENJDK_TARGET_CPU_ISADIR 1013 OPENJDK_TARGET_CPU_LIBDIR 1014 OPENJDK_TARGET_CPU_LEGACY_LIB 1015 OPENJDK_TARGET_CPU_LEGACY 1016 REQUIRED_OS_VERSION 1017 REQUIRED_OS_NAME 1018 COMPILE_TYPE 1019 OPENJDK_TARGET_CPU_ENDIAN 1020 OPENJDK_TARGET_CPU_BITS 1021 OPENJDK_TARGET_CPU_ARCH 1022 OPENJDK_TARGET_CPU 1023 OPENJDK_TARGET_OS_ENV 1024 OPENJDK_TARGET_OS_TYPE 1025 OPENJDK_TARGET_OS 1026 OPENJDK_BUILD_CPU_ENDIAN 1027 OPENJDK_BUILD_CPU_BITS 1028 OPENJDK_BUILD_CPU_ARCH 1029 OPENJDK_BUILD_CPU 1030 OPENJDK_BUILD_OS_ENV 1031 OPENJDK_BUILD_OS_TYPE 1032 OPENJDK_BUILD_OS 1033 OPENJDK_BUILD_AUTOCONF_NAME 1034 OPENJDK_TARGET_AUTOCONF_NAME 1035 target_os 1036 target_vendor 1037 target_cpu 1038 target 1039 host_os 1040 host_vendor 1041 host_cpu 1042 host 1043 build_os 1044 build_vendor 1045 build_cpu 1046 build 1047 NICE 1048 CPIO 1049 DF 1050 READLINK 1051 CYGPATH 1052 SED 1053 FGREP 1054 EGREP 1055 GREP 1056 AWK 1057 XARGS 1058 WHICH 1059 WC 1060 UNIQ 1061 UNAME 1062 TR 1063 TOUCH 1064 TEE 1065 TAR 1066 TAIL 1067 SORT 1068 SH 1069 RMDIR 1070 RM 1071 PRINTF 1072 NAWK 1073 MV 1074 MKTEMP 1075 MKDIR 1076 LS 1077 LN 1078 GZIP 1079 GUNZIP 1080 HEAD 1081 FIND 1082 FILE 1083 EXPR 1084 ECHO 1085 DIRNAME 1086 DIFF 1087 DATE 1088 CUT 1089 CP 1090 COMM 1091 CMP 1092 CHMOD 1093 CAT 1094 BASH 1095 BASENAME 1096 DATE_WHEN_CONFIGURED 1097 ORIGINAL_PATH 1098 CONFIGURE_COMMAND_LINE 1099 target_alias 1100 host_alias 1101 build_alias 1102 LIBS 1103 ECHO_T 1104 ECHO_N 1105 ECHO_C 1106 DEFS 1107 mandir 1108 localedir 1109 libdir 1110 psdir 1111 pdfdir 1112 dvidir 1113 htmldir 1114 infodir 1115 docdir 1116 oldincludedir 1117 includedir 1118 localstatedir 1119 sharedstatedir 1120 sysconfdir 1121 datadir 1122 datarootdir 1123 libexecdir 1124 sbindir 1125 bindir 1126 program_transform_name 1127 prefix 1128 exec_prefix 1129 PACKAGE_URL 1130 PACKAGE_BUGREPORT 1131 PACKAGE_STRING 1132 PACKAGE_VERSION 1133 PACKAGE_TARNAME 1134 PACKAGE_NAME 1135 PATH_SEPARATOR 1136 SHELL' 1137 ac_subst_files='' 1138 ac_user_opts=' 1139 enable_option_checking 1140 with_target_bits 1141 enable_openjdk_only 1142 with_custom_make_dir 1143 with_jdk_variant 1144 enable_debug 1145 with_debug_level 1146 with_jvm_variants 1147 with_devkit 1148 with_sys_root 1149 with_sysroot 1150 with_tools_dir 1151 with_toolchain_path 1152 with_extra_path 1153 with_sdk_name 1154 with_conf_name 1155 with_output_sync 1156 with_default_make_target 1157 enable_headless_only 1158 with_cacerts_file 1159 enable_unlimited_crypto 1160 with_copyright_year 1161 enable_keep_packaged_modules 1162 with_milestone 1163 with_update_version 1164 with_user_release_suffix 1165 with_build_number 1166 with_version_string 1167 with_version_pre 1168 with_version_opt 1169 with_version_build 1170 with_version_major 1171 with_version_minor 1172 with_version_security 1173 with_version_patch 1174 with_boot_jdk 1175 with_build_jdk 1176 with_add_source_root 1177 with_override_source_root 1178 with_adds_and_overrides 1179 with_override_langtools 1180 with_override_corba 1181 with_override_jaxp 1182 with_override_jaxws 1183 with_override_hotspot 1184 with_override_nashorn 1185 with_override_jdk 1186 with_import_hotspot 1187 with_import_modules 1188 enable_static_build 1189 with_toolchain_type 1190 with_extra_cflags 1191 with_extra_cxxflags 1192 with_extra_ldflags 1193 with_toolchain_version 1194 with_build_devkit 1195 with_jtreg 1196 enable_warnings_as_errors 1197 with_native_debug_symbols 1198 enable_debug_symbols 1199 enable_zip_debug_info 1200 enable_native_coverage 1201 enable_dtrace 1202 enable_aot 1203 with_jvm_features 1204 with_jvm_interpreter 1205 enable_hotspot_gtest 1206 with_stdc__lib 1207 with_msvcr_dll 1208 with_msvcp_dll 1209 with_x 1210 with_cups 1211 with_cups_include 1212 with_freetype 1213 with_freetype_include 1214 with_freetype_lib 1215 with_freetype_src 1216 enable_freetype_bundling 1217 with_alsa 1218 with_alsa_include 1219 with_alsa_lib 1220 with_libffi 1221 with_libffi_include 1222 with_libffi_lib 1223 with_libjpeg 1224 with_giflib 1225 with_libpng 1226 with_zlib 1227 with_lcms 1228 with_dxsdk 1229 with_dxsdk_lib 1230 with_dxsdk_include 1231 with_libelf 1232 with_libelf_include 1233 with_libelf_lib 1234 enable_jtreg_failure_handler 1235 enable_generate_classlist 1236 with_num_cores 1237 with_memory_size 1238 with_jobs 1239 with_test_jobs 1240 with_boot_jdk_jvmargs 1241 with_sjavac_server_java 1242 enable_sjavac 1243 enable_javac_server 1244 enable_icecc 1245 enable_precompiled_headers 1246 enable_ccache 1247 with_ccache_dir 1248 ' 1249 ac_precious_vars='build_alias 1250 host_alias 1251 target_alias 1252 BASENAME 1253 BASH 1254 CAT 1255 CHMOD 1256 CMP 1257 COMM 1258 CP 1259 CUT 1260 DATE 1261 DIFF 1262 DIRNAME 1263 ECHO 1264 EXPR 1265 FILE 1266 FIND 1267 HEAD 1268 GUNZIP 1269 GZIP 1270 LN 1271 LS 1272 MKDIR 1273 MKTEMP 1274 MV 1275 NAWK 1276 PRINTF 1277 RM 1278 RMDIR 1279 SH 1280 SORT 1281 TAIL 1282 TAR 1283 TEE 1284 TOUCH 1285 TR 1286 UNAME 1287 UNIQ 1288 WC 1289 WHICH 1290 XARGS 1291 AWK 1292 GREP 1293 EGREP 1294 FGREP 1295 SED 1296 CYGPATH 1297 READLINK 1298 DF 1299 CPIO 1300 NICE 1301 MAKE 1302 UNZIP 1303 ZIP 1304 LDD 1305 OTOOL 1306 READELF 1307 HG 1308 STAT 1309 TIME 1310 DTRACE 1311 PATCH 1312 DSYMUTIL 1313 XATTR 1314 CODESIGN 1315 SETFILE 1316 PKG_CONFIG 1317 JAVA 1318 JAVAC 1319 JAVAH 1320 JAR 1321 JARSIGNER 1322 CC 1323 CFLAGS 1324 LDFLAGS 1325 LIBS 1326 CPPFLAGS 1327 CXX 1328 CXXFLAGS 1329 CCC 1330 CPP 1331 CXXCPP 1332 AS 1333 AR 1334 LIPO 1335 STRIP 1336 NM 1337 GNM 1338 OBJCOPY 1339 OBJDUMP 1340 BUILD_CC 1341 BUILD_CXX 1342 BUILD_NM 1343 BUILD_AR 1344 BUILD_OBJCOPY 1345 BUILD_STRIP 1346 JTREGEXE 1347 XMKMF 1348 FREETYPE_CFLAGS 1349 FREETYPE_LIBS 1350 ALSA_CFLAGS 1351 ALSA_LIBS 1352 LIBFFI_CFLAGS 1353 LIBFFI_LIBS 1354 PNG_CFLAGS 1355 PNG_LIBS 1356 LCMS_CFLAGS 1357 LCMS_LIBS 1358 ELF_CFLAGS 1359 ELF_LIBS 1360 ICECC_CMD 1361 ICECC_CREATE_ENV 1362 ICECC_WRAPPER 1363 CCACHE' 1364 1365 1366 # Initialize some variables set by options. 1367 ac_init_help= 1368 ac_init_version=false 1369 ac_unrecognized_opts= 1370 ac_unrecognized_sep= 1371 # The variables have the same names as the options, with 1372 # dashes changed to underlines. 1373 cache_file=/dev/null 1374 exec_prefix=NONE 1375 no_create= 1376 no_recursion= 1377 prefix=NONE 1378 program_prefix=NONE 1379 program_suffix=NONE 1380 program_transform_name=s,x,x, 1381 silent= 1382 site= 1383 srcdir= 1384 verbose= 1385 x_includes=NONE 1386 x_libraries=NONE 1387 1388 # Installation directory options. 1389 # These are left unexpanded so users can "make install exec_prefix=/foo" 1390 # and all the variables that are supposed to be based on exec_prefix 1391 # by default will actually change. 1392 # Use braces instead of parens because sh, perl, etc. also accept them. 1393 # (The list follows the same order as the GNU Coding Standards.) 1394 bindir='${exec_prefix}/bin' 1395 sbindir='${exec_prefix}/sbin' 1396 libexecdir='${exec_prefix}/libexec' 1397 datarootdir='${prefix}/share' 1398 datadir='${datarootdir}' 1399 sysconfdir='${prefix}/etc' 1400 sharedstatedir='${prefix}/com' 1401 localstatedir='${prefix}/var' 1402 includedir='${prefix}/include' 1403 oldincludedir='/usr/include' 1404 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1405 infodir='${datarootdir}/info' 1406 htmldir='${docdir}' 1407 dvidir='${docdir}' 1408 pdfdir='${docdir}' 1409 psdir='${docdir}' 1410 libdir='${exec_prefix}/lib' 1411 localedir='${datarootdir}/locale' 1412 mandir='${datarootdir}/man' 1413 1414 ac_prev= 1415 ac_dashdash= 1416 for ac_option 1417 do 1418 # If the previous option needs an argument, assign it. 1419 if test -n "$ac_prev"; then 1420 eval $ac_prev=\$ac_option 1421 ac_prev= 1422 continue 1423 fi 1424 1425 case $ac_option in 1426 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1427 *=) ac_optarg= ;; 1428 *) ac_optarg=yes ;; 1429 esac 1430 1431 # Accept the important Cygnus configure options, so we can diagnose typos. 1432 1433 case $ac_dashdash$ac_option in 1434 --) 1435 ac_dashdash=yes ;; 1436 1437 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1438 ac_prev=bindir ;; 1439 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1440 bindir=$ac_optarg ;; 1441 1442 -build | --build | --buil | --bui | --bu) 1443 ac_prev=build_alias ;; 1444 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1445 build_alias=$ac_optarg ;; 1446 1447 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1448 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1449 ac_prev=cache_file ;; 1450 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1451 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1452 cache_file=$ac_optarg ;; 1453 1454 --config-cache | -C) 1455 cache_file=config.cache ;; 1456 1457 -datadir | --datadir | --datadi | --datad) 1458 ac_prev=datadir ;; 1459 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1460 datadir=$ac_optarg ;; 1461 1462 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1463 | --dataroo | --dataro | --datar) 1464 ac_prev=datarootdir ;; 1465 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1466 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1467 datarootdir=$ac_optarg ;; 1468 1469 -disable-* | --disable-*) 1470 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1471 # Reject names that are not valid shell variable names. 1472 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1473 as_fn_error $? "invalid feature name: $ac_useropt" 1474 ac_useropt_orig=$ac_useropt 1475 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1476 case $ac_user_opts in 1477 *" 1478 "enable_$ac_useropt" 1479 "*) ;; 1480 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1481 ac_unrecognized_sep=', ';; 1482 esac 1483 eval enable_$ac_useropt=no ;; 1484 1485 -docdir | --docdir | --docdi | --doc | --do) 1486 ac_prev=docdir ;; 1487 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1488 docdir=$ac_optarg ;; 1489 1490 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1491 ac_prev=dvidir ;; 1492 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1493 dvidir=$ac_optarg ;; 1494 1495 -enable-* | --enable-*) 1496 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1497 # Reject names that are not valid shell variable names. 1498 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1499 as_fn_error $? "invalid feature name: $ac_useropt" 1500 ac_useropt_orig=$ac_useropt 1501 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1502 case $ac_user_opts in 1503 *" 1504 "enable_$ac_useropt" 1505 "*) ;; 1506 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1507 ac_unrecognized_sep=', ';; 1508 esac 1509 eval enable_$ac_useropt=\$ac_optarg ;; 1510 1511 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1512 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1513 | --exec | --exe | --ex) 1514 ac_prev=exec_prefix ;; 1515 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1516 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1517 | --exec=* | --exe=* | --ex=*) 1518 exec_prefix=$ac_optarg ;; 1519 1520 -gas | --gas | --ga | --g) 1521 # Obsolete; use --with-gas. 1522 with_gas=yes ;; 1523 1524 -help | --help | --hel | --he | -h) 1525 ac_init_help=long ;; 1526 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1527 ac_init_help=recursive ;; 1528 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1529 ac_init_help=short ;; 1530 1531 -host | --host | --hos | --ho) 1532 ac_prev=host_alias ;; 1533 -host=* | --host=* | --hos=* | --ho=*) 1534 host_alias=$ac_optarg ;; 1535 1536 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1537 ac_prev=htmldir ;; 1538 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1539 | --ht=*) 1540 htmldir=$ac_optarg ;; 1541 1542 -includedir | --includedir | --includedi | --included | --include \ 1543 | --includ | --inclu | --incl | --inc) 1544 ac_prev=includedir ;; 1545 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1546 | --includ=* | --inclu=* | --incl=* | --inc=*) 1547 includedir=$ac_optarg ;; 1548 1549 -infodir | --infodir | --infodi | --infod | --info | --inf) 1550 ac_prev=infodir ;; 1551 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1552 infodir=$ac_optarg ;; 1553 1554 -libdir | --libdir | --libdi | --libd) 1555 ac_prev=libdir ;; 1556 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1557 libdir=$ac_optarg ;; 1558 1559 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1560 | --libexe | --libex | --libe) 1561 ac_prev=libexecdir ;; 1562 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1563 | --libexe=* | --libex=* | --libe=*) 1564 libexecdir=$ac_optarg ;; 1565 1566 -localedir | --localedir | --localedi | --localed | --locale) 1567 ac_prev=localedir ;; 1568 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1569 localedir=$ac_optarg ;; 1570 1571 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1572 | --localstate | --localstat | --localsta | --localst | --locals) 1573 ac_prev=localstatedir ;; 1574 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1575 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1576 localstatedir=$ac_optarg ;; 1577 1578 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1579 ac_prev=mandir ;; 1580 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1581 mandir=$ac_optarg ;; 1582 1583 -nfp | --nfp | --nf) 1584 # Obsolete; use --without-fp. 1585 with_fp=no ;; 1586 1587 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1588 | --no-cr | --no-c | -n) 1589 no_create=yes ;; 1590 1591 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1592 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1593 no_recursion=yes ;; 1594 1595 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1596 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1597 | --oldin | --oldi | --old | --ol | --o) 1598 ac_prev=oldincludedir ;; 1599 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1600 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1601 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1602 oldincludedir=$ac_optarg ;; 1603 1604 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1605 ac_prev=prefix ;; 1606 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1607 prefix=$ac_optarg ;; 1608 1609 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1610 | --program-pre | --program-pr | --program-p) 1611 ac_prev=program_prefix ;; 1612 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1613 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1614 program_prefix=$ac_optarg ;; 1615 1616 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1617 | --program-suf | --program-su | --program-s) 1618 ac_prev=program_suffix ;; 1619 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1620 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1621 program_suffix=$ac_optarg ;; 1622 1623 -program-transform-name | --program-transform-name \ 1624 | --program-transform-nam | --program-transform-na \ 1625 | --program-transform-n | --program-transform- \ 1626 | --program-transform | --program-transfor \ 1627 | --program-transfo | --program-transf \ 1628 | --program-trans | --program-tran \ 1629 | --progr-tra | --program-tr | --program-t) 1630 ac_prev=program_transform_name ;; 1631 -program-transform-name=* | --program-transform-name=* \ 1632 | --program-transform-nam=* | --program-transform-na=* \ 1633 | --program-transform-n=* | --program-transform-=* \ 1634 | --program-transform=* | --program-transfor=* \ 1635 | --program-transfo=* | --program-transf=* \ 1636 | --program-trans=* | --program-tran=* \ 1637 | --progr-tra=* | --program-tr=* | --program-t=*) 1638 program_transform_name=$ac_optarg ;; 1639 1640 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1641 ac_prev=pdfdir ;; 1642 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1643 pdfdir=$ac_optarg ;; 1644 1645 -psdir | --psdir | --psdi | --psd | --ps) 1646 ac_prev=psdir ;; 1647 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1648 psdir=$ac_optarg ;; 1649 1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1651 | -silent | --silent | --silen | --sile | --sil) 1652 silent=yes ;; 1653 1654 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1655 ac_prev=sbindir ;; 1656 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1657 | --sbi=* | --sb=*) 1658 sbindir=$ac_optarg ;; 1659 1660 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1661 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1662 | --sharedst | --shareds | --shared | --share | --shar \ 1663 | --sha | --sh) 1664 ac_prev=sharedstatedir ;; 1665 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1666 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1667 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1668 | --sha=* | --sh=*) 1669 sharedstatedir=$ac_optarg ;; 1670 1671 -site | --site | --sit) 1672 ac_prev=site ;; 1673 -site=* | --site=* | --sit=*) 1674 site=$ac_optarg ;; 1675 1676 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1677 ac_prev=srcdir ;; 1678 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1679 srcdir=$ac_optarg ;; 1680 1681 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1682 | --syscon | --sysco | --sysc | --sys | --sy) 1683 ac_prev=sysconfdir ;; 1684 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1685 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1686 sysconfdir=$ac_optarg ;; 1687 1688 -target | --target | --targe | --targ | --tar | --ta | --t) 1689 ac_prev=target_alias ;; 1690 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1691 target_alias=$ac_optarg ;; 1692 1693 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1694 verbose=yes ;; 1695 1696 -version | --version | --versio | --versi | --vers | -V) 1697 ac_init_version=: ;; 1698 1699 -with-* | --with-*) 1700 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1701 # Reject names that are not valid shell variable names. 1702 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1703 as_fn_error $? "invalid package name: $ac_useropt" 1704 ac_useropt_orig=$ac_useropt 1705 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1706 case $ac_user_opts in 1707 *" 1708 "with_$ac_useropt" 1709 "*) ;; 1710 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1711 ac_unrecognized_sep=', ';; 1712 esac 1713 eval with_$ac_useropt=\$ac_optarg ;; 1714 1715 -without-* | --without-*) 1716 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1717 # Reject names that are not valid shell variable names. 1718 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1719 as_fn_error $? "invalid package name: $ac_useropt" 1720 ac_useropt_orig=$ac_useropt 1721 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1722 case $ac_user_opts in 1723 *" 1724 "with_$ac_useropt" 1725 "*) ;; 1726 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1727 ac_unrecognized_sep=', ';; 1728 esac 1729 eval with_$ac_useropt=no ;; 1730 1731 --x) 1732 # Obsolete; use --with-x. 1733 with_x=yes ;; 1734 1735 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1736 | --x-incl | --x-inc | --x-in | --x-i) 1737 ac_prev=x_includes ;; 1738 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1739 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1740 x_includes=$ac_optarg ;; 1741 1742 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1743 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1744 ac_prev=x_libraries ;; 1745 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1746 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1747 x_libraries=$ac_optarg ;; 1748 1749 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1750 Try \`$0 --help' for more information" 1751 ;; 1752 1753 *=*) 1754 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1755 # Reject names that are not valid shell variable names. 1756 case $ac_envvar in #( 1757 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1758 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1759 esac 1760 eval $ac_envvar=\$ac_optarg 1761 export $ac_envvar ;; 1762 1763 *) 1764 # FIXME: should be removed in autoconf 3.0. 1765 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1766 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1767 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1768 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1769 ;; 1770 1771 esac 1772 done 1773 1774 if test -n "$ac_prev"; then 1775 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1776 as_fn_error $? "missing argument to $ac_option" 1777 fi 1778 1779 if test -n "$ac_unrecognized_opts"; then 1780 case $enable_option_checking in 1781 no) ;; 1782 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1783 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1784 esac 1785 fi 1786 1787 # Check all directory arguments for consistency. 1788 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1789 datadir sysconfdir sharedstatedir localstatedir includedir \ 1790 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1791 libdir localedir mandir 1792 do 1793 eval ac_val=\$$ac_var 1794 # Remove trailing slashes. 1795 case $ac_val in 1796 */ ) 1797 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1798 eval $ac_var=\$ac_val;; 1799 esac 1800 # Be sure to have absolute directory names. 1801 case $ac_val in 1802 [\\/$]* | ?:[\\/]* ) continue;; 1803 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1804 esac 1805 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1806 done 1807 1808 # There might be people who depend on the old broken behavior: `$host' 1809 # used to hold the argument of --host etc. 1810 # FIXME: To remove some day. 1811 build=$build_alias 1812 host=$host_alias 1813 target=$target_alias 1814 1815 # FIXME: To remove some day. 1816 if test "x$host_alias" != x; then 1817 if test "x$build_alias" = x; then 1818 cross_compiling=maybe 1819 elif test "x$build_alias" != "x$host_alias"; then 1820 cross_compiling=yes 1821 fi 1822 fi 1823 1824 ac_tool_prefix= 1825 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1826 1827 test "$silent" = yes && exec 6>/dev/null 1828 1829 1830 ac_pwd=`pwd` && test -n "$ac_pwd" && 1831 ac_ls_di=`ls -di .` && 1832 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1833 as_fn_error $? "working directory cannot be determined" 1834 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1835 as_fn_error $? "pwd does not report name of working directory" 1836 1837 1838 # Find the source files, if location was not specified. 1839 if test -z "$srcdir"; then 1840 ac_srcdir_defaulted=yes 1841 # Try the directory containing this script, then the parent directory. 1842 ac_confdir=`$as_dirname -- "$as_myself" || 1843 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1844 X"$as_myself" : 'X\(//\)[^/]' \| \ 1845 X"$as_myself" : 'X\(//\)$' \| \ 1846 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1847 $as_echo X"$as_myself" | 1848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1849 s//\1/ 1850 q 1851 } 1852 /^X\(\/\/\)[^/].*/{ 1853 s//\1/ 1854 q 1855 } 1856 /^X\(\/\/\)$/{ 1857 s//\1/ 1858 q 1859 } 1860 /^X\(\/\).*/{ 1861 s//\1/ 1862 q 1863 } 1864 s/.*/./; q'` 1865 srcdir=$ac_confdir 1866 if test ! -r "$srcdir/$ac_unique_file"; then 1867 srcdir=.. 1868 fi 1869 else 1870 ac_srcdir_defaulted=no 1871 fi 1872 if test ! -r "$srcdir/$ac_unique_file"; then 1873 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1874 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1875 fi 1876 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1877 ac_abs_confdir=`( 1878 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1879 pwd)` 1880 # When building in place, set srcdir=. 1881 if test "$ac_abs_confdir" = "$ac_pwd"; then 1882 srcdir=. 1883 fi 1884 # Remove unnecessary trailing slashes from srcdir. 1885 # Double slashes in file names in object file debugging info 1886 # mess up M-x gdb in Emacs. 1887 case $srcdir in 1888 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1889 esac 1890 for ac_var in $ac_precious_vars; do 1891 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1892 eval ac_env_${ac_var}_value=\$${ac_var} 1893 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1894 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1895 done 1896 1897 # 1898 # Report the --help message. 1899 # 1900 if test "$ac_init_help" = "long"; then 1901 # Omit some internal or obsolete options to make the list less imposing. 1902 # This message is too long to be a string in the A/UX 3.1 sh. 1903 cat <<_ACEOF 1904 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1905 1906 Usage: $0 [OPTION]... [VAR=VALUE]... 1907 1908 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1909 VAR=VALUE. See below for descriptions of some of the useful variables. 1910 1911 Defaults for the options are specified in brackets. 1912 1913 Configuration: 1914 -h, --help display this help and exit 1915 --help=short display options specific to this package 1916 --help=recursive display the short help of all the included packages 1917 -V, --version display version information and exit 1918 -q, --quiet, --silent do not print \`checking ...' messages 1919 --cache-file=FILE cache test results in FILE [disabled] 1920 -C, --config-cache alias for \`--cache-file=config.cache' 1921 -n, --no-create do not create output files 1922 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1923 1924 Installation directories: 1925 --prefix=PREFIX install architecture-independent files in PREFIX 1926 [$ac_default_prefix] 1927 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1928 [PREFIX] 1929 1930 By default, \`make install' will install all the files in 1931 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1932 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1933 for instance \`--prefix=\$HOME'. 1934 1935 For better control, use the options below. 1936 1937 Fine tuning of the installation directories: 1938 --bindir=DIR user executables [EPREFIX/bin] 1939 --sbindir=DIR system admin executables [EPREFIX/sbin] 1940 --libexecdir=DIR program executables [EPREFIX/libexec] 1941 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1942 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1943 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1944 --libdir=DIR object code libraries [EPREFIX/lib] 1945 --includedir=DIR C header files [PREFIX/include] 1946 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1947 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1948 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1949 --infodir=DIR info documentation [DATAROOTDIR/info] 1950 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1951 --mandir=DIR man documentation [DATAROOTDIR/man] 1952 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1953 --htmldir=DIR html documentation [DOCDIR] 1954 --dvidir=DIR dvi documentation [DOCDIR] 1955 --pdfdir=DIR pdf documentation [DOCDIR] 1956 --psdir=DIR ps documentation [DOCDIR] 1957 _ACEOF 1958 1959 cat <<\_ACEOF 1960 1961 X features: 1962 --x-includes=DIR X include files are in DIR 1963 --x-libraries=DIR X library files are in DIR 1964 1965 System types: 1966 --build=BUILD configure for building on BUILD [guessed] 1967 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1968 --target=TARGET configure for building compilers for TARGET [HOST] 1969 _ACEOF 1970 fi 1971 1972 if test -n "$ac_init_help"; then 1973 case $ac_init_help in 1974 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1975 esac 1976 cat <<\_ACEOF 1977 1978 Optional Features: 1979 --disable-option-checking ignore unrecognized --enable/--with options 1980 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1981 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1982 --enable-openjdk-only suppress building custom source even if present 1983 [disabled] 1984 --enable-debug set the debug level to fastdebug (shorthand for 1985 --with-debug-level=fastdebug) [disabled] 1986 --enable-headless-only only build headless (no GUI) support [disabled] 1987 --enable-unlimited-crypto 1988 Enable unlimited crypto policy [disabled] 1989 --disable-keep-packaged-modules 1990 Do not keep packaged modules in jdk image [enable] 1991 --enable-static-build enable static library build [disabled] 1992 --disable-warnings-as-errors 1993 do not consider native warnings to be an error 1994 [enabled] 1995 --enable-debug-symbols Deprecated. Option is kept for backwards 1996 compatibility and is ignored 1997 --enable-zip-debug-info Deprecated. Option is kept for backwards 1998 compatibility and is ignored 1999 --enable-native-coverage 2000 enable native compilation with code coverage 2001 data[disabled] 2002 --enable-dtrace[=yes/no/auto] 2003 enable dtrace. Default is auto, where dtrace is 2004 enabled if all dependencies are present. 2005 --enable-aot[=yes/no/auto] 2006 enable ahead of time compilation feature. Default is 2007 auto, where aot is enabled if all dependencies are 2008 present. 2009 --disable-hotspot-gtest Disables building of the Hotspot unit tests 2010 --disable-freetype-bundling 2011 disable bundling of the freetype library with the 2012 build result [enabled on Windows or when using 2013 --with-freetype, disabled otherwise] 2014 --enable-jtreg-failure-handler 2015 forces build of the jtreg failure handler to be 2016 enabled, missing dependencies become fatal errors. 2017 Default is auto, where the failure handler is built 2018 if all dependencies are present and otherwise just 2019 disabled. 2020 --disable-generate-classlist 2021 forces enabling or disabling of the generation of a 2022 CDS classlist at build time. Default is to generate 2023 it when either the server or client JVMs are built. 2024 --enable-sjavac use sjavac to do fast incremental compiles 2025 [disabled] 2026 --disable-javac-server disable javac server [enabled] 2027 --enable-icecc enable distribted compilation of native code using 2028 icecc/icecream [disabled] 2029 --disable-precompiled-headers 2030 disable using precompiled headers when compiling C++ 2031 [enabled] 2032 --enable-ccache enable using ccache to speed up recompilations 2033 [disabled] 2034 2035 Optional Packages: 2036 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2037 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2038 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2039 support it), e.g. --with-target-bits=32 [guessed] 2040 --with-custom-make-dir Deprecated. Option is kept for backwards 2041 compatibility and is ignored 2042 --with-jdk-variant JDK variant to build (normal) [normal] 2043 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2044 optimized) [release] 2045 --with-jvm-variants JVM variants (separated by commas) to build 2046 (server,client,minimal,core,zero,zeroshark,custom) 2047 [server] 2048 --with-devkit use this devkit for compilers, tools and resources 2049 --with-sys-root alias for --with-sysroot for backwards compatability 2050 --with-sysroot use this directory as sysroot 2051 --with-tools-dir alias for --with-toolchain-path for backwards 2052 compatibility 2053 --with-toolchain-path prepend these directories when searching for 2054 toolchain binaries (compilers etc) 2055 --with-extra-path prepend these directories to the default path 2056 --with-sdk-name use the platform SDK of the given name. [macosx] 2057 --with-conf-name use this as the name of the configuration [generated 2058 from important configuration options] 2059 --with-output-sync set make output sync type if supported by make. 2060 [recurse] 2061 --with-default-make-target 2062 set the default make target [exploded-image] 2063 --with-cacerts-file specify alternative cacerts file 2064 --with-copyright-year Set copyright year value for build [current year] 2065 --with-milestone Deprecated. Option is kept for backwards 2066 compatibility and is ignored 2067 --with-update-version Deprecated. Option is kept for backwards 2068 compatibility and is ignored 2069 --with-user-release-suffix 2070 Deprecated. Option is kept for backwards 2071 compatibility and is ignored 2072 --with-build-number Deprecated. Option is kept for backwards 2073 compatibility and is ignored 2074 --with-version-string Set version string [calculated] 2075 --with-version-pre Set the base part of the version 'PRE' field 2076 (pre-release identifier) ['internal'] 2077 --with-version-opt Set version 'OPT' field (build metadata) 2078 [<timestamp>.<user>.<dirname>] 2079 --with-version-build Set version 'BUILD' field (build number) [not 2080 specified] 2081 --with-version-major Set version 'MAJOR' field (first number) [current 2082 source value] 2083 --with-version-minor Set version 'MINOR' field (second number) [current 2084 source value] 2085 --with-version-security Set version 'SECURITY' field (third number) [current 2086 source value] 2087 --with-version-patch Set version 'PATCH' field (fourth number) [not 2088 specified] 2089 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2090 --with-build-jdk path to JDK of same version as is being built[the 2091 newly built JDK] 2092 --with-add-source-root Deprecated. Option is kept for backwards 2093 compatibility and is ignored 2094 --with-override-source-root 2095 Deprecated. Option is kept for backwards 2096 compatibility and is ignored 2097 --with-adds-and-overrides 2098 Deprecated. Option is kept for backwards 2099 compatibility and is ignored 2100 --with-override-langtools 2101 Deprecated. Option is kept for backwards 2102 compatibility and is ignored 2103 --with-override-corba Deprecated. Option is kept for backwards 2104 compatibility and is ignored 2105 --with-override-jaxp Deprecated. Option is kept for backwards 2106 compatibility and is ignored 2107 --with-override-jaxws Deprecated. Option is kept for backwards 2108 compatibility and is ignored 2109 --with-override-hotspot Deprecated. Option is kept for backwards 2110 compatibility and is ignored 2111 --with-override-nashorn Deprecated. Option is kept for backwards 2112 compatibility and is ignored 2113 --with-override-jdk Deprecated. Option is kept for backwards 2114 compatibility and is ignored 2115 --with-import-hotspot import hotspot binaries from this jdk image or 2116 hotspot build dist dir instead of building from 2117 source 2118 --with-import-modules import a set of prebuilt modules either as a zip 2119 file or an exploded directory 2120 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2121 to show possible values [platform dependent] 2122 --with-extra-cflags extra flags to be used when compiling jdk c-files 2123 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2124 --with-extra-ldflags extra flags to be used when linking jdk 2125 --with-toolchain-version 2126 the version of the toolchain to look for, use 2127 '--help' to show possible values [platform 2128 dependent] 2129 --with-build-devkit Devkit to use for the build platform toolchain 2130 --with-jtreg Regression Test Harness [probed] 2131 --with-native-debug-symbols 2132 set the native debug symbol configuration (none, 2133 internal, external, zipped) [varying] 2134 --with-jvm-features additional JVM features to enable (separated by 2135 comma), use '--help' to show possible values [none] 2136 --with-jvm-interpreter Deprecated. Option is kept for backwards 2137 compatibility and is ignored 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-alsa specify prefix directory for the alsa package 2159 (expecting the libraries under PATH/lib and the 2160 headers under PATH/include) 2161 --with-alsa-include specify directory for the alsa include files 2162 --with-alsa-lib specify directory for the alsa library 2163 --with-libffi specify prefix directory for the libffi package 2164 (expecting the libraries under PATH/lib and the 2165 headers under PATH/include) 2166 --with-libffi-include specify directory for the libffi include files 2167 --with-libffi-lib specify directory for the libffi library 2168 --with-libjpeg use libjpeg from build system or OpenJDK source 2169 (system, bundled) [bundled] 2170 --with-giflib use giflib from build system or OpenJDK source 2171 (system, bundled) [bundled] 2172 --with-libpng use libpng from build system or OpenJDK source 2173 (system, bundled) [bundled] 2174 --with-zlib use zlib from build system or OpenJDK source 2175 (system, bundled) [bundled] 2176 --with-lcms use lcms2 from build system or OpenJDK source 2177 (system, bundled) [bundled] 2178 --with-dxsdk Deprecated. Option is kept for backwards 2179 compatibility and is ignored 2180 --with-dxsdk-lib Deprecated. Option is kept for backwards 2181 compatibility and is ignored 2182 --with-dxsdk-include Deprecated. Option is kept for backwards 2183 compatibility and is ignored 2184 --with-libelf specify prefix directory for the libelf package 2185 (expecting the libraries under PATH/lib and the 2186 headers under PATH/include) 2187 --with-libelf-include specify directory for the libelf include files 2188 --with-libelf-lib specify directory for the libelf library 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 MAKE Override default value for MAKE 2257 UNZIP Override default value for UNZIP 2258 ZIP Override default value for ZIP 2259 LDD Override default value for LDD 2260 OTOOL Override default value for OTOOL 2261 READELF Override default value for READELF 2262 HG Override default value for HG 2263 STAT Override default value for STAT 2264 TIME Override default value for TIME 2265 DTRACE Override default value for DTRACE 2266 PATCH Override default value for PATCH 2267 DSYMUTIL Override default value for DSYMUTIL 2268 XATTR Override default value for XATTR 2269 CODESIGN Override default value for CODESIGN 2270 SETFILE Override default value for SETFILE 2271 PKG_CONFIG path to pkg-config utility 2272 JAVA Override default value for JAVA 2273 JAVAC Override default value for JAVAC 2274 JAVAH Override default value for JAVAH 2275 JAR Override default value for JAR 2276 JARSIGNER Override default value for JARSIGNER 2277 CC C compiler command 2278 CFLAGS C compiler flags 2279 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2280 nonstandard directory <lib dir> 2281 LIBS libraries to pass to the linker, e.g. -l<library> 2282 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2283 you have headers in a nonstandard directory <include dir> 2284 CXX C++ compiler command 2285 CXXFLAGS C++ compiler flags 2286 CPP C preprocessor 2287 CXXCPP C++ preprocessor 2288 AS Override default value for AS 2289 AR Override default value for AR 2290 LIPO Override default value for LIPO 2291 STRIP Override default value for STRIP 2292 NM Override default value for NM 2293 GNM Override default value for GNM 2294 OBJCOPY Override default value for OBJCOPY 2295 OBJDUMP Override default value for OBJDUMP 2296 BUILD_CC Override default value for BUILD_CC 2297 BUILD_CXX Override default value for BUILD_CXX 2298 BUILD_NM Override default value for BUILD_NM 2299 BUILD_AR Override default value for BUILD_AR 2300 BUILD_OBJCOPY 2301 Override default value for BUILD_OBJCOPY 2302 BUILD_STRIP Override default value for BUILD_STRIP 2303 JTREGEXE Override default value for JTREGEXE 2304 XMKMF Path to xmkmf, Makefile generator for X Window System 2305 FREETYPE_CFLAGS 2306 C compiler flags for FREETYPE, overriding pkg-config 2307 FREETYPE_LIBS 2308 linker flags for FREETYPE, overriding pkg-config 2309 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2310 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2311 LIBFFI_CFLAGS 2312 C compiler flags for LIBFFI, overriding pkg-config 2313 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2314 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2315 PNG_LIBS linker flags for PNG, overriding pkg-config 2316 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2317 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2318 ELF_CFLAGS C compiler flags for ELF, overriding pkg-config 2319 ELF_LIBS linker flags for ELF, overriding pkg-config 2320 ICECC_CMD Override default value for ICECC_CMD 2321 ICECC_CREATE_ENV 2322 Override default value for ICECC_CREATE_ENV 2323 ICECC_WRAPPER 2324 Override default value for ICECC_WRAPPER 2325 CCACHE Override default value for CCACHE 2326 2327 Use these variables to override the choices made by `configure' or to help 2328 it to find libraries and programs with nonstandard names/locations. 2329 2330 Report bugs to <build-dev@openjdk.java.net>. 2331 OpenJDK home page: <http://openjdk.java.net>. 2332 _ACEOF 2333 ac_status=$? 2334 fi 2335 2336 if test "$ac_init_help" = "recursive"; then 2337 # If there are subdirs, report their specific --help. 2338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2339 test -d "$ac_dir" || 2340 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2341 continue 2342 ac_builddir=. 2343 2344 case "$ac_dir" in 2345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2346 *) 2347 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2348 # A ".." for each directory in $ac_dir_suffix. 2349 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2350 case $ac_top_builddir_sub in 2351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2353 esac ;; 2354 esac 2355 ac_abs_top_builddir=$ac_pwd 2356 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2357 # for backward compatibility: 2358 ac_top_builddir=$ac_top_build_prefix 2359 2360 case $srcdir in 2361 .) # We are building in place. 2362 ac_srcdir=. 2363 ac_top_srcdir=$ac_top_builddir_sub 2364 ac_abs_top_srcdir=$ac_pwd ;; 2365 [\\/]* | ?:[\\/]* ) # Absolute name. 2366 ac_srcdir=$srcdir$ac_dir_suffix; 2367 ac_top_srcdir=$srcdir 2368 ac_abs_top_srcdir=$srcdir ;; 2369 *) # Relative name. 2370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2371 ac_top_srcdir=$ac_top_build_prefix$srcdir 2372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2373 esac 2374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2375 2376 cd "$ac_dir" || { ac_status=$?; continue; } 2377 # Check for guested configure. 2378 if test -f "$ac_srcdir/configure.gnu"; then 2379 echo && 2380 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2381 elif test -f "$ac_srcdir/configure"; then 2382 echo && 2383 $SHELL "$ac_srcdir/configure" --help=recursive 2384 else 2385 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2386 fi || ac_status=$? 2387 cd "$ac_pwd" || { ac_status=$?; break; } 2388 done 2389 fi 2390 2391 test -n "$ac_init_help" && exit $ac_status 2392 if $ac_init_version; then 2393 cat <<\_ACEOF 2394 OpenJDK configure jdk9 2395 generated by GNU Autoconf 2.69 2396 2397 Copyright (C) 2012 Free Software Foundation, Inc. 2398 This configure script is free software; the Free Software Foundation 2399 gives unlimited permission to copy, distribute and modify it. 2400 _ACEOF 2401 exit 2402 fi 2403 2404 ## ------------------------ ## 2405 ## Autoconf initialization. ## 2406 ## ------------------------ ## 2407 2408 # ac_fn_c_try_compile LINENO 2409 # -------------------------- 2410 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2411 ac_fn_c_try_compile () 2412 { 2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2414 rm -f conftest.$ac_objext 2415 if { { ac_try="$ac_compile" 2416 case "(($ac_try" in 2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2418 *) ac_try_echo=$ac_try;; 2419 esac 2420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2421 $as_echo "$ac_try_echo"; } >&5 2422 (eval "$ac_compile") 2>conftest.err 2423 ac_status=$? 2424 if test -s conftest.err; then 2425 grep -v '^ *+' conftest.err >conftest.er1 2426 cat conftest.er1 >&5 2427 mv -f conftest.er1 conftest.err 2428 fi 2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2430 test $ac_status = 0; } && { 2431 test -z "$ac_c_werror_flag" || 2432 test ! -s conftest.err 2433 } && test -s conftest.$ac_objext; then : 2434 ac_retval=0 2435 else 2436 $as_echo "$as_me: failed program was:" >&5 2437 sed 's/^/| /' conftest.$ac_ext >&5 2438 2439 ac_retval=1 2440 fi 2441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2442 as_fn_set_status $ac_retval 2443 2444 } # ac_fn_c_try_compile 2445 2446 # ac_fn_cxx_try_compile LINENO 2447 # ---------------------------- 2448 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2449 ac_fn_cxx_try_compile () 2450 { 2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2452 rm -f conftest.$ac_objext 2453 if { { ac_try="$ac_compile" 2454 case "(($ac_try" in 2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2456 *) ac_try_echo=$ac_try;; 2457 esac 2458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2459 $as_echo "$ac_try_echo"; } >&5 2460 (eval "$ac_compile") 2>conftest.err 2461 ac_status=$? 2462 if test -s conftest.err; then 2463 grep -v '^ *+' conftest.err >conftest.er1 2464 cat conftest.er1 >&5 2465 mv -f conftest.er1 conftest.err 2466 fi 2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2468 test $ac_status = 0; } && { 2469 test -z "$ac_cxx_werror_flag" || 2470 test ! -s conftest.err 2471 } && test -s conftest.$ac_objext; then : 2472 ac_retval=0 2473 else 2474 $as_echo "$as_me: failed program was:" >&5 2475 sed 's/^/| /' conftest.$ac_ext >&5 2476 2477 ac_retval=1 2478 fi 2479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2480 as_fn_set_status $ac_retval 2481 2482 } # ac_fn_cxx_try_compile 2483 2484 # ac_fn_c_try_cpp LINENO 2485 # ---------------------- 2486 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2487 ac_fn_c_try_cpp () 2488 { 2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2490 if { { ac_try="$ac_cpp conftest.$ac_ext" 2491 case "(($ac_try" in 2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2493 *) ac_try_echo=$ac_try;; 2494 esac 2495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2496 $as_echo "$ac_try_echo"; } >&5 2497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2498 ac_status=$? 2499 if test -s conftest.err; then 2500 grep -v '^ *+' conftest.err >conftest.er1 2501 cat conftest.er1 >&5 2502 mv -f conftest.er1 conftest.err 2503 fi 2504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2505 test $ac_status = 0; } > conftest.i && { 2506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2507 test ! -s conftest.err 2508 }; then : 2509 ac_retval=0 2510 else 2511 $as_echo "$as_me: failed program was:" >&5 2512 sed 's/^/| /' conftest.$ac_ext >&5 2513 2514 ac_retval=1 2515 fi 2516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2517 as_fn_set_status $ac_retval 2518 2519 } # ac_fn_c_try_cpp 2520 2521 # ac_fn_cxx_try_cpp LINENO 2522 # ------------------------ 2523 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2524 ac_fn_cxx_try_cpp () 2525 { 2526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2527 if { { ac_try="$ac_cpp conftest.$ac_ext" 2528 case "(($ac_try" in 2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2530 *) ac_try_echo=$ac_try;; 2531 esac 2532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2533 $as_echo "$ac_try_echo"; } >&5 2534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2535 ac_status=$? 2536 if test -s conftest.err; then 2537 grep -v '^ *+' conftest.err >conftest.er1 2538 cat conftest.er1 >&5 2539 mv -f conftest.er1 conftest.err 2540 fi 2541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2542 test $ac_status = 0; } > conftest.i && { 2543 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2544 test ! -s conftest.err 2545 }; then : 2546 ac_retval=0 2547 else 2548 $as_echo "$as_me: failed program was:" >&5 2549 sed 's/^/| /' conftest.$ac_ext >&5 2550 2551 ac_retval=1 2552 fi 2553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2554 as_fn_set_status $ac_retval 2555 2556 } # ac_fn_cxx_try_cpp 2557 2558 # ac_fn_c_try_link LINENO 2559 # ----------------------- 2560 # Try to link conftest.$ac_ext, and return whether this succeeded. 2561 ac_fn_c_try_link () 2562 { 2563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2564 rm -f conftest.$ac_objext conftest$ac_exeext 2565 if { { ac_try="$ac_link" 2566 case "(($ac_try" in 2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2568 *) ac_try_echo=$ac_try;; 2569 esac 2570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2571 $as_echo "$ac_try_echo"; } >&5 2572 (eval "$ac_link") 2>conftest.err 2573 ac_status=$? 2574 if test -s conftest.err; then 2575 grep -v '^ *+' conftest.err >conftest.er1 2576 cat conftest.er1 >&5 2577 mv -f conftest.er1 conftest.err 2578 fi 2579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2580 test $ac_status = 0; } && { 2581 test -z "$ac_c_werror_flag" || 2582 test ! -s conftest.err 2583 } && test -s conftest$ac_exeext && { 2584 test "$cross_compiling" = yes || 2585 test -x conftest$ac_exeext 2586 }; then : 2587 ac_retval=0 2588 else 2589 $as_echo "$as_me: failed program was:" >&5 2590 sed 's/^/| /' conftest.$ac_ext >&5 2591 2592 ac_retval=1 2593 fi 2594 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2595 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2596 # interfere with the next link command; also delete a directory that is 2597 # left behind by Apple's compiler. We do this before executing the actions. 2598 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2600 as_fn_set_status $ac_retval 2601 2602 } # ac_fn_c_try_link 2603 2604 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2605 # --------------------------------------------------------- 2606 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2607 # the include files in INCLUDES and setting the cache variable VAR 2608 # accordingly. 2609 ac_fn_cxx_check_header_mongrel () 2610 { 2611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2612 if eval \${$3+:} false; then : 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2614 $as_echo_n "checking for $2... " >&6; } 2615 if eval \${$3+:} false; then : 2616 $as_echo_n "(cached) " >&6 2617 fi 2618 eval ac_res=\$$3 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2620 $as_echo "$ac_res" >&6; } 2621 else 2622 # Is the header compilable? 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2624 $as_echo_n "checking $2 usability... " >&6; } 2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2626 /* end confdefs.h. */ 2627 $4 2628 #include <$2> 2629 _ACEOF 2630 if ac_fn_cxx_try_compile "$LINENO"; then : 2631 ac_header_compiler=yes 2632 else 2633 ac_header_compiler=no 2634 fi 2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2637 $as_echo "$ac_header_compiler" >&6; } 2638 2639 # Is the header present? 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2641 $as_echo_n "checking $2 presence... " >&6; } 2642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2643 /* end confdefs.h. */ 2644 #include <$2> 2645 _ACEOF 2646 if ac_fn_cxx_try_cpp "$LINENO"; then : 2647 ac_header_preproc=yes 2648 else 2649 ac_header_preproc=no 2650 fi 2651 rm -f conftest.err conftest.i conftest.$ac_ext 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2653 $as_echo "$ac_header_preproc" >&6; } 2654 2655 # So? What about this header? 2656 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2657 yes:no: ) 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2659 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2662 ;; 2663 no:yes:* ) 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2665 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2667 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2669 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2671 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2674 ( $as_echo "## ----------------------------------------- ## 2675 ## Report this to build-dev@openjdk.java.net ## 2676 ## ----------------------------------------- ##" 2677 ) | sed "s/^/$as_me: WARNING: /" >&2 2678 ;; 2679 esac 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2681 $as_echo_n "checking for $2... " >&6; } 2682 if eval \${$3+:} false; then : 2683 $as_echo_n "(cached) " >&6 2684 else 2685 eval "$3=\$ac_header_compiler" 2686 fi 2687 eval ac_res=\$$3 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2689 $as_echo "$ac_res" >&6; } 2690 fi 2691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2692 2693 } # ac_fn_cxx_check_header_mongrel 2694 2695 # ac_fn_cxx_try_run LINENO 2696 # ------------------------ 2697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2698 # that executables *can* be run. 2699 ac_fn_cxx_try_run () 2700 { 2701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2702 if { { ac_try="$ac_link" 2703 case "(($ac_try" in 2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2705 *) ac_try_echo=$ac_try;; 2706 esac 2707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2708 $as_echo "$ac_try_echo"; } >&5 2709 (eval "$ac_link") 2>&5 2710 ac_status=$? 2711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2713 { { case "(($ac_try" in 2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2715 *) ac_try_echo=$ac_try;; 2716 esac 2717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2718 $as_echo "$ac_try_echo"; } >&5 2719 (eval "$ac_try") 2>&5 2720 ac_status=$? 2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2722 test $ac_status = 0; }; }; then : 2723 ac_retval=0 2724 else 2725 $as_echo "$as_me: program exited with status $ac_status" >&5 2726 $as_echo "$as_me: failed program was:" >&5 2727 sed 's/^/| /' conftest.$ac_ext >&5 2728 2729 ac_retval=$ac_status 2730 fi 2731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2733 as_fn_set_status $ac_retval 2734 2735 } # ac_fn_cxx_try_run 2736 2737 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2738 # --------------------------------------------------------- 2739 # Tests whether HEADER exists and can be compiled using the include files in 2740 # INCLUDES, setting the cache variable VAR accordingly. 2741 ac_fn_cxx_check_header_compile () 2742 { 2743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2745 $as_echo_n "checking for $2... " >&6; } 2746 if eval \${$3+:} false; then : 2747 $as_echo_n "(cached) " >&6 2748 else 2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2750 /* end confdefs.h. */ 2751 $4 2752 #include <$2> 2753 _ACEOF 2754 if ac_fn_cxx_try_compile "$LINENO"; then : 2755 eval "$3=yes" 2756 else 2757 eval "$3=no" 2758 fi 2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2760 fi 2761 eval ac_res=\$$3 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2763 $as_echo "$ac_res" >&6; } 2764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2765 2766 } # ac_fn_cxx_check_header_compile 2767 2768 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2769 # ---------------------------------------------- 2770 # Tries to find the compile-time value of EXPR in a program that includes 2771 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2772 # computed 2773 ac_fn_cxx_compute_int () 2774 { 2775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2776 if test "$cross_compiling" = yes; then 2777 # Depending upon the size, compute the lo and hi bounds. 2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2779 /* end confdefs.h. */ 2780 $4 2781 int 2782 main () 2783 { 2784 static int test_array [1 - 2 * !(($2) >= 0)]; 2785 test_array [0] = 0; 2786 return test_array [0]; 2787 2788 ; 2789 return 0; 2790 } 2791 _ACEOF 2792 if ac_fn_cxx_try_compile "$LINENO"; then : 2793 ac_lo=0 ac_mid=0 2794 while :; do 2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2796 /* end confdefs.h. */ 2797 $4 2798 int 2799 main () 2800 { 2801 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2802 test_array [0] = 0; 2803 return test_array [0]; 2804 2805 ; 2806 return 0; 2807 } 2808 _ACEOF 2809 if ac_fn_cxx_try_compile "$LINENO"; then : 2810 ac_hi=$ac_mid; break 2811 else 2812 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2813 if test $ac_lo -le $ac_mid; then 2814 ac_lo= ac_hi= 2815 break 2816 fi 2817 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2818 fi 2819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2820 done 2821 else 2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2823 /* end confdefs.h. */ 2824 $4 2825 int 2826 main () 2827 { 2828 static int test_array [1 - 2 * !(($2) < 0)]; 2829 test_array [0] = 0; 2830 return test_array [0]; 2831 2832 ; 2833 return 0; 2834 } 2835 _ACEOF 2836 if ac_fn_cxx_try_compile "$LINENO"; then : 2837 ac_hi=-1 ac_mid=-1 2838 while :; do 2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2840 /* end confdefs.h. */ 2841 $4 2842 int 2843 main () 2844 { 2845 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2846 test_array [0] = 0; 2847 return test_array [0]; 2848 2849 ; 2850 return 0; 2851 } 2852 _ACEOF 2853 if ac_fn_cxx_try_compile "$LINENO"; then : 2854 ac_lo=$ac_mid; break 2855 else 2856 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2857 if test $ac_mid -le $ac_hi; then 2858 ac_lo= ac_hi= 2859 break 2860 fi 2861 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2862 fi 2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2864 done 2865 else 2866 ac_lo= ac_hi= 2867 fi 2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2869 fi 2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2871 # Binary search between lo and hi bounds. 2872 while test "x$ac_lo" != "x$ac_hi"; do 2873 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2875 /* end confdefs.h. */ 2876 $4 2877 int 2878 main () 2879 { 2880 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2881 test_array [0] = 0; 2882 return test_array [0]; 2883 2884 ; 2885 return 0; 2886 } 2887 _ACEOF 2888 if ac_fn_cxx_try_compile "$LINENO"; then : 2889 ac_hi=$ac_mid 2890 else 2891 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2892 fi 2893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2894 done 2895 case $ac_lo in #(( 2896 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2897 '') ac_retval=1 ;; 2898 esac 2899 else 2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2901 /* end confdefs.h. */ 2902 $4 2903 static long int longval () { return $2; } 2904 static unsigned long int ulongval () { return $2; } 2905 #include <stdio.h> 2906 #include <stdlib.h> 2907 int 2908 main () 2909 { 2910 2911 FILE *f = fopen ("conftest.val", "w"); 2912 if (! f) 2913 return 1; 2914 if (($2) < 0) 2915 { 2916 long int i = longval (); 2917 if (i != ($2)) 2918 return 1; 2919 fprintf (f, "%ld", i); 2920 } 2921 else 2922 { 2923 unsigned long int i = ulongval (); 2924 if (i != ($2)) 2925 return 1; 2926 fprintf (f, "%lu", i); 2927 } 2928 /* Do not output a trailing newline, as this causes \r\n confusion 2929 on some platforms. */ 2930 return ferror (f) || fclose (f) != 0; 2931 2932 ; 2933 return 0; 2934 } 2935 _ACEOF 2936 if ac_fn_cxx_try_run "$LINENO"; then : 2937 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2938 else 2939 ac_retval=1 2940 fi 2941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2942 conftest.$ac_objext conftest.beam conftest.$ac_ext 2943 rm -f conftest.val 2944 2945 fi 2946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2947 as_fn_set_status $ac_retval 2948 2949 } # ac_fn_cxx_compute_int 2950 2951 # ac_fn_cxx_try_link LINENO 2952 # ------------------------- 2953 # Try to link conftest.$ac_ext, and return whether this succeeded. 2954 ac_fn_cxx_try_link () 2955 { 2956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2957 rm -f conftest.$ac_objext conftest$ac_exeext 2958 if { { ac_try="$ac_link" 2959 case "(($ac_try" in 2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2961 *) ac_try_echo=$ac_try;; 2962 esac 2963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2964 $as_echo "$ac_try_echo"; } >&5 2965 (eval "$ac_link") 2>conftest.err 2966 ac_status=$? 2967 if test -s conftest.err; then 2968 grep -v '^ *+' conftest.err >conftest.er1 2969 cat conftest.er1 >&5 2970 mv -f conftest.er1 conftest.err 2971 fi 2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2973 test $ac_status = 0; } && { 2974 test -z "$ac_cxx_werror_flag" || 2975 test ! -s conftest.err 2976 } && test -s conftest$ac_exeext && { 2977 test "$cross_compiling" = yes || 2978 test -x conftest$ac_exeext 2979 }; then : 2980 ac_retval=0 2981 else 2982 $as_echo "$as_me: failed program was:" >&5 2983 sed 's/^/| /' conftest.$ac_ext >&5 2984 2985 ac_retval=1 2986 fi 2987 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2988 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2989 # interfere with the next link command; also delete a directory that is 2990 # left behind by Apple's compiler. We do this before executing the actions. 2991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2993 as_fn_set_status $ac_retval 2994 2995 } # ac_fn_cxx_try_link 2996 2997 # ac_fn_cxx_check_func LINENO FUNC VAR 2998 # ------------------------------------ 2999 # Tests whether FUNC exists, setting the cache variable VAR accordingly 3000 ac_fn_cxx_check_func () 3001 { 3002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3004 $as_echo_n "checking for $2... " >&6; } 3005 if eval \${$3+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007 else 3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3009 /* end confdefs.h. */ 3010 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 3011 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3012 #define $2 innocuous_$2 3013 3014 /* System header to define __stub macros and hopefully few prototypes, 3015 which can conflict with char $2 (); below. 3016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3017 <limits.h> exists even on freestanding compilers. */ 3018 3019 #ifdef __STDC__ 3020 # include <limits.h> 3021 #else 3022 # include <assert.h> 3023 #endif 3024 3025 #undef $2 3026 3027 /* Override any GCC internal prototype to avoid an error. 3028 Use char because int might match the return type of a GCC 3029 builtin and then its argument prototype would still apply. */ 3030 #ifdef __cplusplus 3031 extern "C" 3032 #endif 3033 char $2 (); 3034 /* The GNU C library defines this for functions which it implements 3035 to always fail with ENOSYS. Some functions are actually named 3036 something starting with __ and the normal name is an alias. */ 3037 #if defined __stub_$2 || defined __stub___$2 3038 choke me 3039 #endif 3040 3041 int 3042 main () 3043 { 3044 return $2 (); 3045 ; 3046 return 0; 3047 } 3048 _ACEOF 3049 if ac_fn_cxx_try_link "$LINENO"; then : 3050 eval "$3=yes" 3051 else 3052 eval "$3=no" 3053 fi 3054 rm -f core conftest.err conftest.$ac_objext \ 3055 conftest$ac_exeext conftest.$ac_ext 3056 fi 3057 eval ac_res=\$$3 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3059 $as_echo "$ac_res" >&6; } 3060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3061 3062 } # ac_fn_cxx_check_func 3063 3064 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3065 # ------------------------------------------------------- 3066 # Tests whether HEADER exists and can be compiled using the include files in 3067 # INCLUDES, setting the cache variable VAR accordingly. 3068 ac_fn_c_check_header_compile () 3069 { 3070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3072 $as_echo_n "checking for $2... " >&6; } 3073 if eval \${$3+:} false; then : 3074 $as_echo_n "(cached) " >&6 3075 else 3076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3077 /* end confdefs.h. */ 3078 $4 3079 #include <$2> 3080 _ACEOF 3081 if ac_fn_c_try_compile "$LINENO"; then : 3082 eval "$3=yes" 3083 else 3084 eval "$3=no" 3085 fi 3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3087 fi 3088 eval ac_res=\$$3 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3090 $as_echo "$ac_res" >&6; } 3091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3092 3093 } # ac_fn_c_check_header_compile 3094 cat >config.log <<_ACEOF 3095 This file contains any messages produced by compilers while 3096 running configure, to aid debugging if configure makes a mistake. 3097 3098 It was created by OpenJDK $as_me jdk9, which was 3099 generated by GNU Autoconf 2.69. Invocation command line was 3100 3101 $ $0 $@ 3102 3103 _ACEOF 3104 exec 5>>config.log 3105 { 3106 cat <<_ASUNAME 3107 ## --------- ## 3108 ## Platform. ## 3109 ## --------- ## 3110 3111 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3112 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3113 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3114 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3115 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3116 3117 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3118 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3119 3120 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3121 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3122 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3123 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3124 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3125 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3126 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3127 3128 _ASUNAME 3129 3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3131 for as_dir in $PATH 3132 do 3133 IFS=$as_save_IFS 3134 test -z "$as_dir" && as_dir=. 3135 $as_echo "PATH: $as_dir" 3136 done 3137 IFS=$as_save_IFS 3138 3139 } >&5 3140 3141 cat >&5 <<_ACEOF 3142 3143 3144 ## ----------- ## 3145 ## Core tests. ## 3146 ## ----------- ## 3147 3148 _ACEOF 3149 3150 3151 # Keep a trace of the command line. 3152 # Strip out --no-create and --no-recursion so they do not pile up. 3153 # Strip out --silent because we don't want to record it for future runs. 3154 # Also quote any args containing shell meta-characters. 3155 # Make two passes to allow for proper duplicate-argument suppression. 3156 ac_configure_args= 3157 ac_configure_args0= 3158 ac_configure_args1= 3159 ac_must_keep_next=false 3160 for ac_pass in 1 2 3161 do 3162 for ac_arg 3163 do 3164 case $ac_arg in 3165 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3167 | -silent | --silent | --silen | --sile | --sil) 3168 continue ;; 3169 *\'*) 3170 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3171 esac 3172 case $ac_pass in 3173 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3174 2) 3175 as_fn_append ac_configure_args1 " '$ac_arg'" 3176 if test $ac_must_keep_next = true; then 3177 ac_must_keep_next=false # Got value, back to normal. 3178 else 3179 case $ac_arg in 3180 *=* | --config-cache | -C | -disable-* | --disable-* \ 3181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3183 | -with-* | --with-* | -without-* | --without-* | --x) 3184 case "$ac_configure_args0 " in 3185 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3186 esac 3187 ;; 3188 -* ) ac_must_keep_next=true ;; 3189 esac 3190 fi 3191 as_fn_append ac_configure_args " '$ac_arg'" 3192 ;; 3193 esac 3194 done 3195 done 3196 { ac_configure_args0=; unset ac_configure_args0;} 3197 { ac_configure_args1=; unset ac_configure_args1;} 3198 3199 # When interrupted or exit'd, cleanup temporary files, and complete 3200 # config.log. We remove comments because anyway the quotes in there 3201 # would cause problems or look ugly. 3202 # WARNING: Use '\'' to represent an apostrophe within the trap. 3203 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3204 trap 'exit_status=$? 3205 # Save into config.log some information that might help in debugging. 3206 { 3207 echo 3208 3209 $as_echo "## ---------------- ## 3210 ## Cache variables. ## 3211 ## ---------------- ##" 3212 echo 3213 # The following way of writing the cache mishandles newlines in values, 3214 ( 3215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3216 eval ac_val=\$$ac_var 3217 case $ac_val in #( 3218 *${as_nl}*) 3219 case $ac_var in #( 3220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3222 esac 3223 case $ac_var in #( 3224 _ | IFS | as_nl) ;; #( 3225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3226 *) { eval $ac_var=; unset $ac_var;} ;; 3227 esac ;; 3228 esac 3229 done 3230 (set) 2>&1 | 3231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3232 *${as_nl}ac_space=\ *) 3233 sed -n \ 3234 "s/'\''/'\''\\\\'\'''\''/g; 3235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3236 ;; #( 3237 *) 3238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3239 ;; 3240 esac | 3241 sort 3242 ) 3243 echo 3244 3245 $as_echo "## ----------------- ## 3246 ## Output variables. ## 3247 ## ----------------- ##" 3248 echo 3249 for ac_var in $ac_subst_vars 3250 do 3251 eval ac_val=\$$ac_var 3252 case $ac_val in 3253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3254 esac 3255 $as_echo "$ac_var='\''$ac_val'\''" 3256 done | sort 3257 echo 3258 3259 if test -n "$ac_subst_files"; then 3260 $as_echo "## ------------------- ## 3261 ## File substitutions. ## 3262 ## ------------------- ##" 3263 echo 3264 for ac_var in $ac_subst_files 3265 do 3266 eval ac_val=\$$ac_var 3267 case $ac_val in 3268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3269 esac 3270 $as_echo "$ac_var='\''$ac_val'\''" 3271 done | sort 3272 echo 3273 fi 3274 3275 if test -s confdefs.h; then 3276 $as_echo "## ----------- ## 3277 ## confdefs.h. ## 3278 ## ----------- ##" 3279 echo 3280 cat confdefs.h 3281 echo 3282 fi 3283 test "$ac_signal" != 0 && 3284 $as_echo "$as_me: caught signal $ac_signal" 3285 $as_echo "$as_me: exit $exit_status" 3286 } >&5 3287 rm -f core *.core core.conftest.* && 3288 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3289 exit $exit_status 3290 ' 0 3291 for ac_signal in 1 2 13 15; do 3292 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3293 done 3294 ac_signal=0 3295 3296 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3297 rm -f -r conftest* confdefs.h 3298 3299 $as_echo "/* confdefs.h */" > confdefs.h 3300 3301 # Predefined preprocessor variables. 3302 3303 cat >>confdefs.h <<_ACEOF 3304 #define PACKAGE_NAME "$PACKAGE_NAME" 3305 _ACEOF 3306 3307 cat >>confdefs.h <<_ACEOF 3308 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3309 _ACEOF 3310 3311 cat >>confdefs.h <<_ACEOF 3312 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3313 _ACEOF 3314 3315 cat >>confdefs.h <<_ACEOF 3316 #define PACKAGE_STRING "$PACKAGE_STRING" 3317 _ACEOF 3318 3319 cat >>confdefs.h <<_ACEOF 3320 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3321 _ACEOF 3322 3323 cat >>confdefs.h <<_ACEOF 3324 #define PACKAGE_URL "$PACKAGE_URL" 3325 _ACEOF 3326 3327 3328 # Let the site file select an alternate cache file if it wants to. 3329 # Prefer an explicitly selected file to automatically selected ones. 3330 ac_site_file1=NONE 3331 ac_site_file2=NONE 3332 if test -n "$CONFIG_SITE"; then 3333 # We do not want a PATH search for config.site. 3334 case $CONFIG_SITE in #(( 3335 -*) ac_site_file1=./$CONFIG_SITE;; 3336 */*) ac_site_file1=$CONFIG_SITE;; 3337 *) ac_site_file1=./$CONFIG_SITE;; 3338 esac 3339 elif test "x$prefix" != xNONE; then 3340 ac_site_file1=$prefix/share/config.site 3341 ac_site_file2=$prefix/etc/config.site 3342 else 3343 ac_site_file1=$ac_default_prefix/share/config.site 3344 ac_site_file2=$ac_default_prefix/etc/config.site 3345 fi 3346 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3347 do 3348 test "x$ac_site_file" = xNONE && continue 3349 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3351 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3352 sed 's/^/| /' "$ac_site_file" >&5 3353 . "$ac_site_file" \ 3354 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3356 as_fn_error $? "failed to load site script $ac_site_file 3357 See \`config.log' for more details" "$LINENO" 5; } 3358 fi 3359 done 3360 3361 if test -r "$cache_file"; then 3362 # Some versions of bash will fail to source /dev/null (special files 3363 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3366 $as_echo "$as_me: loading cache $cache_file" >&6;} 3367 case $cache_file in 3368 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3369 *) . "./$cache_file";; 3370 esac 3371 fi 3372 else 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3374 $as_echo "$as_me: creating cache $cache_file" >&6;} 3375 >$cache_file 3376 fi 3377 3378 # Check that the precious variables saved in the cache have kept the same 3379 # value. 3380 ac_cache_corrupted=false 3381 for ac_var in $ac_precious_vars; do 3382 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3383 eval ac_new_set=\$ac_env_${ac_var}_set 3384 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3385 eval ac_new_val=\$ac_env_${ac_var}_value 3386 case $ac_old_set,$ac_new_set in 3387 set,) 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3389 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3390 ac_cache_corrupted=: ;; 3391 ,set) 3392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3393 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3394 ac_cache_corrupted=: ;; 3395 ,);; 3396 *) 3397 if test "x$ac_old_val" != "x$ac_new_val"; then 3398 # differences in whitespace do not lead to failure. 3399 ac_old_val_w=`echo x $ac_old_val` 3400 ac_new_val_w=`echo x $ac_new_val` 3401 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3403 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3404 ac_cache_corrupted=: 3405 else 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3407 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3408 eval $ac_var=\$ac_old_val 3409 fi 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3411 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3413 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3414 fi;; 3415 esac 3416 # Pass precious variables to config.status. 3417 if test "$ac_new_set" = set; then 3418 case $ac_new_val in 3419 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3420 *) ac_arg=$ac_var=$ac_new_val ;; 3421 esac 3422 case " $ac_configure_args " in 3423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3424 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3425 esac 3426 fi 3427 done 3428 if $ac_cache_corrupted; then 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3432 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3433 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3434 fi 3435 ## -------------------- ## 3436 ## Main body of script. ## 3437 ## -------------------- ## 3438 3439 ac_ext=c 3440 ac_cpp='$CPP $CPPFLAGS' 3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3444 3445 3446 3447 ac_aux_dir= 3448 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3449 if test -f "$ac_dir/install-sh"; then 3450 ac_aux_dir=$ac_dir 3451 ac_install_sh="$ac_aux_dir/install-sh -c" 3452 break 3453 elif test -f "$ac_dir/install.sh"; then 3454 ac_aux_dir=$ac_dir 3455 ac_install_sh="$ac_aux_dir/install.sh -c" 3456 break 3457 elif test -f "$ac_dir/shtool"; then 3458 ac_aux_dir=$ac_dir 3459 ac_install_sh="$ac_aux_dir/shtool install -c" 3460 break 3461 fi 3462 done 3463 if test -z "$ac_aux_dir"; then 3464 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5 3465 fi 3466 3467 # These three variables are undocumented and unsupported, 3468 # and are intended to be withdrawn in a future Autoconf release. 3469 # They can cause serious problems if a builder's source tree is in a directory 3470 # whose full name contains unusual characters. 3471 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3472 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3473 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3474 3475 3476 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3477 3478 # 3479 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3480 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3481 # 3482 # This code is free software; you can redistribute it and/or modify it 3483 # under the terms of the GNU General Public License version 2 only, as 3484 # published by the Free Software Foundation. Oracle designates this 3485 # particular file as subject to the "Classpath" exception as provided 3486 # by Oracle in the LICENSE file that accompanied this code. 3487 # 3488 # This code is distributed in the hope that it will be useful, but WITHOUT 3489 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3490 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3491 # version 2 for more details (a copy is included in the LICENSE file that 3492 # accompanied this code). 3493 # 3494 # You should have received a copy of the GNU General Public License version 3495 # 2 along with this work; if not, write to the Free Software Foundation, 3496 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3497 # 3498 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3499 # or visit www.oracle.com if you need additional information or have any 3500 # questions. 3501 # 3502 3503 # 3504 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3505 # 3506 # This program is free software; you can redistribute it and/or modify 3507 # it under the terms of the GNU General Public License as published by 3508 # the Free Software Foundation; either version 2 of the License, or 3509 # (at your option) any later version. 3510 # 3511 # This program is distributed in the hope that it will be useful, but 3512 # WITHOUT ANY WARRANTY; without even the implied warranty of 3513 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3514 # General Public License for more details. 3515 # 3516 # You should have received a copy of the GNU General Public License 3517 # along with this program; if not, write to the Free Software 3518 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3519 # 3520 # As a special exception to the GNU General Public License, if you 3521 # distribute this file as part of a program that contains a 3522 # configuration script generated by Autoconf, you may include it under 3523 # the same distribution terms that you use for the rest of that program. 3524 3525 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3526 # ---------------------------------- 3527 # PKG_PROG_PKG_CONFIG 3528 3529 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3530 # 3531 # Check to see whether a particular set of modules exists. Similar 3532 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3533 # 3534 # 3535 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3536 # this or PKG_CHECK_MODULES is called, or make sure to call 3537 # PKG_CHECK_EXISTS manually 3538 # -------------------------------------------------------------- 3539 3540 3541 3542 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3543 # --------------------------------------------- 3544 # _PKG_CONFIG 3545 3546 # _PKG_SHORT_ERRORS_SUPPORTED 3547 # ----------------------------- 3548 # _PKG_SHORT_ERRORS_SUPPORTED 3549 3550 3551 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3552 # [ACTION-IF-NOT-FOUND]) 3553 # 3554 # 3555 # Note that if there is a possibility the first call to 3556 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3557 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3558 # 3559 # 3560 # -------------------------------------------------------------- 3561 # PKG_CHECK_MODULES 3562 3563 3564 # Include these first... 3565 # 3566 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3567 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3568 # 3569 # This code is free software; you can redistribute it and/or modify it 3570 # under the terms of the GNU General Public License version 2 only, as 3571 # published by the Free Software Foundation. Oracle designates this 3572 # particular file as subject to the "Classpath" exception as provided 3573 # by Oracle in the LICENSE file that accompanied this code. 3574 # 3575 # This code is distributed in the hope that it will be useful, but WITHOUT 3576 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3577 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3578 # version 2 for more details (a copy is included in the LICENSE file that 3579 # accompanied this code). 3580 # 3581 # You should have received a copy of the GNU General Public License version 3582 # 2 along with this work; if not, write to the Free Software Foundation, 3583 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3584 # 3585 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3586 # or visit www.oracle.com if you need additional information or have any 3587 # questions. 3588 # 3589 3590 # Create a function/macro that takes a series of named arguments. The call is 3591 # similar to AC_DEFUN, but the setup of the function looks like this: 3592 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3593 # ... do something 3594 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3595 # ]) 3596 # A star (*) in front of a named argument means that it is required and it's 3597 # presence will be verified. To pass e.g. the first value as a normal indexed 3598 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3599 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3600 # "ARG_FOO". 3601 # 3602 # The generated function can be called like this: 3603 # MYFUNC(FOO: [foo-val], 3604 # BAR: [ 3605 # $ECHO hello world 3606 # ]) 3607 # Note that the argument value must start on the same line as the argument name. 3608 # 3609 # Argument 1: Name of the function to define 3610 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3611 # Argument 3: Argument array to treat as named, typically $@ 3612 # Argument 4: The main function body 3613 3614 3615 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3616 # If so, then append $1 to $2 \ 3617 # Also set JVM_ARG_OK to true/false depending on outcome. 3618 3619 3620 # Appends a string to a path variable, only adding the : when needed. 3621 3622 3623 # Prepends a string to a path variable, only adding the : when needed. 3624 3625 3626 # This will make sure the given variable points to a full and proper 3627 # path. This means: 3628 # 1) There will be no spaces in the path. On unix platforms, 3629 # spaces in the path will result in an error. On Windows, 3630 # the path will be rewritten using short-style to be space-free. 3631 # 2) The path will be absolute, and it will be in unix-style (on 3632 # cygwin). 3633 # $1: The name of the variable to fix 3634 3635 3636 # This will make sure the given variable points to a executable 3637 # with a full and proper path. This means: 3638 # 1) There will be no spaces in the path. On unix platforms, 3639 # spaces in the path will result in an error. On Windows, 3640 # the path will be rewritten using short-style to be space-free. 3641 # 2) The path will be absolute, and it will be in unix-style (on 3642 # cygwin). 3643 # Any arguments given to the executable is preserved. 3644 # If the input variable does not have a directory specification, then 3645 # it need to be in the PATH. 3646 # $1: The name of the variable to fix 3647 3648 3649 3650 3651 # Register a --with argument but mark it as deprecated 3652 # $1: The name of the with argument to deprecate, not including --with- 3653 3654 3655 # Register a --enable argument but mark it as deprecated 3656 # $1: The name of the with argument to deprecate, not including --enable- 3657 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3658 # $3: Messages to user. 3659 3660 3661 3662 3663 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3664 # $1: variable to check 3665 3666 3667 # Check that there are no unprocessed overridden variables left. 3668 # If so, they are an incorrect argument and we will exit with an error. 3669 3670 3671 # Setup a tool for the given variable. If correctly specified by the user, 3672 # use that value, otherwise search for the tool using the supplied code snippet. 3673 # $1: variable to set 3674 # $2: code snippet to call to look for the tool 3675 # $3: code snippet to call if variable was used to find tool 3676 3677 3678 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3679 # $1: variable to set 3680 # $2: executable name (or list of names) to look for 3681 # $3: [path] 3682 3683 3684 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3685 # $1: variable to set 3686 # $2: executable name (or list of names) to look for 3687 3688 3689 # Like BASIC_PATH_PROGS but fails if no tool was found. 3690 # $1: variable to set 3691 # $2: executable name (or list of names) to look for 3692 # $3: [path] 3693 3694 3695 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3696 # $1: variable to set 3697 # $2: autoconf macro to call to look for the special tool 3698 3699 3700 # Setup the most fundamental tools that relies on not much else to set up, 3701 # but is used by much of the early bootstrap code. 3702 3703 3704 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3705 3706 3707 # Evaluates platform specific overrides for devkit variables. 3708 # $1: Name of variable 3709 3710 3711 3712 3713 3714 3715 #%%% Simple tools %%% 3716 3717 # Check if we have found a usable version of make 3718 # $1: the path to a potential make binary (or empty) 3719 # $2: the description on how we found this 3720 3721 3722 3723 3724 # Goes looking for a usable version of GNU make. 3725 3726 3727 3728 3729 3730 3731 3732 3733 # Check if build directory is on local disk. If not possible to determine, 3734 # we prefer to claim it's local. 3735 # Argument 1: directory to test 3736 # Argument 2: what to do if it is on local disk 3737 # Argument 3: what to do otherwise (remote disk or failure) 3738 3739 3740 # Check that source files have basic read permissions set. This might 3741 # not be the case in cygwin in certain conditions. 3742 3743 3744 3745 3746 # Check for support for specific options in bash 3747 3748 3749 ################################################################################ 3750 # 3751 # Default make target 3752 # 3753 3754 3755 # Code to run after AC_OUTPUT 3756 3757 3758 # 3759 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3760 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3761 # 3762 # This code is free software; you can redistribute it and/or modify it 3763 # under the terms of the GNU General Public License version 2 only, as 3764 # published by the Free Software Foundation. Oracle designates this 3765 # particular file as subject to the "Classpath" exception as provided 3766 # by Oracle in the LICENSE file that accompanied this code. 3767 # 3768 # This code is distributed in the hope that it will be useful, but WITHOUT 3769 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3770 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3771 # version 2 for more details (a copy is included in the LICENSE file that 3772 # accompanied this code). 3773 # 3774 # You should have received a copy of the GNU General Public License version 3775 # 2 along with this work; if not, write to the Free Software Foundation, 3776 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3777 # 3778 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3779 # or visit www.oracle.com if you need additional information or have any 3780 # questions. 3781 # 3782 3783 3784 3785 3786 3787 # Helper function which possibly converts a path using DOS-style short mode. 3788 # If so, the updated path is stored in $new_path. 3789 # $1: The path to check 3790 3791 3792 # Helper function which possibly converts a path using DOS-style short mode. 3793 # If so, the updated path is stored in $new_path. 3794 # $1: The path to check 3795 3796 3797 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3798 # and could probably be heavily simplified. However, all changes in this 3799 # area tend to need lot of testing in different scenarios, and in lack of 3800 # proper unit testing, cleaning this up has not been deemed worth the effort 3801 # at the moment. 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3812 3813 3814 3815 3816 # ... then the rest 3817 # 3818 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3819 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3820 # 3821 # This code is free software; you can redistribute it and/or modify it 3822 # under the terms of the GNU General Public License version 2 only, as 3823 # published by the Free Software Foundation. Oracle designates this 3824 # particular file as subject to the "Classpath" exception as provided 3825 # by Oracle in the LICENSE file that accompanied this code. 3826 # 3827 # This code is distributed in the hope that it will be useful, but WITHOUT 3828 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3829 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3830 # version 2 for more details (a copy is included in the LICENSE file that 3831 # accompanied this code). 3832 # 3833 # You should have received a copy of the GNU General Public License version 3834 # 2 along with this work; if not, write to the Free Software Foundation, 3835 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3836 # 3837 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3838 # or visit www.oracle.com if you need additional information or have any 3839 # questions. 3840 # 3841 3842 ######################################################################## 3843 # This file handles detection of the Boot JDK. The Boot JDK detection 3844 # process has been developed as a response to solve a complex real-world 3845 # problem. Initially, it was simple, but it has grown as platform after 3846 # platform, idiosyncracy after idiosyncracy has been supported. 3847 # 3848 # The basic idea is this: 3849 # 1) You need an acceptable *) JDK to use as a Boot JDK 3850 # 2) There are several ways to locate a JDK, that are mostly platform 3851 # dependent **) 3852 # 3) You can have multiple JDKs installed 3853 # 4) If possible, configure should try to dig out an acceptable JDK 3854 # automatically, without having to resort to command-line options 3855 # 3856 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3857 # javac) and not a JRE, etc. 3858 # 3859 # **) On Windows we typically use a well-known path. 3860 # On MacOSX we typically use the tool java_home. 3861 # On Linux we typically find javac in the $PATH, and then follow a 3862 # chain of symlinks that often ends up in a real JDK. 3863 # 3864 # This leads to the code where we check in different ways to locate a 3865 # JDK, and if one is found, check if it is acceptable. If not, we print 3866 # our reasons for rejecting it (useful when debugging non-working 3867 # configure situations) and continue checking the next one. 3868 ######################################################################## 3869 3870 # Execute the check given as argument, and verify the result 3871 # If the Boot JDK was previously found, do nothing 3872 # $1 A command line (typically autoconf macro) to execute 3873 3874 3875 # Test: Is bootjdk explicitely set by command line arguments? 3876 3877 3878 # Test: Is $JAVA_HOME set? 3879 3880 3881 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3882 3883 3884 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3885 # $1: Argument to the java_home binary (optional) 3886 3887 3888 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3889 3890 3891 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3892 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3893 # $1 = Path to directory containing jdk installations. 3894 # $2 = String to append to the found JDK directory to get the proper JDK home 3895 3896 3897 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3898 # environmental variable as base for where to look. 3899 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3900 3901 3902 # Test: Is there a JDK installed in default, well-known locations? 3903 3904 3905 # Check that a command-line tool in the Boot JDK is correct 3906 # $1 = name of variable to assign 3907 # $2 = name of binary 3908 3909 3910 ############################################################################### 3911 # 3912 # We need a Boot JDK to bootstrap the build. 3913 # 3914 3915 3916 3917 3918 3919 # BUILD_JDK: the location of the latest JDK that can run 3920 # on the host system and supports the target class file version 3921 # generated in this JDK build. This variable should only be 3922 # used after the launchers are built. 3923 # 3924 3925 # Execute the check given as argument, and verify the result. 3926 # If the JDK was previously found, do nothing. 3927 # $1 A command line (typically autoconf macro) to execute 3928 3929 3930 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3931 # is different than the host system doing the build (e.g. cross-compilation), 3932 # a special BUILD_JDK is built as part of the build process. An external 3933 # prebuilt BUILD_JDK can also be supplied. 3934 3935 3936 # 3937 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3938 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3939 # 3940 # This code is free software; you can redistribute it and/or modify it 3941 # under the terms of the GNU General Public License version 2 only, as 3942 # published by the Free Software Foundation. Oracle designates this 3943 # particular file as subject to the "Classpath" exception as provided 3944 # by Oracle in the LICENSE file that accompanied this code. 3945 # 3946 # This code is distributed in the hope that it will be useful, but WITHOUT 3947 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3948 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3949 # version 2 for more details (a copy is included in the LICENSE file that 3950 # accompanied this code). 3951 # 3952 # You should have received a copy of the GNU General Public License version 3953 # 2 along with this work; if not, write to the Free Software Foundation, 3954 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3955 # 3956 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3957 # or visit www.oracle.com if you need additional information or have any 3958 # questions. 3959 # 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 ################################################################################ 3978 # 3979 # Runs icecc-create-env once and prints the error if it fails 3980 # 3981 # $1: arguments to icecc-create-env 3982 # $2: log file 3983 # 3984 3985 3986 ################################################################################ 3987 # 3988 # Optionally enable distributed compilation of native code using icecc/icecream 3989 # 3990 3991 3992 3993 3994 3995 3996 3997 # 3998 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3999 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4000 # 4001 # This code is free software; you can redistribute it and/or modify it 4002 # under the terms of the GNU General Public License version 2 only, as 4003 # published by the Free Software Foundation. Oracle designates this 4004 # particular file as subject to the "Classpath" exception as provided 4005 # by Oracle in the LICENSE file that accompanied this code. 4006 # 4007 # This code is distributed in the hope that it will be useful, but WITHOUT 4008 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4009 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4010 # version 2 for more details (a copy is included in the LICENSE file that 4011 # accompanied this code). 4012 # 4013 # You should have received a copy of the GNU General Public License version 4014 # 2 along with this work; if not, write to the Free Software Foundation, 4015 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4016 # 4017 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4018 # or visit www.oracle.com if you need additional information or have any 4019 # questions. 4020 # 4021 4022 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 4023 # corresponding configure arguments instead 4024 4025 4026 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4027 # that configure can use them while detecting compilers. 4028 # TOOLCHAIN_TYPE is available here. 4029 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4030 4031 4032 4033 4034 4035 4036 # Documentation on common flags used for solstudio in HIGHEST. 4037 # 4038 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4039 # done with care, there are some assumptions below that need to 4040 # be understood about the use of pointers, and IEEE behavior. 4041 # 4042 # -fns: Use non-standard floating point mode (not IEEE 754) 4043 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4044 # -fsingle: Use single precision floating point with 'float' 4045 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4046 # (Source with excessing pointer casting and data access with mixed 4047 # pointer types are not recommended) 4048 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4049 # (If you expect perfect errno behavior, do not use this) 4050 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4051 # -xrestrict: Pointer parameters to functions do not overlap 4052 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4053 # If you pass in multiple pointers to the same data, do not use this) 4054 # -xlibmil: Inline some library routines 4055 # (If you expect perfect errno behavior, do not use this) 4056 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4057 # (If you expect perfect errno behavior, do not use this) 4058 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4059 4060 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4061 # Bug? 4062 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4063 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4064 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4065 #fi 4066 4067 4068 4069 4070 4071 4072 ################################################################################ 4073 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4074 # conditionals against. 4075 # $2 - Optional prefix for each variable defined. 4076 4077 4078 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4079 # IF_FALSE: [RUN-IF-FALSE]) 4080 # ------------------------------------------------------------ 4081 # Check that the C compiler supports an argument 4082 4083 4084 4085 4086 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4087 # IF_FALSE: [RUN-IF-FALSE]) 4088 # ------------------------------------------------------------ 4089 # Check that the C++ compiler supports an argument 4090 4091 4092 4093 4094 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4095 # IF_FALSE: [RUN-IF-FALSE]) 4096 # ------------------------------------------------------------ 4097 # Check that the C and C++ compilers support an argument 4098 4099 4100 4101 4102 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4103 # IF_FALSE: [RUN-IF-FALSE]) 4104 # ------------------------------------------------------------ 4105 # Check that the linker support an argument 4106 4107 4108 4109 4110 4111 4112 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX]) 4113 # Arguments: 4114 # $1 - Optional prefix for each variable defined. 4115 4116 4117 # 4118 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4119 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4120 # 4121 # This code is free software; you can redistribute it and/or modify it 4122 # under the terms of the GNU General Public License version 2 only, as 4123 # published by the Free Software Foundation. Oracle designates this 4124 # particular file as subject to the "Classpath" exception as provided 4125 # by Oracle in the LICENSE file that accompanied this code. 4126 # 4127 # This code is distributed in the hope that it will be useful, but WITHOUT 4128 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4129 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4130 # version 2 for more details (a copy is included in the LICENSE file that 4131 # accompanied this code). 4132 # 4133 # You should have received a copy of the GNU General Public License version 4134 # 2 along with this work; if not, write to the Free Software Foundation, 4135 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4136 # 4137 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4138 # or visit www.oracle.com if you need additional information or have any 4139 # questions. 4140 # 4141 4142 4143 4144 4145 4146 cygwin_help() { 4147 case $1 in 4148 unzip) 4149 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4150 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4151 ;; 4152 zip) 4153 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4154 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4155 ;; 4156 make) 4157 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4158 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4159 ;; 4160 freetype) 4161 HELP_MSG=" 4162 The freetype library can now be build during the configure process. 4163 Download the freetype sources and unpack them into an arbitrary directory: 4164 4165 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4166 tar -xzf freetype-2.5.3.tar.gz 4167 4168 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4169 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4170 builds or into '<freetype_src>/lib32' for 32-bit builds. 4171 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4172 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4173 4174 Alternatively you can unpack the sources like this to use the default directory: 4175 4176 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4177 ;; 4178 esac 4179 } 4180 4181 msys_help() { 4182 PKGHANDLER_COMMAND="" 4183 } 4184 4185 apt_help() { 4186 case $1 in 4187 reduced) 4188 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4189 devkit) 4190 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4191 openjdk) 4192 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4193 alsa) 4194 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4195 cups) 4196 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4197 freetype) 4198 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4199 ffi) 4200 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4201 x11) 4202 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4203 ccache) 4204 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4205 dtrace) 4206 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4207 elf) 4208 PKGHANDLER_COMMAND="sudo apt-get install libelf-dev" ;; 4209 esac 4210 } 4211 4212 yum_help() { 4213 case $1 in 4214 devkit) 4215 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4216 openjdk) 4217 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4218 alsa) 4219 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4220 cups) 4221 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4222 freetype) 4223 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4224 x11) 4225 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4226 ccache) 4227 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4228 elf) 4229 PKGHANDLER_COMMAND="sudo yum install elfutils-libelf-devel" ;; 4230 esac 4231 } 4232 4233 port_help() { 4234 PKGHANDLER_COMMAND="" 4235 } 4236 4237 pkgutil_help() { 4238 PKGHANDLER_COMMAND="" 4239 } 4240 4241 pkgadd_help() { 4242 PKGHANDLER_COMMAND="" 4243 } 4244 4245 # This function will check if we're called from the "configure" wrapper while 4246 # printing --help. If so, we will print out additional information that can 4247 # only be extracted within the autoconf script, and then exit. This must be 4248 # called at the very beginning in configure.ac. 4249 4250 4251 4252 4253 4254 4255 # 4256 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4257 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4258 # 4259 # This code is free software; you can redistribute it and/or modify it 4260 # under the terms of the GNU General Public License version 2 only, as 4261 # published by the Free Software Foundation. Oracle designates this 4262 # particular file as subject to the "Classpath" exception as provided 4263 # by Oracle in the LICENSE file that accompanied this code. 4264 # 4265 # This code is distributed in the hope that it will be useful, but WITHOUT 4266 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4267 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4268 # version 2 for more details (a copy is included in the LICENSE file that 4269 # accompanied this code). 4270 # 4271 # You should have received a copy of the GNU General Public License version 4272 # 2 along with this work; if not, write to the Free Software Foundation, 4273 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4274 # 4275 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4276 # or visit www.oracle.com if you need additional information or have any 4277 # questions. 4278 # 4279 4280 # All valid JVM features, regardless of platform 4281 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \ 4282 fprof vm-structs jni-check services management all-gcs nmt cds static-build aot" 4283 4284 # All valid JVM variants 4285 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom" 4286 4287 ############################################################################### 4288 # Check if the specified JVM variant should be built. To be used in shell if 4289 # constructs, like this: 4290 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4291 # 4292 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4293 4294 # Definition kept in one line to allow inlining in if statements. 4295 # Additional [] needed to keep m4 from mangling shell constructs. 4296 4297 4298 ############################################################################### 4299 # Check if the specified JVM features are explicitly enabled. To be used in 4300 # shell if constructs, like this: 4301 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4302 # 4303 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4304 4305 # Definition kept in one line to allow inlining in if statements. 4306 # Additional [] needed to keep m4 from mangling shell constructs. 4307 4308 4309 ############################################################################### 4310 # Check which variants of the JVM that we want to build. Available variants are: 4311 # server: normal interpreter, and a tiered C1/C2 compiler 4312 # client: normal interpreter, and C1 (no C2 compiler) 4313 # minimal: reduced form of client with optional features stripped out 4314 # core: normal interpreter only, no compiler 4315 # zero: C++ based interpreter only, no compiler 4316 # zeroshark: C++ based interpreter, and a llvm-based compiler 4317 # custom: baseline JVM with no default features 4318 # 4319 4320 4321 ############################################################################### 4322 # Check if dtrace should be enabled and has all prerequisites present. 4323 # 4324 4325 4326 ################################################################################ 4327 # Check if AOT should be enabled 4328 # 4329 4330 4331 ############################################################################### 4332 # Set up all JVM features for each JVM variant. 4333 # 4334 4335 4336 ############################################################################### 4337 # Validate JVM features once all setup is complete, including custom setup. 4338 # 4339 4340 4341 ################################################################################ 4342 # Check if gtest should be built 4343 # 4344 4345 4346 # 4347 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4348 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4349 # 4350 # This code is free software; you can redistribute it and/or modify it 4351 # under the terms of the GNU General Public License version 2 only, as 4352 # published by the Free Software Foundation. Oracle designates this 4353 # particular file as subject to the "Classpath" exception as provided 4354 # by Oracle in the LICENSE file that accompanied this code. 4355 # 4356 # This code is distributed in the hope that it will be useful, but WITHOUT 4357 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4358 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4359 # version 2 for more details (a copy is included in the LICENSE file that 4360 # accompanied this code). 4361 # 4362 # You should have received a copy of the GNU General Public License version 4363 # 2 along with this work; if not, write to the Free Software Foundation, 4364 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4365 # 4366 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4367 # or visit www.oracle.com if you need additional information or have any 4368 # questions. 4369 # 4370 4371 ############################################################################### 4372 # Check which variant of the JDK that we want to build. 4373 # Currently we have: 4374 # normal: standard edition 4375 # but the custom make system may add other variants 4376 # 4377 # Effectively the JDK variant gives a name to a specific set of 4378 # modules to compile into the JDK. 4379 4380 4381 ############################################################################### 4382 # Set the debug level 4383 # release: no debug information, all optimizations, no asserts. 4384 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4385 # fastdebug: debug information (-g), all optimizations, all asserts 4386 # slowdebug: debug information (-g), no optimizations, all asserts 4387 4388 4389 ############################################################################### 4390 # 4391 # Should we build only OpenJDK even if closed sources are present? 4392 # 4393 4394 4395 4396 4397 ############################################################################### 4398 # 4399 # Enable or disable the elliptic curve crypto implementation 4400 # 4401 4402 4403 4404 4405 ################################################################################ 4406 # 4407 # Gcov coverage data for hotspot 4408 # 4409 4410 4411 ################################################################################ 4412 # 4413 # Static build support. When enabled will generate static 4414 # libraries instead of shared libraries for all JDK libs. 4415 # 4416 4417 4418 ################################################################################ 4419 # 4420 # jlink options. 4421 # We always keep packaged modules in JDK image. 4422 # 4423 4424 4425 ################################################################################ 4426 # 4427 # Check if building of the jtreg failure handler should be enabled. 4428 # 4429 4430 4431 ################################################################################ 4432 # 4433 # Enable or disable generation of the classlist at build time 4434 # 4435 4436 4437 # 4438 # Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. 4439 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4440 # 4441 # This code is free software; you can redistribute it and/or modify it 4442 # under the terms of the GNU General Public License version 2 only, as 4443 # published by the Free Software Foundation. Oracle designates this 4444 # particular file as subject to the "Classpath" exception as provided 4445 # by Oracle in the LICENSE file that accompanied this code. 4446 # 4447 # This code is distributed in the hope that it will be useful, but WITHOUT 4448 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4449 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4450 # version 2 for more details (a copy is included in the LICENSE file that 4451 # accompanied this code). 4452 # 4453 # You should have received a copy of the GNU General Public License version 4454 # 2 along with this work; if not, write to the Free Software Foundation, 4455 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4456 # 4457 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4458 # or visit www.oracle.com if you need additional information or have any 4459 # questions. 4460 # 4461 4462 ############################################################################### 4463 # 4464 # Setup version numbers 4465 # 4466 4467 # Verify that a given string represents a valid version number, and assign it 4468 # to a variable. 4469 4470 # Argument 1: the variable to assign to 4471 # Argument 2: the value given by the user 4472 4473 4474 4475 4476 # 4477 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4478 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4479 # 4480 # This code is free software; you can redistribute it and/or modify it 4481 # under the terms of the GNU General Public License version 2 only, as 4482 # published by the Free Software Foundation. Oracle designates this 4483 # particular file as subject to the "Classpath" exception as provided 4484 # by Oracle in the LICENSE file that accompanied this code. 4485 # 4486 # This code is distributed in the hope that it will be useful, but WITHOUT 4487 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4488 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4489 # version 2 for more details (a copy is included in the LICENSE file that 4490 # accompanied this code). 4491 # 4492 # You should have received a copy of the GNU General Public License version 4493 # 2 along with this work; if not, write to the Free Software Foundation, 4494 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4495 # 4496 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4497 # or visit www.oracle.com if you need additional information or have any 4498 # questions. 4499 # 4500 4501 # Major library component reside in separate files. 4502 # 4503 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4504 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4505 # 4506 # This code is free software; you can redistribute it and/or modify it 4507 # under the terms of the GNU General Public License version 2 only, as 4508 # published by the Free Software Foundation. Oracle designates this 4509 # particular file as subject to the "Classpath" exception as provided 4510 # by Oracle in the LICENSE file that accompanied this code. 4511 # 4512 # This code is distributed in the hope that it will be useful, but WITHOUT 4513 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4514 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4515 # version 2 for more details (a copy is included in the LICENSE file that 4516 # accompanied this code). 4517 # 4518 # You should have received a copy of the GNU General Public License version 4519 # 2 along with this work; if not, write to the Free Software Foundation, 4520 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4521 # 4522 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4523 # or visit www.oracle.com if you need additional information or have any 4524 # questions. 4525 # 4526 4527 ################################################################################ 4528 # Setup alsa (Advanced Linux Sound Architecture) 4529 ################################################################################ 4530 4531 4532 # 4533 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4534 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4535 # 4536 # This code is free software; you can redistribute it and/or modify it 4537 # under the terms of the GNU General Public License version 2 only, as 4538 # published by the Free Software Foundation. Oracle designates this 4539 # particular file as subject to the "Classpath" exception as provided 4540 # by Oracle in the LICENSE file that accompanied this code. 4541 # 4542 # This code is distributed in the hope that it will be useful, but WITHOUT 4543 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4544 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4545 # version 2 for more details (a copy is included in the LICENSE file that 4546 # accompanied this code). 4547 # 4548 # You should have received a copy of the GNU General Public License version 4549 # 2 along with this work; if not, write to the Free Software Foundation, 4550 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4551 # 4552 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4553 # or visit www.oracle.com if you need additional information or have any 4554 # questions. 4555 # 4556 4557 ################################################################################ 4558 # Setup bundled libraries. 4559 # 4560 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4561 # OpenJDK repository. Default is to use these libraries as bundled, but they 4562 # might be replaced by en external version by the user. 4563 ################################################################################ 4564 4565 4566 ################################################################################ 4567 # Setup libjpeg 4568 ################################################################################ 4569 4570 4571 ################################################################################ 4572 # Setup giflib 4573 ################################################################################ 4574 4575 4576 ################################################################################ 4577 # Setup libpng 4578 ################################################################################ 4579 4580 4581 ################################################################################ 4582 # Setup zlib 4583 ################################################################################ 4584 4585 4586 ################################################################################ 4587 # Setup lcms (Little CMS) 4588 ################################################################################ 4589 4590 4591 # 4592 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4593 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4594 # 4595 # This code is free software; you can redistribute it and/or modify it 4596 # under the terms of the GNU General Public License version 2 only, as 4597 # published by the Free Software Foundation. Oracle designates this 4598 # particular file as subject to the "Classpath" exception as provided 4599 # by Oracle in the LICENSE file that accompanied this code. 4600 # 4601 # This code is distributed in the hope that it will be useful, but WITHOUT 4602 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4603 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4604 # version 2 for more details (a copy is included in the LICENSE file that 4605 # accompanied this code). 4606 # 4607 # You should have received a copy of the GNU General Public License version 4608 # 2 along with this work; if not, write to the Free Software Foundation, 4609 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4610 # 4611 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4612 # or visit www.oracle.com if you need additional information or have any 4613 # questions. 4614 # 4615 4616 ################################################################################ 4617 # Setup cups (Common Unix Printing System) 4618 ################################################################################ 4619 4620 4621 # 4622 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4623 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4624 # 4625 # This code is free software; you can redistribute it and/or modify it 4626 # under the terms of the GNU General Public License version 2 only, as 4627 # published by the Free Software Foundation. Oracle designates this 4628 # particular file as subject to the "Classpath" exception as provided 4629 # by Oracle in the LICENSE file that accompanied this code. 4630 # 4631 # This code is distributed in the hope that it will be useful, but WITHOUT 4632 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4633 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4634 # version 2 for more details (a copy is included in the LICENSE file that 4635 # accompanied this code). 4636 # 4637 # You should have received a copy of the GNU General Public License version 4638 # 2 along with this work; if not, write to the Free Software Foundation, 4639 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4640 # 4641 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4642 # or visit www.oracle.com if you need additional information or have any 4643 # questions. 4644 # 4645 4646 ################################################################################ 4647 # Setup libffi (Foreign Function Interface) 4648 ################################################################################ 4649 4650 4651 # 4652 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4653 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4654 # 4655 # This code is free software; you can redistribute it and/or modify it 4656 # under the terms of the GNU General Public License version 2 only, as 4657 # published by the Free Software Foundation. Oracle designates this 4658 # particular file as subject to the "Classpath" exception as provided 4659 # by Oracle in the LICENSE file that accompanied this code. 4660 # 4661 # This code is distributed in the hope that it will be useful, but WITHOUT 4662 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4663 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4664 # version 2 for more details (a copy is included in the LICENSE file that 4665 # accompanied this code). 4666 # 4667 # You should have received a copy of the GNU General Public License version 4668 # 2 along with this work; if not, write to the Free Software Foundation, 4669 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4670 # 4671 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4672 # or visit www.oracle.com if you need additional information or have any 4673 # questions. 4674 # 4675 4676 ################################################################################ 4677 # Build the freetype lib from source 4678 ################################################################################ 4679 4680 4681 ################################################################################ 4682 # Check if a potential freeype library match is correct and usable 4683 ################################################################################ 4684 4685 4686 ################################################################################ 4687 # Setup freetype (The FreeType2 font rendering library) 4688 ################################################################################ 4689 4690 4691 # 4692 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4693 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4694 # 4695 # This code is free software; you can redistribute it and/or modify it 4696 # under the terms of the GNU General Public License version 2 only, as 4697 # published by the Free Software Foundation. Oracle designates this 4698 # particular file as subject to the "Classpath" exception as provided 4699 # by Oracle in the LICENSE file that accompanied this code. 4700 # 4701 # This code is distributed in the hope that it will be useful, but WITHOUT 4702 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4703 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4704 # version 2 for more details (a copy is included in the LICENSE file that 4705 # accompanied this code). 4706 # 4707 # You should have received a copy of the GNU General Public License version 4708 # 2 along with this work; if not, write to the Free Software Foundation, 4709 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4710 # 4711 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4712 # or visit www.oracle.com if you need additional information or have any 4713 # questions. 4714 # 4715 4716 ################################################################################ 4717 # Setup the standard C/C++ runtime libraries. 4718 # 4719 # Most importantly, determine if stdc++ should be linked statically or 4720 # dynamically. 4721 ################################################################################ 4722 4723 4724 # 4725 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4726 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4727 # 4728 # This code is free software; you can redistribute it and/or modify it 4729 # under the terms of the GNU General Public License version 2 only, as 4730 # published by the Free Software Foundation. Oracle designates this 4731 # particular file as subject to the "Classpath" exception as provided 4732 # by Oracle in the LICENSE file that accompanied this code. 4733 # 4734 # This code is distributed in the hope that it will be useful, but WITHOUT 4735 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4736 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4737 # version 2 for more details (a copy is included in the LICENSE file that 4738 # accompanied this code). 4739 # 4740 # You should have received a copy of the GNU General Public License version 4741 # 2 along with this work; if not, write to the Free Software Foundation, 4742 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4743 # 4744 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4745 # or visit www.oracle.com if you need additional information or have any 4746 # questions. 4747 # 4748 4749 ################################################################################ 4750 # Setup X11 Windows system 4751 ################################################################################ 4752 4753 4754 # 4755 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4756 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4757 # 4758 # This code is free software; you can redistribute it and/or modify it 4759 # under the terms of the GNU General Public License version 2 only, as 4760 # published by the Free Software Foundation. Oracle designates this 4761 # particular file as subject to the "Classpath" exception as provided 4762 # by Oracle in the LICENSE file that accompanied this code. 4763 # 4764 # This code is distributed in the hope that it will be useful, but WITHOUT 4765 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4766 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4767 # version 2 for more details (a copy is included in the LICENSE file that 4768 # accompanied this code). 4769 # 4770 # You should have received a copy of the GNU General Public License version 4771 # 2 along with this work; if not, write to the Free Software Foundation, 4772 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4773 # 4774 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4775 # or visit www.oracle.com if you need additional information or have any 4776 # questions. 4777 # 4778 4779 ################################################################################ 4780 # Setup libelf (ELF library) 4781 ################################################################################ 4782 4783 4784 4785 ################################################################################ 4786 # Determine which libraries are needed for this configuration 4787 ################################################################################ 4788 4789 4790 ################################################################################ 4791 # Parse library options, and setup needed libraries 4792 ################################################################################ 4793 4794 4795 ################################################################################ 4796 # Setup llvm (Low-Level VM) 4797 ################################################################################ 4798 4799 4800 ################################################################################ 4801 # Setup various libraries, typically small system libraries 4802 ################################################################################ 4803 4804 4805 ################################################################################ 4806 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4807 # redistribute it in the test image. 4808 ################################################################################ 4809 4810 4811 4812 # 4813 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4814 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4815 # 4816 # This code is free software; you can redistribute it and/or modify it 4817 # under the terms of the GNU General Public License version 2 only, as 4818 # published by the Free Software Foundation. Oracle designates this 4819 # particular file as subject to the "Classpath" exception as provided 4820 # by Oracle in the LICENSE file that accompanied this code. 4821 # 4822 # This code is distributed in the hope that it will be useful, but WITHOUT 4823 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4824 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4825 # version 2 for more details (a copy is included in the LICENSE file that 4826 # accompanied this code). 4827 # 4828 # You should have received a copy of the GNU General Public License version 4829 # 2 along with this work; if not, write to the Free Software Foundation, 4830 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4831 # 4832 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4833 # or visit www.oracle.com if you need additional information or have any 4834 # questions. 4835 # 4836 4837 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4838 # Converts autoconf style CPU name to OpenJDK style, into 4839 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4840 4841 4842 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4843 # Converts autoconf style OS name to OpenJDK style, into 4844 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4845 4846 4847 # Expects $host_os $host_cpu $build_os and $build_cpu 4848 # and $with_target_bits to have been setup! 4849 # 4850 # Translate the standard triplet(quadruplet) definition 4851 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4852 # OPENJDK_BUILD_OS, etc. 4853 4854 4855 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4856 # accordingly. Must be done after setting up build and target system, but before 4857 # doing anything else with these values. 4858 4859 4860 # Setup the legacy variables, for controlling the old makefiles. 4861 # 4862 4863 4864 # $1 - Either TARGET or BUILD to setup the variables for. 4865 4866 4867 4868 4869 #%%% Build and target systems %%% 4870 4871 4872 4873 4874 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4875 # Add -mX to various FLAGS variables. 4876 4877 4878 4879 4880 4881 4882 # 4883 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4884 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4885 # 4886 # This code is free software; you can redistribute it and/or modify it 4887 # under the terms of the GNU General Public License version 2 only, as 4888 # published by the Free Software Foundation. Oracle designates this 4889 # particular file as subject to the "Classpath" exception as provided 4890 # by Oracle in the LICENSE file that accompanied this code. 4891 # 4892 # This code is distributed in the hope that it will be useful, but WITHOUT 4893 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4894 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4895 # version 2 for more details (a copy is included in the LICENSE file that 4896 # accompanied this code). 4897 # 4898 # You should have received a copy of the GNU General Public License version 4899 # 2 along with this work; if not, write to the Free Software Foundation, 4900 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4901 # 4902 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4903 # or visit www.oracle.com if you need additional information or have any 4904 # questions. 4905 # 4906 4907 4908 4909 4910 4911 4912 4913 ################################################################################ 4914 # Define a mechanism for importing extra prebuilt modules 4915 # 4916 4917 4918 4919 # 4920 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4921 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4922 # 4923 # This code is free software; you can redistribute it and/or modify it 4924 # under the terms of the GNU General Public License version 2 only, as 4925 # published by the Free Software Foundation. Oracle designates this 4926 # particular file as subject to the "Classpath" exception as provided 4927 # by Oracle in the LICENSE file that accompanied this code. 4928 # 4929 # This code is distributed in the hope that it will be useful, but WITHOUT 4930 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4931 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4932 # version 2 for more details (a copy is included in the LICENSE file that 4933 # accompanied this code). 4934 # 4935 # You should have received a copy of the GNU General Public License version 4936 # 2 along with this work; if not, write to the Free Software Foundation, 4937 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4938 # 4939 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4940 # or visit www.oracle.com if you need additional information or have any 4941 # questions. 4942 # 4943 4944 ######################################################################## 4945 # This file is responsible for detecting, verifying and setting up the 4946 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4947 # proper paths to the binaries, but it will not setup any flags. 4948 # 4949 # The binaries used is determined by the toolchain type, which is the family of 4950 # compilers and related tools that are used. 4951 ######################################################################## 4952 4953 4954 # All valid toolchains, regardless of platform (used by help.m4) 4955 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4956 4957 # These toolchains are valid on different platforms 4958 VALID_TOOLCHAINS_linux="gcc clang" 4959 VALID_TOOLCHAINS_solaris="solstudio" 4960 VALID_TOOLCHAINS_macosx="gcc clang" 4961 VALID_TOOLCHAINS_aix="xlc" 4962 VALID_TOOLCHAINS_windows="microsoft" 4963 4964 # Toolchain descriptions 4965 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4966 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4967 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4968 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4969 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4970 4971 # Minimum supported versions, empty means unspecified 4972 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 4973 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3" 4974 TOOLCHAIN_MINIMUM_VERSION_microsoft="" 4975 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13" 4976 TOOLCHAIN_MINIMUM_VERSION_xlc="" 4977 4978 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4979 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4980 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4981 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4982 4983 4984 # Check if the configured compiler (C and C++) is of a specific version or 4985 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4986 # 4987 # Arguments: 4988 # VERSION: The version string to check against the found version 4989 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 4990 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 4991 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 4992 4993 4994 4995 4996 # Setup a number of variables describing how native output files are 4997 # named on this platform/toolchain. 4998 4999 5000 # Determine which toolchain type to use, and make sure it is valid for this 5001 # platform. Setup various information about the selected toolchain. 5002 5003 5004 # Before we start detecting the toolchain executables, we might need some 5005 # special setup, e.g. additional paths etc. 5006 5007 5008 # Restore path, etc 5009 5010 5011 # Check if a compiler is of the toolchain type we expect, and save the version 5012 # information from it. If the compiler does not match the expected type, 5013 # this function will abort using AC_MSG_ERROR. If it matches, the version will 5014 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 5015 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 5016 # 5017 # $1 = compiler to test (CC or CXX) 5018 # $2 = human readable name of compiler (C or C++) 5019 5020 5021 # Try to locate the given C or C++ compiler in the path, or otherwise. 5022 # 5023 # $1 = compiler to test (CC or CXX) 5024 # $2 = human readable name of compiler (C or C++) 5025 # $3 = list of compiler names to search for 5026 5027 5028 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 5029 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 5030 # archiver (AR). Verify that the compilers are correct according to the 5031 # toolchain type. 5032 5033 5034 # Setup additional tools that is considered a part of the toolchain, but not the 5035 # core part. Many of these are highly platform-specific and do not exist, 5036 # and/or are not needed on all platforms. 5037 5038 5039 # Setup the build tools (i.e, the compiler and linker used to build programs 5040 # that should be run on the build platform, not the target platform, as a build 5041 # helper). Since the non-cross-compile case uses the normal, target compilers 5042 # for this, we can only do this after these have been setup. 5043 5044 5045 # Setup legacy variables that are still needed as alternative ways to refer to 5046 # parts of the toolchain. 5047 5048 5049 # Do some additional checks on the detected tools. 5050 5051 5052 # Setup the JTReg Regression Test Harness. 5053 5054 5055 # 5056 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 5057 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5058 # 5059 # This code is free software; you can redistribute it and/or modify it 5060 # under the terms of the GNU General Public License version 2 only, as 5061 # published by the Free Software Foundation. Oracle designates this 5062 # particular file as subject to the "Classpath" exception as provided 5063 # by Oracle in the LICENSE file that accompanied this code. 5064 # 5065 # This code is distributed in the hope that it will be useful, but WITHOUT 5066 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5067 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5068 # version 2 for more details (a copy is included in the LICENSE file that 5069 # accompanied this code). 5070 # 5071 # You should have received a copy of the GNU General Public License version 5072 # 2 along with this work; if not, write to the Free Software Foundation, 5073 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5074 # 5075 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5076 # or visit www.oracle.com if you need additional information or have any 5077 # questions. 5078 # 5079 5080 ################################################################################ 5081 # The order of these defines the priority by which we try to find them. 5082 VALID_VS_VERSIONS="2013 2012 2010" 5083 5084 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5085 VS_VERSION_INTERNAL_2010=100 5086 VS_MSVCR_2010=msvcr100.dll 5087 # We don't use msvcp on Visual Studio 2010 5088 #VS_MSVCP_2010=msvcp100.dll 5089 VS_ENVVAR_2010="VS100COMNTOOLS" 5090 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5091 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5092 VS_VS_PLATFORM_NAME_2010="v100" 5093 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5094 5095 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5096 VS_VERSION_INTERNAL_2012=110 5097 VS_MSVCR_2012=msvcr110.dll 5098 VS_MSVCP_2012=msvcp110.dll 5099 VS_ENVVAR_2012="VS110COMNTOOLS" 5100 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5101 VS_SDK_INSTALLDIR_2012= 5102 VS_VS_PLATFORM_NAME_2012="v110" 5103 VS_SDK_PLATFORM_NAME_2012= 5104 5105 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5106 VS_VERSION_INTERNAL_2013=120 5107 VS_MSVCR_2013=msvcr120.dll 5108 VS_MSVCP_2013=msvcp120.dll 5109 VS_ENVVAR_2013="VS120COMNTOOLS" 5110 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5111 VS_SDK_INSTALLDIR_2013= 5112 VS_VS_PLATFORM_NAME_2013="v120" 5113 VS_SDK_PLATFORM_NAME_2013= 5114 5115 ################################################################################ 5116 5117 5118 5119 ################################################################################ 5120 5121 5122 5123 ################################################################################ 5124 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5125 # build environment and assigns it to VS_ENV_CMD 5126 5127 5128 ################################################################################ 5129 5130 5131 5132 ################################################################################ 5133 # Check if the VS env variables were setup prior to running configure. 5134 # If not, then find vcvarsall.bat and run it automatically, and integrate 5135 # the set env variables into the spec file. 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 # This line needs to be here, verbatim, after all includes and the dummy hook 5151 # definitions. It is replaced with custom functionality when building 5152 # custom sources. 5153 #CUSTOM_AUTOCONF_INCLUDE 5154 5155 # Do not change or remove the following line, it is needed for consistency checks: 5156 DATE_WHEN_GENERATED=1477629130 5157 5158 ############################################################################### 5159 # 5160 # Initialization / Boot-strapping 5161 # 5162 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5163 # thus it jumps back and forth, each time gaining something needed later on. 5164 # 5165 ############################################################################### 5166 5167 # If we are requested to print additional help, do that and then exit. 5168 # This must be the very first call. 5169 5170 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5171 5172 # Print available toolchains 5173 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5174 $PRINTF "Which are valid to use depends on the build platform.\n" 5175 for toolchain in $VALID_TOOLCHAINS_all; do 5176 # Use indirect variable referencing 5177 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5178 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5179 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5180 done 5181 $PRINTF "\n" 5182 5183 # Print available jvm features 5184 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5185 $PRINTF "Which are valid to use depends on the target platform.\n " 5186 $PRINTF "%s " $VALID_JVM_FEATURES 5187 $PRINTF "\n" 5188 5189 # And now exit directly 5190 exit 0 5191 fi 5192 5193 5194 # Basic initialization that must happen first of all in the normal process. 5195 5196 # Save the original command line. This is passed to us by the wrapper configure script. 5197 5198 # Save the path variable before it gets changed 5199 ORIGINAL_PATH="$PATH" 5200 5201 DATE_WHEN_CONFIGURED=`LANG=C date` 5202 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5204 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5206 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5207 5208 5209 # Start with tools that do not need have cross compilation support 5210 # and can be expected to be found in the default PATH. These tools are 5211 # used by configure. 5212 5213 # First are all the simple required tools. 5214 5215 5216 5217 # Publish this variable in the help. 5218 5219 5220 if [ -z "${BASENAME+x}" ]; then 5221 # The variable is not set by user, try to locate tool using the code snippet 5222 for ac_prog in basename 5223 do 5224 # Extract the first word of "$ac_prog", so it can be a program name with args. 5225 set dummy $ac_prog; ac_word=$2 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5227 $as_echo_n "checking for $ac_word... " >&6; } 5228 if ${ac_cv_path_BASENAME+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230 else 5231 case $BASENAME in 5232 [\\/]* | ?:[\\/]*) 5233 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5234 ;; 5235 *) 5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5237 for as_dir in $PATH 5238 do 5239 IFS=$as_save_IFS 5240 test -z "$as_dir" && as_dir=. 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5243 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247 done 5248 done 5249 IFS=$as_save_IFS 5250 5251 ;; 5252 esac 5253 fi 5254 BASENAME=$ac_cv_path_BASENAME 5255 if test -n "$BASENAME"; then 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5257 $as_echo "$BASENAME" >&6; } 5258 else 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5260 $as_echo "no" >&6; } 5261 fi 5262 5263 5264 test -n "$BASENAME" && break 5265 done 5266 5267 else 5268 # The variable is set, but is it from the command line or the environment? 5269 5270 # Try to remove the string !BASENAME! from our list. 5271 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5272 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5273 # If it failed, the variable was not from the command line. Ignore it, 5274 # but warn the user (except for BASH, which is always set by the calling BASH). 5275 if test "xBASENAME" != xBASH; then 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5277 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5278 fi 5279 # Try to locate tool using the code snippet 5280 for ac_prog in basename 5281 do 5282 # Extract the first word of "$ac_prog", so it can be a program name with args. 5283 set dummy $ac_prog; ac_word=$2 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5285 $as_echo_n "checking for $ac_word... " >&6; } 5286 if ${ac_cv_path_BASENAME+:} false; then : 5287 $as_echo_n "(cached) " >&6 5288 else 5289 case $BASENAME in 5290 [\\/]* | ?:[\\/]*) 5291 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5292 ;; 5293 *) 5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295 for as_dir in $PATH 5296 do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_exec_ext in '' $ac_executable_extensions; do 5300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5301 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5303 break 2 5304 fi 5305 done 5306 done 5307 IFS=$as_save_IFS 5308 5309 ;; 5310 esac 5311 fi 5312 BASENAME=$ac_cv_path_BASENAME 5313 if test -n "$BASENAME"; then 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5315 $as_echo "$BASENAME" >&6; } 5316 else 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5318 $as_echo "no" >&6; } 5319 fi 5320 5321 5322 test -n "$BASENAME" && break 5323 done 5324 5325 else 5326 # If it succeeded, then it was overridden by the user. We will use it 5327 # for the tool. 5328 5329 # First remove it from the list of overridden variables, so we can test 5330 # for unknown variables in the end. 5331 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5332 5333 # Check if we try to supply an empty value 5334 if test "x$BASENAME" = x; then 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5336 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5338 $as_echo_n "checking for BASENAME... " >&6; } 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5340 $as_echo "disabled" >&6; } 5341 else 5342 # Check if the provided tool contains a complete path. 5343 tool_specified="$BASENAME" 5344 tool_basename="${tool_specified##*/}" 5345 if test "x$tool_basename" = "x$tool_specified"; then 5346 # A command without a complete path is provided, search $PATH. 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5348 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5349 # Extract the first word of "$tool_basename", so it can be a program name with args. 5350 set dummy $tool_basename; ac_word=$2 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5352 $as_echo_n "checking for $ac_word... " >&6; } 5353 if ${ac_cv_path_BASENAME+:} false; then : 5354 $as_echo_n "(cached) " >&6 5355 else 5356 case $BASENAME in 5357 [\\/]* | ?:[\\/]*) 5358 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5359 ;; 5360 *) 5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5362 for as_dir in $PATH 5363 do 5364 IFS=$as_save_IFS 5365 test -z "$as_dir" && as_dir=. 5366 for ac_exec_ext in '' $ac_executable_extensions; do 5367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5368 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5370 break 2 5371 fi 5372 done 5373 done 5374 IFS=$as_save_IFS 5375 5376 ;; 5377 esac 5378 fi 5379 BASENAME=$ac_cv_path_BASENAME 5380 if test -n "$BASENAME"; then 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5382 $as_echo "$BASENAME" >&6; } 5383 else 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5385 $as_echo "no" >&6; } 5386 fi 5387 5388 5389 if test "x$BASENAME" = x; then 5390 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5391 fi 5392 else 5393 # Otherwise we believe it is a complete path. Use it as it is. 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5395 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5397 $as_echo_n "checking for BASENAME... " >&6; } 5398 if test ! -x "$tool_specified"; then 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5400 $as_echo "not found" >&6; } 5401 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5402 fi 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5404 $as_echo "$tool_specified" >&6; } 5405 fi 5406 fi 5407 fi 5408 5409 fi 5410 5411 5412 5413 if test "x$BASENAME" = x; then 5414 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5415 fi 5416 5417 5418 5419 5420 5421 # Publish this variable in the help. 5422 5423 5424 if [ -z "${BASH+x}" ]; then 5425 # The variable is not set by user, try to locate tool using the code snippet 5426 for ac_prog in bash 5427 do 5428 # Extract the first word of "$ac_prog", so it can be a program name with args. 5429 set dummy $ac_prog; ac_word=$2 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5431 $as_echo_n "checking for $ac_word... " >&6; } 5432 if ${ac_cv_path_BASH+:} false; then : 5433 $as_echo_n "(cached) " >&6 5434 else 5435 case $BASH in 5436 [\\/]* | ?:[\\/]*) 5437 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5438 ;; 5439 *) 5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5441 for as_dir in $PATH 5442 do 5443 IFS=$as_save_IFS 5444 test -z "$as_dir" && as_dir=. 5445 for ac_exec_ext in '' $ac_executable_extensions; do 5446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5447 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5449 break 2 5450 fi 5451 done 5452 done 5453 IFS=$as_save_IFS 5454 5455 ;; 5456 esac 5457 fi 5458 BASH=$ac_cv_path_BASH 5459 if test -n "$BASH"; then 5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5461 $as_echo "$BASH" >&6; } 5462 else 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5464 $as_echo "no" >&6; } 5465 fi 5466 5467 5468 test -n "$BASH" && break 5469 done 5470 5471 else 5472 # The variable is set, but is it from the command line or the environment? 5473 5474 # Try to remove the string !BASH! from our list. 5475 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5476 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5477 # If it failed, the variable was not from the command line. Ignore it, 5478 # but warn the user (except for BASH, which is always set by the calling BASH). 5479 if test "xBASH" != xBASH; then 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5481 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5482 fi 5483 # Try to locate tool using the code snippet 5484 for ac_prog in bash 5485 do 5486 # Extract the first word of "$ac_prog", so it can be a program name with args. 5487 set dummy $ac_prog; ac_word=$2 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5489 $as_echo_n "checking for $ac_word... " >&6; } 5490 if ${ac_cv_path_BASH+:} false; then : 5491 $as_echo_n "(cached) " >&6 5492 else 5493 case $BASH in 5494 [\\/]* | ?:[\\/]*) 5495 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5496 ;; 5497 *) 5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5499 for as_dir in $PATH 5500 do 5501 IFS=$as_save_IFS 5502 test -z "$as_dir" && as_dir=. 5503 for ac_exec_ext in '' $ac_executable_extensions; do 5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5505 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5507 break 2 5508 fi 5509 done 5510 done 5511 IFS=$as_save_IFS 5512 5513 ;; 5514 esac 5515 fi 5516 BASH=$ac_cv_path_BASH 5517 if test -n "$BASH"; then 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5519 $as_echo "$BASH" >&6; } 5520 else 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5522 $as_echo "no" >&6; } 5523 fi 5524 5525 5526 test -n "$BASH" && break 5527 done 5528 5529 else 5530 # If it succeeded, then it was overridden by the user. We will use it 5531 # for the tool. 5532 5533 # First remove it from the list of overridden variables, so we can test 5534 # for unknown variables in the end. 5535 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5536 5537 # Check if we try to supply an empty value 5538 if test "x$BASH" = x; then 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5540 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5542 $as_echo_n "checking for BASH... " >&6; } 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5544 $as_echo "disabled" >&6; } 5545 else 5546 # Check if the provided tool contains a complete path. 5547 tool_specified="$BASH" 5548 tool_basename="${tool_specified##*/}" 5549 if test "x$tool_basename" = "x$tool_specified"; then 5550 # A command without a complete path is provided, search $PATH. 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5552 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5553 # Extract the first word of "$tool_basename", so it can be a program name with args. 5554 set dummy $tool_basename; ac_word=$2 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5556 $as_echo_n "checking for $ac_word... " >&6; } 5557 if ${ac_cv_path_BASH+:} false; then : 5558 $as_echo_n "(cached) " >&6 5559 else 5560 case $BASH in 5561 [\\/]* | ?:[\\/]*) 5562 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5563 ;; 5564 *) 5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5566 for as_dir in $PATH 5567 do 5568 IFS=$as_save_IFS 5569 test -z "$as_dir" && as_dir=. 5570 for ac_exec_ext in '' $ac_executable_extensions; do 5571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5572 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5574 break 2 5575 fi 5576 done 5577 done 5578 IFS=$as_save_IFS 5579 5580 ;; 5581 esac 5582 fi 5583 BASH=$ac_cv_path_BASH 5584 if test -n "$BASH"; then 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5586 $as_echo "$BASH" >&6; } 5587 else 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5589 $as_echo "no" >&6; } 5590 fi 5591 5592 5593 if test "x$BASH" = x; then 5594 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5595 fi 5596 else 5597 # Otherwise we believe it is a complete path. Use it as it is. 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5599 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5601 $as_echo_n "checking for BASH... " >&6; } 5602 if test ! -x "$tool_specified"; then 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5604 $as_echo "not found" >&6; } 5605 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5606 fi 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5608 $as_echo "$tool_specified" >&6; } 5609 fi 5610 fi 5611 fi 5612 5613 fi 5614 5615 5616 5617 if test "x$BASH" = x; then 5618 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5619 fi 5620 5621 5622 5623 5624 5625 # Publish this variable in the help. 5626 5627 5628 if [ -z "${CAT+x}" ]; then 5629 # The variable is not set by user, try to locate tool using the code snippet 5630 for ac_prog in cat 5631 do 5632 # Extract the first word of "$ac_prog", so it can be a program name with args. 5633 set dummy $ac_prog; ac_word=$2 5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5635 $as_echo_n "checking for $ac_word... " >&6; } 5636 if ${ac_cv_path_CAT+:} false; then : 5637 $as_echo_n "(cached) " >&6 5638 else 5639 case $CAT in 5640 [\\/]* | ?:[\\/]*) 5641 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5642 ;; 5643 *) 5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5645 for as_dir in $PATH 5646 do 5647 IFS=$as_save_IFS 5648 test -z "$as_dir" && as_dir=. 5649 for ac_exec_ext in '' $ac_executable_extensions; do 5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5651 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5653 break 2 5654 fi 5655 done 5656 done 5657 IFS=$as_save_IFS 5658 5659 ;; 5660 esac 5661 fi 5662 CAT=$ac_cv_path_CAT 5663 if test -n "$CAT"; then 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5665 $as_echo "$CAT" >&6; } 5666 else 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5668 $as_echo "no" >&6; } 5669 fi 5670 5671 5672 test -n "$CAT" && break 5673 done 5674 5675 else 5676 # The variable is set, but is it from the command line or the environment? 5677 5678 # Try to remove the string !CAT! from our list. 5679 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5680 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5681 # If it failed, the variable was not from the command line. Ignore it, 5682 # but warn the user (except for BASH, which is always set by the calling BASH). 5683 if test "xCAT" != xBASH; then 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5685 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5686 fi 5687 # Try to locate tool using the code snippet 5688 for ac_prog in cat 5689 do 5690 # Extract the first word of "$ac_prog", so it can be a program name with args. 5691 set dummy $ac_prog; ac_word=$2 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5693 $as_echo_n "checking for $ac_word... " >&6; } 5694 if ${ac_cv_path_CAT+:} false; then : 5695 $as_echo_n "(cached) " >&6 5696 else 5697 case $CAT in 5698 [\\/]* | ?:[\\/]*) 5699 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5700 ;; 5701 *) 5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5703 for as_dir in $PATH 5704 do 5705 IFS=$as_save_IFS 5706 test -z "$as_dir" && as_dir=. 5707 for ac_exec_ext in '' $ac_executable_extensions; do 5708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5709 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5711 break 2 5712 fi 5713 done 5714 done 5715 IFS=$as_save_IFS 5716 5717 ;; 5718 esac 5719 fi 5720 CAT=$ac_cv_path_CAT 5721 if test -n "$CAT"; then 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5723 $as_echo "$CAT" >&6; } 5724 else 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5726 $as_echo "no" >&6; } 5727 fi 5728 5729 5730 test -n "$CAT" && break 5731 done 5732 5733 else 5734 # If it succeeded, then it was overridden by the user. We will use it 5735 # for the tool. 5736 5737 # First remove it from the list of overridden variables, so we can test 5738 # for unknown variables in the end. 5739 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5740 5741 # Check if we try to supply an empty value 5742 if test "x$CAT" = x; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5744 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5746 $as_echo_n "checking for CAT... " >&6; } 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5748 $as_echo "disabled" >&6; } 5749 else 5750 # Check if the provided tool contains a complete path. 5751 tool_specified="$CAT" 5752 tool_basename="${tool_specified##*/}" 5753 if test "x$tool_basename" = "x$tool_specified"; then 5754 # A command without a complete path is provided, search $PATH. 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5756 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5757 # Extract the first word of "$tool_basename", so it can be a program name with args. 5758 set dummy $tool_basename; ac_word=$2 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5760 $as_echo_n "checking for $ac_word... " >&6; } 5761 if ${ac_cv_path_CAT+:} false; then : 5762 $as_echo_n "(cached) " >&6 5763 else 5764 case $CAT in 5765 [\\/]* | ?:[\\/]*) 5766 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5767 ;; 5768 *) 5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5770 for as_dir in $PATH 5771 do 5772 IFS=$as_save_IFS 5773 test -z "$as_dir" && as_dir=. 5774 for ac_exec_ext in '' $ac_executable_extensions; do 5775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5776 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5778 break 2 5779 fi 5780 done 5781 done 5782 IFS=$as_save_IFS 5783 5784 ;; 5785 esac 5786 fi 5787 CAT=$ac_cv_path_CAT 5788 if test -n "$CAT"; then 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5790 $as_echo "$CAT" >&6; } 5791 else 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5793 $as_echo "no" >&6; } 5794 fi 5795 5796 5797 if test "x$CAT" = x; then 5798 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5799 fi 5800 else 5801 # Otherwise we believe it is a complete path. Use it as it is. 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5803 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5805 $as_echo_n "checking for CAT... " >&6; } 5806 if test ! -x "$tool_specified"; then 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5808 $as_echo "not found" >&6; } 5809 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5810 fi 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5812 $as_echo "$tool_specified" >&6; } 5813 fi 5814 fi 5815 fi 5816 5817 fi 5818 5819 5820 5821 if test "x$CAT" = x; then 5822 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5823 fi 5824 5825 5826 5827 5828 5829 # Publish this variable in the help. 5830 5831 5832 if [ -z "${CHMOD+x}" ]; then 5833 # The variable is not set by user, try to locate tool using the code snippet 5834 for ac_prog in chmod 5835 do 5836 # Extract the first word of "$ac_prog", so it can be a program name with args. 5837 set dummy $ac_prog; ac_word=$2 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5839 $as_echo_n "checking for $ac_word... " >&6; } 5840 if ${ac_cv_path_CHMOD+:} false; then : 5841 $as_echo_n "(cached) " >&6 5842 else 5843 case $CHMOD in 5844 [\\/]* | ?:[\\/]*) 5845 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5846 ;; 5847 *) 5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5849 for as_dir in $PATH 5850 do 5851 IFS=$as_save_IFS 5852 test -z "$as_dir" && as_dir=. 5853 for ac_exec_ext in '' $ac_executable_extensions; do 5854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5855 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5857 break 2 5858 fi 5859 done 5860 done 5861 IFS=$as_save_IFS 5862 5863 ;; 5864 esac 5865 fi 5866 CHMOD=$ac_cv_path_CHMOD 5867 if test -n "$CHMOD"; then 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5869 $as_echo "$CHMOD" >&6; } 5870 else 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5872 $as_echo "no" >&6; } 5873 fi 5874 5875 5876 test -n "$CHMOD" && break 5877 done 5878 5879 else 5880 # The variable is set, but is it from the command line or the environment? 5881 5882 # Try to remove the string !CHMOD! from our list. 5883 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5884 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5885 # If it failed, the variable was not from the command line. Ignore it, 5886 # but warn the user (except for BASH, which is always set by the calling BASH). 5887 if test "xCHMOD" != xBASH; then 5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5889 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5890 fi 5891 # Try to locate tool using the code snippet 5892 for ac_prog in chmod 5893 do 5894 # Extract the first word of "$ac_prog", so it can be a program name with args. 5895 set dummy $ac_prog; ac_word=$2 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5897 $as_echo_n "checking for $ac_word... " >&6; } 5898 if ${ac_cv_path_CHMOD+:} false; then : 5899 $as_echo_n "(cached) " >&6 5900 else 5901 case $CHMOD in 5902 [\\/]* | ?:[\\/]*) 5903 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5904 ;; 5905 *) 5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5907 for as_dir in $PATH 5908 do 5909 IFS=$as_save_IFS 5910 test -z "$as_dir" && as_dir=. 5911 for ac_exec_ext in '' $ac_executable_extensions; do 5912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5913 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5915 break 2 5916 fi 5917 done 5918 done 5919 IFS=$as_save_IFS 5920 5921 ;; 5922 esac 5923 fi 5924 CHMOD=$ac_cv_path_CHMOD 5925 if test -n "$CHMOD"; then 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5927 $as_echo "$CHMOD" >&6; } 5928 else 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5930 $as_echo "no" >&6; } 5931 fi 5932 5933 5934 test -n "$CHMOD" && break 5935 done 5936 5937 else 5938 # If it succeeded, then it was overridden by the user. We will use it 5939 # for the tool. 5940 5941 # First remove it from the list of overridden variables, so we can test 5942 # for unknown variables in the end. 5943 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5944 5945 # Check if we try to supply an empty value 5946 if test "x$CHMOD" = x; then 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5948 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5950 $as_echo_n "checking for CHMOD... " >&6; } 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5952 $as_echo "disabled" >&6; } 5953 else 5954 # Check if the provided tool contains a complete path. 5955 tool_specified="$CHMOD" 5956 tool_basename="${tool_specified##*/}" 5957 if test "x$tool_basename" = "x$tool_specified"; then 5958 # A command without a complete path is provided, search $PATH. 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5960 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5961 # Extract the first word of "$tool_basename", so it can be a program name with args. 5962 set dummy $tool_basename; ac_word=$2 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5964 $as_echo_n "checking for $ac_word... " >&6; } 5965 if ${ac_cv_path_CHMOD+:} false; then : 5966 $as_echo_n "(cached) " >&6 5967 else 5968 case $CHMOD in 5969 [\\/]* | ?:[\\/]*) 5970 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5971 ;; 5972 *) 5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5974 for as_dir in $PATH 5975 do 5976 IFS=$as_save_IFS 5977 test -z "$as_dir" && as_dir=. 5978 for ac_exec_ext in '' $ac_executable_extensions; do 5979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5980 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5982 break 2 5983 fi 5984 done 5985 done 5986 IFS=$as_save_IFS 5987 5988 ;; 5989 esac 5990 fi 5991 CHMOD=$ac_cv_path_CHMOD 5992 if test -n "$CHMOD"; then 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5994 $as_echo "$CHMOD" >&6; } 5995 else 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5997 $as_echo "no" >&6; } 5998 fi 5999 6000 6001 if test "x$CHMOD" = x; then 6002 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6003 fi 6004 else 6005 # Otherwise we believe it is a complete path. Use it as it is. 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 6007 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 6009 $as_echo_n "checking for CHMOD... " >&6; } 6010 if test ! -x "$tool_specified"; then 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6012 $as_echo "not found" >&6; } 6013 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 6014 fi 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6016 $as_echo "$tool_specified" >&6; } 6017 fi 6018 fi 6019 fi 6020 6021 fi 6022 6023 6024 6025 if test "x$CHMOD" = x; then 6026 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 6027 fi 6028 6029 6030 6031 6032 6033 # Publish this variable in the help. 6034 6035 6036 if [ -z "${CMP+x}" ]; then 6037 # The variable is not set by user, try to locate tool using the code snippet 6038 for ac_prog in cmp 6039 do 6040 # Extract the first word of "$ac_prog", so it can be a program name with args. 6041 set dummy $ac_prog; ac_word=$2 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6043 $as_echo_n "checking for $ac_word... " >&6; } 6044 if ${ac_cv_path_CMP+:} false; then : 6045 $as_echo_n "(cached) " >&6 6046 else 6047 case $CMP in 6048 [\\/]* | ?:[\\/]*) 6049 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6050 ;; 6051 *) 6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6053 for as_dir in $PATH 6054 do 6055 IFS=$as_save_IFS 6056 test -z "$as_dir" && as_dir=. 6057 for ac_exec_ext in '' $ac_executable_extensions; do 6058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6059 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6061 break 2 6062 fi 6063 done 6064 done 6065 IFS=$as_save_IFS 6066 6067 ;; 6068 esac 6069 fi 6070 CMP=$ac_cv_path_CMP 6071 if test -n "$CMP"; then 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6073 $as_echo "$CMP" >&6; } 6074 else 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6076 $as_echo "no" >&6; } 6077 fi 6078 6079 6080 test -n "$CMP" && break 6081 done 6082 6083 else 6084 # The variable is set, but is it from the command line or the environment? 6085 6086 # Try to remove the string !CMP! from our list. 6087 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6088 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6089 # If it failed, the variable was not from the command line. Ignore it, 6090 # but warn the user (except for BASH, which is always set by the calling BASH). 6091 if test "xCMP" != xBASH; then 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6093 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6094 fi 6095 # Try to locate tool using the code snippet 6096 for ac_prog in cmp 6097 do 6098 # Extract the first word of "$ac_prog", so it can be a program name with args. 6099 set dummy $ac_prog; ac_word=$2 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6101 $as_echo_n "checking for $ac_word... " >&6; } 6102 if ${ac_cv_path_CMP+:} false; then : 6103 $as_echo_n "(cached) " >&6 6104 else 6105 case $CMP in 6106 [\\/]* | ?:[\\/]*) 6107 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6108 ;; 6109 *) 6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6111 for as_dir in $PATH 6112 do 6113 IFS=$as_save_IFS 6114 test -z "$as_dir" && as_dir=. 6115 for ac_exec_ext in '' $ac_executable_extensions; do 6116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6117 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6119 break 2 6120 fi 6121 done 6122 done 6123 IFS=$as_save_IFS 6124 6125 ;; 6126 esac 6127 fi 6128 CMP=$ac_cv_path_CMP 6129 if test -n "$CMP"; then 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6131 $as_echo "$CMP" >&6; } 6132 else 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6134 $as_echo "no" >&6; } 6135 fi 6136 6137 6138 test -n "$CMP" && break 6139 done 6140 6141 else 6142 # If it succeeded, then it was overridden by the user. We will use it 6143 # for the tool. 6144 6145 # First remove it from the list of overridden variables, so we can test 6146 # for unknown variables in the end. 6147 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6148 6149 # Check if we try to supply an empty value 6150 if test "x$CMP" = x; then 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6152 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6154 $as_echo_n "checking for CMP... " >&6; } 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6156 $as_echo "disabled" >&6; } 6157 else 6158 # Check if the provided tool contains a complete path. 6159 tool_specified="$CMP" 6160 tool_basename="${tool_specified##*/}" 6161 if test "x$tool_basename" = "x$tool_specified"; then 6162 # A command without a complete path is provided, search $PATH. 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6164 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6165 # Extract the first word of "$tool_basename", so it can be a program name with args. 6166 set dummy $tool_basename; ac_word=$2 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6168 $as_echo_n "checking for $ac_word... " >&6; } 6169 if ${ac_cv_path_CMP+:} false; then : 6170 $as_echo_n "(cached) " >&6 6171 else 6172 case $CMP in 6173 [\\/]* | ?:[\\/]*) 6174 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6175 ;; 6176 *) 6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6178 for as_dir in $PATH 6179 do 6180 IFS=$as_save_IFS 6181 test -z "$as_dir" && as_dir=. 6182 for ac_exec_ext in '' $ac_executable_extensions; do 6183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6184 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6186 break 2 6187 fi 6188 done 6189 done 6190 IFS=$as_save_IFS 6191 6192 ;; 6193 esac 6194 fi 6195 CMP=$ac_cv_path_CMP 6196 if test -n "$CMP"; then 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6198 $as_echo "$CMP" >&6; } 6199 else 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6201 $as_echo "no" >&6; } 6202 fi 6203 6204 6205 if test "x$CMP" = x; then 6206 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6207 fi 6208 else 6209 # Otherwise we believe it is a complete path. Use it as it is. 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6211 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6213 $as_echo_n "checking for CMP... " >&6; } 6214 if test ! -x "$tool_specified"; then 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6216 $as_echo "not found" >&6; } 6217 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6218 fi 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6220 $as_echo "$tool_specified" >&6; } 6221 fi 6222 fi 6223 fi 6224 6225 fi 6226 6227 6228 6229 if test "x$CMP" = x; then 6230 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6231 fi 6232 6233 6234 6235 6236 6237 # Publish this variable in the help. 6238 6239 6240 if [ -z "${COMM+x}" ]; then 6241 # The variable is not set by user, try to locate tool using the code snippet 6242 for ac_prog in comm 6243 do 6244 # Extract the first word of "$ac_prog", so it can be a program name with args. 6245 set dummy $ac_prog; ac_word=$2 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6247 $as_echo_n "checking for $ac_word... " >&6; } 6248 if ${ac_cv_path_COMM+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250 else 6251 case $COMM in 6252 [\\/]* | ?:[\\/]*) 6253 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6254 ;; 6255 *) 6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6257 for as_dir in $PATH 6258 do 6259 IFS=$as_save_IFS 6260 test -z "$as_dir" && as_dir=. 6261 for ac_exec_ext in '' $ac_executable_extensions; do 6262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6263 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6265 break 2 6266 fi 6267 done 6268 done 6269 IFS=$as_save_IFS 6270 6271 ;; 6272 esac 6273 fi 6274 COMM=$ac_cv_path_COMM 6275 if test -n "$COMM"; then 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6277 $as_echo "$COMM" >&6; } 6278 else 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6280 $as_echo "no" >&6; } 6281 fi 6282 6283 6284 test -n "$COMM" && break 6285 done 6286 6287 else 6288 # The variable is set, but is it from the command line or the environment? 6289 6290 # Try to remove the string !COMM! from our list. 6291 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6292 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6293 # If it failed, the variable was not from the command line. Ignore it, 6294 # but warn the user (except for BASH, which is always set by the calling BASH). 6295 if test "xCOMM" != xBASH; then 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6297 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6298 fi 6299 # Try to locate tool using the code snippet 6300 for ac_prog in comm 6301 do 6302 # Extract the first word of "$ac_prog", so it can be a program name with args. 6303 set dummy $ac_prog; ac_word=$2 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6305 $as_echo_n "checking for $ac_word... " >&6; } 6306 if ${ac_cv_path_COMM+:} false; then : 6307 $as_echo_n "(cached) " >&6 6308 else 6309 case $COMM in 6310 [\\/]* | ?:[\\/]*) 6311 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6312 ;; 6313 *) 6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6315 for as_dir in $PATH 6316 do 6317 IFS=$as_save_IFS 6318 test -z "$as_dir" && as_dir=. 6319 for ac_exec_ext in '' $ac_executable_extensions; do 6320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6321 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6323 break 2 6324 fi 6325 done 6326 done 6327 IFS=$as_save_IFS 6328 6329 ;; 6330 esac 6331 fi 6332 COMM=$ac_cv_path_COMM 6333 if test -n "$COMM"; then 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6335 $as_echo "$COMM" >&6; } 6336 else 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6338 $as_echo "no" >&6; } 6339 fi 6340 6341 6342 test -n "$COMM" && break 6343 done 6344 6345 else 6346 # If it succeeded, then it was overridden by the user. We will use it 6347 # for the tool. 6348 6349 # First remove it from the list of overridden variables, so we can test 6350 # for unknown variables in the end. 6351 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6352 6353 # Check if we try to supply an empty value 6354 if test "x$COMM" = x; then 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6356 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6358 $as_echo_n "checking for COMM... " >&6; } 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6360 $as_echo "disabled" >&6; } 6361 else 6362 # Check if the provided tool contains a complete path. 6363 tool_specified="$COMM" 6364 tool_basename="${tool_specified##*/}" 6365 if test "x$tool_basename" = "x$tool_specified"; then 6366 # A command without a complete path is provided, search $PATH. 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6368 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6369 # Extract the first word of "$tool_basename", so it can be a program name with args. 6370 set dummy $tool_basename; ac_word=$2 6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6372 $as_echo_n "checking for $ac_word... " >&6; } 6373 if ${ac_cv_path_COMM+:} false; then : 6374 $as_echo_n "(cached) " >&6 6375 else 6376 case $COMM in 6377 [\\/]* | ?:[\\/]*) 6378 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6379 ;; 6380 *) 6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6382 for as_dir in $PATH 6383 do 6384 IFS=$as_save_IFS 6385 test -z "$as_dir" && as_dir=. 6386 for ac_exec_ext in '' $ac_executable_extensions; do 6387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6388 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6390 break 2 6391 fi 6392 done 6393 done 6394 IFS=$as_save_IFS 6395 6396 ;; 6397 esac 6398 fi 6399 COMM=$ac_cv_path_COMM 6400 if test -n "$COMM"; then 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6402 $as_echo "$COMM" >&6; } 6403 else 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6405 $as_echo "no" >&6; } 6406 fi 6407 6408 6409 if test "x$COMM" = x; then 6410 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6411 fi 6412 else 6413 # Otherwise we believe it is a complete path. Use it as it is. 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6415 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6417 $as_echo_n "checking for COMM... " >&6; } 6418 if test ! -x "$tool_specified"; then 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6420 $as_echo "not found" >&6; } 6421 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6422 fi 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6424 $as_echo "$tool_specified" >&6; } 6425 fi 6426 fi 6427 fi 6428 6429 fi 6430 6431 6432 6433 if test "x$COMM" = x; then 6434 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6435 fi 6436 6437 6438 6439 6440 6441 # Publish this variable in the help. 6442 6443 6444 if [ -z "${CP+x}" ]; then 6445 # The variable is not set by user, try to locate tool using the code snippet 6446 for ac_prog in cp 6447 do 6448 # Extract the first word of "$ac_prog", so it can be a program name with args. 6449 set dummy $ac_prog; ac_word=$2 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6451 $as_echo_n "checking for $ac_word... " >&6; } 6452 if ${ac_cv_path_CP+:} false; then : 6453 $as_echo_n "(cached) " >&6 6454 else 6455 case $CP in 6456 [\\/]* | ?:[\\/]*) 6457 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6458 ;; 6459 *) 6460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6461 for as_dir in $PATH 6462 do 6463 IFS=$as_save_IFS 6464 test -z "$as_dir" && as_dir=. 6465 for ac_exec_ext in '' $ac_executable_extensions; do 6466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6467 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6469 break 2 6470 fi 6471 done 6472 done 6473 IFS=$as_save_IFS 6474 6475 ;; 6476 esac 6477 fi 6478 CP=$ac_cv_path_CP 6479 if test -n "$CP"; then 6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6481 $as_echo "$CP" >&6; } 6482 else 6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6484 $as_echo "no" >&6; } 6485 fi 6486 6487 6488 test -n "$CP" && break 6489 done 6490 6491 else 6492 # The variable is set, but is it from the command line or the environment? 6493 6494 # Try to remove the string !CP! from our list. 6495 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6496 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6497 # If it failed, the variable was not from the command line. Ignore it, 6498 # but warn the user (except for BASH, which is always set by the calling BASH). 6499 if test "xCP" != xBASH; then 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6501 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6502 fi 6503 # Try to locate tool using the code snippet 6504 for ac_prog in cp 6505 do 6506 # Extract the first word of "$ac_prog", so it can be a program name with args. 6507 set dummy $ac_prog; ac_word=$2 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6509 $as_echo_n "checking for $ac_word... " >&6; } 6510 if ${ac_cv_path_CP+:} false; then : 6511 $as_echo_n "(cached) " >&6 6512 else 6513 case $CP in 6514 [\\/]* | ?:[\\/]*) 6515 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6516 ;; 6517 *) 6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6519 for as_dir in $PATH 6520 do 6521 IFS=$as_save_IFS 6522 test -z "$as_dir" && as_dir=. 6523 for ac_exec_ext in '' $ac_executable_extensions; do 6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6525 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6527 break 2 6528 fi 6529 done 6530 done 6531 IFS=$as_save_IFS 6532 6533 ;; 6534 esac 6535 fi 6536 CP=$ac_cv_path_CP 6537 if test -n "$CP"; then 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6539 $as_echo "$CP" >&6; } 6540 else 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6542 $as_echo "no" >&6; } 6543 fi 6544 6545 6546 test -n "$CP" && break 6547 done 6548 6549 else 6550 # If it succeeded, then it was overridden by the user. We will use it 6551 # for the tool. 6552 6553 # First remove it from the list of overridden variables, so we can test 6554 # for unknown variables in the end. 6555 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6556 6557 # Check if we try to supply an empty value 6558 if test "x$CP" = x; then 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6560 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6562 $as_echo_n "checking for CP... " >&6; } 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6564 $as_echo "disabled" >&6; } 6565 else 6566 # Check if the provided tool contains a complete path. 6567 tool_specified="$CP" 6568 tool_basename="${tool_specified##*/}" 6569 if test "x$tool_basename" = "x$tool_specified"; then 6570 # A command without a complete path is provided, search $PATH. 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6572 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6573 # Extract the first word of "$tool_basename", so it can be a program name with args. 6574 set dummy $tool_basename; ac_word=$2 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6576 $as_echo_n "checking for $ac_word... " >&6; } 6577 if ${ac_cv_path_CP+:} false; then : 6578 $as_echo_n "(cached) " >&6 6579 else 6580 case $CP in 6581 [\\/]* | ?:[\\/]*) 6582 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6583 ;; 6584 *) 6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6586 for as_dir in $PATH 6587 do 6588 IFS=$as_save_IFS 6589 test -z "$as_dir" && as_dir=. 6590 for ac_exec_ext in '' $ac_executable_extensions; do 6591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6592 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6594 break 2 6595 fi 6596 done 6597 done 6598 IFS=$as_save_IFS 6599 6600 ;; 6601 esac 6602 fi 6603 CP=$ac_cv_path_CP 6604 if test -n "$CP"; then 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6606 $as_echo "$CP" >&6; } 6607 else 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6609 $as_echo "no" >&6; } 6610 fi 6611 6612 6613 if test "x$CP" = x; then 6614 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6615 fi 6616 else 6617 # Otherwise we believe it is a complete path. Use it as it is. 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6619 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6621 $as_echo_n "checking for CP... " >&6; } 6622 if test ! -x "$tool_specified"; then 6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6624 $as_echo "not found" >&6; } 6625 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6626 fi 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6628 $as_echo "$tool_specified" >&6; } 6629 fi 6630 fi 6631 fi 6632 6633 fi 6634 6635 6636 6637 if test "x$CP" = x; then 6638 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6639 fi 6640 6641 6642 6643 6644 6645 # Publish this variable in the help. 6646 6647 6648 if [ -z "${CUT+x}" ]; then 6649 # The variable is not set by user, try to locate tool using the code snippet 6650 for ac_prog in cut 6651 do 6652 # Extract the first word of "$ac_prog", so it can be a program name with args. 6653 set dummy $ac_prog; ac_word=$2 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6655 $as_echo_n "checking for $ac_word... " >&6; } 6656 if ${ac_cv_path_CUT+:} false; then : 6657 $as_echo_n "(cached) " >&6 6658 else 6659 case $CUT in 6660 [\\/]* | ?:[\\/]*) 6661 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6662 ;; 6663 *) 6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665 for as_dir in $PATH 6666 do 6667 IFS=$as_save_IFS 6668 test -z "$as_dir" && as_dir=. 6669 for ac_exec_ext in '' $ac_executable_extensions; do 6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6671 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6673 break 2 6674 fi 6675 done 6676 done 6677 IFS=$as_save_IFS 6678 6679 ;; 6680 esac 6681 fi 6682 CUT=$ac_cv_path_CUT 6683 if test -n "$CUT"; then 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6685 $as_echo "$CUT" >&6; } 6686 else 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6688 $as_echo "no" >&6; } 6689 fi 6690 6691 6692 test -n "$CUT" && break 6693 done 6694 6695 else 6696 # The variable is set, but is it from the command line or the environment? 6697 6698 # Try to remove the string !CUT! from our list. 6699 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6700 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6701 # If it failed, the variable was not from the command line. Ignore it, 6702 # but warn the user (except for BASH, which is always set by the calling BASH). 6703 if test "xCUT" != xBASH; then 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6705 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6706 fi 6707 # Try to locate tool using the code snippet 6708 for ac_prog in cut 6709 do 6710 # Extract the first word of "$ac_prog", so it can be a program name with args. 6711 set dummy $ac_prog; ac_word=$2 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6713 $as_echo_n "checking for $ac_word... " >&6; } 6714 if ${ac_cv_path_CUT+:} false; then : 6715 $as_echo_n "(cached) " >&6 6716 else 6717 case $CUT in 6718 [\\/]* | ?:[\\/]*) 6719 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6720 ;; 6721 *) 6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6723 for as_dir in $PATH 6724 do 6725 IFS=$as_save_IFS 6726 test -z "$as_dir" && as_dir=. 6727 for ac_exec_ext in '' $ac_executable_extensions; do 6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6729 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6731 break 2 6732 fi 6733 done 6734 done 6735 IFS=$as_save_IFS 6736 6737 ;; 6738 esac 6739 fi 6740 CUT=$ac_cv_path_CUT 6741 if test -n "$CUT"; then 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6743 $as_echo "$CUT" >&6; } 6744 else 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6746 $as_echo "no" >&6; } 6747 fi 6748 6749 6750 test -n "$CUT" && break 6751 done 6752 6753 else 6754 # If it succeeded, then it was overridden by the user. We will use it 6755 # for the tool. 6756 6757 # First remove it from the list of overridden variables, so we can test 6758 # for unknown variables in the end. 6759 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6760 6761 # Check if we try to supply an empty value 6762 if test "x$CUT" = x; then 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6764 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6766 $as_echo_n "checking for CUT... " >&6; } 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6768 $as_echo "disabled" >&6; } 6769 else 6770 # Check if the provided tool contains a complete path. 6771 tool_specified="$CUT" 6772 tool_basename="${tool_specified##*/}" 6773 if test "x$tool_basename" = "x$tool_specified"; then 6774 # A command without a complete path is provided, search $PATH. 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6776 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6777 # Extract the first word of "$tool_basename", so it can be a program name with args. 6778 set dummy $tool_basename; ac_word=$2 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6780 $as_echo_n "checking for $ac_word... " >&6; } 6781 if ${ac_cv_path_CUT+:} false; then : 6782 $as_echo_n "(cached) " >&6 6783 else 6784 case $CUT in 6785 [\\/]* | ?:[\\/]*) 6786 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6787 ;; 6788 *) 6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6790 for as_dir in $PATH 6791 do 6792 IFS=$as_save_IFS 6793 test -z "$as_dir" && as_dir=. 6794 for ac_exec_ext in '' $ac_executable_extensions; do 6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6796 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6798 break 2 6799 fi 6800 done 6801 done 6802 IFS=$as_save_IFS 6803 6804 ;; 6805 esac 6806 fi 6807 CUT=$ac_cv_path_CUT 6808 if test -n "$CUT"; then 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6810 $as_echo "$CUT" >&6; } 6811 else 6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6813 $as_echo "no" >&6; } 6814 fi 6815 6816 6817 if test "x$CUT" = x; then 6818 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6819 fi 6820 else 6821 # Otherwise we believe it is a complete path. Use it as it is. 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6823 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6825 $as_echo_n "checking for CUT... " >&6; } 6826 if test ! -x "$tool_specified"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6828 $as_echo "not found" >&6; } 6829 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6830 fi 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6832 $as_echo "$tool_specified" >&6; } 6833 fi 6834 fi 6835 fi 6836 6837 fi 6838 6839 6840 6841 if test "x$CUT" = x; then 6842 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6843 fi 6844 6845 6846 6847 6848 6849 # Publish this variable in the help. 6850 6851 6852 if [ -z "${DATE+x}" ]; then 6853 # The variable is not set by user, try to locate tool using the code snippet 6854 for ac_prog in date 6855 do 6856 # Extract the first word of "$ac_prog", so it can be a program name with args. 6857 set dummy $ac_prog; ac_word=$2 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6859 $as_echo_n "checking for $ac_word... " >&6; } 6860 if ${ac_cv_path_DATE+:} false; then : 6861 $as_echo_n "(cached) " >&6 6862 else 6863 case $DATE in 6864 [\\/]* | ?:[\\/]*) 6865 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6866 ;; 6867 *) 6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6869 for as_dir in $PATH 6870 do 6871 IFS=$as_save_IFS 6872 test -z "$as_dir" && as_dir=. 6873 for ac_exec_ext in '' $ac_executable_extensions; do 6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6875 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6877 break 2 6878 fi 6879 done 6880 done 6881 IFS=$as_save_IFS 6882 6883 ;; 6884 esac 6885 fi 6886 DATE=$ac_cv_path_DATE 6887 if test -n "$DATE"; then 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6889 $as_echo "$DATE" >&6; } 6890 else 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6892 $as_echo "no" >&6; } 6893 fi 6894 6895 6896 test -n "$DATE" && break 6897 done 6898 6899 else 6900 # The variable is set, but is it from the command line or the environment? 6901 6902 # Try to remove the string !DATE! from our list. 6903 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6904 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6905 # If it failed, the variable was not from the command line. Ignore it, 6906 # but warn the user (except for BASH, which is always set by the calling BASH). 6907 if test "xDATE" != xBASH; then 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6909 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6910 fi 6911 # Try to locate tool using the code snippet 6912 for ac_prog in date 6913 do 6914 # Extract the first word of "$ac_prog", so it can be a program name with args. 6915 set dummy $ac_prog; ac_word=$2 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6917 $as_echo_n "checking for $ac_word... " >&6; } 6918 if ${ac_cv_path_DATE+:} false; then : 6919 $as_echo_n "(cached) " >&6 6920 else 6921 case $DATE in 6922 [\\/]* | ?:[\\/]*) 6923 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6924 ;; 6925 *) 6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6927 for as_dir in $PATH 6928 do 6929 IFS=$as_save_IFS 6930 test -z "$as_dir" && as_dir=. 6931 for ac_exec_ext in '' $ac_executable_extensions; do 6932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6933 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6935 break 2 6936 fi 6937 done 6938 done 6939 IFS=$as_save_IFS 6940 6941 ;; 6942 esac 6943 fi 6944 DATE=$ac_cv_path_DATE 6945 if test -n "$DATE"; then 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6947 $as_echo "$DATE" >&6; } 6948 else 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6950 $as_echo "no" >&6; } 6951 fi 6952 6953 6954 test -n "$DATE" && break 6955 done 6956 6957 else 6958 # If it succeeded, then it was overridden by the user. We will use it 6959 # for the tool. 6960 6961 # First remove it from the list of overridden variables, so we can test 6962 # for unknown variables in the end. 6963 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6964 6965 # Check if we try to supply an empty value 6966 if test "x$DATE" = x; then 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6968 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6970 $as_echo_n "checking for DATE... " >&6; } 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6972 $as_echo "disabled" >&6; } 6973 else 6974 # Check if the provided tool contains a complete path. 6975 tool_specified="$DATE" 6976 tool_basename="${tool_specified##*/}" 6977 if test "x$tool_basename" = "x$tool_specified"; then 6978 # A command without a complete path is provided, search $PATH. 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6980 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6981 # Extract the first word of "$tool_basename", so it can be a program name with args. 6982 set dummy $tool_basename; ac_word=$2 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6984 $as_echo_n "checking for $ac_word... " >&6; } 6985 if ${ac_cv_path_DATE+:} false; then : 6986 $as_echo_n "(cached) " >&6 6987 else 6988 case $DATE in 6989 [\\/]* | ?:[\\/]*) 6990 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6991 ;; 6992 *) 6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6994 for as_dir in $PATH 6995 do 6996 IFS=$as_save_IFS 6997 test -z "$as_dir" && as_dir=. 6998 for ac_exec_ext in '' $ac_executable_extensions; do 6999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7000 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7002 break 2 7003 fi 7004 done 7005 done 7006 IFS=$as_save_IFS 7007 7008 ;; 7009 esac 7010 fi 7011 DATE=$ac_cv_path_DATE 7012 if test -n "$DATE"; then 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 7014 $as_echo "$DATE" >&6; } 7015 else 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7017 $as_echo "no" >&6; } 7018 fi 7019 7020 7021 if test "x$DATE" = x; then 7022 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7023 fi 7024 else 7025 # Otherwise we believe it is a complete path. Use it as it is. 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 7027 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 7029 $as_echo_n "checking for DATE... " >&6; } 7030 if test ! -x "$tool_specified"; then 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7032 $as_echo "not found" >&6; } 7033 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 7034 fi 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7036 $as_echo "$tool_specified" >&6; } 7037 fi 7038 fi 7039 fi 7040 7041 fi 7042 7043 7044 7045 if test "x$DATE" = x; then 7046 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 7047 fi 7048 7049 7050 7051 7052 7053 # Publish this variable in the help. 7054 7055 7056 if [ -z "${DIFF+x}" ]; then 7057 # The variable is not set by user, try to locate tool using the code snippet 7058 for ac_prog in gdiff diff 7059 do 7060 # Extract the first word of "$ac_prog", so it can be a program name with args. 7061 set dummy $ac_prog; ac_word=$2 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7063 $as_echo_n "checking for $ac_word... " >&6; } 7064 if ${ac_cv_path_DIFF+:} false; then : 7065 $as_echo_n "(cached) " >&6 7066 else 7067 case $DIFF in 7068 [\\/]* | ?:[\\/]*) 7069 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7070 ;; 7071 *) 7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7073 for as_dir in $PATH 7074 do 7075 IFS=$as_save_IFS 7076 test -z "$as_dir" && as_dir=. 7077 for ac_exec_ext in '' $ac_executable_extensions; do 7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7079 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7081 break 2 7082 fi 7083 done 7084 done 7085 IFS=$as_save_IFS 7086 7087 ;; 7088 esac 7089 fi 7090 DIFF=$ac_cv_path_DIFF 7091 if test -n "$DIFF"; then 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7093 $as_echo "$DIFF" >&6; } 7094 else 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7096 $as_echo "no" >&6; } 7097 fi 7098 7099 7100 test -n "$DIFF" && break 7101 done 7102 7103 else 7104 # The variable is set, but is it from the command line or the environment? 7105 7106 # Try to remove the string !DIFF! from our list. 7107 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7108 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7109 # If it failed, the variable was not from the command line. Ignore it, 7110 # but warn the user (except for BASH, which is always set by the calling BASH). 7111 if test "xDIFF" != xBASH; then 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7113 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7114 fi 7115 # Try to locate tool using the code snippet 7116 for ac_prog in gdiff diff 7117 do 7118 # Extract the first word of "$ac_prog", so it can be a program name with args. 7119 set dummy $ac_prog; ac_word=$2 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7121 $as_echo_n "checking for $ac_word... " >&6; } 7122 if ${ac_cv_path_DIFF+:} false; then : 7123 $as_echo_n "(cached) " >&6 7124 else 7125 case $DIFF in 7126 [\\/]* | ?:[\\/]*) 7127 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7128 ;; 7129 *) 7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7131 for as_dir in $PATH 7132 do 7133 IFS=$as_save_IFS 7134 test -z "$as_dir" && as_dir=. 7135 for ac_exec_ext in '' $ac_executable_extensions; do 7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7137 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7139 break 2 7140 fi 7141 done 7142 done 7143 IFS=$as_save_IFS 7144 7145 ;; 7146 esac 7147 fi 7148 DIFF=$ac_cv_path_DIFF 7149 if test -n "$DIFF"; then 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7151 $as_echo "$DIFF" >&6; } 7152 else 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7154 $as_echo "no" >&6; } 7155 fi 7156 7157 7158 test -n "$DIFF" && break 7159 done 7160 7161 else 7162 # If it succeeded, then it was overridden by the user. We will use it 7163 # for the tool. 7164 7165 # First remove it from the list of overridden variables, so we can test 7166 # for unknown variables in the end. 7167 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7168 7169 # Check if we try to supply an empty value 7170 if test "x$DIFF" = x; then 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7172 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7174 $as_echo_n "checking for DIFF... " >&6; } 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7176 $as_echo "disabled" >&6; } 7177 else 7178 # Check if the provided tool contains a complete path. 7179 tool_specified="$DIFF" 7180 tool_basename="${tool_specified##*/}" 7181 if test "x$tool_basename" = "x$tool_specified"; then 7182 # A command without a complete path is provided, search $PATH. 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7184 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7185 # Extract the first word of "$tool_basename", so it can be a program name with args. 7186 set dummy $tool_basename; ac_word=$2 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7188 $as_echo_n "checking for $ac_word... " >&6; } 7189 if ${ac_cv_path_DIFF+:} false; then : 7190 $as_echo_n "(cached) " >&6 7191 else 7192 case $DIFF in 7193 [\\/]* | ?:[\\/]*) 7194 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7195 ;; 7196 *) 7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7198 for as_dir in $PATH 7199 do 7200 IFS=$as_save_IFS 7201 test -z "$as_dir" && as_dir=. 7202 for ac_exec_ext in '' $ac_executable_extensions; do 7203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7204 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7206 break 2 7207 fi 7208 done 7209 done 7210 IFS=$as_save_IFS 7211 7212 ;; 7213 esac 7214 fi 7215 DIFF=$ac_cv_path_DIFF 7216 if test -n "$DIFF"; then 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7218 $as_echo "$DIFF" >&6; } 7219 else 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7221 $as_echo "no" >&6; } 7222 fi 7223 7224 7225 if test "x$DIFF" = x; then 7226 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7227 fi 7228 else 7229 # Otherwise we believe it is a complete path. Use it as it is. 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7231 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7233 $as_echo_n "checking for DIFF... " >&6; } 7234 if test ! -x "$tool_specified"; then 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7236 $as_echo "not found" >&6; } 7237 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7238 fi 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7240 $as_echo "$tool_specified" >&6; } 7241 fi 7242 fi 7243 fi 7244 7245 fi 7246 7247 7248 7249 if test "x$DIFF" = x; then 7250 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7251 fi 7252 7253 7254 7255 7256 7257 # Publish this variable in the help. 7258 7259 7260 if [ -z "${DIRNAME+x}" ]; then 7261 # The variable is not set by user, try to locate tool using the code snippet 7262 for ac_prog in dirname 7263 do 7264 # Extract the first word of "$ac_prog", so it can be a program name with args. 7265 set dummy $ac_prog; ac_word=$2 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7267 $as_echo_n "checking for $ac_word... " >&6; } 7268 if ${ac_cv_path_DIRNAME+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270 else 7271 case $DIRNAME in 7272 [\\/]* | ?:[\\/]*) 7273 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7274 ;; 7275 *) 7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7277 for as_dir in $PATH 7278 do 7279 IFS=$as_save_IFS 7280 test -z "$as_dir" && as_dir=. 7281 for ac_exec_ext in '' $ac_executable_extensions; do 7282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7283 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7285 break 2 7286 fi 7287 done 7288 done 7289 IFS=$as_save_IFS 7290 7291 ;; 7292 esac 7293 fi 7294 DIRNAME=$ac_cv_path_DIRNAME 7295 if test -n "$DIRNAME"; then 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7297 $as_echo "$DIRNAME" >&6; } 7298 else 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7300 $as_echo "no" >&6; } 7301 fi 7302 7303 7304 test -n "$DIRNAME" && break 7305 done 7306 7307 else 7308 # The variable is set, but is it from the command line or the environment? 7309 7310 # Try to remove the string !DIRNAME! from our list. 7311 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7312 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7313 # If it failed, the variable was not from the command line. Ignore it, 7314 # but warn the user (except for BASH, which is always set by the calling BASH). 7315 if test "xDIRNAME" != xBASH; then 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7317 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7318 fi 7319 # Try to locate tool using the code snippet 7320 for ac_prog in dirname 7321 do 7322 # Extract the first word of "$ac_prog", so it can be a program name with args. 7323 set dummy $ac_prog; ac_word=$2 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7325 $as_echo_n "checking for $ac_word... " >&6; } 7326 if ${ac_cv_path_DIRNAME+:} false; then : 7327 $as_echo_n "(cached) " >&6 7328 else 7329 case $DIRNAME in 7330 [\\/]* | ?:[\\/]*) 7331 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7332 ;; 7333 *) 7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7335 for as_dir in $PATH 7336 do 7337 IFS=$as_save_IFS 7338 test -z "$as_dir" && as_dir=. 7339 for ac_exec_ext in '' $ac_executable_extensions; do 7340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7341 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7343 break 2 7344 fi 7345 done 7346 done 7347 IFS=$as_save_IFS 7348 7349 ;; 7350 esac 7351 fi 7352 DIRNAME=$ac_cv_path_DIRNAME 7353 if test -n "$DIRNAME"; then 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7355 $as_echo "$DIRNAME" >&6; } 7356 else 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7358 $as_echo "no" >&6; } 7359 fi 7360 7361 7362 test -n "$DIRNAME" && break 7363 done 7364 7365 else 7366 # If it succeeded, then it was overridden by the user. We will use it 7367 # for the tool. 7368 7369 # First remove it from the list of overridden variables, so we can test 7370 # for unknown variables in the end. 7371 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7372 7373 # Check if we try to supply an empty value 7374 if test "x$DIRNAME" = x; then 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7376 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7378 $as_echo_n "checking for DIRNAME... " >&6; } 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7380 $as_echo "disabled" >&6; } 7381 else 7382 # Check if the provided tool contains a complete path. 7383 tool_specified="$DIRNAME" 7384 tool_basename="${tool_specified##*/}" 7385 if test "x$tool_basename" = "x$tool_specified"; then 7386 # A command without a complete path is provided, search $PATH. 7387 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7388 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7389 # Extract the first word of "$tool_basename", so it can be a program name with args. 7390 set dummy $tool_basename; ac_word=$2 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7392 $as_echo_n "checking for $ac_word... " >&6; } 7393 if ${ac_cv_path_DIRNAME+:} false; then : 7394 $as_echo_n "(cached) " >&6 7395 else 7396 case $DIRNAME in 7397 [\\/]* | ?:[\\/]*) 7398 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7399 ;; 7400 *) 7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7402 for as_dir in $PATH 7403 do 7404 IFS=$as_save_IFS 7405 test -z "$as_dir" && as_dir=. 7406 for ac_exec_ext in '' $ac_executable_extensions; do 7407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7408 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7410 break 2 7411 fi 7412 done 7413 done 7414 IFS=$as_save_IFS 7415 7416 ;; 7417 esac 7418 fi 7419 DIRNAME=$ac_cv_path_DIRNAME 7420 if test -n "$DIRNAME"; then 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7422 $as_echo "$DIRNAME" >&6; } 7423 else 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7425 $as_echo "no" >&6; } 7426 fi 7427 7428 7429 if test "x$DIRNAME" = x; then 7430 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7431 fi 7432 else 7433 # Otherwise we believe it is a complete path. Use it as it is. 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7435 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7437 $as_echo_n "checking for DIRNAME... " >&6; } 7438 if test ! -x "$tool_specified"; then 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7440 $as_echo "not found" >&6; } 7441 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7442 fi 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7444 $as_echo "$tool_specified" >&6; } 7445 fi 7446 fi 7447 fi 7448 7449 fi 7450 7451 7452 7453 if test "x$DIRNAME" = x; then 7454 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7455 fi 7456 7457 7458 7459 7460 7461 # Publish this variable in the help. 7462 7463 7464 if [ -z "${ECHO+x}" ]; then 7465 # The variable is not set by user, try to locate tool using the code snippet 7466 for ac_prog in echo 7467 do 7468 # Extract the first word of "$ac_prog", so it can be a program name with args. 7469 set dummy $ac_prog; ac_word=$2 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7471 $as_echo_n "checking for $ac_word... " >&6; } 7472 if ${ac_cv_path_ECHO+:} false; then : 7473 $as_echo_n "(cached) " >&6 7474 else 7475 case $ECHO in 7476 [\\/]* | ?:[\\/]*) 7477 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7478 ;; 7479 *) 7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7481 for as_dir in $PATH 7482 do 7483 IFS=$as_save_IFS 7484 test -z "$as_dir" && as_dir=. 7485 for ac_exec_ext in '' $ac_executable_extensions; do 7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7487 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7489 break 2 7490 fi 7491 done 7492 done 7493 IFS=$as_save_IFS 7494 7495 ;; 7496 esac 7497 fi 7498 ECHO=$ac_cv_path_ECHO 7499 if test -n "$ECHO"; then 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7501 $as_echo "$ECHO" >&6; } 7502 else 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7504 $as_echo "no" >&6; } 7505 fi 7506 7507 7508 test -n "$ECHO" && break 7509 done 7510 7511 else 7512 # The variable is set, but is it from the command line or the environment? 7513 7514 # Try to remove the string !ECHO! from our list. 7515 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7516 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7517 # If it failed, the variable was not from the command line. Ignore it, 7518 # but warn the user (except for BASH, which is always set by the calling BASH). 7519 if test "xECHO" != xBASH; then 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7521 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7522 fi 7523 # Try to locate tool using the code snippet 7524 for ac_prog in echo 7525 do 7526 # Extract the first word of "$ac_prog", so it can be a program name with args. 7527 set dummy $ac_prog; ac_word=$2 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7529 $as_echo_n "checking for $ac_word... " >&6; } 7530 if ${ac_cv_path_ECHO+:} false; then : 7531 $as_echo_n "(cached) " >&6 7532 else 7533 case $ECHO in 7534 [\\/]* | ?:[\\/]*) 7535 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7536 ;; 7537 *) 7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7539 for as_dir in $PATH 7540 do 7541 IFS=$as_save_IFS 7542 test -z "$as_dir" && as_dir=. 7543 for ac_exec_ext in '' $ac_executable_extensions; do 7544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7545 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7547 break 2 7548 fi 7549 done 7550 done 7551 IFS=$as_save_IFS 7552 7553 ;; 7554 esac 7555 fi 7556 ECHO=$ac_cv_path_ECHO 7557 if test -n "$ECHO"; then 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7559 $as_echo "$ECHO" >&6; } 7560 else 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7562 $as_echo "no" >&6; } 7563 fi 7564 7565 7566 test -n "$ECHO" && break 7567 done 7568 7569 else 7570 # If it succeeded, then it was overridden by the user. We will use it 7571 # for the tool. 7572 7573 # First remove it from the list of overridden variables, so we can test 7574 # for unknown variables in the end. 7575 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7576 7577 # Check if we try to supply an empty value 7578 if test "x$ECHO" = x; then 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7580 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7582 $as_echo_n "checking for ECHO... " >&6; } 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7584 $as_echo "disabled" >&6; } 7585 else 7586 # Check if the provided tool contains a complete path. 7587 tool_specified="$ECHO" 7588 tool_basename="${tool_specified##*/}" 7589 if test "x$tool_basename" = "x$tool_specified"; then 7590 # A command without a complete path is provided, search $PATH. 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7592 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7593 # Extract the first word of "$tool_basename", so it can be a program name with args. 7594 set dummy $tool_basename; ac_word=$2 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7596 $as_echo_n "checking for $ac_word... " >&6; } 7597 if ${ac_cv_path_ECHO+:} false; then : 7598 $as_echo_n "(cached) " >&6 7599 else 7600 case $ECHO in 7601 [\\/]* | ?:[\\/]*) 7602 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7603 ;; 7604 *) 7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7606 for as_dir in $PATH 7607 do 7608 IFS=$as_save_IFS 7609 test -z "$as_dir" && as_dir=. 7610 for ac_exec_ext in '' $ac_executable_extensions; do 7611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7612 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7614 break 2 7615 fi 7616 done 7617 done 7618 IFS=$as_save_IFS 7619 7620 ;; 7621 esac 7622 fi 7623 ECHO=$ac_cv_path_ECHO 7624 if test -n "$ECHO"; then 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7626 $as_echo "$ECHO" >&6; } 7627 else 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7629 $as_echo "no" >&6; } 7630 fi 7631 7632 7633 if test "x$ECHO" = x; then 7634 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7635 fi 7636 else 7637 # Otherwise we believe it is a complete path. Use it as it is. 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7639 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7641 $as_echo_n "checking for ECHO... " >&6; } 7642 if test ! -x "$tool_specified"; then 7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7644 $as_echo "not found" >&6; } 7645 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7646 fi 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7648 $as_echo "$tool_specified" >&6; } 7649 fi 7650 fi 7651 fi 7652 7653 fi 7654 7655 7656 7657 if test "x$ECHO" = x; then 7658 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7659 fi 7660 7661 7662 7663 7664 7665 # Publish this variable in the help. 7666 7667 7668 if [ -z "${EXPR+x}" ]; then 7669 # The variable is not set by user, try to locate tool using the code snippet 7670 for ac_prog in expr 7671 do 7672 # Extract the first word of "$ac_prog", so it can be a program name with args. 7673 set dummy $ac_prog; ac_word=$2 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7675 $as_echo_n "checking for $ac_word... " >&6; } 7676 if ${ac_cv_path_EXPR+:} false; then : 7677 $as_echo_n "(cached) " >&6 7678 else 7679 case $EXPR in 7680 [\\/]* | ?:[\\/]*) 7681 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7682 ;; 7683 *) 7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7685 for as_dir in $PATH 7686 do 7687 IFS=$as_save_IFS 7688 test -z "$as_dir" && as_dir=. 7689 for ac_exec_ext in '' $ac_executable_extensions; do 7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7691 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7693 break 2 7694 fi 7695 done 7696 done 7697 IFS=$as_save_IFS 7698 7699 ;; 7700 esac 7701 fi 7702 EXPR=$ac_cv_path_EXPR 7703 if test -n "$EXPR"; then 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7705 $as_echo "$EXPR" >&6; } 7706 else 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7708 $as_echo "no" >&6; } 7709 fi 7710 7711 7712 test -n "$EXPR" && break 7713 done 7714 7715 else 7716 # The variable is set, but is it from the command line or the environment? 7717 7718 # Try to remove the string !EXPR! from our list. 7719 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7720 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7721 # If it failed, the variable was not from the command line. Ignore it, 7722 # but warn the user (except for BASH, which is always set by the calling BASH). 7723 if test "xEXPR" != xBASH; then 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7725 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7726 fi 7727 # Try to locate tool using the code snippet 7728 for ac_prog in expr 7729 do 7730 # Extract the first word of "$ac_prog", so it can be a program name with args. 7731 set dummy $ac_prog; ac_word=$2 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7733 $as_echo_n "checking for $ac_word... " >&6; } 7734 if ${ac_cv_path_EXPR+:} false; then : 7735 $as_echo_n "(cached) " >&6 7736 else 7737 case $EXPR in 7738 [\\/]* | ?:[\\/]*) 7739 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7740 ;; 7741 *) 7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7743 for as_dir in $PATH 7744 do 7745 IFS=$as_save_IFS 7746 test -z "$as_dir" && as_dir=. 7747 for ac_exec_ext in '' $ac_executable_extensions; do 7748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7749 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7751 break 2 7752 fi 7753 done 7754 done 7755 IFS=$as_save_IFS 7756 7757 ;; 7758 esac 7759 fi 7760 EXPR=$ac_cv_path_EXPR 7761 if test -n "$EXPR"; then 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7763 $as_echo "$EXPR" >&6; } 7764 else 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7766 $as_echo "no" >&6; } 7767 fi 7768 7769 7770 test -n "$EXPR" && break 7771 done 7772 7773 else 7774 # If it succeeded, then it was overridden by the user. We will use it 7775 # for the tool. 7776 7777 # First remove it from the list of overridden variables, so we can test 7778 # for unknown variables in the end. 7779 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7780 7781 # Check if we try to supply an empty value 7782 if test "x$EXPR" = x; then 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7784 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7786 $as_echo_n "checking for EXPR... " >&6; } 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7788 $as_echo "disabled" >&6; } 7789 else 7790 # Check if the provided tool contains a complete path. 7791 tool_specified="$EXPR" 7792 tool_basename="${tool_specified##*/}" 7793 if test "x$tool_basename" = "x$tool_specified"; then 7794 # A command without a complete path is provided, search $PATH. 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7796 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7797 # Extract the first word of "$tool_basename", so it can be a program name with args. 7798 set dummy $tool_basename; ac_word=$2 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7800 $as_echo_n "checking for $ac_word... " >&6; } 7801 if ${ac_cv_path_EXPR+:} false; then : 7802 $as_echo_n "(cached) " >&6 7803 else 7804 case $EXPR in 7805 [\\/]* | ?:[\\/]*) 7806 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7807 ;; 7808 *) 7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7810 for as_dir in $PATH 7811 do 7812 IFS=$as_save_IFS 7813 test -z "$as_dir" && as_dir=. 7814 for ac_exec_ext in '' $ac_executable_extensions; do 7815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7816 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7818 break 2 7819 fi 7820 done 7821 done 7822 IFS=$as_save_IFS 7823 7824 ;; 7825 esac 7826 fi 7827 EXPR=$ac_cv_path_EXPR 7828 if test -n "$EXPR"; then 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7830 $as_echo "$EXPR" >&6; } 7831 else 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7833 $as_echo "no" >&6; } 7834 fi 7835 7836 7837 if test "x$EXPR" = x; then 7838 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7839 fi 7840 else 7841 # Otherwise we believe it is a complete path. Use it as it is. 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7843 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7845 $as_echo_n "checking for EXPR... " >&6; } 7846 if test ! -x "$tool_specified"; then 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7848 $as_echo "not found" >&6; } 7849 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7850 fi 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7852 $as_echo "$tool_specified" >&6; } 7853 fi 7854 fi 7855 fi 7856 7857 fi 7858 7859 7860 7861 if test "x$EXPR" = x; then 7862 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7863 fi 7864 7865 7866 7867 7868 7869 # Publish this variable in the help. 7870 7871 7872 if [ -z "${FILE+x}" ]; then 7873 # The variable is not set by user, try to locate tool using the code snippet 7874 for ac_prog in file 7875 do 7876 # Extract the first word of "$ac_prog", so it can be a program name with args. 7877 set dummy $ac_prog; ac_word=$2 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7879 $as_echo_n "checking for $ac_word... " >&6; } 7880 if ${ac_cv_path_FILE+:} false; then : 7881 $as_echo_n "(cached) " >&6 7882 else 7883 case $FILE in 7884 [\\/]* | ?:[\\/]*) 7885 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7886 ;; 7887 *) 7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7889 for as_dir in $PATH 7890 do 7891 IFS=$as_save_IFS 7892 test -z "$as_dir" && as_dir=. 7893 for ac_exec_ext in '' $ac_executable_extensions; do 7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7895 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7897 break 2 7898 fi 7899 done 7900 done 7901 IFS=$as_save_IFS 7902 7903 ;; 7904 esac 7905 fi 7906 FILE=$ac_cv_path_FILE 7907 if test -n "$FILE"; then 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7909 $as_echo "$FILE" >&6; } 7910 else 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7912 $as_echo "no" >&6; } 7913 fi 7914 7915 7916 test -n "$FILE" && break 7917 done 7918 7919 else 7920 # The variable is set, but is it from the command line or the environment? 7921 7922 # Try to remove the string !FILE! from our list. 7923 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7924 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7925 # If it failed, the variable was not from the command line. Ignore it, 7926 # but warn the user (except for BASH, which is always set by the calling BASH). 7927 if test "xFILE" != xBASH; then 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7929 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7930 fi 7931 # Try to locate tool using the code snippet 7932 for ac_prog in file 7933 do 7934 # Extract the first word of "$ac_prog", so it can be a program name with args. 7935 set dummy $ac_prog; ac_word=$2 7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7937 $as_echo_n "checking for $ac_word... " >&6; } 7938 if ${ac_cv_path_FILE+:} false; then : 7939 $as_echo_n "(cached) " >&6 7940 else 7941 case $FILE in 7942 [\\/]* | ?:[\\/]*) 7943 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7944 ;; 7945 *) 7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7947 for as_dir in $PATH 7948 do 7949 IFS=$as_save_IFS 7950 test -z "$as_dir" && as_dir=. 7951 for ac_exec_ext in '' $ac_executable_extensions; do 7952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7953 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7955 break 2 7956 fi 7957 done 7958 done 7959 IFS=$as_save_IFS 7960 7961 ;; 7962 esac 7963 fi 7964 FILE=$ac_cv_path_FILE 7965 if test -n "$FILE"; then 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7967 $as_echo "$FILE" >&6; } 7968 else 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7970 $as_echo "no" >&6; } 7971 fi 7972 7973 7974 test -n "$FILE" && break 7975 done 7976 7977 else 7978 # If it succeeded, then it was overridden by the user. We will use it 7979 # for the tool. 7980 7981 # First remove it from the list of overridden variables, so we can test 7982 # for unknown variables in the end. 7983 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7984 7985 # Check if we try to supply an empty value 7986 if test "x$FILE" = x; then 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 7988 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7990 $as_echo_n "checking for FILE... " >&6; } 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7992 $as_echo "disabled" >&6; } 7993 else 7994 # Check if the provided tool contains a complete path. 7995 tool_specified="$FILE" 7996 tool_basename="${tool_specified##*/}" 7997 if test "x$tool_basename" = "x$tool_specified"; then 7998 # A command without a complete path is provided, search $PATH. 7999 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 8000 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 8001 # Extract the first word of "$tool_basename", so it can be a program name with args. 8002 set dummy $tool_basename; ac_word=$2 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8004 $as_echo_n "checking for $ac_word... " >&6; } 8005 if ${ac_cv_path_FILE+:} false; then : 8006 $as_echo_n "(cached) " >&6 8007 else 8008 case $FILE in 8009 [\\/]* | ?:[\\/]*) 8010 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 8011 ;; 8012 *) 8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8014 for as_dir in $PATH 8015 do 8016 IFS=$as_save_IFS 8017 test -z "$as_dir" && as_dir=. 8018 for ac_exec_ext in '' $ac_executable_extensions; do 8019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8020 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8022 break 2 8023 fi 8024 done 8025 done 8026 IFS=$as_save_IFS 8027 8028 ;; 8029 esac 8030 fi 8031 FILE=$ac_cv_path_FILE 8032 if test -n "$FILE"; then 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 8034 $as_echo "$FILE" >&6; } 8035 else 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8037 $as_echo "no" >&6; } 8038 fi 8039 8040 8041 if test "x$FILE" = x; then 8042 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8043 fi 8044 else 8045 # Otherwise we believe it is a complete path. Use it as it is. 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 8047 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8049 $as_echo_n "checking for FILE... " >&6; } 8050 if test ! -x "$tool_specified"; then 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8052 $as_echo "not found" >&6; } 8053 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 8054 fi 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8056 $as_echo "$tool_specified" >&6; } 8057 fi 8058 fi 8059 fi 8060 8061 fi 8062 8063 8064 8065 if test "x$FILE" = x; then 8066 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8067 fi 8068 8069 8070 8071 8072 8073 # Publish this variable in the help. 8074 8075 8076 if [ -z "${FIND+x}" ]; then 8077 # The variable is not set by user, try to locate tool using the code snippet 8078 for ac_prog in find 8079 do 8080 # Extract the first word of "$ac_prog", so it can be a program name with args. 8081 set dummy $ac_prog; ac_word=$2 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8083 $as_echo_n "checking for $ac_word... " >&6; } 8084 if ${ac_cv_path_FIND+:} false; then : 8085 $as_echo_n "(cached) " >&6 8086 else 8087 case $FIND in 8088 [\\/]* | ?:[\\/]*) 8089 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8090 ;; 8091 *) 8092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8093 for as_dir in $PATH 8094 do 8095 IFS=$as_save_IFS 8096 test -z "$as_dir" && as_dir=. 8097 for ac_exec_ext in '' $ac_executable_extensions; do 8098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8099 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8101 break 2 8102 fi 8103 done 8104 done 8105 IFS=$as_save_IFS 8106 8107 ;; 8108 esac 8109 fi 8110 FIND=$ac_cv_path_FIND 8111 if test -n "$FIND"; then 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8113 $as_echo "$FIND" >&6; } 8114 else 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8116 $as_echo "no" >&6; } 8117 fi 8118 8119 8120 test -n "$FIND" && break 8121 done 8122 8123 else 8124 # The variable is set, but is it from the command line or the environment? 8125 8126 # Try to remove the string !FIND! from our list. 8127 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8128 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8129 # If it failed, the variable was not from the command line. Ignore it, 8130 # but warn the user (except for BASH, which is always set by the calling BASH). 8131 if test "xFIND" != xBASH; then 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8133 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8134 fi 8135 # Try to locate tool using the code snippet 8136 for ac_prog in find 8137 do 8138 # Extract the first word of "$ac_prog", so it can be a program name with args. 8139 set dummy $ac_prog; ac_word=$2 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8141 $as_echo_n "checking for $ac_word... " >&6; } 8142 if ${ac_cv_path_FIND+:} false; then : 8143 $as_echo_n "(cached) " >&6 8144 else 8145 case $FIND in 8146 [\\/]* | ?:[\\/]*) 8147 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8148 ;; 8149 *) 8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8151 for as_dir in $PATH 8152 do 8153 IFS=$as_save_IFS 8154 test -z "$as_dir" && as_dir=. 8155 for ac_exec_ext in '' $ac_executable_extensions; do 8156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8157 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8159 break 2 8160 fi 8161 done 8162 done 8163 IFS=$as_save_IFS 8164 8165 ;; 8166 esac 8167 fi 8168 FIND=$ac_cv_path_FIND 8169 if test -n "$FIND"; then 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8171 $as_echo "$FIND" >&6; } 8172 else 8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8174 $as_echo "no" >&6; } 8175 fi 8176 8177 8178 test -n "$FIND" && break 8179 done 8180 8181 else 8182 # If it succeeded, then it was overridden by the user. We will use it 8183 # for the tool. 8184 8185 # First remove it from the list of overridden variables, so we can test 8186 # for unknown variables in the end. 8187 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8188 8189 # Check if we try to supply an empty value 8190 if test "x$FIND" = x; then 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8192 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8194 $as_echo_n "checking for FIND... " >&6; } 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8196 $as_echo "disabled" >&6; } 8197 else 8198 # Check if the provided tool contains a complete path. 8199 tool_specified="$FIND" 8200 tool_basename="${tool_specified##*/}" 8201 if test "x$tool_basename" = "x$tool_specified"; then 8202 # A command without a complete path is provided, search $PATH. 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8204 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8205 # Extract the first word of "$tool_basename", so it can be a program name with args. 8206 set dummy $tool_basename; ac_word=$2 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8208 $as_echo_n "checking for $ac_word... " >&6; } 8209 if ${ac_cv_path_FIND+:} false; then : 8210 $as_echo_n "(cached) " >&6 8211 else 8212 case $FIND in 8213 [\\/]* | ?:[\\/]*) 8214 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8215 ;; 8216 *) 8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8218 for as_dir in $PATH 8219 do 8220 IFS=$as_save_IFS 8221 test -z "$as_dir" && as_dir=. 8222 for ac_exec_ext in '' $ac_executable_extensions; do 8223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8224 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8226 break 2 8227 fi 8228 done 8229 done 8230 IFS=$as_save_IFS 8231 8232 ;; 8233 esac 8234 fi 8235 FIND=$ac_cv_path_FIND 8236 if test -n "$FIND"; then 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8238 $as_echo "$FIND" >&6; } 8239 else 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8241 $as_echo "no" >&6; } 8242 fi 8243 8244 8245 if test "x$FIND" = x; then 8246 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8247 fi 8248 else 8249 # Otherwise we believe it is a complete path. Use it as it is. 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8251 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8253 $as_echo_n "checking for FIND... " >&6; } 8254 if test ! -x "$tool_specified"; then 8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8256 $as_echo "not found" >&6; } 8257 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8258 fi 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8260 $as_echo "$tool_specified" >&6; } 8261 fi 8262 fi 8263 fi 8264 8265 fi 8266 8267 8268 8269 if test "x$FIND" = x; then 8270 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8271 fi 8272 8273 8274 8275 8276 8277 # Publish this variable in the help. 8278 8279 8280 if [ -z "${HEAD+x}" ]; then 8281 # The variable is not set by user, try to locate tool using the code snippet 8282 for ac_prog in head 8283 do 8284 # Extract the first word of "$ac_prog", so it can be a program name with args. 8285 set dummy $ac_prog; ac_word=$2 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8287 $as_echo_n "checking for $ac_word... " >&6; } 8288 if ${ac_cv_path_HEAD+:} false; then : 8289 $as_echo_n "(cached) " >&6 8290 else 8291 case $HEAD in 8292 [\\/]* | ?:[\\/]*) 8293 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8294 ;; 8295 *) 8296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8297 for as_dir in $PATH 8298 do 8299 IFS=$as_save_IFS 8300 test -z "$as_dir" && as_dir=. 8301 for ac_exec_ext in '' $ac_executable_extensions; do 8302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8303 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8305 break 2 8306 fi 8307 done 8308 done 8309 IFS=$as_save_IFS 8310 8311 ;; 8312 esac 8313 fi 8314 HEAD=$ac_cv_path_HEAD 8315 if test -n "$HEAD"; then 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8317 $as_echo "$HEAD" >&6; } 8318 else 8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8320 $as_echo "no" >&6; } 8321 fi 8322 8323 8324 test -n "$HEAD" && break 8325 done 8326 8327 else 8328 # The variable is set, but is it from the command line or the environment? 8329 8330 # Try to remove the string !HEAD! from our list. 8331 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8332 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8333 # If it failed, the variable was not from the command line. Ignore it, 8334 # but warn the user (except for BASH, which is always set by the calling BASH). 8335 if test "xHEAD" != xBASH; then 8336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8337 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8338 fi 8339 # Try to locate tool using the code snippet 8340 for ac_prog in head 8341 do 8342 # Extract the first word of "$ac_prog", so it can be a program name with args. 8343 set dummy $ac_prog; ac_word=$2 8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8345 $as_echo_n "checking for $ac_word... " >&6; } 8346 if ${ac_cv_path_HEAD+:} false; then : 8347 $as_echo_n "(cached) " >&6 8348 else 8349 case $HEAD in 8350 [\\/]* | ?:[\\/]*) 8351 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8352 ;; 8353 *) 8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8355 for as_dir in $PATH 8356 do 8357 IFS=$as_save_IFS 8358 test -z "$as_dir" && as_dir=. 8359 for ac_exec_ext in '' $ac_executable_extensions; do 8360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8361 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8363 break 2 8364 fi 8365 done 8366 done 8367 IFS=$as_save_IFS 8368 8369 ;; 8370 esac 8371 fi 8372 HEAD=$ac_cv_path_HEAD 8373 if test -n "$HEAD"; then 8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8375 $as_echo "$HEAD" >&6; } 8376 else 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8378 $as_echo "no" >&6; } 8379 fi 8380 8381 8382 test -n "$HEAD" && break 8383 done 8384 8385 else 8386 # If it succeeded, then it was overridden by the user. We will use it 8387 # for the tool. 8388 8389 # First remove it from the list of overridden variables, so we can test 8390 # for unknown variables in the end. 8391 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8392 8393 # Check if we try to supply an empty value 8394 if test "x$HEAD" = x; then 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8396 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8398 $as_echo_n "checking for HEAD... " >&6; } 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8400 $as_echo "disabled" >&6; } 8401 else 8402 # Check if the provided tool contains a complete path. 8403 tool_specified="$HEAD" 8404 tool_basename="${tool_specified##*/}" 8405 if test "x$tool_basename" = "x$tool_specified"; then 8406 # A command without a complete path is provided, search $PATH. 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8408 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8409 # Extract the first word of "$tool_basename", so it can be a program name with args. 8410 set dummy $tool_basename; ac_word=$2 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8412 $as_echo_n "checking for $ac_word... " >&6; } 8413 if ${ac_cv_path_HEAD+:} false; then : 8414 $as_echo_n "(cached) " >&6 8415 else 8416 case $HEAD in 8417 [\\/]* | ?:[\\/]*) 8418 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8419 ;; 8420 *) 8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8422 for as_dir in $PATH 8423 do 8424 IFS=$as_save_IFS 8425 test -z "$as_dir" && as_dir=. 8426 for ac_exec_ext in '' $ac_executable_extensions; do 8427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8428 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8430 break 2 8431 fi 8432 done 8433 done 8434 IFS=$as_save_IFS 8435 8436 ;; 8437 esac 8438 fi 8439 HEAD=$ac_cv_path_HEAD 8440 if test -n "$HEAD"; then 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8442 $as_echo "$HEAD" >&6; } 8443 else 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8445 $as_echo "no" >&6; } 8446 fi 8447 8448 8449 if test "x$HEAD" = x; then 8450 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8451 fi 8452 else 8453 # Otherwise we believe it is a complete path. Use it as it is. 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8455 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8457 $as_echo_n "checking for HEAD... " >&6; } 8458 if test ! -x "$tool_specified"; then 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8460 $as_echo "not found" >&6; } 8461 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8462 fi 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8464 $as_echo "$tool_specified" >&6; } 8465 fi 8466 fi 8467 fi 8468 8469 fi 8470 8471 8472 8473 if test "x$HEAD" = x; then 8474 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8475 fi 8476 8477 8478 8479 8480 8481 # Publish this variable in the help. 8482 8483 8484 if [ -z "${GUNZIP+x}" ]; then 8485 # The variable is not set by user, try to locate tool using the code snippet 8486 for ac_prog in gunzip 8487 do 8488 # Extract the first word of "$ac_prog", so it can be a program name with args. 8489 set dummy $ac_prog; ac_word=$2 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8491 $as_echo_n "checking for $ac_word... " >&6; } 8492 if ${ac_cv_path_GUNZIP+:} false; then : 8493 $as_echo_n "(cached) " >&6 8494 else 8495 case $GUNZIP in 8496 [\\/]* | ?:[\\/]*) 8497 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8498 ;; 8499 *) 8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8501 for as_dir in $PATH 8502 do 8503 IFS=$as_save_IFS 8504 test -z "$as_dir" && as_dir=. 8505 for ac_exec_ext in '' $ac_executable_extensions; do 8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8507 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8509 break 2 8510 fi 8511 done 8512 done 8513 IFS=$as_save_IFS 8514 8515 ;; 8516 esac 8517 fi 8518 GUNZIP=$ac_cv_path_GUNZIP 8519 if test -n "$GUNZIP"; then 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8521 $as_echo "$GUNZIP" >&6; } 8522 else 8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8524 $as_echo "no" >&6; } 8525 fi 8526 8527 8528 test -n "$GUNZIP" && break 8529 done 8530 8531 else 8532 # The variable is set, but is it from the command line or the environment? 8533 8534 # Try to remove the string !GUNZIP! from our list. 8535 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8536 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8537 # If it failed, the variable was not from the command line. Ignore it, 8538 # but warn the user (except for BASH, which is always set by the calling BASH). 8539 if test "xGUNZIP" != xBASH; then 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8541 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8542 fi 8543 # Try to locate tool using the code snippet 8544 for ac_prog in gunzip 8545 do 8546 # Extract the first word of "$ac_prog", so it can be a program name with args. 8547 set dummy $ac_prog; ac_word=$2 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8549 $as_echo_n "checking for $ac_word... " >&6; } 8550 if ${ac_cv_path_GUNZIP+:} false; then : 8551 $as_echo_n "(cached) " >&6 8552 else 8553 case $GUNZIP in 8554 [\\/]* | ?:[\\/]*) 8555 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8556 ;; 8557 *) 8558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8559 for as_dir in $PATH 8560 do 8561 IFS=$as_save_IFS 8562 test -z "$as_dir" && as_dir=. 8563 for ac_exec_ext in '' $ac_executable_extensions; do 8564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8565 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8567 break 2 8568 fi 8569 done 8570 done 8571 IFS=$as_save_IFS 8572 8573 ;; 8574 esac 8575 fi 8576 GUNZIP=$ac_cv_path_GUNZIP 8577 if test -n "$GUNZIP"; then 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8579 $as_echo "$GUNZIP" >&6; } 8580 else 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8582 $as_echo "no" >&6; } 8583 fi 8584 8585 8586 test -n "$GUNZIP" && break 8587 done 8588 8589 else 8590 # If it succeeded, then it was overridden by the user. We will use it 8591 # for the tool. 8592 8593 # First remove it from the list of overridden variables, so we can test 8594 # for unknown variables in the end. 8595 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8596 8597 # Check if we try to supply an empty value 8598 if test "x$GUNZIP" = x; then 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8600 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8602 $as_echo_n "checking for GUNZIP... " >&6; } 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8604 $as_echo "disabled" >&6; } 8605 else 8606 # Check if the provided tool contains a complete path. 8607 tool_specified="$GUNZIP" 8608 tool_basename="${tool_specified##*/}" 8609 if test "x$tool_basename" = "x$tool_specified"; then 8610 # A command without a complete path is provided, search $PATH. 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8612 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8613 # Extract the first word of "$tool_basename", so it can be a program name with args. 8614 set dummy $tool_basename; ac_word=$2 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8616 $as_echo_n "checking for $ac_word... " >&6; } 8617 if ${ac_cv_path_GUNZIP+:} false; then : 8618 $as_echo_n "(cached) " >&6 8619 else 8620 case $GUNZIP in 8621 [\\/]* | ?:[\\/]*) 8622 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8623 ;; 8624 *) 8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8626 for as_dir in $PATH 8627 do 8628 IFS=$as_save_IFS 8629 test -z "$as_dir" && as_dir=. 8630 for ac_exec_ext in '' $ac_executable_extensions; do 8631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8632 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8634 break 2 8635 fi 8636 done 8637 done 8638 IFS=$as_save_IFS 8639 8640 ;; 8641 esac 8642 fi 8643 GUNZIP=$ac_cv_path_GUNZIP 8644 if test -n "$GUNZIP"; then 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8646 $as_echo "$GUNZIP" >&6; } 8647 else 8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8649 $as_echo "no" >&6; } 8650 fi 8651 8652 8653 if test "x$GUNZIP" = x; then 8654 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8655 fi 8656 else 8657 # Otherwise we believe it is a complete path. Use it as it is. 8658 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8659 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8661 $as_echo_n "checking for GUNZIP... " >&6; } 8662 if test ! -x "$tool_specified"; then 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8664 $as_echo "not found" >&6; } 8665 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8666 fi 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8668 $as_echo "$tool_specified" >&6; } 8669 fi 8670 fi 8671 fi 8672 8673 fi 8674 8675 8676 8677 if test "x$GUNZIP" = x; then 8678 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8679 fi 8680 8681 8682 8683 8684 8685 # Publish this variable in the help. 8686 8687 8688 if [ -z "${GZIP+x}" ]; then 8689 # The variable is not set by user, try to locate tool using the code snippet 8690 for ac_prog in pigz gzip 8691 do 8692 # Extract the first word of "$ac_prog", so it can be a program name with args. 8693 set dummy $ac_prog; ac_word=$2 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8695 $as_echo_n "checking for $ac_word... " >&6; } 8696 if ${ac_cv_path_GZIP+:} false; then : 8697 $as_echo_n "(cached) " >&6 8698 else 8699 case $GZIP in 8700 [\\/]* | ?:[\\/]*) 8701 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8702 ;; 8703 *) 8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8705 for as_dir in $PATH 8706 do 8707 IFS=$as_save_IFS 8708 test -z "$as_dir" && as_dir=. 8709 for ac_exec_ext in '' $ac_executable_extensions; do 8710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8711 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8713 break 2 8714 fi 8715 done 8716 done 8717 IFS=$as_save_IFS 8718 8719 ;; 8720 esac 8721 fi 8722 GZIP=$ac_cv_path_GZIP 8723 if test -n "$GZIP"; then 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8725 $as_echo "$GZIP" >&6; } 8726 else 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8728 $as_echo "no" >&6; } 8729 fi 8730 8731 8732 test -n "$GZIP" && break 8733 done 8734 8735 else 8736 # The variable is set, but is it from the command line or the environment? 8737 8738 # Try to remove the string !GZIP! from our list. 8739 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8740 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8741 # If it failed, the variable was not from the command line. Ignore it, 8742 # but warn the user (except for BASH, which is always set by the calling BASH). 8743 if test "xGZIP" != xBASH; then 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8745 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8746 fi 8747 # Try to locate tool using the code snippet 8748 for ac_prog in pigz gzip 8749 do 8750 # Extract the first word of "$ac_prog", so it can be a program name with args. 8751 set dummy $ac_prog; ac_word=$2 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8753 $as_echo_n "checking for $ac_word... " >&6; } 8754 if ${ac_cv_path_GZIP+:} false; then : 8755 $as_echo_n "(cached) " >&6 8756 else 8757 case $GZIP in 8758 [\\/]* | ?:[\\/]*) 8759 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8760 ;; 8761 *) 8762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8763 for as_dir in $PATH 8764 do 8765 IFS=$as_save_IFS 8766 test -z "$as_dir" && as_dir=. 8767 for ac_exec_ext in '' $ac_executable_extensions; do 8768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8769 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8771 break 2 8772 fi 8773 done 8774 done 8775 IFS=$as_save_IFS 8776 8777 ;; 8778 esac 8779 fi 8780 GZIP=$ac_cv_path_GZIP 8781 if test -n "$GZIP"; then 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8783 $as_echo "$GZIP" >&6; } 8784 else 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8786 $as_echo "no" >&6; } 8787 fi 8788 8789 8790 test -n "$GZIP" && break 8791 done 8792 8793 else 8794 # If it succeeded, then it was overridden by the user. We will use it 8795 # for the tool. 8796 8797 # First remove it from the list of overridden variables, so we can test 8798 # for unknown variables in the end. 8799 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8800 8801 # Check if we try to supply an empty value 8802 if test "x$GZIP" = x; then 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8804 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8806 $as_echo_n "checking for GZIP... " >&6; } 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8808 $as_echo "disabled" >&6; } 8809 else 8810 # Check if the provided tool contains a complete path. 8811 tool_specified="$GZIP" 8812 tool_basename="${tool_specified##*/}" 8813 if test "x$tool_basename" = "x$tool_specified"; then 8814 # A command without a complete path is provided, search $PATH. 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8816 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8817 # Extract the first word of "$tool_basename", so it can be a program name with args. 8818 set dummy $tool_basename; ac_word=$2 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8820 $as_echo_n "checking for $ac_word... " >&6; } 8821 if ${ac_cv_path_GZIP+:} false; then : 8822 $as_echo_n "(cached) " >&6 8823 else 8824 case $GZIP in 8825 [\\/]* | ?:[\\/]*) 8826 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8827 ;; 8828 *) 8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8830 for as_dir in $PATH 8831 do 8832 IFS=$as_save_IFS 8833 test -z "$as_dir" && as_dir=. 8834 for ac_exec_ext in '' $ac_executable_extensions; do 8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8836 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8838 break 2 8839 fi 8840 done 8841 done 8842 IFS=$as_save_IFS 8843 8844 ;; 8845 esac 8846 fi 8847 GZIP=$ac_cv_path_GZIP 8848 if test -n "$GZIP"; then 8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8850 $as_echo "$GZIP" >&6; } 8851 else 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8853 $as_echo "no" >&6; } 8854 fi 8855 8856 8857 if test "x$GZIP" = x; then 8858 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8859 fi 8860 else 8861 # Otherwise we believe it is a complete path. Use it as it is. 8862 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8863 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8865 $as_echo_n "checking for GZIP... " >&6; } 8866 if test ! -x "$tool_specified"; then 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8868 $as_echo "not found" >&6; } 8869 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8870 fi 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8872 $as_echo "$tool_specified" >&6; } 8873 fi 8874 fi 8875 fi 8876 8877 fi 8878 8879 8880 8881 if test "x$GZIP" = x; then 8882 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8883 fi 8884 8885 8886 8887 8888 8889 # Publish this variable in the help. 8890 8891 8892 if [ -z "${LN+x}" ]; then 8893 # The variable is not set by user, try to locate tool using the code snippet 8894 for ac_prog in ln 8895 do 8896 # Extract the first word of "$ac_prog", so it can be a program name with args. 8897 set dummy $ac_prog; ac_word=$2 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8899 $as_echo_n "checking for $ac_word... " >&6; } 8900 if ${ac_cv_path_LN+:} false; then : 8901 $as_echo_n "(cached) " >&6 8902 else 8903 case $LN in 8904 [\\/]* | ?:[\\/]*) 8905 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8906 ;; 8907 *) 8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8909 for as_dir in $PATH 8910 do 8911 IFS=$as_save_IFS 8912 test -z "$as_dir" && as_dir=. 8913 for ac_exec_ext in '' $ac_executable_extensions; do 8914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8915 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8917 break 2 8918 fi 8919 done 8920 done 8921 IFS=$as_save_IFS 8922 8923 ;; 8924 esac 8925 fi 8926 LN=$ac_cv_path_LN 8927 if test -n "$LN"; then 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8929 $as_echo "$LN" >&6; } 8930 else 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8932 $as_echo "no" >&6; } 8933 fi 8934 8935 8936 test -n "$LN" && break 8937 done 8938 8939 else 8940 # The variable is set, but is it from the command line or the environment? 8941 8942 # Try to remove the string !LN! from our list. 8943 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8944 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8945 # If it failed, the variable was not from the command line. Ignore it, 8946 # but warn the user (except for BASH, which is always set by the calling BASH). 8947 if test "xLN" != xBASH; then 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8949 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8950 fi 8951 # Try to locate tool using the code snippet 8952 for ac_prog in ln 8953 do 8954 # Extract the first word of "$ac_prog", so it can be a program name with args. 8955 set dummy $ac_prog; ac_word=$2 8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8957 $as_echo_n "checking for $ac_word... " >&6; } 8958 if ${ac_cv_path_LN+:} false; then : 8959 $as_echo_n "(cached) " >&6 8960 else 8961 case $LN in 8962 [\\/]* | ?:[\\/]*) 8963 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8964 ;; 8965 *) 8966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8967 for as_dir in $PATH 8968 do 8969 IFS=$as_save_IFS 8970 test -z "$as_dir" && as_dir=. 8971 for ac_exec_ext in '' $ac_executable_extensions; do 8972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8973 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8975 break 2 8976 fi 8977 done 8978 done 8979 IFS=$as_save_IFS 8980 8981 ;; 8982 esac 8983 fi 8984 LN=$ac_cv_path_LN 8985 if test -n "$LN"; then 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8987 $as_echo "$LN" >&6; } 8988 else 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8990 $as_echo "no" >&6; } 8991 fi 8992 8993 8994 test -n "$LN" && break 8995 done 8996 8997 else 8998 # If it succeeded, then it was overridden by the user. We will use it 8999 # for the tool. 9000 9001 # First remove it from the list of overridden variables, so we can test 9002 # for unknown variables in the end. 9003 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9004 9005 # Check if we try to supply an empty value 9006 if test "x$LN" = x; then 9007 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 9008 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9010 $as_echo_n "checking for LN... " >&6; } 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9012 $as_echo "disabled" >&6; } 9013 else 9014 # Check if the provided tool contains a complete path. 9015 tool_specified="$LN" 9016 tool_basename="${tool_specified##*/}" 9017 if test "x$tool_basename" = "x$tool_specified"; then 9018 # A command without a complete path is provided, search $PATH. 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 9020 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 9021 # Extract the first word of "$tool_basename", so it can be a program name with args. 9022 set dummy $tool_basename; ac_word=$2 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9024 $as_echo_n "checking for $ac_word... " >&6; } 9025 if ${ac_cv_path_LN+:} false; then : 9026 $as_echo_n "(cached) " >&6 9027 else 9028 case $LN in 9029 [\\/]* | ?:[\\/]*) 9030 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9031 ;; 9032 *) 9033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9034 for as_dir in $PATH 9035 do 9036 IFS=$as_save_IFS 9037 test -z "$as_dir" && as_dir=. 9038 for ac_exec_ext in '' $ac_executable_extensions; do 9039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9040 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9042 break 2 9043 fi 9044 done 9045 done 9046 IFS=$as_save_IFS 9047 9048 ;; 9049 esac 9050 fi 9051 LN=$ac_cv_path_LN 9052 if test -n "$LN"; then 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9054 $as_echo "$LN" >&6; } 9055 else 9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9057 $as_echo "no" >&6; } 9058 fi 9059 9060 9061 if test "x$LN" = x; then 9062 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9063 fi 9064 else 9065 # Otherwise we believe it is a complete path. Use it as it is. 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9067 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9069 $as_echo_n "checking for LN... " >&6; } 9070 if test ! -x "$tool_specified"; then 9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9072 $as_echo "not found" >&6; } 9073 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9074 fi 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9076 $as_echo "$tool_specified" >&6; } 9077 fi 9078 fi 9079 fi 9080 9081 fi 9082 9083 9084 9085 if test "x$LN" = x; then 9086 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9087 fi 9088 9089 9090 9091 9092 9093 # Publish this variable in the help. 9094 9095 9096 if [ -z "${LS+x}" ]; then 9097 # The variable is not set by user, try to locate tool using the code snippet 9098 for ac_prog in ls 9099 do 9100 # Extract the first word of "$ac_prog", so it can be a program name with args. 9101 set dummy $ac_prog; ac_word=$2 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9103 $as_echo_n "checking for $ac_word... " >&6; } 9104 if ${ac_cv_path_LS+:} false; then : 9105 $as_echo_n "(cached) " >&6 9106 else 9107 case $LS in 9108 [\\/]* | ?:[\\/]*) 9109 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9110 ;; 9111 *) 9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9113 for as_dir in $PATH 9114 do 9115 IFS=$as_save_IFS 9116 test -z "$as_dir" && as_dir=. 9117 for ac_exec_ext in '' $ac_executable_extensions; do 9118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9119 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9121 break 2 9122 fi 9123 done 9124 done 9125 IFS=$as_save_IFS 9126 9127 ;; 9128 esac 9129 fi 9130 LS=$ac_cv_path_LS 9131 if test -n "$LS"; then 9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9133 $as_echo "$LS" >&6; } 9134 else 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9136 $as_echo "no" >&6; } 9137 fi 9138 9139 9140 test -n "$LS" && break 9141 done 9142 9143 else 9144 # The variable is set, but is it from the command line or the environment? 9145 9146 # Try to remove the string !LS! from our list. 9147 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9148 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9149 # If it failed, the variable was not from the command line. Ignore it, 9150 # but warn the user (except for BASH, which is always set by the calling BASH). 9151 if test "xLS" != xBASH; then 9152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9153 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9154 fi 9155 # Try to locate tool using the code snippet 9156 for ac_prog in ls 9157 do 9158 # Extract the first word of "$ac_prog", so it can be a program name with args. 9159 set dummy $ac_prog; ac_word=$2 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9161 $as_echo_n "checking for $ac_word... " >&6; } 9162 if ${ac_cv_path_LS+:} false; then : 9163 $as_echo_n "(cached) " >&6 9164 else 9165 case $LS in 9166 [\\/]* | ?:[\\/]*) 9167 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9168 ;; 9169 *) 9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9171 for as_dir in $PATH 9172 do 9173 IFS=$as_save_IFS 9174 test -z "$as_dir" && as_dir=. 9175 for ac_exec_ext in '' $ac_executable_extensions; do 9176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9177 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9179 break 2 9180 fi 9181 done 9182 done 9183 IFS=$as_save_IFS 9184 9185 ;; 9186 esac 9187 fi 9188 LS=$ac_cv_path_LS 9189 if test -n "$LS"; then 9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9191 $as_echo "$LS" >&6; } 9192 else 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9194 $as_echo "no" >&6; } 9195 fi 9196 9197 9198 test -n "$LS" && break 9199 done 9200 9201 else 9202 # If it succeeded, then it was overridden by the user. We will use it 9203 # for the tool. 9204 9205 # First remove it from the list of overridden variables, so we can test 9206 # for unknown variables in the end. 9207 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9208 9209 # Check if we try to supply an empty value 9210 if test "x$LS" = x; then 9211 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9212 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9214 $as_echo_n "checking for LS... " >&6; } 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9216 $as_echo "disabled" >&6; } 9217 else 9218 # Check if the provided tool contains a complete path. 9219 tool_specified="$LS" 9220 tool_basename="${tool_specified##*/}" 9221 if test "x$tool_basename" = "x$tool_specified"; then 9222 # A command without a complete path is provided, search $PATH. 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9224 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9225 # Extract the first word of "$tool_basename", so it can be a program name with args. 9226 set dummy $tool_basename; ac_word=$2 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9228 $as_echo_n "checking for $ac_word... " >&6; } 9229 if ${ac_cv_path_LS+:} false; then : 9230 $as_echo_n "(cached) " >&6 9231 else 9232 case $LS in 9233 [\\/]* | ?:[\\/]*) 9234 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9235 ;; 9236 *) 9237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9238 for as_dir in $PATH 9239 do 9240 IFS=$as_save_IFS 9241 test -z "$as_dir" && as_dir=. 9242 for ac_exec_ext in '' $ac_executable_extensions; do 9243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9244 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9246 break 2 9247 fi 9248 done 9249 done 9250 IFS=$as_save_IFS 9251 9252 ;; 9253 esac 9254 fi 9255 LS=$ac_cv_path_LS 9256 if test -n "$LS"; then 9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9258 $as_echo "$LS" >&6; } 9259 else 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9261 $as_echo "no" >&6; } 9262 fi 9263 9264 9265 if test "x$LS" = x; then 9266 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9267 fi 9268 else 9269 # Otherwise we believe it is a complete path. Use it as it is. 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9271 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9273 $as_echo_n "checking for LS... " >&6; } 9274 if test ! -x "$tool_specified"; then 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9276 $as_echo "not found" >&6; } 9277 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9278 fi 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9280 $as_echo "$tool_specified" >&6; } 9281 fi 9282 fi 9283 fi 9284 9285 fi 9286 9287 9288 9289 if test "x$LS" = x; then 9290 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9291 fi 9292 9293 9294 9295 9296 9297 # Publish this variable in the help. 9298 9299 9300 if [ -z "${MKDIR+x}" ]; then 9301 # The variable is not set by user, try to locate tool using the code snippet 9302 for ac_prog in mkdir 9303 do 9304 # Extract the first word of "$ac_prog", so it can be a program name with args. 9305 set dummy $ac_prog; ac_word=$2 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9307 $as_echo_n "checking for $ac_word... " >&6; } 9308 if ${ac_cv_path_MKDIR+:} false; then : 9309 $as_echo_n "(cached) " >&6 9310 else 9311 case $MKDIR in 9312 [\\/]* | ?:[\\/]*) 9313 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9314 ;; 9315 *) 9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9317 for as_dir in $PATH 9318 do 9319 IFS=$as_save_IFS 9320 test -z "$as_dir" && as_dir=. 9321 for ac_exec_ext in '' $ac_executable_extensions; do 9322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9323 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9325 break 2 9326 fi 9327 done 9328 done 9329 IFS=$as_save_IFS 9330 9331 ;; 9332 esac 9333 fi 9334 MKDIR=$ac_cv_path_MKDIR 9335 if test -n "$MKDIR"; then 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9337 $as_echo "$MKDIR" >&6; } 9338 else 9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9340 $as_echo "no" >&6; } 9341 fi 9342 9343 9344 test -n "$MKDIR" && break 9345 done 9346 9347 else 9348 # The variable is set, but is it from the command line or the environment? 9349 9350 # Try to remove the string !MKDIR! from our list. 9351 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9352 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9353 # If it failed, the variable was not from the command line. Ignore it, 9354 # but warn the user (except for BASH, which is always set by the calling BASH). 9355 if test "xMKDIR" != xBASH; then 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9357 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9358 fi 9359 # Try to locate tool using the code snippet 9360 for ac_prog in mkdir 9361 do 9362 # Extract the first word of "$ac_prog", so it can be a program name with args. 9363 set dummy $ac_prog; ac_word=$2 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9365 $as_echo_n "checking for $ac_word... " >&6; } 9366 if ${ac_cv_path_MKDIR+:} false; then : 9367 $as_echo_n "(cached) " >&6 9368 else 9369 case $MKDIR in 9370 [\\/]* | ?:[\\/]*) 9371 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9372 ;; 9373 *) 9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9375 for as_dir in $PATH 9376 do 9377 IFS=$as_save_IFS 9378 test -z "$as_dir" && as_dir=. 9379 for ac_exec_ext in '' $ac_executable_extensions; do 9380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9381 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9383 break 2 9384 fi 9385 done 9386 done 9387 IFS=$as_save_IFS 9388 9389 ;; 9390 esac 9391 fi 9392 MKDIR=$ac_cv_path_MKDIR 9393 if test -n "$MKDIR"; then 9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9395 $as_echo "$MKDIR" >&6; } 9396 else 9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9398 $as_echo "no" >&6; } 9399 fi 9400 9401 9402 test -n "$MKDIR" && break 9403 done 9404 9405 else 9406 # If it succeeded, then it was overridden by the user. We will use it 9407 # for the tool. 9408 9409 # First remove it from the list of overridden variables, so we can test 9410 # for unknown variables in the end. 9411 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9412 9413 # Check if we try to supply an empty value 9414 if test "x$MKDIR" = x; then 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9416 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9418 $as_echo_n "checking for MKDIR... " >&6; } 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9420 $as_echo "disabled" >&6; } 9421 else 9422 # Check if the provided tool contains a complete path. 9423 tool_specified="$MKDIR" 9424 tool_basename="${tool_specified##*/}" 9425 if test "x$tool_basename" = "x$tool_specified"; then 9426 # A command without a complete path is provided, search $PATH. 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9428 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9429 # Extract the first word of "$tool_basename", so it can be a program name with args. 9430 set dummy $tool_basename; ac_word=$2 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9432 $as_echo_n "checking for $ac_word... " >&6; } 9433 if ${ac_cv_path_MKDIR+:} false; then : 9434 $as_echo_n "(cached) " >&6 9435 else 9436 case $MKDIR in 9437 [\\/]* | ?:[\\/]*) 9438 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9439 ;; 9440 *) 9441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9442 for as_dir in $PATH 9443 do 9444 IFS=$as_save_IFS 9445 test -z "$as_dir" && as_dir=. 9446 for ac_exec_ext in '' $ac_executable_extensions; do 9447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9448 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9450 break 2 9451 fi 9452 done 9453 done 9454 IFS=$as_save_IFS 9455 9456 ;; 9457 esac 9458 fi 9459 MKDIR=$ac_cv_path_MKDIR 9460 if test -n "$MKDIR"; then 9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9462 $as_echo "$MKDIR" >&6; } 9463 else 9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9465 $as_echo "no" >&6; } 9466 fi 9467 9468 9469 if test "x$MKDIR" = x; then 9470 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9471 fi 9472 else 9473 # Otherwise we believe it is a complete path. Use it as it is. 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9475 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9477 $as_echo_n "checking for MKDIR... " >&6; } 9478 if test ! -x "$tool_specified"; then 9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9480 $as_echo "not found" >&6; } 9481 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9482 fi 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9484 $as_echo "$tool_specified" >&6; } 9485 fi 9486 fi 9487 fi 9488 9489 fi 9490 9491 9492 9493 if test "x$MKDIR" = x; then 9494 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9495 fi 9496 9497 9498 9499 9500 9501 # Publish this variable in the help. 9502 9503 9504 if [ -z "${MKTEMP+x}" ]; then 9505 # The variable is not set by user, try to locate tool using the code snippet 9506 for ac_prog in mktemp 9507 do 9508 # Extract the first word of "$ac_prog", so it can be a program name with args. 9509 set dummy $ac_prog; ac_word=$2 9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9511 $as_echo_n "checking for $ac_word... " >&6; } 9512 if ${ac_cv_path_MKTEMP+:} false; then : 9513 $as_echo_n "(cached) " >&6 9514 else 9515 case $MKTEMP in 9516 [\\/]* | ?:[\\/]*) 9517 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9518 ;; 9519 *) 9520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9521 for as_dir in $PATH 9522 do 9523 IFS=$as_save_IFS 9524 test -z "$as_dir" && as_dir=. 9525 for ac_exec_ext in '' $ac_executable_extensions; do 9526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9527 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9529 break 2 9530 fi 9531 done 9532 done 9533 IFS=$as_save_IFS 9534 9535 ;; 9536 esac 9537 fi 9538 MKTEMP=$ac_cv_path_MKTEMP 9539 if test -n "$MKTEMP"; then 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9541 $as_echo "$MKTEMP" >&6; } 9542 else 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9544 $as_echo "no" >&6; } 9545 fi 9546 9547 9548 test -n "$MKTEMP" && break 9549 done 9550 9551 else 9552 # The variable is set, but is it from the command line or the environment? 9553 9554 # Try to remove the string !MKTEMP! from our list. 9555 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9556 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9557 # If it failed, the variable was not from the command line. Ignore it, 9558 # but warn the user (except for BASH, which is always set by the calling BASH). 9559 if test "xMKTEMP" != xBASH; then 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9561 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9562 fi 9563 # Try to locate tool using the code snippet 9564 for ac_prog in mktemp 9565 do 9566 # Extract the first word of "$ac_prog", so it can be a program name with args. 9567 set dummy $ac_prog; ac_word=$2 9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9569 $as_echo_n "checking for $ac_word... " >&6; } 9570 if ${ac_cv_path_MKTEMP+:} false; then : 9571 $as_echo_n "(cached) " >&6 9572 else 9573 case $MKTEMP in 9574 [\\/]* | ?:[\\/]*) 9575 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9576 ;; 9577 *) 9578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9579 for as_dir in $PATH 9580 do 9581 IFS=$as_save_IFS 9582 test -z "$as_dir" && as_dir=. 9583 for ac_exec_ext in '' $ac_executable_extensions; do 9584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9585 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9587 break 2 9588 fi 9589 done 9590 done 9591 IFS=$as_save_IFS 9592 9593 ;; 9594 esac 9595 fi 9596 MKTEMP=$ac_cv_path_MKTEMP 9597 if test -n "$MKTEMP"; then 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9599 $as_echo "$MKTEMP" >&6; } 9600 else 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9602 $as_echo "no" >&6; } 9603 fi 9604 9605 9606 test -n "$MKTEMP" && break 9607 done 9608 9609 else 9610 # If it succeeded, then it was overridden by the user. We will use it 9611 # for the tool. 9612 9613 # First remove it from the list of overridden variables, so we can test 9614 # for unknown variables in the end. 9615 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9616 9617 # Check if we try to supply an empty value 9618 if test "x$MKTEMP" = x; then 9619 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9620 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9622 $as_echo_n "checking for MKTEMP... " >&6; } 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9624 $as_echo "disabled" >&6; } 9625 else 9626 # Check if the provided tool contains a complete path. 9627 tool_specified="$MKTEMP" 9628 tool_basename="${tool_specified##*/}" 9629 if test "x$tool_basename" = "x$tool_specified"; then 9630 # A command without a complete path is provided, search $PATH. 9631 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9632 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9633 # Extract the first word of "$tool_basename", so it can be a program name with args. 9634 set dummy $tool_basename; ac_word=$2 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9636 $as_echo_n "checking for $ac_word... " >&6; } 9637 if ${ac_cv_path_MKTEMP+:} false; then : 9638 $as_echo_n "(cached) " >&6 9639 else 9640 case $MKTEMP in 9641 [\\/]* | ?:[\\/]*) 9642 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9643 ;; 9644 *) 9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9646 for as_dir in $PATH 9647 do 9648 IFS=$as_save_IFS 9649 test -z "$as_dir" && as_dir=. 9650 for ac_exec_ext in '' $ac_executable_extensions; do 9651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9652 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9654 break 2 9655 fi 9656 done 9657 done 9658 IFS=$as_save_IFS 9659 9660 ;; 9661 esac 9662 fi 9663 MKTEMP=$ac_cv_path_MKTEMP 9664 if test -n "$MKTEMP"; then 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9666 $as_echo "$MKTEMP" >&6; } 9667 else 9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9669 $as_echo "no" >&6; } 9670 fi 9671 9672 9673 if test "x$MKTEMP" = x; then 9674 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9675 fi 9676 else 9677 # Otherwise we believe it is a complete path. Use it as it is. 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9679 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9681 $as_echo_n "checking for MKTEMP... " >&6; } 9682 if test ! -x "$tool_specified"; then 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9684 $as_echo "not found" >&6; } 9685 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9686 fi 9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9688 $as_echo "$tool_specified" >&6; } 9689 fi 9690 fi 9691 fi 9692 9693 fi 9694 9695 9696 9697 if test "x$MKTEMP" = x; then 9698 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9699 fi 9700 9701 9702 9703 9704 9705 # Publish this variable in the help. 9706 9707 9708 if [ -z "${MV+x}" ]; then 9709 # The variable is not set by user, try to locate tool using the code snippet 9710 for ac_prog in mv 9711 do 9712 # Extract the first word of "$ac_prog", so it can be a program name with args. 9713 set dummy $ac_prog; ac_word=$2 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9715 $as_echo_n "checking for $ac_word... " >&6; } 9716 if ${ac_cv_path_MV+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718 else 9719 case $MV in 9720 [\\/]* | ?:[\\/]*) 9721 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9722 ;; 9723 *) 9724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9725 for as_dir in $PATH 9726 do 9727 IFS=$as_save_IFS 9728 test -z "$as_dir" && as_dir=. 9729 for ac_exec_ext in '' $ac_executable_extensions; do 9730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9731 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9733 break 2 9734 fi 9735 done 9736 done 9737 IFS=$as_save_IFS 9738 9739 ;; 9740 esac 9741 fi 9742 MV=$ac_cv_path_MV 9743 if test -n "$MV"; then 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9745 $as_echo "$MV" >&6; } 9746 else 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9748 $as_echo "no" >&6; } 9749 fi 9750 9751 9752 test -n "$MV" && break 9753 done 9754 9755 else 9756 # The variable is set, but is it from the command line or the environment? 9757 9758 # Try to remove the string !MV! from our list. 9759 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9760 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9761 # If it failed, the variable was not from the command line. Ignore it, 9762 # but warn the user (except for BASH, which is always set by the calling BASH). 9763 if test "xMV" != xBASH; then 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9765 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9766 fi 9767 # Try to locate tool using the code snippet 9768 for ac_prog in mv 9769 do 9770 # Extract the first word of "$ac_prog", so it can be a program name with args. 9771 set dummy $ac_prog; ac_word=$2 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9773 $as_echo_n "checking for $ac_word... " >&6; } 9774 if ${ac_cv_path_MV+:} false; then : 9775 $as_echo_n "(cached) " >&6 9776 else 9777 case $MV in 9778 [\\/]* | ?:[\\/]*) 9779 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9780 ;; 9781 *) 9782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9783 for as_dir in $PATH 9784 do 9785 IFS=$as_save_IFS 9786 test -z "$as_dir" && as_dir=. 9787 for ac_exec_ext in '' $ac_executable_extensions; do 9788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9789 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9791 break 2 9792 fi 9793 done 9794 done 9795 IFS=$as_save_IFS 9796 9797 ;; 9798 esac 9799 fi 9800 MV=$ac_cv_path_MV 9801 if test -n "$MV"; then 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9803 $as_echo "$MV" >&6; } 9804 else 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9806 $as_echo "no" >&6; } 9807 fi 9808 9809 9810 test -n "$MV" && break 9811 done 9812 9813 else 9814 # If it succeeded, then it was overridden by the user. We will use it 9815 # for the tool. 9816 9817 # First remove it from the list of overridden variables, so we can test 9818 # for unknown variables in the end. 9819 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9820 9821 # Check if we try to supply an empty value 9822 if test "x$MV" = x; then 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9824 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9826 $as_echo_n "checking for MV... " >&6; } 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9828 $as_echo "disabled" >&6; } 9829 else 9830 # Check if the provided tool contains a complete path. 9831 tool_specified="$MV" 9832 tool_basename="${tool_specified##*/}" 9833 if test "x$tool_basename" = "x$tool_specified"; then 9834 # A command without a complete path is provided, search $PATH. 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9836 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9837 # Extract the first word of "$tool_basename", so it can be a program name with args. 9838 set dummy $tool_basename; ac_word=$2 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9840 $as_echo_n "checking for $ac_word... " >&6; } 9841 if ${ac_cv_path_MV+:} false; then : 9842 $as_echo_n "(cached) " >&6 9843 else 9844 case $MV in 9845 [\\/]* | ?:[\\/]*) 9846 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9847 ;; 9848 *) 9849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9850 for as_dir in $PATH 9851 do 9852 IFS=$as_save_IFS 9853 test -z "$as_dir" && as_dir=. 9854 for ac_exec_ext in '' $ac_executable_extensions; do 9855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9856 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9858 break 2 9859 fi 9860 done 9861 done 9862 IFS=$as_save_IFS 9863 9864 ;; 9865 esac 9866 fi 9867 MV=$ac_cv_path_MV 9868 if test -n "$MV"; then 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9870 $as_echo "$MV" >&6; } 9871 else 9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9873 $as_echo "no" >&6; } 9874 fi 9875 9876 9877 if test "x$MV" = x; then 9878 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9879 fi 9880 else 9881 # Otherwise we believe it is a complete path. Use it as it is. 9882 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9883 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9885 $as_echo_n "checking for MV... " >&6; } 9886 if test ! -x "$tool_specified"; then 9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9888 $as_echo "not found" >&6; } 9889 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9890 fi 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9892 $as_echo "$tool_specified" >&6; } 9893 fi 9894 fi 9895 fi 9896 9897 fi 9898 9899 9900 9901 if test "x$MV" = x; then 9902 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9903 fi 9904 9905 9906 9907 9908 9909 # Publish this variable in the help. 9910 9911 9912 if [ -z "${NAWK+x}" ]; then 9913 # The variable is not set by user, try to locate tool using the code snippet 9914 for ac_prog in nawk gawk awk 9915 do 9916 # Extract the first word of "$ac_prog", so it can be a program name with args. 9917 set dummy $ac_prog; ac_word=$2 9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9919 $as_echo_n "checking for $ac_word... " >&6; } 9920 if ${ac_cv_path_NAWK+:} false; then : 9921 $as_echo_n "(cached) " >&6 9922 else 9923 case $NAWK in 9924 [\\/]* | ?:[\\/]*) 9925 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9926 ;; 9927 *) 9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9929 for as_dir in $PATH 9930 do 9931 IFS=$as_save_IFS 9932 test -z "$as_dir" && as_dir=. 9933 for ac_exec_ext in '' $ac_executable_extensions; do 9934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9935 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9937 break 2 9938 fi 9939 done 9940 done 9941 IFS=$as_save_IFS 9942 9943 ;; 9944 esac 9945 fi 9946 NAWK=$ac_cv_path_NAWK 9947 if test -n "$NAWK"; then 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9949 $as_echo "$NAWK" >&6; } 9950 else 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9952 $as_echo "no" >&6; } 9953 fi 9954 9955 9956 test -n "$NAWK" && break 9957 done 9958 9959 else 9960 # The variable is set, but is it from the command line or the environment? 9961 9962 # Try to remove the string !NAWK! from our list. 9963 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9964 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9965 # If it failed, the variable was not from the command line. Ignore it, 9966 # but warn the user (except for BASH, which is always set by the calling BASH). 9967 if test "xNAWK" != xBASH; then 9968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9969 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9970 fi 9971 # Try to locate tool using the code snippet 9972 for ac_prog in nawk gawk awk 9973 do 9974 # Extract the first word of "$ac_prog", so it can be a program name with args. 9975 set dummy $ac_prog; ac_word=$2 9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9977 $as_echo_n "checking for $ac_word... " >&6; } 9978 if ${ac_cv_path_NAWK+:} false; then : 9979 $as_echo_n "(cached) " >&6 9980 else 9981 case $NAWK in 9982 [\\/]* | ?:[\\/]*) 9983 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9984 ;; 9985 *) 9986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9987 for as_dir in $PATH 9988 do 9989 IFS=$as_save_IFS 9990 test -z "$as_dir" && as_dir=. 9991 for ac_exec_ext in '' $ac_executable_extensions; do 9992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9993 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9995 break 2 9996 fi 9997 done 9998 done 9999 IFS=$as_save_IFS 10000 10001 ;; 10002 esac 10003 fi 10004 NAWK=$ac_cv_path_NAWK 10005 if test -n "$NAWK"; then 10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10007 $as_echo "$NAWK" >&6; } 10008 else 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10010 $as_echo "no" >&6; } 10011 fi 10012 10013 10014 test -n "$NAWK" && break 10015 done 10016 10017 else 10018 # If it succeeded, then it was overridden by the user. We will use it 10019 # for the tool. 10020 10021 # First remove it from the list of overridden variables, so we can test 10022 # for unknown variables in the end. 10023 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10024 10025 # Check if we try to supply an empty value 10026 if test "x$NAWK" = x; then 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 10028 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10030 $as_echo_n "checking for NAWK... " >&6; } 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10032 $as_echo "disabled" >&6; } 10033 else 10034 # Check if the provided tool contains a complete path. 10035 tool_specified="$NAWK" 10036 tool_basename="${tool_specified##*/}" 10037 if test "x$tool_basename" = "x$tool_specified"; then 10038 # A command without a complete path is provided, search $PATH. 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 10040 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 10041 # Extract the first word of "$tool_basename", so it can be a program name with args. 10042 set dummy $tool_basename; ac_word=$2 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10044 $as_echo_n "checking for $ac_word... " >&6; } 10045 if ${ac_cv_path_NAWK+:} false; then : 10046 $as_echo_n "(cached) " >&6 10047 else 10048 case $NAWK in 10049 [\\/]* | ?:[\\/]*) 10050 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10051 ;; 10052 *) 10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10054 for as_dir in $PATH 10055 do 10056 IFS=$as_save_IFS 10057 test -z "$as_dir" && as_dir=. 10058 for ac_exec_ext in '' $ac_executable_extensions; do 10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10060 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10062 break 2 10063 fi 10064 done 10065 done 10066 IFS=$as_save_IFS 10067 10068 ;; 10069 esac 10070 fi 10071 NAWK=$ac_cv_path_NAWK 10072 if test -n "$NAWK"; then 10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10074 $as_echo "$NAWK" >&6; } 10075 else 10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10077 $as_echo "no" >&6; } 10078 fi 10079 10080 10081 if test "x$NAWK" = x; then 10082 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10083 fi 10084 else 10085 # Otherwise we believe it is a complete path. Use it as it is. 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10087 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10089 $as_echo_n "checking for NAWK... " >&6; } 10090 if test ! -x "$tool_specified"; then 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10092 $as_echo "not found" >&6; } 10093 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10094 fi 10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10096 $as_echo "$tool_specified" >&6; } 10097 fi 10098 fi 10099 fi 10100 10101 fi 10102 10103 10104 10105 if test "x$NAWK" = x; then 10106 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10107 fi 10108 10109 10110 10111 10112 10113 # Publish this variable in the help. 10114 10115 10116 if [ -z "${PRINTF+x}" ]; then 10117 # The variable is not set by user, try to locate tool using the code snippet 10118 for ac_prog in printf 10119 do 10120 # Extract the first word of "$ac_prog", so it can be a program name with args. 10121 set dummy $ac_prog; ac_word=$2 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10123 $as_echo_n "checking for $ac_word... " >&6; } 10124 if ${ac_cv_path_PRINTF+:} false; then : 10125 $as_echo_n "(cached) " >&6 10126 else 10127 case $PRINTF in 10128 [\\/]* | ?:[\\/]*) 10129 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10130 ;; 10131 *) 10132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10133 for as_dir in $PATH 10134 do 10135 IFS=$as_save_IFS 10136 test -z "$as_dir" && as_dir=. 10137 for ac_exec_ext in '' $ac_executable_extensions; do 10138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10139 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10141 break 2 10142 fi 10143 done 10144 done 10145 IFS=$as_save_IFS 10146 10147 ;; 10148 esac 10149 fi 10150 PRINTF=$ac_cv_path_PRINTF 10151 if test -n "$PRINTF"; then 10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10153 $as_echo "$PRINTF" >&6; } 10154 else 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10156 $as_echo "no" >&6; } 10157 fi 10158 10159 10160 test -n "$PRINTF" && break 10161 done 10162 10163 else 10164 # The variable is set, but is it from the command line or the environment? 10165 10166 # Try to remove the string !PRINTF! from our list. 10167 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10168 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10169 # If it failed, the variable was not from the command line. Ignore it, 10170 # but warn the user (except for BASH, which is always set by the calling BASH). 10171 if test "xPRINTF" != xBASH; then 10172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10173 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10174 fi 10175 # Try to locate tool using the code snippet 10176 for ac_prog in printf 10177 do 10178 # Extract the first word of "$ac_prog", so it can be a program name with args. 10179 set dummy $ac_prog; ac_word=$2 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10181 $as_echo_n "checking for $ac_word... " >&6; } 10182 if ${ac_cv_path_PRINTF+:} false; then : 10183 $as_echo_n "(cached) " >&6 10184 else 10185 case $PRINTF in 10186 [\\/]* | ?:[\\/]*) 10187 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10188 ;; 10189 *) 10190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10191 for as_dir in $PATH 10192 do 10193 IFS=$as_save_IFS 10194 test -z "$as_dir" && as_dir=. 10195 for ac_exec_ext in '' $ac_executable_extensions; do 10196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10197 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10199 break 2 10200 fi 10201 done 10202 done 10203 IFS=$as_save_IFS 10204 10205 ;; 10206 esac 10207 fi 10208 PRINTF=$ac_cv_path_PRINTF 10209 if test -n "$PRINTF"; then 10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10211 $as_echo "$PRINTF" >&6; } 10212 else 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10214 $as_echo "no" >&6; } 10215 fi 10216 10217 10218 test -n "$PRINTF" && break 10219 done 10220 10221 else 10222 # If it succeeded, then it was overridden by the user. We will use it 10223 # for the tool. 10224 10225 # First remove it from the list of overridden variables, so we can test 10226 # for unknown variables in the end. 10227 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10228 10229 # Check if we try to supply an empty value 10230 if test "x$PRINTF" = x; then 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10232 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10234 $as_echo_n "checking for PRINTF... " >&6; } 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10236 $as_echo "disabled" >&6; } 10237 else 10238 # Check if the provided tool contains a complete path. 10239 tool_specified="$PRINTF" 10240 tool_basename="${tool_specified##*/}" 10241 if test "x$tool_basename" = "x$tool_specified"; then 10242 # A command without a complete path is provided, search $PATH. 10243 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10244 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10245 # Extract the first word of "$tool_basename", so it can be a program name with args. 10246 set dummy $tool_basename; ac_word=$2 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10248 $as_echo_n "checking for $ac_word... " >&6; } 10249 if ${ac_cv_path_PRINTF+:} false; then : 10250 $as_echo_n "(cached) " >&6 10251 else 10252 case $PRINTF in 10253 [\\/]* | ?:[\\/]*) 10254 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10255 ;; 10256 *) 10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10258 for as_dir in $PATH 10259 do 10260 IFS=$as_save_IFS 10261 test -z "$as_dir" && as_dir=. 10262 for ac_exec_ext in '' $ac_executable_extensions; do 10263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10264 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10266 break 2 10267 fi 10268 done 10269 done 10270 IFS=$as_save_IFS 10271 10272 ;; 10273 esac 10274 fi 10275 PRINTF=$ac_cv_path_PRINTF 10276 if test -n "$PRINTF"; then 10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10278 $as_echo "$PRINTF" >&6; } 10279 else 10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10281 $as_echo "no" >&6; } 10282 fi 10283 10284 10285 if test "x$PRINTF" = x; then 10286 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10287 fi 10288 else 10289 # Otherwise we believe it is a complete path. Use it as it is. 10290 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10291 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10293 $as_echo_n "checking for PRINTF... " >&6; } 10294 if test ! -x "$tool_specified"; then 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10296 $as_echo "not found" >&6; } 10297 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10298 fi 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10300 $as_echo "$tool_specified" >&6; } 10301 fi 10302 fi 10303 fi 10304 10305 fi 10306 10307 10308 10309 if test "x$PRINTF" = x; then 10310 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10311 fi 10312 10313 10314 10315 10316 10317 # Publish this variable in the help. 10318 10319 10320 if [ -z "${RM+x}" ]; then 10321 # The variable is not set by user, try to locate tool using the code snippet 10322 for ac_prog in rm 10323 do 10324 # Extract the first word of "$ac_prog", so it can be a program name with args. 10325 set dummy $ac_prog; ac_word=$2 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10327 $as_echo_n "checking for $ac_word... " >&6; } 10328 if ${ac_cv_path_RM+:} false; then : 10329 $as_echo_n "(cached) " >&6 10330 else 10331 case $RM in 10332 [\\/]* | ?:[\\/]*) 10333 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10334 ;; 10335 *) 10336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10337 for as_dir in $PATH 10338 do 10339 IFS=$as_save_IFS 10340 test -z "$as_dir" && as_dir=. 10341 for ac_exec_ext in '' $ac_executable_extensions; do 10342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10343 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10345 break 2 10346 fi 10347 done 10348 done 10349 IFS=$as_save_IFS 10350 10351 ;; 10352 esac 10353 fi 10354 RM=$ac_cv_path_RM 10355 if test -n "$RM"; then 10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10357 $as_echo "$RM" >&6; } 10358 else 10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10360 $as_echo "no" >&6; } 10361 fi 10362 10363 10364 test -n "$RM" && break 10365 done 10366 10367 else 10368 # The variable is set, but is it from the command line or the environment? 10369 10370 # Try to remove the string !RM! from our list. 10371 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10372 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10373 # If it failed, the variable was not from the command line. Ignore it, 10374 # but warn the user (except for BASH, which is always set by the calling BASH). 10375 if test "xRM" != xBASH; then 10376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10377 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10378 fi 10379 # Try to locate tool using the code snippet 10380 for ac_prog in rm 10381 do 10382 # Extract the first word of "$ac_prog", so it can be a program name with args. 10383 set dummy $ac_prog; ac_word=$2 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10385 $as_echo_n "checking for $ac_word... " >&6; } 10386 if ${ac_cv_path_RM+:} false; then : 10387 $as_echo_n "(cached) " >&6 10388 else 10389 case $RM in 10390 [\\/]* | ?:[\\/]*) 10391 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10392 ;; 10393 *) 10394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10395 for as_dir in $PATH 10396 do 10397 IFS=$as_save_IFS 10398 test -z "$as_dir" && as_dir=. 10399 for ac_exec_ext in '' $ac_executable_extensions; do 10400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10401 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10403 break 2 10404 fi 10405 done 10406 done 10407 IFS=$as_save_IFS 10408 10409 ;; 10410 esac 10411 fi 10412 RM=$ac_cv_path_RM 10413 if test -n "$RM"; then 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10415 $as_echo "$RM" >&6; } 10416 else 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10418 $as_echo "no" >&6; } 10419 fi 10420 10421 10422 test -n "$RM" && break 10423 done 10424 10425 else 10426 # If it succeeded, then it was overridden by the user. We will use it 10427 # for the tool. 10428 10429 # First remove it from the list of overridden variables, so we can test 10430 # for unknown variables in the end. 10431 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10432 10433 # Check if we try to supply an empty value 10434 if test "x$RM" = x; then 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10436 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10438 $as_echo_n "checking for RM... " >&6; } 10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10440 $as_echo "disabled" >&6; } 10441 else 10442 # Check if the provided tool contains a complete path. 10443 tool_specified="$RM" 10444 tool_basename="${tool_specified##*/}" 10445 if test "x$tool_basename" = "x$tool_specified"; then 10446 # A command without a complete path is provided, search $PATH. 10447 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10448 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10449 # Extract the first word of "$tool_basename", so it can be a program name with args. 10450 set dummy $tool_basename; ac_word=$2 10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10452 $as_echo_n "checking for $ac_word... " >&6; } 10453 if ${ac_cv_path_RM+:} false; then : 10454 $as_echo_n "(cached) " >&6 10455 else 10456 case $RM in 10457 [\\/]* | ?:[\\/]*) 10458 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10459 ;; 10460 *) 10461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10462 for as_dir in $PATH 10463 do 10464 IFS=$as_save_IFS 10465 test -z "$as_dir" && as_dir=. 10466 for ac_exec_ext in '' $ac_executable_extensions; do 10467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10468 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10470 break 2 10471 fi 10472 done 10473 done 10474 IFS=$as_save_IFS 10475 10476 ;; 10477 esac 10478 fi 10479 RM=$ac_cv_path_RM 10480 if test -n "$RM"; then 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10482 $as_echo "$RM" >&6; } 10483 else 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10485 $as_echo "no" >&6; } 10486 fi 10487 10488 10489 if test "x$RM" = x; then 10490 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10491 fi 10492 else 10493 # Otherwise we believe it is a complete path. Use it as it is. 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10495 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10497 $as_echo_n "checking for RM... " >&6; } 10498 if test ! -x "$tool_specified"; then 10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10500 $as_echo "not found" >&6; } 10501 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10502 fi 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10504 $as_echo "$tool_specified" >&6; } 10505 fi 10506 fi 10507 fi 10508 10509 fi 10510 10511 10512 10513 if test "x$RM" = x; then 10514 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10515 fi 10516 10517 10518 10519 10520 10521 # Publish this variable in the help. 10522 10523 10524 if [ -z "${RMDIR+x}" ]; then 10525 # The variable is not set by user, try to locate tool using the code snippet 10526 for ac_prog in rmdir 10527 do 10528 # Extract the first word of "$ac_prog", so it can be a program name with args. 10529 set dummy $ac_prog; ac_word=$2 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10531 $as_echo_n "checking for $ac_word... " >&6; } 10532 if ${ac_cv_path_RMDIR+:} false; then : 10533 $as_echo_n "(cached) " >&6 10534 else 10535 case $RMDIR in 10536 [\\/]* | ?:[\\/]*) 10537 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10538 ;; 10539 *) 10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10541 for as_dir in $PATH 10542 do 10543 IFS=$as_save_IFS 10544 test -z "$as_dir" && as_dir=. 10545 for ac_exec_ext in '' $ac_executable_extensions; do 10546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10547 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10549 break 2 10550 fi 10551 done 10552 done 10553 IFS=$as_save_IFS 10554 10555 ;; 10556 esac 10557 fi 10558 RMDIR=$ac_cv_path_RMDIR 10559 if test -n "$RMDIR"; then 10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10561 $as_echo "$RMDIR" >&6; } 10562 else 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10564 $as_echo "no" >&6; } 10565 fi 10566 10567 10568 test -n "$RMDIR" && break 10569 done 10570 10571 else 10572 # The variable is set, but is it from the command line or the environment? 10573 10574 # Try to remove the string !RMDIR! from our list. 10575 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10576 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10577 # If it failed, the variable was not from the command line. Ignore it, 10578 # but warn the user (except for BASH, which is always set by the calling BASH). 10579 if test "xRMDIR" != xBASH; then 10580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10581 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10582 fi 10583 # Try to locate tool using the code snippet 10584 for ac_prog in rmdir 10585 do 10586 # Extract the first word of "$ac_prog", so it can be a program name with args. 10587 set dummy $ac_prog; ac_word=$2 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10589 $as_echo_n "checking for $ac_word... " >&6; } 10590 if ${ac_cv_path_RMDIR+:} false; then : 10591 $as_echo_n "(cached) " >&6 10592 else 10593 case $RMDIR in 10594 [\\/]* | ?:[\\/]*) 10595 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10596 ;; 10597 *) 10598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10599 for as_dir in $PATH 10600 do 10601 IFS=$as_save_IFS 10602 test -z "$as_dir" && as_dir=. 10603 for ac_exec_ext in '' $ac_executable_extensions; do 10604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10605 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10607 break 2 10608 fi 10609 done 10610 done 10611 IFS=$as_save_IFS 10612 10613 ;; 10614 esac 10615 fi 10616 RMDIR=$ac_cv_path_RMDIR 10617 if test -n "$RMDIR"; then 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10619 $as_echo "$RMDIR" >&6; } 10620 else 10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10622 $as_echo "no" >&6; } 10623 fi 10624 10625 10626 test -n "$RMDIR" && break 10627 done 10628 10629 else 10630 # If it succeeded, then it was overridden by the user. We will use it 10631 # for the tool. 10632 10633 # First remove it from the list of overridden variables, so we can test 10634 # for unknown variables in the end. 10635 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10636 10637 # Check if we try to supply an empty value 10638 if test "x$RMDIR" = x; then 10639 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10640 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10642 $as_echo_n "checking for RMDIR... " >&6; } 10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10644 $as_echo "disabled" >&6; } 10645 else 10646 # Check if the provided tool contains a complete path. 10647 tool_specified="$RMDIR" 10648 tool_basename="${tool_specified##*/}" 10649 if test "x$tool_basename" = "x$tool_specified"; then 10650 # A command without a complete path is provided, search $PATH. 10651 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10652 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10653 # Extract the first word of "$tool_basename", so it can be a program name with args. 10654 set dummy $tool_basename; ac_word=$2 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10656 $as_echo_n "checking for $ac_word... " >&6; } 10657 if ${ac_cv_path_RMDIR+:} false; then : 10658 $as_echo_n "(cached) " >&6 10659 else 10660 case $RMDIR in 10661 [\\/]* | ?:[\\/]*) 10662 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10663 ;; 10664 *) 10665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10666 for as_dir in $PATH 10667 do 10668 IFS=$as_save_IFS 10669 test -z "$as_dir" && as_dir=. 10670 for ac_exec_ext in '' $ac_executable_extensions; do 10671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10672 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10674 break 2 10675 fi 10676 done 10677 done 10678 IFS=$as_save_IFS 10679 10680 ;; 10681 esac 10682 fi 10683 RMDIR=$ac_cv_path_RMDIR 10684 if test -n "$RMDIR"; then 10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10686 $as_echo "$RMDIR" >&6; } 10687 else 10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10689 $as_echo "no" >&6; } 10690 fi 10691 10692 10693 if test "x$RMDIR" = x; then 10694 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10695 fi 10696 else 10697 # Otherwise we believe it is a complete path. Use it as it is. 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10699 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10701 $as_echo_n "checking for RMDIR... " >&6; } 10702 if test ! -x "$tool_specified"; then 10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10704 $as_echo "not found" >&6; } 10705 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10706 fi 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10708 $as_echo "$tool_specified" >&6; } 10709 fi 10710 fi 10711 fi 10712 10713 fi 10714 10715 10716 10717 if test "x$RMDIR" = x; then 10718 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10719 fi 10720 10721 10722 10723 10724 10725 # Publish this variable in the help. 10726 10727 10728 if [ -z "${SH+x}" ]; then 10729 # The variable is not set by user, try to locate tool using the code snippet 10730 for ac_prog in sh 10731 do 10732 # Extract the first word of "$ac_prog", so it can be a program name with args. 10733 set dummy $ac_prog; ac_word=$2 10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10735 $as_echo_n "checking for $ac_word... " >&6; } 10736 if ${ac_cv_path_SH+:} false; then : 10737 $as_echo_n "(cached) " >&6 10738 else 10739 case $SH in 10740 [\\/]* | ?:[\\/]*) 10741 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10742 ;; 10743 *) 10744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10745 for as_dir in $PATH 10746 do 10747 IFS=$as_save_IFS 10748 test -z "$as_dir" && as_dir=. 10749 for ac_exec_ext in '' $ac_executable_extensions; do 10750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10751 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10753 break 2 10754 fi 10755 done 10756 done 10757 IFS=$as_save_IFS 10758 10759 ;; 10760 esac 10761 fi 10762 SH=$ac_cv_path_SH 10763 if test -n "$SH"; then 10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10765 $as_echo "$SH" >&6; } 10766 else 10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10768 $as_echo "no" >&6; } 10769 fi 10770 10771 10772 test -n "$SH" && break 10773 done 10774 10775 else 10776 # The variable is set, but is it from the command line or the environment? 10777 10778 # Try to remove the string !SH! from our list. 10779 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10780 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10781 # If it failed, the variable was not from the command line. Ignore it, 10782 # but warn the user (except for BASH, which is always set by the calling BASH). 10783 if test "xSH" != xBASH; then 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10785 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10786 fi 10787 # Try to locate tool using the code snippet 10788 for ac_prog in sh 10789 do 10790 # Extract the first word of "$ac_prog", so it can be a program name with args. 10791 set dummy $ac_prog; ac_word=$2 10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10793 $as_echo_n "checking for $ac_word... " >&6; } 10794 if ${ac_cv_path_SH+:} false; then : 10795 $as_echo_n "(cached) " >&6 10796 else 10797 case $SH in 10798 [\\/]* | ?:[\\/]*) 10799 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10800 ;; 10801 *) 10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10803 for as_dir in $PATH 10804 do 10805 IFS=$as_save_IFS 10806 test -z "$as_dir" && as_dir=. 10807 for ac_exec_ext in '' $ac_executable_extensions; do 10808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10809 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10811 break 2 10812 fi 10813 done 10814 done 10815 IFS=$as_save_IFS 10816 10817 ;; 10818 esac 10819 fi 10820 SH=$ac_cv_path_SH 10821 if test -n "$SH"; then 10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10823 $as_echo "$SH" >&6; } 10824 else 10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10826 $as_echo "no" >&6; } 10827 fi 10828 10829 10830 test -n "$SH" && break 10831 done 10832 10833 else 10834 # If it succeeded, then it was overridden by the user. We will use it 10835 # for the tool. 10836 10837 # First remove it from the list of overridden variables, so we can test 10838 # for unknown variables in the end. 10839 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10840 10841 # Check if we try to supply an empty value 10842 if test "x$SH" = x; then 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10844 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10846 $as_echo_n "checking for SH... " >&6; } 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10848 $as_echo "disabled" >&6; } 10849 else 10850 # Check if the provided tool contains a complete path. 10851 tool_specified="$SH" 10852 tool_basename="${tool_specified##*/}" 10853 if test "x$tool_basename" = "x$tool_specified"; then 10854 # A command without a complete path is provided, search $PATH. 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10856 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10857 # Extract the first word of "$tool_basename", so it can be a program name with args. 10858 set dummy $tool_basename; ac_word=$2 10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10860 $as_echo_n "checking for $ac_word... " >&6; } 10861 if ${ac_cv_path_SH+:} false; then : 10862 $as_echo_n "(cached) " >&6 10863 else 10864 case $SH in 10865 [\\/]* | ?:[\\/]*) 10866 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10867 ;; 10868 *) 10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10870 for as_dir in $PATH 10871 do 10872 IFS=$as_save_IFS 10873 test -z "$as_dir" && as_dir=. 10874 for ac_exec_ext in '' $ac_executable_extensions; do 10875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10876 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10878 break 2 10879 fi 10880 done 10881 done 10882 IFS=$as_save_IFS 10883 10884 ;; 10885 esac 10886 fi 10887 SH=$ac_cv_path_SH 10888 if test -n "$SH"; then 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10890 $as_echo "$SH" >&6; } 10891 else 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10893 $as_echo "no" >&6; } 10894 fi 10895 10896 10897 if test "x$SH" = x; then 10898 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10899 fi 10900 else 10901 # Otherwise we believe it is a complete path. Use it as it is. 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10903 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10905 $as_echo_n "checking for SH... " >&6; } 10906 if test ! -x "$tool_specified"; then 10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10908 $as_echo "not found" >&6; } 10909 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10910 fi 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10912 $as_echo "$tool_specified" >&6; } 10913 fi 10914 fi 10915 fi 10916 10917 fi 10918 10919 10920 10921 if test "x$SH" = x; then 10922 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10923 fi 10924 10925 10926 10927 10928 10929 # Publish this variable in the help. 10930 10931 10932 if [ -z "${SORT+x}" ]; then 10933 # The variable is not set by user, try to locate tool using the code snippet 10934 for ac_prog in sort 10935 do 10936 # Extract the first word of "$ac_prog", so it can be a program name with args. 10937 set dummy $ac_prog; ac_word=$2 10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10939 $as_echo_n "checking for $ac_word... " >&6; } 10940 if ${ac_cv_path_SORT+:} false; then : 10941 $as_echo_n "(cached) " >&6 10942 else 10943 case $SORT in 10944 [\\/]* | ?:[\\/]*) 10945 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10946 ;; 10947 *) 10948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10949 for as_dir in $PATH 10950 do 10951 IFS=$as_save_IFS 10952 test -z "$as_dir" && as_dir=. 10953 for ac_exec_ext in '' $ac_executable_extensions; do 10954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10955 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10957 break 2 10958 fi 10959 done 10960 done 10961 IFS=$as_save_IFS 10962 10963 ;; 10964 esac 10965 fi 10966 SORT=$ac_cv_path_SORT 10967 if test -n "$SORT"; then 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10969 $as_echo "$SORT" >&6; } 10970 else 10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10972 $as_echo "no" >&6; } 10973 fi 10974 10975 10976 test -n "$SORT" && break 10977 done 10978 10979 else 10980 # The variable is set, but is it from the command line or the environment? 10981 10982 # Try to remove the string !SORT! from our list. 10983 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 10984 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10985 # If it failed, the variable was not from the command line. Ignore it, 10986 # but warn the user (except for BASH, which is always set by the calling BASH). 10987 if test "xSORT" != xBASH; then 10988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 10989 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 10990 fi 10991 # Try to locate tool using the code snippet 10992 for ac_prog in sort 10993 do 10994 # Extract the first word of "$ac_prog", so it can be a program name with args. 10995 set dummy $ac_prog; ac_word=$2 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10997 $as_echo_n "checking for $ac_word... " >&6; } 10998 if ${ac_cv_path_SORT+:} false; then : 10999 $as_echo_n "(cached) " >&6 11000 else 11001 case $SORT in 11002 [\\/]* | ?:[\\/]*) 11003 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11004 ;; 11005 *) 11006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11007 for as_dir in $PATH 11008 do 11009 IFS=$as_save_IFS 11010 test -z "$as_dir" && as_dir=. 11011 for ac_exec_ext in '' $ac_executable_extensions; do 11012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11013 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11015 break 2 11016 fi 11017 done 11018 done 11019 IFS=$as_save_IFS 11020 11021 ;; 11022 esac 11023 fi 11024 SORT=$ac_cv_path_SORT 11025 if test -n "$SORT"; then 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11027 $as_echo "$SORT" >&6; } 11028 else 11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11030 $as_echo "no" >&6; } 11031 fi 11032 11033 11034 test -n "$SORT" && break 11035 done 11036 11037 else 11038 # If it succeeded, then it was overridden by the user. We will use it 11039 # for the tool. 11040 11041 # First remove it from the list of overridden variables, so we can test 11042 # for unknown variables in the end. 11043 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11044 11045 # Check if we try to supply an empty value 11046 if test "x$SORT" = x; then 11047 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 11048 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11050 $as_echo_n "checking for SORT... " >&6; } 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11052 $as_echo "disabled" >&6; } 11053 else 11054 # Check if the provided tool contains a complete path. 11055 tool_specified="$SORT" 11056 tool_basename="${tool_specified##*/}" 11057 if test "x$tool_basename" = "x$tool_specified"; then 11058 # A command without a complete path is provided, search $PATH. 11059 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 11060 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 11061 # Extract the first word of "$tool_basename", so it can be a program name with args. 11062 set dummy $tool_basename; ac_word=$2 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11064 $as_echo_n "checking for $ac_word... " >&6; } 11065 if ${ac_cv_path_SORT+:} false; then : 11066 $as_echo_n "(cached) " >&6 11067 else 11068 case $SORT in 11069 [\\/]* | ?:[\\/]*) 11070 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11071 ;; 11072 *) 11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11074 for as_dir in $PATH 11075 do 11076 IFS=$as_save_IFS 11077 test -z "$as_dir" && as_dir=. 11078 for ac_exec_ext in '' $ac_executable_extensions; do 11079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11080 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11082 break 2 11083 fi 11084 done 11085 done 11086 IFS=$as_save_IFS 11087 11088 ;; 11089 esac 11090 fi 11091 SORT=$ac_cv_path_SORT 11092 if test -n "$SORT"; then 11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11094 $as_echo "$SORT" >&6; } 11095 else 11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11097 $as_echo "no" >&6; } 11098 fi 11099 11100 11101 if test "x$SORT" = x; then 11102 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11103 fi 11104 else 11105 # Otherwise we believe it is a complete path. Use it as it is. 11106 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11107 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11109 $as_echo_n "checking for SORT... " >&6; } 11110 if test ! -x "$tool_specified"; then 11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11112 $as_echo "not found" >&6; } 11113 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11114 fi 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11116 $as_echo "$tool_specified" >&6; } 11117 fi 11118 fi 11119 fi 11120 11121 fi 11122 11123 11124 11125 if test "x$SORT" = x; then 11126 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11127 fi 11128 11129 11130 11131 11132 11133 # Publish this variable in the help. 11134 11135 11136 if [ -z "${TAIL+x}" ]; then 11137 # The variable is not set by user, try to locate tool using the code snippet 11138 for ac_prog in tail 11139 do 11140 # Extract the first word of "$ac_prog", so it can be a program name with args. 11141 set dummy $ac_prog; ac_word=$2 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11143 $as_echo_n "checking for $ac_word... " >&6; } 11144 if ${ac_cv_path_TAIL+:} false; then : 11145 $as_echo_n "(cached) " >&6 11146 else 11147 case $TAIL in 11148 [\\/]* | ?:[\\/]*) 11149 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11150 ;; 11151 *) 11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11153 for as_dir in $PATH 11154 do 11155 IFS=$as_save_IFS 11156 test -z "$as_dir" && as_dir=. 11157 for ac_exec_ext in '' $ac_executable_extensions; do 11158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11159 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11161 break 2 11162 fi 11163 done 11164 done 11165 IFS=$as_save_IFS 11166 11167 ;; 11168 esac 11169 fi 11170 TAIL=$ac_cv_path_TAIL 11171 if test -n "$TAIL"; then 11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11173 $as_echo "$TAIL" >&6; } 11174 else 11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11176 $as_echo "no" >&6; } 11177 fi 11178 11179 11180 test -n "$TAIL" && break 11181 done 11182 11183 else 11184 # The variable is set, but is it from the command line or the environment? 11185 11186 # Try to remove the string !TAIL! from our list. 11187 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11188 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11189 # If it failed, the variable was not from the command line. Ignore it, 11190 # but warn the user (except for BASH, which is always set by the calling BASH). 11191 if test "xTAIL" != xBASH; then 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11193 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11194 fi 11195 # Try to locate tool using the code snippet 11196 for ac_prog in tail 11197 do 11198 # Extract the first word of "$ac_prog", so it can be a program name with args. 11199 set dummy $ac_prog; ac_word=$2 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11201 $as_echo_n "checking for $ac_word... " >&6; } 11202 if ${ac_cv_path_TAIL+:} false; then : 11203 $as_echo_n "(cached) " >&6 11204 else 11205 case $TAIL in 11206 [\\/]* | ?:[\\/]*) 11207 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11208 ;; 11209 *) 11210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11211 for as_dir in $PATH 11212 do 11213 IFS=$as_save_IFS 11214 test -z "$as_dir" && as_dir=. 11215 for ac_exec_ext in '' $ac_executable_extensions; do 11216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11217 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11219 break 2 11220 fi 11221 done 11222 done 11223 IFS=$as_save_IFS 11224 11225 ;; 11226 esac 11227 fi 11228 TAIL=$ac_cv_path_TAIL 11229 if test -n "$TAIL"; then 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11231 $as_echo "$TAIL" >&6; } 11232 else 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11234 $as_echo "no" >&6; } 11235 fi 11236 11237 11238 test -n "$TAIL" && break 11239 done 11240 11241 else 11242 # If it succeeded, then it was overridden by the user. We will use it 11243 # for the tool. 11244 11245 # First remove it from the list of overridden variables, so we can test 11246 # for unknown variables in the end. 11247 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11248 11249 # Check if we try to supply an empty value 11250 if test "x$TAIL" = x; then 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11252 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11254 $as_echo_n "checking for TAIL... " >&6; } 11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11256 $as_echo "disabled" >&6; } 11257 else 11258 # Check if the provided tool contains a complete path. 11259 tool_specified="$TAIL" 11260 tool_basename="${tool_specified##*/}" 11261 if test "x$tool_basename" = "x$tool_specified"; then 11262 # A command without a complete path is provided, search $PATH. 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11264 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11265 # Extract the first word of "$tool_basename", so it can be a program name with args. 11266 set dummy $tool_basename; ac_word=$2 11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11268 $as_echo_n "checking for $ac_word... " >&6; } 11269 if ${ac_cv_path_TAIL+:} false; then : 11270 $as_echo_n "(cached) " >&6 11271 else 11272 case $TAIL in 11273 [\\/]* | ?:[\\/]*) 11274 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11275 ;; 11276 *) 11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11278 for as_dir in $PATH 11279 do 11280 IFS=$as_save_IFS 11281 test -z "$as_dir" && as_dir=. 11282 for ac_exec_ext in '' $ac_executable_extensions; do 11283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11284 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11286 break 2 11287 fi 11288 done 11289 done 11290 IFS=$as_save_IFS 11291 11292 ;; 11293 esac 11294 fi 11295 TAIL=$ac_cv_path_TAIL 11296 if test -n "$TAIL"; then 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11298 $as_echo "$TAIL" >&6; } 11299 else 11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11301 $as_echo "no" >&6; } 11302 fi 11303 11304 11305 if test "x$TAIL" = x; then 11306 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11307 fi 11308 else 11309 # Otherwise we believe it is a complete path. Use it as it is. 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11311 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11313 $as_echo_n "checking for TAIL... " >&6; } 11314 if test ! -x "$tool_specified"; then 11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11316 $as_echo "not found" >&6; } 11317 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11318 fi 11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11320 $as_echo "$tool_specified" >&6; } 11321 fi 11322 fi 11323 fi 11324 11325 fi 11326 11327 11328 11329 if test "x$TAIL" = x; then 11330 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11331 fi 11332 11333 11334 11335 11336 11337 # Publish this variable in the help. 11338 11339 11340 if [ -z "${TAR+x}" ]; then 11341 # The variable is not set by user, try to locate tool using the code snippet 11342 for ac_prog in gtar tar 11343 do 11344 # Extract the first word of "$ac_prog", so it can be a program name with args. 11345 set dummy $ac_prog; ac_word=$2 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11347 $as_echo_n "checking for $ac_word... " >&6; } 11348 if ${ac_cv_path_TAR+:} false; then : 11349 $as_echo_n "(cached) " >&6 11350 else 11351 case $TAR in 11352 [\\/]* | ?:[\\/]*) 11353 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11354 ;; 11355 *) 11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11357 for as_dir in $PATH 11358 do 11359 IFS=$as_save_IFS 11360 test -z "$as_dir" && as_dir=. 11361 for ac_exec_ext in '' $ac_executable_extensions; do 11362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11363 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11365 break 2 11366 fi 11367 done 11368 done 11369 IFS=$as_save_IFS 11370 11371 ;; 11372 esac 11373 fi 11374 TAR=$ac_cv_path_TAR 11375 if test -n "$TAR"; then 11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11377 $as_echo "$TAR" >&6; } 11378 else 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11380 $as_echo "no" >&6; } 11381 fi 11382 11383 11384 test -n "$TAR" && break 11385 done 11386 11387 else 11388 # The variable is set, but is it from the command line or the environment? 11389 11390 # Try to remove the string !TAR! from our list. 11391 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11392 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11393 # If it failed, the variable was not from the command line. Ignore it, 11394 # but warn the user (except for BASH, which is always set by the calling BASH). 11395 if test "xTAR" != xBASH; then 11396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11397 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11398 fi 11399 # Try to locate tool using the code snippet 11400 for ac_prog in gtar tar 11401 do 11402 # Extract the first word of "$ac_prog", so it can be a program name with args. 11403 set dummy $ac_prog; ac_word=$2 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11405 $as_echo_n "checking for $ac_word... " >&6; } 11406 if ${ac_cv_path_TAR+:} false; then : 11407 $as_echo_n "(cached) " >&6 11408 else 11409 case $TAR in 11410 [\\/]* | ?:[\\/]*) 11411 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11412 ;; 11413 *) 11414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11415 for as_dir in $PATH 11416 do 11417 IFS=$as_save_IFS 11418 test -z "$as_dir" && as_dir=. 11419 for ac_exec_ext in '' $ac_executable_extensions; do 11420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11421 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11423 break 2 11424 fi 11425 done 11426 done 11427 IFS=$as_save_IFS 11428 11429 ;; 11430 esac 11431 fi 11432 TAR=$ac_cv_path_TAR 11433 if test -n "$TAR"; then 11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11435 $as_echo "$TAR" >&6; } 11436 else 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11438 $as_echo "no" >&6; } 11439 fi 11440 11441 11442 test -n "$TAR" && break 11443 done 11444 11445 else 11446 # If it succeeded, then it was overridden by the user. We will use it 11447 # for the tool. 11448 11449 # First remove it from the list of overridden variables, so we can test 11450 # for unknown variables in the end. 11451 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11452 11453 # Check if we try to supply an empty value 11454 if test "x$TAR" = x; then 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11456 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11458 $as_echo_n "checking for TAR... " >&6; } 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11460 $as_echo "disabled" >&6; } 11461 else 11462 # Check if the provided tool contains a complete path. 11463 tool_specified="$TAR" 11464 tool_basename="${tool_specified##*/}" 11465 if test "x$tool_basename" = "x$tool_specified"; then 11466 # A command without a complete path is provided, search $PATH. 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11468 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11469 # Extract the first word of "$tool_basename", so it can be a program name with args. 11470 set dummy $tool_basename; ac_word=$2 11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11472 $as_echo_n "checking for $ac_word... " >&6; } 11473 if ${ac_cv_path_TAR+:} false; then : 11474 $as_echo_n "(cached) " >&6 11475 else 11476 case $TAR in 11477 [\\/]* | ?:[\\/]*) 11478 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11479 ;; 11480 *) 11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11482 for as_dir in $PATH 11483 do 11484 IFS=$as_save_IFS 11485 test -z "$as_dir" && as_dir=. 11486 for ac_exec_ext in '' $ac_executable_extensions; do 11487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11488 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11490 break 2 11491 fi 11492 done 11493 done 11494 IFS=$as_save_IFS 11495 11496 ;; 11497 esac 11498 fi 11499 TAR=$ac_cv_path_TAR 11500 if test -n "$TAR"; then 11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11502 $as_echo "$TAR" >&6; } 11503 else 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11505 $as_echo "no" >&6; } 11506 fi 11507 11508 11509 if test "x$TAR" = x; then 11510 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11511 fi 11512 else 11513 # Otherwise we believe it is a complete path. Use it as it is. 11514 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11515 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11517 $as_echo_n "checking for TAR... " >&6; } 11518 if test ! -x "$tool_specified"; then 11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11520 $as_echo "not found" >&6; } 11521 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11522 fi 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11524 $as_echo "$tool_specified" >&6; } 11525 fi 11526 fi 11527 fi 11528 11529 fi 11530 11531 11532 11533 if test "x$TAR" = x; then 11534 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11535 fi 11536 11537 11538 11539 11540 11541 # Publish this variable in the help. 11542 11543 11544 if [ -z "${TEE+x}" ]; then 11545 # The variable is not set by user, try to locate tool using the code snippet 11546 for ac_prog in tee 11547 do 11548 # Extract the first word of "$ac_prog", so it can be a program name with args. 11549 set dummy $ac_prog; ac_word=$2 11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11551 $as_echo_n "checking for $ac_word... " >&6; } 11552 if ${ac_cv_path_TEE+:} false; then : 11553 $as_echo_n "(cached) " >&6 11554 else 11555 case $TEE in 11556 [\\/]* | ?:[\\/]*) 11557 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11558 ;; 11559 *) 11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11561 for as_dir in $PATH 11562 do 11563 IFS=$as_save_IFS 11564 test -z "$as_dir" && as_dir=. 11565 for ac_exec_ext in '' $ac_executable_extensions; do 11566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11567 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11569 break 2 11570 fi 11571 done 11572 done 11573 IFS=$as_save_IFS 11574 11575 ;; 11576 esac 11577 fi 11578 TEE=$ac_cv_path_TEE 11579 if test -n "$TEE"; then 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11581 $as_echo "$TEE" >&6; } 11582 else 11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11584 $as_echo "no" >&6; } 11585 fi 11586 11587 11588 test -n "$TEE" && break 11589 done 11590 11591 else 11592 # The variable is set, but is it from the command line or the environment? 11593 11594 # Try to remove the string !TEE! from our list. 11595 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11596 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11597 # If it failed, the variable was not from the command line. Ignore it, 11598 # but warn the user (except for BASH, which is always set by the calling BASH). 11599 if test "xTEE" != xBASH; then 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11601 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11602 fi 11603 # Try to locate tool using the code snippet 11604 for ac_prog in tee 11605 do 11606 # Extract the first word of "$ac_prog", so it can be a program name with args. 11607 set dummy $ac_prog; ac_word=$2 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11609 $as_echo_n "checking for $ac_word... " >&6; } 11610 if ${ac_cv_path_TEE+:} false; then : 11611 $as_echo_n "(cached) " >&6 11612 else 11613 case $TEE in 11614 [\\/]* | ?:[\\/]*) 11615 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11616 ;; 11617 *) 11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11619 for as_dir in $PATH 11620 do 11621 IFS=$as_save_IFS 11622 test -z "$as_dir" && as_dir=. 11623 for ac_exec_ext in '' $ac_executable_extensions; do 11624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11625 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11627 break 2 11628 fi 11629 done 11630 done 11631 IFS=$as_save_IFS 11632 11633 ;; 11634 esac 11635 fi 11636 TEE=$ac_cv_path_TEE 11637 if test -n "$TEE"; then 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11639 $as_echo "$TEE" >&6; } 11640 else 11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11642 $as_echo "no" >&6; } 11643 fi 11644 11645 11646 test -n "$TEE" && break 11647 done 11648 11649 else 11650 # If it succeeded, then it was overridden by the user. We will use it 11651 # for the tool. 11652 11653 # First remove it from the list of overridden variables, so we can test 11654 # for unknown variables in the end. 11655 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11656 11657 # Check if we try to supply an empty value 11658 if test "x$TEE" = x; then 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11660 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11662 $as_echo_n "checking for TEE... " >&6; } 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11664 $as_echo "disabled" >&6; } 11665 else 11666 # Check if the provided tool contains a complete path. 11667 tool_specified="$TEE" 11668 tool_basename="${tool_specified##*/}" 11669 if test "x$tool_basename" = "x$tool_specified"; then 11670 # A command without a complete path is provided, search $PATH. 11671 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11672 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11673 # Extract the first word of "$tool_basename", so it can be a program name with args. 11674 set dummy $tool_basename; ac_word=$2 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11676 $as_echo_n "checking for $ac_word... " >&6; } 11677 if ${ac_cv_path_TEE+:} false; then : 11678 $as_echo_n "(cached) " >&6 11679 else 11680 case $TEE in 11681 [\\/]* | ?:[\\/]*) 11682 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11683 ;; 11684 *) 11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11686 for as_dir in $PATH 11687 do 11688 IFS=$as_save_IFS 11689 test -z "$as_dir" && as_dir=. 11690 for ac_exec_ext in '' $ac_executable_extensions; do 11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11692 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11694 break 2 11695 fi 11696 done 11697 done 11698 IFS=$as_save_IFS 11699 11700 ;; 11701 esac 11702 fi 11703 TEE=$ac_cv_path_TEE 11704 if test -n "$TEE"; then 11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11706 $as_echo "$TEE" >&6; } 11707 else 11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11709 $as_echo "no" >&6; } 11710 fi 11711 11712 11713 if test "x$TEE" = x; then 11714 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11715 fi 11716 else 11717 # Otherwise we believe it is a complete path. Use it as it is. 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11719 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11721 $as_echo_n "checking for TEE... " >&6; } 11722 if test ! -x "$tool_specified"; then 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11724 $as_echo "not found" >&6; } 11725 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11726 fi 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11728 $as_echo "$tool_specified" >&6; } 11729 fi 11730 fi 11731 fi 11732 11733 fi 11734 11735 11736 11737 if test "x$TEE" = x; then 11738 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11739 fi 11740 11741 11742 11743 11744 11745 # Publish this variable in the help. 11746 11747 11748 if [ -z "${TOUCH+x}" ]; then 11749 # The variable is not set by user, try to locate tool using the code snippet 11750 for ac_prog in touch 11751 do 11752 # Extract the first word of "$ac_prog", so it can be a program name with args. 11753 set dummy $ac_prog; ac_word=$2 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11755 $as_echo_n "checking for $ac_word... " >&6; } 11756 if ${ac_cv_path_TOUCH+:} false; then : 11757 $as_echo_n "(cached) " >&6 11758 else 11759 case $TOUCH in 11760 [\\/]* | ?:[\\/]*) 11761 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11762 ;; 11763 *) 11764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11765 for as_dir in $PATH 11766 do 11767 IFS=$as_save_IFS 11768 test -z "$as_dir" && as_dir=. 11769 for ac_exec_ext in '' $ac_executable_extensions; do 11770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11771 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11773 break 2 11774 fi 11775 done 11776 done 11777 IFS=$as_save_IFS 11778 11779 ;; 11780 esac 11781 fi 11782 TOUCH=$ac_cv_path_TOUCH 11783 if test -n "$TOUCH"; then 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11785 $as_echo "$TOUCH" >&6; } 11786 else 11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11788 $as_echo "no" >&6; } 11789 fi 11790 11791 11792 test -n "$TOUCH" && break 11793 done 11794 11795 else 11796 # The variable is set, but is it from the command line or the environment? 11797 11798 # Try to remove the string !TOUCH! from our list. 11799 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11800 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11801 # If it failed, the variable was not from the command line. Ignore it, 11802 # but warn the user (except for BASH, which is always set by the calling BASH). 11803 if test "xTOUCH" != xBASH; then 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11805 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11806 fi 11807 # Try to locate tool using the code snippet 11808 for ac_prog in touch 11809 do 11810 # Extract the first word of "$ac_prog", so it can be a program name with args. 11811 set dummy $ac_prog; ac_word=$2 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11813 $as_echo_n "checking for $ac_word... " >&6; } 11814 if ${ac_cv_path_TOUCH+:} false; then : 11815 $as_echo_n "(cached) " >&6 11816 else 11817 case $TOUCH in 11818 [\\/]* | ?:[\\/]*) 11819 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11820 ;; 11821 *) 11822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11823 for as_dir in $PATH 11824 do 11825 IFS=$as_save_IFS 11826 test -z "$as_dir" && as_dir=. 11827 for ac_exec_ext in '' $ac_executable_extensions; do 11828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11829 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11831 break 2 11832 fi 11833 done 11834 done 11835 IFS=$as_save_IFS 11836 11837 ;; 11838 esac 11839 fi 11840 TOUCH=$ac_cv_path_TOUCH 11841 if test -n "$TOUCH"; then 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11843 $as_echo "$TOUCH" >&6; } 11844 else 11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11846 $as_echo "no" >&6; } 11847 fi 11848 11849 11850 test -n "$TOUCH" && break 11851 done 11852 11853 else 11854 # If it succeeded, then it was overridden by the user. We will use it 11855 # for the tool. 11856 11857 # First remove it from the list of overridden variables, so we can test 11858 # for unknown variables in the end. 11859 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11860 11861 # Check if we try to supply an empty value 11862 if test "x$TOUCH" = x; then 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11864 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11866 $as_echo_n "checking for TOUCH... " >&6; } 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11868 $as_echo "disabled" >&6; } 11869 else 11870 # Check if the provided tool contains a complete path. 11871 tool_specified="$TOUCH" 11872 tool_basename="${tool_specified##*/}" 11873 if test "x$tool_basename" = "x$tool_specified"; then 11874 # A command without a complete path is provided, search $PATH. 11875 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11876 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11877 # Extract the first word of "$tool_basename", so it can be a program name with args. 11878 set dummy $tool_basename; ac_word=$2 11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11880 $as_echo_n "checking for $ac_word... " >&6; } 11881 if ${ac_cv_path_TOUCH+:} false; then : 11882 $as_echo_n "(cached) " >&6 11883 else 11884 case $TOUCH in 11885 [\\/]* | ?:[\\/]*) 11886 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11887 ;; 11888 *) 11889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11890 for as_dir in $PATH 11891 do 11892 IFS=$as_save_IFS 11893 test -z "$as_dir" && as_dir=. 11894 for ac_exec_ext in '' $ac_executable_extensions; do 11895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11896 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11898 break 2 11899 fi 11900 done 11901 done 11902 IFS=$as_save_IFS 11903 11904 ;; 11905 esac 11906 fi 11907 TOUCH=$ac_cv_path_TOUCH 11908 if test -n "$TOUCH"; then 11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11910 $as_echo "$TOUCH" >&6; } 11911 else 11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11913 $as_echo "no" >&6; } 11914 fi 11915 11916 11917 if test "x$TOUCH" = x; then 11918 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11919 fi 11920 else 11921 # Otherwise we believe it is a complete path. Use it as it is. 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11923 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11925 $as_echo_n "checking for TOUCH... " >&6; } 11926 if test ! -x "$tool_specified"; then 11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11928 $as_echo "not found" >&6; } 11929 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11930 fi 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11932 $as_echo "$tool_specified" >&6; } 11933 fi 11934 fi 11935 fi 11936 11937 fi 11938 11939 11940 11941 if test "x$TOUCH" = x; then 11942 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11943 fi 11944 11945 11946 11947 11948 11949 # Publish this variable in the help. 11950 11951 11952 if [ -z "${TR+x}" ]; then 11953 # The variable is not set by user, try to locate tool using the code snippet 11954 for ac_prog in tr 11955 do 11956 # Extract the first word of "$ac_prog", so it can be a program name with args. 11957 set dummy $ac_prog; ac_word=$2 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11959 $as_echo_n "checking for $ac_word... " >&6; } 11960 if ${ac_cv_path_TR+:} false; then : 11961 $as_echo_n "(cached) " >&6 11962 else 11963 case $TR in 11964 [\\/]* | ?:[\\/]*) 11965 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11966 ;; 11967 *) 11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11969 for as_dir in $PATH 11970 do 11971 IFS=$as_save_IFS 11972 test -z "$as_dir" && as_dir=. 11973 for ac_exec_ext in '' $ac_executable_extensions; do 11974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11975 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11977 break 2 11978 fi 11979 done 11980 done 11981 IFS=$as_save_IFS 11982 11983 ;; 11984 esac 11985 fi 11986 TR=$ac_cv_path_TR 11987 if test -n "$TR"; then 11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11989 $as_echo "$TR" >&6; } 11990 else 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11992 $as_echo "no" >&6; } 11993 fi 11994 11995 11996 test -n "$TR" && break 11997 done 11998 11999 else 12000 # The variable is set, but is it from the command line or the environment? 12001 12002 # Try to remove the string !TR! from our list. 12003 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 12004 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12005 # If it failed, the variable was not from the command line. Ignore it, 12006 # but warn the user (except for BASH, which is always set by the calling BASH). 12007 if test "xTR" != xBASH; then 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 12009 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 12010 fi 12011 # Try to locate tool using the code snippet 12012 for ac_prog in tr 12013 do 12014 # Extract the first word of "$ac_prog", so it can be a program name with args. 12015 set dummy $ac_prog; ac_word=$2 12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12017 $as_echo_n "checking for $ac_word... " >&6; } 12018 if ${ac_cv_path_TR+:} false; then : 12019 $as_echo_n "(cached) " >&6 12020 else 12021 case $TR in 12022 [\\/]* | ?:[\\/]*) 12023 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12024 ;; 12025 *) 12026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12027 for as_dir in $PATH 12028 do 12029 IFS=$as_save_IFS 12030 test -z "$as_dir" && as_dir=. 12031 for ac_exec_ext in '' $ac_executable_extensions; do 12032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12033 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12035 break 2 12036 fi 12037 done 12038 done 12039 IFS=$as_save_IFS 12040 12041 ;; 12042 esac 12043 fi 12044 TR=$ac_cv_path_TR 12045 if test -n "$TR"; then 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12047 $as_echo "$TR" >&6; } 12048 else 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12050 $as_echo "no" >&6; } 12051 fi 12052 12053 12054 test -n "$TR" && break 12055 done 12056 12057 else 12058 # If it succeeded, then it was overridden by the user. We will use it 12059 # for the tool. 12060 12061 # First remove it from the list of overridden variables, so we can test 12062 # for unknown variables in the end. 12063 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12064 12065 # Check if we try to supply an empty value 12066 if test "x$TR" = x; then 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12068 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12070 $as_echo_n "checking for TR... " >&6; } 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12072 $as_echo "disabled" >&6; } 12073 else 12074 # Check if the provided tool contains a complete path. 12075 tool_specified="$TR" 12076 tool_basename="${tool_specified##*/}" 12077 if test "x$tool_basename" = "x$tool_specified"; then 12078 # A command without a complete path is provided, search $PATH. 12079 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12080 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12081 # Extract the first word of "$tool_basename", so it can be a program name with args. 12082 set dummy $tool_basename; ac_word=$2 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12084 $as_echo_n "checking for $ac_word... " >&6; } 12085 if ${ac_cv_path_TR+:} false; then : 12086 $as_echo_n "(cached) " >&6 12087 else 12088 case $TR in 12089 [\\/]* | ?:[\\/]*) 12090 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12091 ;; 12092 *) 12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12094 for as_dir in $PATH 12095 do 12096 IFS=$as_save_IFS 12097 test -z "$as_dir" && as_dir=. 12098 for ac_exec_ext in '' $ac_executable_extensions; do 12099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12100 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12102 break 2 12103 fi 12104 done 12105 done 12106 IFS=$as_save_IFS 12107 12108 ;; 12109 esac 12110 fi 12111 TR=$ac_cv_path_TR 12112 if test -n "$TR"; then 12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12114 $as_echo "$TR" >&6; } 12115 else 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12117 $as_echo "no" >&6; } 12118 fi 12119 12120 12121 if test "x$TR" = x; then 12122 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12123 fi 12124 else 12125 # Otherwise we believe it is a complete path. Use it as it is. 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12127 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12129 $as_echo_n "checking for TR... " >&6; } 12130 if test ! -x "$tool_specified"; then 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12132 $as_echo "not found" >&6; } 12133 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12134 fi 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12136 $as_echo "$tool_specified" >&6; } 12137 fi 12138 fi 12139 fi 12140 12141 fi 12142 12143 12144 12145 if test "x$TR" = x; then 12146 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12147 fi 12148 12149 12150 12151 12152 12153 # Publish this variable in the help. 12154 12155 12156 if [ -z "${UNAME+x}" ]; then 12157 # The variable is not set by user, try to locate tool using the code snippet 12158 for ac_prog in uname 12159 do 12160 # Extract the first word of "$ac_prog", so it can be a program name with args. 12161 set dummy $ac_prog; ac_word=$2 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12163 $as_echo_n "checking for $ac_word... " >&6; } 12164 if ${ac_cv_path_UNAME+:} false; then : 12165 $as_echo_n "(cached) " >&6 12166 else 12167 case $UNAME in 12168 [\\/]* | ?:[\\/]*) 12169 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12170 ;; 12171 *) 12172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12173 for as_dir in $PATH 12174 do 12175 IFS=$as_save_IFS 12176 test -z "$as_dir" && as_dir=. 12177 for ac_exec_ext in '' $ac_executable_extensions; do 12178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12179 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12181 break 2 12182 fi 12183 done 12184 done 12185 IFS=$as_save_IFS 12186 12187 ;; 12188 esac 12189 fi 12190 UNAME=$ac_cv_path_UNAME 12191 if test -n "$UNAME"; then 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12193 $as_echo "$UNAME" >&6; } 12194 else 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12196 $as_echo "no" >&6; } 12197 fi 12198 12199 12200 test -n "$UNAME" && break 12201 done 12202 12203 else 12204 # The variable is set, but is it from the command line or the environment? 12205 12206 # Try to remove the string !UNAME! from our list. 12207 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12208 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12209 # If it failed, the variable was not from the command line. Ignore it, 12210 # but warn the user (except for BASH, which is always set by the calling BASH). 12211 if test "xUNAME" != xBASH; then 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12213 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12214 fi 12215 # Try to locate tool using the code snippet 12216 for ac_prog in uname 12217 do 12218 # Extract the first word of "$ac_prog", so it can be a program name with args. 12219 set dummy $ac_prog; ac_word=$2 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12221 $as_echo_n "checking for $ac_word... " >&6; } 12222 if ${ac_cv_path_UNAME+:} false; then : 12223 $as_echo_n "(cached) " >&6 12224 else 12225 case $UNAME in 12226 [\\/]* | ?:[\\/]*) 12227 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12228 ;; 12229 *) 12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12231 for as_dir in $PATH 12232 do 12233 IFS=$as_save_IFS 12234 test -z "$as_dir" && as_dir=. 12235 for ac_exec_ext in '' $ac_executable_extensions; do 12236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12237 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12239 break 2 12240 fi 12241 done 12242 done 12243 IFS=$as_save_IFS 12244 12245 ;; 12246 esac 12247 fi 12248 UNAME=$ac_cv_path_UNAME 12249 if test -n "$UNAME"; then 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12251 $as_echo "$UNAME" >&6; } 12252 else 12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12254 $as_echo "no" >&6; } 12255 fi 12256 12257 12258 test -n "$UNAME" && break 12259 done 12260 12261 else 12262 # If it succeeded, then it was overridden by the user. We will use it 12263 # for the tool. 12264 12265 # First remove it from the list of overridden variables, so we can test 12266 # for unknown variables in the end. 12267 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12268 12269 # Check if we try to supply an empty value 12270 if test "x$UNAME" = x; then 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12272 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12274 $as_echo_n "checking for UNAME... " >&6; } 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12276 $as_echo "disabled" >&6; } 12277 else 12278 # Check if the provided tool contains a complete path. 12279 tool_specified="$UNAME" 12280 tool_basename="${tool_specified##*/}" 12281 if test "x$tool_basename" = "x$tool_specified"; then 12282 # A command without a complete path is provided, search $PATH. 12283 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12284 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12285 # Extract the first word of "$tool_basename", so it can be a program name with args. 12286 set dummy $tool_basename; ac_word=$2 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12288 $as_echo_n "checking for $ac_word... " >&6; } 12289 if ${ac_cv_path_UNAME+:} false; then : 12290 $as_echo_n "(cached) " >&6 12291 else 12292 case $UNAME in 12293 [\\/]* | ?:[\\/]*) 12294 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12295 ;; 12296 *) 12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12298 for as_dir in $PATH 12299 do 12300 IFS=$as_save_IFS 12301 test -z "$as_dir" && as_dir=. 12302 for ac_exec_ext in '' $ac_executable_extensions; do 12303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12304 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12306 break 2 12307 fi 12308 done 12309 done 12310 IFS=$as_save_IFS 12311 12312 ;; 12313 esac 12314 fi 12315 UNAME=$ac_cv_path_UNAME 12316 if test -n "$UNAME"; then 12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12318 $as_echo "$UNAME" >&6; } 12319 else 12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12321 $as_echo "no" >&6; } 12322 fi 12323 12324 12325 if test "x$UNAME" = x; then 12326 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12327 fi 12328 else 12329 # Otherwise we believe it is a complete path. Use it as it is. 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12331 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12333 $as_echo_n "checking for UNAME... " >&6; } 12334 if test ! -x "$tool_specified"; then 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12336 $as_echo "not found" >&6; } 12337 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12338 fi 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12340 $as_echo "$tool_specified" >&6; } 12341 fi 12342 fi 12343 fi 12344 12345 fi 12346 12347 12348 12349 if test "x$UNAME" = x; then 12350 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12351 fi 12352 12353 12354 12355 12356 12357 # Publish this variable in the help. 12358 12359 12360 if [ -z "${UNIQ+x}" ]; then 12361 # The variable is not set by user, try to locate tool using the code snippet 12362 for ac_prog in uniq 12363 do 12364 # Extract the first word of "$ac_prog", so it can be a program name with args. 12365 set dummy $ac_prog; ac_word=$2 12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12367 $as_echo_n "checking for $ac_word... " >&6; } 12368 if ${ac_cv_path_UNIQ+:} false; then : 12369 $as_echo_n "(cached) " >&6 12370 else 12371 case $UNIQ in 12372 [\\/]* | ?:[\\/]*) 12373 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12374 ;; 12375 *) 12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12377 for as_dir in $PATH 12378 do 12379 IFS=$as_save_IFS 12380 test -z "$as_dir" && as_dir=. 12381 for ac_exec_ext in '' $ac_executable_extensions; do 12382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12383 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12385 break 2 12386 fi 12387 done 12388 done 12389 IFS=$as_save_IFS 12390 12391 ;; 12392 esac 12393 fi 12394 UNIQ=$ac_cv_path_UNIQ 12395 if test -n "$UNIQ"; then 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12397 $as_echo "$UNIQ" >&6; } 12398 else 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12400 $as_echo "no" >&6; } 12401 fi 12402 12403 12404 test -n "$UNIQ" && break 12405 done 12406 12407 else 12408 # The variable is set, but is it from the command line or the environment? 12409 12410 # Try to remove the string !UNIQ! from our list. 12411 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12412 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12413 # If it failed, the variable was not from the command line. Ignore it, 12414 # but warn the user (except for BASH, which is always set by the calling BASH). 12415 if test "xUNIQ" != xBASH; then 12416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12417 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12418 fi 12419 # Try to locate tool using the code snippet 12420 for ac_prog in uniq 12421 do 12422 # Extract the first word of "$ac_prog", so it can be a program name with args. 12423 set dummy $ac_prog; ac_word=$2 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12425 $as_echo_n "checking for $ac_word... " >&6; } 12426 if ${ac_cv_path_UNIQ+:} false; then : 12427 $as_echo_n "(cached) " >&6 12428 else 12429 case $UNIQ in 12430 [\\/]* | ?:[\\/]*) 12431 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12432 ;; 12433 *) 12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12435 for as_dir in $PATH 12436 do 12437 IFS=$as_save_IFS 12438 test -z "$as_dir" && as_dir=. 12439 for ac_exec_ext in '' $ac_executable_extensions; do 12440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12441 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12443 break 2 12444 fi 12445 done 12446 done 12447 IFS=$as_save_IFS 12448 12449 ;; 12450 esac 12451 fi 12452 UNIQ=$ac_cv_path_UNIQ 12453 if test -n "$UNIQ"; then 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12455 $as_echo "$UNIQ" >&6; } 12456 else 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12458 $as_echo "no" >&6; } 12459 fi 12460 12461 12462 test -n "$UNIQ" && break 12463 done 12464 12465 else 12466 # If it succeeded, then it was overridden by the user. We will use it 12467 # for the tool. 12468 12469 # First remove it from the list of overridden variables, so we can test 12470 # for unknown variables in the end. 12471 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12472 12473 # Check if we try to supply an empty value 12474 if test "x$UNIQ" = x; then 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12476 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12478 $as_echo_n "checking for UNIQ... " >&6; } 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12480 $as_echo "disabled" >&6; } 12481 else 12482 # Check if the provided tool contains a complete path. 12483 tool_specified="$UNIQ" 12484 tool_basename="${tool_specified##*/}" 12485 if test "x$tool_basename" = "x$tool_specified"; then 12486 # A command without a complete path is provided, search $PATH. 12487 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12488 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12489 # Extract the first word of "$tool_basename", so it can be a program name with args. 12490 set dummy $tool_basename; ac_word=$2 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12492 $as_echo_n "checking for $ac_word... " >&6; } 12493 if ${ac_cv_path_UNIQ+:} false; then : 12494 $as_echo_n "(cached) " >&6 12495 else 12496 case $UNIQ in 12497 [\\/]* | ?:[\\/]*) 12498 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12499 ;; 12500 *) 12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12502 for as_dir in $PATH 12503 do 12504 IFS=$as_save_IFS 12505 test -z "$as_dir" && as_dir=. 12506 for ac_exec_ext in '' $ac_executable_extensions; do 12507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12508 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12510 break 2 12511 fi 12512 done 12513 done 12514 IFS=$as_save_IFS 12515 12516 ;; 12517 esac 12518 fi 12519 UNIQ=$ac_cv_path_UNIQ 12520 if test -n "$UNIQ"; then 12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12522 $as_echo "$UNIQ" >&6; } 12523 else 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12525 $as_echo "no" >&6; } 12526 fi 12527 12528 12529 if test "x$UNIQ" = x; then 12530 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12531 fi 12532 else 12533 # Otherwise we believe it is a complete path. Use it as it is. 12534 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12535 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12537 $as_echo_n "checking for UNIQ... " >&6; } 12538 if test ! -x "$tool_specified"; then 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12540 $as_echo "not found" >&6; } 12541 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12542 fi 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12544 $as_echo "$tool_specified" >&6; } 12545 fi 12546 fi 12547 fi 12548 12549 fi 12550 12551 12552 12553 if test "x$UNIQ" = x; then 12554 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12555 fi 12556 12557 12558 12559 12560 12561 # Publish this variable in the help. 12562 12563 12564 if [ -z "${WC+x}" ]; then 12565 # The variable is not set by user, try to locate tool using the code snippet 12566 for ac_prog in wc 12567 do 12568 # Extract the first word of "$ac_prog", so it can be a program name with args. 12569 set dummy $ac_prog; ac_word=$2 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12571 $as_echo_n "checking for $ac_word... " >&6; } 12572 if ${ac_cv_path_WC+:} false; then : 12573 $as_echo_n "(cached) " >&6 12574 else 12575 case $WC in 12576 [\\/]* | ?:[\\/]*) 12577 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12578 ;; 12579 *) 12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12581 for as_dir in $PATH 12582 do 12583 IFS=$as_save_IFS 12584 test -z "$as_dir" && as_dir=. 12585 for ac_exec_ext in '' $ac_executable_extensions; do 12586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12587 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12589 break 2 12590 fi 12591 done 12592 done 12593 IFS=$as_save_IFS 12594 12595 ;; 12596 esac 12597 fi 12598 WC=$ac_cv_path_WC 12599 if test -n "$WC"; then 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12601 $as_echo "$WC" >&6; } 12602 else 12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12604 $as_echo "no" >&6; } 12605 fi 12606 12607 12608 test -n "$WC" && break 12609 done 12610 12611 else 12612 # The variable is set, but is it from the command line or the environment? 12613 12614 # Try to remove the string !WC! from our list. 12615 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12616 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12617 # If it failed, the variable was not from the command line. Ignore it, 12618 # but warn the user (except for BASH, which is always set by the calling BASH). 12619 if test "xWC" != xBASH; then 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12621 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12622 fi 12623 # Try to locate tool using the code snippet 12624 for ac_prog in wc 12625 do 12626 # Extract the first word of "$ac_prog", so it can be a program name with args. 12627 set dummy $ac_prog; ac_word=$2 12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12629 $as_echo_n "checking for $ac_word... " >&6; } 12630 if ${ac_cv_path_WC+:} false; then : 12631 $as_echo_n "(cached) " >&6 12632 else 12633 case $WC in 12634 [\\/]* | ?:[\\/]*) 12635 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12636 ;; 12637 *) 12638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12639 for as_dir in $PATH 12640 do 12641 IFS=$as_save_IFS 12642 test -z "$as_dir" && as_dir=. 12643 for ac_exec_ext in '' $ac_executable_extensions; do 12644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12645 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12647 break 2 12648 fi 12649 done 12650 done 12651 IFS=$as_save_IFS 12652 12653 ;; 12654 esac 12655 fi 12656 WC=$ac_cv_path_WC 12657 if test -n "$WC"; then 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12659 $as_echo "$WC" >&6; } 12660 else 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12662 $as_echo "no" >&6; } 12663 fi 12664 12665 12666 test -n "$WC" && break 12667 done 12668 12669 else 12670 # If it succeeded, then it was overridden by the user. We will use it 12671 # for the tool. 12672 12673 # First remove it from the list of overridden variables, so we can test 12674 # for unknown variables in the end. 12675 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12676 12677 # Check if we try to supply an empty value 12678 if test "x$WC" = x; then 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12680 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12682 $as_echo_n "checking for WC... " >&6; } 12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12684 $as_echo "disabled" >&6; } 12685 else 12686 # Check if the provided tool contains a complete path. 12687 tool_specified="$WC" 12688 tool_basename="${tool_specified##*/}" 12689 if test "x$tool_basename" = "x$tool_specified"; then 12690 # A command without a complete path is provided, search $PATH. 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12692 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12693 # Extract the first word of "$tool_basename", so it can be a program name with args. 12694 set dummy $tool_basename; ac_word=$2 12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12696 $as_echo_n "checking for $ac_word... " >&6; } 12697 if ${ac_cv_path_WC+:} false; then : 12698 $as_echo_n "(cached) " >&6 12699 else 12700 case $WC in 12701 [\\/]* | ?:[\\/]*) 12702 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12703 ;; 12704 *) 12705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12706 for as_dir in $PATH 12707 do 12708 IFS=$as_save_IFS 12709 test -z "$as_dir" && as_dir=. 12710 for ac_exec_ext in '' $ac_executable_extensions; do 12711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12712 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12714 break 2 12715 fi 12716 done 12717 done 12718 IFS=$as_save_IFS 12719 12720 ;; 12721 esac 12722 fi 12723 WC=$ac_cv_path_WC 12724 if test -n "$WC"; then 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12726 $as_echo "$WC" >&6; } 12727 else 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12729 $as_echo "no" >&6; } 12730 fi 12731 12732 12733 if test "x$WC" = x; then 12734 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12735 fi 12736 else 12737 # Otherwise we believe it is a complete path. Use it as it is. 12738 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12739 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12741 $as_echo_n "checking for WC... " >&6; } 12742 if test ! -x "$tool_specified"; then 12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12744 $as_echo "not found" >&6; } 12745 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12746 fi 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12748 $as_echo "$tool_specified" >&6; } 12749 fi 12750 fi 12751 fi 12752 12753 fi 12754 12755 12756 12757 if test "x$WC" = x; then 12758 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12759 fi 12760 12761 12762 12763 12764 12765 # Publish this variable in the help. 12766 12767 12768 if [ -z "${WHICH+x}" ]; then 12769 # The variable is not set by user, try to locate tool using the code snippet 12770 for ac_prog in which 12771 do 12772 # Extract the first word of "$ac_prog", so it can be a program name with args. 12773 set dummy $ac_prog; ac_word=$2 12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12775 $as_echo_n "checking for $ac_word... " >&6; } 12776 if ${ac_cv_path_WHICH+:} false; then : 12777 $as_echo_n "(cached) " >&6 12778 else 12779 case $WHICH in 12780 [\\/]* | ?:[\\/]*) 12781 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12782 ;; 12783 *) 12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12785 for as_dir in $PATH 12786 do 12787 IFS=$as_save_IFS 12788 test -z "$as_dir" && as_dir=. 12789 for ac_exec_ext in '' $ac_executable_extensions; do 12790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12791 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12793 break 2 12794 fi 12795 done 12796 done 12797 IFS=$as_save_IFS 12798 12799 ;; 12800 esac 12801 fi 12802 WHICH=$ac_cv_path_WHICH 12803 if test -n "$WHICH"; then 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12805 $as_echo "$WHICH" >&6; } 12806 else 12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12808 $as_echo "no" >&6; } 12809 fi 12810 12811 12812 test -n "$WHICH" && break 12813 done 12814 12815 else 12816 # The variable is set, but is it from the command line or the environment? 12817 12818 # Try to remove the string !WHICH! from our list. 12819 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12820 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12821 # If it failed, the variable was not from the command line. Ignore it, 12822 # but warn the user (except for BASH, which is always set by the calling BASH). 12823 if test "xWHICH" != xBASH; then 12824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12825 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12826 fi 12827 # Try to locate tool using the code snippet 12828 for ac_prog in which 12829 do 12830 # Extract the first word of "$ac_prog", so it can be a program name with args. 12831 set dummy $ac_prog; ac_word=$2 12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12833 $as_echo_n "checking for $ac_word... " >&6; } 12834 if ${ac_cv_path_WHICH+:} false; then : 12835 $as_echo_n "(cached) " >&6 12836 else 12837 case $WHICH in 12838 [\\/]* | ?:[\\/]*) 12839 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12840 ;; 12841 *) 12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12843 for as_dir in $PATH 12844 do 12845 IFS=$as_save_IFS 12846 test -z "$as_dir" && as_dir=. 12847 for ac_exec_ext in '' $ac_executable_extensions; do 12848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12849 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12851 break 2 12852 fi 12853 done 12854 done 12855 IFS=$as_save_IFS 12856 12857 ;; 12858 esac 12859 fi 12860 WHICH=$ac_cv_path_WHICH 12861 if test -n "$WHICH"; then 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12863 $as_echo "$WHICH" >&6; } 12864 else 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12866 $as_echo "no" >&6; } 12867 fi 12868 12869 12870 test -n "$WHICH" && break 12871 done 12872 12873 else 12874 # If it succeeded, then it was overridden by the user. We will use it 12875 # for the tool. 12876 12877 # First remove it from the list of overridden variables, so we can test 12878 # for unknown variables in the end. 12879 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12880 12881 # Check if we try to supply an empty value 12882 if test "x$WHICH" = x; then 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12884 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12886 $as_echo_n "checking for WHICH... " >&6; } 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12888 $as_echo "disabled" >&6; } 12889 else 12890 # Check if the provided tool contains a complete path. 12891 tool_specified="$WHICH" 12892 tool_basename="${tool_specified##*/}" 12893 if test "x$tool_basename" = "x$tool_specified"; then 12894 # A command without a complete path is provided, search $PATH. 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12896 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12897 # Extract the first word of "$tool_basename", so it can be a program name with args. 12898 set dummy $tool_basename; ac_word=$2 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12900 $as_echo_n "checking for $ac_word... " >&6; } 12901 if ${ac_cv_path_WHICH+:} false; then : 12902 $as_echo_n "(cached) " >&6 12903 else 12904 case $WHICH in 12905 [\\/]* | ?:[\\/]*) 12906 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12907 ;; 12908 *) 12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12910 for as_dir in $PATH 12911 do 12912 IFS=$as_save_IFS 12913 test -z "$as_dir" && as_dir=. 12914 for ac_exec_ext in '' $ac_executable_extensions; do 12915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12916 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12918 break 2 12919 fi 12920 done 12921 done 12922 IFS=$as_save_IFS 12923 12924 ;; 12925 esac 12926 fi 12927 WHICH=$ac_cv_path_WHICH 12928 if test -n "$WHICH"; then 12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12930 $as_echo "$WHICH" >&6; } 12931 else 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12933 $as_echo "no" >&6; } 12934 fi 12935 12936 12937 if test "x$WHICH" = x; then 12938 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12939 fi 12940 else 12941 # Otherwise we believe it is a complete path. Use it as it is. 12942 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12943 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12945 $as_echo_n "checking for WHICH... " >&6; } 12946 if test ! -x "$tool_specified"; then 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12948 $as_echo "not found" >&6; } 12949 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12950 fi 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12952 $as_echo "$tool_specified" >&6; } 12953 fi 12954 fi 12955 fi 12956 12957 fi 12958 12959 12960 12961 if test "x$WHICH" = x; then 12962 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12963 fi 12964 12965 12966 12967 12968 12969 # Publish this variable in the help. 12970 12971 12972 if [ -z "${XARGS+x}" ]; then 12973 # The variable is not set by user, try to locate tool using the code snippet 12974 for ac_prog in xargs 12975 do 12976 # Extract the first word of "$ac_prog", so it can be a program name with args. 12977 set dummy $ac_prog; ac_word=$2 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12979 $as_echo_n "checking for $ac_word... " >&6; } 12980 if ${ac_cv_path_XARGS+:} false; then : 12981 $as_echo_n "(cached) " >&6 12982 else 12983 case $XARGS in 12984 [\\/]* | ?:[\\/]*) 12985 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12986 ;; 12987 *) 12988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12989 for as_dir in $PATH 12990 do 12991 IFS=$as_save_IFS 12992 test -z "$as_dir" && as_dir=. 12993 for ac_exec_ext in '' $ac_executable_extensions; do 12994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12995 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12997 break 2 12998 fi 12999 done 13000 done 13001 IFS=$as_save_IFS 13002 13003 ;; 13004 esac 13005 fi 13006 XARGS=$ac_cv_path_XARGS 13007 if test -n "$XARGS"; then 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13009 $as_echo "$XARGS" >&6; } 13010 else 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13012 $as_echo "no" >&6; } 13013 fi 13014 13015 13016 test -n "$XARGS" && break 13017 done 13018 13019 else 13020 # The variable is set, but is it from the command line or the environment? 13021 13022 # Try to remove the string !XARGS! from our list. 13023 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 13024 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13025 # If it failed, the variable was not from the command line. Ignore it, 13026 # but warn the user (except for BASH, which is always set by the calling BASH). 13027 if test "xXARGS" != xBASH; then 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 13029 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 13030 fi 13031 # Try to locate tool using the code snippet 13032 for ac_prog in xargs 13033 do 13034 # Extract the first word of "$ac_prog", so it can be a program name with args. 13035 set dummy $ac_prog; ac_word=$2 13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13037 $as_echo_n "checking for $ac_word... " >&6; } 13038 if ${ac_cv_path_XARGS+:} false; then : 13039 $as_echo_n "(cached) " >&6 13040 else 13041 case $XARGS in 13042 [\\/]* | ?:[\\/]*) 13043 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13044 ;; 13045 *) 13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13047 for as_dir in $PATH 13048 do 13049 IFS=$as_save_IFS 13050 test -z "$as_dir" && as_dir=. 13051 for ac_exec_ext in '' $ac_executable_extensions; do 13052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13053 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13055 break 2 13056 fi 13057 done 13058 done 13059 IFS=$as_save_IFS 13060 13061 ;; 13062 esac 13063 fi 13064 XARGS=$ac_cv_path_XARGS 13065 if test -n "$XARGS"; then 13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13067 $as_echo "$XARGS" >&6; } 13068 else 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13070 $as_echo "no" >&6; } 13071 fi 13072 13073 13074 test -n "$XARGS" && break 13075 done 13076 13077 else 13078 # If it succeeded, then it was overridden by the user. We will use it 13079 # for the tool. 13080 13081 # First remove it from the list of overridden variables, so we can test 13082 # for unknown variables in the end. 13083 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13084 13085 # Check if we try to supply an empty value 13086 if test "x$XARGS" = x; then 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13088 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13090 $as_echo_n "checking for XARGS... " >&6; } 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13092 $as_echo "disabled" >&6; } 13093 else 13094 # Check if the provided tool contains a complete path. 13095 tool_specified="$XARGS" 13096 tool_basename="${tool_specified##*/}" 13097 if test "x$tool_basename" = "x$tool_specified"; then 13098 # A command without a complete path is provided, search $PATH. 13099 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13100 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13101 # Extract the first word of "$tool_basename", so it can be a program name with args. 13102 set dummy $tool_basename; ac_word=$2 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13104 $as_echo_n "checking for $ac_word... " >&6; } 13105 if ${ac_cv_path_XARGS+:} false; then : 13106 $as_echo_n "(cached) " >&6 13107 else 13108 case $XARGS in 13109 [\\/]* | ?:[\\/]*) 13110 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13111 ;; 13112 *) 13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13114 for as_dir in $PATH 13115 do 13116 IFS=$as_save_IFS 13117 test -z "$as_dir" && as_dir=. 13118 for ac_exec_ext in '' $ac_executable_extensions; do 13119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13120 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13122 break 2 13123 fi 13124 done 13125 done 13126 IFS=$as_save_IFS 13127 13128 ;; 13129 esac 13130 fi 13131 XARGS=$ac_cv_path_XARGS 13132 if test -n "$XARGS"; then 13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13134 $as_echo "$XARGS" >&6; } 13135 else 13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13137 $as_echo "no" >&6; } 13138 fi 13139 13140 13141 if test "x$XARGS" = x; then 13142 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13143 fi 13144 else 13145 # Otherwise we believe it is a complete path. Use it as it is. 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13147 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13149 $as_echo_n "checking for XARGS... " >&6; } 13150 if test ! -x "$tool_specified"; then 13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13152 $as_echo "not found" >&6; } 13153 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13154 fi 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13156 $as_echo "$tool_specified" >&6; } 13157 fi 13158 fi 13159 fi 13160 13161 fi 13162 13163 13164 13165 if test "x$XARGS" = x; then 13166 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13167 fi 13168 13169 13170 13171 # Then required tools that require some special treatment. 13172 13173 13174 # Publish this variable in the help. 13175 13176 13177 if [ -z "${AWK+x}" ]; then 13178 # The variable is not set by user, try to locate tool using the code snippet 13179 for ac_prog in gawk mawk nawk awk 13180 do 13181 # Extract the first word of "$ac_prog", so it can be a program name with args. 13182 set dummy $ac_prog; ac_word=$2 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13184 $as_echo_n "checking for $ac_word... " >&6; } 13185 if ${ac_cv_prog_AWK+:} false; then : 13186 $as_echo_n "(cached) " >&6 13187 else 13188 if test -n "$AWK"; then 13189 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13190 else 13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13192 for as_dir in $PATH 13193 do 13194 IFS=$as_save_IFS 13195 test -z "$as_dir" && as_dir=. 13196 for ac_exec_ext in '' $ac_executable_extensions; do 13197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13198 ac_cv_prog_AWK="$ac_prog" 13199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13200 break 2 13201 fi 13202 done 13203 done 13204 IFS=$as_save_IFS 13205 13206 fi 13207 fi 13208 AWK=$ac_cv_prog_AWK 13209 if test -n "$AWK"; then 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13211 $as_echo "$AWK" >&6; } 13212 else 13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13214 $as_echo "no" >&6; } 13215 fi 13216 13217 13218 test -n "$AWK" && break 13219 done 13220 13221 else 13222 # The variable is set, but is it from the command line or the environment? 13223 13224 # Try to remove the string !AWK! from our list. 13225 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13226 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13227 # If it failed, the variable was not from the command line. Ignore it, 13228 # but warn the user (except for BASH, which is always set by the calling BASH). 13229 if test "xAWK" != xBASH; then 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13231 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13232 fi 13233 # Try to locate tool using the code snippet 13234 for ac_prog in gawk mawk nawk awk 13235 do 13236 # Extract the first word of "$ac_prog", so it can be a program name with args. 13237 set dummy $ac_prog; ac_word=$2 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13239 $as_echo_n "checking for $ac_word... " >&6; } 13240 if ${ac_cv_prog_AWK+:} false; then : 13241 $as_echo_n "(cached) " >&6 13242 else 13243 if test -n "$AWK"; then 13244 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13245 else 13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13247 for as_dir in $PATH 13248 do 13249 IFS=$as_save_IFS 13250 test -z "$as_dir" && as_dir=. 13251 for ac_exec_ext in '' $ac_executable_extensions; do 13252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13253 ac_cv_prog_AWK="$ac_prog" 13254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13255 break 2 13256 fi 13257 done 13258 done 13259 IFS=$as_save_IFS 13260 13261 fi 13262 fi 13263 AWK=$ac_cv_prog_AWK 13264 if test -n "$AWK"; then 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13266 $as_echo "$AWK" >&6; } 13267 else 13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13269 $as_echo "no" >&6; } 13270 fi 13271 13272 13273 test -n "$AWK" && break 13274 done 13275 13276 else 13277 # If it succeeded, then it was overridden by the user. We will use it 13278 # for the tool. 13279 13280 # First remove it from the list of overridden variables, so we can test 13281 # for unknown variables in the end. 13282 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13283 13284 # Check if we try to supply an empty value 13285 if test "x$AWK" = x; then 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13287 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13289 $as_echo_n "checking for AWK... " >&6; } 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13291 $as_echo "disabled" >&6; } 13292 else 13293 # Check if the provided tool contains a complete path. 13294 tool_specified="$AWK" 13295 tool_basename="${tool_specified##*/}" 13296 if test "x$tool_basename" = "x$tool_specified"; then 13297 # A command without a complete path is provided, search $PATH. 13298 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13299 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13300 # Extract the first word of "$tool_basename", so it can be a program name with args. 13301 set dummy $tool_basename; ac_word=$2 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13303 $as_echo_n "checking for $ac_word... " >&6; } 13304 if ${ac_cv_path_AWK+:} false; then : 13305 $as_echo_n "(cached) " >&6 13306 else 13307 case $AWK in 13308 [\\/]* | ?:[\\/]*) 13309 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13310 ;; 13311 *) 13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13313 for as_dir in $PATH 13314 do 13315 IFS=$as_save_IFS 13316 test -z "$as_dir" && as_dir=. 13317 for ac_exec_ext in '' $ac_executable_extensions; do 13318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13319 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13321 break 2 13322 fi 13323 done 13324 done 13325 IFS=$as_save_IFS 13326 13327 ;; 13328 esac 13329 fi 13330 AWK=$ac_cv_path_AWK 13331 if test -n "$AWK"; then 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13333 $as_echo "$AWK" >&6; } 13334 else 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13336 $as_echo "no" >&6; } 13337 fi 13338 13339 13340 if test "x$AWK" = x; then 13341 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13342 fi 13343 else 13344 # Otherwise we believe it is a complete path. Use it as it is. 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13346 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13348 $as_echo_n "checking for AWK... " >&6; } 13349 if test ! -x "$tool_specified"; then 13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13351 $as_echo "not found" >&6; } 13352 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13353 fi 13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13355 $as_echo "$tool_specified" >&6; } 13356 fi 13357 fi 13358 fi 13359 13360 fi 13361 13362 13363 if test "x$AWK" = x; then 13364 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13365 fi 13366 13367 13368 13369 13370 # Publish this variable in the help. 13371 13372 13373 if [ -z "${GREP+x}" ]; then 13374 # The variable is not set by user, try to locate tool using the code snippet 13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13376 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13377 if ${ac_cv_path_GREP+:} false; then : 13378 $as_echo_n "(cached) " >&6 13379 else 13380 if test -z "$GREP"; then 13381 ac_path_GREP_found=false 13382 # Loop through the user's path and test for each of PROGNAME-LIST 13383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13385 do 13386 IFS=$as_save_IFS 13387 test -z "$as_dir" && as_dir=. 13388 for ac_prog in grep ggrep; do 13389 for ac_exec_ext in '' $ac_executable_extensions; do 13390 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13391 as_fn_executable_p "$ac_path_GREP" || continue 13392 # Check for GNU ac_path_GREP and select it if it is found. 13393 # Check for GNU $ac_path_GREP 13394 case `"$ac_path_GREP" --version 2>&1` in 13395 *GNU*) 13396 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13397 *) 13398 ac_count=0 13399 $as_echo_n 0123456789 >"conftest.in" 13400 while : 13401 do 13402 cat "conftest.in" "conftest.in" >"conftest.tmp" 13403 mv "conftest.tmp" "conftest.in" 13404 cp "conftest.in" "conftest.nl" 13405 $as_echo 'GREP' >> "conftest.nl" 13406 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13408 as_fn_arith $ac_count + 1 && ac_count=$as_val 13409 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13410 # Best one so far, save it but keep looking for a better one 13411 ac_cv_path_GREP="$ac_path_GREP" 13412 ac_path_GREP_max=$ac_count 13413 fi 13414 # 10*(2^10) chars as input seems more than enough 13415 test $ac_count -gt 10 && break 13416 done 13417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13418 esac 13419 13420 $ac_path_GREP_found && break 3 13421 done 13422 done 13423 done 13424 IFS=$as_save_IFS 13425 if test -z "$ac_cv_path_GREP"; then 13426 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13427 fi 13428 else 13429 ac_cv_path_GREP=$GREP 13430 fi 13431 13432 fi 13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13434 $as_echo "$ac_cv_path_GREP" >&6; } 13435 GREP="$ac_cv_path_GREP" 13436 13437 13438 else 13439 # The variable is set, but is it from the command line or the environment? 13440 13441 # Try to remove the string !GREP! from our list. 13442 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13443 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13444 # If it failed, the variable was not from the command line. Ignore it, 13445 # but warn the user (except for BASH, which is always set by the calling BASH). 13446 if test "xGREP" != xBASH; then 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13448 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13449 fi 13450 # Try to locate tool using the code snippet 13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13452 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13453 if ${ac_cv_path_GREP+:} false; then : 13454 $as_echo_n "(cached) " >&6 13455 else 13456 if test -z "$GREP"; then 13457 ac_path_GREP_found=false 13458 # Loop through the user's path and test for each of PROGNAME-LIST 13459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13460 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13461 do 13462 IFS=$as_save_IFS 13463 test -z "$as_dir" && as_dir=. 13464 for ac_prog in grep ggrep; do 13465 for ac_exec_ext in '' $ac_executable_extensions; do 13466 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13467 as_fn_executable_p "$ac_path_GREP" || continue 13468 # Check for GNU ac_path_GREP and select it if it is found. 13469 # Check for GNU $ac_path_GREP 13470 case `"$ac_path_GREP" --version 2>&1` in 13471 *GNU*) 13472 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13473 *) 13474 ac_count=0 13475 $as_echo_n 0123456789 >"conftest.in" 13476 while : 13477 do 13478 cat "conftest.in" "conftest.in" >"conftest.tmp" 13479 mv "conftest.tmp" "conftest.in" 13480 cp "conftest.in" "conftest.nl" 13481 $as_echo 'GREP' >> "conftest.nl" 13482 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13484 as_fn_arith $ac_count + 1 && ac_count=$as_val 13485 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13486 # Best one so far, save it but keep looking for a better one 13487 ac_cv_path_GREP="$ac_path_GREP" 13488 ac_path_GREP_max=$ac_count 13489 fi 13490 # 10*(2^10) chars as input seems more than enough 13491 test $ac_count -gt 10 && break 13492 done 13493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13494 esac 13495 13496 $ac_path_GREP_found && break 3 13497 done 13498 done 13499 done 13500 IFS=$as_save_IFS 13501 if test -z "$ac_cv_path_GREP"; then 13502 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13503 fi 13504 else 13505 ac_cv_path_GREP=$GREP 13506 fi 13507 13508 fi 13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13510 $as_echo "$ac_cv_path_GREP" >&6; } 13511 GREP="$ac_cv_path_GREP" 13512 13513 13514 else 13515 # If it succeeded, then it was overridden by the user. We will use it 13516 # for the tool. 13517 13518 # First remove it from the list of overridden variables, so we can test 13519 # for unknown variables in the end. 13520 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13521 13522 # Check if we try to supply an empty value 13523 if test "x$GREP" = x; then 13524 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13525 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13527 $as_echo_n "checking for GREP... " >&6; } 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13529 $as_echo "disabled" >&6; } 13530 else 13531 # Check if the provided tool contains a complete path. 13532 tool_specified="$GREP" 13533 tool_basename="${tool_specified##*/}" 13534 if test "x$tool_basename" = "x$tool_specified"; then 13535 # A command without a complete path is provided, search $PATH. 13536 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13537 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13538 # Extract the first word of "$tool_basename", so it can be a program name with args. 13539 set dummy $tool_basename; ac_word=$2 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13541 $as_echo_n "checking for $ac_word... " >&6; } 13542 if ${ac_cv_path_GREP+:} false; then : 13543 $as_echo_n "(cached) " >&6 13544 else 13545 case $GREP in 13546 [\\/]* | ?:[\\/]*) 13547 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13548 ;; 13549 *) 13550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13551 for as_dir in $PATH 13552 do 13553 IFS=$as_save_IFS 13554 test -z "$as_dir" && as_dir=. 13555 for ac_exec_ext in '' $ac_executable_extensions; do 13556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13557 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13559 break 2 13560 fi 13561 done 13562 done 13563 IFS=$as_save_IFS 13564 13565 ;; 13566 esac 13567 fi 13568 GREP=$ac_cv_path_GREP 13569 if test -n "$GREP"; then 13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13571 $as_echo "$GREP" >&6; } 13572 else 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13574 $as_echo "no" >&6; } 13575 fi 13576 13577 13578 if test "x$GREP" = x; then 13579 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13580 fi 13581 else 13582 # Otherwise we believe it is a complete path. Use it as it is. 13583 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13584 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13586 $as_echo_n "checking for GREP... " >&6; } 13587 if test ! -x "$tool_specified"; then 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13589 $as_echo "not found" >&6; } 13590 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13591 fi 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13593 $as_echo "$tool_specified" >&6; } 13594 fi 13595 fi 13596 fi 13597 13598 fi 13599 13600 13601 if test "x$GREP" = x; then 13602 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13603 fi 13604 13605 13606 13607 13608 # Publish this variable in the help. 13609 13610 13611 if [ -z "${EGREP+x}" ]; then 13612 # The variable is not set by user, try to locate tool using the code snippet 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13614 $as_echo_n "checking for egrep... " >&6; } 13615 if ${ac_cv_path_EGREP+:} false; then : 13616 $as_echo_n "(cached) " >&6 13617 else 13618 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13619 then ac_cv_path_EGREP="$GREP -E" 13620 else 13621 if test -z "$EGREP"; then 13622 ac_path_EGREP_found=false 13623 # Loop through the user's path and test for each of PROGNAME-LIST 13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13626 do 13627 IFS=$as_save_IFS 13628 test -z "$as_dir" && as_dir=. 13629 for ac_prog in egrep; do 13630 for ac_exec_ext in '' $ac_executable_extensions; do 13631 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13632 as_fn_executable_p "$ac_path_EGREP" || continue 13633 # Check for GNU ac_path_EGREP and select it if it is found. 13634 # Check for GNU $ac_path_EGREP 13635 case `"$ac_path_EGREP" --version 2>&1` in 13636 *GNU*) 13637 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13638 *) 13639 ac_count=0 13640 $as_echo_n 0123456789 >"conftest.in" 13641 while : 13642 do 13643 cat "conftest.in" "conftest.in" >"conftest.tmp" 13644 mv "conftest.tmp" "conftest.in" 13645 cp "conftest.in" "conftest.nl" 13646 $as_echo 'EGREP' >> "conftest.nl" 13647 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13649 as_fn_arith $ac_count + 1 && ac_count=$as_val 13650 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13651 # Best one so far, save it but keep looking for a better one 13652 ac_cv_path_EGREP="$ac_path_EGREP" 13653 ac_path_EGREP_max=$ac_count 13654 fi 13655 # 10*(2^10) chars as input seems more than enough 13656 test $ac_count -gt 10 && break 13657 done 13658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13659 esac 13660 13661 $ac_path_EGREP_found && break 3 13662 done 13663 done 13664 done 13665 IFS=$as_save_IFS 13666 if test -z "$ac_cv_path_EGREP"; then 13667 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13668 fi 13669 else 13670 ac_cv_path_EGREP=$EGREP 13671 fi 13672 13673 fi 13674 fi 13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13676 $as_echo "$ac_cv_path_EGREP" >&6; } 13677 EGREP="$ac_cv_path_EGREP" 13678 13679 13680 else 13681 # The variable is set, but is it from the command line or the environment? 13682 13683 # Try to remove the string !EGREP! from our list. 13684 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13685 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13686 # If it failed, the variable was not from the command line. Ignore it, 13687 # but warn the user (except for BASH, which is always set by the calling BASH). 13688 if test "xEGREP" != xBASH; then 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13690 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13691 fi 13692 # Try to locate tool using the code snippet 13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13694 $as_echo_n "checking for egrep... " >&6; } 13695 if ${ac_cv_path_EGREP+:} false; then : 13696 $as_echo_n "(cached) " >&6 13697 else 13698 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13699 then ac_cv_path_EGREP="$GREP -E" 13700 else 13701 if test -z "$EGREP"; then 13702 ac_path_EGREP_found=false 13703 # Loop through the user's path and test for each of PROGNAME-LIST 13704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13705 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13706 do 13707 IFS=$as_save_IFS 13708 test -z "$as_dir" && as_dir=. 13709 for ac_prog in egrep; do 13710 for ac_exec_ext in '' $ac_executable_extensions; do 13711 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13712 as_fn_executable_p "$ac_path_EGREP" || continue 13713 # Check for GNU ac_path_EGREP and select it if it is found. 13714 # Check for GNU $ac_path_EGREP 13715 case `"$ac_path_EGREP" --version 2>&1` in 13716 *GNU*) 13717 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13718 *) 13719 ac_count=0 13720 $as_echo_n 0123456789 >"conftest.in" 13721 while : 13722 do 13723 cat "conftest.in" "conftest.in" >"conftest.tmp" 13724 mv "conftest.tmp" "conftest.in" 13725 cp "conftest.in" "conftest.nl" 13726 $as_echo 'EGREP' >> "conftest.nl" 13727 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13729 as_fn_arith $ac_count + 1 && ac_count=$as_val 13730 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13731 # Best one so far, save it but keep looking for a better one 13732 ac_cv_path_EGREP="$ac_path_EGREP" 13733 ac_path_EGREP_max=$ac_count 13734 fi 13735 # 10*(2^10) chars as input seems more than enough 13736 test $ac_count -gt 10 && break 13737 done 13738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13739 esac 13740 13741 $ac_path_EGREP_found && break 3 13742 done 13743 done 13744 done 13745 IFS=$as_save_IFS 13746 if test -z "$ac_cv_path_EGREP"; then 13747 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13748 fi 13749 else 13750 ac_cv_path_EGREP=$EGREP 13751 fi 13752 13753 fi 13754 fi 13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13756 $as_echo "$ac_cv_path_EGREP" >&6; } 13757 EGREP="$ac_cv_path_EGREP" 13758 13759 13760 else 13761 # If it succeeded, then it was overridden by the user. We will use it 13762 # for the tool. 13763 13764 # First remove it from the list of overridden variables, so we can test 13765 # for unknown variables in the end. 13766 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13767 13768 # Check if we try to supply an empty value 13769 if test "x$EGREP" = x; then 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13771 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13773 $as_echo_n "checking for EGREP... " >&6; } 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13775 $as_echo "disabled" >&6; } 13776 else 13777 # Check if the provided tool contains a complete path. 13778 tool_specified="$EGREP" 13779 tool_basename="${tool_specified##*/}" 13780 if test "x$tool_basename" = "x$tool_specified"; then 13781 # A command without a complete path is provided, search $PATH. 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13783 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13784 # Extract the first word of "$tool_basename", so it can be a program name with args. 13785 set dummy $tool_basename; ac_word=$2 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13787 $as_echo_n "checking for $ac_word... " >&6; } 13788 if ${ac_cv_path_EGREP+:} false; then : 13789 $as_echo_n "(cached) " >&6 13790 else 13791 case $EGREP in 13792 [\\/]* | ?:[\\/]*) 13793 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13794 ;; 13795 *) 13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13797 for as_dir in $PATH 13798 do 13799 IFS=$as_save_IFS 13800 test -z "$as_dir" && as_dir=. 13801 for ac_exec_ext in '' $ac_executable_extensions; do 13802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13803 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13805 break 2 13806 fi 13807 done 13808 done 13809 IFS=$as_save_IFS 13810 13811 ;; 13812 esac 13813 fi 13814 EGREP=$ac_cv_path_EGREP 13815 if test -n "$EGREP"; then 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13817 $as_echo "$EGREP" >&6; } 13818 else 13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13820 $as_echo "no" >&6; } 13821 fi 13822 13823 13824 if test "x$EGREP" = x; then 13825 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13826 fi 13827 else 13828 # Otherwise we believe it is a complete path. Use it as it is. 13829 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13830 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13832 $as_echo_n "checking for EGREP... " >&6; } 13833 if test ! -x "$tool_specified"; then 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13835 $as_echo "not found" >&6; } 13836 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13837 fi 13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13839 $as_echo "$tool_specified" >&6; } 13840 fi 13841 fi 13842 fi 13843 13844 fi 13845 13846 13847 if test "x$EGREP" = x; then 13848 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13849 fi 13850 13851 13852 13853 13854 # Publish this variable in the help. 13855 13856 13857 if [ -z "${FGREP+x}" ]; then 13858 # The variable is not set by user, try to locate tool using the code snippet 13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13860 $as_echo_n "checking for fgrep... " >&6; } 13861 if ${ac_cv_path_FGREP+:} false; then : 13862 $as_echo_n "(cached) " >&6 13863 else 13864 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13865 then ac_cv_path_FGREP="$GREP -F" 13866 else 13867 if test -z "$FGREP"; then 13868 ac_path_FGREP_found=false 13869 # Loop through the user's path and test for each of PROGNAME-LIST 13870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13871 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13872 do 13873 IFS=$as_save_IFS 13874 test -z "$as_dir" && as_dir=. 13875 for ac_prog in fgrep; do 13876 for ac_exec_ext in '' $ac_executable_extensions; do 13877 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13878 as_fn_executable_p "$ac_path_FGREP" || continue 13879 # Check for GNU ac_path_FGREP and select it if it is found. 13880 # Check for GNU $ac_path_FGREP 13881 case `"$ac_path_FGREP" --version 2>&1` in 13882 *GNU*) 13883 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13884 *) 13885 ac_count=0 13886 $as_echo_n 0123456789 >"conftest.in" 13887 while : 13888 do 13889 cat "conftest.in" "conftest.in" >"conftest.tmp" 13890 mv "conftest.tmp" "conftest.in" 13891 cp "conftest.in" "conftest.nl" 13892 $as_echo 'FGREP' >> "conftest.nl" 13893 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13895 as_fn_arith $ac_count + 1 && ac_count=$as_val 13896 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13897 # Best one so far, save it but keep looking for a better one 13898 ac_cv_path_FGREP="$ac_path_FGREP" 13899 ac_path_FGREP_max=$ac_count 13900 fi 13901 # 10*(2^10) chars as input seems more than enough 13902 test $ac_count -gt 10 && break 13903 done 13904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13905 esac 13906 13907 $ac_path_FGREP_found && break 3 13908 done 13909 done 13910 done 13911 IFS=$as_save_IFS 13912 if test -z "$ac_cv_path_FGREP"; then 13913 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13914 fi 13915 else 13916 ac_cv_path_FGREP=$FGREP 13917 fi 13918 13919 fi 13920 fi 13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13922 $as_echo "$ac_cv_path_FGREP" >&6; } 13923 FGREP="$ac_cv_path_FGREP" 13924 13925 13926 else 13927 # The variable is set, but is it from the command line or the environment? 13928 13929 # Try to remove the string !FGREP! from our list. 13930 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13931 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13932 # If it failed, the variable was not from the command line. Ignore it, 13933 # but warn the user (except for BASH, which is always set by the calling BASH). 13934 if test "xFGREP" != xBASH; then 13935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13936 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13937 fi 13938 # Try to locate tool using the code snippet 13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13940 $as_echo_n "checking for fgrep... " >&6; } 13941 if ${ac_cv_path_FGREP+:} false; then : 13942 $as_echo_n "(cached) " >&6 13943 else 13944 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13945 then ac_cv_path_FGREP="$GREP -F" 13946 else 13947 if test -z "$FGREP"; then 13948 ac_path_FGREP_found=false 13949 # Loop through the user's path and test for each of PROGNAME-LIST 13950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13951 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13952 do 13953 IFS=$as_save_IFS 13954 test -z "$as_dir" && as_dir=. 13955 for ac_prog in fgrep; do 13956 for ac_exec_ext in '' $ac_executable_extensions; do 13957 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13958 as_fn_executable_p "$ac_path_FGREP" || continue 13959 # Check for GNU ac_path_FGREP and select it if it is found. 13960 # Check for GNU $ac_path_FGREP 13961 case `"$ac_path_FGREP" --version 2>&1` in 13962 *GNU*) 13963 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13964 *) 13965 ac_count=0 13966 $as_echo_n 0123456789 >"conftest.in" 13967 while : 13968 do 13969 cat "conftest.in" "conftest.in" >"conftest.tmp" 13970 mv "conftest.tmp" "conftest.in" 13971 cp "conftest.in" "conftest.nl" 13972 $as_echo 'FGREP' >> "conftest.nl" 13973 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13975 as_fn_arith $ac_count + 1 && ac_count=$as_val 13976 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13977 # Best one so far, save it but keep looking for a better one 13978 ac_cv_path_FGREP="$ac_path_FGREP" 13979 ac_path_FGREP_max=$ac_count 13980 fi 13981 # 10*(2^10) chars as input seems more than enough 13982 test $ac_count -gt 10 && break 13983 done 13984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13985 esac 13986 13987 $ac_path_FGREP_found && break 3 13988 done 13989 done 13990 done 13991 IFS=$as_save_IFS 13992 if test -z "$ac_cv_path_FGREP"; then 13993 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13994 fi 13995 else 13996 ac_cv_path_FGREP=$FGREP 13997 fi 13998 13999 fi 14000 fi 14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 14002 $as_echo "$ac_cv_path_FGREP" >&6; } 14003 FGREP="$ac_cv_path_FGREP" 14004 14005 14006 else 14007 # If it succeeded, then it was overridden by the user. We will use it 14008 # for the tool. 14009 14010 # First remove it from the list of overridden variables, so we can test 14011 # for unknown variables in the end. 14012 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14013 14014 # Check if we try to supply an empty value 14015 if test "x$FGREP" = x; then 14016 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 14017 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14019 $as_echo_n "checking for FGREP... " >&6; } 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14021 $as_echo "disabled" >&6; } 14022 else 14023 # Check if the provided tool contains a complete path. 14024 tool_specified="$FGREP" 14025 tool_basename="${tool_specified##*/}" 14026 if test "x$tool_basename" = "x$tool_specified"; then 14027 # A command without a complete path is provided, search $PATH. 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 14029 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 14030 # Extract the first word of "$tool_basename", so it can be a program name with args. 14031 set dummy $tool_basename; ac_word=$2 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14033 $as_echo_n "checking for $ac_word... " >&6; } 14034 if ${ac_cv_path_FGREP+:} false; then : 14035 $as_echo_n "(cached) " >&6 14036 else 14037 case $FGREP in 14038 [\\/]* | ?:[\\/]*) 14039 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 14040 ;; 14041 *) 14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14043 for as_dir in $PATH 14044 do 14045 IFS=$as_save_IFS 14046 test -z "$as_dir" && as_dir=. 14047 for ac_exec_ext in '' $ac_executable_extensions; do 14048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14049 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 14050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14051 break 2 14052 fi 14053 done 14054 done 14055 IFS=$as_save_IFS 14056 14057 ;; 14058 esac 14059 fi 14060 FGREP=$ac_cv_path_FGREP 14061 if test -n "$FGREP"; then 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 14063 $as_echo "$FGREP" >&6; } 14064 else 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14066 $as_echo "no" >&6; } 14067 fi 14068 14069 14070 if test "x$FGREP" = x; then 14071 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14072 fi 14073 else 14074 # Otherwise we believe it is a complete path. Use it as it is. 14075 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14076 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14078 $as_echo_n "checking for FGREP... " >&6; } 14079 if test ! -x "$tool_specified"; then 14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14081 $as_echo "not found" >&6; } 14082 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14083 fi 14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14085 $as_echo "$tool_specified" >&6; } 14086 fi 14087 fi 14088 fi 14089 14090 fi 14091 14092 14093 if test "x$FGREP" = x; then 14094 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14095 fi 14096 14097 14098 14099 14100 # Publish this variable in the help. 14101 14102 14103 if [ -z "${SED+x}" ]; then 14104 # The variable is not set by user, try to locate tool using the code snippet 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14106 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14107 if ${ac_cv_path_SED+:} false; then : 14108 $as_echo_n "(cached) " >&6 14109 else 14110 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14111 for ac_i in 1 2 3 4 5 6 7; do 14112 ac_script="$ac_script$as_nl$ac_script" 14113 done 14114 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14115 { ac_script=; unset ac_script;} 14116 if test -z "$SED"; then 14117 ac_path_SED_found=false 14118 # Loop through the user's path and test for each of PROGNAME-LIST 14119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14120 for as_dir in $PATH 14121 do 14122 IFS=$as_save_IFS 14123 test -z "$as_dir" && as_dir=. 14124 for ac_prog in sed gsed; do 14125 for ac_exec_ext in '' $ac_executable_extensions; do 14126 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14127 as_fn_executable_p "$ac_path_SED" || continue 14128 # Check for GNU ac_path_SED and select it if it is found. 14129 # Check for GNU $ac_path_SED 14130 case `"$ac_path_SED" --version 2>&1` in 14131 *GNU*) 14132 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14133 *) 14134 ac_count=0 14135 $as_echo_n 0123456789 >"conftest.in" 14136 while : 14137 do 14138 cat "conftest.in" "conftest.in" >"conftest.tmp" 14139 mv "conftest.tmp" "conftest.in" 14140 cp "conftest.in" "conftest.nl" 14141 $as_echo '' >> "conftest.nl" 14142 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14144 as_fn_arith $ac_count + 1 && ac_count=$as_val 14145 if test $ac_count -gt ${ac_path_SED_max-0}; then 14146 # Best one so far, save it but keep looking for a better one 14147 ac_cv_path_SED="$ac_path_SED" 14148 ac_path_SED_max=$ac_count 14149 fi 14150 # 10*(2^10) chars as input seems more than enough 14151 test $ac_count -gt 10 && break 14152 done 14153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14154 esac 14155 14156 $ac_path_SED_found && break 3 14157 done 14158 done 14159 done 14160 IFS=$as_save_IFS 14161 if test -z "$ac_cv_path_SED"; then 14162 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14163 fi 14164 else 14165 ac_cv_path_SED=$SED 14166 fi 14167 14168 fi 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14170 $as_echo "$ac_cv_path_SED" >&6; } 14171 SED="$ac_cv_path_SED" 14172 rm -f conftest.sed 14173 14174 else 14175 # The variable is set, but is it from the command line or the environment? 14176 14177 # Try to remove the string !SED! from our list. 14178 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14179 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14180 # If it failed, the variable was not from the command line. Ignore it, 14181 # but warn the user (except for BASH, which is always set by the calling BASH). 14182 if test "xSED" != xBASH; then 14183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14184 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14185 fi 14186 # Try to locate tool using the code snippet 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14188 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14189 if ${ac_cv_path_SED+:} false; then : 14190 $as_echo_n "(cached) " >&6 14191 else 14192 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14193 for ac_i in 1 2 3 4 5 6 7; do 14194 ac_script="$ac_script$as_nl$ac_script" 14195 done 14196 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14197 { ac_script=; unset ac_script;} 14198 if test -z "$SED"; then 14199 ac_path_SED_found=false 14200 # Loop through the user's path and test for each of PROGNAME-LIST 14201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14202 for as_dir in $PATH 14203 do 14204 IFS=$as_save_IFS 14205 test -z "$as_dir" && as_dir=. 14206 for ac_prog in sed gsed; do 14207 for ac_exec_ext in '' $ac_executable_extensions; do 14208 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14209 as_fn_executable_p "$ac_path_SED" || continue 14210 # Check for GNU ac_path_SED and select it if it is found. 14211 # Check for GNU $ac_path_SED 14212 case `"$ac_path_SED" --version 2>&1` in 14213 *GNU*) 14214 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14215 *) 14216 ac_count=0 14217 $as_echo_n 0123456789 >"conftest.in" 14218 while : 14219 do 14220 cat "conftest.in" "conftest.in" >"conftest.tmp" 14221 mv "conftest.tmp" "conftest.in" 14222 cp "conftest.in" "conftest.nl" 14223 $as_echo '' >> "conftest.nl" 14224 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14226 as_fn_arith $ac_count + 1 && ac_count=$as_val 14227 if test $ac_count -gt ${ac_path_SED_max-0}; then 14228 # Best one so far, save it but keep looking for a better one 14229 ac_cv_path_SED="$ac_path_SED" 14230 ac_path_SED_max=$ac_count 14231 fi 14232 # 10*(2^10) chars as input seems more than enough 14233 test $ac_count -gt 10 && break 14234 done 14235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14236 esac 14237 14238 $ac_path_SED_found && break 3 14239 done 14240 done 14241 done 14242 IFS=$as_save_IFS 14243 if test -z "$ac_cv_path_SED"; then 14244 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14245 fi 14246 else 14247 ac_cv_path_SED=$SED 14248 fi 14249 14250 fi 14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14252 $as_echo "$ac_cv_path_SED" >&6; } 14253 SED="$ac_cv_path_SED" 14254 rm -f conftest.sed 14255 14256 else 14257 # If it succeeded, then it was overridden by the user. We will use it 14258 # for the tool. 14259 14260 # First remove it from the list of overridden variables, so we can test 14261 # for unknown variables in the end. 14262 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14263 14264 # Check if we try to supply an empty value 14265 if test "x$SED" = x; then 14266 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14267 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14269 $as_echo_n "checking for SED... " >&6; } 14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14271 $as_echo "disabled" >&6; } 14272 else 14273 # Check if the provided tool contains a complete path. 14274 tool_specified="$SED" 14275 tool_basename="${tool_specified##*/}" 14276 if test "x$tool_basename" = "x$tool_specified"; then 14277 # A command without a complete path is provided, search $PATH. 14278 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14279 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14280 # Extract the first word of "$tool_basename", so it can be a program name with args. 14281 set dummy $tool_basename; ac_word=$2 14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14283 $as_echo_n "checking for $ac_word... " >&6; } 14284 if ${ac_cv_path_SED+:} false; then : 14285 $as_echo_n "(cached) " >&6 14286 else 14287 case $SED in 14288 [\\/]* | ?:[\\/]*) 14289 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14290 ;; 14291 *) 14292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14293 for as_dir in $PATH 14294 do 14295 IFS=$as_save_IFS 14296 test -z "$as_dir" && as_dir=. 14297 for ac_exec_ext in '' $ac_executable_extensions; do 14298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14299 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14301 break 2 14302 fi 14303 done 14304 done 14305 IFS=$as_save_IFS 14306 14307 ;; 14308 esac 14309 fi 14310 SED=$ac_cv_path_SED 14311 if test -n "$SED"; then 14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14313 $as_echo "$SED" >&6; } 14314 else 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14316 $as_echo "no" >&6; } 14317 fi 14318 14319 14320 if test "x$SED" = x; then 14321 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14322 fi 14323 else 14324 # Otherwise we believe it is a complete path. Use it as it is. 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14326 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14328 $as_echo_n "checking for SED... " >&6; } 14329 if test ! -x "$tool_specified"; then 14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14331 $as_echo "not found" >&6; } 14332 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14333 fi 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14335 $as_echo "$tool_specified" >&6; } 14336 fi 14337 fi 14338 fi 14339 14340 fi 14341 14342 14343 if test "x$SED" = x; then 14344 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14345 fi 14346 14347 14348 14349 # Always force rm. 14350 RM="$RM -f" 14351 14352 # pwd behaves differently on various platforms and some don't support the -L flag. 14353 # Always use the bash builtin pwd to get uniform behavior. 14354 THEPWDCMD=pwd 14355 14356 # These are not required on all platforms 14357 14358 14359 # Publish this variable in the help. 14360 14361 14362 if [ -z "${CYGPATH+x}" ]; then 14363 # The variable is not set by user, try to locate tool using the code snippet 14364 for ac_prog in cygpath 14365 do 14366 # Extract the first word of "$ac_prog", so it can be a program name with args. 14367 set dummy $ac_prog; ac_word=$2 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14369 $as_echo_n "checking for $ac_word... " >&6; } 14370 if ${ac_cv_path_CYGPATH+:} false; then : 14371 $as_echo_n "(cached) " >&6 14372 else 14373 case $CYGPATH in 14374 [\\/]* | ?:[\\/]*) 14375 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14376 ;; 14377 *) 14378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14379 for as_dir in $PATH 14380 do 14381 IFS=$as_save_IFS 14382 test -z "$as_dir" && as_dir=. 14383 for ac_exec_ext in '' $ac_executable_extensions; do 14384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14385 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14387 break 2 14388 fi 14389 done 14390 done 14391 IFS=$as_save_IFS 14392 14393 ;; 14394 esac 14395 fi 14396 CYGPATH=$ac_cv_path_CYGPATH 14397 if test -n "$CYGPATH"; then 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14399 $as_echo "$CYGPATH" >&6; } 14400 else 14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14402 $as_echo "no" >&6; } 14403 fi 14404 14405 14406 test -n "$CYGPATH" && break 14407 done 14408 14409 else 14410 # The variable is set, but is it from the command line or the environment? 14411 14412 # Try to remove the string !CYGPATH! from our list. 14413 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14414 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14415 # If it failed, the variable was not from the command line. Ignore it, 14416 # but warn the user (except for BASH, which is always set by the calling BASH). 14417 if test "xCYGPATH" != xBASH; then 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14419 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14420 fi 14421 # Try to locate tool using the code snippet 14422 for ac_prog in cygpath 14423 do 14424 # Extract the first word of "$ac_prog", so it can be a program name with args. 14425 set dummy $ac_prog; ac_word=$2 14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14427 $as_echo_n "checking for $ac_word... " >&6; } 14428 if ${ac_cv_path_CYGPATH+:} false; then : 14429 $as_echo_n "(cached) " >&6 14430 else 14431 case $CYGPATH in 14432 [\\/]* | ?:[\\/]*) 14433 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14434 ;; 14435 *) 14436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14437 for as_dir in $PATH 14438 do 14439 IFS=$as_save_IFS 14440 test -z "$as_dir" && as_dir=. 14441 for ac_exec_ext in '' $ac_executable_extensions; do 14442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14443 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14445 break 2 14446 fi 14447 done 14448 done 14449 IFS=$as_save_IFS 14450 14451 ;; 14452 esac 14453 fi 14454 CYGPATH=$ac_cv_path_CYGPATH 14455 if test -n "$CYGPATH"; then 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14457 $as_echo "$CYGPATH" >&6; } 14458 else 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14460 $as_echo "no" >&6; } 14461 fi 14462 14463 14464 test -n "$CYGPATH" && break 14465 done 14466 14467 else 14468 # If it succeeded, then it was overridden by the user. We will use it 14469 # for the tool. 14470 14471 # First remove it from the list of overridden variables, so we can test 14472 # for unknown variables in the end. 14473 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14474 14475 # Check if we try to supply an empty value 14476 if test "x$CYGPATH" = x; then 14477 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14478 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14480 $as_echo_n "checking for CYGPATH... " >&6; } 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14482 $as_echo "disabled" >&6; } 14483 else 14484 # Check if the provided tool contains a complete path. 14485 tool_specified="$CYGPATH" 14486 tool_basename="${tool_specified##*/}" 14487 if test "x$tool_basename" = "x$tool_specified"; then 14488 # A command without a complete path is provided, search $PATH. 14489 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14490 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14491 # Extract the first word of "$tool_basename", so it can be a program name with args. 14492 set dummy $tool_basename; ac_word=$2 14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14494 $as_echo_n "checking for $ac_word... " >&6; } 14495 if ${ac_cv_path_CYGPATH+:} false; then : 14496 $as_echo_n "(cached) " >&6 14497 else 14498 case $CYGPATH in 14499 [\\/]* | ?:[\\/]*) 14500 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14501 ;; 14502 *) 14503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14504 for as_dir in $PATH 14505 do 14506 IFS=$as_save_IFS 14507 test -z "$as_dir" && as_dir=. 14508 for ac_exec_ext in '' $ac_executable_extensions; do 14509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14510 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14512 break 2 14513 fi 14514 done 14515 done 14516 IFS=$as_save_IFS 14517 14518 ;; 14519 esac 14520 fi 14521 CYGPATH=$ac_cv_path_CYGPATH 14522 if test -n "$CYGPATH"; then 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14524 $as_echo "$CYGPATH" >&6; } 14525 else 14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14527 $as_echo "no" >&6; } 14528 fi 14529 14530 14531 if test "x$CYGPATH" = x; then 14532 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14533 fi 14534 else 14535 # Otherwise we believe it is a complete path. Use it as it is. 14536 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14537 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14539 $as_echo_n "checking for CYGPATH... " >&6; } 14540 if test ! -x "$tool_specified"; then 14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14542 $as_echo "not found" >&6; } 14543 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14544 fi 14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14546 $as_echo "$tool_specified" >&6; } 14547 fi 14548 fi 14549 fi 14550 14551 fi 14552 14553 14554 14555 14556 # Publish this variable in the help. 14557 14558 14559 if [ -z "${READLINK+x}" ]; then 14560 # The variable is not set by user, try to locate tool using the code snippet 14561 for ac_prog in greadlink readlink 14562 do 14563 # Extract the first word of "$ac_prog", so it can be a program name with args. 14564 set dummy $ac_prog; ac_word=$2 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14566 $as_echo_n "checking for $ac_word... " >&6; } 14567 if ${ac_cv_path_READLINK+:} false; then : 14568 $as_echo_n "(cached) " >&6 14569 else 14570 case $READLINK in 14571 [\\/]* | ?:[\\/]*) 14572 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14573 ;; 14574 *) 14575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14576 for as_dir in $PATH 14577 do 14578 IFS=$as_save_IFS 14579 test -z "$as_dir" && as_dir=. 14580 for ac_exec_ext in '' $ac_executable_extensions; do 14581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14582 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14584 break 2 14585 fi 14586 done 14587 done 14588 IFS=$as_save_IFS 14589 14590 ;; 14591 esac 14592 fi 14593 READLINK=$ac_cv_path_READLINK 14594 if test -n "$READLINK"; then 14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14596 $as_echo "$READLINK" >&6; } 14597 else 14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14599 $as_echo "no" >&6; } 14600 fi 14601 14602 14603 test -n "$READLINK" && break 14604 done 14605 14606 else 14607 # The variable is set, but is it from the command line or the environment? 14608 14609 # Try to remove the string !READLINK! from our list. 14610 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14611 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14612 # If it failed, the variable was not from the command line. Ignore it, 14613 # but warn the user (except for BASH, which is always set by the calling BASH). 14614 if test "xREADLINK" != xBASH; then 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14616 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14617 fi 14618 # Try to locate tool using the code snippet 14619 for ac_prog in greadlink readlink 14620 do 14621 # Extract the first word of "$ac_prog", so it can be a program name with args. 14622 set dummy $ac_prog; ac_word=$2 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14624 $as_echo_n "checking for $ac_word... " >&6; } 14625 if ${ac_cv_path_READLINK+:} false; then : 14626 $as_echo_n "(cached) " >&6 14627 else 14628 case $READLINK in 14629 [\\/]* | ?:[\\/]*) 14630 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14631 ;; 14632 *) 14633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14634 for as_dir in $PATH 14635 do 14636 IFS=$as_save_IFS 14637 test -z "$as_dir" && as_dir=. 14638 for ac_exec_ext in '' $ac_executable_extensions; do 14639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14640 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14642 break 2 14643 fi 14644 done 14645 done 14646 IFS=$as_save_IFS 14647 14648 ;; 14649 esac 14650 fi 14651 READLINK=$ac_cv_path_READLINK 14652 if test -n "$READLINK"; then 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14654 $as_echo "$READLINK" >&6; } 14655 else 14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14657 $as_echo "no" >&6; } 14658 fi 14659 14660 14661 test -n "$READLINK" && break 14662 done 14663 14664 else 14665 # If it succeeded, then it was overridden by the user. We will use it 14666 # for the tool. 14667 14668 # First remove it from the list of overridden variables, so we can test 14669 # for unknown variables in the end. 14670 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14671 14672 # Check if we try to supply an empty value 14673 if test "x$READLINK" = x; then 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14675 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14677 $as_echo_n "checking for READLINK... " >&6; } 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14679 $as_echo "disabled" >&6; } 14680 else 14681 # Check if the provided tool contains a complete path. 14682 tool_specified="$READLINK" 14683 tool_basename="${tool_specified##*/}" 14684 if test "x$tool_basename" = "x$tool_specified"; then 14685 # A command without a complete path is provided, search $PATH. 14686 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14687 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14688 # Extract the first word of "$tool_basename", so it can be a program name with args. 14689 set dummy $tool_basename; ac_word=$2 14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14691 $as_echo_n "checking for $ac_word... " >&6; } 14692 if ${ac_cv_path_READLINK+:} false; then : 14693 $as_echo_n "(cached) " >&6 14694 else 14695 case $READLINK in 14696 [\\/]* | ?:[\\/]*) 14697 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14698 ;; 14699 *) 14700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14701 for as_dir in $PATH 14702 do 14703 IFS=$as_save_IFS 14704 test -z "$as_dir" && as_dir=. 14705 for ac_exec_ext in '' $ac_executable_extensions; do 14706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14707 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14709 break 2 14710 fi 14711 done 14712 done 14713 IFS=$as_save_IFS 14714 14715 ;; 14716 esac 14717 fi 14718 READLINK=$ac_cv_path_READLINK 14719 if test -n "$READLINK"; then 14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14721 $as_echo "$READLINK" >&6; } 14722 else 14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14724 $as_echo "no" >&6; } 14725 fi 14726 14727 14728 if test "x$READLINK" = x; then 14729 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14730 fi 14731 else 14732 # Otherwise we believe it is a complete path. Use it as it is. 14733 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14734 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14736 $as_echo_n "checking for READLINK... " >&6; } 14737 if test ! -x "$tool_specified"; then 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14739 $as_echo "not found" >&6; } 14740 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14741 fi 14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14743 $as_echo "$tool_specified" >&6; } 14744 fi 14745 fi 14746 fi 14747 14748 fi 14749 14750 14751 14752 14753 # Publish this variable in the help. 14754 14755 14756 if [ -z "${DF+x}" ]; then 14757 # The variable is not set by user, try to locate tool using the code snippet 14758 for ac_prog in df 14759 do 14760 # Extract the first word of "$ac_prog", so it can be a program name with args. 14761 set dummy $ac_prog; ac_word=$2 14762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14763 $as_echo_n "checking for $ac_word... " >&6; } 14764 if ${ac_cv_path_DF+:} false; then : 14765 $as_echo_n "(cached) " >&6 14766 else 14767 case $DF in 14768 [\\/]* | ?:[\\/]*) 14769 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14770 ;; 14771 *) 14772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14773 for as_dir in $PATH 14774 do 14775 IFS=$as_save_IFS 14776 test -z "$as_dir" && as_dir=. 14777 for ac_exec_ext in '' $ac_executable_extensions; do 14778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14779 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14781 break 2 14782 fi 14783 done 14784 done 14785 IFS=$as_save_IFS 14786 14787 ;; 14788 esac 14789 fi 14790 DF=$ac_cv_path_DF 14791 if test -n "$DF"; then 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14793 $as_echo "$DF" >&6; } 14794 else 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14796 $as_echo "no" >&6; } 14797 fi 14798 14799 14800 test -n "$DF" && break 14801 done 14802 14803 else 14804 # The variable is set, but is it from the command line or the environment? 14805 14806 # Try to remove the string !DF! from our list. 14807 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14808 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14809 # If it failed, the variable was not from the command line. Ignore it, 14810 # but warn the user (except for BASH, which is always set by the calling BASH). 14811 if test "xDF" != xBASH; then 14812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14813 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14814 fi 14815 # Try to locate tool using the code snippet 14816 for ac_prog in df 14817 do 14818 # Extract the first word of "$ac_prog", so it can be a program name with args. 14819 set dummy $ac_prog; ac_word=$2 14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14821 $as_echo_n "checking for $ac_word... " >&6; } 14822 if ${ac_cv_path_DF+:} false; then : 14823 $as_echo_n "(cached) " >&6 14824 else 14825 case $DF in 14826 [\\/]* | ?:[\\/]*) 14827 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14828 ;; 14829 *) 14830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14831 for as_dir in $PATH 14832 do 14833 IFS=$as_save_IFS 14834 test -z "$as_dir" && as_dir=. 14835 for ac_exec_ext in '' $ac_executable_extensions; do 14836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14837 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14839 break 2 14840 fi 14841 done 14842 done 14843 IFS=$as_save_IFS 14844 14845 ;; 14846 esac 14847 fi 14848 DF=$ac_cv_path_DF 14849 if test -n "$DF"; then 14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14851 $as_echo "$DF" >&6; } 14852 else 14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14854 $as_echo "no" >&6; } 14855 fi 14856 14857 14858 test -n "$DF" && break 14859 done 14860 14861 else 14862 # If it succeeded, then it was overridden by the user. We will use it 14863 # for the tool. 14864 14865 # First remove it from the list of overridden variables, so we can test 14866 # for unknown variables in the end. 14867 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14868 14869 # Check if we try to supply an empty value 14870 if test "x$DF" = x; then 14871 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14872 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14874 $as_echo_n "checking for DF... " >&6; } 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14876 $as_echo "disabled" >&6; } 14877 else 14878 # Check if the provided tool contains a complete path. 14879 tool_specified="$DF" 14880 tool_basename="${tool_specified##*/}" 14881 if test "x$tool_basename" = "x$tool_specified"; then 14882 # A command without a complete path is provided, search $PATH. 14883 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14884 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14885 # Extract the first word of "$tool_basename", so it can be a program name with args. 14886 set dummy $tool_basename; ac_word=$2 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14888 $as_echo_n "checking for $ac_word... " >&6; } 14889 if ${ac_cv_path_DF+:} false; then : 14890 $as_echo_n "(cached) " >&6 14891 else 14892 case $DF in 14893 [\\/]* | ?:[\\/]*) 14894 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14895 ;; 14896 *) 14897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14898 for as_dir in $PATH 14899 do 14900 IFS=$as_save_IFS 14901 test -z "$as_dir" && as_dir=. 14902 for ac_exec_ext in '' $ac_executable_extensions; do 14903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14904 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14906 break 2 14907 fi 14908 done 14909 done 14910 IFS=$as_save_IFS 14911 14912 ;; 14913 esac 14914 fi 14915 DF=$ac_cv_path_DF 14916 if test -n "$DF"; then 14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14918 $as_echo "$DF" >&6; } 14919 else 14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14921 $as_echo "no" >&6; } 14922 fi 14923 14924 14925 if test "x$DF" = x; then 14926 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14927 fi 14928 else 14929 # Otherwise we believe it is a complete path. Use it as it is. 14930 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14931 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14933 $as_echo_n "checking for DF... " >&6; } 14934 if test ! -x "$tool_specified"; then 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14936 $as_echo "not found" >&6; } 14937 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14938 fi 14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14940 $as_echo "$tool_specified" >&6; } 14941 fi 14942 fi 14943 fi 14944 14945 fi 14946 14947 14948 14949 14950 # Publish this variable in the help. 14951 14952 14953 if [ -z "${CPIO+x}" ]; then 14954 # The variable is not set by user, try to locate tool using the code snippet 14955 for ac_prog in cpio bsdcpio 14956 do 14957 # Extract the first word of "$ac_prog", so it can be a program name with args. 14958 set dummy $ac_prog; ac_word=$2 14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14960 $as_echo_n "checking for $ac_word... " >&6; } 14961 if ${ac_cv_path_CPIO+:} false; then : 14962 $as_echo_n "(cached) " >&6 14963 else 14964 case $CPIO in 14965 [\\/]* | ?:[\\/]*) 14966 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14967 ;; 14968 *) 14969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14970 for as_dir in $PATH 14971 do 14972 IFS=$as_save_IFS 14973 test -z "$as_dir" && as_dir=. 14974 for ac_exec_ext in '' $ac_executable_extensions; do 14975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14976 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14978 break 2 14979 fi 14980 done 14981 done 14982 IFS=$as_save_IFS 14983 14984 ;; 14985 esac 14986 fi 14987 CPIO=$ac_cv_path_CPIO 14988 if test -n "$CPIO"; then 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14990 $as_echo "$CPIO" >&6; } 14991 else 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14993 $as_echo "no" >&6; } 14994 fi 14995 14996 14997 test -n "$CPIO" && break 14998 done 14999 15000 else 15001 # The variable is set, but is it from the command line or the environment? 15002 15003 # Try to remove the string !CPIO! from our list. 15004 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 15005 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15006 # If it failed, the variable was not from the command line. Ignore it, 15007 # but warn the user (except for BASH, which is always set by the calling BASH). 15008 if test "xCPIO" != xBASH; then 15009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 15010 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 15011 fi 15012 # Try to locate tool using the code snippet 15013 for ac_prog in cpio bsdcpio 15014 do 15015 # Extract the first word of "$ac_prog", so it can be a program name with args. 15016 set dummy $ac_prog; ac_word=$2 15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15018 $as_echo_n "checking for $ac_word... " >&6; } 15019 if ${ac_cv_path_CPIO+:} false; then : 15020 $as_echo_n "(cached) " >&6 15021 else 15022 case $CPIO in 15023 [\\/]* | ?:[\\/]*) 15024 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15025 ;; 15026 *) 15027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15028 for as_dir in $PATH 15029 do 15030 IFS=$as_save_IFS 15031 test -z "$as_dir" && as_dir=. 15032 for ac_exec_ext in '' $ac_executable_extensions; do 15033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15034 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15036 break 2 15037 fi 15038 done 15039 done 15040 IFS=$as_save_IFS 15041 15042 ;; 15043 esac 15044 fi 15045 CPIO=$ac_cv_path_CPIO 15046 if test -n "$CPIO"; then 15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15048 $as_echo "$CPIO" >&6; } 15049 else 15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15051 $as_echo "no" >&6; } 15052 fi 15053 15054 15055 test -n "$CPIO" && break 15056 done 15057 15058 else 15059 # If it succeeded, then it was overridden by the user. We will use it 15060 # for the tool. 15061 15062 # First remove it from the list of overridden variables, so we can test 15063 # for unknown variables in the end. 15064 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15065 15066 # Check if we try to supply an empty value 15067 if test "x$CPIO" = x; then 15068 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15069 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15071 $as_echo_n "checking for CPIO... " >&6; } 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15073 $as_echo "disabled" >&6; } 15074 else 15075 # Check if the provided tool contains a complete path. 15076 tool_specified="$CPIO" 15077 tool_basename="${tool_specified##*/}" 15078 if test "x$tool_basename" = "x$tool_specified"; then 15079 # A command without a complete path is provided, search $PATH. 15080 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15081 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15082 # Extract the first word of "$tool_basename", so it can be a program name with args. 15083 set dummy $tool_basename; ac_word=$2 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15085 $as_echo_n "checking for $ac_word... " >&6; } 15086 if ${ac_cv_path_CPIO+:} false; then : 15087 $as_echo_n "(cached) " >&6 15088 else 15089 case $CPIO in 15090 [\\/]* | ?:[\\/]*) 15091 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15092 ;; 15093 *) 15094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15095 for as_dir in $PATH 15096 do 15097 IFS=$as_save_IFS 15098 test -z "$as_dir" && as_dir=. 15099 for ac_exec_ext in '' $ac_executable_extensions; do 15100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15101 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15103 break 2 15104 fi 15105 done 15106 done 15107 IFS=$as_save_IFS 15108 15109 ;; 15110 esac 15111 fi 15112 CPIO=$ac_cv_path_CPIO 15113 if test -n "$CPIO"; then 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15115 $as_echo "$CPIO" >&6; } 15116 else 15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15118 $as_echo "no" >&6; } 15119 fi 15120 15121 15122 if test "x$CPIO" = x; then 15123 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15124 fi 15125 else 15126 # Otherwise we believe it is a complete path. Use it as it is. 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15128 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15130 $as_echo_n "checking for CPIO... " >&6; } 15131 if test ! -x "$tool_specified"; then 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15133 $as_echo "not found" >&6; } 15134 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15135 fi 15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15137 $as_echo "$tool_specified" >&6; } 15138 fi 15139 fi 15140 fi 15141 15142 fi 15143 15144 15145 15146 15147 # Publish this variable in the help. 15148 15149 15150 if [ -z "${NICE+x}" ]; then 15151 # The variable is not set by user, try to locate tool using the code snippet 15152 for ac_prog in nice 15153 do 15154 # Extract the first word of "$ac_prog", so it can be a program name with args. 15155 set dummy $ac_prog; ac_word=$2 15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15157 $as_echo_n "checking for $ac_word... " >&6; } 15158 if ${ac_cv_path_NICE+:} false; then : 15159 $as_echo_n "(cached) " >&6 15160 else 15161 case $NICE in 15162 [\\/]* | ?:[\\/]*) 15163 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15164 ;; 15165 *) 15166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15167 for as_dir in $PATH 15168 do 15169 IFS=$as_save_IFS 15170 test -z "$as_dir" && as_dir=. 15171 for ac_exec_ext in '' $ac_executable_extensions; do 15172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15173 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15175 break 2 15176 fi 15177 done 15178 done 15179 IFS=$as_save_IFS 15180 15181 ;; 15182 esac 15183 fi 15184 NICE=$ac_cv_path_NICE 15185 if test -n "$NICE"; then 15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15187 $as_echo "$NICE" >&6; } 15188 else 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15190 $as_echo "no" >&6; } 15191 fi 15192 15193 15194 test -n "$NICE" && break 15195 done 15196 15197 else 15198 # The variable is set, but is it from the command line or the environment? 15199 15200 # Try to remove the string !NICE! from our list. 15201 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15202 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15203 # If it failed, the variable was not from the command line. Ignore it, 15204 # but warn the user (except for BASH, which is always set by the calling BASH). 15205 if test "xNICE" != xBASH; then 15206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15207 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15208 fi 15209 # Try to locate tool using the code snippet 15210 for ac_prog in nice 15211 do 15212 # Extract the first word of "$ac_prog", so it can be a program name with args. 15213 set dummy $ac_prog; ac_word=$2 15214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15215 $as_echo_n "checking for $ac_word... " >&6; } 15216 if ${ac_cv_path_NICE+:} false; then : 15217 $as_echo_n "(cached) " >&6 15218 else 15219 case $NICE in 15220 [\\/]* | ?:[\\/]*) 15221 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15222 ;; 15223 *) 15224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15225 for as_dir in $PATH 15226 do 15227 IFS=$as_save_IFS 15228 test -z "$as_dir" && as_dir=. 15229 for ac_exec_ext in '' $ac_executable_extensions; do 15230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15231 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15233 break 2 15234 fi 15235 done 15236 done 15237 IFS=$as_save_IFS 15238 15239 ;; 15240 esac 15241 fi 15242 NICE=$ac_cv_path_NICE 15243 if test -n "$NICE"; then 15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15245 $as_echo "$NICE" >&6; } 15246 else 15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15248 $as_echo "no" >&6; } 15249 fi 15250 15251 15252 test -n "$NICE" && break 15253 done 15254 15255 else 15256 # If it succeeded, then it was overridden by the user. We will use it 15257 # for the tool. 15258 15259 # First remove it from the list of overridden variables, so we can test 15260 # for unknown variables in the end. 15261 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15262 15263 # Check if we try to supply an empty value 15264 if test "x$NICE" = x; then 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15266 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15268 $as_echo_n "checking for NICE... " >&6; } 15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15270 $as_echo "disabled" >&6; } 15271 else 15272 # Check if the provided tool contains a complete path. 15273 tool_specified="$NICE" 15274 tool_basename="${tool_specified##*/}" 15275 if test "x$tool_basename" = "x$tool_specified"; then 15276 # A command without a complete path is provided, search $PATH. 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15278 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15279 # Extract the first word of "$tool_basename", so it can be a program name with args. 15280 set dummy $tool_basename; ac_word=$2 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15282 $as_echo_n "checking for $ac_word... " >&6; } 15283 if ${ac_cv_path_NICE+:} false; then : 15284 $as_echo_n "(cached) " >&6 15285 else 15286 case $NICE in 15287 [\\/]* | ?:[\\/]*) 15288 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15289 ;; 15290 *) 15291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15292 for as_dir in $PATH 15293 do 15294 IFS=$as_save_IFS 15295 test -z "$as_dir" && as_dir=. 15296 for ac_exec_ext in '' $ac_executable_extensions; do 15297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15298 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15300 break 2 15301 fi 15302 done 15303 done 15304 IFS=$as_save_IFS 15305 15306 ;; 15307 esac 15308 fi 15309 NICE=$ac_cv_path_NICE 15310 if test -n "$NICE"; then 15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15312 $as_echo "$NICE" >&6; } 15313 else 15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15315 $as_echo "no" >&6; } 15316 fi 15317 15318 15319 if test "x$NICE" = x; then 15320 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15321 fi 15322 else 15323 # Otherwise we believe it is a complete path. Use it as it is. 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15325 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15327 $as_echo_n "checking for NICE... " >&6; } 15328 if test ! -x "$tool_specified"; then 15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15330 $as_echo "not found" >&6; } 15331 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15332 fi 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15334 $as_echo "$tool_specified" >&6; } 15335 fi 15336 fi 15337 fi 15338 15339 fi 15340 15341 15342 15343 15344 # Now we can determine OpenJDK build and target platforms. This is required to 15345 # have early on. 15346 # Make sure we can run config.sub. 15347 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15348 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15349 15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15351 $as_echo_n "checking build system type... " >&6; } 15352 if ${ac_cv_build+:} false; then : 15353 $as_echo_n "(cached) " >&6 15354 else 15355 ac_build_alias=$build_alias 15356 test "x$ac_build_alias" = x && 15357 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15358 test "x$ac_build_alias" = x && 15359 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15360 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15361 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15362 15363 fi 15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15365 $as_echo "$ac_cv_build" >&6; } 15366 case $ac_cv_build in 15367 *-*-*) ;; 15368 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15369 esac 15370 build=$ac_cv_build 15371 ac_save_IFS=$IFS; IFS='-' 15372 set x $ac_cv_build 15373 shift 15374 build_cpu=$1 15375 build_vendor=$2 15376 shift; shift 15377 # Remember, the first character of IFS is used to create $*, 15378 # except with old shells: 15379 build_os=$* 15380 IFS=$ac_save_IFS 15381 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15382 15383 15384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15385 $as_echo_n "checking host system type... " >&6; } 15386 if ${ac_cv_host+:} false; then : 15387 $as_echo_n "(cached) " >&6 15388 else 15389 if test "x$host_alias" = x; then 15390 ac_cv_host=$ac_cv_build 15391 else 15392 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15393 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15394 fi 15395 15396 fi 15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15398 $as_echo "$ac_cv_host" >&6; } 15399 case $ac_cv_host in 15400 *-*-*) ;; 15401 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15402 esac 15403 host=$ac_cv_host 15404 ac_save_IFS=$IFS; IFS='-' 15405 set x $ac_cv_host 15406 shift 15407 host_cpu=$1 15408 host_vendor=$2 15409 shift; shift 15410 # Remember, the first character of IFS is used to create $*, 15411 # except with old shells: 15412 host_os=$* 15413 IFS=$ac_save_IFS 15414 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15415 15416 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15418 $as_echo_n "checking target system type... " >&6; } 15419 if ${ac_cv_target+:} false; then : 15420 $as_echo_n "(cached) " >&6 15421 else 15422 if test "x$target_alias" = x; then 15423 ac_cv_target=$ac_cv_host 15424 else 15425 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15427 fi 15428 15429 fi 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15431 $as_echo "$ac_cv_target" >&6; } 15432 case $ac_cv_target in 15433 *-*-*) ;; 15434 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15435 esac 15436 target=$ac_cv_target 15437 ac_save_IFS=$IFS; IFS='-' 15438 set x $ac_cv_target 15439 shift 15440 target_cpu=$1 15441 target_vendor=$2 15442 shift; shift 15443 # Remember, the first character of IFS is used to create $*, 15444 # except with old shells: 15445 target_os=$* 15446 IFS=$ac_save_IFS 15447 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15448 15449 15450 # The aliases save the names the user supplied, while $host etc. 15451 # will get canonicalized. 15452 test -n "$target_alias" && 15453 test "$program_prefix$program_suffix$program_transform_name" = \ 15454 NONENONEs,x,x, && 15455 program_prefix=${target_alias}- 15456 15457 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15458 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15459 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15460 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15461 # to use the configure naming style. 15462 15463 15464 15465 15466 15467 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15468 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15469 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15470 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15471 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15472 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15473 15474 15475 15476 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15477 15478 case "$build_os" in 15479 *linux*) 15480 VAR_OS=linux 15481 VAR_OS_TYPE=unix 15482 ;; 15483 *solaris*) 15484 VAR_OS=solaris 15485 VAR_OS_TYPE=unix 15486 ;; 15487 *darwin*) 15488 VAR_OS=macosx 15489 VAR_OS_TYPE=unix 15490 ;; 15491 *bsd*) 15492 VAR_OS=bsd 15493 VAR_OS_TYPE=unix 15494 ;; 15495 *cygwin*) 15496 VAR_OS=windows 15497 VAR_OS_ENV=windows.cygwin 15498 ;; 15499 *mingw*) 15500 VAR_OS=windows 15501 VAR_OS_ENV=windows.msys 15502 ;; 15503 *aix*) 15504 VAR_OS=aix 15505 VAR_OS_TYPE=unix 15506 ;; 15507 *) 15508 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15509 ;; 15510 esac 15511 15512 15513 # First argument is the cpu name from the trip/quad 15514 case "$build_cpu" in 15515 x86_64) 15516 VAR_CPU=x86_64 15517 VAR_CPU_ARCH=x86 15518 VAR_CPU_BITS=64 15519 VAR_CPU_ENDIAN=little 15520 ;; 15521 i?86) 15522 VAR_CPU=x86 15523 VAR_CPU_ARCH=x86 15524 VAR_CPU_BITS=32 15525 VAR_CPU_ENDIAN=little 15526 ;; 15527 arm*) 15528 VAR_CPU=arm 15529 VAR_CPU_ARCH=arm 15530 VAR_CPU_BITS=32 15531 VAR_CPU_ENDIAN=little 15532 ;; 15533 aarch64) 15534 VAR_CPU=aarch64 15535 VAR_CPU_ARCH=aarch64 15536 VAR_CPU_BITS=64 15537 VAR_CPU_ENDIAN=little 15538 ;; 15539 powerpc) 15540 VAR_CPU=ppc 15541 VAR_CPU_ARCH=ppc 15542 VAR_CPU_BITS=32 15543 VAR_CPU_ENDIAN=big 15544 ;; 15545 powerpc64) 15546 VAR_CPU=ppc64 15547 VAR_CPU_ARCH=ppc 15548 VAR_CPU_BITS=64 15549 VAR_CPU_ENDIAN=big 15550 ;; 15551 powerpc64le) 15552 VAR_CPU=ppc64le 15553 VAR_CPU_ARCH=ppc 15554 VAR_CPU_BITS=64 15555 VAR_CPU_ENDIAN=little 15556 ;; 15557 s390) 15558 VAR_CPU=s390 15559 VAR_CPU_ARCH=s390 15560 VAR_CPU_BITS=32 15561 VAR_CPU_ENDIAN=big 15562 ;; 15563 s390x) 15564 VAR_CPU=s390x 15565 VAR_CPU_ARCH=s390 15566 VAR_CPU_BITS=64 15567 VAR_CPU_ENDIAN=big 15568 ;; 15569 sparc) 15570 VAR_CPU=sparc 15571 VAR_CPU_ARCH=sparc 15572 VAR_CPU_BITS=32 15573 VAR_CPU_ENDIAN=big 15574 ;; 15575 sparcv9|sparc64) 15576 VAR_CPU=sparcv9 15577 VAR_CPU_ARCH=sparc 15578 VAR_CPU_BITS=64 15579 VAR_CPU_ENDIAN=big 15580 ;; 15581 *) 15582 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15583 ;; 15584 esac 15585 15586 # ..and setup our own variables. (Do this explicitely to facilitate searching) 15587 OPENJDK_BUILD_OS="$VAR_OS" 15588 if test "x$VAR_OS_TYPE" != x; then 15589 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15590 else 15591 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15592 fi 15593 if test "x$VAR_OS_ENV" != x; then 15594 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15595 else 15596 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15597 fi 15598 OPENJDK_BUILD_CPU="$VAR_CPU" 15599 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15600 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15601 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15602 15603 15604 15605 15606 15607 15608 15609 15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15611 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15613 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15614 15615 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15616 15617 case "$host_os" in 15618 *linux*) 15619 VAR_OS=linux 15620 VAR_OS_TYPE=unix 15621 ;; 15622 *solaris*) 15623 VAR_OS=solaris 15624 VAR_OS_TYPE=unix 15625 ;; 15626 *darwin*) 15627 VAR_OS=macosx 15628 VAR_OS_TYPE=unix 15629 ;; 15630 *bsd*) 15631 VAR_OS=bsd 15632 VAR_OS_TYPE=unix 15633 ;; 15634 *cygwin*) 15635 VAR_OS=windows 15636 VAR_OS_ENV=windows.cygwin 15637 ;; 15638 *mingw*) 15639 VAR_OS=windows 15640 VAR_OS_ENV=windows.msys 15641 ;; 15642 *aix*) 15643 VAR_OS=aix 15644 VAR_OS_TYPE=unix 15645 ;; 15646 *) 15647 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15648 ;; 15649 esac 15650 15651 15652 # First argument is the cpu name from the trip/quad 15653 case "$host_cpu" in 15654 x86_64) 15655 VAR_CPU=x86_64 15656 VAR_CPU_ARCH=x86 15657 VAR_CPU_BITS=64 15658 VAR_CPU_ENDIAN=little 15659 ;; 15660 i?86) 15661 VAR_CPU=x86 15662 VAR_CPU_ARCH=x86 15663 VAR_CPU_BITS=32 15664 VAR_CPU_ENDIAN=little 15665 ;; 15666 arm*) 15667 VAR_CPU=arm 15668 VAR_CPU_ARCH=arm 15669 VAR_CPU_BITS=32 15670 VAR_CPU_ENDIAN=little 15671 ;; 15672 aarch64) 15673 VAR_CPU=aarch64 15674 VAR_CPU_ARCH=aarch64 15675 VAR_CPU_BITS=64 15676 VAR_CPU_ENDIAN=little 15677 ;; 15678 powerpc) 15679 VAR_CPU=ppc 15680 VAR_CPU_ARCH=ppc 15681 VAR_CPU_BITS=32 15682 VAR_CPU_ENDIAN=big 15683 ;; 15684 powerpc64) 15685 VAR_CPU=ppc64 15686 VAR_CPU_ARCH=ppc 15687 VAR_CPU_BITS=64 15688 VAR_CPU_ENDIAN=big 15689 ;; 15690 powerpc64le) 15691 VAR_CPU=ppc64le 15692 VAR_CPU_ARCH=ppc 15693 VAR_CPU_BITS=64 15694 VAR_CPU_ENDIAN=little 15695 ;; 15696 s390) 15697 VAR_CPU=s390 15698 VAR_CPU_ARCH=s390 15699 VAR_CPU_BITS=32 15700 VAR_CPU_ENDIAN=big 15701 ;; 15702 s390x) 15703 VAR_CPU=s390x 15704 VAR_CPU_ARCH=s390 15705 VAR_CPU_BITS=64 15706 VAR_CPU_ENDIAN=big 15707 ;; 15708 sparc) 15709 VAR_CPU=sparc 15710 VAR_CPU_ARCH=sparc 15711 VAR_CPU_BITS=32 15712 VAR_CPU_ENDIAN=big 15713 ;; 15714 sparcv9|sparc64) 15715 VAR_CPU=sparcv9 15716 VAR_CPU_ARCH=sparc 15717 VAR_CPU_BITS=64 15718 VAR_CPU_ENDIAN=big 15719 ;; 15720 *) 15721 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 15722 ;; 15723 esac 15724 15725 # ... and setup our own variables. (Do this explicitely to facilitate searching) 15726 OPENJDK_TARGET_OS="$VAR_OS" 15727 if test "x$VAR_OS_TYPE" != x; then 15728 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 15729 else 15730 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 15731 fi 15732 if test "x$VAR_OS_ENV" != x; then 15733 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 15734 else 15735 OPENJDK_TARGET_OS_ENV="$VAR_OS" 15736 fi 15737 OPENJDK_TARGET_CPU="$VAR_CPU" 15738 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 15739 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 15740 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15741 15742 15743 15744 15745 15746 15747 15748 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 15750 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 15752 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 15753 15754 15755 15756 # Check whether --with-target-bits was given. 15757 if test "${with_target_bits+set}" = set; then : 15758 withval=$with_target_bits; 15759 fi 15760 15761 15762 # We have three types of compiles: 15763 # native == normal compilation, target system == build system 15764 # cross == traditional cross compilation, target system != build system; special toolchain needed 15765 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 15766 # 15767 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 15768 # We're doing a proper cross-compilation 15769 COMPILE_TYPE="cross" 15770 else 15771 COMPILE_TYPE="native" 15772 fi 15773 15774 if test "x$with_target_bits" != x; then 15775 if test "x$COMPILE_TYPE" = "xcross"; then 15776 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 15777 fi 15778 15779 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15780 # A reduced build is requested 15781 COMPILE_TYPE="reduced" 15782 OPENJDK_TARGET_CPU_BITS=32 15783 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 15784 OPENJDK_TARGET_CPU=x86 15785 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 15786 OPENJDK_TARGET_CPU=sparc 15787 else 15788 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 15789 fi 15790 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 15791 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 15792 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 15793 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 15794 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 15795 else 15796 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 15797 fi 15798 fi 15799 15800 15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 15802 $as_echo_n "checking compilation type... " >&6; } 15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 15804 $as_echo "$COMPILE_TYPE" >&6; } 15805 15806 15807 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 15808 REQUIRED_OS_NAME=SunOS 15809 REQUIRED_OS_VERSION=5.10 15810 fi 15811 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 15812 REQUIRED_OS_NAME=Linux 15813 REQUIRED_OS_VERSION=2.6 15814 fi 15815 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 15816 REQUIRED_OS_NAME=Windows 15817 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 15818 REQUIRED_OS_VERSION=5.2 15819 else 15820 REQUIRED_OS_VERSION=5.1 15821 fi 15822 fi 15823 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 15824 REQUIRED_OS_NAME=Darwin 15825 REQUIRED_OS_VERSION=11.2 15826 fi 15827 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 15828 REQUIRED_OS_NAME=AIX 15829 REQUIRED_OS_VERSION=7.1 15830 fi 15831 15832 15833 15834 15835 15836 15837 # Also store the legacy naming of the cpu. 15838 # Ie i586 and amd64 instead of x86 and x86_64 15839 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 15840 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15841 OPENJDK_TARGET_CPU_LEGACY="i586" 15842 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15843 # On all platforms except MacOSX replace x86_64 with amd64. 15844 OPENJDK_TARGET_CPU_LEGACY="amd64" 15845 fi 15846 15847 15848 # And the second legacy naming of the cpu. 15849 # Ie i386 and amd64 instead of x86 and x86_64. 15850 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 15851 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15852 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 15853 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15854 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 15855 fi 15856 15857 15858 # This is the name of the cpu (but using i386 and amd64 instead of 15859 # x86 and x86_64, respectively), preceeded by a /, to be used when 15860 # locating libraries. On macosx, it's empty, though. 15861 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 15862 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15863 OPENJDK_TARGET_CPU_LIBDIR="" 15864 fi 15865 15866 15867 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 15868 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 15869 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 15870 OPENJDK_TARGET_CPU_ISADIR="" 15871 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15872 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15873 OPENJDK_TARGET_CPU_ISADIR="/amd64" 15874 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15875 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 15876 fi 15877 fi 15878 15879 15880 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 15881 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 15882 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 15883 # On linux only, we replace x86 with i386. 15884 OPENJDK_TARGET_CPU_OSARCH="i386" 15885 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15886 # On all platforms except macosx, we replace x86_64 with amd64. 15887 OPENJDK_TARGET_CPU_OSARCH="amd64" 15888 fi 15889 15890 15891 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 15892 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15893 OPENJDK_TARGET_CPU_JLI="i386" 15894 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15895 # On all platforms except macosx, we replace x86_64 with amd64. 15896 OPENJDK_TARGET_CPU_JLI="amd64" 15897 fi 15898 # Now setup the -D flags for building libjli. 15899 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 15900 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15901 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 15902 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 15903 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 15904 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 15905 fi 15906 fi 15907 15908 15909 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15910 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 15911 else 15912 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 15913 fi 15914 15915 15916 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 15917 # Macosx is osx and x86_64 is x64 15918 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15919 OPENJDK_TARGET_OS_BUNDLE="osx" 15920 else 15921 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 15922 fi 15923 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15924 OPENJDK_TARGET_CPU_BUNDLE="x64" 15925 else 15926 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 15927 fi 15928 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 15929 15930 15931 15932 15933 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15934 A_LP64="LP64:=" 15935 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 15936 # unpack200.exe 15937 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 15938 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 15939 fi 15940 fi 15941 LP64=$A_LP64 15942 15943 15944 if test "x$COMPILE_TYPE" = "xcross"; then 15945 # FIXME: ... or should this include reduced builds..? 15946 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 15947 else 15948 DEFINE_CROSS_COMPILE_ARCH="" 15949 fi 15950 15951 15952 # Convert openjdk platform names to hotspot names 15953 15954 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 15955 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15956 HOTSPOT_TARGET_OS=bsd 15957 fi 15958 15959 15960 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 15961 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 15962 HOTSPOT_TARGET_OS_TYPE=posix 15963 fi 15964 15965 15966 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 15967 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15968 HOTSPOT_TARGET_CPU=x86_32 15969 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15970 HOTSPOT_TARGET_CPU=sparc 15971 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 15972 HOTSPOT_TARGET_CPU=ppc_64 15973 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 15974 HOTSPOT_TARGET_CPU=ppc_64 15975 fi 15976 15977 15978 # This is identical with OPENJDK_*, but define anyway for consistency. 15979 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 15980 15981 15982 # Setup HOTSPOT_TARGET_CPU_DEFINE 15983 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15984 HOTSPOT_TARGET_CPU_DEFINE=IA32 15985 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15986 HOTSPOT_TARGET_CPU_DEFINE=AMD64 15987 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15988 HOTSPOT_TARGET_CPU_DEFINE=SPARC 15989 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 15990 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 15991 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 15992 HOTSPOT_TARGET_CPU_DEFINE=PPC64 15993 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 15994 HOTSPOT_TARGET_CPU_DEFINE=PPC64 15995 15996 # The cpu defines below are for zero, we don't support them directly. 15997 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 15998 HOTSPOT_TARGET_CPU_DEFINE=SPARC 15999 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 16000 HOTSPOT_TARGET_CPU_DEFINE=PPC32 16001 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 16002 HOTSPOT_TARGET_CPU_DEFINE=S390 16003 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 16004 HOTSPOT_TARGET_CPU_DEFINE=S390 16005 elif test "x$OPENJDK_TARGET_CPU" != x; then 16006 HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z) 16007 fi 16008 16009 16010 16011 16012 # Also store the legacy naming of the cpu. 16013 # Ie i586 and amd64 instead of x86 and x86_64 16014 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 16015 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16016 OPENJDK_BUILD_CPU_LEGACY="i586" 16017 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16018 # On all platforms except MacOSX replace x86_64 with amd64. 16019 OPENJDK_BUILD_CPU_LEGACY="amd64" 16020 fi 16021 16022 16023 # And the second legacy naming of the cpu. 16024 # Ie i386 and amd64 instead of x86 and x86_64. 16025 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 16026 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16027 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 16028 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16029 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 16030 fi 16031 16032 16033 # This is the name of the cpu (but using i386 and amd64 instead of 16034 # x86 and x86_64, respectively), preceeded by a /, to be used when 16035 # locating libraries. On macosx, it's empty, though. 16036 OPENJDK_BUILD_CPU_LIBDIR="/$OPENJDK_BUILD_CPU_LEGACY_LIB" 16037 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16038 OPENJDK_BUILD_CPU_LIBDIR="" 16039 fi 16040 16041 16042 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16043 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16044 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 16045 OPENJDK_BUILD_CPU_ISADIR="" 16046 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16047 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16048 OPENJDK_BUILD_CPU_ISADIR="/amd64" 16049 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16050 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 16051 fi 16052 fi 16053 16054 16055 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 16056 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 16057 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 16058 # On linux only, we replace x86 with i386. 16059 OPENJDK_BUILD_CPU_OSARCH="i386" 16060 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16061 # On all platforms except macosx, we replace x86_64 with amd64. 16062 OPENJDK_BUILD_CPU_OSARCH="amd64" 16063 fi 16064 16065 16066 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16067 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16068 OPENJDK_BUILD_CPU_JLI="i386" 16069 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16070 # On all platforms except macosx, we replace x86_64 with amd64. 16071 OPENJDK_BUILD_CPU_JLI="amd64" 16072 fi 16073 # Now setup the -D flags for building libjli. 16074 OPENJDK_BUILD_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_BUILD_CPU_JLI\"'" 16075 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16076 if test "x$OPENJDK_BUILD_CPU_ARCH" = xsparc; then 16077 OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 16078 elif test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 16079 OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 16080 fi 16081 fi 16082 16083 16084 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16085 OPENJDK_BUILD_OS_EXPORT_DIR=macosx 16086 else 16087 OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE} 16088 fi 16089 16090 16091 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16092 # Macosx is osx and x86_64 is x64 16093 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16094 OPENJDK_BUILD_OS_BUNDLE="osx" 16095 else 16096 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16097 fi 16098 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16099 OPENJDK_BUILD_CPU_BUNDLE="x64" 16100 else 16101 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16102 fi 16103 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16104 16105 16106 16107 16108 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16109 A_LP64="LP64:=" 16110 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16111 # unpack200.exe 16112 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16113 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16114 fi 16115 fi 16116 LP64=$A_LP64 16117 16118 16119 if test "x$COMPILE_TYPE" = "xcross"; then 16120 # FIXME: ... or should this include reduced builds..? 16121 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 16122 else 16123 DEFINE_CROSS_COMPILE_ARCH="" 16124 fi 16125 16126 16127 # Convert openjdk platform names to hotspot names 16128 16129 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16130 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16131 HOTSPOT_BUILD_OS=bsd 16132 fi 16133 16134 16135 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16136 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16137 HOTSPOT_BUILD_OS_TYPE=posix 16138 fi 16139 16140 16141 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16142 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16143 HOTSPOT_BUILD_CPU=x86_32 16144 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16145 HOTSPOT_BUILD_CPU=sparc 16146 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16147 HOTSPOT_BUILD_CPU=ppc_64 16148 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16149 HOTSPOT_BUILD_CPU=ppc_64 16150 fi 16151 16152 16153 # This is identical with OPENJDK_*, but define anyway for consistency. 16154 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16155 16156 16157 # Setup HOTSPOT_BUILD_CPU_DEFINE 16158 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16159 HOTSPOT_BUILD_CPU_DEFINE=IA32 16160 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16161 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16162 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16163 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16164 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16165 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16166 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16167 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16168 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16169 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16170 16171 # The cpu defines below are for zero, we don't support them directly. 16172 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16173 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16174 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16175 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16176 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16177 HOTSPOT_BUILD_CPU_DEFINE=S390 16178 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16179 HOTSPOT_BUILD_CPU_DEFINE=S390 16180 elif test "x$OPENJDK_BUILD_CPU" != x; then 16181 HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z) 16182 fi 16183 16184 16185 16186 16187 # ZERO_ARCHDEF is used to enable architecture-specific code. 16188 # This is used in legacy hotspot build. 16189 ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE" 16190 16191 16192 16193 16194 16195 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16196 16197 # Save the current directory this script was started from 16198 CURDIR="$PWD" 16199 16200 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16201 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16202 # was not available at that time. 16203 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16204 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16205 ORIGINAL_PATH="$REWRITTEN_PATH" 16206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16207 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16208 fi 16209 16210 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16211 PATH_SEP=";" 16212 16213 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16214 if test $SRC_ROOT_LENGTH -gt 100; then 16215 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16216 fi 16217 16218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16220 $as_echo_n "checking cygwin release... " >&6; } 16221 CYGWIN_VERSION=`$UNAME -r` 16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16223 $as_echo "$CYGWIN_VERSION" >&6; } 16224 WINDOWS_ENV_VENDOR='cygwin' 16225 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16226 16227 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16228 if test "x$CYGWIN_VERSION_OLD" != x; then 16229 { $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 16230 $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;} 16231 as_fn_error $? "Cannot continue" "$LINENO" 5 16232 fi 16233 if test "x$CYGPATH" = x; then 16234 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16235 fi 16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16237 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16238 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16239 cygwin_winpath_root=`cd / ; cmd /c cd | $GREP ".*"` 16240 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16241 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16243 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16244 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16245 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16246 if test "x$test_cygdrive_prefix" = x; then 16247 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16248 fi 16249 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16251 $as_echo_n "checking msys release... " >&6; } 16252 MSYS_VERSION=`$UNAME -r` 16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16254 $as_echo "$MSYS_VERSION" >&6; } 16255 16256 WINDOWS_ENV_VENDOR='msys' 16257 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16258 16259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16260 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16261 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16262 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16263 16264 windows_path="$MSYS_ROOT_PATH" 16265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16266 unix_path=`$CYGPATH -u "$windows_path"` 16267 MSYS_ROOT_PATH="$unix_path" 16268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16269 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16270 MSYS_ROOT_PATH="$unix_path" 16271 fi 16272 16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16274 $as_echo "$MSYS_ROOT_PATH" >&6; } 16275 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16276 else 16277 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 16278 fi 16279 16280 # Test if windows or unix (cygwin/msys) find is first in path. 16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16282 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16283 FIND_BINARY_OUTPUT=`find --version 2>&1` 16284 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16286 $as_echo "unix style" >&6; } 16287 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16289 $as_echo "Windows" >&6; } 16290 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16291 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16292 { $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 16293 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16294 as_fn_error $? "Cannot continue" "$LINENO" 5 16295 else 16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16297 $as_echo "unknown" >&6; } 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16299 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16300 fi 16301 16302 else 16303 PATH_SEP=":" 16304 fi 16305 16306 16307 # We get the top-level directory from the supporting wrappers. 16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16309 $as_echo_n "checking for top-level directory... " >&6; } 16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16311 $as_echo "$TOPDIR" >&6; } 16312 16313 16314 # Save the original version of TOPDIR for string comparisons 16315 ORIGINAL_TOPDIR="$TOPDIR" 16316 16317 16318 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16319 16320 # Only process if variable expands to non-empty 16321 16322 if test "x$CURDIR" != x; then 16323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16324 16325 # Input might be given as Windows format, start by converting to 16326 # unix format. 16327 path="$CURDIR" 16328 new_path=`$CYGPATH -u "$path"` 16329 16330 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16331 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16332 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16333 # "foo.exe" is OK but "foo" is an error. 16334 # 16335 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16336 # It is also a way to make sure we got the proper file name for the real test later on. 16337 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16338 if test "x$test_shortpath" = x; then 16339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16340 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16341 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16342 fi 16343 16344 # Call helper function which possibly converts this using DOS-style short mode. 16345 # If so, the updated path is stored in $new_path. 16346 16347 input_path="$new_path" 16348 # Check if we need to convert this using DOS-style short mode. If the path 16349 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16350 # take no chances and rewrite it. 16351 # Note: m4 eats our [], so we need to use [ and ] instead. 16352 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16353 if test "x$has_forbidden_chars" != x; then 16354 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16355 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16356 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16357 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16358 # Going to short mode and back again did indeed matter. Since short mode is 16359 # case insensitive, let's make it lowercase to improve readability. 16360 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16361 # Now convert it back to Unix-style (cygpath) 16362 input_path=`$CYGPATH -u "$shortmode_path"` 16363 new_path="$input_path" 16364 fi 16365 fi 16366 16367 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16368 if test "x$test_cygdrive_prefix" = x; then 16369 # As a simple fix, exclude /usr/bin since it's not a real path. 16370 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16371 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16372 # a path prefixed by /cygdrive for fixpath to work. 16373 new_path="$CYGWIN_ROOT_PATH$input_path" 16374 fi 16375 fi 16376 16377 16378 if test "x$path" != "x$new_path"; then 16379 CURDIR="$new_path" 16380 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16381 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16382 fi 16383 16384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16385 16386 path="$CURDIR" 16387 has_colon=`$ECHO $path | $GREP ^.:` 16388 new_path="$path" 16389 if test "x$has_colon" = x; then 16390 # Not in mixed or Windows style, start by that. 16391 new_path=`cmd //c echo $path` 16392 fi 16393 16394 16395 input_path="$new_path" 16396 # Check if we need to convert this using DOS-style short mode. If the path 16397 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16398 # take no chances and rewrite it. 16399 # Note: m4 eats our [], so we need to use [ and ] instead. 16400 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16401 if test "x$has_forbidden_chars" != x; then 16402 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16403 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16404 fi 16405 16406 16407 windows_path="$new_path" 16408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16409 unix_path=`$CYGPATH -u "$windows_path"` 16410 new_path="$unix_path" 16411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16413 new_path="$unix_path" 16414 fi 16415 16416 if test "x$path" != "x$new_path"; then 16417 CURDIR="$new_path" 16418 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16419 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16420 fi 16421 16422 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16423 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16424 16425 else 16426 # We're on a unix platform. Hooray! :) 16427 path="$CURDIR" 16428 has_space=`$ECHO "$path" | $GREP " "` 16429 if test "x$has_space" != x; then 16430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16431 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16432 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16433 fi 16434 16435 # Use eval to expand a potential ~ 16436 eval path="$path" 16437 if test ! -f "$path" && test ! -d "$path"; then 16438 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16439 fi 16440 16441 if test -d "$path"; then 16442 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16443 else 16444 dir="`$DIRNAME "$path"`" 16445 base="`$BASENAME "$path"`" 16446 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16447 fi 16448 fi 16449 fi 16450 16451 16452 # Only process if variable expands to non-empty 16453 16454 if test "x$TOPDIR" != x; then 16455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16456 16457 # Input might be given as Windows format, start by converting to 16458 # unix format. 16459 path="$TOPDIR" 16460 new_path=`$CYGPATH -u "$path"` 16461 16462 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16463 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16464 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16465 # "foo.exe" is OK but "foo" is an error. 16466 # 16467 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16468 # It is also a way to make sure we got the proper file name for the real test later on. 16469 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16470 if test "x$test_shortpath" = x; then 16471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16472 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16473 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16474 fi 16475 16476 # Call helper function which possibly converts this using DOS-style short mode. 16477 # If so, the updated path is stored in $new_path. 16478 16479 input_path="$new_path" 16480 # Check if we need to convert this using DOS-style short mode. If the path 16481 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16482 # take no chances and rewrite it. 16483 # Note: m4 eats our [], so we need to use [ and ] instead. 16484 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16485 if test "x$has_forbidden_chars" != x; then 16486 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16487 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16488 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16489 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16490 # Going to short mode and back again did indeed matter. Since short mode is 16491 # case insensitive, let's make it lowercase to improve readability. 16492 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16493 # Now convert it back to Unix-style (cygpath) 16494 input_path=`$CYGPATH -u "$shortmode_path"` 16495 new_path="$input_path" 16496 fi 16497 fi 16498 16499 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16500 if test "x$test_cygdrive_prefix" = x; then 16501 # As a simple fix, exclude /usr/bin since it's not a real path. 16502 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16503 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16504 # a path prefixed by /cygdrive for fixpath to work. 16505 new_path="$CYGWIN_ROOT_PATH$input_path" 16506 fi 16507 fi 16508 16509 16510 if test "x$path" != "x$new_path"; then 16511 TOPDIR="$new_path" 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16513 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16514 fi 16515 16516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16517 16518 path="$TOPDIR" 16519 has_colon=`$ECHO $path | $GREP ^.:` 16520 new_path="$path" 16521 if test "x$has_colon" = x; then 16522 # Not in mixed or Windows style, start by that. 16523 new_path=`cmd //c echo $path` 16524 fi 16525 16526 16527 input_path="$new_path" 16528 # Check if we need to convert this using DOS-style short mode. If the path 16529 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16530 # take no chances and rewrite it. 16531 # Note: m4 eats our [], so we need to use [ and ] instead. 16532 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16533 if test "x$has_forbidden_chars" != x; then 16534 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16535 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16536 fi 16537 16538 16539 windows_path="$new_path" 16540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16541 unix_path=`$CYGPATH -u "$windows_path"` 16542 new_path="$unix_path" 16543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16545 new_path="$unix_path" 16546 fi 16547 16548 if test "x$path" != "x$new_path"; then 16549 TOPDIR="$new_path" 16550 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16551 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16552 fi 16553 16554 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16555 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16556 16557 else 16558 # We're on a unix platform. Hooray! :) 16559 path="$TOPDIR" 16560 has_space=`$ECHO "$path" | $GREP " "` 16561 if test "x$has_space" != x; then 16562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16563 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16564 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16565 fi 16566 16567 # Use eval to expand a potential ~ 16568 eval path="$path" 16569 if test ! -f "$path" && test ! -d "$path"; then 16570 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16571 fi 16572 16573 if test -d "$path"; then 16574 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16575 else 16576 dir="`$DIRNAME "$path"`" 16577 base="`$BASENAME "$path"`" 16578 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16579 fi 16580 fi 16581 fi 16582 16583 # SRC_ROOT is a traditional alias for TOPDIR. 16584 SRC_ROOT=$TOPDIR 16585 16586 # Calculate a canonical version of TOPDIR for string comparisons 16587 CANONICAL_TOPDIR=$TOPDIR 16588 16589 if test "x$OPENJDK_BUILD_OS" != xwindows; then 16590 # Follow a chain of symbolic links. Use readlink 16591 # where it exists, else fall back to horribly 16592 # complicated shell code. 16593 if test "x$READLINK_TESTED" != yes; then 16594 # On MacOSX there is a readlink tool with a different 16595 # purpose than the GNU readlink tool. Check the found readlink. 16596 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 16597 if test "x$ISGNU" = x; then 16598 # A readlink that we do not know how to use. 16599 # Are there other non-GNU readlinks out there? 16600 READLINK_TESTED=yes 16601 READLINK= 16602 fi 16603 fi 16604 16605 if test "x$READLINK" != x; then 16606 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 16607 else 16608 # Save the current directory for restoring afterwards 16609 STARTDIR=$PWD 16610 COUNTER=0 16611 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 16612 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 16613 cd $sym_link_dir 16614 # Use -P flag to resolve symlinks in directories. 16615 cd `$THEPWDCMD -P` 16616 sym_link_dir=`$THEPWDCMD -P` 16617 # Resolve file symlinks 16618 while test $COUNTER -lt 20; do 16619 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 16620 if test "x$ISLINK" == x; then 16621 # This is not a symbolic link! We are done! 16622 break 16623 fi 16624 # Again resolve directory symlinks since the target of the just found 16625 # link could be in a different directory 16626 cd `$DIRNAME $ISLINK` 16627 sym_link_dir=`$THEPWDCMD -P` 16628 sym_link_file=`$BASENAME $ISLINK` 16629 let COUNTER=COUNTER+1 16630 done 16631 cd $STARTDIR 16632 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 16633 fi 16634 fi 16635 16636 16637 16638 # Locate the directory of this script. 16639 AUTOCONF_DIR=$TOPDIR/common/autoconf 16640 16641 # Setup username (for use in adhoc version strings etc) 16642 # Outer [ ] to quote m4. 16643 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16644 16645 16646 16647 # Check if it's a pure open build or if custom sources are to be used. 16648 16649 # Check whether --enable-openjdk-only was given. 16650 if test "${enable_openjdk_only+set}" = set; then : 16651 enableval=$enable_openjdk_only; 16652 else 16653 enable_openjdk_only="no" 16654 fi 16655 16656 16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5 16658 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; } 16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5 16660 $as_echo "$enable_openjdk_only" >&6; } 16661 if test "x$enable_openjdk_only" = "xyes"; then 16662 SUPPRESS_CUSTOM_EXTENSIONS="true" 16663 elif test "x$enable_openjdk_only" = "xno"; then 16664 SUPPRESS_CUSTOM_EXTENSIONS="false" 16665 else 16666 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5 16667 fi 16668 16669 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16670 # the IncludeCustomExtension macro. 16671 16672 16673 # Check whether --with-custom-make-dir was given. 16674 if test "${with_custom_make_dir+set}" = set; then : 16675 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 16676 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16677 fi 16678 16679 16680 16681 16682 # These are needed to be able to create a configuration name (and thus the output directory) 16683 16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16685 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16686 16687 # Check whether --with-jdk-variant was given. 16688 if test "${with_jdk_variant+set}" = set; then : 16689 withval=$with_jdk_variant; 16690 fi 16691 16692 16693 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16694 JDK_VARIANT="normal" 16695 else 16696 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16697 fi 16698 16699 16700 16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16702 $as_echo "$JDK_VARIANT" >&6; } 16703 16704 16705 DEBUG_LEVEL="release" 16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16707 $as_echo_n "checking which debug level to use... " >&6; } 16708 # Check whether --enable-debug was given. 16709 if test "${enable_debug+set}" = set; then : 16710 enableval=$enable_debug; 16711 ENABLE_DEBUG="${enableval}" 16712 DEBUG_LEVEL="fastdebug" 16713 16714 else 16715 ENABLE_DEBUG="no" 16716 fi 16717 16718 16719 16720 # Check whether --with-debug-level was given. 16721 if test "${with_debug_level+set}" = set; then : 16722 withval=$with_debug_level; 16723 DEBUG_LEVEL="${withval}" 16724 if test "x$ENABLE_DEBUG" = xyes; then 16725 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16726 fi 16727 16728 fi 16729 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16731 $as_echo "$DEBUG_LEVEL" >&6; } 16732 16733 if test "x$DEBUG_LEVEL" != xrelease && \ 16734 test "x$DEBUG_LEVEL" != xoptimized && \ 16735 test "x$DEBUG_LEVEL" != xfastdebug && \ 16736 test "x$DEBUG_LEVEL" != xslowdebug; then 16737 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16738 fi 16739 16740 # Translate DEBUG_LEVEL to debug level used by Hotspot 16741 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 16742 if test "x$DEBUG_LEVEL" = xrelease; then 16743 HOTSPOT_DEBUG_LEVEL="product" 16744 elif test "x$DEBUG_LEVEL" = xslowdebug; then 16745 HOTSPOT_DEBUG_LEVEL="debug" 16746 fi 16747 16748 if test "x$DEBUG_LEVEL" = xoptimized; then 16749 # The debug level 'optimized' is a little special because it is currently only 16750 # applicable to the HotSpot build where it means to build a completely 16751 # optimized version of the VM without any debugging code (like for the 16752 # 'release' debug level which is called 'product' in the HotSpot build) but 16753 # with the exception that it can contain additional code which is otherwise 16754 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 16755 # test new and/or experimental features which are not intended for customer 16756 # shipment. Because these new features need to be tested and benchmarked in 16757 # real world scenarios, we want to build the containing JDK at the 'release' 16758 # debug level. 16759 DEBUG_LEVEL="release" 16760 fi 16761 16762 16763 16764 16765 16766 16767 # Check whether --with-jvm-variants was given. 16768 if test "${with_jvm_variants+set}" = set; then : 16769 withval=$with_jvm_variants; 16770 fi 16771 16772 16773 if test "x$with_jvm_variants" = x; then 16774 with_jvm_variants="server" 16775 fi 16776 JVM_VARIANTS_OPT="$with_jvm_variants" 16777 16778 # Has the user listed more than one variant? 16779 # Additional [] needed to keep m4 from mangling shell constructs. 16780 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 16781 BUILDING_MULTIPLE_JVM_VARIANTS=true 16782 else 16783 BUILDING_MULTIPLE_JVM_VARIANTS=false 16784 fi 16785 # Replace the commas with AND for use in the build directory name. 16786 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 16787 16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 16789 $as_echo_n "checking which variants of the JVM to build... " >&6; } 16790 # JVM_VARIANTS is a space-separated list. 16791 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 16792 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 16794 $as_echo "$JVM_VARIANTS" >&6; } 16795 16796 # Check that the selected variants are valid 16797 16798 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 16799 # Notice that the original variant failes on SLES 10 and 11 16800 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 16801 STACK=${JVM_VARIANTS// /$'\n'} 16802 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 16803 if test "x$INVALID_VARIANTS" != x; then 16804 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 16805 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 16806 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 16807 fi 16808 16809 # All "special" variants share the same output directory ("server") 16810 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 16811 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 16812 STACK=${JVM_VARIANTS// /$'\n'} 16813 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 16814 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 16815 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 16816 fi 16817 16818 16819 16820 16821 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 16822 # zero behaves as a platform and rewrites these values. This is really weird. :( 16823 # We are guaranteed that we do not build any other variants when building zero. 16824 HOTSPOT_TARGET_CPU=zero 16825 HOTSPOT_TARGET_CPU_ARCH=zero 16826 fi 16827 16828 16829 # With basic setup done, call the custom early hook. 16830 16831 16832 # Check if we have devkits, extra paths or sysroot set. 16833 16834 16835 # Check whether --with-devkit was given. 16836 if test "${with_devkit+set}" = set; then : 16837 withval=$with_devkit; 16838 16839 # Only process if variable expands to non-empty 16840 16841 if test "x$with_devkit" != x; then 16842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16843 16844 # Input might be given as Windows format, start by converting to 16845 # unix format. 16846 path="$with_devkit" 16847 new_path=`$CYGPATH -u "$path"` 16848 16849 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16850 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16851 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16852 # "foo.exe" is OK but "foo" is an error. 16853 # 16854 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16855 # It is also a way to make sure we got the proper file name for the real test later on. 16856 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16857 if test "x$test_shortpath" = x; then 16858 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16859 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16860 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 16861 fi 16862 16863 # Call helper function which possibly converts this using DOS-style short mode. 16864 # If so, the updated path is stored in $new_path. 16865 16866 input_path="$new_path" 16867 # Check if we need to convert this using DOS-style short mode. If the path 16868 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16869 # take no chances and rewrite it. 16870 # Note: m4 eats our [], so we need to use [ and ] instead. 16871 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16872 if test "x$has_forbidden_chars" != x; then 16873 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16874 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16875 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16876 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16877 # Going to short mode and back again did indeed matter. Since short mode is 16878 # case insensitive, let's make it lowercase to improve readability. 16879 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16880 # Now convert it back to Unix-style (cygpath) 16881 input_path=`$CYGPATH -u "$shortmode_path"` 16882 new_path="$input_path" 16883 fi 16884 fi 16885 16886 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16887 if test "x$test_cygdrive_prefix" = x; then 16888 # As a simple fix, exclude /usr/bin since it's not a real path. 16889 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16890 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16891 # a path prefixed by /cygdrive for fixpath to work. 16892 new_path="$CYGWIN_ROOT_PATH$input_path" 16893 fi 16894 fi 16895 16896 16897 if test "x$path" != "x$new_path"; then 16898 with_devkit="$new_path" 16899 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16900 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16901 fi 16902 16903 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16904 16905 path="$with_devkit" 16906 has_colon=`$ECHO $path | $GREP ^.:` 16907 new_path="$path" 16908 if test "x$has_colon" = x; then 16909 # Not in mixed or Windows style, start by that. 16910 new_path=`cmd //c echo $path` 16911 fi 16912 16913 16914 input_path="$new_path" 16915 # Check if we need to convert this using DOS-style short mode. If the path 16916 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16917 # take no chances and rewrite it. 16918 # Note: m4 eats our [], so we need to use [ and ] instead. 16919 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16920 if test "x$has_forbidden_chars" != x; then 16921 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16922 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16923 fi 16924 16925 16926 windows_path="$new_path" 16927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16928 unix_path=`$CYGPATH -u "$windows_path"` 16929 new_path="$unix_path" 16930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16932 new_path="$unix_path" 16933 fi 16934 16935 if test "x$path" != "x$new_path"; then 16936 with_devkit="$new_path" 16937 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16938 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16939 fi 16940 16941 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16942 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16943 16944 else 16945 # We're on a unix platform. Hooray! :) 16946 path="$with_devkit" 16947 has_space=`$ECHO "$path" | $GREP " "` 16948 if test "x$has_space" != x; then 16949 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16950 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16951 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16952 fi 16953 16954 # Use eval to expand a potential ~ 16955 eval path="$path" 16956 if test ! -f "$path" && test ! -d "$path"; then 16957 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 16958 fi 16959 16960 if test -d "$path"; then 16961 with_devkit="`cd "$path"; $THEPWDCMD -L`" 16962 else 16963 dir="`$DIRNAME "$path"`" 16964 base="`$BASENAME "$path"`" 16965 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 16966 fi 16967 fi 16968 fi 16969 16970 DEVKIT_ROOT="$with_devkit" 16971 # Check for a meta data info file in the root of the devkit 16972 if test -f "$DEVKIT_ROOT/devkit.info"; then 16973 . $DEVKIT_ROOT/devkit.info 16974 # This potentially sets the following: 16975 # A descriptive name of the devkit 16976 16977 if test "x$DEVKIT_NAME" = x; then 16978 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 16979 fi 16980 16981 # Corresponds to --with-extra-path 16982 16983 if test "x$DEVKIT_EXTRA_PATH" = x; then 16984 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 16985 fi 16986 16987 # Corresponds to --with-toolchain-path 16988 16989 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 16990 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 16991 fi 16992 16993 # Corresponds to --with-sysroot 16994 16995 if test "x$DEVKIT_SYSROOT" = x; then 16996 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 16997 fi 16998 16999 17000 # Identifies the Visual Studio version in the devkit 17001 17002 if test "x$DEVKIT_VS_VERSION" = x; then 17003 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 17004 fi 17005 17006 # The Visual Studio include environment variable 17007 17008 if test "x$DEVKIT_VS_INCLUDE" = x; then 17009 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 17010 fi 17011 17012 # The Visual Studio lib environment variable 17013 17014 if test "x$DEVKIT_VS_LIB" = x; then 17015 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 17016 fi 17017 17018 # Corresponds to --with-msvcr-dll 17019 17020 if test "x$DEVKIT_MSVCR_DLL" = x; then 17021 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 17022 fi 17023 17024 # Corresponds to --with-msvcp-dll 17025 17026 if test "x$DEVKIT_MSVCP_DLL" = x; then 17027 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 17028 fi 17029 17030 fi 17031 17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 17033 $as_echo_n "checking for devkit... " >&6; } 17034 if test "x$DEVKIT_NAME" != x; then 17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 17036 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 17037 else 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 17039 $as_echo "$DEVKIT_ROOT" >&6; } 17040 fi 17041 17042 17043 if test "x$DEVKIT_EXTRA_PATH" != x; then 17044 if test "x$EXTRA_PATH" = x; then 17045 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 17046 else 17047 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 17048 fi 17049 fi 17050 17051 17052 # Fallback default of just /bin if DEVKIT_PATH is not defined 17053 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17054 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 17055 fi 17056 17057 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 17058 if test "x$TOOLCHAIN_PATH" = x; then 17059 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 17060 else 17061 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 17062 fi 17063 fi 17064 17065 17066 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17067 # places for backwards compatiblity. 17068 if test "x$DEVKIT_SYSROOT" != x; then 17069 SYSROOT="$DEVKIT_SYSROOT" 17070 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17071 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17072 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17073 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17074 fi 17075 17076 17077 fi 17078 17079 17080 # You can force the sysroot if the sysroot encoded into the compiler tools 17081 # is not correct. 17082 17083 # Check whether --with-sys-root was given. 17084 if test "${with_sys_root+set}" = set; then : 17085 withval=$with_sys_root; SYSROOT=$with_sys_root 17086 17087 fi 17088 17089 17090 17091 # Check whether --with-sysroot was given. 17092 if test "${with_sysroot+set}" = set; then : 17093 withval=$with_sysroot; SYSROOT=$with_sysroot 17094 17095 fi 17096 17097 17098 17099 # Check whether --with-tools-dir was given. 17100 if test "${with_tools_dir+set}" = set; then : 17101 withval=$with_tools_dir; 17102 if test "x$with_tools_dir" != x; then 17103 if test "x$TOOLCHAIN_PATH" = x; then 17104 TOOLCHAIN_PATH="$with_tools_dir" 17105 else 17106 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17107 fi 17108 fi 17109 17110 17111 fi 17112 17113 17114 17115 # Check whether --with-toolchain-path was given. 17116 if test "${with_toolchain_path+set}" = set; then : 17117 withval=$with_toolchain_path; 17118 if test "x$with_toolchain_path" != x; then 17119 if test "x$TOOLCHAIN_PATH" = x; then 17120 TOOLCHAIN_PATH="$with_toolchain_path" 17121 else 17122 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17123 fi 17124 fi 17125 17126 17127 fi 17128 17129 17130 17131 # Check whether --with-extra-path was given. 17132 if test "${with_extra_path+set}" = set; then : 17133 withval=$with_extra_path; 17134 if test "x$with_extra_path" != x; then 17135 if test "x$EXTRA_PATH" = x; then 17136 EXTRA_PATH="$with_extra_path" 17137 else 17138 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17139 fi 17140 fi 17141 17142 17143 fi 17144 17145 17146 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 17147 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17148 # If not, detect if Xcode is installed by running xcodebuild -version 17149 # if no Xcode installed, xcodebuild exits with 1 17150 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17151 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17152 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17153 # fall back on the stub binary in /usr/bin/xcodebuild 17154 # Extract the first word of "xcodebuild", so it can be a program name with args. 17155 set dummy xcodebuild; ac_word=$2 17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17157 $as_echo_n "checking for $ac_word... " >&6; } 17158 if ${ac_cv_path_XCODEBUILD+:} false; then : 17159 $as_echo_n "(cached) " >&6 17160 else 17161 case $XCODEBUILD in 17162 [\\/]* | ?:[\\/]*) 17163 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17164 ;; 17165 *) 17166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17167 for as_dir in $TOOLCHAIN_PATH 17168 do 17169 IFS=$as_save_IFS 17170 test -z "$as_dir" && as_dir=. 17171 for ac_exec_ext in '' $ac_executable_extensions; do 17172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17173 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17175 break 2 17176 fi 17177 done 17178 done 17179 IFS=$as_save_IFS 17180 17181 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17182 ;; 17183 esac 17184 fi 17185 XCODEBUILD=$ac_cv_path_XCODEBUILD 17186 if test -n "$XCODEBUILD"; then 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17188 $as_echo "$XCODEBUILD" >&6; } 17189 else 17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17191 $as_echo "no" >&6; } 17192 fi 17193 17194 17195 else 17196 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17197 # when only the command line tools are installed there are no SDKs, so headers 17198 # are copied into the system frameworks 17199 XCODEBUILD= 17200 17201 fi 17202 17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17204 $as_echo_n "checking for sdk name... " >&6; } 17205 17206 # Check whether --with-sdk-name was given. 17207 if test "${with_sdk_name+set}" = set; then : 17208 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17209 17210 fi 17211 17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17213 $as_echo "$SDKNAME" >&6; } 17214 17215 # if toolchain path is specified then don't rely on system headers, they may not compile 17216 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17217 test -z "$TOOLCHAIN_PATH" && \ 17218 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17219 17220 if test -z "$SYSROOT"; then 17221 if test -n "$XCODEBUILD"; then 17222 # if we don't have system headers, use default SDK name (last resort) 17223 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17224 SDKNAME=${SDKNAME:-macosx} 17225 fi 17226 17227 if test -n "$SDKNAME"; then 17228 # Call xcodebuild to determine SYSROOT 17229 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17230 fi 17231 else 17232 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17233 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 17234 fi 17235 fi 17236 else 17237 # warn user if --with-sdk-name was also set 17238 if test -n "$with_sdk_name"; then 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17240 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17241 fi 17242 fi 17243 17244 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17245 # If no system framework headers, then SYSROOT must be set, or we won't build 17246 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 17247 fi 17248 17249 # Perform a basic sanity test 17250 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17251 if test -z "$SYSROOT"; then 17252 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 17253 else 17254 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17255 fi 17256 fi 17257 17258 # set SDKROOT too, Xcode tools will pick it up 17259 SDKROOT=$SYSROOT 17260 17261 fi 17262 17263 # Prepend the extra path to the global path 17264 17265 if test "x$EXTRA_PATH" != x; then 17266 if test "x$PATH" = x; then 17267 PATH="$EXTRA_PATH" 17268 else 17269 PATH="$EXTRA_PATH:$PATH" 17270 fi 17271 fi 17272 17273 17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17275 $as_echo_n "checking for sysroot... " >&6; } 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17277 $as_echo "$SYSROOT" >&6; } 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17279 $as_echo_n "checking for toolchain path... " >&6; } 17280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17281 $as_echo "$TOOLCHAIN_PATH" >&6; } 17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17283 $as_echo_n "checking for extra path... " >&6; } 17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17285 $as_echo "$EXTRA_PATH" >&6; } 17286 17287 17288 # To properly create a configuration name, we need to have the OpenJDK target 17289 # and options (variants and debug level) parsed. 17290 17291 17292 17293 # Check whether --with-conf-name was given. 17294 if test "${with_conf_name+set}" = set; then : 17295 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17296 fi 17297 17298 17299 # Test from where we are running configure, in or outside of src root. 17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17301 $as_echo_n "checking where to store configuration... " >&6; } 17302 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 17303 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 17304 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 17305 # We are running configure from the src root. 17306 # Create a default ./build/target-variant-debuglevel output root. 17307 if test "x${CONF_NAME}" = x; then 17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17309 $as_echo "in default location" >&6; } 17310 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17311 else 17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17313 $as_echo "in build directory with custom name" >&6; } 17314 fi 17315 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 17316 $MKDIR -p "$OUTPUT_ROOT" 17317 if test ! -d "$OUTPUT_ROOT"; then 17318 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 17319 fi 17320 else 17321 # We are running configure from outside of the src dir. 17322 # Then use the current directory as output dir! 17323 # If configuration is situated in normal build directory, just use the build 17324 # directory name as configuration name, otherwise use the complete path. 17325 if test "x${CONF_NAME}" = x; then 17326 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 17327 fi 17328 OUTPUT_ROOT="$CURDIR" 17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17330 $as_echo "in current directory" >&6; } 17331 17332 # WARNING: This might be a bad thing to do. You need to be sure you want to 17333 # have a configuration in this directory. Do some sanity checks! 17334 17335 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 17336 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17337 # other files 17338 files_present=`$LS $OUTPUT_ROOT` 17339 # Configure has already touched config.log and confdefs.h in the current dir when this check 17340 # is performed. 17341 filtered_files=`$ECHO "$files_present" \ 17342 | $SED -e 's/config.log//g' \ 17343 -e 's/configure.log//g' \ 17344 -e 's/confdefs.h//g' \ 17345 -e 's/ //g' \ 17346 | $TR -d '\n'` 17347 if test "x$filtered_files" != x; then 17348 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17349 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17351 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17352 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17353 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17354 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17355 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17356 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17357 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 17359 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 17360 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17361 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17362 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17363 fi 17364 fi 17365 fi 17366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17367 $as_echo_n "checking what configuration name to use... " >&6; } 17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17369 $as_echo "$CONF_NAME" >&6; } 17370 17371 17372 # Only process if variable expands to non-empty 17373 17374 if test "x$OUTPUT_ROOT" != x; then 17375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17376 17377 # Input might be given as Windows format, start by converting to 17378 # unix format. 17379 path="$OUTPUT_ROOT" 17380 new_path=`$CYGPATH -u "$path"` 17381 17382 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17383 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17384 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17385 # "foo.exe" is OK but "foo" is an error. 17386 # 17387 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17388 # It is also a way to make sure we got the proper file name for the real test later on. 17389 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17390 if test "x$test_shortpath" = x; then 17391 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17392 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17393 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 17394 fi 17395 17396 # Call helper function which possibly converts this using DOS-style short mode. 17397 # If so, the updated path is stored in $new_path. 17398 17399 input_path="$new_path" 17400 # Check if we need to convert this using DOS-style short mode. If the path 17401 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17402 # take no chances and rewrite it. 17403 # Note: m4 eats our [], so we need to use [ and ] instead. 17404 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17405 if test "x$has_forbidden_chars" != x; then 17406 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17407 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17408 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17409 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17410 # Going to short mode and back again did indeed matter. Since short mode is 17411 # case insensitive, let's make it lowercase to improve readability. 17412 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17413 # Now convert it back to Unix-style (cygpath) 17414 input_path=`$CYGPATH -u "$shortmode_path"` 17415 new_path="$input_path" 17416 fi 17417 fi 17418 17419 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17420 if test "x$test_cygdrive_prefix" = x; then 17421 # As a simple fix, exclude /usr/bin since it's not a real path. 17422 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17423 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17424 # a path prefixed by /cygdrive for fixpath to work. 17425 new_path="$CYGWIN_ROOT_PATH$input_path" 17426 fi 17427 fi 17428 17429 17430 if test "x$path" != "x$new_path"; then 17431 OUTPUT_ROOT="$new_path" 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17433 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17434 fi 17435 17436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17437 17438 path="$OUTPUT_ROOT" 17439 has_colon=`$ECHO $path | $GREP ^.:` 17440 new_path="$path" 17441 if test "x$has_colon" = x; then 17442 # Not in mixed or Windows style, start by that. 17443 new_path=`cmd //c echo $path` 17444 fi 17445 17446 17447 input_path="$new_path" 17448 # Check if we need to convert this using DOS-style short mode. If the path 17449 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17450 # take no chances and rewrite it. 17451 # Note: m4 eats our [], so we need to use [ and ] instead. 17452 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17453 if test "x$has_forbidden_chars" != x; then 17454 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17455 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17456 fi 17457 17458 17459 windows_path="$new_path" 17460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17461 unix_path=`$CYGPATH -u "$windows_path"` 17462 new_path="$unix_path" 17463 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17464 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17465 new_path="$unix_path" 17466 fi 17467 17468 if test "x$path" != "x$new_path"; then 17469 OUTPUT_ROOT="$new_path" 17470 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 17471 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 17472 fi 17473 17474 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17475 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17476 17477 else 17478 # We're on a unix platform. Hooray! :) 17479 path="$OUTPUT_ROOT" 17480 has_space=`$ECHO "$path" | $GREP " "` 17481 if test "x$has_space" != x; then 17482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 17483 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 17484 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17485 fi 17486 17487 # Use eval to expand a potential ~ 17488 eval path="$path" 17489 if test ! -f "$path" && test ! -d "$path"; then 17490 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 17491 fi 17492 17493 if test -d "$path"; then 17494 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 17495 else 17496 dir="`$DIRNAME "$path"`" 17497 base="`$BASENAME "$path"`" 17498 OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base" 17499 fi 17500 fi 17501 fi 17502 17503 17504 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 17505 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17506 17507 SPEC=$OUTPUT_ROOT/spec.gmk 17508 17509 CONF_NAME=$CONF_NAME 17510 17511 OUTPUT_ROOT=$OUTPUT_ROOT 17512 17513 17514 17515 # The spec.gmk file contains all variables for the make system. 17516 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17517 17518 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17519 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17520 17521 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17522 ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17523 17524 # The compare.sh is used to compare the build output to other builds. 17525 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17526 17527 # The generated Makefile knows where the spec.gmk is and where the source is. 17528 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 17529 # which will look for generated configurations 17530 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 17531 17532 17533 17534 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17535 17536 for ac_prog in apt-get yum port pkgutil pkgadd 17537 do 17538 # Extract the first word of "$ac_prog", so it can be a program name with args. 17539 set dummy $ac_prog; ac_word=$2 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17541 $as_echo_n "checking for $ac_word... " >&6; } 17542 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17543 $as_echo_n "(cached) " >&6 17544 else 17545 if test -n "$PKGHANDLER"; then 17546 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17547 else 17548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17549 for as_dir in $PATH 17550 do 17551 IFS=$as_save_IFS 17552 test -z "$as_dir" && as_dir=. 17553 for ac_exec_ext in '' $ac_executable_extensions; do 17554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17555 ac_cv_prog_PKGHANDLER="$ac_prog" 17556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17557 break 2 17558 fi 17559 done 17560 done 17561 IFS=$as_save_IFS 17562 17563 fi 17564 fi 17565 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17566 if test -n "$PKGHANDLER"; then 17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17568 $as_echo "$PKGHANDLER" >&6; } 17569 else 17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17571 $as_echo "no" >&6; } 17572 fi 17573 17574 17575 test -n "$PKGHANDLER" && break 17576 done 17577 17578 17579 17580 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17581 17582 17583 17584 # Publish this variable in the help. 17585 17586 17587 if [ -z "${MAKE+x}" ]; then 17588 # The variable is not set by user, try to locate tool using the code snippet 17589 17590 # Try our hardest to locate a correct version of GNU make 17591 for ac_prog in gmake 17592 do 17593 # Extract the first word of "$ac_prog", so it can be a program name with args. 17594 set dummy $ac_prog; ac_word=$2 17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17596 $as_echo_n "checking for $ac_word... " >&6; } 17597 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17598 $as_echo_n "(cached) " >&6 17599 else 17600 case $CHECK_GMAKE in 17601 [\\/]* | ?:[\\/]*) 17602 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17603 ;; 17604 *) 17605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17606 for as_dir in $PATH 17607 do 17608 IFS=$as_save_IFS 17609 test -z "$as_dir" && as_dir=. 17610 for ac_exec_ext in '' $ac_executable_extensions; do 17611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17612 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17614 break 2 17615 fi 17616 done 17617 done 17618 IFS=$as_save_IFS 17619 17620 ;; 17621 esac 17622 fi 17623 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17624 if test -n "$CHECK_GMAKE"; then 17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17626 $as_echo "$CHECK_GMAKE" >&6; } 17627 else 17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17629 $as_echo "no" >&6; } 17630 fi 17631 17632 17633 test -n "$CHECK_GMAKE" && break 17634 done 17635 17636 17637 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17638 DESCRIPTION="gmake in PATH" 17639 17640 # On Cygwin, we require a newer version of make than on other platforms 17641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17642 MAKE_VERSION_EXPR="-e 4\." 17643 MAKE_REQUIRED_VERSION="4.0" 17644 else 17645 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17646 MAKE_REQUIRED_VERSION="3.81" 17647 fi 17648 17649 if test "x$MAKE_CANDIDATE" != x; then 17650 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17651 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17652 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17653 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17654 if test "x$IS_GNU_MAKE" = x; then 17655 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17656 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17657 else 17658 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17659 if test "x$IS_MODERN_MAKE" = x; then 17660 { $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 17661 $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;} 17662 else 17663 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17665 MAKE_EXPECTED_ENV='cygwin' 17666 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17667 MAKE_EXPECTED_ENV='msys' 17668 else 17669 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17670 fi 17671 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17672 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17673 else 17674 # Not relevant for non-Windows 17675 IS_MAKE_CORRECT_ENV=true 17676 fi 17677 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17678 { $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 17679 $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;} 17680 else 17681 FOUND_MAKE=$MAKE_CANDIDATE 17682 17683 # Only process if variable expands to non-empty 17684 17685 if test "x$FOUND_MAKE" != x; then 17686 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17687 17688 # First separate the path from the arguments. This will split at the first 17689 # space. 17690 complete="$FOUND_MAKE" 17691 path="${complete%% *}" 17692 tmp="$complete EOL" 17693 arguments="${tmp#* }" 17694 17695 # Input might be given as Windows format, start by converting to 17696 # unix format. 17697 new_path=`$CYGPATH -u "$path"` 17698 17699 # Now try to locate executable using which 17700 new_path=`$WHICH "$new_path" 2> /dev/null` 17701 # bat and cmd files are not always considered executable in cygwin causing which 17702 # to not find them 17703 if test "x$new_path" = x \ 17704 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17705 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17706 new_path=`$CYGPATH -u "$path"` 17707 fi 17708 if test "x$new_path" = x; then 17709 # Oops. Which didn't find the executable. 17710 # The splitting of arguments from the executable at a space might have been incorrect, 17711 # since paths with space are more likely in Windows. Give it another try with the whole 17712 # argument. 17713 path="$complete" 17714 arguments="EOL" 17715 new_path=`$CYGPATH -u "$path"` 17716 new_path=`$WHICH "$new_path" 2> /dev/null` 17717 # bat and cmd files are not always considered executable in cygwin causing which 17718 # to not find them 17719 if test "x$new_path" = x \ 17720 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17721 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17722 new_path=`$CYGPATH -u "$path"` 17723 fi 17724 if test "x$new_path" = x; then 17725 # It's still not found. Now this is an unrecoverable error. 17726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17727 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17728 has_space=`$ECHO "$complete" | $GREP " "` 17729 if test "x$has_space" != x; then 17730 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17731 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17732 fi 17733 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17734 fi 17735 fi 17736 17737 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17738 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17739 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17740 # "foo.exe" is OK but "foo" is an error. 17741 # 17742 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17743 # It is also a way to make sure we got the proper file name for the real test later on. 17744 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17745 if test "x$test_shortpath" = x; then 17746 # Short path failed, file does not exist as specified. 17747 # Try adding .exe or .cmd 17748 if test -f "${new_path}.exe"; then 17749 input_to_shortpath="${new_path}.exe" 17750 elif test -f "${new_path}.cmd"; then 17751 input_to_shortpath="${new_path}.cmd" 17752 else 17753 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17754 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17755 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17756 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17757 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17758 fi 17759 else 17760 input_to_shortpath="$new_path" 17761 fi 17762 17763 # Call helper function which possibly converts this using DOS-style short mode. 17764 # If so, the updated path is stored in $new_path. 17765 new_path="$input_to_shortpath" 17766 17767 input_path="$input_to_shortpath" 17768 # Check if we need to convert this using DOS-style short mode. If the path 17769 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17770 # take no chances and rewrite it. 17771 # Note: m4 eats our [], so we need to use [ and ] instead. 17772 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17773 if test "x$has_forbidden_chars" != x; then 17774 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17775 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17776 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17777 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17778 # Going to short mode and back again did indeed matter. Since short mode is 17779 # case insensitive, let's make it lowercase to improve readability. 17780 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17781 # Now convert it back to Unix-style (cygpath) 17782 input_path=`$CYGPATH -u "$shortmode_path"` 17783 new_path="$input_path" 17784 fi 17785 fi 17786 17787 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17788 if test "x$test_cygdrive_prefix" = x; then 17789 # As a simple fix, exclude /usr/bin since it's not a real path. 17790 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17791 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17792 # a path prefixed by /cygdrive for fixpath to work. 17793 new_path="$CYGWIN_ROOT_PATH$input_path" 17794 fi 17795 fi 17796 17797 # remove trailing .exe if any 17798 new_path="${new_path/%.exe/}" 17799 17800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17801 17802 # First separate the path from the arguments. This will split at the first 17803 # space. 17804 complete="$FOUND_MAKE" 17805 path="${complete%% *}" 17806 tmp="$complete EOL" 17807 arguments="${tmp#* }" 17808 17809 # Input might be given as Windows format, start by converting to 17810 # unix format. 17811 new_path="$path" 17812 17813 windows_path="$new_path" 17814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17815 unix_path=`$CYGPATH -u "$windows_path"` 17816 new_path="$unix_path" 17817 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17818 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17819 new_path="$unix_path" 17820 fi 17821 17822 17823 # Now try to locate executable using which 17824 new_path=`$WHICH "$new_path" 2> /dev/null` 17825 17826 if test "x$new_path" = x; then 17827 # Oops. Which didn't find the executable. 17828 # The splitting of arguments from the executable at a space might have been incorrect, 17829 # since paths with space are more likely in Windows. Give it another try with the whole 17830 # argument. 17831 path="$complete" 17832 arguments="EOL" 17833 new_path="$path" 17834 17835 windows_path="$new_path" 17836 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17837 unix_path=`$CYGPATH -u "$windows_path"` 17838 new_path="$unix_path" 17839 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17840 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17841 new_path="$unix_path" 17842 fi 17843 17844 17845 new_path=`$WHICH "$new_path" 2> /dev/null` 17846 # bat and cmd files are not always considered executable in MSYS causing which 17847 # to not find them 17848 if test "x$new_path" = x \ 17849 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17850 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17851 new_path="$path" 17852 17853 windows_path="$new_path" 17854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17855 unix_path=`$CYGPATH -u "$windows_path"` 17856 new_path="$unix_path" 17857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17858 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17859 new_path="$unix_path" 17860 fi 17861 17862 fi 17863 17864 if test "x$new_path" = x; then 17865 # It's still not found. Now this is an unrecoverable error. 17866 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17867 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17868 has_space=`$ECHO "$complete" | $GREP " "` 17869 if test "x$has_space" != x; then 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17871 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17872 fi 17873 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17874 fi 17875 fi 17876 17877 # Now new_path has a complete unix path to the binary 17878 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17879 # Keep paths in /bin as-is, but remove trailing .exe if any 17880 new_path="${new_path/%.exe/}" 17881 # Do not save /bin paths to all_fixpath_prefixes! 17882 else 17883 # Not in mixed or Windows style, start by that. 17884 new_path=`cmd //c echo $new_path` 17885 17886 input_path="$new_path" 17887 # Check if we need to convert this using DOS-style short mode. If the path 17888 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17889 # take no chances and rewrite it. 17890 # Note: m4 eats our [], so we need to use [ and ] instead. 17891 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17892 if test "x$has_forbidden_chars" != x; then 17893 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17894 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17895 fi 17896 17897 # Output is in $new_path 17898 17899 windows_path="$new_path" 17900 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17901 unix_path=`$CYGPATH -u "$windows_path"` 17902 new_path="$unix_path" 17903 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17904 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17905 new_path="$unix_path" 17906 fi 17907 17908 # remove trailing .exe if any 17909 new_path="${new_path/%.exe/}" 17910 17911 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17912 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17913 fi 17914 17915 else 17916 # We're on a unix platform. Hooray! :) 17917 # First separate the path from the arguments. This will split at the first 17918 # space. 17919 complete="$FOUND_MAKE" 17920 path="${complete%% *}" 17921 tmp="$complete EOL" 17922 arguments="${tmp#* }" 17923 17924 # Cannot rely on the command "which" here since it doesn't always work. 17925 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17926 if test -z "$is_absolute_path"; then 17927 # Path to executable is not absolute. Find it. 17928 IFS_save="$IFS" 17929 IFS=: 17930 for p in $PATH; do 17931 if test -f "$p/$path" && test -x "$p/$path"; then 17932 new_path="$p/$path" 17933 break 17934 fi 17935 done 17936 IFS="$IFS_save" 17937 else 17938 # This is an absolute path, we can use it without further modifications. 17939 new_path="$path" 17940 fi 17941 17942 if test "x$new_path" = x; then 17943 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17944 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17945 has_space=`$ECHO "$complete" | $GREP " "` 17946 if test "x$has_space" != x; then 17947 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17948 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17949 fi 17950 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17951 fi 17952 fi 17953 17954 # Now join together the path and the arguments once again 17955 if test "x$arguments" != xEOL; then 17956 new_complete="$new_path ${arguments% *}" 17957 else 17958 new_complete="$new_path" 17959 fi 17960 17961 if test "x$complete" != "x$new_complete"; then 17962 FOUND_MAKE="$new_complete" 17963 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17964 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17965 fi 17966 fi 17967 17968 fi 17969 fi 17970 fi 17971 fi 17972 17973 17974 if test "x$FOUND_MAKE" = x; then 17975 for ac_prog in make 17976 do 17977 # Extract the first word of "$ac_prog", so it can be a program name with args. 17978 set dummy $ac_prog; ac_word=$2 17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17980 $as_echo_n "checking for $ac_word... " >&6; } 17981 if ${ac_cv_path_CHECK_MAKE+:} false; then : 17982 $as_echo_n "(cached) " >&6 17983 else 17984 case $CHECK_MAKE in 17985 [\\/]* | ?:[\\/]*) 17986 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 17987 ;; 17988 *) 17989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17990 for as_dir in $PATH 17991 do 17992 IFS=$as_save_IFS 17993 test -z "$as_dir" && as_dir=. 17994 for ac_exec_ext in '' $ac_executable_extensions; do 17995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17996 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 17997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17998 break 2 17999 fi 18000 done 18001 done 18002 IFS=$as_save_IFS 18003 18004 ;; 18005 esac 18006 fi 18007 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18008 if test -n "$CHECK_MAKE"; then 18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18010 $as_echo "$CHECK_MAKE" >&6; } 18011 else 18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18013 $as_echo "no" >&6; } 18014 fi 18015 18016 18017 test -n "$CHECK_MAKE" && break 18018 done 18019 18020 18021 MAKE_CANDIDATE=""$CHECK_MAKE"" 18022 DESCRIPTION="make in PATH" 18023 18024 # On Cygwin, we require a newer version of make than on other platforms 18025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18026 MAKE_VERSION_EXPR="-e 4\." 18027 MAKE_REQUIRED_VERSION="4.0" 18028 else 18029 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18030 MAKE_REQUIRED_VERSION="3.81" 18031 fi 18032 18033 if test "x$MAKE_CANDIDATE" != x; then 18034 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18035 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18036 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18037 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18038 if test "x$IS_GNU_MAKE" = x; then 18039 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18040 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18041 else 18042 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18043 if test "x$IS_MODERN_MAKE" = x; then 18044 { $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 18045 $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;} 18046 else 18047 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18048 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18049 MAKE_EXPECTED_ENV='cygwin' 18050 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18051 MAKE_EXPECTED_ENV='msys' 18052 else 18053 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18054 fi 18055 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18056 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18057 else 18058 # Not relevant for non-Windows 18059 IS_MAKE_CORRECT_ENV=true 18060 fi 18061 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18062 { $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 18063 $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;} 18064 else 18065 FOUND_MAKE=$MAKE_CANDIDATE 18066 18067 # Only process if variable expands to non-empty 18068 18069 if test "x$FOUND_MAKE" != x; then 18070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18071 18072 # First separate the path from the arguments. This will split at the first 18073 # space. 18074 complete="$FOUND_MAKE" 18075 path="${complete%% *}" 18076 tmp="$complete EOL" 18077 arguments="${tmp#* }" 18078 18079 # Input might be given as Windows format, start by converting to 18080 # unix format. 18081 new_path=`$CYGPATH -u "$path"` 18082 18083 # Now try to locate executable using which 18084 new_path=`$WHICH "$new_path" 2> /dev/null` 18085 # bat and cmd files are not always considered executable in cygwin causing which 18086 # to not find them 18087 if test "x$new_path" = x \ 18088 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18089 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18090 new_path=`$CYGPATH -u "$path"` 18091 fi 18092 if test "x$new_path" = x; then 18093 # Oops. Which didn't find the executable. 18094 # The splitting of arguments from the executable at a space might have been incorrect, 18095 # since paths with space are more likely in Windows. Give it another try with the whole 18096 # argument. 18097 path="$complete" 18098 arguments="EOL" 18099 new_path=`$CYGPATH -u "$path"` 18100 new_path=`$WHICH "$new_path" 2> /dev/null` 18101 # bat and cmd files are not always considered executable in cygwin causing which 18102 # to not find them 18103 if test "x$new_path" = x \ 18104 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18105 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18106 new_path=`$CYGPATH -u "$path"` 18107 fi 18108 if test "x$new_path" = x; then 18109 # It's still not found. Now this is an unrecoverable error. 18110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18111 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18112 has_space=`$ECHO "$complete" | $GREP " "` 18113 if test "x$has_space" != x; then 18114 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18115 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18116 fi 18117 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18118 fi 18119 fi 18120 18121 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18122 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18123 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18124 # "foo.exe" is OK but "foo" is an error. 18125 # 18126 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18127 # It is also a way to make sure we got the proper file name for the real test later on. 18128 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18129 if test "x$test_shortpath" = x; then 18130 # Short path failed, file does not exist as specified. 18131 # Try adding .exe or .cmd 18132 if test -f "${new_path}.exe"; then 18133 input_to_shortpath="${new_path}.exe" 18134 elif test -f "${new_path}.cmd"; then 18135 input_to_shortpath="${new_path}.cmd" 18136 else 18137 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18138 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18139 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18140 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18141 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18142 fi 18143 else 18144 input_to_shortpath="$new_path" 18145 fi 18146 18147 # Call helper function which possibly converts this using DOS-style short mode. 18148 # If so, the updated path is stored in $new_path. 18149 new_path="$input_to_shortpath" 18150 18151 input_path="$input_to_shortpath" 18152 # Check if we need to convert this using DOS-style short mode. If the path 18153 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18154 # take no chances and rewrite it. 18155 # Note: m4 eats our [], so we need to use [ and ] instead. 18156 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18157 if test "x$has_forbidden_chars" != x; then 18158 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18159 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18160 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18161 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18162 # Going to short mode and back again did indeed matter. Since short mode is 18163 # case insensitive, let's make it lowercase to improve readability. 18164 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18165 # Now convert it back to Unix-style (cygpath) 18166 input_path=`$CYGPATH -u "$shortmode_path"` 18167 new_path="$input_path" 18168 fi 18169 fi 18170 18171 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18172 if test "x$test_cygdrive_prefix" = x; then 18173 # As a simple fix, exclude /usr/bin since it's not a real path. 18174 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18175 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18176 # a path prefixed by /cygdrive for fixpath to work. 18177 new_path="$CYGWIN_ROOT_PATH$input_path" 18178 fi 18179 fi 18180 18181 # remove trailing .exe if any 18182 new_path="${new_path/%.exe/}" 18183 18184 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18185 18186 # First separate the path from the arguments. This will split at the first 18187 # space. 18188 complete="$FOUND_MAKE" 18189 path="${complete%% *}" 18190 tmp="$complete EOL" 18191 arguments="${tmp#* }" 18192 18193 # Input might be given as Windows format, start by converting to 18194 # unix format. 18195 new_path="$path" 18196 18197 windows_path="$new_path" 18198 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18199 unix_path=`$CYGPATH -u "$windows_path"` 18200 new_path="$unix_path" 18201 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18202 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18203 new_path="$unix_path" 18204 fi 18205 18206 18207 # Now try to locate executable using which 18208 new_path=`$WHICH "$new_path" 2> /dev/null` 18209 18210 if test "x$new_path" = x; then 18211 # Oops. Which didn't find the executable. 18212 # The splitting of arguments from the executable at a space might have been incorrect, 18213 # since paths with space are more likely in Windows. Give it another try with the whole 18214 # argument. 18215 path="$complete" 18216 arguments="EOL" 18217 new_path="$path" 18218 18219 windows_path="$new_path" 18220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18221 unix_path=`$CYGPATH -u "$windows_path"` 18222 new_path="$unix_path" 18223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18224 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18225 new_path="$unix_path" 18226 fi 18227 18228 18229 new_path=`$WHICH "$new_path" 2> /dev/null` 18230 # bat and cmd files are not always considered executable in MSYS causing which 18231 # to not find them 18232 if test "x$new_path" = x \ 18233 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18234 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18235 new_path="$path" 18236 18237 windows_path="$new_path" 18238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18239 unix_path=`$CYGPATH -u "$windows_path"` 18240 new_path="$unix_path" 18241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18242 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18243 new_path="$unix_path" 18244 fi 18245 18246 fi 18247 18248 if test "x$new_path" = x; then 18249 # It's still not found. Now this is an unrecoverable error. 18250 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18251 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18252 has_space=`$ECHO "$complete" | $GREP " "` 18253 if test "x$has_space" != x; then 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18255 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18256 fi 18257 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18258 fi 18259 fi 18260 18261 # Now new_path has a complete unix path to the binary 18262 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18263 # Keep paths in /bin as-is, but remove trailing .exe if any 18264 new_path="${new_path/%.exe/}" 18265 # Do not save /bin paths to all_fixpath_prefixes! 18266 else 18267 # Not in mixed or Windows style, start by that. 18268 new_path=`cmd //c echo $new_path` 18269 18270 input_path="$new_path" 18271 # Check if we need to convert this using DOS-style short mode. If the path 18272 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18273 # take no chances and rewrite it. 18274 # Note: m4 eats our [], so we need to use [ and ] instead. 18275 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18276 if test "x$has_forbidden_chars" != x; then 18277 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18278 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18279 fi 18280 18281 # Output is in $new_path 18282 18283 windows_path="$new_path" 18284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18285 unix_path=`$CYGPATH -u "$windows_path"` 18286 new_path="$unix_path" 18287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18288 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18289 new_path="$unix_path" 18290 fi 18291 18292 # remove trailing .exe if any 18293 new_path="${new_path/%.exe/}" 18294 18295 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18296 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18297 fi 18298 18299 else 18300 # We're on a unix platform. Hooray! :) 18301 # First separate the path from the arguments. This will split at the first 18302 # space. 18303 complete="$FOUND_MAKE" 18304 path="${complete%% *}" 18305 tmp="$complete EOL" 18306 arguments="${tmp#* }" 18307 18308 # Cannot rely on the command "which" here since it doesn't always work. 18309 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18310 if test -z "$is_absolute_path"; then 18311 # Path to executable is not absolute. Find it. 18312 IFS_save="$IFS" 18313 IFS=: 18314 for p in $PATH; do 18315 if test -f "$p/$path" && test -x "$p/$path"; then 18316 new_path="$p/$path" 18317 break 18318 fi 18319 done 18320 IFS="$IFS_save" 18321 else 18322 # This is an absolute path, we can use it without further modifications. 18323 new_path="$path" 18324 fi 18325 18326 if test "x$new_path" = x; then 18327 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18328 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18329 has_space=`$ECHO "$complete" | $GREP " "` 18330 if test "x$has_space" != x; then 18331 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18332 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18333 fi 18334 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18335 fi 18336 fi 18337 18338 # Now join together the path and the arguments once again 18339 if test "x$arguments" != xEOL; then 18340 new_complete="$new_path ${arguments% *}" 18341 else 18342 new_complete="$new_path" 18343 fi 18344 18345 if test "x$complete" != "x$new_complete"; then 18346 FOUND_MAKE="$new_complete" 18347 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18348 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18349 fi 18350 fi 18351 18352 fi 18353 fi 18354 fi 18355 fi 18356 18357 fi 18358 18359 if test "x$FOUND_MAKE" = x; then 18360 if test "x$TOOLCHAIN_PATH" != x; then 18361 # We have a toolchain path, check that as well before giving up. 18362 OLD_PATH=$PATH 18363 PATH=$TOOLCHAIN_PATH:$PATH 18364 for ac_prog in gmake 18365 do 18366 # Extract the first word of "$ac_prog", so it can be a program name with args. 18367 set dummy $ac_prog; ac_word=$2 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18369 $as_echo_n "checking for $ac_word... " >&6; } 18370 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18371 $as_echo_n "(cached) " >&6 18372 else 18373 case $CHECK_TOOLSDIR_GMAKE in 18374 [\\/]* | ?:[\\/]*) 18375 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18376 ;; 18377 *) 18378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18379 for as_dir in $PATH 18380 do 18381 IFS=$as_save_IFS 18382 test -z "$as_dir" && as_dir=. 18383 for ac_exec_ext in '' $ac_executable_extensions; do 18384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18385 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18387 break 2 18388 fi 18389 done 18390 done 18391 IFS=$as_save_IFS 18392 18393 ;; 18394 esac 18395 fi 18396 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18397 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18399 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18400 else 18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18402 $as_echo "no" >&6; } 18403 fi 18404 18405 18406 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18407 done 18408 18409 18410 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18411 DESCRIPTION="gmake in tools-dir" 18412 18413 # On Cygwin, we require a newer version of make than on other platforms 18414 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18415 MAKE_VERSION_EXPR="-e 4\." 18416 MAKE_REQUIRED_VERSION="4.0" 18417 else 18418 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18419 MAKE_REQUIRED_VERSION="3.81" 18420 fi 18421 18422 if test "x$MAKE_CANDIDATE" != x; then 18423 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18424 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18425 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18426 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18427 if test "x$IS_GNU_MAKE" = x; then 18428 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18429 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18430 else 18431 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18432 if test "x$IS_MODERN_MAKE" = x; then 18433 { $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 18434 $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;} 18435 else 18436 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18438 MAKE_EXPECTED_ENV='cygwin' 18439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18440 MAKE_EXPECTED_ENV='msys' 18441 else 18442 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18443 fi 18444 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18445 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18446 else 18447 # Not relevant for non-Windows 18448 IS_MAKE_CORRECT_ENV=true 18449 fi 18450 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18451 { $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 18452 $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;} 18453 else 18454 FOUND_MAKE=$MAKE_CANDIDATE 18455 18456 # Only process if variable expands to non-empty 18457 18458 if test "x$FOUND_MAKE" != x; then 18459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18460 18461 # First separate the path from the arguments. This will split at the first 18462 # space. 18463 complete="$FOUND_MAKE" 18464 path="${complete%% *}" 18465 tmp="$complete EOL" 18466 arguments="${tmp#* }" 18467 18468 # Input might be given as Windows format, start by converting to 18469 # unix format. 18470 new_path=`$CYGPATH -u "$path"` 18471 18472 # Now try to locate executable using which 18473 new_path=`$WHICH "$new_path" 2> /dev/null` 18474 # bat and cmd files are not always considered executable in cygwin causing which 18475 # to not find them 18476 if test "x$new_path" = x \ 18477 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18478 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18479 new_path=`$CYGPATH -u "$path"` 18480 fi 18481 if test "x$new_path" = x; then 18482 # Oops. Which didn't find the executable. 18483 # The splitting of arguments from the executable at a space might have been incorrect, 18484 # since paths with space are more likely in Windows. Give it another try with the whole 18485 # argument. 18486 path="$complete" 18487 arguments="EOL" 18488 new_path=`$CYGPATH -u "$path"` 18489 new_path=`$WHICH "$new_path" 2> /dev/null` 18490 # bat and cmd files are not always considered executable in cygwin causing which 18491 # to not find them 18492 if test "x$new_path" = x \ 18493 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18494 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18495 new_path=`$CYGPATH -u "$path"` 18496 fi 18497 if test "x$new_path" = x; then 18498 # It's still not found. Now this is an unrecoverable error. 18499 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18500 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18501 has_space=`$ECHO "$complete" | $GREP " "` 18502 if test "x$has_space" != x; then 18503 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18504 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18505 fi 18506 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18507 fi 18508 fi 18509 18510 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18511 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18512 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18513 # "foo.exe" is OK but "foo" is an error. 18514 # 18515 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18516 # It is also a way to make sure we got the proper file name for the real test later on. 18517 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18518 if test "x$test_shortpath" = x; then 18519 # Short path failed, file does not exist as specified. 18520 # Try adding .exe or .cmd 18521 if test -f "${new_path}.exe"; then 18522 input_to_shortpath="${new_path}.exe" 18523 elif test -f "${new_path}.cmd"; then 18524 input_to_shortpath="${new_path}.cmd" 18525 else 18526 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18527 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18528 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18529 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18530 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18531 fi 18532 else 18533 input_to_shortpath="$new_path" 18534 fi 18535 18536 # Call helper function which possibly converts this using DOS-style short mode. 18537 # If so, the updated path is stored in $new_path. 18538 new_path="$input_to_shortpath" 18539 18540 input_path="$input_to_shortpath" 18541 # Check if we need to convert this using DOS-style short mode. If the path 18542 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18543 # take no chances and rewrite it. 18544 # Note: m4 eats our [], so we need to use [ and ] instead. 18545 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18546 if test "x$has_forbidden_chars" != x; then 18547 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18548 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18549 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18550 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18551 # Going to short mode and back again did indeed matter. Since short mode is 18552 # case insensitive, let's make it lowercase to improve readability. 18553 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18554 # Now convert it back to Unix-style (cygpath) 18555 input_path=`$CYGPATH -u "$shortmode_path"` 18556 new_path="$input_path" 18557 fi 18558 fi 18559 18560 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18561 if test "x$test_cygdrive_prefix" = x; then 18562 # As a simple fix, exclude /usr/bin since it's not a real path. 18563 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18564 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18565 # a path prefixed by /cygdrive for fixpath to work. 18566 new_path="$CYGWIN_ROOT_PATH$input_path" 18567 fi 18568 fi 18569 18570 # remove trailing .exe if any 18571 new_path="${new_path/%.exe/}" 18572 18573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18574 18575 # First separate the path from the arguments. This will split at the first 18576 # space. 18577 complete="$FOUND_MAKE" 18578 path="${complete%% *}" 18579 tmp="$complete EOL" 18580 arguments="${tmp#* }" 18581 18582 # Input might be given as Windows format, start by converting to 18583 # unix format. 18584 new_path="$path" 18585 18586 windows_path="$new_path" 18587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18588 unix_path=`$CYGPATH -u "$windows_path"` 18589 new_path="$unix_path" 18590 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18591 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18592 new_path="$unix_path" 18593 fi 18594 18595 18596 # Now try to locate executable using which 18597 new_path=`$WHICH "$new_path" 2> /dev/null` 18598 18599 if test "x$new_path" = x; then 18600 # Oops. Which didn't find the executable. 18601 # The splitting of arguments from the executable at a space might have been incorrect, 18602 # since paths with space are more likely in Windows. Give it another try with the whole 18603 # argument. 18604 path="$complete" 18605 arguments="EOL" 18606 new_path="$path" 18607 18608 windows_path="$new_path" 18609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18610 unix_path=`$CYGPATH -u "$windows_path"` 18611 new_path="$unix_path" 18612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18613 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18614 new_path="$unix_path" 18615 fi 18616 18617 18618 new_path=`$WHICH "$new_path" 2> /dev/null` 18619 # bat and cmd files are not always considered executable in MSYS causing which 18620 # to not find them 18621 if test "x$new_path" = x \ 18622 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18623 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18624 new_path="$path" 18625 18626 windows_path="$new_path" 18627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18628 unix_path=`$CYGPATH -u "$windows_path"` 18629 new_path="$unix_path" 18630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18631 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18632 new_path="$unix_path" 18633 fi 18634 18635 fi 18636 18637 if test "x$new_path" = x; then 18638 # It's still not found. Now this is an unrecoverable error. 18639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18640 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18641 has_space=`$ECHO "$complete" | $GREP " "` 18642 if test "x$has_space" != x; then 18643 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18644 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18645 fi 18646 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18647 fi 18648 fi 18649 18650 # Now new_path has a complete unix path to the binary 18651 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18652 # Keep paths in /bin as-is, but remove trailing .exe if any 18653 new_path="${new_path/%.exe/}" 18654 # Do not save /bin paths to all_fixpath_prefixes! 18655 else 18656 # Not in mixed or Windows style, start by that. 18657 new_path=`cmd //c echo $new_path` 18658 18659 input_path="$new_path" 18660 # Check if we need to convert this using DOS-style short mode. If the path 18661 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18662 # take no chances and rewrite it. 18663 # Note: m4 eats our [], so we need to use [ and ] instead. 18664 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18665 if test "x$has_forbidden_chars" != x; then 18666 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18667 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18668 fi 18669 18670 # Output is in $new_path 18671 18672 windows_path="$new_path" 18673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18674 unix_path=`$CYGPATH -u "$windows_path"` 18675 new_path="$unix_path" 18676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18678 new_path="$unix_path" 18679 fi 18680 18681 # remove trailing .exe if any 18682 new_path="${new_path/%.exe/}" 18683 18684 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18685 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18686 fi 18687 18688 else 18689 # We're on a unix platform. Hooray! :) 18690 # First separate the path from the arguments. This will split at the first 18691 # space. 18692 complete="$FOUND_MAKE" 18693 path="${complete%% *}" 18694 tmp="$complete EOL" 18695 arguments="${tmp#* }" 18696 18697 # Cannot rely on the command "which" here since it doesn't always work. 18698 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18699 if test -z "$is_absolute_path"; then 18700 # Path to executable is not absolute. Find it. 18701 IFS_save="$IFS" 18702 IFS=: 18703 for p in $PATH; do 18704 if test -f "$p/$path" && test -x "$p/$path"; then 18705 new_path="$p/$path" 18706 break 18707 fi 18708 done 18709 IFS="$IFS_save" 18710 else 18711 # This is an absolute path, we can use it without further modifications. 18712 new_path="$path" 18713 fi 18714 18715 if test "x$new_path" = x; then 18716 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18717 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18718 has_space=`$ECHO "$complete" | $GREP " "` 18719 if test "x$has_space" != x; then 18720 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18721 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18722 fi 18723 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18724 fi 18725 fi 18726 18727 # Now join together the path and the arguments once again 18728 if test "x$arguments" != xEOL; then 18729 new_complete="$new_path ${arguments% *}" 18730 else 18731 new_complete="$new_path" 18732 fi 18733 18734 if test "x$complete" != "x$new_complete"; then 18735 FOUND_MAKE="$new_complete" 18736 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18737 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18738 fi 18739 fi 18740 18741 fi 18742 fi 18743 fi 18744 fi 18745 18746 if test "x$FOUND_MAKE" = x; then 18747 for ac_prog in make 18748 do 18749 # Extract the first word of "$ac_prog", so it can be a program name with args. 18750 set dummy $ac_prog; ac_word=$2 18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18752 $as_echo_n "checking for $ac_word... " >&6; } 18753 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 18754 $as_echo_n "(cached) " >&6 18755 else 18756 case $CHECK_TOOLSDIR_MAKE in 18757 [\\/]* | ?:[\\/]*) 18758 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 18759 ;; 18760 *) 18761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18762 for as_dir in $PATH 18763 do 18764 IFS=$as_save_IFS 18765 test -z "$as_dir" && as_dir=. 18766 for ac_exec_ext in '' $ac_executable_extensions; do 18767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18768 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 18769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18770 break 2 18771 fi 18772 done 18773 done 18774 IFS=$as_save_IFS 18775 18776 ;; 18777 esac 18778 fi 18779 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 18780 if test -n "$CHECK_TOOLSDIR_MAKE"; then 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 18782 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 18783 else 18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18785 $as_echo "no" >&6; } 18786 fi 18787 18788 18789 test -n "$CHECK_TOOLSDIR_MAKE" && break 18790 done 18791 18792 18793 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 18794 DESCRIPTION="make in tools-dir" 18795 18796 # On Cygwin, we require a newer version of make than on other platforms 18797 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18798 MAKE_VERSION_EXPR="-e 4\." 18799 MAKE_REQUIRED_VERSION="4.0" 18800 else 18801 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18802 MAKE_REQUIRED_VERSION="3.81" 18803 fi 18804 18805 if test "x$MAKE_CANDIDATE" != x; then 18806 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18807 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18808 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18809 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18810 if test "x$IS_GNU_MAKE" = x; then 18811 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18812 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18813 else 18814 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18815 if test "x$IS_MODERN_MAKE" = x; then 18816 { $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 18817 $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;} 18818 else 18819 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18821 MAKE_EXPECTED_ENV='cygwin' 18822 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18823 MAKE_EXPECTED_ENV='msys' 18824 else 18825 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18826 fi 18827 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18828 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18829 else 18830 # Not relevant for non-Windows 18831 IS_MAKE_CORRECT_ENV=true 18832 fi 18833 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18834 { $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 18835 $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;} 18836 else 18837 FOUND_MAKE=$MAKE_CANDIDATE 18838 18839 # Only process if variable expands to non-empty 18840 18841 if test "x$FOUND_MAKE" != x; then 18842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18843 18844 # First separate the path from the arguments. This will split at the first 18845 # space. 18846 complete="$FOUND_MAKE" 18847 path="${complete%% *}" 18848 tmp="$complete EOL" 18849 arguments="${tmp#* }" 18850 18851 # Input might be given as Windows format, start by converting to 18852 # unix format. 18853 new_path=`$CYGPATH -u "$path"` 18854 18855 # Now try to locate executable using which 18856 new_path=`$WHICH "$new_path" 2> /dev/null` 18857 # bat and cmd files are not always considered executable in cygwin causing which 18858 # to not find them 18859 if test "x$new_path" = x \ 18860 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18861 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18862 new_path=`$CYGPATH -u "$path"` 18863 fi 18864 if test "x$new_path" = x; then 18865 # Oops. Which didn't find the executable. 18866 # The splitting of arguments from the executable at a space might have been incorrect, 18867 # since paths with space are more likely in Windows. Give it another try with the whole 18868 # argument. 18869 path="$complete" 18870 arguments="EOL" 18871 new_path=`$CYGPATH -u "$path"` 18872 new_path=`$WHICH "$new_path" 2> /dev/null` 18873 # bat and cmd files are not always considered executable in cygwin causing which 18874 # to not find them 18875 if test "x$new_path" = x \ 18876 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18877 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18878 new_path=`$CYGPATH -u "$path"` 18879 fi 18880 if test "x$new_path" = x; then 18881 # It's still not found. Now this is an unrecoverable error. 18882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18883 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18884 has_space=`$ECHO "$complete" | $GREP " "` 18885 if test "x$has_space" != x; then 18886 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18887 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18888 fi 18889 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18890 fi 18891 fi 18892 18893 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18894 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18895 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18896 # "foo.exe" is OK but "foo" is an error. 18897 # 18898 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18899 # It is also a way to make sure we got the proper file name for the real test later on. 18900 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18901 if test "x$test_shortpath" = x; then 18902 # Short path failed, file does not exist as specified. 18903 # Try adding .exe or .cmd 18904 if test -f "${new_path}.exe"; then 18905 input_to_shortpath="${new_path}.exe" 18906 elif test -f "${new_path}.cmd"; then 18907 input_to_shortpath="${new_path}.cmd" 18908 else 18909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18910 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18911 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18912 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18913 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18914 fi 18915 else 18916 input_to_shortpath="$new_path" 18917 fi 18918 18919 # Call helper function which possibly converts this using DOS-style short mode. 18920 # If so, the updated path is stored in $new_path. 18921 new_path="$input_to_shortpath" 18922 18923 input_path="$input_to_shortpath" 18924 # Check if we need to convert this using DOS-style short mode. If the path 18925 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18926 # take no chances and rewrite it. 18927 # Note: m4 eats our [], so we need to use [ and ] instead. 18928 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18929 if test "x$has_forbidden_chars" != x; then 18930 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18931 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18932 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18933 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18934 # Going to short mode and back again did indeed matter. Since short mode is 18935 # case insensitive, let's make it lowercase to improve readability. 18936 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18937 # Now convert it back to Unix-style (cygpath) 18938 input_path=`$CYGPATH -u "$shortmode_path"` 18939 new_path="$input_path" 18940 fi 18941 fi 18942 18943 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18944 if test "x$test_cygdrive_prefix" = x; then 18945 # As a simple fix, exclude /usr/bin since it's not a real path. 18946 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18947 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18948 # a path prefixed by /cygdrive for fixpath to work. 18949 new_path="$CYGWIN_ROOT_PATH$input_path" 18950 fi 18951 fi 18952 18953 # remove trailing .exe if any 18954 new_path="${new_path/%.exe/}" 18955 18956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18957 18958 # First separate the path from the arguments. This will split at the first 18959 # space. 18960 complete="$FOUND_MAKE" 18961 path="${complete%% *}" 18962 tmp="$complete EOL" 18963 arguments="${tmp#* }" 18964 18965 # Input might be given as Windows format, start by converting to 18966 # unix format. 18967 new_path="$path" 18968 18969 windows_path="$new_path" 18970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18971 unix_path=`$CYGPATH -u "$windows_path"` 18972 new_path="$unix_path" 18973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18975 new_path="$unix_path" 18976 fi 18977 18978 18979 # Now try to locate executable using which 18980 new_path=`$WHICH "$new_path" 2> /dev/null` 18981 18982 if test "x$new_path" = x; then 18983 # Oops. Which didn't find the executable. 18984 # The splitting of arguments from the executable at a space might have been incorrect, 18985 # since paths with space are more likely in Windows. Give it another try with the whole 18986 # argument. 18987 path="$complete" 18988 arguments="EOL" 18989 new_path="$path" 18990 18991 windows_path="$new_path" 18992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18993 unix_path=`$CYGPATH -u "$windows_path"` 18994 new_path="$unix_path" 18995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18997 new_path="$unix_path" 18998 fi 18999 19000 19001 new_path=`$WHICH "$new_path" 2> /dev/null` 19002 # bat and cmd files are not always considered executable in MSYS causing which 19003 # to not find them 19004 if test "x$new_path" = x \ 19005 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19006 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19007 new_path="$path" 19008 19009 windows_path="$new_path" 19010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19011 unix_path=`$CYGPATH -u "$windows_path"` 19012 new_path="$unix_path" 19013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19014 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19015 new_path="$unix_path" 19016 fi 19017 19018 fi 19019 19020 if test "x$new_path" = x; then 19021 # It's still not found. Now this is an unrecoverable error. 19022 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19023 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19024 has_space=`$ECHO "$complete" | $GREP " "` 19025 if test "x$has_space" != x; then 19026 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19027 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19028 fi 19029 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19030 fi 19031 fi 19032 19033 # Now new_path has a complete unix path to the binary 19034 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19035 # Keep paths in /bin as-is, but remove trailing .exe if any 19036 new_path="${new_path/%.exe/}" 19037 # Do not save /bin paths to all_fixpath_prefixes! 19038 else 19039 # Not in mixed or Windows style, start by that. 19040 new_path=`cmd //c echo $new_path` 19041 19042 input_path="$new_path" 19043 # Check if we need to convert this using DOS-style short mode. If the path 19044 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19045 # take no chances and rewrite it. 19046 # Note: m4 eats our [], so we need to use [ and ] instead. 19047 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19048 if test "x$has_forbidden_chars" != x; then 19049 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19050 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19051 fi 19052 19053 # Output is in $new_path 19054 19055 windows_path="$new_path" 19056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19057 unix_path=`$CYGPATH -u "$windows_path"` 19058 new_path="$unix_path" 19059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19060 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19061 new_path="$unix_path" 19062 fi 19063 19064 # remove trailing .exe if any 19065 new_path="${new_path/%.exe/}" 19066 19067 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19068 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19069 fi 19070 19071 else 19072 # We're on a unix platform. Hooray! :) 19073 # First separate the path from the arguments. This will split at the first 19074 # space. 19075 complete="$FOUND_MAKE" 19076 path="${complete%% *}" 19077 tmp="$complete EOL" 19078 arguments="${tmp#* }" 19079 19080 # Cannot rely on the command "which" here since it doesn't always work. 19081 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19082 if test -z "$is_absolute_path"; then 19083 # Path to executable is not absolute. Find it. 19084 IFS_save="$IFS" 19085 IFS=: 19086 for p in $PATH; do 19087 if test -f "$p/$path" && test -x "$p/$path"; then 19088 new_path="$p/$path" 19089 break 19090 fi 19091 done 19092 IFS="$IFS_save" 19093 else 19094 # This is an absolute path, we can use it without further modifications. 19095 new_path="$path" 19096 fi 19097 19098 if test "x$new_path" = x; then 19099 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19100 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19101 has_space=`$ECHO "$complete" | $GREP " "` 19102 if test "x$has_space" != x; then 19103 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19104 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19105 fi 19106 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19107 fi 19108 fi 19109 19110 # Now join together the path and the arguments once again 19111 if test "x$arguments" != xEOL; then 19112 new_complete="$new_path ${arguments% *}" 19113 else 19114 new_complete="$new_path" 19115 fi 19116 19117 if test "x$complete" != "x$new_complete"; then 19118 FOUND_MAKE="$new_complete" 19119 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19120 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19121 fi 19122 fi 19123 19124 fi 19125 fi 19126 fi 19127 fi 19128 19129 fi 19130 PATH=$OLD_PATH 19131 fi 19132 fi 19133 19134 if test "x$FOUND_MAKE" = x; then 19135 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 19136 fi 19137 19138 else 19139 # The variable is set, but is it from the command line or the environment? 19140 19141 # Try to remove the string !MAKE! from our list. 19142 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19143 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19144 # If it failed, the variable was not from the command line. Ignore it, 19145 # but warn the user (except for BASH, which is always set by the calling BASH). 19146 if test "xMAKE" != xBASH; then 19147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19148 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19149 fi 19150 # Try to locate tool using the code snippet 19151 19152 # Try our hardest to locate a correct version of GNU make 19153 for ac_prog in gmake 19154 do 19155 # Extract the first word of "$ac_prog", so it can be a program name with args. 19156 set dummy $ac_prog; ac_word=$2 19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19158 $as_echo_n "checking for $ac_word... " >&6; } 19159 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19160 $as_echo_n "(cached) " >&6 19161 else 19162 case $CHECK_GMAKE in 19163 [\\/]* | ?:[\\/]*) 19164 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19165 ;; 19166 *) 19167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19168 for as_dir in $PATH 19169 do 19170 IFS=$as_save_IFS 19171 test -z "$as_dir" && as_dir=. 19172 for ac_exec_ext in '' $ac_executable_extensions; do 19173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19174 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19176 break 2 19177 fi 19178 done 19179 done 19180 IFS=$as_save_IFS 19181 19182 ;; 19183 esac 19184 fi 19185 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19186 if test -n "$CHECK_GMAKE"; then 19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19188 $as_echo "$CHECK_GMAKE" >&6; } 19189 else 19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19191 $as_echo "no" >&6; } 19192 fi 19193 19194 19195 test -n "$CHECK_GMAKE" && break 19196 done 19197 19198 19199 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19200 DESCRIPTION="gmake in PATH" 19201 19202 # On Cygwin, we require a newer version of make than on other platforms 19203 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19204 MAKE_VERSION_EXPR="-e 4\." 19205 MAKE_REQUIRED_VERSION="4.0" 19206 else 19207 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19208 MAKE_REQUIRED_VERSION="3.81" 19209 fi 19210 19211 if test "x$MAKE_CANDIDATE" != x; then 19212 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19213 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19214 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19215 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19216 if test "x$IS_GNU_MAKE" = x; then 19217 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19218 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19219 else 19220 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19221 if test "x$IS_MODERN_MAKE" = x; then 19222 { $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 19223 $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;} 19224 else 19225 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19227 MAKE_EXPECTED_ENV='cygwin' 19228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19229 MAKE_EXPECTED_ENV='msys' 19230 else 19231 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19232 fi 19233 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19234 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19235 else 19236 # Not relevant for non-Windows 19237 IS_MAKE_CORRECT_ENV=true 19238 fi 19239 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19240 { $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 19241 $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;} 19242 else 19243 FOUND_MAKE=$MAKE_CANDIDATE 19244 19245 # Only process if variable expands to non-empty 19246 19247 if test "x$FOUND_MAKE" != x; then 19248 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; 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=`$CYGPATH -u "$path"` 19260 19261 # Now try to locate executable using which 19262 new_path=`$WHICH "$new_path" 2> /dev/null` 19263 # bat and cmd files are not always considered executable in cygwin causing which 19264 # to not find them 19265 if test "x$new_path" = x \ 19266 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19267 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19268 new_path=`$CYGPATH -u "$path"` 19269 fi 19270 if test "x$new_path" = x; then 19271 # Oops. Which didn't find the executable. 19272 # The splitting of arguments from the executable at a space might have been incorrect, 19273 # since paths with space are more likely in Windows. Give it another try with the whole 19274 # argument. 19275 path="$complete" 19276 arguments="EOL" 19277 new_path=`$CYGPATH -u "$path"` 19278 new_path=`$WHICH "$new_path" 2> /dev/null` 19279 # bat and cmd files are not always considered executable in cygwin causing which 19280 # to not find them 19281 if test "x$new_path" = x \ 19282 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19283 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19284 new_path=`$CYGPATH -u "$path"` 19285 fi 19286 if test "x$new_path" = x; then 19287 # It's still not found. Now this is an unrecoverable error. 19288 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19289 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19290 has_space=`$ECHO "$complete" | $GREP " "` 19291 if test "x$has_space" != x; then 19292 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19293 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19294 fi 19295 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19296 fi 19297 fi 19298 19299 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19300 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19301 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19302 # "foo.exe" is OK but "foo" is an error. 19303 # 19304 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19305 # It is also a way to make sure we got the proper file name for the real test later on. 19306 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19307 if test "x$test_shortpath" = x; then 19308 # Short path failed, file does not exist as specified. 19309 # Try adding .exe or .cmd 19310 if test -f "${new_path}.exe"; then 19311 input_to_shortpath="${new_path}.exe" 19312 elif test -f "${new_path}.cmd"; then 19313 input_to_shortpath="${new_path}.cmd" 19314 else 19315 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19316 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19317 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19318 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19319 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19320 fi 19321 else 19322 input_to_shortpath="$new_path" 19323 fi 19324 19325 # Call helper function which possibly converts this using DOS-style short mode. 19326 # If so, the updated path is stored in $new_path. 19327 new_path="$input_to_shortpath" 19328 19329 input_path="$input_to_shortpath" 19330 # Check if we need to convert this using DOS-style short mode. If the path 19331 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19332 # take no chances and rewrite it. 19333 # Note: m4 eats our [], so we need to use [ and ] instead. 19334 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19335 if test "x$has_forbidden_chars" != x; then 19336 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19337 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19338 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19339 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19340 # Going to short mode and back again did indeed matter. Since short mode is 19341 # case insensitive, let's make it lowercase to improve readability. 19342 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19343 # Now convert it back to Unix-style (cygpath) 19344 input_path=`$CYGPATH -u "$shortmode_path"` 19345 new_path="$input_path" 19346 fi 19347 fi 19348 19349 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19350 if test "x$test_cygdrive_prefix" = x; then 19351 # As a simple fix, exclude /usr/bin since it's not a real path. 19352 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19353 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19354 # a path prefixed by /cygdrive for fixpath to work. 19355 new_path="$CYGWIN_ROOT_PATH$input_path" 19356 fi 19357 fi 19358 19359 # remove trailing .exe if any 19360 new_path="${new_path/%.exe/}" 19361 19362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19363 19364 # First separate the path from the arguments. This will split at the first 19365 # space. 19366 complete="$FOUND_MAKE" 19367 path="${complete%% *}" 19368 tmp="$complete EOL" 19369 arguments="${tmp#* }" 19370 19371 # Input might be given as Windows format, start by converting to 19372 # unix format. 19373 new_path="$path" 19374 19375 windows_path="$new_path" 19376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19377 unix_path=`$CYGPATH -u "$windows_path"` 19378 new_path="$unix_path" 19379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19381 new_path="$unix_path" 19382 fi 19383 19384 19385 # Now try to locate executable using which 19386 new_path=`$WHICH "$new_path" 2> /dev/null` 19387 19388 if test "x$new_path" = x; then 19389 # Oops. Which didn't find the executable. 19390 # The splitting of arguments from the executable at a space might have been incorrect, 19391 # since paths with space are more likely in Windows. Give it another try with the whole 19392 # argument. 19393 path="$complete" 19394 arguments="EOL" 19395 new_path="$path" 19396 19397 windows_path="$new_path" 19398 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19399 unix_path=`$CYGPATH -u "$windows_path"` 19400 new_path="$unix_path" 19401 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19402 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19403 new_path="$unix_path" 19404 fi 19405 19406 19407 new_path=`$WHICH "$new_path" 2> /dev/null` 19408 # bat and cmd files are not always considered executable in MSYS causing which 19409 # to not find them 19410 if test "x$new_path" = x \ 19411 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19412 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19413 new_path="$path" 19414 19415 windows_path="$new_path" 19416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19417 unix_path=`$CYGPATH -u "$windows_path"` 19418 new_path="$unix_path" 19419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19420 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19421 new_path="$unix_path" 19422 fi 19423 19424 fi 19425 19426 if test "x$new_path" = x; then 19427 # It's still not found. Now this is an unrecoverable error. 19428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19429 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19430 has_space=`$ECHO "$complete" | $GREP " "` 19431 if test "x$has_space" != x; then 19432 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19433 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19434 fi 19435 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19436 fi 19437 fi 19438 19439 # Now new_path has a complete unix path to the binary 19440 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19441 # Keep paths in /bin as-is, but remove trailing .exe if any 19442 new_path="${new_path/%.exe/}" 19443 # Do not save /bin paths to all_fixpath_prefixes! 19444 else 19445 # Not in mixed or Windows style, start by that. 19446 new_path=`cmd //c echo $new_path` 19447 19448 input_path="$new_path" 19449 # Check if we need to convert this using DOS-style short mode. If the path 19450 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19451 # take no chances and rewrite it. 19452 # Note: m4 eats our [], so we need to use [ and ] instead. 19453 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19454 if test "x$has_forbidden_chars" != x; then 19455 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19456 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19457 fi 19458 19459 # Output is in $new_path 19460 19461 windows_path="$new_path" 19462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19463 unix_path=`$CYGPATH -u "$windows_path"` 19464 new_path="$unix_path" 19465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19466 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19467 new_path="$unix_path" 19468 fi 19469 19470 # remove trailing .exe if any 19471 new_path="${new_path/%.exe/}" 19472 19473 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19474 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19475 fi 19476 19477 else 19478 # We're on a unix platform. Hooray! :) 19479 # First separate the path from the arguments. This will split at the first 19480 # space. 19481 complete="$FOUND_MAKE" 19482 path="${complete%% *}" 19483 tmp="$complete EOL" 19484 arguments="${tmp#* }" 19485 19486 # Cannot rely on the command "which" here since it doesn't always work. 19487 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19488 if test -z "$is_absolute_path"; then 19489 # Path to executable is not absolute. Find it. 19490 IFS_save="$IFS" 19491 IFS=: 19492 for p in $PATH; do 19493 if test -f "$p/$path" && test -x "$p/$path"; then 19494 new_path="$p/$path" 19495 break 19496 fi 19497 done 19498 IFS="$IFS_save" 19499 else 19500 # This is an absolute path, we can use it without further modifications. 19501 new_path="$path" 19502 fi 19503 19504 if test "x$new_path" = x; then 19505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19506 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19507 has_space=`$ECHO "$complete" | $GREP " "` 19508 if test "x$has_space" != x; then 19509 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19510 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19511 fi 19512 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19513 fi 19514 fi 19515 19516 # Now join together the path and the arguments once again 19517 if test "x$arguments" != xEOL; then 19518 new_complete="$new_path ${arguments% *}" 19519 else 19520 new_complete="$new_path" 19521 fi 19522 19523 if test "x$complete" != "x$new_complete"; then 19524 FOUND_MAKE="$new_complete" 19525 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19526 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19527 fi 19528 fi 19529 19530 fi 19531 fi 19532 fi 19533 fi 19534 19535 19536 if test "x$FOUND_MAKE" = x; then 19537 for ac_prog in make 19538 do 19539 # Extract the first word of "$ac_prog", so it can be a program name with args. 19540 set dummy $ac_prog; ac_word=$2 19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19542 $as_echo_n "checking for $ac_word... " >&6; } 19543 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19544 $as_echo_n "(cached) " >&6 19545 else 19546 case $CHECK_MAKE in 19547 [\\/]* | ?:[\\/]*) 19548 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19549 ;; 19550 *) 19551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19552 for as_dir in $PATH 19553 do 19554 IFS=$as_save_IFS 19555 test -z "$as_dir" && as_dir=. 19556 for ac_exec_ext in '' $ac_executable_extensions; do 19557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19558 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19560 break 2 19561 fi 19562 done 19563 done 19564 IFS=$as_save_IFS 19565 19566 ;; 19567 esac 19568 fi 19569 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19570 if test -n "$CHECK_MAKE"; then 19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19572 $as_echo "$CHECK_MAKE" >&6; } 19573 else 19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19575 $as_echo "no" >&6; } 19576 fi 19577 19578 19579 test -n "$CHECK_MAKE" && break 19580 done 19581 19582 19583 MAKE_CANDIDATE=""$CHECK_MAKE"" 19584 DESCRIPTION="make in PATH" 19585 19586 # On Cygwin, we require a newer version of make than on other platforms 19587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19588 MAKE_VERSION_EXPR="-e 4\." 19589 MAKE_REQUIRED_VERSION="4.0" 19590 else 19591 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19592 MAKE_REQUIRED_VERSION="3.81" 19593 fi 19594 19595 if test "x$MAKE_CANDIDATE" != x; then 19596 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19597 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19598 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19599 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19600 if test "x$IS_GNU_MAKE" = x; then 19601 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19602 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19603 else 19604 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19605 if test "x$IS_MODERN_MAKE" = x; then 19606 { $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 19607 $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;} 19608 else 19609 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19611 MAKE_EXPECTED_ENV='cygwin' 19612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19613 MAKE_EXPECTED_ENV='msys' 19614 else 19615 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19616 fi 19617 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19618 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19619 else 19620 # Not relevant for non-Windows 19621 IS_MAKE_CORRECT_ENV=true 19622 fi 19623 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19624 { $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 19625 $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;} 19626 else 19627 FOUND_MAKE=$MAKE_CANDIDATE 19628 19629 # Only process if variable expands to non-empty 19630 19631 if test "x$FOUND_MAKE" != x; then 19632 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19633 19634 # First separate the path from the arguments. This will split at the first 19635 # space. 19636 complete="$FOUND_MAKE" 19637 path="${complete%% *}" 19638 tmp="$complete EOL" 19639 arguments="${tmp#* }" 19640 19641 # Input might be given as Windows format, start by converting to 19642 # unix format. 19643 new_path=`$CYGPATH -u "$path"` 19644 19645 # Now try to locate executable using which 19646 new_path=`$WHICH "$new_path" 2> /dev/null` 19647 # bat and cmd files are not always considered executable in cygwin causing which 19648 # to not find them 19649 if test "x$new_path" = x \ 19650 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19651 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19652 new_path=`$CYGPATH -u "$path"` 19653 fi 19654 if test "x$new_path" = x; then 19655 # Oops. Which didn't find the executable. 19656 # The splitting of arguments from the executable at a space might have been incorrect, 19657 # since paths with space are more likely in Windows. Give it another try with the whole 19658 # argument. 19659 path="$complete" 19660 arguments="EOL" 19661 new_path=`$CYGPATH -u "$path"` 19662 new_path=`$WHICH "$new_path" 2> /dev/null` 19663 # bat and cmd files are not always considered executable in cygwin causing which 19664 # to not find them 19665 if test "x$new_path" = x \ 19666 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19667 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19668 new_path=`$CYGPATH -u "$path"` 19669 fi 19670 if test "x$new_path" = x; then 19671 # It's still not found. Now this is an unrecoverable error. 19672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19673 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19674 has_space=`$ECHO "$complete" | $GREP " "` 19675 if test "x$has_space" != x; then 19676 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19677 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19678 fi 19679 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19680 fi 19681 fi 19682 19683 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19684 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19685 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19686 # "foo.exe" is OK but "foo" is an error. 19687 # 19688 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19689 # It is also a way to make sure we got the proper file name for the real test later on. 19690 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19691 if test "x$test_shortpath" = x; then 19692 # Short path failed, file does not exist as specified. 19693 # Try adding .exe or .cmd 19694 if test -f "${new_path}.exe"; then 19695 input_to_shortpath="${new_path}.exe" 19696 elif test -f "${new_path}.cmd"; then 19697 input_to_shortpath="${new_path}.cmd" 19698 else 19699 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19700 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19701 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19702 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19703 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19704 fi 19705 else 19706 input_to_shortpath="$new_path" 19707 fi 19708 19709 # Call helper function which possibly converts this using DOS-style short mode. 19710 # If so, the updated path is stored in $new_path. 19711 new_path="$input_to_shortpath" 19712 19713 input_path="$input_to_shortpath" 19714 # Check if we need to convert this using DOS-style short mode. If the path 19715 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19716 # take no chances and rewrite it. 19717 # Note: m4 eats our [], so we need to use [ and ] instead. 19718 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19719 if test "x$has_forbidden_chars" != x; then 19720 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19721 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19722 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19723 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19724 # Going to short mode and back again did indeed matter. Since short mode is 19725 # case insensitive, let's make it lowercase to improve readability. 19726 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19727 # Now convert it back to Unix-style (cygpath) 19728 input_path=`$CYGPATH -u "$shortmode_path"` 19729 new_path="$input_path" 19730 fi 19731 fi 19732 19733 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19734 if test "x$test_cygdrive_prefix" = x; then 19735 # As a simple fix, exclude /usr/bin since it's not a real path. 19736 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19737 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19738 # a path prefixed by /cygdrive for fixpath to work. 19739 new_path="$CYGWIN_ROOT_PATH$input_path" 19740 fi 19741 fi 19742 19743 # remove trailing .exe if any 19744 new_path="${new_path/%.exe/}" 19745 19746 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19747 19748 # First separate the path from the arguments. This will split at the first 19749 # space. 19750 complete="$FOUND_MAKE" 19751 path="${complete%% *}" 19752 tmp="$complete EOL" 19753 arguments="${tmp#* }" 19754 19755 # Input might be given as Windows format, start by converting to 19756 # unix format. 19757 new_path="$path" 19758 19759 windows_path="$new_path" 19760 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19761 unix_path=`$CYGPATH -u "$windows_path"` 19762 new_path="$unix_path" 19763 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19764 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19765 new_path="$unix_path" 19766 fi 19767 19768 19769 # Now try to locate executable using which 19770 new_path=`$WHICH "$new_path" 2> /dev/null` 19771 19772 if test "x$new_path" = x; then 19773 # Oops. Which didn't find the executable. 19774 # The splitting of arguments from the executable at a space might have been incorrect, 19775 # since paths with space are more likely in Windows. Give it another try with the whole 19776 # argument. 19777 path="$complete" 19778 arguments="EOL" 19779 new_path="$path" 19780 19781 windows_path="$new_path" 19782 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19783 unix_path=`$CYGPATH -u "$windows_path"` 19784 new_path="$unix_path" 19785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19786 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19787 new_path="$unix_path" 19788 fi 19789 19790 19791 new_path=`$WHICH "$new_path" 2> /dev/null` 19792 # bat and cmd files are not always considered executable in MSYS causing which 19793 # to not find them 19794 if test "x$new_path" = x \ 19795 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19796 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19797 new_path="$path" 19798 19799 windows_path="$new_path" 19800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19801 unix_path=`$CYGPATH -u "$windows_path"` 19802 new_path="$unix_path" 19803 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19804 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19805 new_path="$unix_path" 19806 fi 19807 19808 fi 19809 19810 if test "x$new_path" = x; then 19811 # It's still not found. Now this is an unrecoverable error. 19812 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19813 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19814 has_space=`$ECHO "$complete" | $GREP " "` 19815 if test "x$has_space" != x; then 19816 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19817 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19818 fi 19819 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19820 fi 19821 fi 19822 19823 # Now new_path has a complete unix path to the binary 19824 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19825 # Keep paths in /bin as-is, but remove trailing .exe if any 19826 new_path="${new_path/%.exe/}" 19827 # Do not save /bin paths to all_fixpath_prefixes! 19828 else 19829 # Not in mixed or Windows style, start by that. 19830 new_path=`cmd //c echo $new_path` 19831 19832 input_path="$new_path" 19833 # Check if we need to convert this using DOS-style short mode. If the path 19834 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19835 # take no chances and rewrite it. 19836 # Note: m4 eats our [], so we need to use [ and ] instead. 19837 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19838 if test "x$has_forbidden_chars" != x; then 19839 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19840 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19841 fi 19842 19843 # Output is in $new_path 19844 19845 windows_path="$new_path" 19846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19847 unix_path=`$CYGPATH -u "$windows_path"` 19848 new_path="$unix_path" 19849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19850 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19851 new_path="$unix_path" 19852 fi 19853 19854 # remove trailing .exe if any 19855 new_path="${new_path/%.exe/}" 19856 19857 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19858 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19859 fi 19860 19861 else 19862 # We're on a unix platform. Hooray! :) 19863 # First separate the path from the arguments. This will split at the first 19864 # space. 19865 complete="$FOUND_MAKE" 19866 path="${complete%% *}" 19867 tmp="$complete EOL" 19868 arguments="${tmp#* }" 19869 19870 # Cannot rely on the command "which" here since it doesn't always work. 19871 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19872 if test -z "$is_absolute_path"; then 19873 # Path to executable is not absolute. Find it. 19874 IFS_save="$IFS" 19875 IFS=: 19876 for p in $PATH; do 19877 if test -f "$p/$path" && test -x "$p/$path"; then 19878 new_path="$p/$path" 19879 break 19880 fi 19881 done 19882 IFS="$IFS_save" 19883 else 19884 # This is an absolute path, we can use it without further modifications. 19885 new_path="$path" 19886 fi 19887 19888 if test "x$new_path" = x; then 19889 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19890 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19891 has_space=`$ECHO "$complete" | $GREP " "` 19892 if test "x$has_space" != x; then 19893 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19894 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19895 fi 19896 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19897 fi 19898 fi 19899 19900 # Now join together the path and the arguments once again 19901 if test "x$arguments" != xEOL; then 19902 new_complete="$new_path ${arguments% *}" 19903 else 19904 new_complete="$new_path" 19905 fi 19906 19907 if test "x$complete" != "x$new_complete"; then 19908 FOUND_MAKE="$new_complete" 19909 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19910 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19911 fi 19912 fi 19913 19914 fi 19915 fi 19916 fi 19917 fi 19918 19919 fi 19920 19921 if test "x$FOUND_MAKE" = x; then 19922 if test "x$TOOLCHAIN_PATH" != x; then 19923 # We have a toolchain path, check that as well before giving up. 19924 OLD_PATH=$PATH 19925 PATH=$TOOLCHAIN_PATH:$PATH 19926 for ac_prog in gmake 19927 do 19928 # Extract the first word of "$ac_prog", so it can be a program name with args. 19929 set dummy $ac_prog; ac_word=$2 19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19931 $as_echo_n "checking for $ac_word... " >&6; } 19932 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 19933 $as_echo_n "(cached) " >&6 19934 else 19935 case $CHECK_TOOLSDIR_GMAKE in 19936 [\\/]* | ?:[\\/]*) 19937 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 19938 ;; 19939 *) 19940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19941 for as_dir in $PATH 19942 do 19943 IFS=$as_save_IFS 19944 test -z "$as_dir" && as_dir=. 19945 for ac_exec_ext in '' $ac_executable_extensions; do 19946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19947 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19949 break 2 19950 fi 19951 done 19952 done 19953 IFS=$as_save_IFS 19954 19955 ;; 19956 esac 19957 fi 19958 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 19959 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 19961 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 19962 else 19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19964 $as_echo "no" >&6; } 19965 fi 19966 19967 19968 test -n "$CHECK_TOOLSDIR_GMAKE" && break 19969 done 19970 19971 19972 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 19973 DESCRIPTION="gmake in tools-dir" 19974 19975 # On Cygwin, we require a newer version of make than on other platforms 19976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19977 MAKE_VERSION_EXPR="-e 4\." 19978 MAKE_REQUIRED_VERSION="4.0" 19979 else 19980 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19981 MAKE_REQUIRED_VERSION="3.81" 19982 fi 19983 19984 if test "x$MAKE_CANDIDATE" != x; then 19985 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19986 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19987 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19988 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19989 if test "x$IS_GNU_MAKE" = x; then 19990 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19991 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19992 else 19993 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19994 if test "x$IS_MODERN_MAKE" = x; then 19995 { $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 19996 $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;} 19997 else 19998 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20000 MAKE_EXPECTED_ENV='cygwin' 20001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20002 MAKE_EXPECTED_ENV='msys' 20003 else 20004 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20005 fi 20006 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20007 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20008 else 20009 # Not relevant for non-Windows 20010 IS_MAKE_CORRECT_ENV=true 20011 fi 20012 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20013 { $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 20014 $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;} 20015 else 20016 FOUND_MAKE=$MAKE_CANDIDATE 20017 20018 # Only process if variable expands to non-empty 20019 20020 if test "x$FOUND_MAKE" != x; then 20021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20022 20023 # First separate the path from the arguments. This will split at the first 20024 # space. 20025 complete="$FOUND_MAKE" 20026 path="${complete%% *}" 20027 tmp="$complete EOL" 20028 arguments="${tmp#* }" 20029 20030 # Input might be given as Windows format, start by converting to 20031 # unix format. 20032 new_path=`$CYGPATH -u "$path"` 20033 20034 # Now try to locate executable using which 20035 new_path=`$WHICH "$new_path" 2> /dev/null` 20036 # bat and cmd files are not always considered executable in cygwin causing which 20037 # to not find them 20038 if test "x$new_path" = x \ 20039 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20040 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20041 new_path=`$CYGPATH -u "$path"` 20042 fi 20043 if test "x$new_path" = x; then 20044 # Oops. Which didn't find the executable. 20045 # The splitting of arguments from the executable at a space might have been incorrect, 20046 # since paths with space are more likely in Windows. Give it another try with the whole 20047 # argument. 20048 path="$complete" 20049 arguments="EOL" 20050 new_path=`$CYGPATH -u "$path"` 20051 new_path=`$WHICH "$new_path" 2> /dev/null` 20052 # bat and cmd files are not always considered executable in cygwin causing which 20053 # to not find them 20054 if test "x$new_path" = x \ 20055 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20056 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20057 new_path=`$CYGPATH -u "$path"` 20058 fi 20059 if test "x$new_path" = x; then 20060 # It's still not found. Now this is an unrecoverable error. 20061 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20062 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20063 has_space=`$ECHO "$complete" | $GREP " "` 20064 if test "x$has_space" != x; then 20065 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20066 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20067 fi 20068 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20069 fi 20070 fi 20071 20072 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20073 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20074 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20075 # "foo.exe" is OK but "foo" is an error. 20076 # 20077 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20078 # It is also a way to make sure we got the proper file name for the real test later on. 20079 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20080 if test "x$test_shortpath" = x; then 20081 # Short path failed, file does not exist as specified. 20082 # Try adding .exe or .cmd 20083 if test -f "${new_path}.exe"; then 20084 input_to_shortpath="${new_path}.exe" 20085 elif test -f "${new_path}.cmd"; then 20086 input_to_shortpath="${new_path}.cmd" 20087 else 20088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20089 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20090 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20091 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20092 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20093 fi 20094 else 20095 input_to_shortpath="$new_path" 20096 fi 20097 20098 # Call helper function which possibly converts this using DOS-style short mode. 20099 # If so, the updated path is stored in $new_path. 20100 new_path="$input_to_shortpath" 20101 20102 input_path="$input_to_shortpath" 20103 # Check if we need to convert this using DOS-style short mode. If the path 20104 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20105 # take no chances and rewrite it. 20106 # Note: m4 eats our [], so we need to use [ and ] instead. 20107 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20108 if test "x$has_forbidden_chars" != x; then 20109 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20110 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20111 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20112 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20113 # Going to short mode and back again did indeed matter. Since short mode is 20114 # case insensitive, let's make it lowercase to improve readability. 20115 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20116 # Now convert it back to Unix-style (cygpath) 20117 input_path=`$CYGPATH -u "$shortmode_path"` 20118 new_path="$input_path" 20119 fi 20120 fi 20121 20122 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20123 if test "x$test_cygdrive_prefix" = x; then 20124 # As a simple fix, exclude /usr/bin since it's not a real path. 20125 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20126 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20127 # a path prefixed by /cygdrive for fixpath to work. 20128 new_path="$CYGWIN_ROOT_PATH$input_path" 20129 fi 20130 fi 20131 20132 # remove trailing .exe if any 20133 new_path="${new_path/%.exe/}" 20134 20135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20136 20137 # First separate the path from the arguments. This will split at the first 20138 # space. 20139 complete="$FOUND_MAKE" 20140 path="${complete%% *}" 20141 tmp="$complete EOL" 20142 arguments="${tmp#* }" 20143 20144 # Input might be given as Windows format, start by converting to 20145 # unix format. 20146 new_path="$path" 20147 20148 windows_path="$new_path" 20149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20150 unix_path=`$CYGPATH -u "$windows_path"` 20151 new_path="$unix_path" 20152 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20153 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20154 new_path="$unix_path" 20155 fi 20156 20157 20158 # Now try to locate executable using which 20159 new_path=`$WHICH "$new_path" 2> /dev/null` 20160 20161 if test "x$new_path" = x; then 20162 # Oops. Which didn't find the executable. 20163 # The splitting of arguments from the executable at a space might have been incorrect, 20164 # since paths with space are more likely in Windows. Give it another try with the whole 20165 # argument. 20166 path="$complete" 20167 arguments="EOL" 20168 new_path="$path" 20169 20170 windows_path="$new_path" 20171 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20172 unix_path=`$CYGPATH -u "$windows_path"` 20173 new_path="$unix_path" 20174 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20175 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20176 new_path="$unix_path" 20177 fi 20178 20179 20180 new_path=`$WHICH "$new_path" 2> /dev/null` 20181 # bat and cmd files are not always considered executable in MSYS causing which 20182 # to not find them 20183 if test "x$new_path" = x \ 20184 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20185 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20186 new_path="$path" 20187 20188 windows_path="$new_path" 20189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20190 unix_path=`$CYGPATH -u "$windows_path"` 20191 new_path="$unix_path" 20192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20193 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20194 new_path="$unix_path" 20195 fi 20196 20197 fi 20198 20199 if test "x$new_path" = x; then 20200 # It's still not found. Now this is an unrecoverable error. 20201 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20202 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20203 has_space=`$ECHO "$complete" | $GREP " "` 20204 if test "x$has_space" != x; then 20205 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20206 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20207 fi 20208 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20209 fi 20210 fi 20211 20212 # Now new_path has a complete unix path to the binary 20213 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20214 # Keep paths in /bin as-is, but remove trailing .exe if any 20215 new_path="${new_path/%.exe/}" 20216 # Do not save /bin paths to all_fixpath_prefixes! 20217 else 20218 # Not in mixed or Windows style, start by that. 20219 new_path=`cmd //c echo $new_path` 20220 20221 input_path="$new_path" 20222 # Check if we need to convert this using DOS-style short mode. If the path 20223 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20224 # take no chances and rewrite it. 20225 # Note: m4 eats our [], so we need to use [ and ] instead. 20226 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20227 if test "x$has_forbidden_chars" != x; then 20228 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20229 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20230 fi 20231 20232 # Output is in $new_path 20233 20234 windows_path="$new_path" 20235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20236 unix_path=`$CYGPATH -u "$windows_path"` 20237 new_path="$unix_path" 20238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20239 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20240 new_path="$unix_path" 20241 fi 20242 20243 # remove trailing .exe if any 20244 new_path="${new_path/%.exe/}" 20245 20246 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20247 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20248 fi 20249 20250 else 20251 # We're on a unix platform. Hooray! :) 20252 # First separate the path from the arguments. This will split at the first 20253 # space. 20254 complete="$FOUND_MAKE" 20255 path="${complete%% *}" 20256 tmp="$complete EOL" 20257 arguments="${tmp#* }" 20258 20259 # Cannot rely on the command "which" here since it doesn't always work. 20260 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20261 if test -z "$is_absolute_path"; then 20262 # Path to executable is not absolute. Find it. 20263 IFS_save="$IFS" 20264 IFS=: 20265 for p in $PATH; do 20266 if test -f "$p/$path" && test -x "$p/$path"; then 20267 new_path="$p/$path" 20268 break 20269 fi 20270 done 20271 IFS="$IFS_save" 20272 else 20273 # This is an absolute path, we can use it without further modifications. 20274 new_path="$path" 20275 fi 20276 20277 if test "x$new_path" = x; then 20278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20279 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20280 has_space=`$ECHO "$complete" | $GREP " "` 20281 if test "x$has_space" != x; then 20282 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20283 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20284 fi 20285 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20286 fi 20287 fi 20288 20289 # Now join together the path and the arguments once again 20290 if test "x$arguments" != xEOL; then 20291 new_complete="$new_path ${arguments% *}" 20292 else 20293 new_complete="$new_path" 20294 fi 20295 20296 if test "x$complete" != "x$new_complete"; then 20297 FOUND_MAKE="$new_complete" 20298 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20299 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20300 fi 20301 fi 20302 20303 fi 20304 fi 20305 fi 20306 fi 20307 20308 if test "x$FOUND_MAKE" = x; then 20309 for ac_prog in make 20310 do 20311 # Extract the first word of "$ac_prog", so it can be a program name with args. 20312 set dummy $ac_prog; ac_word=$2 20313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20314 $as_echo_n "checking for $ac_word... " >&6; } 20315 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20316 $as_echo_n "(cached) " >&6 20317 else 20318 case $CHECK_TOOLSDIR_MAKE in 20319 [\\/]* | ?:[\\/]*) 20320 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20321 ;; 20322 *) 20323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20324 for as_dir in $PATH 20325 do 20326 IFS=$as_save_IFS 20327 test -z "$as_dir" && as_dir=. 20328 for ac_exec_ext in '' $ac_executable_extensions; do 20329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20330 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20332 break 2 20333 fi 20334 done 20335 done 20336 IFS=$as_save_IFS 20337 20338 ;; 20339 esac 20340 fi 20341 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20342 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20344 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20345 else 20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20347 $as_echo "no" >&6; } 20348 fi 20349 20350 20351 test -n "$CHECK_TOOLSDIR_MAKE" && break 20352 done 20353 20354 20355 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20356 DESCRIPTION="make in tools-dir" 20357 20358 # On Cygwin, we require a newer version of make than on other platforms 20359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20360 MAKE_VERSION_EXPR="-e 4\." 20361 MAKE_REQUIRED_VERSION="4.0" 20362 else 20363 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20364 MAKE_REQUIRED_VERSION="3.81" 20365 fi 20366 20367 if test "x$MAKE_CANDIDATE" != x; then 20368 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20369 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20370 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20371 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20372 if test "x$IS_GNU_MAKE" = x; then 20373 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20374 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20375 else 20376 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20377 if test "x$IS_MODERN_MAKE" = x; then 20378 { $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 20379 $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;} 20380 else 20381 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20383 MAKE_EXPECTED_ENV='cygwin' 20384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20385 MAKE_EXPECTED_ENV='msys' 20386 else 20387 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20388 fi 20389 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20390 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20391 else 20392 # Not relevant for non-Windows 20393 IS_MAKE_CORRECT_ENV=true 20394 fi 20395 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20396 { $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 20397 $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;} 20398 else 20399 FOUND_MAKE=$MAKE_CANDIDATE 20400 20401 # Only process if variable expands to non-empty 20402 20403 if test "x$FOUND_MAKE" != x; then 20404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20405 20406 # First separate the path from the arguments. This will split at the first 20407 # space. 20408 complete="$FOUND_MAKE" 20409 path="${complete%% *}" 20410 tmp="$complete EOL" 20411 arguments="${tmp#* }" 20412 20413 # Input might be given as Windows format, start by converting to 20414 # unix format. 20415 new_path=`$CYGPATH -u "$path"` 20416 20417 # Now try to locate executable using which 20418 new_path=`$WHICH "$new_path" 2> /dev/null` 20419 # bat and cmd files are not always considered executable in cygwin causing which 20420 # to not find them 20421 if test "x$new_path" = x \ 20422 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20423 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20424 new_path=`$CYGPATH -u "$path"` 20425 fi 20426 if test "x$new_path" = x; then 20427 # Oops. Which didn't find the executable. 20428 # The splitting of arguments from the executable at a space might have been incorrect, 20429 # since paths with space are more likely in Windows. Give it another try with the whole 20430 # argument. 20431 path="$complete" 20432 arguments="EOL" 20433 new_path=`$CYGPATH -u "$path"` 20434 new_path=`$WHICH "$new_path" 2> /dev/null` 20435 # bat and cmd files are not always considered executable in cygwin causing which 20436 # to not find them 20437 if test "x$new_path" = x \ 20438 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20439 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20440 new_path=`$CYGPATH -u "$path"` 20441 fi 20442 if test "x$new_path" = x; then 20443 # It's still not found. Now this is an unrecoverable error. 20444 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20445 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20446 has_space=`$ECHO "$complete" | $GREP " "` 20447 if test "x$has_space" != x; then 20448 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20449 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20450 fi 20451 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20452 fi 20453 fi 20454 20455 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20456 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20457 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20458 # "foo.exe" is OK but "foo" is an error. 20459 # 20460 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20461 # It is also a way to make sure we got the proper file name for the real test later on. 20462 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20463 if test "x$test_shortpath" = x; then 20464 # Short path failed, file does not exist as specified. 20465 # Try adding .exe or .cmd 20466 if test -f "${new_path}.exe"; then 20467 input_to_shortpath="${new_path}.exe" 20468 elif test -f "${new_path}.cmd"; then 20469 input_to_shortpath="${new_path}.cmd" 20470 else 20471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20472 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20473 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20474 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20475 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20476 fi 20477 else 20478 input_to_shortpath="$new_path" 20479 fi 20480 20481 # Call helper function which possibly converts this using DOS-style short mode. 20482 # If so, the updated path is stored in $new_path. 20483 new_path="$input_to_shortpath" 20484 20485 input_path="$input_to_shortpath" 20486 # Check if we need to convert this using DOS-style short mode. If the path 20487 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20488 # take no chances and rewrite it. 20489 # Note: m4 eats our [], so we need to use [ and ] instead. 20490 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20491 if test "x$has_forbidden_chars" != x; then 20492 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20493 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20494 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20495 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20496 # Going to short mode and back again did indeed matter. Since short mode is 20497 # case insensitive, let's make it lowercase to improve readability. 20498 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20499 # Now convert it back to Unix-style (cygpath) 20500 input_path=`$CYGPATH -u "$shortmode_path"` 20501 new_path="$input_path" 20502 fi 20503 fi 20504 20505 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20506 if test "x$test_cygdrive_prefix" = x; then 20507 # As a simple fix, exclude /usr/bin since it's not a real path. 20508 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20509 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20510 # a path prefixed by /cygdrive for fixpath to work. 20511 new_path="$CYGWIN_ROOT_PATH$input_path" 20512 fi 20513 fi 20514 20515 # remove trailing .exe if any 20516 new_path="${new_path/%.exe/}" 20517 20518 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20519 20520 # First separate the path from the arguments. This will split at the first 20521 # space. 20522 complete="$FOUND_MAKE" 20523 path="${complete%% *}" 20524 tmp="$complete EOL" 20525 arguments="${tmp#* }" 20526 20527 # Input might be given as Windows format, start by converting to 20528 # unix format. 20529 new_path="$path" 20530 20531 windows_path="$new_path" 20532 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20533 unix_path=`$CYGPATH -u "$windows_path"` 20534 new_path="$unix_path" 20535 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20536 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20537 new_path="$unix_path" 20538 fi 20539 20540 20541 # Now try to locate executable using which 20542 new_path=`$WHICH "$new_path" 2> /dev/null` 20543 20544 if test "x$new_path" = x; then 20545 # Oops. Which didn't find the executable. 20546 # The splitting of arguments from the executable at a space might have been incorrect, 20547 # since paths with space are more likely in Windows. Give it another try with the whole 20548 # argument. 20549 path="$complete" 20550 arguments="EOL" 20551 new_path="$path" 20552 20553 windows_path="$new_path" 20554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20555 unix_path=`$CYGPATH -u "$windows_path"` 20556 new_path="$unix_path" 20557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20558 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20559 new_path="$unix_path" 20560 fi 20561 20562 20563 new_path=`$WHICH "$new_path" 2> /dev/null` 20564 # bat and cmd files are not always considered executable in MSYS causing which 20565 # to not find them 20566 if test "x$new_path" = x \ 20567 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20568 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20569 new_path="$path" 20570 20571 windows_path="$new_path" 20572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20573 unix_path=`$CYGPATH -u "$windows_path"` 20574 new_path="$unix_path" 20575 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20576 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20577 new_path="$unix_path" 20578 fi 20579 20580 fi 20581 20582 if test "x$new_path" = x; then 20583 # It's still not found. Now this is an unrecoverable error. 20584 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20585 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20586 has_space=`$ECHO "$complete" | $GREP " "` 20587 if test "x$has_space" != x; then 20588 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20589 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20590 fi 20591 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20592 fi 20593 fi 20594 20595 # Now new_path has a complete unix path to the binary 20596 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20597 # Keep paths in /bin as-is, but remove trailing .exe if any 20598 new_path="${new_path/%.exe/}" 20599 # Do not save /bin paths to all_fixpath_prefixes! 20600 else 20601 # Not in mixed or Windows style, start by that. 20602 new_path=`cmd //c echo $new_path` 20603 20604 input_path="$new_path" 20605 # Check if we need to convert this using DOS-style short mode. If the path 20606 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20607 # take no chances and rewrite it. 20608 # Note: m4 eats our [], so we need to use [ and ] instead. 20609 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20610 if test "x$has_forbidden_chars" != x; then 20611 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20612 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20613 fi 20614 20615 # Output is in $new_path 20616 20617 windows_path="$new_path" 20618 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20619 unix_path=`$CYGPATH -u "$windows_path"` 20620 new_path="$unix_path" 20621 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20622 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20623 new_path="$unix_path" 20624 fi 20625 20626 # remove trailing .exe if any 20627 new_path="${new_path/%.exe/}" 20628 20629 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20630 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20631 fi 20632 20633 else 20634 # We're on a unix platform. Hooray! :) 20635 # First separate the path from the arguments. This will split at the first 20636 # space. 20637 complete="$FOUND_MAKE" 20638 path="${complete%% *}" 20639 tmp="$complete EOL" 20640 arguments="${tmp#* }" 20641 20642 # Cannot rely on the command "which" here since it doesn't always work. 20643 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20644 if test -z "$is_absolute_path"; then 20645 # Path to executable is not absolute. Find it. 20646 IFS_save="$IFS" 20647 IFS=: 20648 for p in $PATH; do 20649 if test -f "$p/$path" && test -x "$p/$path"; then 20650 new_path="$p/$path" 20651 break 20652 fi 20653 done 20654 IFS="$IFS_save" 20655 else 20656 # This is an absolute path, we can use it without further modifications. 20657 new_path="$path" 20658 fi 20659 20660 if test "x$new_path" = x; then 20661 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20662 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20663 has_space=`$ECHO "$complete" | $GREP " "` 20664 if test "x$has_space" != x; then 20665 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20666 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20667 fi 20668 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20669 fi 20670 fi 20671 20672 # Now join together the path and the arguments once again 20673 if test "x$arguments" != xEOL; then 20674 new_complete="$new_path ${arguments% *}" 20675 else 20676 new_complete="$new_path" 20677 fi 20678 20679 if test "x$complete" != "x$new_complete"; then 20680 FOUND_MAKE="$new_complete" 20681 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20682 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20683 fi 20684 fi 20685 20686 fi 20687 fi 20688 fi 20689 fi 20690 20691 fi 20692 PATH=$OLD_PATH 20693 fi 20694 fi 20695 20696 if test "x$FOUND_MAKE" = x; then 20697 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 20698 fi 20699 20700 else 20701 # If it succeeded, then it was overridden by the user. We will use it 20702 # for the tool. 20703 20704 # First remove it from the list of overridden variables, so we can test 20705 # for unknown variables in the end. 20706 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20707 20708 # Check if we try to supply an empty value 20709 if test "x$MAKE" = x; then 20710 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 20711 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20713 $as_echo_n "checking for MAKE... " >&6; } 20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20715 $as_echo "disabled" >&6; } 20716 else 20717 # Check if the provided tool contains a complete path. 20718 tool_specified="$MAKE" 20719 tool_basename="${tool_specified##*/}" 20720 if test "x$tool_basename" = "x$tool_specified"; then 20721 # A command without a complete path is provided, search $PATH. 20722 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 20723 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 20724 # Extract the first word of "$tool_basename", so it can be a program name with args. 20725 set dummy $tool_basename; ac_word=$2 20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20727 $as_echo_n "checking for $ac_word... " >&6; } 20728 if ${ac_cv_path_MAKE+:} false; then : 20729 $as_echo_n "(cached) " >&6 20730 else 20731 case $MAKE in 20732 [\\/]* | ?:[\\/]*) 20733 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 20734 ;; 20735 *) 20736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20737 for as_dir in $PATH 20738 do 20739 IFS=$as_save_IFS 20740 test -z "$as_dir" && as_dir=. 20741 for ac_exec_ext in '' $ac_executable_extensions; do 20742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20743 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 20744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20745 break 2 20746 fi 20747 done 20748 done 20749 IFS=$as_save_IFS 20750 20751 ;; 20752 esac 20753 fi 20754 MAKE=$ac_cv_path_MAKE 20755 if test -n "$MAKE"; then 20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 20757 $as_echo "$MAKE" >&6; } 20758 else 20759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20760 $as_echo "no" >&6; } 20761 fi 20762 20763 20764 if test "x$MAKE" = x; then 20765 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20766 fi 20767 else 20768 # Otherwise we believe it is a complete path. Use it as it is. 20769 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 20770 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 20771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20772 $as_echo_n "checking for MAKE... " >&6; } 20773 if test ! -x "$tool_specified"; then 20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20775 $as_echo "not found" >&6; } 20776 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 20777 fi 20778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20779 $as_echo "$tool_specified" >&6; } 20780 fi 20781 fi 20782 fi 20783 20784 # If MAKE was set by user, verify the version 20785 20786 MAKE_CANDIDATE=""$MAKE"" 20787 DESCRIPTION="user supplied MAKE=$MAKE" 20788 20789 # On Cygwin, we require a newer version of make than on other platforms 20790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20791 MAKE_VERSION_EXPR="-e 4\." 20792 MAKE_REQUIRED_VERSION="4.0" 20793 else 20794 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20795 MAKE_REQUIRED_VERSION="3.81" 20796 fi 20797 20798 if test "x$MAKE_CANDIDATE" != x; then 20799 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20800 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20801 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20802 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20803 if test "x$IS_GNU_MAKE" = x; then 20804 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20805 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20806 else 20807 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20808 if test "x$IS_MODERN_MAKE" = x; then 20809 { $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 20810 $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;} 20811 else 20812 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20814 MAKE_EXPECTED_ENV='cygwin' 20815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20816 MAKE_EXPECTED_ENV='msys' 20817 else 20818 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20819 fi 20820 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20821 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20822 else 20823 # Not relevant for non-Windows 20824 IS_MAKE_CORRECT_ENV=true 20825 fi 20826 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20827 { $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 20828 $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;} 20829 else 20830 FOUND_MAKE=$MAKE_CANDIDATE 20831 20832 # Only process if variable expands to non-empty 20833 20834 if test "x$FOUND_MAKE" != x; then 20835 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20836 20837 # First separate the path from the arguments. This will split at the first 20838 # space. 20839 complete="$FOUND_MAKE" 20840 path="${complete%% *}" 20841 tmp="$complete EOL" 20842 arguments="${tmp#* }" 20843 20844 # Input might be given as Windows format, start by converting to 20845 # unix format. 20846 new_path=`$CYGPATH -u "$path"` 20847 20848 # Now try to locate executable using which 20849 new_path=`$WHICH "$new_path" 2> /dev/null` 20850 # bat and cmd files are not always considered executable in cygwin causing which 20851 # to not find them 20852 if test "x$new_path" = x \ 20853 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20854 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20855 new_path=`$CYGPATH -u "$path"` 20856 fi 20857 if test "x$new_path" = x; then 20858 # Oops. Which didn't find the executable. 20859 # The splitting of arguments from the executable at a space might have been incorrect, 20860 # since paths with space are more likely in Windows. Give it another try with the whole 20861 # argument. 20862 path="$complete" 20863 arguments="EOL" 20864 new_path=`$CYGPATH -u "$path"` 20865 new_path=`$WHICH "$new_path" 2> /dev/null` 20866 # bat and cmd files are not always considered executable in cygwin causing which 20867 # to not find them 20868 if test "x$new_path" = x \ 20869 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20870 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20871 new_path=`$CYGPATH -u "$path"` 20872 fi 20873 if test "x$new_path" = x; then 20874 # It's still not found. Now this is an unrecoverable error. 20875 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20876 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20877 has_space=`$ECHO "$complete" | $GREP " "` 20878 if test "x$has_space" != x; then 20879 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20880 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20881 fi 20882 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20883 fi 20884 fi 20885 20886 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20887 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20888 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20889 # "foo.exe" is OK but "foo" is an error. 20890 # 20891 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20892 # It is also a way to make sure we got the proper file name for the real test later on. 20893 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20894 if test "x$test_shortpath" = x; then 20895 # Short path failed, file does not exist as specified. 20896 # Try adding .exe or .cmd 20897 if test -f "${new_path}.exe"; then 20898 input_to_shortpath="${new_path}.exe" 20899 elif test -f "${new_path}.cmd"; then 20900 input_to_shortpath="${new_path}.cmd" 20901 else 20902 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20903 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20904 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20905 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20906 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20907 fi 20908 else 20909 input_to_shortpath="$new_path" 20910 fi 20911 20912 # Call helper function which possibly converts this using DOS-style short mode. 20913 # If so, the updated path is stored in $new_path. 20914 new_path="$input_to_shortpath" 20915 20916 input_path="$input_to_shortpath" 20917 # Check if we need to convert this using DOS-style short mode. If the path 20918 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20919 # take no chances and rewrite it. 20920 # Note: m4 eats our [], so we need to use [ and ] instead. 20921 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20922 if test "x$has_forbidden_chars" != x; then 20923 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20924 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20925 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20926 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20927 # Going to short mode and back again did indeed matter. Since short mode is 20928 # case insensitive, let's make it lowercase to improve readability. 20929 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20930 # Now convert it back to Unix-style (cygpath) 20931 input_path=`$CYGPATH -u "$shortmode_path"` 20932 new_path="$input_path" 20933 fi 20934 fi 20935 20936 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20937 if test "x$test_cygdrive_prefix" = x; then 20938 # As a simple fix, exclude /usr/bin since it's not a real path. 20939 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20940 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20941 # a path prefixed by /cygdrive for fixpath to work. 20942 new_path="$CYGWIN_ROOT_PATH$input_path" 20943 fi 20944 fi 20945 20946 # remove trailing .exe if any 20947 new_path="${new_path/%.exe/}" 20948 20949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20950 20951 # First separate the path from the arguments. This will split at the first 20952 # space. 20953 complete="$FOUND_MAKE" 20954 path="${complete%% *}" 20955 tmp="$complete EOL" 20956 arguments="${tmp#* }" 20957 20958 # Input might be given as Windows format, start by converting to 20959 # unix format. 20960 new_path="$path" 20961 20962 windows_path="$new_path" 20963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20964 unix_path=`$CYGPATH -u "$windows_path"` 20965 new_path="$unix_path" 20966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20967 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20968 new_path="$unix_path" 20969 fi 20970 20971 20972 # Now try to locate executable using which 20973 new_path=`$WHICH "$new_path" 2> /dev/null` 20974 20975 if test "x$new_path" = x; then 20976 # Oops. Which didn't find the executable. 20977 # The splitting of arguments from the executable at a space might have been incorrect, 20978 # since paths with space are more likely in Windows. Give it another try with the whole 20979 # argument. 20980 path="$complete" 20981 arguments="EOL" 20982 new_path="$path" 20983 20984 windows_path="$new_path" 20985 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20986 unix_path=`$CYGPATH -u "$windows_path"` 20987 new_path="$unix_path" 20988 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20989 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20990 new_path="$unix_path" 20991 fi 20992 20993 20994 new_path=`$WHICH "$new_path" 2> /dev/null` 20995 # bat and cmd files are not always considered executable in MSYS causing which 20996 # to not find them 20997 if test "x$new_path" = x \ 20998 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20999 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21000 new_path="$path" 21001 21002 windows_path="$new_path" 21003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21004 unix_path=`$CYGPATH -u "$windows_path"` 21005 new_path="$unix_path" 21006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21008 new_path="$unix_path" 21009 fi 21010 21011 fi 21012 21013 if test "x$new_path" = x; then 21014 # It's still not found. Now this is an unrecoverable error. 21015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21016 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21017 has_space=`$ECHO "$complete" | $GREP " "` 21018 if test "x$has_space" != x; then 21019 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21020 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21021 fi 21022 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21023 fi 21024 fi 21025 21026 # Now new_path has a complete unix path to the binary 21027 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21028 # Keep paths in /bin as-is, but remove trailing .exe if any 21029 new_path="${new_path/%.exe/}" 21030 # Do not save /bin paths to all_fixpath_prefixes! 21031 else 21032 # Not in mixed or Windows style, start by that. 21033 new_path=`cmd //c echo $new_path` 21034 21035 input_path="$new_path" 21036 # Check if we need to convert this using DOS-style short mode. If the path 21037 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21038 # take no chances and rewrite it. 21039 # Note: m4 eats our [], so we need to use [ and ] instead. 21040 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21041 if test "x$has_forbidden_chars" != x; then 21042 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21043 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21044 fi 21045 21046 # Output is in $new_path 21047 21048 windows_path="$new_path" 21049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21050 unix_path=`$CYGPATH -u "$windows_path"` 21051 new_path="$unix_path" 21052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21053 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21054 new_path="$unix_path" 21055 fi 21056 21057 # remove trailing .exe if any 21058 new_path="${new_path/%.exe/}" 21059 21060 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21061 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21062 fi 21063 21064 else 21065 # We're on a unix platform. Hooray! :) 21066 # First separate the path from the arguments. This will split at the first 21067 # space. 21068 complete="$FOUND_MAKE" 21069 path="${complete%% *}" 21070 tmp="$complete EOL" 21071 arguments="${tmp#* }" 21072 21073 # Cannot rely on the command "which" here since it doesn't always work. 21074 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21075 if test -z "$is_absolute_path"; then 21076 # Path to executable is not absolute. Find it. 21077 IFS_save="$IFS" 21078 IFS=: 21079 for p in $PATH; do 21080 if test -f "$p/$path" && test -x "$p/$path"; then 21081 new_path="$p/$path" 21082 break 21083 fi 21084 done 21085 IFS="$IFS_save" 21086 else 21087 # This is an absolute path, we can use it without further modifications. 21088 new_path="$path" 21089 fi 21090 21091 if test "x$new_path" = x; then 21092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21093 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21094 has_space=`$ECHO "$complete" | $GREP " "` 21095 if test "x$has_space" != x; then 21096 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21097 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21098 fi 21099 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21100 fi 21101 fi 21102 21103 # Now join together the path and the arguments once again 21104 if test "x$arguments" != xEOL; then 21105 new_complete="$new_path ${arguments% *}" 21106 else 21107 new_complete="$new_path" 21108 fi 21109 21110 if test "x$complete" != "x$new_complete"; then 21111 FOUND_MAKE="$new_complete" 21112 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21113 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21114 fi 21115 fi 21116 21117 fi 21118 fi 21119 fi 21120 fi 21121 21122 if test "x$FOUND_MAKE" = x; then 21123 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21124 fi 21125 21126 fi 21127 21128 21129 MAKE=$FOUND_MAKE 21130 21131 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21132 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21133 21134 21135 # Check if make supports the output sync option and if so, setup using it. 21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21137 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21138 if $MAKE --version -O > /dev/null 2>&1; then 21139 OUTPUT_SYNC_SUPPORTED=true 21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21141 $as_echo "yes" >&6; } 21142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21143 $as_echo_n "checking for output-sync value... " >&6; } 21144 21145 # Check whether --with-output-sync was given. 21146 if test "${with_output_sync+set}" = set; then : 21147 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21148 fi 21149 21150 if test "x$OUTPUT_SYNC" = "x"; then 21151 OUTPUT_SYNC=none 21152 fi 21153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21154 $as_echo "$OUTPUT_SYNC" >&6; } 21155 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21156 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21157 fi 21158 else 21159 OUTPUT_SYNC_SUPPORTED=false 21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21161 $as_echo "no" >&6; } 21162 fi 21163 21164 21165 21166 21167 21168 21169 # Test if find supports -delete 21170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21171 $as_echo_n "checking if find supports -delete... " >&6; } 21172 FIND_DELETE="-delete" 21173 21174 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21175 21176 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21177 21178 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21179 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21180 # No, it does not. 21181 $RM $DELETEDIR/TestIfFindSupportsDelete 21182 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21183 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21184 FIND_DELETE="-print | $XARGS $RM" 21185 else 21186 FIND_DELETE="-exec $RM \{\} \+" 21187 fi 21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21189 $as_echo "no" >&6; } 21190 else 21191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21192 $as_echo "yes" >&6; } 21193 fi 21194 $RMDIR $DELETEDIR 21195 21196 21197 21198 # Test which kind of tar was found 21199 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21200 TAR_TYPE="gnu" 21201 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21202 TAR_TYPE="bsd" 21203 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21204 TAR_TYPE="solaris" 21205 fi 21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21207 $as_echo_n "checking what type of tar was found... " >&6; } 21208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21209 $as_echo "$TAR_TYPE" >&6; } 21210 21211 TAR_CREATE_FILE_PARAM="" 21212 21213 if test "x$TAR_TYPE" = "xgnu"; then 21214 TAR_INCLUDE_PARAM="T" 21215 TAR_SUPPORTS_TRANSFORM="true" 21216 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21217 # When using gnu tar for Solaris targets, need to use compatibility mode 21218 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21219 fi 21220 else 21221 TAR_INCLUDE_PARAM="I" 21222 TAR_SUPPORTS_TRANSFORM="false" 21223 fi 21224 21225 21226 21227 21228 21229 21230 # These tools might not be installed by default, 21231 # need hint on how to install them. 21232 21233 21234 21235 # Publish this variable in the help. 21236 21237 21238 if [ -z "${UNZIP+x}" ]; then 21239 # The variable is not set by user, try to locate tool using the code snippet 21240 for ac_prog in unzip 21241 do 21242 # Extract the first word of "$ac_prog", so it can be a program name with args. 21243 set dummy $ac_prog; ac_word=$2 21244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21245 $as_echo_n "checking for $ac_word... " >&6; } 21246 if ${ac_cv_path_UNZIP+:} false; then : 21247 $as_echo_n "(cached) " >&6 21248 else 21249 case $UNZIP in 21250 [\\/]* | ?:[\\/]*) 21251 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21252 ;; 21253 *) 21254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21255 for as_dir in $PATH 21256 do 21257 IFS=$as_save_IFS 21258 test -z "$as_dir" && as_dir=. 21259 for ac_exec_ext in '' $ac_executable_extensions; do 21260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21261 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21263 break 2 21264 fi 21265 done 21266 done 21267 IFS=$as_save_IFS 21268 21269 ;; 21270 esac 21271 fi 21272 UNZIP=$ac_cv_path_UNZIP 21273 if test -n "$UNZIP"; then 21274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21275 $as_echo "$UNZIP" >&6; } 21276 else 21277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21278 $as_echo "no" >&6; } 21279 fi 21280 21281 21282 test -n "$UNZIP" && break 21283 done 21284 21285 else 21286 # The variable is set, but is it from the command line or the environment? 21287 21288 # Try to remove the string !UNZIP! from our list. 21289 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21290 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21291 # If it failed, the variable was not from the command line. Ignore it, 21292 # but warn the user (except for BASH, which is always set by the calling BASH). 21293 if test "xUNZIP" != xBASH; then 21294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21295 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21296 fi 21297 # Try to locate tool using the code snippet 21298 for ac_prog in unzip 21299 do 21300 # Extract the first word of "$ac_prog", so it can be a program name with args. 21301 set dummy $ac_prog; ac_word=$2 21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21303 $as_echo_n "checking for $ac_word... " >&6; } 21304 if ${ac_cv_path_UNZIP+:} false; then : 21305 $as_echo_n "(cached) " >&6 21306 else 21307 case $UNZIP in 21308 [\\/]* | ?:[\\/]*) 21309 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21310 ;; 21311 *) 21312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21313 for as_dir in $PATH 21314 do 21315 IFS=$as_save_IFS 21316 test -z "$as_dir" && as_dir=. 21317 for ac_exec_ext in '' $ac_executable_extensions; do 21318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21319 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21321 break 2 21322 fi 21323 done 21324 done 21325 IFS=$as_save_IFS 21326 21327 ;; 21328 esac 21329 fi 21330 UNZIP=$ac_cv_path_UNZIP 21331 if test -n "$UNZIP"; then 21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21333 $as_echo "$UNZIP" >&6; } 21334 else 21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21336 $as_echo "no" >&6; } 21337 fi 21338 21339 21340 test -n "$UNZIP" && break 21341 done 21342 21343 else 21344 # If it succeeded, then it was overridden by the user. We will use it 21345 # for the tool. 21346 21347 # First remove it from the list of overridden variables, so we can test 21348 # for unknown variables in the end. 21349 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21350 21351 # Check if we try to supply an empty value 21352 if test "x$UNZIP" = x; then 21353 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21354 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21356 $as_echo_n "checking for UNZIP... " >&6; } 21357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21358 $as_echo "disabled" >&6; } 21359 else 21360 # Check if the provided tool contains a complete path. 21361 tool_specified="$UNZIP" 21362 tool_basename="${tool_specified##*/}" 21363 if test "x$tool_basename" = "x$tool_specified"; then 21364 # A command without a complete path is provided, search $PATH. 21365 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21366 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21367 # Extract the first word of "$tool_basename", so it can be a program name with args. 21368 set dummy $tool_basename; ac_word=$2 21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21370 $as_echo_n "checking for $ac_word... " >&6; } 21371 if ${ac_cv_path_UNZIP+:} false; then : 21372 $as_echo_n "(cached) " >&6 21373 else 21374 case $UNZIP in 21375 [\\/]* | ?:[\\/]*) 21376 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21377 ;; 21378 *) 21379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21380 for as_dir in $PATH 21381 do 21382 IFS=$as_save_IFS 21383 test -z "$as_dir" && as_dir=. 21384 for ac_exec_ext in '' $ac_executable_extensions; do 21385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21386 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21388 break 2 21389 fi 21390 done 21391 done 21392 IFS=$as_save_IFS 21393 21394 ;; 21395 esac 21396 fi 21397 UNZIP=$ac_cv_path_UNZIP 21398 if test -n "$UNZIP"; then 21399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21400 $as_echo "$UNZIP" >&6; } 21401 else 21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21403 $as_echo "no" >&6; } 21404 fi 21405 21406 21407 if test "x$UNZIP" = x; then 21408 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21409 fi 21410 else 21411 # Otherwise we believe it is a complete path. Use it as it is. 21412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21413 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21415 $as_echo_n "checking for UNZIP... " >&6; } 21416 if test ! -x "$tool_specified"; then 21417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21418 $as_echo "not found" >&6; } 21419 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21420 fi 21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21422 $as_echo "$tool_specified" >&6; } 21423 fi 21424 fi 21425 fi 21426 21427 fi 21428 21429 21430 21431 if test "x$UNZIP" = x; then 21432 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21433 fi 21434 21435 21436 21437 21438 21439 # Publish this variable in the help. 21440 21441 21442 if [ -z "${ZIP+x}" ]; then 21443 # The variable is not set by user, try to locate tool using the code snippet 21444 for ac_prog in zip 21445 do 21446 # Extract the first word of "$ac_prog", so it can be a program name with args. 21447 set dummy $ac_prog; ac_word=$2 21448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21449 $as_echo_n "checking for $ac_word... " >&6; } 21450 if ${ac_cv_path_ZIP+:} false; then : 21451 $as_echo_n "(cached) " >&6 21452 else 21453 case $ZIP in 21454 [\\/]* | ?:[\\/]*) 21455 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 21456 ;; 21457 *) 21458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21459 for as_dir in $PATH 21460 do 21461 IFS=$as_save_IFS 21462 test -z "$as_dir" && as_dir=. 21463 for ac_exec_ext in '' $ac_executable_extensions; do 21464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21465 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 21466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21467 break 2 21468 fi 21469 done 21470 done 21471 IFS=$as_save_IFS 21472 21473 ;; 21474 esac 21475 fi 21476 ZIP=$ac_cv_path_ZIP 21477 if test -n "$ZIP"; then 21478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 21479 $as_echo "$ZIP" >&6; } 21480 else 21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21482 $as_echo "no" >&6; } 21483 fi 21484 21485 21486 test -n "$ZIP" && break 21487 done 21488 21489 else 21490 # The variable is set, but is it from the command line or the environment? 21491 21492 # Try to remove the string !ZIP! from our list. 21493 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 21494 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21495 # If it failed, the variable was not from the command line. Ignore it, 21496 # but warn the user (except for BASH, which is always set by the calling BASH). 21497 if test "xZIP" != xBASH; then 21498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 21499 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 21500 fi 21501 # Try to locate tool using the code snippet 21502 for ac_prog in zip 21503 do 21504 # Extract the first word of "$ac_prog", so it can be a program name with args. 21505 set dummy $ac_prog; ac_word=$2 21506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21507 $as_echo_n "checking for $ac_word... " >&6; } 21508 if ${ac_cv_path_ZIP+:} false; then : 21509 $as_echo_n "(cached) " >&6 21510 else 21511 case $ZIP in 21512 [\\/]* | ?:[\\/]*) 21513 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 21514 ;; 21515 *) 21516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21517 for as_dir in $PATH 21518 do 21519 IFS=$as_save_IFS 21520 test -z "$as_dir" && as_dir=. 21521 for ac_exec_ext in '' $ac_executable_extensions; do 21522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21523 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 21524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21525 break 2 21526 fi 21527 done 21528 done 21529 IFS=$as_save_IFS 21530 21531 ;; 21532 esac 21533 fi 21534 ZIP=$ac_cv_path_ZIP 21535 if test -n "$ZIP"; then 21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 21537 $as_echo "$ZIP" >&6; } 21538 else 21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21540 $as_echo "no" >&6; } 21541 fi 21542 21543 21544 test -n "$ZIP" && break 21545 done 21546 21547 else 21548 # If it succeeded, then it was overridden by the user. We will use it 21549 # for the tool. 21550 21551 # First remove it from the list of overridden variables, so we can test 21552 # for unknown variables in the end. 21553 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21554 21555 # Check if we try to supply an empty value 21556 if test "x$ZIP" = x; then 21557 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5 21558 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;} 21559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 21560 $as_echo_n "checking for ZIP... " >&6; } 21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21562 $as_echo "disabled" >&6; } 21563 else 21564 # Check if the provided tool contains a complete path. 21565 tool_specified="$ZIP" 21566 tool_basename="${tool_specified##*/}" 21567 if test "x$tool_basename" = "x$tool_specified"; then 21568 # A command without a complete path is provided, search $PATH. 21569 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 21570 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 21571 # Extract the first word of "$tool_basename", so it can be a program name with args. 21572 set dummy $tool_basename; ac_word=$2 21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21574 $as_echo_n "checking for $ac_word... " >&6; } 21575 if ${ac_cv_path_ZIP+:} false; then : 21576 $as_echo_n "(cached) " >&6 21577 else 21578 case $ZIP in 21579 [\\/]* | ?:[\\/]*) 21580 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 21581 ;; 21582 *) 21583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21584 for as_dir in $PATH 21585 do 21586 IFS=$as_save_IFS 21587 test -z "$as_dir" && as_dir=. 21588 for ac_exec_ext in '' $ac_executable_extensions; do 21589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21590 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 21591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21592 break 2 21593 fi 21594 done 21595 done 21596 IFS=$as_save_IFS 21597 21598 ;; 21599 esac 21600 fi 21601 ZIP=$ac_cv_path_ZIP 21602 if test -n "$ZIP"; then 21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 21604 $as_echo "$ZIP" >&6; } 21605 else 21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21607 $as_echo "no" >&6; } 21608 fi 21609 21610 21611 if test "x$ZIP" = x; then 21612 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21613 fi 21614 else 21615 # Otherwise we believe it is a complete path. Use it as it is. 21616 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 21617 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 21619 $as_echo_n "checking for ZIP... " >&6; } 21620 if test ! -x "$tool_specified"; then 21621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21622 $as_echo "not found" >&6; } 21623 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21624 fi 21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21626 $as_echo "$tool_specified" >&6; } 21627 fi 21628 fi 21629 fi 21630 21631 fi 21632 21633 21634 21635 if test "x$ZIP" = x; then 21636 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 21637 fi 21638 21639 21640 21641 # Non-required basic tools 21642 21643 21644 21645 # Publish this variable in the help. 21646 21647 21648 if [ -z "${LDD+x}" ]; then 21649 # The variable is not set by user, try to locate tool using the code snippet 21650 for ac_prog in ldd 21651 do 21652 # Extract the first word of "$ac_prog", so it can be a program name with args. 21653 set dummy $ac_prog; ac_word=$2 21654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21655 $as_echo_n "checking for $ac_word... " >&6; } 21656 if ${ac_cv_path_LDD+:} false; then : 21657 $as_echo_n "(cached) " >&6 21658 else 21659 case $LDD in 21660 [\\/]* | ?:[\\/]*) 21661 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21662 ;; 21663 *) 21664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21665 for as_dir in $PATH 21666 do 21667 IFS=$as_save_IFS 21668 test -z "$as_dir" && as_dir=. 21669 for ac_exec_ext in '' $ac_executable_extensions; do 21670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21671 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21673 break 2 21674 fi 21675 done 21676 done 21677 IFS=$as_save_IFS 21678 21679 ;; 21680 esac 21681 fi 21682 LDD=$ac_cv_path_LDD 21683 if test -n "$LDD"; then 21684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21685 $as_echo "$LDD" >&6; } 21686 else 21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21688 $as_echo "no" >&6; } 21689 fi 21690 21691 21692 test -n "$LDD" && break 21693 done 21694 21695 else 21696 # The variable is set, but is it from the command line or the environment? 21697 21698 # Try to remove the string !LDD! from our list. 21699 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 21700 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21701 # If it failed, the variable was not from the command line. Ignore it, 21702 # but warn the user (except for BASH, which is always set by the calling BASH). 21703 if test "xLDD" != xBASH; then 21704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 21705 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 21706 fi 21707 # Try to locate tool using the code snippet 21708 for ac_prog in ldd 21709 do 21710 # Extract the first word of "$ac_prog", so it can be a program name with args. 21711 set dummy $ac_prog; ac_word=$2 21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21713 $as_echo_n "checking for $ac_word... " >&6; } 21714 if ${ac_cv_path_LDD+:} false; then : 21715 $as_echo_n "(cached) " >&6 21716 else 21717 case $LDD in 21718 [\\/]* | ?:[\\/]*) 21719 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21720 ;; 21721 *) 21722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21723 for as_dir in $PATH 21724 do 21725 IFS=$as_save_IFS 21726 test -z "$as_dir" && as_dir=. 21727 for ac_exec_ext in '' $ac_executable_extensions; do 21728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21729 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21731 break 2 21732 fi 21733 done 21734 done 21735 IFS=$as_save_IFS 21736 21737 ;; 21738 esac 21739 fi 21740 LDD=$ac_cv_path_LDD 21741 if test -n "$LDD"; then 21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21743 $as_echo "$LDD" >&6; } 21744 else 21745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21746 $as_echo "no" >&6; } 21747 fi 21748 21749 21750 test -n "$LDD" && break 21751 done 21752 21753 else 21754 # If it succeeded, then it was overridden by the user. We will use it 21755 # for the tool. 21756 21757 # First remove it from the list of overridden variables, so we can test 21758 # for unknown variables in the end. 21759 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21760 21761 # Check if we try to supply an empty value 21762 if test "x$LDD" = x; then 21763 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 21764 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 21765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 21766 $as_echo_n "checking for LDD... " >&6; } 21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21768 $as_echo "disabled" >&6; } 21769 else 21770 # Check if the provided tool contains a complete path. 21771 tool_specified="$LDD" 21772 tool_basename="${tool_specified##*/}" 21773 if test "x$tool_basename" = "x$tool_specified"; then 21774 # A command without a complete path is provided, search $PATH. 21775 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 21776 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 21777 # Extract the first word of "$tool_basename", so it can be a program name with args. 21778 set dummy $tool_basename; ac_word=$2 21779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21780 $as_echo_n "checking for $ac_word... " >&6; } 21781 if ${ac_cv_path_LDD+:} false; then : 21782 $as_echo_n "(cached) " >&6 21783 else 21784 case $LDD in 21785 [\\/]* | ?:[\\/]*) 21786 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21787 ;; 21788 *) 21789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21790 for as_dir in $PATH 21791 do 21792 IFS=$as_save_IFS 21793 test -z "$as_dir" && as_dir=. 21794 for ac_exec_ext in '' $ac_executable_extensions; do 21795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21796 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21798 break 2 21799 fi 21800 done 21801 done 21802 IFS=$as_save_IFS 21803 21804 ;; 21805 esac 21806 fi 21807 LDD=$ac_cv_path_LDD 21808 if test -n "$LDD"; then 21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21810 $as_echo "$LDD" >&6; } 21811 else 21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21813 $as_echo "no" >&6; } 21814 fi 21815 21816 21817 if test "x$LDD" = x; then 21818 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21819 fi 21820 else 21821 # Otherwise we believe it is a complete path. Use it as it is. 21822 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 21823 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 21825 $as_echo_n "checking for LDD... " >&6; } 21826 if test ! -x "$tool_specified"; then 21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21828 $as_echo "not found" >&6; } 21829 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 21830 fi 21831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21832 $as_echo "$tool_specified" >&6; } 21833 fi 21834 fi 21835 fi 21836 21837 fi 21838 21839 21840 if test "x$LDD" = "x"; then 21841 # List shared lib dependencies is used for 21842 # debug output and checking for forbidden dependencies. 21843 # We can build without it. 21844 LDD="true" 21845 fi 21846 21847 21848 # Publish this variable in the help. 21849 21850 21851 if [ -z "${OTOOL+x}" ]; then 21852 # The variable is not set by user, try to locate tool using the code snippet 21853 for ac_prog in otool 21854 do 21855 # Extract the first word of "$ac_prog", so it can be a program name with args. 21856 set dummy $ac_prog; ac_word=$2 21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21858 $as_echo_n "checking for $ac_word... " >&6; } 21859 if ${ac_cv_path_OTOOL+:} false; then : 21860 $as_echo_n "(cached) " >&6 21861 else 21862 case $OTOOL in 21863 [\\/]* | ?:[\\/]*) 21864 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21865 ;; 21866 *) 21867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21868 for as_dir in $PATH 21869 do 21870 IFS=$as_save_IFS 21871 test -z "$as_dir" && as_dir=. 21872 for ac_exec_ext in '' $ac_executable_extensions; do 21873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21874 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21876 break 2 21877 fi 21878 done 21879 done 21880 IFS=$as_save_IFS 21881 21882 ;; 21883 esac 21884 fi 21885 OTOOL=$ac_cv_path_OTOOL 21886 if test -n "$OTOOL"; then 21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21888 $as_echo "$OTOOL" >&6; } 21889 else 21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21891 $as_echo "no" >&6; } 21892 fi 21893 21894 21895 test -n "$OTOOL" && break 21896 done 21897 21898 else 21899 # The variable is set, but is it from the command line or the environment? 21900 21901 # Try to remove the string !OTOOL! from our list. 21902 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 21903 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21904 # If it failed, the variable was not from the command line. Ignore it, 21905 # but warn the user (except for BASH, which is always set by the calling BASH). 21906 if test "xOTOOL" != xBASH; then 21907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 21908 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 21909 fi 21910 # Try to locate tool using the code snippet 21911 for ac_prog in otool 21912 do 21913 # Extract the first word of "$ac_prog", so it can be a program name with args. 21914 set dummy $ac_prog; ac_word=$2 21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21916 $as_echo_n "checking for $ac_word... " >&6; } 21917 if ${ac_cv_path_OTOOL+:} false; then : 21918 $as_echo_n "(cached) " >&6 21919 else 21920 case $OTOOL in 21921 [\\/]* | ?:[\\/]*) 21922 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21923 ;; 21924 *) 21925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21926 for as_dir in $PATH 21927 do 21928 IFS=$as_save_IFS 21929 test -z "$as_dir" && as_dir=. 21930 for ac_exec_ext in '' $ac_executable_extensions; do 21931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21932 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21934 break 2 21935 fi 21936 done 21937 done 21938 IFS=$as_save_IFS 21939 21940 ;; 21941 esac 21942 fi 21943 OTOOL=$ac_cv_path_OTOOL 21944 if test -n "$OTOOL"; then 21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21946 $as_echo "$OTOOL" >&6; } 21947 else 21948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21949 $as_echo "no" >&6; } 21950 fi 21951 21952 21953 test -n "$OTOOL" && break 21954 done 21955 21956 else 21957 # If it succeeded, then it was overridden by the user. We will use it 21958 # for the tool. 21959 21960 # First remove it from the list of overridden variables, so we can test 21961 # for unknown variables in the end. 21962 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21963 21964 # Check if we try to supply an empty value 21965 if test "x$OTOOL" = x; then 21966 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 21967 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 21969 $as_echo_n "checking for OTOOL... " >&6; } 21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21971 $as_echo "disabled" >&6; } 21972 else 21973 # Check if the provided tool contains a complete path. 21974 tool_specified="$OTOOL" 21975 tool_basename="${tool_specified##*/}" 21976 if test "x$tool_basename" = "x$tool_specified"; then 21977 # A command without a complete path is provided, search $PATH. 21978 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 21979 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 21980 # Extract the first word of "$tool_basename", so it can be a program name with args. 21981 set dummy $tool_basename; ac_word=$2 21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21983 $as_echo_n "checking for $ac_word... " >&6; } 21984 if ${ac_cv_path_OTOOL+:} false; then : 21985 $as_echo_n "(cached) " >&6 21986 else 21987 case $OTOOL in 21988 [\\/]* | ?:[\\/]*) 21989 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21990 ;; 21991 *) 21992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21993 for as_dir in $PATH 21994 do 21995 IFS=$as_save_IFS 21996 test -z "$as_dir" && as_dir=. 21997 for ac_exec_ext in '' $ac_executable_extensions; do 21998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21999 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 22000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22001 break 2 22002 fi 22003 done 22004 done 22005 IFS=$as_save_IFS 22006 22007 ;; 22008 esac 22009 fi 22010 OTOOL=$ac_cv_path_OTOOL 22011 if test -n "$OTOOL"; then 22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 22013 $as_echo "$OTOOL" >&6; } 22014 else 22015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22016 $as_echo "no" >&6; } 22017 fi 22018 22019 22020 if test "x$OTOOL" = x; then 22021 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22022 fi 22023 else 22024 # Otherwise we believe it is a complete path. Use it as it is. 22025 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 22026 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 22027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 22028 $as_echo_n "checking for OTOOL... " >&6; } 22029 if test ! -x "$tool_specified"; then 22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22031 $as_echo "not found" >&6; } 22032 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 22033 fi 22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22035 $as_echo "$tool_specified" >&6; } 22036 fi 22037 fi 22038 fi 22039 22040 fi 22041 22042 22043 if test "x$OTOOL" = "x"; then 22044 OTOOL="true" 22045 fi 22046 22047 22048 # Publish this variable in the help. 22049 22050 22051 if [ -z "${READELF+x}" ]; then 22052 # The variable is not set by user, try to locate tool using the code snippet 22053 for ac_prog in greadelf readelf 22054 do 22055 # Extract the first word of "$ac_prog", so it can be a program name with args. 22056 set dummy $ac_prog; ac_word=$2 22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22058 $as_echo_n "checking for $ac_word... " >&6; } 22059 if ${ac_cv_path_READELF+:} false; then : 22060 $as_echo_n "(cached) " >&6 22061 else 22062 case $READELF in 22063 [\\/]* | ?:[\\/]*) 22064 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22065 ;; 22066 *) 22067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22068 for as_dir in $PATH 22069 do 22070 IFS=$as_save_IFS 22071 test -z "$as_dir" && as_dir=. 22072 for ac_exec_ext in '' $ac_executable_extensions; do 22073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22074 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22076 break 2 22077 fi 22078 done 22079 done 22080 IFS=$as_save_IFS 22081 22082 ;; 22083 esac 22084 fi 22085 READELF=$ac_cv_path_READELF 22086 if test -n "$READELF"; then 22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22088 $as_echo "$READELF" >&6; } 22089 else 22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22091 $as_echo "no" >&6; } 22092 fi 22093 22094 22095 test -n "$READELF" && break 22096 done 22097 22098 else 22099 # The variable is set, but is it from the command line or the environment? 22100 22101 # Try to remove the string !READELF! from our list. 22102 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22103 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22104 # If it failed, the variable was not from the command line. Ignore it, 22105 # but warn the user (except for BASH, which is always set by the calling BASH). 22106 if test "xREADELF" != xBASH; then 22107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22108 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22109 fi 22110 # Try to locate tool using the code snippet 22111 for ac_prog in greadelf readelf 22112 do 22113 # Extract the first word of "$ac_prog", so it can be a program name with args. 22114 set dummy $ac_prog; ac_word=$2 22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22116 $as_echo_n "checking for $ac_word... " >&6; } 22117 if ${ac_cv_path_READELF+:} false; then : 22118 $as_echo_n "(cached) " >&6 22119 else 22120 case $READELF in 22121 [\\/]* | ?:[\\/]*) 22122 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22123 ;; 22124 *) 22125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22126 for as_dir in $PATH 22127 do 22128 IFS=$as_save_IFS 22129 test -z "$as_dir" && as_dir=. 22130 for ac_exec_ext in '' $ac_executable_extensions; do 22131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22132 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22134 break 2 22135 fi 22136 done 22137 done 22138 IFS=$as_save_IFS 22139 22140 ;; 22141 esac 22142 fi 22143 READELF=$ac_cv_path_READELF 22144 if test -n "$READELF"; then 22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22146 $as_echo "$READELF" >&6; } 22147 else 22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22149 $as_echo "no" >&6; } 22150 fi 22151 22152 22153 test -n "$READELF" && break 22154 done 22155 22156 else 22157 # If it succeeded, then it was overridden by the user. We will use it 22158 # for the tool. 22159 22160 # First remove it from the list of overridden variables, so we can test 22161 # for unknown variables in the end. 22162 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22163 22164 # Check if we try to supply an empty value 22165 if test "x$READELF" = x; then 22166 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22167 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22169 $as_echo_n "checking for READELF... " >&6; } 22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22171 $as_echo "disabled" >&6; } 22172 else 22173 # Check if the provided tool contains a complete path. 22174 tool_specified="$READELF" 22175 tool_basename="${tool_specified##*/}" 22176 if test "x$tool_basename" = "x$tool_specified"; then 22177 # A command without a complete path is provided, search $PATH. 22178 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22179 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22180 # Extract the first word of "$tool_basename", so it can be a program name with args. 22181 set dummy $tool_basename; ac_word=$2 22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22183 $as_echo_n "checking for $ac_word... " >&6; } 22184 if ${ac_cv_path_READELF+:} false; then : 22185 $as_echo_n "(cached) " >&6 22186 else 22187 case $READELF in 22188 [\\/]* | ?:[\\/]*) 22189 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22190 ;; 22191 *) 22192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22193 for as_dir in $PATH 22194 do 22195 IFS=$as_save_IFS 22196 test -z "$as_dir" && as_dir=. 22197 for ac_exec_ext in '' $ac_executable_extensions; do 22198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22199 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22201 break 2 22202 fi 22203 done 22204 done 22205 IFS=$as_save_IFS 22206 22207 ;; 22208 esac 22209 fi 22210 READELF=$ac_cv_path_READELF 22211 if test -n "$READELF"; then 22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22213 $as_echo "$READELF" >&6; } 22214 else 22215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22216 $as_echo "no" >&6; } 22217 fi 22218 22219 22220 if test "x$READELF" = x; then 22221 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22222 fi 22223 else 22224 # Otherwise we believe it is a complete path. Use it as it is. 22225 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22226 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22228 $as_echo_n "checking for READELF... " >&6; } 22229 if test ! -x "$tool_specified"; then 22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22231 $as_echo "not found" >&6; } 22232 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22233 fi 22234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22235 $as_echo "$tool_specified" >&6; } 22236 fi 22237 fi 22238 fi 22239 22240 fi 22241 22242 22243 22244 22245 # Publish this variable in the help. 22246 22247 22248 if [ -z "${HG+x}" ]; then 22249 # The variable is not set by user, try to locate tool using the code snippet 22250 for ac_prog in hg 22251 do 22252 # Extract the first word of "$ac_prog", so it can be a program name with args. 22253 set dummy $ac_prog; ac_word=$2 22254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22255 $as_echo_n "checking for $ac_word... " >&6; } 22256 if ${ac_cv_path_HG+:} false; then : 22257 $as_echo_n "(cached) " >&6 22258 else 22259 case $HG in 22260 [\\/]* | ?:[\\/]*) 22261 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22262 ;; 22263 *) 22264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22265 for as_dir in $PATH 22266 do 22267 IFS=$as_save_IFS 22268 test -z "$as_dir" && as_dir=. 22269 for ac_exec_ext in '' $ac_executable_extensions; do 22270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22271 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22273 break 2 22274 fi 22275 done 22276 done 22277 IFS=$as_save_IFS 22278 22279 ;; 22280 esac 22281 fi 22282 HG=$ac_cv_path_HG 22283 if test -n "$HG"; then 22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22285 $as_echo "$HG" >&6; } 22286 else 22287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22288 $as_echo "no" >&6; } 22289 fi 22290 22291 22292 test -n "$HG" && break 22293 done 22294 22295 else 22296 # The variable is set, but is it from the command line or the environment? 22297 22298 # Try to remove the string !HG! from our list. 22299 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22300 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22301 # If it failed, the variable was not from the command line. Ignore it, 22302 # but warn the user (except for BASH, which is always set by the calling BASH). 22303 if test "xHG" != xBASH; then 22304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22305 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22306 fi 22307 # Try to locate tool using the code snippet 22308 for ac_prog in hg 22309 do 22310 # Extract the first word of "$ac_prog", so it can be a program name with args. 22311 set dummy $ac_prog; ac_word=$2 22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22313 $as_echo_n "checking for $ac_word... " >&6; } 22314 if ${ac_cv_path_HG+:} false; then : 22315 $as_echo_n "(cached) " >&6 22316 else 22317 case $HG in 22318 [\\/]* | ?:[\\/]*) 22319 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22320 ;; 22321 *) 22322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22323 for as_dir in $PATH 22324 do 22325 IFS=$as_save_IFS 22326 test -z "$as_dir" && as_dir=. 22327 for ac_exec_ext in '' $ac_executable_extensions; do 22328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22329 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22331 break 2 22332 fi 22333 done 22334 done 22335 IFS=$as_save_IFS 22336 22337 ;; 22338 esac 22339 fi 22340 HG=$ac_cv_path_HG 22341 if test -n "$HG"; then 22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22343 $as_echo "$HG" >&6; } 22344 else 22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22346 $as_echo "no" >&6; } 22347 fi 22348 22349 22350 test -n "$HG" && break 22351 done 22352 22353 else 22354 # If it succeeded, then it was overridden by the user. We will use it 22355 # for the tool. 22356 22357 # First remove it from the list of overridden variables, so we can test 22358 # for unknown variables in the end. 22359 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22360 22361 # Check if we try to supply an empty value 22362 if test "x$HG" = x; then 22363 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22364 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22366 $as_echo_n "checking for HG... " >&6; } 22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22368 $as_echo "disabled" >&6; } 22369 else 22370 # Check if the provided tool contains a complete path. 22371 tool_specified="$HG" 22372 tool_basename="${tool_specified##*/}" 22373 if test "x$tool_basename" = "x$tool_specified"; then 22374 # A command without a complete path is provided, search $PATH. 22375 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22376 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22377 # Extract the first word of "$tool_basename", so it can be a program name with args. 22378 set dummy $tool_basename; ac_word=$2 22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22380 $as_echo_n "checking for $ac_word... " >&6; } 22381 if ${ac_cv_path_HG+:} false; then : 22382 $as_echo_n "(cached) " >&6 22383 else 22384 case $HG in 22385 [\\/]* | ?:[\\/]*) 22386 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22387 ;; 22388 *) 22389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22390 for as_dir in $PATH 22391 do 22392 IFS=$as_save_IFS 22393 test -z "$as_dir" && as_dir=. 22394 for ac_exec_ext in '' $ac_executable_extensions; do 22395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22396 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22398 break 2 22399 fi 22400 done 22401 done 22402 IFS=$as_save_IFS 22403 22404 ;; 22405 esac 22406 fi 22407 HG=$ac_cv_path_HG 22408 if test -n "$HG"; then 22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22410 $as_echo "$HG" >&6; } 22411 else 22412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22413 $as_echo "no" >&6; } 22414 fi 22415 22416 22417 if test "x$HG" = x; then 22418 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22419 fi 22420 else 22421 # Otherwise we believe it is a complete path. Use it as it is. 22422 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22423 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22425 $as_echo_n "checking for HG... " >&6; } 22426 if test ! -x "$tool_specified"; then 22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22428 $as_echo "not found" >&6; } 22429 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22430 fi 22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22432 $as_echo "$tool_specified" >&6; } 22433 fi 22434 fi 22435 fi 22436 22437 fi 22438 22439 22440 22441 22442 # Publish this variable in the help. 22443 22444 22445 if [ -z "${STAT+x}" ]; then 22446 # The variable is not set by user, try to locate tool using the code snippet 22447 for ac_prog in stat 22448 do 22449 # Extract the first word of "$ac_prog", so it can be a program name with args. 22450 set dummy $ac_prog; ac_word=$2 22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22452 $as_echo_n "checking for $ac_word... " >&6; } 22453 if ${ac_cv_path_STAT+:} false; then : 22454 $as_echo_n "(cached) " >&6 22455 else 22456 case $STAT in 22457 [\\/]* | ?:[\\/]*) 22458 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22459 ;; 22460 *) 22461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22462 for as_dir in $PATH 22463 do 22464 IFS=$as_save_IFS 22465 test -z "$as_dir" && as_dir=. 22466 for ac_exec_ext in '' $ac_executable_extensions; do 22467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22468 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22470 break 2 22471 fi 22472 done 22473 done 22474 IFS=$as_save_IFS 22475 22476 ;; 22477 esac 22478 fi 22479 STAT=$ac_cv_path_STAT 22480 if test -n "$STAT"; then 22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22482 $as_echo "$STAT" >&6; } 22483 else 22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22485 $as_echo "no" >&6; } 22486 fi 22487 22488 22489 test -n "$STAT" && break 22490 done 22491 22492 else 22493 # The variable is set, but is it from the command line or the environment? 22494 22495 # Try to remove the string !STAT! from our list. 22496 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 22497 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22498 # If it failed, the variable was not from the command line. Ignore it, 22499 # but warn the user (except for BASH, which is always set by the calling BASH). 22500 if test "xSTAT" != xBASH; then 22501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 22502 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 22503 fi 22504 # Try to locate tool using the code snippet 22505 for ac_prog in stat 22506 do 22507 # Extract the first word of "$ac_prog", so it can be a program name with args. 22508 set dummy $ac_prog; ac_word=$2 22509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22510 $as_echo_n "checking for $ac_word... " >&6; } 22511 if ${ac_cv_path_STAT+:} false; then : 22512 $as_echo_n "(cached) " >&6 22513 else 22514 case $STAT in 22515 [\\/]* | ?:[\\/]*) 22516 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22517 ;; 22518 *) 22519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22520 for as_dir in $PATH 22521 do 22522 IFS=$as_save_IFS 22523 test -z "$as_dir" && as_dir=. 22524 for ac_exec_ext in '' $ac_executable_extensions; do 22525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22526 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22528 break 2 22529 fi 22530 done 22531 done 22532 IFS=$as_save_IFS 22533 22534 ;; 22535 esac 22536 fi 22537 STAT=$ac_cv_path_STAT 22538 if test -n "$STAT"; then 22539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22540 $as_echo "$STAT" >&6; } 22541 else 22542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22543 $as_echo "no" >&6; } 22544 fi 22545 22546 22547 test -n "$STAT" && break 22548 done 22549 22550 else 22551 # If it succeeded, then it was overridden by the user. We will use it 22552 # for the tool. 22553 22554 # First remove it from the list of overridden variables, so we can test 22555 # for unknown variables in the end. 22556 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22557 22558 # Check if we try to supply an empty value 22559 if test "x$STAT" = x; then 22560 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 22561 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 22562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22563 $as_echo_n "checking for STAT... " >&6; } 22564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22565 $as_echo "disabled" >&6; } 22566 else 22567 # Check if the provided tool contains a complete path. 22568 tool_specified="$STAT" 22569 tool_basename="${tool_specified##*/}" 22570 if test "x$tool_basename" = "x$tool_specified"; then 22571 # A command without a complete path is provided, search $PATH. 22572 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 22573 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 22574 # Extract the first word of "$tool_basename", so it can be a program name with args. 22575 set dummy $tool_basename; ac_word=$2 22576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22577 $as_echo_n "checking for $ac_word... " >&6; } 22578 if ${ac_cv_path_STAT+:} false; then : 22579 $as_echo_n "(cached) " >&6 22580 else 22581 case $STAT in 22582 [\\/]* | ?:[\\/]*) 22583 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22584 ;; 22585 *) 22586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22587 for as_dir in $PATH 22588 do 22589 IFS=$as_save_IFS 22590 test -z "$as_dir" && as_dir=. 22591 for ac_exec_ext in '' $ac_executable_extensions; do 22592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22593 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22595 break 2 22596 fi 22597 done 22598 done 22599 IFS=$as_save_IFS 22600 22601 ;; 22602 esac 22603 fi 22604 STAT=$ac_cv_path_STAT 22605 if test -n "$STAT"; then 22606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22607 $as_echo "$STAT" >&6; } 22608 else 22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22610 $as_echo "no" >&6; } 22611 fi 22612 22613 22614 if test "x$STAT" = x; then 22615 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22616 fi 22617 else 22618 # Otherwise we believe it is a complete path. Use it as it is. 22619 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 22620 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22622 $as_echo_n "checking for STAT... " >&6; } 22623 if test ! -x "$tool_specified"; then 22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22625 $as_echo "not found" >&6; } 22626 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 22627 fi 22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22629 $as_echo "$tool_specified" >&6; } 22630 fi 22631 fi 22632 fi 22633 22634 fi 22635 22636 22637 22638 22639 # Publish this variable in the help. 22640 22641 22642 if [ -z "${TIME+x}" ]; then 22643 # The variable is not set by user, try to locate tool using the code snippet 22644 for ac_prog in time 22645 do 22646 # Extract the first word of "$ac_prog", so it can be a program name with args. 22647 set dummy $ac_prog; ac_word=$2 22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22649 $as_echo_n "checking for $ac_word... " >&6; } 22650 if ${ac_cv_path_TIME+:} false; then : 22651 $as_echo_n "(cached) " >&6 22652 else 22653 case $TIME in 22654 [\\/]* | ?:[\\/]*) 22655 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22656 ;; 22657 *) 22658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22659 for as_dir in $PATH 22660 do 22661 IFS=$as_save_IFS 22662 test -z "$as_dir" && as_dir=. 22663 for ac_exec_ext in '' $ac_executable_extensions; do 22664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22665 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22667 break 2 22668 fi 22669 done 22670 done 22671 IFS=$as_save_IFS 22672 22673 ;; 22674 esac 22675 fi 22676 TIME=$ac_cv_path_TIME 22677 if test -n "$TIME"; then 22678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22679 $as_echo "$TIME" >&6; } 22680 else 22681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22682 $as_echo "no" >&6; } 22683 fi 22684 22685 22686 test -n "$TIME" && break 22687 done 22688 22689 else 22690 # The variable is set, but is it from the command line or the environment? 22691 22692 # Try to remove the string !TIME! from our list. 22693 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 22694 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22695 # If it failed, the variable was not from the command line. Ignore it, 22696 # but warn the user (except for BASH, which is always set by the calling BASH). 22697 if test "xTIME" != xBASH; then 22698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 22699 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 22700 fi 22701 # Try to locate tool using the code snippet 22702 for ac_prog in time 22703 do 22704 # Extract the first word of "$ac_prog", so it can be a program name with args. 22705 set dummy $ac_prog; ac_word=$2 22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22707 $as_echo_n "checking for $ac_word... " >&6; } 22708 if ${ac_cv_path_TIME+:} false; then : 22709 $as_echo_n "(cached) " >&6 22710 else 22711 case $TIME in 22712 [\\/]* | ?:[\\/]*) 22713 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22714 ;; 22715 *) 22716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22717 for as_dir in $PATH 22718 do 22719 IFS=$as_save_IFS 22720 test -z "$as_dir" && as_dir=. 22721 for ac_exec_ext in '' $ac_executable_extensions; do 22722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22723 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22725 break 2 22726 fi 22727 done 22728 done 22729 IFS=$as_save_IFS 22730 22731 ;; 22732 esac 22733 fi 22734 TIME=$ac_cv_path_TIME 22735 if test -n "$TIME"; then 22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22737 $as_echo "$TIME" >&6; } 22738 else 22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22740 $as_echo "no" >&6; } 22741 fi 22742 22743 22744 test -n "$TIME" && break 22745 done 22746 22747 else 22748 # If it succeeded, then it was overridden by the user. We will use it 22749 # for the tool. 22750 22751 # First remove it from the list of overridden variables, so we can test 22752 # for unknown variables in the end. 22753 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22754 22755 # Check if we try to supply an empty value 22756 if test "x$TIME" = x; then 22757 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 22758 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 22759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 22760 $as_echo_n "checking for TIME... " >&6; } 22761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22762 $as_echo "disabled" >&6; } 22763 else 22764 # Check if the provided tool contains a complete path. 22765 tool_specified="$TIME" 22766 tool_basename="${tool_specified##*/}" 22767 if test "x$tool_basename" = "x$tool_specified"; then 22768 # A command without a complete path is provided, search $PATH. 22769 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 22770 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 22771 # Extract the first word of "$tool_basename", so it can be a program name with args. 22772 set dummy $tool_basename; ac_word=$2 22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22774 $as_echo_n "checking for $ac_word... " >&6; } 22775 if ${ac_cv_path_TIME+:} false; then : 22776 $as_echo_n "(cached) " >&6 22777 else 22778 case $TIME in 22779 [\\/]* | ?:[\\/]*) 22780 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22781 ;; 22782 *) 22783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22784 for as_dir in $PATH 22785 do 22786 IFS=$as_save_IFS 22787 test -z "$as_dir" && as_dir=. 22788 for ac_exec_ext in '' $ac_executable_extensions; do 22789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22790 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22792 break 2 22793 fi 22794 done 22795 done 22796 IFS=$as_save_IFS 22797 22798 ;; 22799 esac 22800 fi 22801 TIME=$ac_cv_path_TIME 22802 if test -n "$TIME"; then 22803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22804 $as_echo "$TIME" >&6; } 22805 else 22806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22807 $as_echo "no" >&6; } 22808 fi 22809 22810 22811 if test "x$TIME" = x; then 22812 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22813 fi 22814 else 22815 # Otherwise we believe it is a complete path. Use it as it is. 22816 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 22817 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 22819 $as_echo_n "checking for TIME... " >&6; } 22820 if test ! -x "$tool_specified"; then 22821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22822 $as_echo "not found" >&6; } 22823 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 22824 fi 22825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22826 $as_echo "$tool_specified" >&6; } 22827 fi 22828 fi 22829 fi 22830 22831 fi 22832 22833 22834 # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not 22835 # be in the user path. 22836 22837 22838 # Publish this variable in the help. 22839 22840 22841 if [ -z "${DTRACE+x}" ]; then 22842 # The variable is not set by user, try to locate tool using the code snippet 22843 for ac_prog in dtrace 22844 do 22845 # Extract the first word of "$ac_prog", so it can be a program name with args. 22846 set dummy $ac_prog; ac_word=$2 22847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22848 $as_echo_n "checking for $ac_word... " >&6; } 22849 if ${ac_cv_path_DTRACE+:} false; then : 22850 $as_echo_n "(cached) " >&6 22851 else 22852 case $DTRACE in 22853 [\\/]* | ?:[\\/]*) 22854 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22855 ;; 22856 *) 22857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22858 as_dummy="$PATH:/usr/sbin" 22859 for as_dir in $as_dummy 22860 do 22861 IFS=$as_save_IFS 22862 test -z "$as_dir" && as_dir=. 22863 for ac_exec_ext in '' $ac_executable_extensions; do 22864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22865 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22867 break 2 22868 fi 22869 done 22870 done 22871 IFS=$as_save_IFS 22872 22873 ;; 22874 esac 22875 fi 22876 DTRACE=$ac_cv_path_DTRACE 22877 if test -n "$DTRACE"; then 22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22879 $as_echo "$DTRACE" >&6; } 22880 else 22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22882 $as_echo "no" >&6; } 22883 fi 22884 22885 22886 test -n "$DTRACE" && break 22887 done 22888 22889 else 22890 # The variable is set, but is it from the command line or the environment? 22891 22892 # Try to remove the string !DTRACE! from our list. 22893 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 22894 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22895 # If it failed, the variable was not from the command line. Ignore it, 22896 # but warn the user (except for BASH, which is always set by the calling BASH). 22897 if test "xDTRACE" != xBASH; then 22898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 22899 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 22900 fi 22901 # Try to locate tool using the code snippet 22902 for ac_prog in dtrace 22903 do 22904 # Extract the first word of "$ac_prog", so it can be a program name with args. 22905 set dummy $ac_prog; ac_word=$2 22906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22907 $as_echo_n "checking for $ac_word... " >&6; } 22908 if ${ac_cv_path_DTRACE+:} false; then : 22909 $as_echo_n "(cached) " >&6 22910 else 22911 case $DTRACE in 22912 [\\/]* | ?:[\\/]*) 22913 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22914 ;; 22915 *) 22916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22917 as_dummy="$PATH:/usr/sbin" 22918 for as_dir in $as_dummy 22919 do 22920 IFS=$as_save_IFS 22921 test -z "$as_dir" && as_dir=. 22922 for ac_exec_ext in '' $ac_executable_extensions; do 22923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22924 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22926 break 2 22927 fi 22928 done 22929 done 22930 IFS=$as_save_IFS 22931 22932 ;; 22933 esac 22934 fi 22935 DTRACE=$ac_cv_path_DTRACE 22936 if test -n "$DTRACE"; then 22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22938 $as_echo "$DTRACE" >&6; } 22939 else 22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22941 $as_echo "no" >&6; } 22942 fi 22943 22944 22945 test -n "$DTRACE" && break 22946 done 22947 22948 else 22949 # If it succeeded, then it was overridden by the user. We will use it 22950 # for the tool. 22951 22952 # First remove it from the list of overridden variables, so we can test 22953 # for unknown variables in the end. 22954 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22955 22956 # Check if we try to supply an empty value 22957 if test "x$DTRACE" = x; then 22958 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 22959 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 22960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 22961 $as_echo_n "checking for DTRACE... " >&6; } 22962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22963 $as_echo "disabled" >&6; } 22964 else 22965 # Check if the provided tool contains a complete path. 22966 tool_specified="$DTRACE" 22967 tool_basename="${tool_specified##*/}" 22968 if test "x$tool_basename" = "x$tool_specified"; then 22969 # A command without a complete path is provided, search $PATH. 22970 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 22971 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 22972 # Extract the first word of "$tool_basename", so it can be a program name with args. 22973 set dummy $tool_basename; ac_word=$2 22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22975 $as_echo_n "checking for $ac_word... " >&6; } 22976 if ${ac_cv_path_DTRACE+:} false; then : 22977 $as_echo_n "(cached) " >&6 22978 else 22979 case $DTRACE in 22980 [\\/]* | ?:[\\/]*) 22981 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22982 ;; 22983 *) 22984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22985 for as_dir in $PATH 22986 do 22987 IFS=$as_save_IFS 22988 test -z "$as_dir" && as_dir=. 22989 for ac_exec_ext in '' $ac_executable_extensions; do 22990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22991 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22993 break 2 22994 fi 22995 done 22996 done 22997 IFS=$as_save_IFS 22998 22999 ;; 23000 esac 23001 fi 23002 DTRACE=$ac_cv_path_DTRACE 23003 if test -n "$DTRACE"; then 23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23005 $as_echo "$DTRACE" >&6; } 23006 else 23007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23008 $as_echo "no" >&6; } 23009 fi 23010 23011 23012 if test "x$DTRACE" = x; then 23013 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23014 fi 23015 else 23016 # Otherwise we believe it is a complete path. Use it as it is. 23017 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 23018 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23020 $as_echo_n "checking for DTRACE... " >&6; } 23021 if test ! -x "$tool_specified"; then 23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23023 $as_echo "not found" >&6; } 23024 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 23025 fi 23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23027 $as_echo "$tool_specified" >&6; } 23028 fi 23029 fi 23030 fi 23031 23032 fi 23033 23034 23035 23036 23037 # Publish this variable in the help. 23038 23039 23040 if [ -z "${PATCH+x}" ]; then 23041 # The variable is not set by user, try to locate tool using the code snippet 23042 for ac_prog in gpatch patch 23043 do 23044 # Extract the first word of "$ac_prog", so it can be a program name with args. 23045 set dummy $ac_prog; ac_word=$2 23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23047 $as_echo_n "checking for $ac_word... " >&6; } 23048 if ${ac_cv_path_PATCH+:} false; then : 23049 $as_echo_n "(cached) " >&6 23050 else 23051 case $PATCH in 23052 [\\/]* | ?:[\\/]*) 23053 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23054 ;; 23055 *) 23056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23057 for as_dir in $PATH 23058 do 23059 IFS=$as_save_IFS 23060 test -z "$as_dir" && as_dir=. 23061 for ac_exec_ext in '' $ac_executable_extensions; do 23062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23063 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23065 break 2 23066 fi 23067 done 23068 done 23069 IFS=$as_save_IFS 23070 23071 ;; 23072 esac 23073 fi 23074 PATCH=$ac_cv_path_PATCH 23075 if test -n "$PATCH"; then 23076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23077 $as_echo "$PATCH" >&6; } 23078 else 23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23080 $as_echo "no" >&6; } 23081 fi 23082 23083 23084 test -n "$PATCH" && break 23085 done 23086 23087 else 23088 # The variable is set, but is it from the command line or the environment? 23089 23090 # Try to remove the string !PATCH! from our list. 23091 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23092 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23093 # If it failed, the variable was not from the command line. Ignore it, 23094 # but warn the user (except for BASH, which is always set by the calling BASH). 23095 if test "xPATCH" != xBASH; then 23096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23097 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23098 fi 23099 # Try to locate tool using the code snippet 23100 for ac_prog in gpatch patch 23101 do 23102 # Extract the first word of "$ac_prog", so it can be a program name with args. 23103 set dummy $ac_prog; ac_word=$2 23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23105 $as_echo_n "checking for $ac_word... " >&6; } 23106 if ${ac_cv_path_PATCH+:} false; then : 23107 $as_echo_n "(cached) " >&6 23108 else 23109 case $PATCH in 23110 [\\/]* | ?:[\\/]*) 23111 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23112 ;; 23113 *) 23114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23115 for as_dir in $PATH 23116 do 23117 IFS=$as_save_IFS 23118 test -z "$as_dir" && as_dir=. 23119 for ac_exec_ext in '' $ac_executable_extensions; do 23120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23121 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23123 break 2 23124 fi 23125 done 23126 done 23127 IFS=$as_save_IFS 23128 23129 ;; 23130 esac 23131 fi 23132 PATCH=$ac_cv_path_PATCH 23133 if test -n "$PATCH"; then 23134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23135 $as_echo "$PATCH" >&6; } 23136 else 23137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23138 $as_echo "no" >&6; } 23139 fi 23140 23141 23142 test -n "$PATCH" && break 23143 done 23144 23145 else 23146 # If it succeeded, then it was overridden by the user. We will use it 23147 # for the tool. 23148 23149 # First remove it from the list of overridden variables, so we can test 23150 # for unknown variables in the end. 23151 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23152 23153 # Check if we try to supply an empty value 23154 if test "x$PATCH" = x; then 23155 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23156 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23158 $as_echo_n "checking for PATCH... " >&6; } 23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23160 $as_echo "disabled" >&6; } 23161 else 23162 # Check if the provided tool contains a complete path. 23163 tool_specified="$PATCH" 23164 tool_basename="${tool_specified##*/}" 23165 if test "x$tool_basename" = "x$tool_specified"; then 23166 # A command without a complete path is provided, search $PATH. 23167 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23168 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23169 # Extract the first word of "$tool_basename", so it can be a program name with args. 23170 set dummy $tool_basename; ac_word=$2 23171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23172 $as_echo_n "checking for $ac_word... " >&6; } 23173 if ${ac_cv_path_PATCH+:} false; then : 23174 $as_echo_n "(cached) " >&6 23175 else 23176 case $PATCH in 23177 [\\/]* | ?:[\\/]*) 23178 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23179 ;; 23180 *) 23181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23182 for as_dir in $PATH 23183 do 23184 IFS=$as_save_IFS 23185 test -z "$as_dir" && as_dir=. 23186 for ac_exec_ext in '' $ac_executable_extensions; do 23187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23188 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23190 break 2 23191 fi 23192 done 23193 done 23194 IFS=$as_save_IFS 23195 23196 ;; 23197 esac 23198 fi 23199 PATCH=$ac_cv_path_PATCH 23200 if test -n "$PATCH"; then 23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23202 $as_echo "$PATCH" >&6; } 23203 else 23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23205 $as_echo "no" >&6; } 23206 fi 23207 23208 23209 if test "x$PATCH" = x; then 23210 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23211 fi 23212 else 23213 # Otherwise we believe it is a complete path. Use it as it is. 23214 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23215 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23217 $as_echo_n "checking for PATCH... " >&6; } 23218 if test ! -x "$tool_specified"; then 23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23220 $as_echo "not found" >&6; } 23221 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23222 fi 23223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23224 $as_echo "$tool_specified" >&6; } 23225 fi 23226 fi 23227 fi 23228 23229 fi 23230 23231 23232 # Check if it's GNU time 23233 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23234 if test "x$IS_GNU_TIME" != x; then 23235 IS_GNU_TIME=yes 23236 else 23237 IS_GNU_TIME=no 23238 fi 23239 23240 23241 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 23242 23243 23244 23245 # Publish this variable in the help. 23246 23247 23248 if [ -z "${DSYMUTIL+x}" ]; then 23249 # The variable is not set by user, try to locate tool using the code snippet 23250 for ac_prog in dsymutil 23251 do 23252 # Extract the first word of "$ac_prog", so it can be a program name with args. 23253 set dummy $ac_prog; ac_word=$2 23254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23255 $as_echo_n "checking for $ac_word... " >&6; } 23256 if ${ac_cv_path_DSYMUTIL+:} false; then : 23257 $as_echo_n "(cached) " >&6 23258 else 23259 case $DSYMUTIL in 23260 [\\/]* | ?:[\\/]*) 23261 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23262 ;; 23263 *) 23264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23265 for as_dir in $PATH 23266 do 23267 IFS=$as_save_IFS 23268 test -z "$as_dir" && as_dir=. 23269 for ac_exec_ext in '' $ac_executable_extensions; do 23270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23271 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23273 break 2 23274 fi 23275 done 23276 done 23277 IFS=$as_save_IFS 23278 23279 ;; 23280 esac 23281 fi 23282 DSYMUTIL=$ac_cv_path_DSYMUTIL 23283 if test -n "$DSYMUTIL"; then 23284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23285 $as_echo "$DSYMUTIL" >&6; } 23286 else 23287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23288 $as_echo "no" >&6; } 23289 fi 23290 23291 23292 test -n "$DSYMUTIL" && break 23293 done 23294 23295 else 23296 # The variable is set, but is it from the command line or the environment? 23297 23298 # Try to remove the string !DSYMUTIL! from our list. 23299 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 23300 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23301 # If it failed, the variable was not from the command line. Ignore it, 23302 # but warn the user (except for BASH, which is always set by the calling BASH). 23303 if test "xDSYMUTIL" != xBASH; then 23304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 23305 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 23306 fi 23307 # Try to locate tool using the code snippet 23308 for ac_prog in dsymutil 23309 do 23310 # Extract the first word of "$ac_prog", so it can be a program name with args. 23311 set dummy $ac_prog; ac_word=$2 23312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23313 $as_echo_n "checking for $ac_word... " >&6; } 23314 if ${ac_cv_path_DSYMUTIL+:} false; then : 23315 $as_echo_n "(cached) " >&6 23316 else 23317 case $DSYMUTIL in 23318 [\\/]* | ?:[\\/]*) 23319 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23320 ;; 23321 *) 23322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23323 for as_dir in $PATH 23324 do 23325 IFS=$as_save_IFS 23326 test -z "$as_dir" && as_dir=. 23327 for ac_exec_ext in '' $ac_executable_extensions; do 23328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23329 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23331 break 2 23332 fi 23333 done 23334 done 23335 IFS=$as_save_IFS 23336 23337 ;; 23338 esac 23339 fi 23340 DSYMUTIL=$ac_cv_path_DSYMUTIL 23341 if test -n "$DSYMUTIL"; then 23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23343 $as_echo "$DSYMUTIL" >&6; } 23344 else 23345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23346 $as_echo "no" >&6; } 23347 fi 23348 23349 23350 test -n "$DSYMUTIL" && break 23351 done 23352 23353 else 23354 # If it succeeded, then it was overridden by the user. We will use it 23355 # for the tool. 23356 23357 # First remove it from the list of overridden variables, so we can test 23358 # for unknown variables in the end. 23359 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23360 23361 # Check if we try to supply an empty value 23362 if test "x$DSYMUTIL" = x; then 23363 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 23364 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 23365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23366 $as_echo_n "checking for DSYMUTIL... " >&6; } 23367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23368 $as_echo "disabled" >&6; } 23369 else 23370 # Check if the provided tool contains a complete path. 23371 tool_specified="$DSYMUTIL" 23372 tool_basename="${tool_specified##*/}" 23373 if test "x$tool_basename" = "x$tool_specified"; then 23374 # A command without a complete path is provided, search $PATH. 23375 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 23376 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 23377 # Extract the first word of "$tool_basename", so it can be a program name with args. 23378 set dummy $tool_basename; ac_word=$2 23379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23380 $as_echo_n "checking for $ac_word... " >&6; } 23381 if ${ac_cv_path_DSYMUTIL+:} false; then : 23382 $as_echo_n "(cached) " >&6 23383 else 23384 case $DSYMUTIL in 23385 [\\/]* | ?:[\\/]*) 23386 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23387 ;; 23388 *) 23389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23390 for as_dir in $PATH 23391 do 23392 IFS=$as_save_IFS 23393 test -z "$as_dir" && as_dir=. 23394 for ac_exec_ext in '' $ac_executable_extensions; do 23395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23396 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23398 break 2 23399 fi 23400 done 23401 done 23402 IFS=$as_save_IFS 23403 23404 ;; 23405 esac 23406 fi 23407 DSYMUTIL=$ac_cv_path_DSYMUTIL 23408 if test -n "$DSYMUTIL"; then 23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23410 $as_echo "$DSYMUTIL" >&6; } 23411 else 23412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23413 $as_echo "no" >&6; } 23414 fi 23415 23416 23417 if test "x$DSYMUTIL" = x; then 23418 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23419 fi 23420 else 23421 # Otherwise we believe it is a complete path. Use it as it is. 23422 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 23423 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 23424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23425 $as_echo_n "checking for DSYMUTIL... " >&6; } 23426 if test ! -x "$tool_specified"; then 23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23428 $as_echo "not found" >&6; } 23429 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 23430 fi 23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23432 $as_echo "$tool_specified" >&6; } 23433 fi 23434 fi 23435 fi 23436 23437 fi 23438 23439 23440 23441 if test "x$DSYMUTIL" = x; then 23442 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 23443 fi 23444 23445 23446 23447 23448 23449 # Publish this variable in the help. 23450 23451 23452 if [ -z "${XATTR+x}" ]; then 23453 # The variable is not set by user, try to locate tool using the code snippet 23454 for ac_prog in xattr 23455 do 23456 # Extract the first word of "$ac_prog", so it can be a program name with args. 23457 set dummy $ac_prog; ac_word=$2 23458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23459 $as_echo_n "checking for $ac_word... " >&6; } 23460 if ${ac_cv_path_XATTR+:} false; then : 23461 $as_echo_n "(cached) " >&6 23462 else 23463 case $XATTR in 23464 [\\/]* | ?:[\\/]*) 23465 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23466 ;; 23467 *) 23468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23469 for as_dir in $PATH 23470 do 23471 IFS=$as_save_IFS 23472 test -z "$as_dir" && as_dir=. 23473 for ac_exec_ext in '' $ac_executable_extensions; do 23474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23475 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23477 break 2 23478 fi 23479 done 23480 done 23481 IFS=$as_save_IFS 23482 23483 ;; 23484 esac 23485 fi 23486 XATTR=$ac_cv_path_XATTR 23487 if test -n "$XATTR"; then 23488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23489 $as_echo "$XATTR" >&6; } 23490 else 23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23492 $as_echo "no" >&6; } 23493 fi 23494 23495 23496 test -n "$XATTR" && break 23497 done 23498 23499 else 23500 # The variable is set, but is it from the command line or the environment? 23501 23502 # Try to remove the string !XATTR! from our list. 23503 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 23504 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23505 # If it failed, the variable was not from the command line. Ignore it, 23506 # but warn the user (except for BASH, which is always set by the calling BASH). 23507 if test "xXATTR" != xBASH; then 23508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 23509 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 23510 fi 23511 # Try to locate tool using the code snippet 23512 for ac_prog in xattr 23513 do 23514 # Extract the first word of "$ac_prog", so it can be a program name with args. 23515 set dummy $ac_prog; ac_word=$2 23516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23517 $as_echo_n "checking for $ac_word... " >&6; } 23518 if ${ac_cv_path_XATTR+:} false; then : 23519 $as_echo_n "(cached) " >&6 23520 else 23521 case $XATTR in 23522 [\\/]* | ?:[\\/]*) 23523 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23524 ;; 23525 *) 23526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23527 for as_dir in $PATH 23528 do 23529 IFS=$as_save_IFS 23530 test -z "$as_dir" && as_dir=. 23531 for ac_exec_ext in '' $ac_executable_extensions; do 23532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23533 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23535 break 2 23536 fi 23537 done 23538 done 23539 IFS=$as_save_IFS 23540 23541 ;; 23542 esac 23543 fi 23544 XATTR=$ac_cv_path_XATTR 23545 if test -n "$XATTR"; then 23546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23547 $as_echo "$XATTR" >&6; } 23548 else 23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23550 $as_echo "no" >&6; } 23551 fi 23552 23553 23554 test -n "$XATTR" && break 23555 done 23556 23557 else 23558 # If it succeeded, then it was overridden by the user. We will use it 23559 # for the tool. 23560 23561 # First remove it from the list of overridden variables, so we can test 23562 # for unknown variables in the end. 23563 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23564 23565 # Check if we try to supply an empty value 23566 if test "x$XATTR" = x; then 23567 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 23568 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 23570 $as_echo_n "checking for XATTR... " >&6; } 23571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23572 $as_echo "disabled" >&6; } 23573 else 23574 # Check if the provided tool contains a complete path. 23575 tool_specified="$XATTR" 23576 tool_basename="${tool_specified##*/}" 23577 if test "x$tool_basename" = "x$tool_specified"; then 23578 # A command without a complete path is provided, search $PATH. 23579 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 23580 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 23581 # Extract the first word of "$tool_basename", so it can be a program name with args. 23582 set dummy $tool_basename; ac_word=$2 23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23584 $as_echo_n "checking for $ac_word... " >&6; } 23585 if ${ac_cv_path_XATTR+:} false; then : 23586 $as_echo_n "(cached) " >&6 23587 else 23588 case $XATTR in 23589 [\\/]* | ?:[\\/]*) 23590 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23591 ;; 23592 *) 23593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23594 for as_dir in $PATH 23595 do 23596 IFS=$as_save_IFS 23597 test -z "$as_dir" && as_dir=. 23598 for ac_exec_ext in '' $ac_executable_extensions; do 23599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23600 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23602 break 2 23603 fi 23604 done 23605 done 23606 IFS=$as_save_IFS 23607 23608 ;; 23609 esac 23610 fi 23611 XATTR=$ac_cv_path_XATTR 23612 if test -n "$XATTR"; then 23613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23614 $as_echo "$XATTR" >&6; } 23615 else 23616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23617 $as_echo "no" >&6; } 23618 fi 23619 23620 23621 if test "x$XATTR" = x; then 23622 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23623 fi 23624 else 23625 # Otherwise we believe it is a complete path. Use it as it is. 23626 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 23627 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 23628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 23629 $as_echo_n "checking for XATTR... " >&6; } 23630 if test ! -x "$tool_specified"; then 23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23632 $as_echo "not found" >&6; } 23633 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 23634 fi 23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23636 $as_echo "$tool_specified" >&6; } 23637 fi 23638 fi 23639 fi 23640 23641 fi 23642 23643 23644 23645 if test "x$XATTR" = x; then 23646 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 23647 fi 23648 23649 23650 23651 23652 # Publish this variable in the help. 23653 23654 23655 if [ -z "${CODESIGN+x}" ]; then 23656 # The variable is not set by user, try to locate tool using the code snippet 23657 for ac_prog in codesign 23658 do 23659 # Extract the first word of "$ac_prog", so it can be a program name with args. 23660 set dummy $ac_prog; ac_word=$2 23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23662 $as_echo_n "checking for $ac_word... " >&6; } 23663 if ${ac_cv_path_CODESIGN+:} false; then : 23664 $as_echo_n "(cached) " >&6 23665 else 23666 case $CODESIGN in 23667 [\\/]* | ?:[\\/]*) 23668 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23669 ;; 23670 *) 23671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23672 for as_dir in $PATH 23673 do 23674 IFS=$as_save_IFS 23675 test -z "$as_dir" && as_dir=. 23676 for ac_exec_ext in '' $ac_executable_extensions; do 23677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23678 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23680 break 2 23681 fi 23682 done 23683 done 23684 IFS=$as_save_IFS 23685 23686 ;; 23687 esac 23688 fi 23689 CODESIGN=$ac_cv_path_CODESIGN 23690 if test -n "$CODESIGN"; then 23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23692 $as_echo "$CODESIGN" >&6; } 23693 else 23694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23695 $as_echo "no" >&6; } 23696 fi 23697 23698 23699 test -n "$CODESIGN" && break 23700 done 23701 23702 else 23703 # The variable is set, but is it from the command line or the environment? 23704 23705 # Try to remove the string !CODESIGN! from our list. 23706 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 23707 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23708 # If it failed, the variable was not from the command line. Ignore it, 23709 # but warn the user (except for BASH, which is always set by the calling BASH). 23710 if test "xCODESIGN" != xBASH; then 23711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 23712 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 23713 fi 23714 # Try to locate tool using the code snippet 23715 for ac_prog in codesign 23716 do 23717 # Extract the first word of "$ac_prog", so it can be a program name with args. 23718 set dummy $ac_prog; ac_word=$2 23719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23720 $as_echo_n "checking for $ac_word... " >&6; } 23721 if ${ac_cv_path_CODESIGN+:} false; then : 23722 $as_echo_n "(cached) " >&6 23723 else 23724 case $CODESIGN in 23725 [\\/]* | ?:[\\/]*) 23726 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23727 ;; 23728 *) 23729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23730 for as_dir in $PATH 23731 do 23732 IFS=$as_save_IFS 23733 test -z "$as_dir" && as_dir=. 23734 for ac_exec_ext in '' $ac_executable_extensions; do 23735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23736 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23738 break 2 23739 fi 23740 done 23741 done 23742 IFS=$as_save_IFS 23743 23744 ;; 23745 esac 23746 fi 23747 CODESIGN=$ac_cv_path_CODESIGN 23748 if test -n "$CODESIGN"; then 23749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23750 $as_echo "$CODESIGN" >&6; } 23751 else 23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23753 $as_echo "no" >&6; } 23754 fi 23755 23756 23757 test -n "$CODESIGN" && break 23758 done 23759 23760 else 23761 # If it succeeded, then it was overridden by the user. We will use it 23762 # for the tool. 23763 23764 # First remove it from the list of overridden variables, so we can test 23765 # for unknown variables in the end. 23766 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23767 23768 # Check if we try to supply an empty value 23769 if test "x$CODESIGN" = x; then 23770 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 23771 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 23773 $as_echo_n "checking for CODESIGN... " >&6; } 23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23775 $as_echo "disabled" >&6; } 23776 else 23777 # Check if the provided tool contains a complete path. 23778 tool_specified="$CODESIGN" 23779 tool_basename="${tool_specified##*/}" 23780 if test "x$tool_basename" = "x$tool_specified"; then 23781 # A command without a complete path is provided, search $PATH. 23782 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 23783 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 23784 # Extract the first word of "$tool_basename", so it can be a program name with args. 23785 set dummy $tool_basename; ac_word=$2 23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23787 $as_echo_n "checking for $ac_word... " >&6; } 23788 if ${ac_cv_path_CODESIGN+:} false; then : 23789 $as_echo_n "(cached) " >&6 23790 else 23791 case $CODESIGN in 23792 [\\/]* | ?:[\\/]*) 23793 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23794 ;; 23795 *) 23796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23797 for as_dir in $PATH 23798 do 23799 IFS=$as_save_IFS 23800 test -z "$as_dir" && as_dir=. 23801 for ac_exec_ext in '' $ac_executable_extensions; do 23802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23803 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23805 break 2 23806 fi 23807 done 23808 done 23809 IFS=$as_save_IFS 23810 23811 ;; 23812 esac 23813 fi 23814 CODESIGN=$ac_cv_path_CODESIGN 23815 if test -n "$CODESIGN"; then 23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23817 $as_echo "$CODESIGN" >&6; } 23818 else 23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23820 $as_echo "no" >&6; } 23821 fi 23822 23823 23824 if test "x$CODESIGN" = x; then 23825 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23826 fi 23827 else 23828 # Otherwise we believe it is a complete path. Use it as it is. 23829 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 23830 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 23831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 23832 $as_echo_n "checking for CODESIGN... " >&6; } 23833 if test ! -x "$tool_specified"; then 23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23835 $as_echo "not found" >&6; } 23836 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 23837 fi 23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23839 $as_echo "$tool_specified" >&6; } 23840 fi 23841 fi 23842 fi 23843 23844 fi 23845 23846 23847 if test "x$CODESIGN" != "x"; then 23848 # Verify that the openjdk_codesign certificate is present 23849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 23850 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 23851 $RM codesign-testfile 23852 $TOUCH codesign-testfile 23853 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 23854 $RM codesign-testfile 23855 if test "x$CODESIGN" = x; then 23856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23857 $as_echo "no" >&6; } 23858 else 23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23860 $as_echo "yes" >&6; } 23861 fi 23862 fi 23863 23864 23865 23866 # Publish this variable in the help. 23867 23868 23869 if [ -z "${SETFILE+x}" ]; then 23870 # The variable is not set by user, try to locate tool using the code snippet 23871 for ac_prog in SetFile 23872 do 23873 # Extract the first word of "$ac_prog", so it can be a program name with args. 23874 set dummy $ac_prog; ac_word=$2 23875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23876 $as_echo_n "checking for $ac_word... " >&6; } 23877 if ${ac_cv_path_SETFILE+:} false; then : 23878 $as_echo_n "(cached) " >&6 23879 else 23880 case $SETFILE in 23881 [\\/]* | ?:[\\/]*) 23882 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23883 ;; 23884 *) 23885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23886 for as_dir in $PATH 23887 do 23888 IFS=$as_save_IFS 23889 test -z "$as_dir" && as_dir=. 23890 for ac_exec_ext in '' $ac_executable_extensions; do 23891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23892 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23894 break 2 23895 fi 23896 done 23897 done 23898 IFS=$as_save_IFS 23899 23900 ;; 23901 esac 23902 fi 23903 SETFILE=$ac_cv_path_SETFILE 23904 if test -n "$SETFILE"; then 23905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23906 $as_echo "$SETFILE" >&6; } 23907 else 23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23909 $as_echo "no" >&6; } 23910 fi 23911 23912 23913 test -n "$SETFILE" && break 23914 done 23915 23916 else 23917 # The variable is set, but is it from the command line or the environment? 23918 23919 # Try to remove the string !SETFILE! from our list. 23920 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 23921 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23922 # If it failed, the variable was not from the command line. Ignore it, 23923 # but warn the user (except for BASH, which is always set by the calling BASH). 23924 if test "xSETFILE" != xBASH; then 23925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 23926 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 23927 fi 23928 # Try to locate tool using the code snippet 23929 for ac_prog in SetFile 23930 do 23931 # Extract the first word of "$ac_prog", so it can be a program name with args. 23932 set dummy $ac_prog; ac_word=$2 23933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23934 $as_echo_n "checking for $ac_word... " >&6; } 23935 if ${ac_cv_path_SETFILE+:} false; then : 23936 $as_echo_n "(cached) " >&6 23937 else 23938 case $SETFILE in 23939 [\\/]* | ?:[\\/]*) 23940 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23941 ;; 23942 *) 23943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23944 for as_dir in $PATH 23945 do 23946 IFS=$as_save_IFS 23947 test -z "$as_dir" && as_dir=. 23948 for ac_exec_ext in '' $ac_executable_extensions; do 23949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23950 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23952 break 2 23953 fi 23954 done 23955 done 23956 IFS=$as_save_IFS 23957 23958 ;; 23959 esac 23960 fi 23961 SETFILE=$ac_cv_path_SETFILE 23962 if test -n "$SETFILE"; then 23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23964 $as_echo "$SETFILE" >&6; } 23965 else 23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23967 $as_echo "no" >&6; } 23968 fi 23969 23970 23971 test -n "$SETFILE" && break 23972 done 23973 23974 else 23975 # If it succeeded, then it was overridden by the user. We will use it 23976 # for the tool. 23977 23978 # First remove it from the list of overridden variables, so we can test 23979 # for unknown variables in the end. 23980 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23981 23982 # Check if we try to supply an empty value 23983 if test "x$SETFILE" = x; then 23984 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 23985 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 23987 $as_echo_n "checking for SETFILE... " >&6; } 23988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23989 $as_echo "disabled" >&6; } 23990 else 23991 # Check if the provided tool contains a complete path. 23992 tool_specified="$SETFILE" 23993 tool_basename="${tool_specified##*/}" 23994 if test "x$tool_basename" = "x$tool_specified"; then 23995 # A command without a complete path is provided, search $PATH. 23996 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 23997 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 23998 # Extract the first word of "$tool_basename", so it can be a program name with args. 23999 set dummy $tool_basename; ac_word=$2 24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24001 $as_echo_n "checking for $ac_word... " >&6; } 24002 if ${ac_cv_path_SETFILE+:} false; then : 24003 $as_echo_n "(cached) " >&6 24004 else 24005 case $SETFILE in 24006 [\\/]* | ?:[\\/]*) 24007 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24008 ;; 24009 *) 24010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24011 for as_dir in $PATH 24012 do 24013 IFS=$as_save_IFS 24014 test -z "$as_dir" && as_dir=. 24015 for ac_exec_ext in '' $ac_executable_extensions; do 24016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24017 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24019 break 2 24020 fi 24021 done 24022 done 24023 IFS=$as_save_IFS 24024 24025 ;; 24026 esac 24027 fi 24028 SETFILE=$ac_cv_path_SETFILE 24029 if test -n "$SETFILE"; then 24030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24031 $as_echo "$SETFILE" >&6; } 24032 else 24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24034 $as_echo "no" >&6; } 24035 fi 24036 24037 24038 if test "x$SETFILE" = x; then 24039 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24040 fi 24041 else 24042 # Otherwise we believe it is a complete path. Use it as it is. 24043 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 24044 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 24045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24046 $as_echo_n "checking for SETFILE... " >&6; } 24047 if test ! -x "$tool_specified"; then 24048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24049 $as_echo "not found" >&6; } 24050 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 24051 fi 24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24053 $as_echo "$tool_specified" >&6; } 24054 fi 24055 fi 24056 fi 24057 24058 fi 24059 24060 24061 24062 if test "x$SETFILE" = x; then 24063 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24064 fi 24065 24066 24067 fi 24068 24069 24070 # Test if bash supports pipefail. 24071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24072 $as_echo_n "checking if bash supports pipefail... " >&6; } 24073 if ${BASH} -c 'set -o pipefail'; then 24074 BASH_ARGS="$BASH_ARGS -o pipefail" 24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24076 $as_echo "yes" >&6; } 24077 else 24078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24079 $as_echo "no" >&6; } 24080 fi 24081 24082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24083 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24084 if ${BASH} -e -c 'true'; then 24085 BASH_ARGS="$BASH_ARGS -e" 24086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24087 $as_echo "yes" >&6; } 24088 else 24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24090 $as_echo "no" >&6; } 24091 fi 24092 24093 24094 24095 24096 # Check if pkg-config is available. 24097 24098 24099 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24100 if test -n "$ac_tool_prefix"; then 24101 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24102 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24104 $as_echo_n "checking for $ac_word... " >&6; } 24105 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24106 $as_echo_n "(cached) " >&6 24107 else 24108 case $PKG_CONFIG in 24109 [\\/]* | ?:[\\/]*) 24110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24111 ;; 24112 *) 24113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24114 for as_dir in $PATH 24115 do 24116 IFS=$as_save_IFS 24117 test -z "$as_dir" && as_dir=. 24118 for ac_exec_ext in '' $ac_executable_extensions; do 24119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24122 break 2 24123 fi 24124 done 24125 done 24126 IFS=$as_save_IFS 24127 24128 ;; 24129 esac 24130 fi 24131 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24132 if test -n "$PKG_CONFIG"; then 24133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24134 $as_echo "$PKG_CONFIG" >&6; } 24135 else 24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24137 $as_echo "no" >&6; } 24138 fi 24139 24140 24141 fi 24142 if test -z "$ac_cv_path_PKG_CONFIG"; then 24143 ac_pt_PKG_CONFIG=$PKG_CONFIG 24144 # Extract the first word of "pkg-config", so it can be a program name with args. 24145 set dummy pkg-config; ac_word=$2 24146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24147 $as_echo_n "checking for $ac_word... " >&6; } 24148 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24149 $as_echo_n "(cached) " >&6 24150 else 24151 case $ac_pt_PKG_CONFIG in 24152 [\\/]* | ?:[\\/]*) 24153 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24154 ;; 24155 *) 24156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24157 for as_dir in $PATH 24158 do 24159 IFS=$as_save_IFS 24160 test -z "$as_dir" && as_dir=. 24161 for ac_exec_ext in '' $ac_executable_extensions; do 24162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24163 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24165 break 2 24166 fi 24167 done 24168 done 24169 IFS=$as_save_IFS 24170 24171 ;; 24172 esac 24173 fi 24174 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24175 if test -n "$ac_pt_PKG_CONFIG"; then 24176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24177 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24178 else 24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24180 $as_echo "no" >&6; } 24181 fi 24182 24183 if test "x$ac_pt_PKG_CONFIG" = x; then 24184 PKG_CONFIG="" 24185 else 24186 case $cross_compiling:$ac_tool_warned in 24187 yes:) 24188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24190 ac_tool_warned=yes ;; 24191 esac 24192 PKG_CONFIG=$ac_pt_PKG_CONFIG 24193 fi 24194 else 24195 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24196 fi 24197 24198 fi 24199 if test -n "$PKG_CONFIG"; then 24200 _pkg_min_version=0.9.0 24201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24202 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24203 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24205 $as_echo "yes" >&6; } 24206 else 24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24208 $as_echo "no" >&6; } 24209 PKG_CONFIG="" 24210 fi 24211 24212 fi 24213 24214 # After basic tools have been setup, we can check build os specific details. 24215 24216 ############################################################################### 24217 24218 # Note that this is the build platform OS version! 24219 24220 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24221 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24222 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24223 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24224 24225 24226 24227 24228 24229 # Misc basic settings 24230 24231 24232 # Check whether --with-default-make-target was given. 24233 if test "${with_default_make_target+set}" = set; then : 24234 withval=$with_default_make_target; 24235 fi 24236 24237 if test "x$with_default_make_target" = "x" \ 24238 || test "x$with_default_make_target" = "xyes"; then 24239 DEFAULT_MAKE_TARGET="exploded-image" 24240 elif test "x$with_default_make_target" = "xno"; then 24241 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24242 else 24243 DEFAULT_MAKE_TARGET="$with_default_make_target" 24244 fi 24245 24246 24247 24248 24249 ############################################################################### 24250 # 24251 # Determine OpenJDK variants, options and version numbers. 24252 # 24253 ############################################################################### 24254 24255 # We need build & target for this. 24256 24257 # Should we build a JDK without a graphical UI? 24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5 24259 $as_echo_n "checking headless only... " >&6; } 24260 # Check whether --enable-headless-only was given. 24261 if test "${enable_headless_only+set}" = set; then : 24262 enableval=$enable_headless_only; 24263 fi 24264 24265 24266 if test "x$enable_headless_only" = "xyes"; then 24267 ENABLE_HEADLESS_ONLY="true" 24268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24269 $as_echo "yes" >&6; } 24270 elif test "x$enable_headless_only" = "xno"; then 24271 ENABLE_HEADLESS_ONLY="false" 24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24273 $as_echo "no" >&6; } 24274 elif test "x$enable_headless_only" = "x"; then 24275 ENABLE_HEADLESS_ONLY="false" 24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24277 $as_echo "no" >&6; } 24278 else 24279 as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5 24280 fi 24281 24282 24283 24284 # Choose cacerts source file 24285 24286 # Check whether --with-cacerts-file was given. 24287 if test "${with_cacerts_file+set}" = set; then : 24288 withval=$with_cacerts_file; 24289 fi 24290 24291 if test "x$with_cacerts_file" != x; then 24292 CACERTS_FILE=$with_cacerts_file 24293 fi 24294 24295 24296 # Enable or disable unlimited crypto 24297 # Check whether --enable-unlimited-crypto was given. 24298 if test "${enable_unlimited_crypto+set}" = set; then : 24299 enableval=$enable_unlimited_crypto; 24300 else 24301 enable_unlimited_crypto=no 24302 fi 24303 24304 if test "x$enable_unlimited_crypto" = "xyes"; then 24305 UNLIMITED_CRYPTO=true 24306 else 24307 UNLIMITED_CRYPTO=false 24308 fi 24309 24310 24311 # Should we build the serviceability agent (SA)? 24312 INCLUDE_SA=true 24313 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 24314 INCLUDE_SA=false 24315 fi 24316 if test "x$OPENJDK_TARGET_OS" = xaix ; then 24317 INCLUDE_SA=false 24318 fi 24319 24320 24321 # Compress jars 24322 COMPRESS_JARS=false 24323 24324 24325 24326 # Setup default copyright year. Mostly overridden when building close to a new year. 24327 24328 # Check whether --with-copyright-year was given. 24329 if test "${with_copyright_year+set}" = set; then : 24330 withval=$with_copyright_year; 24331 fi 24332 24333 if test "x$with_copyright_year" = xyes; then 24334 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 24335 elif test "x$with_copyright_year" != x; then 24336 COPYRIGHT_YEAR="$with_copyright_year" 24337 else 24338 COPYRIGHT_YEAR=`$DATE +'%Y'` 24339 fi 24340 24341 24342 24343 # Check whether --enable-keep-packaged-modules was given. 24344 if test "${enable_keep_packaged_modules+set}" = set; then : 24345 enableval=$enable_keep_packaged_modules; 24346 fi 24347 24348 24349 if test "x$enable_keep_packaged_modules" = "xyes"; then 24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 24351 $as_echo_n "checking if packaged modules are kept... " >&6; } 24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24353 $as_echo "yes" >&6; } 24354 JLINK_KEEP_PACKAGED_MODULES=true 24355 elif test "x$enable_keep_packaged_modules" = "xno"; then 24356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 24357 $as_echo_n "checking if packaged modules are kept... " >&6; } 24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24359 $as_echo "no" >&6; } 24360 JLINK_KEEP_PACKAGED_MODULES=false 24361 elif test "x$enable_keep_packaged_modules" = "x"; then 24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 24363 $as_echo "yes (default)" >&6; } 24364 JLINK_KEEP_PACKAGED_MODULES=true 24365 else 24366 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 24367 fi 24368 24369 24370 24371 24372 # Warn user that old version arguments are deprecated. 24373 24374 24375 # Check whether --with-milestone was given. 24376 if test "${with_milestone+set}" = set; then : 24377 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 24378 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 24379 fi 24380 24381 24382 24383 24384 # Check whether --with-update-version was given. 24385 if test "${with_update_version+set}" = set; then : 24386 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 24387 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 24388 fi 24389 24390 24391 24392 24393 # Check whether --with-user-release-suffix was given. 24394 if test "${with_user_release_suffix+set}" = set; then : 24395 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 24396 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 24397 fi 24398 24399 24400 24401 24402 # Check whether --with-build-number was given. 24403 if test "${with_build_number+set}" = set; then : 24404 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 24405 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 24406 fi 24407 24408 24409 24410 # Source the version numbers file 24411 . $AUTOCONF_DIR/version-numbers 24412 24413 # Some non-version number information is set in that file 24414 24415 24416 24417 24418 24419 24420 24421 24422 24423 # Override version from arguments 24424 24425 # If --with-version-string is set, process it first. It is possible to 24426 # override parts with more specific flags, since these are processed later. 24427 24428 # Check whether --with-version-string was given. 24429 if test "${with_version_string+set}" = set; then : 24430 withval=$with_version_string; 24431 fi 24432 24433 if test "x$with_version_string" = xyes; then 24434 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 24435 elif test "x$with_version_string" != x; then 24436 # Additional [] needed to keep m4 from mangling shell constructs. 24437 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 24438 VERSION_MAJOR=${BASH_REMATCH[1]} 24439 VERSION_MINOR=${BASH_REMATCH[3]} 24440 VERSION_SECURITY=${BASH_REMATCH[5]} 24441 VERSION_PATCH=${BASH_REMATCH[7]} 24442 VERSION_PRE=${BASH_REMATCH[9]} 24443 version_plus_separator=${BASH_REMATCH[11]} 24444 VERSION_BUILD=${BASH_REMATCH[12]} 24445 VERSION_OPT=${BASH_REMATCH[14]} 24446 # Unspecified numerical fields are interpreted as 0. 24447 if test "x$VERSION_MINOR" = x; then 24448 VERSION_MINOR=0 24449 fi 24450 if test "x$VERSION_SECURITY" = x; then 24451 VERSION_SECURITY=0 24452 fi 24453 if test "x$VERSION_PATCH" = x; then 24454 VERSION_PATCH=0 24455 fi 24456 if test "x$version_plus_separator" != x \ 24457 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 24458 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 24459 fi 24460 # Stop the version part process from setting default values. 24461 # We still allow them to explicitely override though. 24462 NO_DEFAULT_VERSION_PARTS=true 24463 else 24464 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 24465 fi 24466 fi 24467 24468 24469 # Check whether --with-version-pre was given. 24470 if test "${with_version_pre+set}" = set; then : 24471 withval=$with_version_pre; with_version_pre_present=true 24472 else 24473 with_version_pre_present=false 24474 fi 24475 24476 24477 if test "x$with_version_pre_present" = xtrue; then 24478 if test "x$with_version_pre" = xyes; then 24479 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 24480 elif test "x$with_version_pre" = xno; then 24481 # Interpret --without-* as empty string instead of the literal "no" 24482 VERSION_PRE= 24483 else 24484 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 24485 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 24486 if test "x$VERSION_PRE" != "x$with_version_pre"; then 24487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 24488 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 24489 fi 24490 fi 24491 else 24492 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24493 # Default is to use "internal" as pre 24494 VERSION_PRE="internal" 24495 fi 24496 fi 24497 24498 24499 # Check whether --with-version-opt was given. 24500 if test "${with_version_opt+set}" = set; then : 24501 withval=$with_version_opt; with_version_opt_present=true 24502 else 24503 with_version_opt_present=false 24504 fi 24505 24506 24507 if test "x$with_version_opt_present" = xtrue; then 24508 if test "x$with_version_opt" = xyes; then 24509 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 24510 elif test "x$with_version_opt" = xno; then 24511 # Interpret --without-* as empty string instead of the literal "no" 24512 VERSION_OPT= 24513 else 24514 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 24515 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 24516 if test "x$VERSION_OPT" != "x$with_version_opt"; then 24517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 24518 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 24519 fi 24520 fi 24521 else 24522 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24523 # Default is to calculate a string like this <timestamp>.<username>.<base dir name> 24524 timestamp=`$DATE '+%Y-%m-%d-%H%M%S'` 24525 # Outer [ ] to quote m4. 24526 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 24527 VERSION_OPT="$timestamp.$USERNAME.$basedirname" 24528 fi 24529 fi 24530 24531 24532 # Check whether --with-version-build was given. 24533 if test "${with_version_build+set}" = set; then : 24534 withval=$with_version_build; with_version_build_present=true 24535 else 24536 with_version_build_present=false 24537 fi 24538 24539 24540 if test "x$with_version_build_present" = xtrue; then 24541 if test "x$with_version_build" = xyes; then 24542 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 24543 elif test "x$with_version_build" = xno; then 24544 # Interpret --without-* as empty string instead of the literal "no" 24545 VERSION_BUILD= 24546 elif test "x$with_version_build" = x; then 24547 VERSION_BUILD= 24548 else 24549 24550 # Additional [] needed to keep m4 from mangling shell constructs. 24551 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24552 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 24553 fi 24554 # Extract the version number without leading zeros. 24555 cleaned_value=${BASH_REMATCH[1]} 24556 if test "x$cleaned_value" = x; then 24557 # Special case for zero 24558 cleaned_value=${BASH_REMATCH[2]} 24559 fi 24560 24561 if test $cleaned_value -gt 255; then 24562 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 24563 fi 24564 if test "x$cleaned_value" != "x$with_version_build"; then 24565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 24566 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 24567 fi 24568 VERSION_BUILD=$cleaned_value 24569 24570 fi 24571 else 24572 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24573 # Default is to not have a build number. 24574 VERSION_BUILD="" 24575 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 24576 VERSION_BUILD=0 24577 fi 24578 fi 24579 24580 24581 # Check whether --with-version-major was given. 24582 if test "${with_version_major+set}" = set; then : 24583 withval=$with_version_major; with_version_major_present=true 24584 else 24585 with_version_major_present=false 24586 fi 24587 24588 24589 if test "x$with_version_major_present" = xtrue; then 24590 if test "x$with_version_major" = xyes; then 24591 as_fn_error $? "--with-version-major must have a value" "$LINENO" 5 24592 else 24593 24594 # Additional [] needed to keep m4 from mangling shell constructs. 24595 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24596 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 24597 fi 24598 # Extract the version number without leading zeros. 24599 cleaned_value=${BASH_REMATCH[1]} 24600 if test "x$cleaned_value" = x; then 24601 # Special case for zero 24602 cleaned_value=${BASH_REMATCH[2]} 24603 fi 24604 24605 if test $cleaned_value -gt 255; then 24606 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 24607 fi 24608 if test "x$cleaned_value" != "x$with_version_major"; then 24609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 24610 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 24611 fi 24612 VERSION_MAJOR=$cleaned_value 24613 24614 fi 24615 else 24616 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24617 # Default is to get value from version-numbers 24618 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 24619 fi 24620 fi 24621 24622 24623 # Check whether --with-version-minor was given. 24624 if test "${with_version_minor+set}" = set; then : 24625 withval=$with_version_minor; with_version_minor_present=true 24626 else 24627 with_version_minor_present=false 24628 fi 24629 24630 24631 if test "x$with_version_minor_present" = xtrue; then 24632 if test "x$with_version_minor" = xyes; then 24633 as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5 24634 elif test "x$with_version_minor" = xno; then 24635 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24636 VERSION_MINOR=0 24637 elif test "x$with_version_minor" = x; then 24638 VERSION_MINOR=0 24639 else 24640 24641 # Additional [] needed to keep m4 from mangling shell constructs. 24642 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24643 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 24644 fi 24645 # Extract the version number without leading zeros. 24646 cleaned_value=${BASH_REMATCH[1]} 24647 if test "x$cleaned_value" = x; then 24648 # Special case for zero 24649 cleaned_value=${BASH_REMATCH[2]} 24650 fi 24651 24652 if test $cleaned_value -gt 255; then 24653 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 24654 fi 24655 if test "x$cleaned_value" != "x$with_version_minor"; then 24656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 24657 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 24658 fi 24659 VERSION_MINOR=$cleaned_value 24660 24661 fi 24662 else 24663 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24664 # Default is 0, if unspecified 24665 VERSION_MINOR=0 24666 fi 24667 fi 24668 24669 24670 # Check whether --with-version-security was given. 24671 if test "${with_version_security+set}" = set; then : 24672 withval=$with_version_security; with_version_security_present=true 24673 else 24674 with_version_security_present=false 24675 fi 24676 24677 24678 if test "x$with_version_security_present" = xtrue; then 24679 if test "x$with_version_security" = xyes; then 24680 as_fn_error $? "--with-version-security must have a value" "$LINENO" 5 24681 elif test "x$with_version_security" = xno; then 24682 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24683 VERSION_SECURITY=0 24684 elif test "x$with_version_security" = x; then 24685 VERSION_SECURITY=0 24686 else 24687 24688 # Additional [] needed to keep m4 from mangling shell constructs. 24689 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24690 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 24691 fi 24692 # Extract the version number without leading zeros. 24693 cleaned_value=${BASH_REMATCH[1]} 24694 if test "x$cleaned_value" = x; then 24695 # Special case for zero 24696 cleaned_value=${BASH_REMATCH[2]} 24697 fi 24698 24699 if test $cleaned_value -gt 255; then 24700 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 24701 fi 24702 if test "x$cleaned_value" != "x$with_version_security"; then 24703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 24704 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 24705 fi 24706 VERSION_SECURITY=$cleaned_value 24707 24708 fi 24709 else 24710 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24711 # Default is 0, if unspecified 24712 VERSION_SECURITY=0 24713 fi 24714 fi 24715 24716 24717 # Check whether --with-version-patch was given. 24718 if test "${with_version_patch+set}" = set; then : 24719 withval=$with_version_patch; with_version_patch_present=true 24720 else 24721 with_version_patch_present=false 24722 fi 24723 24724 24725 if test "x$with_version_patch_present" = xtrue; then 24726 if test "x$with_version_patch" = xyes; then 24727 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 24728 elif test "x$with_version_patch" = xno; then 24729 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24730 VERSION_PATCH=0 24731 elif test "x$with_version_patch" = x; then 24732 VERSION_PATCH=0 24733 else 24734 24735 # Additional [] needed to keep m4 from mangling shell constructs. 24736 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24737 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 24738 fi 24739 # Extract the version number without leading zeros. 24740 cleaned_value=${BASH_REMATCH[1]} 24741 if test "x$cleaned_value" = x; then 24742 # Special case for zero 24743 cleaned_value=${BASH_REMATCH[2]} 24744 fi 24745 24746 if test $cleaned_value -gt 255; then 24747 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 24748 fi 24749 if test "x$cleaned_value" != "x$with_version_patch"; then 24750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 24751 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 24752 fi 24753 VERSION_PATCH=$cleaned_value 24754 24755 fi 24756 else 24757 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24758 # Default is 0, if unspecified 24759 VERSION_PATCH=0 24760 fi 24761 fi 24762 24763 # Calculate derived version properties 24764 24765 # Set VERSION_IS_GA based on if VERSION_PRE has a value 24766 if test "x$VERSION_PRE" = x; then 24767 VERSION_IS_GA=true 24768 else 24769 VERSION_IS_GA=false 24770 fi 24771 24772 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 24773 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 24774 24775 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 24776 # Strip trailing zeroes from stripped_version_number 24777 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 24778 VERSION_NUMBER=$stripped_version_number 24779 24780 # The complete version string, with additional build information 24781 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 24782 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 24783 else 24784 # If either build or opt is set, we need a + separator 24785 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 24786 fi 24787 24788 # The short version string, just VERSION_NUMBER and PRE, if present. 24789 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 24790 24791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 24792 $as_echo_n "checking for version string... " >&6; } 24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 24794 $as_echo "$VERSION_STRING" >&6; } 24795 24796 24797 24798 24799 24800 24801 24802 24803 24804 24805 24806 24807 24808 24809 24810 ############################################################################### 24811 # 24812 # Setup BootJDK, used to bootstrap the build. 24813 # 24814 ############################################################################### 24815 24816 24817 BOOT_JDK_FOUND=no 24818 24819 # Check whether --with-boot-jdk was given. 24820 if test "${with_boot_jdk+set}" = set; then : 24821 withval=$with_boot_jdk; 24822 fi 24823 24824 24825 # We look for the Boot JDK through various means, going from more certain to 24826 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 24827 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 24828 # must check if this is indeed valid; otherwise we'll continue looking. 24829 24830 # Test: Is bootjdk explicitely set by command line arguments? 24831 24832 if test "x$BOOT_JDK_FOUND" = xno; then 24833 # Now execute the test 24834 24835 if test "x$with_boot_jdk" != x; then 24836 BOOT_JDK=$with_boot_jdk 24837 BOOT_JDK_FOUND=maybe 24838 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 24839 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 24840 fi 24841 24842 24843 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24844 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24845 # Do we have a bin/java? 24846 if test ! -x "$BOOT_JDK/bin/java"; then 24847 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24848 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24849 BOOT_JDK_FOUND=no 24850 else 24851 # Do we have a bin/javac? 24852 if test ! -x "$BOOT_JDK/bin/javac"; then 24853 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24854 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24855 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24856 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24857 BOOT_JDK_FOUND=no 24858 else 24859 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24860 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 24861 24862 # Extra M4 quote needed to protect [] in grep expression. 24863 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24864 if test "x$FOUND_CORRECT_VERSION" = x; then 24865 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24866 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24867 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24868 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24869 BOOT_JDK_FOUND=no 24870 else 24871 # We're done! :-) 24872 BOOT_JDK_FOUND=yes 24873 24874 # Only process if variable expands to non-empty 24875 24876 if test "x$BOOT_JDK" != x; then 24877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24878 24879 # Input might be given as Windows format, start by converting to 24880 # unix format. 24881 path="$BOOT_JDK" 24882 new_path=`$CYGPATH -u "$path"` 24883 24884 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24885 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24886 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24887 # "foo.exe" is OK but "foo" is an error. 24888 # 24889 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24890 # It is also a way to make sure we got the proper file name for the real test later on. 24891 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24892 if test "x$test_shortpath" = x; then 24893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24894 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24895 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24896 fi 24897 24898 # Call helper function which possibly converts this using DOS-style short mode. 24899 # If so, the updated path is stored in $new_path. 24900 24901 input_path="$new_path" 24902 # Check if we need to convert this using DOS-style short mode. If the path 24903 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24904 # take no chances and rewrite it. 24905 # Note: m4 eats our [], so we need to use [ and ] instead. 24906 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24907 if test "x$has_forbidden_chars" != x; then 24908 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24909 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24910 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24911 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24912 # Going to short mode and back again did indeed matter. Since short mode is 24913 # case insensitive, let's make it lowercase to improve readability. 24914 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24915 # Now convert it back to Unix-style (cygpath) 24916 input_path=`$CYGPATH -u "$shortmode_path"` 24917 new_path="$input_path" 24918 fi 24919 fi 24920 24921 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24922 if test "x$test_cygdrive_prefix" = x; then 24923 # As a simple fix, exclude /usr/bin since it's not a real path. 24924 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24925 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24926 # a path prefixed by /cygdrive for fixpath to work. 24927 new_path="$CYGWIN_ROOT_PATH$input_path" 24928 fi 24929 fi 24930 24931 24932 if test "x$path" != "x$new_path"; then 24933 BOOT_JDK="$new_path" 24934 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24935 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24936 fi 24937 24938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24939 24940 path="$BOOT_JDK" 24941 has_colon=`$ECHO $path | $GREP ^.:` 24942 new_path="$path" 24943 if test "x$has_colon" = x; then 24944 # Not in mixed or Windows style, start by that. 24945 new_path=`cmd //c echo $path` 24946 fi 24947 24948 24949 input_path="$new_path" 24950 # Check if we need to convert this using DOS-style short mode. If the path 24951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24952 # take no chances and rewrite it. 24953 # Note: m4 eats our [], so we need to use [ and ] instead. 24954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24955 if test "x$has_forbidden_chars" != x; then 24956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24957 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24958 fi 24959 24960 24961 windows_path="$new_path" 24962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24963 unix_path=`$CYGPATH -u "$windows_path"` 24964 new_path="$unix_path" 24965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24967 new_path="$unix_path" 24968 fi 24969 24970 if test "x$path" != "x$new_path"; then 24971 BOOT_JDK="$new_path" 24972 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24973 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24974 fi 24975 24976 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24977 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24978 24979 else 24980 # We're on a unix platform. Hooray! :) 24981 path="$BOOT_JDK" 24982 has_space=`$ECHO "$path" | $GREP " "` 24983 if test "x$has_space" != x; then 24984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24985 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24986 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24987 fi 24988 24989 # Use eval to expand a potential ~ 24990 eval path="$path" 24991 if test ! -f "$path" && test ! -d "$path"; then 24992 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24993 fi 24994 24995 if test -d "$path"; then 24996 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24997 else 24998 dir="`$DIRNAME "$path"`" 24999 base="`$BASENAME "$path"`" 25000 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25001 fi 25002 fi 25003 fi 25004 25005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25006 $as_echo_n "checking for Boot JDK... " >&6; } 25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25008 $as_echo "$BOOT_JDK" >&6; } 25009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25010 $as_echo_n "checking Boot JDK version... " >&6; } 25011 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25013 $as_echo "$BOOT_JDK_VERSION" >&6; } 25014 fi # end check jdk version 25015 fi # end check javac 25016 fi # end check java 25017 fi # end check boot jdk found 25018 fi 25019 25020 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 25021 # Having specified an argument which is incorrect will produce an instant failure; 25022 # we should not go on looking 25023 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 25024 fi 25025 25026 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 25027 25028 if test "x$BOOT_JDK_FOUND" = xno; then 25029 # Now execute the test 25030 25031 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25032 # First check at user selected default 25033 25034 if test "x$BOOT_JDK_FOUND" = xno; then 25035 # Now execute the test 25036 25037 if test -x /usr/libexec/java_home; then 25038 BOOT_JDK=`/usr/libexec/java_home ` 25039 BOOT_JDK_FOUND=maybe 25040 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 25041 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 25042 fi 25043 25044 25045 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25046 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25047 # Do we have a bin/java? 25048 if test ! -x "$BOOT_JDK/bin/java"; then 25049 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25050 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25051 BOOT_JDK_FOUND=no 25052 else 25053 # Do we have a bin/javac? 25054 if test ! -x "$BOOT_JDK/bin/javac"; then 25055 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25056 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25057 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25058 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25059 BOOT_JDK_FOUND=no 25060 else 25061 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25062 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25063 25064 # Extra M4 quote needed to protect [] in grep expression. 25065 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25066 if test "x$FOUND_CORRECT_VERSION" = x; then 25067 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25068 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25069 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25070 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25071 BOOT_JDK_FOUND=no 25072 else 25073 # We're done! :-) 25074 BOOT_JDK_FOUND=yes 25075 25076 # Only process if variable expands to non-empty 25077 25078 if test "x$BOOT_JDK" != x; then 25079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25080 25081 # Input might be given as Windows format, start by converting to 25082 # unix format. 25083 path="$BOOT_JDK" 25084 new_path=`$CYGPATH -u "$path"` 25085 25086 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25087 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25088 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25089 # "foo.exe" is OK but "foo" is an error. 25090 # 25091 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25092 # It is also a way to make sure we got the proper file name for the real test later on. 25093 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25094 if test "x$test_shortpath" = x; then 25095 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25096 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25097 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25098 fi 25099 25100 # Call helper function which possibly converts this using DOS-style short mode. 25101 # If so, the updated path is stored in $new_path. 25102 25103 input_path="$new_path" 25104 # Check if we need to convert this using DOS-style short mode. If the path 25105 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25106 # take no chances and rewrite it. 25107 # Note: m4 eats our [], so we need to use [ and ] instead. 25108 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25109 if test "x$has_forbidden_chars" != x; then 25110 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25111 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25112 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25113 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25114 # Going to short mode and back again did indeed matter. Since short mode is 25115 # case insensitive, let's make it lowercase to improve readability. 25116 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25117 # Now convert it back to Unix-style (cygpath) 25118 input_path=`$CYGPATH -u "$shortmode_path"` 25119 new_path="$input_path" 25120 fi 25121 fi 25122 25123 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25124 if test "x$test_cygdrive_prefix" = x; then 25125 # As a simple fix, exclude /usr/bin since it's not a real path. 25126 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25127 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25128 # a path prefixed by /cygdrive for fixpath to work. 25129 new_path="$CYGWIN_ROOT_PATH$input_path" 25130 fi 25131 fi 25132 25133 25134 if test "x$path" != "x$new_path"; then 25135 BOOT_JDK="$new_path" 25136 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25137 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25138 fi 25139 25140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25141 25142 path="$BOOT_JDK" 25143 has_colon=`$ECHO $path | $GREP ^.:` 25144 new_path="$path" 25145 if test "x$has_colon" = x; then 25146 # Not in mixed or Windows style, start by that. 25147 new_path=`cmd //c echo $path` 25148 fi 25149 25150 25151 input_path="$new_path" 25152 # Check if we need to convert this using DOS-style short mode. If the path 25153 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25154 # take no chances and rewrite it. 25155 # Note: m4 eats our [], so we need to use [ and ] instead. 25156 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25157 if test "x$has_forbidden_chars" != x; then 25158 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25159 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25160 fi 25161 25162 25163 windows_path="$new_path" 25164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25165 unix_path=`$CYGPATH -u "$windows_path"` 25166 new_path="$unix_path" 25167 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25168 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25169 new_path="$unix_path" 25170 fi 25171 25172 if test "x$path" != "x$new_path"; then 25173 BOOT_JDK="$new_path" 25174 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25175 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25176 fi 25177 25178 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25179 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25180 25181 else 25182 # We're on a unix platform. Hooray! :) 25183 path="$BOOT_JDK" 25184 has_space=`$ECHO "$path" | $GREP " "` 25185 if test "x$has_space" != x; then 25186 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25187 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25188 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25189 fi 25190 25191 # Use eval to expand a potential ~ 25192 eval path="$path" 25193 if test ! -f "$path" && test ! -d "$path"; then 25194 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25195 fi 25196 25197 if test -d "$path"; then 25198 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25199 else 25200 dir="`$DIRNAME "$path"`" 25201 base="`$BASENAME "$path"`" 25202 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25203 fi 25204 fi 25205 fi 25206 25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25208 $as_echo_n "checking for Boot JDK... " >&6; } 25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25210 $as_echo "$BOOT_JDK" >&6; } 25211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25212 $as_echo_n "checking Boot JDK version... " >&6; } 25213 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25215 $as_echo "$BOOT_JDK_VERSION" >&6; } 25216 fi # end check jdk version 25217 fi # end check javac 25218 fi # end check java 25219 fi # end check boot jdk found 25220 fi 25221 25222 # If that did not work out (e.g. too old), try explicit versions instead 25223 25224 if test "x$BOOT_JDK_FOUND" = xno; then 25225 # Now execute the test 25226 25227 if test -x /usr/libexec/java_home; then 25228 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 25229 BOOT_JDK_FOUND=maybe 25230 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 25231 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 25232 fi 25233 25234 25235 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25236 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25237 # Do we have a bin/java? 25238 if test ! -x "$BOOT_JDK/bin/java"; then 25239 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25240 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25241 BOOT_JDK_FOUND=no 25242 else 25243 # Do we have a bin/javac? 25244 if test ! -x "$BOOT_JDK/bin/javac"; then 25245 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25247 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25248 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25249 BOOT_JDK_FOUND=no 25250 else 25251 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25252 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25253 25254 # Extra M4 quote needed to protect [] in grep expression. 25255 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25256 if test "x$FOUND_CORRECT_VERSION" = x; then 25257 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25258 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25259 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25260 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25261 BOOT_JDK_FOUND=no 25262 else 25263 # We're done! :-) 25264 BOOT_JDK_FOUND=yes 25265 25266 # Only process if variable expands to non-empty 25267 25268 if test "x$BOOT_JDK" != x; then 25269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25270 25271 # Input might be given as Windows format, start by converting to 25272 # unix format. 25273 path="$BOOT_JDK" 25274 new_path=`$CYGPATH -u "$path"` 25275 25276 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25277 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25278 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25279 # "foo.exe" is OK but "foo" is an error. 25280 # 25281 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25282 # It is also a way to make sure we got the proper file name for the real test later on. 25283 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25284 if test "x$test_shortpath" = x; then 25285 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25286 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25287 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25288 fi 25289 25290 # Call helper function which possibly converts this using DOS-style short mode. 25291 # If so, the updated path is stored in $new_path. 25292 25293 input_path="$new_path" 25294 # Check if we need to convert this using DOS-style short mode. If the path 25295 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25296 # take no chances and rewrite it. 25297 # Note: m4 eats our [], so we need to use [ and ] instead. 25298 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25299 if test "x$has_forbidden_chars" != x; then 25300 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25301 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25302 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25303 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25304 # Going to short mode and back again did indeed matter. Since short mode is 25305 # case insensitive, let's make it lowercase to improve readability. 25306 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25307 # Now convert it back to Unix-style (cygpath) 25308 input_path=`$CYGPATH -u "$shortmode_path"` 25309 new_path="$input_path" 25310 fi 25311 fi 25312 25313 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25314 if test "x$test_cygdrive_prefix" = x; then 25315 # As a simple fix, exclude /usr/bin since it's not a real path. 25316 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25317 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25318 # a path prefixed by /cygdrive for fixpath to work. 25319 new_path="$CYGWIN_ROOT_PATH$input_path" 25320 fi 25321 fi 25322 25323 25324 if test "x$path" != "x$new_path"; then 25325 BOOT_JDK="$new_path" 25326 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25327 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25328 fi 25329 25330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25331 25332 path="$BOOT_JDK" 25333 has_colon=`$ECHO $path | $GREP ^.:` 25334 new_path="$path" 25335 if test "x$has_colon" = x; then 25336 # Not in mixed or Windows style, start by that. 25337 new_path=`cmd //c echo $path` 25338 fi 25339 25340 25341 input_path="$new_path" 25342 # Check if we need to convert this using DOS-style short mode. If the path 25343 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25344 # take no chances and rewrite it. 25345 # Note: m4 eats our [], so we need to use [ and ] instead. 25346 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25347 if test "x$has_forbidden_chars" != x; then 25348 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25349 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25350 fi 25351 25352 25353 windows_path="$new_path" 25354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25355 unix_path=`$CYGPATH -u "$windows_path"` 25356 new_path="$unix_path" 25357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25358 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25359 new_path="$unix_path" 25360 fi 25361 25362 if test "x$path" != "x$new_path"; then 25363 BOOT_JDK="$new_path" 25364 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25365 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25366 fi 25367 25368 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25369 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25370 25371 else 25372 # We're on a unix platform. Hooray! :) 25373 path="$BOOT_JDK" 25374 has_space=`$ECHO "$path" | $GREP " "` 25375 if test "x$has_space" != x; then 25376 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25377 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25378 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25379 fi 25380 25381 # Use eval to expand a potential ~ 25382 eval path="$path" 25383 if test ! -f "$path" && test ! -d "$path"; then 25384 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25385 fi 25386 25387 if test -d "$path"; then 25388 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25389 else 25390 dir="`$DIRNAME "$path"`" 25391 base="`$BASENAME "$path"`" 25392 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25393 fi 25394 fi 25395 fi 25396 25397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25398 $as_echo_n "checking for Boot JDK... " >&6; } 25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25400 $as_echo "$BOOT_JDK" >&6; } 25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25402 $as_echo_n "checking Boot JDK version... " >&6; } 25403 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25405 $as_echo "$BOOT_JDK_VERSION" >&6; } 25406 fi # end check jdk version 25407 fi # end check javac 25408 fi # end check java 25409 fi # end check boot jdk found 25410 fi 25411 25412 25413 if test "x$BOOT_JDK_FOUND" = xno; then 25414 # Now execute the test 25415 25416 if test -x /usr/libexec/java_home; then 25417 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 25418 BOOT_JDK_FOUND=maybe 25419 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 25420 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 25421 fi 25422 25423 25424 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25425 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25426 # Do we have a bin/java? 25427 if test ! -x "$BOOT_JDK/bin/java"; then 25428 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25429 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25430 BOOT_JDK_FOUND=no 25431 else 25432 # Do we have a bin/javac? 25433 if test ! -x "$BOOT_JDK/bin/javac"; then 25434 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25435 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25436 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25437 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25438 BOOT_JDK_FOUND=no 25439 else 25440 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25441 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25442 25443 # Extra M4 quote needed to protect [] in grep expression. 25444 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25445 if test "x$FOUND_CORRECT_VERSION" = x; then 25446 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25448 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25449 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25450 BOOT_JDK_FOUND=no 25451 else 25452 # We're done! :-) 25453 BOOT_JDK_FOUND=yes 25454 25455 # Only process if variable expands to non-empty 25456 25457 if test "x$BOOT_JDK" != x; then 25458 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25459 25460 # Input might be given as Windows format, start by converting to 25461 # unix format. 25462 path="$BOOT_JDK" 25463 new_path=`$CYGPATH -u "$path"` 25464 25465 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25466 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25467 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25468 # "foo.exe" is OK but "foo" is an error. 25469 # 25470 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25471 # It is also a way to make sure we got the proper file name for the real test later on. 25472 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25473 if test "x$test_shortpath" = x; then 25474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25475 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25476 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25477 fi 25478 25479 # Call helper function which possibly converts this using DOS-style short mode. 25480 # If so, the updated path is stored in $new_path. 25481 25482 input_path="$new_path" 25483 # Check if we need to convert this using DOS-style short mode. If the path 25484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25485 # take no chances and rewrite it. 25486 # Note: m4 eats our [], so we need to use [ and ] instead. 25487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25488 if test "x$has_forbidden_chars" != x; then 25489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25490 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25491 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25492 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25493 # Going to short mode and back again did indeed matter. Since short mode is 25494 # case insensitive, let's make it lowercase to improve readability. 25495 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25496 # Now convert it back to Unix-style (cygpath) 25497 input_path=`$CYGPATH -u "$shortmode_path"` 25498 new_path="$input_path" 25499 fi 25500 fi 25501 25502 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25503 if test "x$test_cygdrive_prefix" = x; then 25504 # As a simple fix, exclude /usr/bin since it's not a real path. 25505 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25506 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25507 # a path prefixed by /cygdrive for fixpath to work. 25508 new_path="$CYGWIN_ROOT_PATH$input_path" 25509 fi 25510 fi 25511 25512 25513 if test "x$path" != "x$new_path"; then 25514 BOOT_JDK="$new_path" 25515 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25516 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25517 fi 25518 25519 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25520 25521 path="$BOOT_JDK" 25522 has_colon=`$ECHO $path | $GREP ^.:` 25523 new_path="$path" 25524 if test "x$has_colon" = x; then 25525 # Not in mixed or Windows style, start by that. 25526 new_path=`cmd //c echo $path` 25527 fi 25528 25529 25530 input_path="$new_path" 25531 # Check if we need to convert this using DOS-style short mode. If the path 25532 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25533 # take no chances and rewrite it. 25534 # Note: m4 eats our [], so we need to use [ and ] instead. 25535 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25536 if test "x$has_forbidden_chars" != x; then 25537 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25538 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25539 fi 25540 25541 25542 windows_path="$new_path" 25543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25544 unix_path=`$CYGPATH -u "$windows_path"` 25545 new_path="$unix_path" 25546 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25547 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25548 new_path="$unix_path" 25549 fi 25550 25551 if test "x$path" != "x$new_path"; then 25552 BOOT_JDK="$new_path" 25553 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25554 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25555 fi 25556 25557 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25558 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25559 25560 else 25561 # We're on a unix platform. Hooray! :) 25562 path="$BOOT_JDK" 25563 has_space=`$ECHO "$path" | $GREP " "` 25564 if test "x$has_space" != x; then 25565 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25566 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25567 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25568 fi 25569 25570 # Use eval to expand a potential ~ 25571 eval path="$path" 25572 if test ! -f "$path" && test ! -d "$path"; then 25573 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25574 fi 25575 25576 if test -d "$path"; then 25577 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25578 else 25579 dir="`$DIRNAME "$path"`" 25580 base="`$BASENAME "$path"`" 25581 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25582 fi 25583 fi 25584 fi 25585 25586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25587 $as_echo_n "checking for Boot JDK... " >&6; } 25588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25589 $as_echo "$BOOT_JDK" >&6; } 25590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25591 $as_echo_n "checking Boot JDK version... " >&6; } 25592 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25594 $as_echo "$BOOT_JDK_VERSION" >&6; } 25595 fi # end check jdk version 25596 fi # end check javac 25597 fi # end check java 25598 fi # end check boot jdk found 25599 fi 25600 25601 25602 if test "x$BOOT_JDK_FOUND" = xno; then 25603 # Now execute the test 25604 25605 if test -x /usr/libexec/java_home; then 25606 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 25607 BOOT_JDK_FOUND=maybe 25608 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 25609 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 25610 fi 25611 25612 25613 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25614 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25615 # Do we have a bin/java? 25616 if test ! -x "$BOOT_JDK/bin/java"; then 25617 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25618 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25619 BOOT_JDK_FOUND=no 25620 else 25621 # Do we have a bin/javac? 25622 if test ! -x "$BOOT_JDK/bin/javac"; then 25623 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25624 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25625 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25626 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25627 BOOT_JDK_FOUND=no 25628 else 25629 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25630 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25631 25632 # Extra M4 quote needed to protect [] in grep expression. 25633 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25634 if test "x$FOUND_CORRECT_VERSION" = x; then 25635 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25636 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25637 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25638 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25639 BOOT_JDK_FOUND=no 25640 else 25641 # We're done! :-) 25642 BOOT_JDK_FOUND=yes 25643 25644 # Only process if variable expands to non-empty 25645 25646 if test "x$BOOT_JDK" != x; then 25647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25648 25649 # Input might be given as Windows format, start by converting to 25650 # unix format. 25651 path="$BOOT_JDK" 25652 new_path=`$CYGPATH -u "$path"` 25653 25654 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25655 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25656 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25657 # "foo.exe" is OK but "foo" is an error. 25658 # 25659 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25660 # It is also a way to make sure we got the proper file name for the real test later on. 25661 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25662 if test "x$test_shortpath" = x; then 25663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25664 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25665 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25666 fi 25667 25668 # Call helper function which possibly converts this using DOS-style short mode. 25669 # If so, the updated path is stored in $new_path. 25670 25671 input_path="$new_path" 25672 # Check if we need to convert this using DOS-style short mode. If the path 25673 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25674 # take no chances and rewrite it. 25675 # Note: m4 eats our [], so we need to use [ and ] instead. 25676 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25677 if test "x$has_forbidden_chars" != x; then 25678 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25679 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25680 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25681 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25682 # Going to short mode and back again did indeed matter. Since short mode is 25683 # case insensitive, let's make it lowercase to improve readability. 25684 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25685 # Now convert it back to Unix-style (cygpath) 25686 input_path=`$CYGPATH -u "$shortmode_path"` 25687 new_path="$input_path" 25688 fi 25689 fi 25690 25691 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25692 if test "x$test_cygdrive_prefix" = x; then 25693 # As a simple fix, exclude /usr/bin since it's not a real path. 25694 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25695 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25696 # a path prefixed by /cygdrive for fixpath to work. 25697 new_path="$CYGWIN_ROOT_PATH$input_path" 25698 fi 25699 fi 25700 25701 25702 if test "x$path" != "x$new_path"; then 25703 BOOT_JDK="$new_path" 25704 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25705 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25706 fi 25707 25708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25709 25710 path="$BOOT_JDK" 25711 has_colon=`$ECHO $path | $GREP ^.:` 25712 new_path="$path" 25713 if test "x$has_colon" = x; then 25714 # Not in mixed or Windows style, start by that. 25715 new_path=`cmd //c echo $path` 25716 fi 25717 25718 25719 input_path="$new_path" 25720 # Check if we need to convert this using DOS-style short mode. If the path 25721 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25722 # take no chances and rewrite it. 25723 # Note: m4 eats our [], so we need to use [ and ] instead. 25724 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25725 if test "x$has_forbidden_chars" != x; then 25726 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25727 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25728 fi 25729 25730 25731 windows_path="$new_path" 25732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25733 unix_path=`$CYGPATH -u "$windows_path"` 25734 new_path="$unix_path" 25735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25736 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25737 new_path="$unix_path" 25738 fi 25739 25740 if test "x$path" != "x$new_path"; then 25741 BOOT_JDK="$new_path" 25742 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25743 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25744 fi 25745 25746 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25747 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25748 25749 else 25750 # We're on a unix platform. Hooray! :) 25751 path="$BOOT_JDK" 25752 has_space=`$ECHO "$path" | $GREP " "` 25753 if test "x$has_space" != x; then 25754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25755 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25756 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25757 fi 25758 25759 # Use eval to expand a potential ~ 25760 eval path="$path" 25761 if test ! -f "$path" && test ! -d "$path"; then 25762 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25763 fi 25764 25765 if test -d "$path"; then 25766 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25767 else 25768 dir="`$DIRNAME "$path"`" 25769 base="`$BASENAME "$path"`" 25770 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25771 fi 25772 fi 25773 fi 25774 25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25776 $as_echo_n "checking for Boot JDK... " >&6; } 25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25778 $as_echo "$BOOT_JDK" >&6; } 25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25780 $as_echo_n "checking Boot JDK version... " >&6; } 25781 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25783 $as_echo "$BOOT_JDK_VERSION" >&6; } 25784 fi # end check jdk version 25785 fi # end check javac 25786 fi # end check java 25787 fi # end check boot jdk found 25788 fi 25789 25790 fi 25791 25792 25793 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25794 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25795 # Do we have a bin/java? 25796 if test ! -x "$BOOT_JDK/bin/java"; then 25797 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25798 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25799 BOOT_JDK_FOUND=no 25800 else 25801 # Do we have a bin/javac? 25802 if test ! -x "$BOOT_JDK/bin/javac"; then 25803 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25804 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25805 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25806 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25807 BOOT_JDK_FOUND=no 25808 else 25809 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25810 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25811 25812 # Extra M4 quote needed to protect [] in grep expression. 25813 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25814 if test "x$FOUND_CORRECT_VERSION" = x; then 25815 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25816 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25817 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25818 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25819 BOOT_JDK_FOUND=no 25820 else 25821 # We're done! :-) 25822 BOOT_JDK_FOUND=yes 25823 25824 # Only process if variable expands to non-empty 25825 25826 if test "x$BOOT_JDK" != x; then 25827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25828 25829 # Input might be given as Windows format, start by converting to 25830 # unix format. 25831 path="$BOOT_JDK" 25832 new_path=`$CYGPATH -u "$path"` 25833 25834 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25835 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25836 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25837 # "foo.exe" is OK but "foo" is an error. 25838 # 25839 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25840 # It is also a way to make sure we got the proper file name for the real test later on. 25841 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25842 if test "x$test_shortpath" = x; then 25843 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25844 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25845 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25846 fi 25847 25848 # Call helper function which possibly converts this using DOS-style short mode. 25849 # If so, the updated path is stored in $new_path. 25850 25851 input_path="$new_path" 25852 # Check if we need to convert this using DOS-style short mode. If the path 25853 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25854 # take no chances and rewrite it. 25855 # Note: m4 eats our [], so we need to use [ and ] instead. 25856 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25857 if test "x$has_forbidden_chars" != x; then 25858 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25859 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25860 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25861 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25862 # Going to short mode and back again did indeed matter. Since short mode is 25863 # case insensitive, let's make it lowercase to improve readability. 25864 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25865 # Now convert it back to Unix-style (cygpath) 25866 input_path=`$CYGPATH -u "$shortmode_path"` 25867 new_path="$input_path" 25868 fi 25869 fi 25870 25871 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25872 if test "x$test_cygdrive_prefix" = x; then 25873 # As a simple fix, exclude /usr/bin since it's not a real path. 25874 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25875 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25876 # a path prefixed by /cygdrive for fixpath to work. 25877 new_path="$CYGWIN_ROOT_PATH$input_path" 25878 fi 25879 fi 25880 25881 25882 if test "x$path" != "x$new_path"; then 25883 BOOT_JDK="$new_path" 25884 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25885 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25886 fi 25887 25888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25889 25890 path="$BOOT_JDK" 25891 has_colon=`$ECHO $path | $GREP ^.:` 25892 new_path="$path" 25893 if test "x$has_colon" = x; then 25894 # Not in mixed or Windows style, start by that. 25895 new_path=`cmd //c echo $path` 25896 fi 25897 25898 25899 input_path="$new_path" 25900 # Check if we need to convert this using DOS-style short mode. If the path 25901 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25902 # take no chances and rewrite it. 25903 # Note: m4 eats our [], so we need to use [ and ] instead. 25904 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25905 if test "x$has_forbidden_chars" != x; then 25906 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25907 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25908 fi 25909 25910 25911 windows_path="$new_path" 25912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25913 unix_path=`$CYGPATH -u "$windows_path"` 25914 new_path="$unix_path" 25915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25916 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25917 new_path="$unix_path" 25918 fi 25919 25920 if test "x$path" != "x$new_path"; then 25921 BOOT_JDK="$new_path" 25922 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25923 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25924 fi 25925 25926 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25927 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25928 25929 else 25930 # We're on a unix platform. Hooray! :) 25931 path="$BOOT_JDK" 25932 has_space=`$ECHO "$path" | $GREP " "` 25933 if test "x$has_space" != x; then 25934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25935 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25936 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25937 fi 25938 25939 # Use eval to expand a potential ~ 25940 eval path="$path" 25941 if test ! -f "$path" && test ! -d "$path"; then 25942 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25943 fi 25944 25945 if test -d "$path"; then 25946 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25947 else 25948 dir="`$DIRNAME "$path"`" 25949 base="`$BASENAME "$path"`" 25950 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25951 fi 25952 fi 25953 fi 25954 25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25956 $as_echo_n "checking for Boot JDK... " >&6; } 25957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25958 $as_echo "$BOOT_JDK" >&6; } 25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25960 $as_echo_n "checking Boot JDK version... " >&6; } 25961 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25963 $as_echo "$BOOT_JDK_VERSION" >&6; } 25964 fi # end check jdk version 25965 fi # end check javac 25966 fi # end check java 25967 fi # end check boot jdk found 25968 fi 25969 25970 25971 # Test: Is $JAVA_HOME set? 25972 25973 if test "x$BOOT_JDK_FOUND" = xno; then 25974 # Now execute the test 25975 25976 if test "x$JAVA_HOME" != x; then 25977 JAVA_HOME_PROCESSED="$JAVA_HOME" 25978 25979 # Only process if variable expands to non-empty 25980 25981 if test "x$JAVA_HOME_PROCESSED" != x; then 25982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25983 25984 # Input might be given as Windows format, start by converting to 25985 # unix format. 25986 path="$JAVA_HOME_PROCESSED" 25987 new_path=`$CYGPATH -u "$path"` 25988 25989 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25990 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25991 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25992 # "foo.exe" is OK but "foo" is an error. 25993 # 25994 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25995 # It is also a way to make sure we got the proper file name for the real test later on. 25996 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25997 if test "x$test_shortpath" = x; then 25998 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 25999 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26000 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 26001 fi 26002 26003 # Call helper function which possibly converts this using DOS-style short mode. 26004 # If so, the updated path is stored in $new_path. 26005 26006 input_path="$new_path" 26007 # Check if we need to convert this using DOS-style short mode. If the path 26008 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26009 # take no chances and rewrite it. 26010 # Note: m4 eats our [], so we need to use [ and ] instead. 26011 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26012 if test "x$has_forbidden_chars" != x; then 26013 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26014 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26015 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26016 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26017 # Going to short mode and back again did indeed matter. Since short mode is 26018 # case insensitive, let's make it lowercase to improve readability. 26019 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26020 # Now convert it back to Unix-style (cygpath) 26021 input_path=`$CYGPATH -u "$shortmode_path"` 26022 new_path="$input_path" 26023 fi 26024 fi 26025 26026 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26027 if test "x$test_cygdrive_prefix" = x; then 26028 # As a simple fix, exclude /usr/bin since it's not a real path. 26029 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26030 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26031 # a path prefixed by /cygdrive for fixpath to work. 26032 new_path="$CYGWIN_ROOT_PATH$input_path" 26033 fi 26034 fi 26035 26036 26037 if test "x$path" != "x$new_path"; then 26038 JAVA_HOME_PROCESSED="$new_path" 26039 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26040 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26041 fi 26042 26043 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26044 26045 path="$JAVA_HOME_PROCESSED" 26046 has_colon=`$ECHO $path | $GREP ^.:` 26047 new_path="$path" 26048 if test "x$has_colon" = x; then 26049 # Not in mixed or Windows style, start by that. 26050 new_path=`cmd //c echo $path` 26051 fi 26052 26053 26054 input_path="$new_path" 26055 # Check if we need to convert this using DOS-style short mode. If the path 26056 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26057 # take no chances and rewrite it. 26058 # Note: m4 eats our [], so we need to use [ and ] instead. 26059 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26060 if test "x$has_forbidden_chars" != x; then 26061 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26062 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26063 fi 26064 26065 26066 windows_path="$new_path" 26067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26068 unix_path=`$CYGPATH -u "$windows_path"` 26069 new_path="$unix_path" 26070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26071 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26072 new_path="$unix_path" 26073 fi 26074 26075 if test "x$path" != "x$new_path"; then 26076 JAVA_HOME_PROCESSED="$new_path" 26077 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26078 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26079 fi 26080 26081 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26082 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26083 26084 else 26085 # We're on a unix platform. Hooray! :) 26086 path="$JAVA_HOME_PROCESSED" 26087 has_space=`$ECHO "$path" | $GREP " "` 26088 if test "x$has_space" != x; then 26089 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26090 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26091 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26092 fi 26093 26094 # Use eval to expand a potential ~ 26095 eval path="$path" 26096 if test ! -f "$path" && test ! -d "$path"; then 26097 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26098 fi 26099 26100 if test -d "$path"; then 26101 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26102 else 26103 dir="`$DIRNAME "$path"`" 26104 base="`$BASENAME "$path"`" 26105 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26106 fi 26107 fi 26108 fi 26109 26110 if test ! -d "$JAVA_HOME_PROCESSED"; then 26111 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26112 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26113 else 26114 # Aha, the user has set a JAVA_HOME 26115 # let us use that as the Boot JDK. 26116 BOOT_JDK="$JAVA_HOME_PROCESSED" 26117 BOOT_JDK_FOUND=maybe 26118 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26119 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26120 fi 26121 fi 26122 26123 26124 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26125 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26126 # Do we have a bin/java? 26127 if test ! -x "$BOOT_JDK/bin/java"; then 26128 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26129 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26130 BOOT_JDK_FOUND=no 26131 else 26132 # Do we have a bin/javac? 26133 if test ! -x "$BOOT_JDK/bin/javac"; then 26134 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26135 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26136 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26137 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26138 BOOT_JDK_FOUND=no 26139 else 26140 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26141 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26142 26143 # Extra M4 quote needed to protect [] in grep expression. 26144 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26145 if test "x$FOUND_CORRECT_VERSION" = x; then 26146 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26147 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26148 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26149 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26150 BOOT_JDK_FOUND=no 26151 else 26152 # We're done! :-) 26153 BOOT_JDK_FOUND=yes 26154 26155 # Only process if variable expands to non-empty 26156 26157 if test "x$BOOT_JDK" != x; then 26158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26159 26160 # Input might be given as Windows format, start by converting to 26161 # unix format. 26162 path="$BOOT_JDK" 26163 new_path=`$CYGPATH -u "$path"` 26164 26165 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26166 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26167 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26168 # "foo.exe" is OK but "foo" is an error. 26169 # 26170 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26171 # It is also a way to make sure we got the proper file name for the real test later on. 26172 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26173 if test "x$test_shortpath" = x; then 26174 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26175 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26176 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26177 fi 26178 26179 # Call helper function which possibly converts this using DOS-style short mode. 26180 # If so, the updated path is stored in $new_path. 26181 26182 input_path="$new_path" 26183 # Check if we need to convert this using DOS-style short mode. If the path 26184 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26185 # take no chances and rewrite it. 26186 # Note: m4 eats our [], so we need to use [ and ] instead. 26187 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26188 if test "x$has_forbidden_chars" != x; then 26189 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26190 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26191 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26192 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26193 # Going to short mode and back again did indeed matter. Since short mode is 26194 # case insensitive, let's make it lowercase to improve readability. 26195 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26196 # Now convert it back to Unix-style (cygpath) 26197 input_path=`$CYGPATH -u "$shortmode_path"` 26198 new_path="$input_path" 26199 fi 26200 fi 26201 26202 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26203 if test "x$test_cygdrive_prefix" = x; then 26204 # As a simple fix, exclude /usr/bin since it's not a real path. 26205 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26206 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26207 # a path prefixed by /cygdrive for fixpath to work. 26208 new_path="$CYGWIN_ROOT_PATH$input_path" 26209 fi 26210 fi 26211 26212 26213 if test "x$path" != "x$new_path"; then 26214 BOOT_JDK="$new_path" 26215 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26216 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26217 fi 26218 26219 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26220 26221 path="$BOOT_JDK" 26222 has_colon=`$ECHO $path | $GREP ^.:` 26223 new_path="$path" 26224 if test "x$has_colon" = x; then 26225 # Not in mixed or Windows style, start by that. 26226 new_path=`cmd //c echo $path` 26227 fi 26228 26229 26230 input_path="$new_path" 26231 # Check if we need to convert this using DOS-style short mode. If the path 26232 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26233 # take no chances and rewrite it. 26234 # Note: m4 eats our [], so we need to use [ and ] instead. 26235 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26236 if test "x$has_forbidden_chars" != x; then 26237 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26238 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26239 fi 26240 26241 26242 windows_path="$new_path" 26243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26244 unix_path=`$CYGPATH -u "$windows_path"` 26245 new_path="$unix_path" 26246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26247 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26248 new_path="$unix_path" 26249 fi 26250 26251 if test "x$path" != "x$new_path"; then 26252 BOOT_JDK="$new_path" 26253 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26254 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26255 fi 26256 26257 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26258 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26259 26260 else 26261 # We're on a unix platform. Hooray! :) 26262 path="$BOOT_JDK" 26263 has_space=`$ECHO "$path" | $GREP " "` 26264 if test "x$has_space" != x; then 26265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26266 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26267 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26268 fi 26269 26270 # Use eval to expand a potential ~ 26271 eval path="$path" 26272 if test ! -f "$path" && test ! -d "$path"; then 26273 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26274 fi 26275 26276 if test -d "$path"; then 26277 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26278 else 26279 dir="`$DIRNAME "$path"`" 26280 base="`$BASENAME "$path"`" 26281 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26282 fi 26283 fi 26284 fi 26285 26286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26287 $as_echo_n "checking for Boot JDK... " >&6; } 26288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26289 $as_echo "$BOOT_JDK" >&6; } 26290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26291 $as_echo_n "checking Boot JDK version... " >&6; } 26292 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26294 $as_echo "$BOOT_JDK_VERSION" >&6; } 26295 fi # end check jdk version 26296 fi # end check javac 26297 fi # end check java 26298 fi # end check boot jdk found 26299 fi 26300 26301 26302 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 26303 26304 if test "x$BOOT_JDK_FOUND" = xno; then 26305 # Now execute the test 26306 26307 # Extract the first word of "javac", so it can be a program name with args. 26308 set dummy javac; ac_word=$2 26309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26310 $as_echo_n "checking for $ac_word... " >&6; } 26311 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 26312 $as_echo_n "(cached) " >&6 26313 else 26314 case $JAVAC_CHECK in 26315 [\\/]* | ?:[\\/]*) 26316 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 26317 ;; 26318 *) 26319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26320 for as_dir in $PATH 26321 do 26322 IFS=$as_save_IFS 26323 test -z "$as_dir" && as_dir=. 26324 for ac_exec_ext in '' $ac_executable_extensions; do 26325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26326 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 26327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26328 break 2 26329 fi 26330 done 26331 done 26332 IFS=$as_save_IFS 26333 26334 ;; 26335 esac 26336 fi 26337 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 26338 if test -n "$JAVAC_CHECK"; then 26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 26340 $as_echo "$JAVAC_CHECK" >&6; } 26341 else 26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26343 $as_echo "no" >&6; } 26344 fi 26345 26346 26347 # Extract the first word of "java", so it can be a program name with args. 26348 set dummy java; ac_word=$2 26349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26350 $as_echo_n "checking for $ac_word... " >&6; } 26351 if ${ac_cv_path_JAVA_CHECK+:} false; then : 26352 $as_echo_n "(cached) " >&6 26353 else 26354 case $JAVA_CHECK in 26355 [\\/]* | ?:[\\/]*) 26356 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 26357 ;; 26358 *) 26359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26360 for as_dir in $PATH 26361 do 26362 IFS=$as_save_IFS 26363 test -z "$as_dir" && as_dir=. 26364 for ac_exec_ext in '' $ac_executable_extensions; do 26365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26366 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 26367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26368 break 2 26369 fi 26370 done 26371 done 26372 IFS=$as_save_IFS 26373 26374 ;; 26375 esac 26376 fi 26377 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 26378 if test -n "$JAVA_CHECK"; then 26379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 26380 $as_echo "$JAVA_CHECK" >&6; } 26381 else 26382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26383 $as_echo "no" >&6; } 26384 fi 26385 26386 26387 BINARY="$JAVAC_CHECK" 26388 if test "x$JAVAC_CHECK" = x; then 26389 BINARY="$JAVA_CHECK" 26390 fi 26391 if test "x$BINARY" != x; then 26392 # So there is a java(c) binary, it might be part of a JDK. 26393 # Lets find the JDK/JRE directory by following symbolic links. 26394 # Linux/GNU systems often have links from /usr/bin/java to 26395 # /etc/alternatives/java to the real JDK binary. 26396 26397 if test "x$OPENJDK_BUILD_OS" != xwindows; then 26398 # Follow a chain of symbolic links. Use readlink 26399 # where it exists, else fall back to horribly 26400 # complicated shell code. 26401 if test "x$READLINK_TESTED" != yes; then 26402 # On MacOSX there is a readlink tool with a different 26403 # purpose than the GNU readlink tool. Check the found readlink. 26404 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 26405 if test "x$ISGNU" = x; then 26406 # A readlink that we do not know how to use. 26407 # Are there other non-GNU readlinks out there? 26408 READLINK_TESTED=yes 26409 READLINK= 26410 fi 26411 fi 26412 26413 if test "x$READLINK" != x; then 26414 BINARY=`$READLINK -f $BINARY` 26415 else 26416 # Save the current directory for restoring afterwards 26417 STARTDIR=$PWD 26418 COUNTER=0 26419 sym_link_dir=`$DIRNAME $BINARY` 26420 sym_link_file=`$BASENAME $BINARY` 26421 cd $sym_link_dir 26422 # Use -P flag to resolve symlinks in directories. 26423 cd `$THEPWDCMD -P` 26424 sym_link_dir=`$THEPWDCMD -P` 26425 # Resolve file symlinks 26426 while test $COUNTER -lt 20; do 26427 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 26428 if test "x$ISLINK" == x; then 26429 # This is not a symbolic link! We are done! 26430 break 26431 fi 26432 # Again resolve directory symlinks since the target of the just found 26433 # link could be in a different directory 26434 cd `$DIRNAME $ISLINK` 26435 sym_link_dir=`$THEPWDCMD -P` 26436 sym_link_file=`$BASENAME $ISLINK` 26437 let COUNTER=COUNTER+1 26438 done 26439 cd $STARTDIR 26440 BINARY=$sym_link_dir/$sym_link_file 26441 fi 26442 fi 26443 26444 BOOT_JDK=`dirname "$BINARY"` 26445 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 26446 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 26447 # Looks like we found ourselves an JDK 26448 BOOT_JDK_FOUND=maybe 26449 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 26450 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 26451 fi 26452 fi 26453 26454 26455 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26456 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26457 # Do we have a bin/java? 26458 if test ! -x "$BOOT_JDK/bin/java"; then 26459 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26460 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26461 BOOT_JDK_FOUND=no 26462 else 26463 # Do we have a bin/javac? 26464 if test ! -x "$BOOT_JDK/bin/javac"; then 26465 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26466 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26467 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26468 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26469 BOOT_JDK_FOUND=no 26470 else 26471 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26472 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26473 26474 # Extra M4 quote needed to protect [] in grep expression. 26475 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26476 if test "x$FOUND_CORRECT_VERSION" = x; then 26477 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26478 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26479 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26480 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26481 BOOT_JDK_FOUND=no 26482 else 26483 # We're done! :-) 26484 BOOT_JDK_FOUND=yes 26485 26486 # Only process if variable expands to non-empty 26487 26488 if test "x$BOOT_JDK" != x; then 26489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26490 26491 # Input might be given as Windows format, start by converting to 26492 # unix format. 26493 path="$BOOT_JDK" 26494 new_path=`$CYGPATH -u "$path"` 26495 26496 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26497 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26498 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26499 # "foo.exe" is OK but "foo" is an error. 26500 # 26501 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26502 # It is also a way to make sure we got the proper file name for the real test later on. 26503 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26504 if test "x$test_shortpath" = x; then 26505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26506 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26507 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26508 fi 26509 26510 # Call helper function which possibly converts this using DOS-style short mode. 26511 # If so, the updated path is stored in $new_path. 26512 26513 input_path="$new_path" 26514 # Check if we need to convert this using DOS-style short mode. If the path 26515 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26516 # take no chances and rewrite it. 26517 # Note: m4 eats our [], so we need to use [ and ] instead. 26518 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26519 if test "x$has_forbidden_chars" != x; then 26520 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26521 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26522 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26523 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26524 # Going to short mode and back again did indeed matter. Since short mode is 26525 # case insensitive, let's make it lowercase to improve readability. 26526 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26527 # Now convert it back to Unix-style (cygpath) 26528 input_path=`$CYGPATH -u "$shortmode_path"` 26529 new_path="$input_path" 26530 fi 26531 fi 26532 26533 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26534 if test "x$test_cygdrive_prefix" = x; then 26535 # As a simple fix, exclude /usr/bin since it's not a real path. 26536 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26537 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26538 # a path prefixed by /cygdrive for fixpath to work. 26539 new_path="$CYGWIN_ROOT_PATH$input_path" 26540 fi 26541 fi 26542 26543 26544 if test "x$path" != "x$new_path"; then 26545 BOOT_JDK="$new_path" 26546 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26547 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26548 fi 26549 26550 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26551 26552 path="$BOOT_JDK" 26553 has_colon=`$ECHO $path | $GREP ^.:` 26554 new_path="$path" 26555 if test "x$has_colon" = x; then 26556 # Not in mixed or Windows style, start by that. 26557 new_path=`cmd //c echo $path` 26558 fi 26559 26560 26561 input_path="$new_path" 26562 # Check if we need to convert this using DOS-style short mode. If the path 26563 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26564 # take no chances and rewrite it. 26565 # Note: m4 eats our [], so we need to use [ and ] instead. 26566 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26567 if test "x$has_forbidden_chars" != x; then 26568 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26569 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26570 fi 26571 26572 26573 windows_path="$new_path" 26574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26575 unix_path=`$CYGPATH -u "$windows_path"` 26576 new_path="$unix_path" 26577 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26578 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26579 new_path="$unix_path" 26580 fi 26581 26582 if test "x$path" != "x$new_path"; then 26583 BOOT_JDK="$new_path" 26584 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26585 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26586 fi 26587 26588 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26589 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26590 26591 else 26592 # We're on a unix platform. Hooray! :) 26593 path="$BOOT_JDK" 26594 has_space=`$ECHO "$path" | $GREP " "` 26595 if test "x$has_space" != x; then 26596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26597 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26598 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26599 fi 26600 26601 # Use eval to expand a potential ~ 26602 eval path="$path" 26603 if test ! -f "$path" && test ! -d "$path"; then 26604 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26605 fi 26606 26607 if test -d "$path"; then 26608 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26609 else 26610 dir="`$DIRNAME "$path"`" 26611 base="`$BASENAME "$path"`" 26612 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26613 fi 26614 fi 26615 fi 26616 26617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26618 $as_echo_n "checking for Boot JDK... " >&6; } 26619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26620 $as_echo "$BOOT_JDK" >&6; } 26621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26622 $as_echo_n "checking Boot JDK version... " >&6; } 26623 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26625 $as_echo "$BOOT_JDK_VERSION" >&6; } 26626 fi # end check jdk version 26627 fi # end check javac 26628 fi # end check java 26629 fi # end check boot jdk found 26630 fi 26631 26632 26633 # Test: Is there a JDK installed in default, well-known locations? 26634 26635 if test "x$BOOT_JDK_FOUND" = xno; then 26636 # Now execute the test 26637 26638 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26639 26640 if test "x$BOOT_JDK_FOUND" = xno; then 26641 # Now execute the test 26642 26643 if test "x$ProgramW6432" != x; then 26644 VIRTUAL_DIR="$ProgramW6432/Java" 26645 26646 windows_path="$VIRTUAL_DIR" 26647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26648 unix_path=`$CYGPATH -u "$windows_path"` 26649 VIRTUAL_DIR="$unix_path" 26650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26651 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26652 VIRTUAL_DIR="$unix_path" 26653 fi 26654 26655 26656 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26657 BOOT_JDK_SUFFIX="" 26658 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26659 if test "x$ALL_JDKS_FOUND" != x; then 26660 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26661 26662 if test "x$BOOT_JDK_FOUND" = xno; then 26663 # Now execute the test 26664 26665 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26666 if test -d "$BOOT_JDK"; then 26667 BOOT_JDK_FOUND=maybe 26668 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26669 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26670 fi 26671 26672 26673 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26674 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26675 # Do we have a bin/java? 26676 if test ! -x "$BOOT_JDK/bin/java"; then 26677 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26678 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26679 BOOT_JDK_FOUND=no 26680 else 26681 # Do we have a bin/javac? 26682 if test ! -x "$BOOT_JDK/bin/javac"; then 26683 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26684 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26685 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26686 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26687 BOOT_JDK_FOUND=no 26688 else 26689 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26690 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26691 26692 # Extra M4 quote needed to protect [] in grep expression. 26693 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26694 if test "x$FOUND_CORRECT_VERSION" = x; then 26695 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26696 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26697 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26698 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26699 BOOT_JDK_FOUND=no 26700 else 26701 # We're done! :-) 26702 BOOT_JDK_FOUND=yes 26703 26704 # Only process if variable expands to non-empty 26705 26706 if test "x$BOOT_JDK" != x; then 26707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26708 26709 # Input might be given as Windows format, start by converting to 26710 # unix format. 26711 path="$BOOT_JDK" 26712 new_path=`$CYGPATH -u "$path"` 26713 26714 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26715 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26716 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26717 # "foo.exe" is OK but "foo" is an error. 26718 # 26719 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26720 # It is also a way to make sure we got the proper file name for the real test later on. 26721 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26722 if test "x$test_shortpath" = x; then 26723 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26724 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26725 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26726 fi 26727 26728 # Call helper function which possibly converts this using DOS-style short mode. 26729 # If so, the updated path is stored in $new_path. 26730 26731 input_path="$new_path" 26732 # Check if we need to convert this using DOS-style short mode. If the path 26733 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26734 # take no chances and rewrite it. 26735 # Note: m4 eats our [], so we need to use [ and ] instead. 26736 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26737 if test "x$has_forbidden_chars" != x; then 26738 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26739 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26740 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26741 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26742 # Going to short mode and back again did indeed matter. Since short mode is 26743 # case insensitive, let's make it lowercase to improve readability. 26744 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26745 # Now convert it back to Unix-style (cygpath) 26746 input_path=`$CYGPATH -u "$shortmode_path"` 26747 new_path="$input_path" 26748 fi 26749 fi 26750 26751 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26752 if test "x$test_cygdrive_prefix" = x; then 26753 # As a simple fix, exclude /usr/bin since it's not a real path. 26754 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26755 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26756 # a path prefixed by /cygdrive for fixpath to work. 26757 new_path="$CYGWIN_ROOT_PATH$input_path" 26758 fi 26759 fi 26760 26761 26762 if test "x$path" != "x$new_path"; then 26763 BOOT_JDK="$new_path" 26764 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26765 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26766 fi 26767 26768 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26769 26770 path="$BOOT_JDK" 26771 has_colon=`$ECHO $path | $GREP ^.:` 26772 new_path="$path" 26773 if test "x$has_colon" = x; then 26774 # Not in mixed or Windows style, start by that. 26775 new_path=`cmd //c echo $path` 26776 fi 26777 26778 26779 input_path="$new_path" 26780 # Check if we need to convert this using DOS-style short mode. If the path 26781 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26782 # take no chances and rewrite it. 26783 # Note: m4 eats our [], so we need to use [ and ] instead. 26784 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26785 if test "x$has_forbidden_chars" != x; then 26786 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26787 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26788 fi 26789 26790 26791 windows_path="$new_path" 26792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26793 unix_path=`$CYGPATH -u "$windows_path"` 26794 new_path="$unix_path" 26795 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26796 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26797 new_path="$unix_path" 26798 fi 26799 26800 if test "x$path" != "x$new_path"; then 26801 BOOT_JDK="$new_path" 26802 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26803 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26804 fi 26805 26806 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26807 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26808 26809 else 26810 # We're on a unix platform. Hooray! :) 26811 path="$BOOT_JDK" 26812 has_space=`$ECHO "$path" | $GREP " "` 26813 if test "x$has_space" != x; then 26814 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26815 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26816 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26817 fi 26818 26819 # Use eval to expand a potential ~ 26820 eval path="$path" 26821 if test ! -f "$path" && test ! -d "$path"; then 26822 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26823 fi 26824 26825 if test -d "$path"; then 26826 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26827 else 26828 dir="`$DIRNAME "$path"`" 26829 base="`$BASENAME "$path"`" 26830 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26831 fi 26832 fi 26833 fi 26834 26835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26836 $as_echo_n "checking for Boot JDK... " >&6; } 26837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26838 $as_echo "$BOOT_JDK" >&6; } 26839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26840 $as_echo_n "checking Boot JDK version... " >&6; } 26841 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26843 $as_echo "$BOOT_JDK_VERSION" >&6; } 26844 fi # end check jdk version 26845 fi # end check javac 26846 fi # end check java 26847 fi # end check boot jdk found 26848 fi 26849 26850 done 26851 fi 26852 26853 fi 26854 26855 26856 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26857 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26858 # Do we have a bin/java? 26859 if test ! -x "$BOOT_JDK/bin/java"; then 26860 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26861 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26862 BOOT_JDK_FOUND=no 26863 else 26864 # Do we have a bin/javac? 26865 if test ! -x "$BOOT_JDK/bin/javac"; then 26866 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26867 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26868 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26869 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26870 BOOT_JDK_FOUND=no 26871 else 26872 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26873 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26874 26875 # Extra M4 quote needed to protect [] in grep expression. 26876 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26877 if test "x$FOUND_CORRECT_VERSION" = x; then 26878 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26879 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26880 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26881 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26882 BOOT_JDK_FOUND=no 26883 else 26884 # We're done! :-) 26885 BOOT_JDK_FOUND=yes 26886 26887 # Only process if variable expands to non-empty 26888 26889 if test "x$BOOT_JDK" != x; then 26890 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26891 26892 # Input might be given as Windows format, start by converting to 26893 # unix format. 26894 path="$BOOT_JDK" 26895 new_path=`$CYGPATH -u "$path"` 26896 26897 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26898 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26899 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26900 # "foo.exe" is OK but "foo" is an error. 26901 # 26902 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26903 # It is also a way to make sure we got the proper file name for the real test later on. 26904 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26905 if test "x$test_shortpath" = x; then 26906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26907 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26908 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26909 fi 26910 26911 # Call helper function which possibly converts this using DOS-style short mode. 26912 # If so, the updated path is stored in $new_path. 26913 26914 input_path="$new_path" 26915 # Check if we need to convert this using DOS-style short mode. If the path 26916 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26917 # take no chances and rewrite it. 26918 # Note: m4 eats our [], so we need to use [ and ] instead. 26919 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26920 if test "x$has_forbidden_chars" != x; then 26921 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26922 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26923 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26924 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26925 # Going to short mode and back again did indeed matter. Since short mode is 26926 # case insensitive, let's make it lowercase to improve readability. 26927 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26928 # Now convert it back to Unix-style (cygpath) 26929 input_path=`$CYGPATH -u "$shortmode_path"` 26930 new_path="$input_path" 26931 fi 26932 fi 26933 26934 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26935 if test "x$test_cygdrive_prefix" = x; then 26936 # As a simple fix, exclude /usr/bin since it's not a real path. 26937 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26938 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26939 # a path prefixed by /cygdrive for fixpath to work. 26940 new_path="$CYGWIN_ROOT_PATH$input_path" 26941 fi 26942 fi 26943 26944 26945 if test "x$path" != "x$new_path"; then 26946 BOOT_JDK="$new_path" 26947 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26948 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26949 fi 26950 26951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26952 26953 path="$BOOT_JDK" 26954 has_colon=`$ECHO $path | $GREP ^.:` 26955 new_path="$path" 26956 if test "x$has_colon" = x; then 26957 # Not in mixed or Windows style, start by that. 26958 new_path=`cmd //c echo $path` 26959 fi 26960 26961 26962 input_path="$new_path" 26963 # Check if we need to convert this using DOS-style short mode. If the path 26964 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26965 # take no chances and rewrite it. 26966 # Note: m4 eats our [], so we need to use [ and ] instead. 26967 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26968 if test "x$has_forbidden_chars" != x; then 26969 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26970 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26971 fi 26972 26973 26974 windows_path="$new_path" 26975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26976 unix_path=`$CYGPATH -u "$windows_path"` 26977 new_path="$unix_path" 26978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26980 new_path="$unix_path" 26981 fi 26982 26983 if test "x$path" != "x$new_path"; then 26984 BOOT_JDK="$new_path" 26985 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26986 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26987 fi 26988 26989 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26990 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26991 26992 else 26993 # We're on a unix platform. Hooray! :) 26994 path="$BOOT_JDK" 26995 has_space=`$ECHO "$path" | $GREP " "` 26996 if test "x$has_space" != x; then 26997 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26998 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26999 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27000 fi 27001 27002 # Use eval to expand a potential ~ 27003 eval path="$path" 27004 if test ! -f "$path" && test ! -d "$path"; then 27005 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27006 fi 27007 27008 if test -d "$path"; then 27009 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27010 else 27011 dir="`$DIRNAME "$path"`" 27012 base="`$BASENAME "$path"`" 27013 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27014 fi 27015 fi 27016 fi 27017 27018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27019 $as_echo_n "checking for Boot JDK... " >&6; } 27020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27021 $as_echo "$BOOT_JDK" >&6; } 27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27023 $as_echo_n "checking Boot JDK version... " >&6; } 27024 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27026 $as_echo "$BOOT_JDK_VERSION" >&6; } 27027 fi # end check jdk version 27028 fi # end check javac 27029 fi # end check java 27030 fi # end check boot jdk found 27031 fi 27032 27033 27034 if test "x$BOOT_JDK_FOUND" = xno; then 27035 # Now execute the test 27036 27037 if test "x$PROGRAMW6432" != x; then 27038 VIRTUAL_DIR="$PROGRAMW6432/Java" 27039 27040 windows_path="$VIRTUAL_DIR" 27041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27042 unix_path=`$CYGPATH -u "$windows_path"` 27043 VIRTUAL_DIR="$unix_path" 27044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27045 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27046 VIRTUAL_DIR="$unix_path" 27047 fi 27048 27049 27050 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27051 BOOT_JDK_SUFFIX="" 27052 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27053 if test "x$ALL_JDKS_FOUND" != x; then 27054 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27055 27056 if test "x$BOOT_JDK_FOUND" = xno; then 27057 # Now execute the test 27058 27059 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27060 if test -d "$BOOT_JDK"; then 27061 BOOT_JDK_FOUND=maybe 27062 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27063 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27064 fi 27065 27066 27067 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27068 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27069 # Do we have a bin/java? 27070 if test ! -x "$BOOT_JDK/bin/java"; then 27071 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27072 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27073 BOOT_JDK_FOUND=no 27074 else 27075 # Do we have a bin/javac? 27076 if test ! -x "$BOOT_JDK/bin/javac"; then 27077 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27078 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27079 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27080 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27081 BOOT_JDK_FOUND=no 27082 else 27083 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27084 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27085 27086 # Extra M4 quote needed to protect [] in grep expression. 27087 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27088 if test "x$FOUND_CORRECT_VERSION" = x; then 27089 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27090 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27091 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27092 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27093 BOOT_JDK_FOUND=no 27094 else 27095 # We're done! :-) 27096 BOOT_JDK_FOUND=yes 27097 27098 # Only process if variable expands to non-empty 27099 27100 if test "x$BOOT_JDK" != x; then 27101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27102 27103 # Input might be given as Windows format, start by converting to 27104 # unix format. 27105 path="$BOOT_JDK" 27106 new_path=`$CYGPATH -u "$path"` 27107 27108 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27109 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27110 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27111 # "foo.exe" is OK but "foo" is an error. 27112 # 27113 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27114 # It is also a way to make sure we got the proper file name for the real test later on. 27115 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27116 if test "x$test_shortpath" = x; then 27117 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27118 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27119 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27120 fi 27121 27122 # Call helper function which possibly converts this using DOS-style short mode. 27123 # If so, the updated path is stored in $new_path. 27124 27125 input_path="$new_path" 27126 # Check if we need to convert this using DOS-style short mode. If the path 27127 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27128 # take no chances and rewrite it. 27129 # Note: m4 eats our [], so we need to use [ and ] instead. 27130 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27131 if test "x$has_forbidden_chars" != x; then 27132 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27133 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27134 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27135 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27136 # Going to short mode and back again did indeed matter. Since short mode is 27137 # case insensitive, let's make it lowercase to improve readability. 27138 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27139 # Now convert it back to Unix-style (cygpath) 27140 input_path=`$CYGPATH -u "$shortmode_path"` 27141 new_path="$input_path" 27142 fi 27143 fi 27144 27145 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27146 if test "x$test_cygdrive_prefix" = x; then 27147 # As a simple fix, exclude /usr/bin since it's not a real path. 27148 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27149 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27150 # a path prefixed by /cygdrive for fixpath to work. 27151 new_path="$CYGWIN_ROOT_PATH$input_path" 27152 fi 27153 fi 27154 27155 27156 if test "x$path" != "x$new_path"; then 27157 BOOT_JDK="$new_path" 27158 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27159 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27160 fi 27161 27162 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27163 27164 path="$BOOT_JDK" 27165 has_colon=`$ECHO $path | $GREP ^.:` 27166 new_path="$path" 27167 if test "x$has_colon" = x; then 27168 # Not in mixed or Windows style, start by that. 27169 new_path=`cmd //c echo $path` 27170 fi 27171 27172 27173 input_path="$new_path" 27174 # Check if we need to convert this using DOS-style short mode. If the path 27175 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27176 # take no chances and rewrite it. 27177 # Note: m4 eats our [], so we need to use [ and ] instead. 27178 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27179 if test "x$has_forbidden_chars" != x; then 27180 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27181 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27182 fi 27183 27184 27185 windows_path="$new_path" 27186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27187 unix_path=`$CYGPATH -u "$windows_path"` 27188 new_path="$unix_path" 27189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27190 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27191 new_path="$unix_path" 27192 fi 27193 27194 if test "x$path" != "x$new_path"; then 27195 BOOT_JDK="$new_path" 27196 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27197 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27198 fi 27199 27200 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27201 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27202 27203 else 27204 # We're on a unix platform. Hooray! :) 27205 path="$BOOT_JDK" 27206 has_space=`$ECHO "$path" | $GREP " "` 27207 if test "x$has_space" != x; then 27208 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27209 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27210 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27211 fi 27212 27213 # Use eval to expand a potential ~ 27214 eval path="$path" 27215 if test ! -f "$path" && test ! -d "$path"; then 27216 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27217 fi 27218 27219 if test -d "$path"; then 27220 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27221 else 27222 dir="`$DIRNAME "$path"`" 27223 base="`$BASENAME "$path"`" 27224 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27225 fi 27226 fi 27227 fi 27228 27229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27230 $as_echo_n "checking for Boot JDK... " >&6; } 27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27232 $as_echo "$BOOT_JDK" >&6; } 27233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27234 $as_echo_n "checking Boot JDK version... " >&6; } 27235 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27237 $as_echo "$BOOT_JDK_VERSION" >&6; } 27238 fi # end check jdk version 27239 fi # end check javac 27240 fi # end check java 27241 fi # end check boot jdk found 27242 fi 27243 27244 done 27245 fi 27246 27247 fi 27248 27249 27250 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27251 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27252 # Do we have a bin/java? 27253 if test ! -x "$BOOT_JDK/bin/java"; then 27254 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27255 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27256 BOOT_JDK_FOUND=no 27257 else 27258 # Do we have a bin/javac? 27259 if test ! -x "$BOOT_JDK/bin/javac"; then 27260 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27261 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27262 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27263 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27264 BOOT_JDK_FOUND=no 27265 else 27266 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27267 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27268 27269 # Extra M4 quote needed to protect [] in grep expression. 27270 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27271 if test "x$FOUND_CORRECT_VERSION" = x; then 27272 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27273 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27274 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27275 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27276 BOOT_JDK_FOUND=no 27277 else 27278 # We're done! :-) 27279 BOOT_JDK_FOUND=yes 27280 27281 # Only process if variable expands to non-empty 27282 27283 if test "x$BOOT_JDK" != x; then 27284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27285 27286 # Input might be given as Windows format, start by converting to 27287 # unix format. 27288 path="$BOOT_JDK" 27289 new_path=`$CYGPATH -u "$path"` 27290 27291 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27292 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27293 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27294 # "foo.exe" is OK but "foo" is an error. 27295 # 27296 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27297 # It is also a way to make sure we got the proper file name for the real test later on. 27298 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27299 if test "x$test_shortpath" = x; then 27300 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27301 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27302 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27303 fi 27304 27305 # Call helper function which possibly converts this using DOS-style short mode. 27306 # If so, the updated path is stored in $new_path. 27307 27308 input_path="$new_path" 27309 # Check if we need to convert this using DOS-style short mode. If the path 27310 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27311 # take no chances and rewrite it. 27312 # Note: m4 eats our [], so we need to use [ and ] instead. 27313 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27314 if test "x$has_forbidden_chars" != x; then 27315 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27316 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27317 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27318 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27319 # Going to short mode and back again did indeed matter. Since short mode is 27320 # case insensitive, let's make it lowercase to improve readability. 27321 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27322 # Now convert it back to Unix-style (cygpath) 27323 input_path=`$CYGPATH -u "$shortmode_path"` 27324 new_path="$input_path" 27325 fi 27326 fi 27327 27328 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27329 if test "x$test_cygdrive_prefix" = x; then 27330 # As a simple fix, exclude /usr/bin since it's not a real path. 27331 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27332 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27333 # a path prefixed by /cygdrive for fixpath to work. 27334 new_path="$CYGWIN_ROOT_PATH$input_path" 27335 fi 27336 fi 27337 27338 27339 if test "x$path" != "x$new_path"; then 27340 BOOT_JDK="$new_path" 27341 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27342 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27343 fi 27344 27345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27346 27347 path="$BOOT_JDK" 27348 has_colon=`$ECHO $path | $GREP ^.:` 27349 new_path="$path" 27350 if test "x$has_colon" = x; then 27351 # Not in mixed or Windows style, start by that. 27352 new_path=`cmd //c echo $path` 27353 fi 27354 27355 27356 input_path="$new_path" 27357 # Check if we need to convert this using DOS-style short mode. If the path 27358 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27359 # take no chances and rewrite it. 27360 # Note: m4 eats our [], so we need to use [ and ] instead. 27361 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27362 if test "x$has_forbidden_chars" != x; then 27363 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27364 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27365 fi 27366 27367 27368 windows_path="$new_path" 27369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27370 unix_path=`$CYGPATH -u "$windows_path"` 27371 new_path="$unix_path" 27372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27374 new_path="$unix_path" 27375 fi 27376 27377 if test "x$path" != "x$new_path"; then 27378 BOOT_JDK="$new_path" 27379 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27380 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27381 fi 27382 27383 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27384 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27385 27386 else 27387 # We're on a unix platform. Hooray! :) 27388 path="$BOOT_JDK" 27389 has_space=`$ECHO "$path" | $GREP " "` 27390 if test "x$has_space" != x; then 27391 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27392 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27393 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27394 fi 27395 27396 # Use eval to expand a potential ~ 27397 eval path="$path" 27398 if test ! -f "$path" && test ! -d "$path"; then 27399 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27400 fi 27401 27402 if test -d "$path"; then 27403 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27404 else 27405 dir="`$DIRNAME "$path"`" 27406 base="`$BASENAME "$path"`" 27407 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27408 fi 27409 fi 27410 fi 27411 27412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27413 $as_echo_n "checking for Boot JDK... " >&6; } 27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27415 $as_echo "$BOOT_JDK" >&6; } 27416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27417 $as_echo_n "checking Boot JDK version... " >&6; } 27418 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27420 $as_echo "$BOOT_JDK_VERSION" >&6; } 27421 fi # end check jdk version 27422 fi # end check javac 27423 fi # end check java 27424 fi # end check boot jdk found 27425 fi 27426 27427 27428 if test "x$BOOT_JDK_FOUND" = xno; then 27429 # Now execute the test 27430 27431 if test "x$PROGRAMFILES" != x; then 27432 VIRTUAL_DIR="$PROGRAMFILES/Java" 27433 27434 windows_path="$VIRTUAL_DIR" 27435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27436 unix_path=`$CYGPATH -u "$windows_path"` 27437 VIRTUAL_DIR="$unix_path" 27438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27439 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27440 VIRTUAL_DIR="$unix_path" 27441 fi 27442 27443 27444 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27445 BOOT_JDK_SUFFIX="" 27446 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27447 if test "x$ALL_JDKS_FOUND" != x; then 27448 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27449 27450 if test "x$BOOT_JDK_FOUND" = xno; then 27451 # Now execute the test 27452 27453 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27454 if test -d "$BOOT_JDK"; then 27455 BOOT_JDK_FOUND=maybe 27456 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27457 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27458 fi 27459 27460 27461 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27462 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27463 # Do we have a bin/java? 27464 if test ! -x "$BOOT_JDK/bin/java"; then 27465 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27466 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27467 BOOT_JDK_FOUND=no 27468 else 27469 # Do we have a bin/javac? 27470 if test ! -x "$BOOT_JDK/bin/javac"; then 27471 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27472 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27473 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27474 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27475 BOOT_JDK_FOUND=no 27476 else 27477 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27478 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27479 27480 # Extra M4 quote needed to protect [] in grep expression. 27481 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27482 if test "x$FOUND_CORRECT_VERSION" = x; then 27483 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27484 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27485 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27486 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27487 BOOT_JDK_FOUND=no 27488 else 27489 # We're done! :-) 27490 BOOT_JDK_FOUND=yes 27491 27492 # Only process if variable expands to non-empty 27493 27494 if test "x$BOOT_JDK" != x; then 27495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27496 27497 # Input might be given as Windows format, start by converting to 27498 # unix format. 27499 path="$BOOT_JDK" 27500 new_path=`$CYGPATH -u "$path"` 27501 27502 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27503 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27504 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27505 # "foo.exe" is OK but "foo" is an error. 27506 # 27507 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27508 # It is also a way to make sure we got the proper file name for the real test later on. 27509 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27510 if test "x$test_shortpath" = x; then 27511 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27512 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27513 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27514 fi 27515 27516 # Call helper function which possibly converts this using DOS-style short mode. 27517 # If so, the updated path is stored in $new_path. 27518 27519 input_path="$new_path" 27520 # Check if we need to convert this using DOS-style short mode. If the path 27521 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27522 # take no chances and rewrite it. 27523 # Note: m4 eats our [], so we need to use [ and ] instead. 27524 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27525 if test "x$has_forbidden_chars" != x; then 27526 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27527 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27528 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27529 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27530 # Going to short mode and back again did indeed matter. Since short mode is 27531 # case insensitive, let's make it lowercase to improve readability. 27532 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27533 # Now convert it back to Unix-style (cygpath) 27534 input_path=`$CYGPATH -u "$shortmode_path"` 27535 new_path="$input_path" 27536 fi 27537 fi 27538 27539 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27540 if test "x$test_cygdrive_prefix" = x; then 27541 # As a simple fix, exclude /usr/bin since it's not a real path. 27542 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27543 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27544 # a path prefixed by /cygdrive for fixpath to work. 27545 new_path="$CYGWIN_ROOT_PATH$input_path" 27546 fi 27547 fi 27548 27549 27550 if test "x$path" != "x$new_path"; then 27551 BOOT_JDK="$new_path" 27552 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27553 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27554 fi 27555 27556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27557 27558 path="$BOOT_JDK" 27559 has_colon=`$ECHO $path | $GREP ^.:` 27560 new_path="$path" 27561 if test "x$has_colon" = x; then 27562 # Not in mixed or Windows style, start by that. 27563 new_path=`cmd //c echo $path` 27564 fi 27565 27566 27567 input_path="$new_path" 27568 # Check if we need to convert this using DOS-style short mode. If the path 27569 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27570 # take no chances and rewrite it. 27571 # Note: m4 eats our [], so we need to use [ and ] instead. 27572 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27573 if test "x$has_forbidden_chars" != x; then 27574 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27575 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27576 fi 27577 27578 27579 windows_path="$new_path" 27580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27581 unix_path=`$CYGPATH -u "$windows_path"` 27582 new_path="$unix_path" 27583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27584 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27585 new_path="$unix_path" 27586 fi 27587 27588 if test "x$path" != "x$new_path"; then 27589 BOOT_JDK="$new_path" 27590 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27591 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27592 fi 27593 27594 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27595 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27596 27597 else 27598 # We're on a unix platform. Hooray! :) 27599 path="$BOOT_JDK" 27600 has_space=`$ECHO "$path" | $GREP " "` 27601 if test "x$has_space" != x; then 27602 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27603 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27604 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27605 fi 27606 27607 # Use eval to expand a potential ~ 27608 eval path="$path" 27609 if test ! -f "$path" && test ! -d "$path"; then 27610 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27611 fi 27612 27613 if test -d "$path"; then 27614 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27615 else 27616 dir="`$DIRNAME "$path"`" 27617 base="`$BASENAME "$path"`" 27618 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27619 fi 27620 fi 27621 fi 27622 27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27624 $as_echo_n "checking for Boot JDK... " >&6; } 27625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27626 $as_echo "$BOOT_JDK" >&6; } 27627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27628 $as_echo_n "checking Boot JDK version... " >&6; } 27629 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27631 $as_echo "$BOOT_JDK_VERSION" >&6; } 27632 fi # end check jdk version 27633 fi # end check javac 27634 fi # end check java 27635 fi # end check boot jdk found 27636 fi 27637 27638 done 27639 fi 27640 27641 fi 27642 27643 27644 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27645 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27646 # Do we have a bin/java? 27647 if test ! -x "$BOOT_JDK/bin/java"; then 27648 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27649 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27650 BOOT_JDK_FOUND=no 27651 else 27652 # Do we have a bin/javac? 27653 if test ! -x "$BOOT_JDK/bin/javac"; then 27654 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27655 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27656 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27657 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27658 BOOT_JDK_FOUND=no 27659 else 27660 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27661 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27662 27663 # Extra M4 quote needed to protect [] in grep expression. 27664 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27665 if test "x$FOUND_CORRECT_VERSION" = x; then 27666 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27667 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27668 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27669 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27670 BOOT_JDK_FOUND=no 27671 else 27672 # We're done! :-) 27673 BOOT_JDK_FOUND=yes 27674 27675 # Only process if variable expands to non-empty 27676 27677 if test "x$BOOT_JDK" != x; then 27678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27679 27680 # Input might be given as Windows format, start by converting to 27681 # unix format. 27682 path="$BOOT_JDK" 27683 new_path=`$CYGPATH -u "$path"` 27684 27685 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27686 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27687 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27688 # "foo.exe" is OK but "foo" is an error. 27689 # 27690 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27691 # It is also a way to make sure we got the proper file name for the real test later on. 27692 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27693 if test "x$test_shortpath" = x; then 27694 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27695 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27696 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27697 fi 27698 27699 # Call helper function which possibly converts this using DOS-style short mode. 27700 # If so, the updated path is stored in $new_path. 27701 27702 input_path="$new_path" 27703 # Check if we need to convert this using DOS-style short mode. If the path 27704 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27705 # take no chances and rewrite it. 27706 # Note: m4 eats our [], so we need to use [ and ] instead. 27707 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27708 if test "x$has_forbidden_chars" != x; then 27709 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27710 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27711 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27712 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27713 # Going to short mode and back again did indeed matter. Since short mode is 27714 # case insensitive, let's make it lowercase to improve readability. 27715 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27716 # Now convert it back to Unix-style (cygpath) 27717 input_path=`$CYGPATH -u "$shortmode_path"` 27718 new_path="$input_path" 27719 fi 27720 fi 27721 27722 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27723 if test "x$test_cygdrive_prefix" = x; then 27724 # As a simple fix, exclude /usr/bin since it's not a real path. 27725 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27726 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27727 # a path prefixed by /cygdrive for fixpath to work. 27728 new_path="$CYGWIN_ROOT_PATH$input_path" 27729 fi 27730 fi 27731 27732 27733 if test "x$path" != "x$new_path"; then 27734 BOOT_JDK="$new_path" 27735 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27736 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27737 fi 27738 27739 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27740 27741 path="$BOOT_JDK" 27742 has_colon=`$ECHO $path | $GREP ^.:` 27743 new_path="$path" 27744 if test "x$has_colon" = x; then 27745 # Not in mixed or Windows style, start by that. 27746 new_path=`cmd //c echo $path` 27747 fi 27748 27749 27750 input_path="$new_path" 27751 # Check if we need to convert this using DOS-style short mode. If the path 27752 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27753 # take no chances and rewrite it. 27754 # Note: m4 eats our [], so we need to use [ and ] instead. 27755 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27756 if test "x$has_forbidden_chars" != x; then 27757 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27758 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27759 fi 27760 27761 27762 windows_path="$new_path" 27763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27764 unix_path=`$CYGPATH -u "$windows_path"` 27765 new_path="$unix_path" 27766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27767 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27768 new_path="$unix_path" 27769 fi 27770 27771 if test "x$path" != "x$new_path"; then 27772 BOOT_JDK="$new_path" 27773 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27774 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27775 fi 27776 27777 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27778 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27779 27780 else 27781 # We're on a unix platform. Hooray! :) 27782 path="$BOOT_JDK" 27783 has_space=`$ECHO "$path" | $GREP " "` 27784 if test "x$has_space" != x; then 27785 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27786 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27787 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27788 fi 27789 27790 # Use eval to expand a potential ~ 27791 eval path="$path" 27792 if test ! -f "$path" && test ! -d "$path"; then 27793 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27794 fi 27795 27796 if test -d "$path"; then 27797 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27798 else 27799 dir="`$DIRNAME "$path"`" 27800 base="`$BASENAME "$path"`" 27801 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27802 fi 27803 fi 27804 fi 27805 27806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27807 $as_echo_n "checking for Boot JDK... " >&6; } 27808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27809 $as_echo "$BOOT_JDK" >&6; } 27810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27811 $as_echo_n "checking Boot JDK version... " >&6; } 27812 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27814 $as_echo "$BOOT_JDK_VERSION" >&6; } 27815 fi # end check jdk version 27816 fi # end check javac 27817 fi # end check java 27818 fi # end check boot jdk found 27819 fi 27820 27821 27822 if test "x$BOOT_JDK_FOUND" = xno; then 27823 # Now execute the test 27824 27825 if test "x$ProgramFiles" != x; then 27826 VIRTUAL_DIR="$ProgramFiles/Java" 27827 27828 windows_path="$VIRTUAL_DIR" 27829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27830 unix_path=`$CYGPATH -u "$windows_path"` 27831 VIRTUAL_DIR="$unix_path" 27832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27833 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27834 VIRTUAL_DIR="$unix_path" 27835 fi 27836 27837 27838 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27839 BOOT_JDK_SUFFIX="" 27840 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27841 if test "x$ALL_JDKS_FOUND" != x; then 27842 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27843 27844 if test "x$BOOT_JDK_FOUND" = xno; then 27845 # Now execute the test 27846 27847 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27848 if test -d "$BOOT_JDK"; then 27849 BOOT_JDK_FOUND=maybe 27850 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27851 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27852 fi 27853 27854 27855 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27856 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27857 # Do we have a bin/java? 27858 if test ! -x "$BOOT_JDK/bin/java"; then 27859 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27860 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27861 BOOT_JDK_FOUND=no 27862 else 27863 # Do we have a bin/javac? 27864 if test ! -x "$BOOT_JDK/bin/javac"; then 27865 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27866 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27867 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27868 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27869 BOOT_JDK_FOUND=no 27870 else 27871 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27872 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27873 27874 # Extra M4 quote needed to protect [] in grep expression. 27875 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27876 if test "x$FOUND_CORRECT_VERSION" = x; then 27877 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27878 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27879 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27880 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27881 BOOT_JDK_FOUND=no 27882 else 27883 # We're done! :-) 27884 BOOT_JDK_FOUND=yes 27885 27886 # Only process if variable expands to non-empty 27887 27888 if test "x$BOOT_JDK" != x; then 27889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27890 27891 # Input might be given as Windows format, start by converting to 27892 # unix format. 27893 path="$BOOT_JDK" 27894 new_path=`$CYGPATH -u "$path"` 27895 27896 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27897 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27898 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27899 # "foo.exe" is OK but "foo" is an error. 27900 # 27901 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27902 # It is also a way to make sure we got the proper file name for the real test later on. 27903 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27904 if test "x$test_shortpath" = x; then 27905 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27906 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27907 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27908 fi 27909 27910 # Call helper function which possibly converts this using DOS-style short mode. 27911 # If so, the updated path is stored in $new_path. 27912 27913 input_path="$new_path" 27914 # Check if we need to convert this using DOS-style short mode. If the path 27915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27916 # take no chances and rewrite it. 27917 # Note: m4 eats our [], so we need to use [ and ] instead. 27918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27919 if test "x$has_forbidden_chars" != x; then 27920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27921 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27922 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27923 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27924 # Going to short mode and back again did indeed matter. Since short mode is 27925 # case insensitive, let's make it lowercase to improve readability. 27926 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27927 # Now convert it back to Unix-style (cygpath) 27928 input_path=`$CYGPATH -u "$shortmode_path"` 27929 new_path="$input_path" 27930 fi 27931 fi 27932 27933 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27934 if test "x$test_cygdrive_prefix" = x; then 27935 # As a simple fix, exclude /usr/bin since it's not a real path. 27936 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27937 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27938 # a path prefixed by /cygdrive for fixpath to work. 27939 new_path="$CYGWIN_ROOT_PATH$input_path" 27940 fi 27941 fi 27942 27943 27944 if test "x$path" != "x$new_path"; then 27945 BOOT_JDK="$new_path" 27946 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27947 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27948 fi 27949 27950 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27951 27952 path="$BOOT_JDK" 27953 has_colon=`$ECHO $path | $GREP ^.:` 27954 new_path="$path" 27955 if test "x$has_colon" = x; then 27956 # Not in mixed or Windows style, start by that. 27957 new_path=`cmd //c echo $path` 27958 fi 27959 27960 27961 input_path="$new_path" 27962 # Check if we need to convert this using DOS-style short mode. If the path 27963 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27964 # take no chances and rewrite it. 27965 # Note: m4 eats our [], so we need to use [ and ] instead. 27966 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27967 if test "x$has_forbidden_chars" != x; then 27968 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27969 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27970 fi 27971 27972 27973 windows_path="$new_path" 27974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27975 unix_path=`$CYGPATH -u "$windows_path"` 27976 new_path="$unix_path" 27977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27978 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27979 new_path="$unix_path" 27980 fi 27981 27982 if test "x$path" != "x$new_path"; then 27983 BOOT_JDK="$new_path" 27984 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27985 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27986 fi 27987 27988 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27989 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27990 27991 else 27992 # We're on a unix platform. Hooray! :) 27993 path="$BOOT_JDK" 27994 has_space=`$ECHO "$path" | $GREP " "` 27995 if test "x$has_space" != x; then 27996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27997 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27998 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27999 fi 28000 28001 # Use eval to expand a potential ~ 28002 eval path="$path" 28003 if test ! -f "$path" && test ! -d "$path"; then 28004 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28005 fi 28006 28007 if test -d "$path"; then 28008 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28009 else 28010 dir="`$DIRNAME "$path"`" 28011 base="`$BASENAME "$path"`" 28012 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28013 fi 28014 fi 28015 fi 28016 28017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28018 $as_echo_n "checking for Boot JDK... " >&6; } 28019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28020 $as_echo "$BOOT_JDK" >&6; } 28021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28022 $as_echo_n "checking Boot JDK version... " >&6; } 28023 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28025 $as_echo "$BOOT_JDK_VERSION" >&6; } 28026 fi # end check jdk version 28027 fi # end check javac 28028 fi # end check java 28029 fi # end check boot jdk found 28030 fi 28031 28032 done 28033 fi 28034 28035 fi 28036 28037 28038 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28039 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28040 # Do we have a bin/java? 28041 if test ! -x "$BOOT_JDK/bin/java"; then 28042 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28043 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28044 BOOT_JDK_FOUND=no 28045 else 28046 # Do we have a bin/javac? 28047 if test ! -x "$BOOT_JDK/bin/javac"; then 28048 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28049 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28050 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28051 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28052 BOOT_JDK_FOUND=no 28053 else 28054 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28055 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28056 28057 # Extra M4 quote needed to protect [] in grep expression. 28058 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28059 if test "x$FOUND_CORRECT_VERSION" = x; then 28060 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28061 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28062 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28063 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28064 BOOT_JDK_FOUND=no 28065 else 28066 # We're done! :-) 28067 BOOT_JDK_FOUND=yes 28068 28069 # Only process if variable expands to non-empty 28070 28071 if test "x$BOOT_JDK" != x; then 28072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28073 28074 # Input might be given as Windows format, start by converting to 28075 # unix format. 28076 path="$BOOT_JDK" 28077 new_path=`$CYGPATH -u "$path"` 28078 28079 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28080 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28081 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28082 # "foo.exe" is OK but "foo" is an error. 28083 # 28084 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28085 # It is also a way to make sure we got the proper file name for the real test later on. 28086 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28087 if test "x$test_shortpath" = x; then 28088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28089 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28090 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28091 fi 28092 28093 # Call helper function which possibly converts this using DOS-style short mode. 28094 # If so, the updated path is stored in $new_path. 28095 28096 input_path="$new_path" 28097 # Check if we need to convert this using DOS-style short mode. If the path 28098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28099 # take no chances and rewrite it. 28100 # Note: m4 eats our [], so we need to use [ and ] instead. 28101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28102 if test "x$has_forbidden_chars" != x; then 28103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28104 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28105 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28106 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28107 # Going to short mode and back again did indeed matter. Since short mode is 28108 # case insensitive, let's make it lowercase to improve readability. 28109 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28110 # Now convert it back to Unix-style (cygpath) 28111 input_path=`$CYGPATH -u "$shortmode_path"` 28112 new_path="$input_path" 28113 fi 28114 fi 28115 28116 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28117 if test "x$test_cygdrive_prefix" = x; then 28118 # As a simple fix, exclude /usr/bin since it's not a real path. 28119 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28120 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28121 # a path prefixed by /cygdrive for fixpath to work. 28122 new_path="$CYGWIN_ROOT_PATH$input_path" 28123 fi 28124 fi 28125 28126 28127 if test "x$path" != "x$new_path"; then 28128 BOOT_JDK="$new_path" 28129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28130 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28131 fi 28132 28133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28134 28135 path="$BOOT_JDK" 28136 has_colon=`$ECHO $path | $GREP ^.:` 28137 new_path="$path" 28138 if test "x$has_colon" = x; then 28139 # Not in mixed or Windows style, start by that. 28140 new_path=`cmd //c echo $path` 28141 fi 28142 28143 28144 input_path="$new_path" 28145 # Check if we need to convert this using DOS-style short mode. If the path 28146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28147 # take no chances and rewrite it. 28148 # Note: m4 eats our [], so we need to use [ and ] instead. 28149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28150 if test "x$has_forbidden_chars" != x; then 28151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28152 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28153 fi 28154 28155 28156 windows_path="$new_path" 28157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28158 unix_path=`$CYGPATH -u "$windows_path"` 28159 new_path="$unix_path" 28160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28162 new_path="$unix_path" 28163 fi 28164 28165 if test "x$path" != "x$new_path"; then 28166 BOOT_JDK="$new_path" 28167 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28168 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28169 fi 28170 28171 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28172 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28173 28174 else 28175 # We're on a unix platform. Hooray! :) 28176 path="$BOOT_JDK" 28177 has_space=`$ECHO "$path" | $GREP " "` 28178 if test "x$has_space" != x; then 28179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28180 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28181 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28182 fi 28183 28184 # Use eval to expand a potential ~ 28185 eval path="$path" 28186 if test ! -f "$path" && test ! -d "$path"; then 28187 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28188 fi 28189 28190 if test -d "$path"; then 28191 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28192 else 28193 dir="`$DIRNAME "$path"`" 28194 base="`$BASENAME "$path"`" 28195 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28196 fi 28197 fi 28198 fi 28199 28200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28201 $as_echo_n "checking for Boot JDK... " >&6; } 28202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28203 $as_echo "$BOOT_JDK" >&6; } 28204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28205 $as_echo_n "checking Boot JDK version... " >&6; } 28206 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28208 $as_echo "$BOOT_JDK_VERSION" >&6; } 28209 fi # end check jdk version 28210 fi # end check javac 28211 fi # end check java 28212 fi # end check boot jdk found 28213 fi 28214 28215 28216 if test "x$BOOT_JDK_FOUND" = xno; then 28217 # Now execute the test 28218 28219 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 28220 BOOT_JDK_SUFFIX="" 28221 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28222 if test "x$ALL_JDKS_FOUND" != x; then 28223 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28224 28225 if test "x$BOOT_JDK_FOUND" = xno; then 28226 # Now execute the test 28227 28228 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28229 if test -d "$BOOT_JDK"; then 28230 BOOT_JDK_FOUND=maybe 28231 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28232 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28233 fi 28234 28235 28236 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28237 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28238 # Do we have a bin/java? 28239 if test ! -x "$BOOT_JDK/bin/java"; then 28240 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28242 BOOT_JDK_FOUND=no 28243 else 28244 # Do we have a bin/javac? 28245 if test ! -x "$BOOT_JDK/bin/javac"; then 28246 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28248 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28249 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28250 BOOT_JDK_FOUND=no 28251 else 28252 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28253 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28254 28255 # Extra M4 quote needed to protect [] in grep expression. 28256 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28257 if test "x$FOUND_CORRECT_VERSION" = x; then 28258 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28259 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28260 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28261 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28262 BOOT_JDK_FOUND=no 28263 else 28264 # We're done! :-) 28265 BOOT_JDK_FOUND=yes 28266 28267 # Only process if variable expands to non-empty 28268 28269 if test "x$BOOT_JDK" != x; then 28270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28271 28272 # Input might be given as Windows format, start by converting to 28273 # unix format. 28274 path="$BOOT_JDK" 28275 new_path=`$CYGPATH -u "$path"` 28276 28277 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28278 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28279 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28280 # "foo.exe" is OK but "foo" is an error. 28281 # 28282 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28283 # It is also a way to make sure we got the proper file name for the real test later on. 28284 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28285 if test "x$test_shortpath" = x; then 28286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28287 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28288 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28289 fi 28290 28291 # Call helper function which possibly converts this using DOS-style short mode. 28292 # If so, the updated path is stored in $new_path. 28293 28294 input_path="$new_path" 28295 # Check if we need to convert this using DOS-style short mode. If the path 28296 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28297 # take no chances and rewrite it. 28298 # Note: m4 eats our [], so we need to use [ and ] instead. 28299 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28300 if test "x$has_forbidden_chars" != x; then 28301 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28302 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28303 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28304 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28305 # Going to short mode and back again did indeed matter. Since short mode is 28306 # case insensitive, let's make it lowercase to improve readability. 28307 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28308 # Now convert it back to Unix-style (cygpath) 28309 input_path=`$CYGPATH -u "$shortmode_path"` 28310 new_path="$input_path" 28311 fi 28312 fi 28313 28314 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28315 if test "x$test_cygdrive_prefix" = x; then 28316 # As a simple fix, exclude /usr/bin since it's not a real path. 28317 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28318 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28319 # a path prefixed by /cygdrive for fixpath to work. 28320 new_path="$CYGWIN_ROOT_PATH$input_path" 28321 fi 28322 fi 28323 28324 28325 if test "x$path" != "x$new_path"; then 28326 BOOT_JDK="$new_path" 28327 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28328 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28329 fi 28330 28331 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28332 28333 path="$BOOT_JDK" 28334 has_colon=`$ECHO $path | $GREP ^.:` 28335 new_path="$path" 28336 if test "x$has_colon" = x; then 28337 # Not in mixed or Windows style, start by that. 28338 new_path=`cmd //c echo $path` 28339 fi 28340 28341 28342 input_path="$new_path" 28343 # Check if we need to convert this using DOS-style short mode. If the path 28344 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28345 # take no chances and rewrite it. 28346 # Note: m4 eats our [], so we need to use [ and ] instead. 28347 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28348 if test "x$has_forbidden_chars" != x; then 28349 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28350 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28351 fi 28352 28353 28354 windows_path="$new_path" 28355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28356 unix_path=`$CYGPATH -u "$windows_path"` 28357 new_path="$unix_path" 28358 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28359 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28360 new_path="$unix_path" 28361 fi 28362 28363 if test "x$path" != "x$new_path"; then 28364 BOOT_JDK="$new_path" 28365 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28366 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28367 fi 28368 28369 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28370 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28371 28372 else 28373 # We're on a unix platform. Hooray! :) 28374 path="$BOOT_JDK" 28375 has_space=`$ECHO "$path" | $GREP " "` 28376 if test "x$has_space" != x; then 28377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28378 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28379 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28380 fi 28381 28382 # Use eval to expand a potential ~ 28383 eval path="$path" 28384 if test ! -f "$path" && test ! -d "$path"; then 28385 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28386 fi 28387 28388 if test -d "$path"; then 28389 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28390 else 28391 dir="`$DIRNAME "$path"`" 28392 base="`$BASENAME "$path"`" 28393 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28394 fi 28395 fi 28396 fi 28397 28398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28399 $as_echo_n "checking for Boot JDK... " >&6; } 28400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28401 $as_echo "$BOOT_JDK" >&6; } 28402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28403 $as_echo_n "checking Boot JDK version... " >&6; } 28404 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28406 $as_echo "$BOOT_JDK_VERSION" >&6; } 28407 fi # end check jdk version 28408 fi # end check javac 28409 fi # end check java 28410 fi # end check boot jdk found 28411 fi 28412 28413 done 28414 fi 28415 28416 28417 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28418 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28419 # Do we have a bin/java? 28420 if test ! -x "$BOOT_JDK/bin/java"; then 28421 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28422 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28423 BOOT_JDK_FOUND=no 28424 else 28425 # Do we have a bin/javac? 28426 if test ! -x "$BOOT_JDK/bin/javac"; then 28427 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28428 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28429 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28430 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28431 BOOT_JDK_FOUND=no 28432 else 28433 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28434 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28435 28436 # Extra M4 quote needed to protect [] in grep expression. 28437 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28438 if test "x$FOUND_CORRECT_VERSION" = x; then 28439 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28440 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28441 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28442 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28443 BOOT_JDK_FOUND=no 28444 else 28445 # We're done! :-) 28446 BOOT_JDK_FOUND=yes 28447 28448 # Only process if variable expands to non-empty 28449 28450 if test "x$BOOT_JDK" != x; then 28451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28452 28453 # Input might be given as Windows format, start by converting to 28454 # unix format. 28455 path="$BOOT_JDK" 28456 new_path=`$CYGPATH -u "$path"` 28457 28458 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28459 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28460 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28461 # "foo.exe" is OK but "foo" is an error. 28462 # 28463 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28464 # It is also a way to make sure we got the proper file name for the real test later on. 28465 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28466 if test "x$test_shortpath" = x; then 28467 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28468 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28469 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28470 fi 28471 28472 # Call helper function which possibly converts this using DOS-style short mode. 28473 # If so, the updated path is stored in $new_path. 28474 28475 input_path="$new_path" 28476 # Check if we need to convert this using DOS-style short mode. If the path 28477 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28478 # take no chances and rewrite it. 28479 # Note: m4 eats our [], so we need to use [ and ] instead. 28480 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28481 if test "x$has_forbidden_chars" != x; then 28482 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28483 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28484 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28485 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28486 # Going to short mode and back again did indeed matter. Since short mode is 28487 # case insensitive, let's make it lowercase to improve readability. 28488 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28489 # Now convert it back to Unix-style (cygpath) 28490 input_path=`$CYGPATH -u "$shortmode_path"` 28491 new_path="$input_path" 28492 fi 28493 fi 28494 28495 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28496 if test "x$test_cygdrive_prefix" = x; then 28497 # As a simple fix, exclude /usr/bin since it's not a real path. 28498 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28499 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28500 # a path prefixed by /cygdrive for fixpath to work. 28501 new_path="$CYGWIN_ROOT_PATH$input_path" 28502 fi 28503 fi 28504 28505 28506 if test "x$path" != "x$new_path"; then 28507 BOOT_JDK="$new_path" 28508 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28509 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28510 fi 28511 28512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28513 28514 path="$BOOT_JDK" 28515 has_colon=`$ECHO $path | $GREP ^.:` 28516 new_path="$path" 28517 if test "x$has_colon" = x; then 28518 # Not in mixed or Windows style, start by that. 28519 new_path=`cmd //c echo $path` 28520 fi 28521 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28532 fi 28533 28534 28535 windows_path="$new_path" 28536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28537 unix_path=`$CYGPATH -u "$windows_path"` 28538 new_path="$unix_path" 28539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28540 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28541 new_path="$unix_path" 28542 fi 28543 28544 if test "x$path" != "x$new_path"; then 28545 BOOT_JDK="$new_path" 28546 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28547 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28548 fi 28549 28550 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28551 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28552 28553 else 28554 # We're on a unix platform. Hooray! :) 28555 path="$BOOT_JDK" 28556 has_space=`$ECHO "$path" | $GREP " "` 28557 if test "x$has_space" != x; then 28558 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28559 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28560 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28561 fi 28562 28563 # Use eval to expand a potential ~ 28564 eval path="$path" 28565 if test ! -f "$path" && test ! -d "$path"; then 28566 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28567 fi 28568 28569 if test -d "$path"; then 28570 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28571 else 28572 dir="`$DIRNAME "$path"`" 28573 base="`$BASENAME "$path"`" 28574 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28575 fi 28576 fi 28577 fi 28578 28579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28580 $as_echo_n "checking for Boot JDK... " >&6; } 28581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28582 $as_echo "$BOOT_JDK" >&6; } 28583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28584 $as_echo_n "checking Boot JDK version... " >&6; } 28585 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28587 $as_echo "$BOOT_JDK_VERSION" >&6; } 28588 fi # end check jdk version 28589 fi # end check javac 28590 fi # end check java 28591 fi # end check boot jdk found 28592 fi 28593 28594 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 28595 28596 if test "x$BOOT_JDK_FOUND" = xno; then 28597 # Now execute the test 28598 28599 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 28600 BOOT_JDK_SUFFIX="/Contents/Home" 28601 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28602 if test "x$ALL_JDKS_FOUND" != x; then 28603 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28604 28605 if test "x$BOOT_JDK_FOUND" = xno; then 28606 # Now execute the test 28607 28608 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28609 if test -d "$BOOT_JDK"; then 28610 BOOT_JDK_FOUND=maybe 28611 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28612 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28613 fi 28614 28615 28616 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28617 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28618 # Do we have a bin/java? 28619 if test ! -x "$BOOT_JDK/bin/java"; then 28620 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28621 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28622 BOOT_JDK_FOUND=no 28623 else 28624 # Do we have a bin/javac? 28625 if test ! -x "$BOOT_JDK/bin/javac"; then 28626 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28627 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28628 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28629 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28630 BOOT_JDK_FOUND=no 28631 else 28632 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28633 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28634 28635 # Extra M4 quote needed to protect [] in grep expression. 28636 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28637 if test "x$FOUND_CORRECT_VERSION" = x; then 28638 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28639 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28640 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28641 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28642 BOOT_JDK_FOUND=no 28643 else 28644 # We're done! :-) 28645 BOOT_JDK_FOUND=yes 28646 28647 # Only process if variable expands to non-empty 28648 28649 if test "x$BOOT_JDK" != x; then 28650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28651 28652 # Input might be given as Windows format, start by converting to 28653 # unix format. 28654 path="$BOOT_JDK" 28655 new_path=`$CYGPATH -u "$path"` 28656 28657 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28658 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28659 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28660 # "foo.exe" is OK but "foo" is an error. 28661 # 28662 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28663 # It is also a way to make sure we got the proper file name for the real test later on. 28664 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28665 if test "x$test_shortpath" = x; then 28666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28667 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28668 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28669 fi 28670 28671 # Call helper function which possibly converts this using DOS-style short mode. 28672 # If so, the updated path is stored in $new_path. 28673 28674 input_path="$new_path" 28675 # Check if we need to convert this using DOS-style short mode. If the path 28676 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28677 # take no chances and rewrite it. 28678 # Note: m4 eats our [], so we need to use [ and ] instead. 28679 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28680 if test "x$has_forbidden_chars" != x; then 28681 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28682 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28683 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28684 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28685 # Going to short mode and back again did indeed matter. Since short mode is 28686 # case insensitive, let's make it lowercase to improve readability. 28687 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28688 # Now convert it back to Unix-style (cygpath) 28689 input_path=`$CYGPATH -u "$shortmode_path"` 28690 new_path="$input_path" 28691 fi 28692 fi 28693 28694 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28695 if test "x$test_cygdrive_prefix" = x; then 28696 # As a simple fix, exclude /usr/bin since it's not a real path. 28697 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28698 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28699 # a path prefixed by /cygdrive for fixpath to work. 28700 new_path="$CYGWIN_ROOT_PATH$input_path" 28701 fi 28702 fi 28703 28704 28705 if test "x$path" != "x$new_path"; then 28706 BOOT_JDK="$new_path" 28707 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28708 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28709 fi 28710 28711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28712 28713 path="$BOOT_JDK" 28714 has_colon=`$ECHO $path | $GREP ^.:` 28715 new_path="$path" 28716 if test "x$has_colon" = x; then 28717 # Not in mixed or Windows style, start by that. 28718 new_path=`cmd //c echo $path` 28719 fi 28720 28721 28722 input_path="$new_path" 28723 # Check if we need to convert this using DOS-style short mode. If the path 28724 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28725 # take no chances and rewrite it. 28726 # Note: m4 eats our [], so we need to use [ and ] instead. 28727 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28728 if test "x$has_forbidden_chars" != x; then 28729 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28730 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28731 fi 28732 28733 28734 windows_path="$new_path" 28735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28736 unix_path=`$CYGPATH -u "$windows_path"` 28737 new_path="$unix_path" 28738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28740 new_path="$unix_path" 28741 fi 28742 28743 if test "x$path" != "x$new_path"; then 28744 BOOT_JDK="$new_path" 28745 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28746 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28747 fi 28748 28749 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28750 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28751 28752 else 28753 # We're on a unix platform. Hooray! :) 28754 path="$BOOT_JDK" 28755 has_space=`$ECHO "$path" | $GREP " "` 28756 if test "x$has_space" != x; then 28757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28758 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28759 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28760 fi 28761 28762 # Use eval to expand a potential ~ 28763 eval path="$path" 28764 if test ! -f "$path" && test ! -d "$path"; then 28765 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28766 fi 28767 28768 if test -d "$path"; then 28769 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28770 else 28771 dir="`$DIRNAME "$path"`" 28772 base="`$BASENAME "$path"`" 28773 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28774 fi 28775 fi 28776 fi 28777 28778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28779 $as_echo_n "checking for Boot JDK... " >&6; } 28780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28781 $as_echo "$BOOT_JDK" >&6; } 28782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28783 $as_echo_n "checking Boot JDK version... " >&6; } 28784 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28786 $as_echo "$BOOT_JDK_VERSION" >&6; } 28787 fi # end check jdk version 28788 fi # end check javac 28789 fi # end check java 28790 fi # end check boot jdk found 28791 fi 28792 28793 done 28794 fi 28795 28796 28797 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28798 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28799 # Do we have a bin/java? 28800 if test ! -x "$BOOT_JDK/bin/java"; then 28801 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28803 BOOT_JDK_FOUND=no 28804 else 28805 # Do we have a bin/javac? 28806 if test ! -x "$BOOT_JDK/bin/javac"; then 28807 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28808 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28809 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28810 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28811 BOOT_JDK_FOUND=no 28812 else 28813 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28814 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28815 28816 # Extra M4 quote needed to protect [] in grep expression. 28817 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28818 if test "x$FOUND_CORRECT_VERSION" = x; then 28819 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28820 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28821 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28822 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28823 BOOT_JDK_FOUND=no 28824 else 28825 # We're done! :-) 28826 BOOT_JDK_FOUND=yes 28827 28828 # Only process if variable expands to non-empty 28829 28830 if test "x$BOOT_JDK" != x; then 28831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28832 28833 # Input might be given as Windows format, start by converting to 28834 # unix format. 28835 path="$BOOT_JDK" 28836 new_path=`$CYGPATH -u "$path"` 28837 28838 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28839 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28840 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28841 # "foo.exe" is OK but "foo" is an error. 28842 # 28843 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28844 # It is also a way to make sure we got the proper file name for the real test later on. 28845 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28846 if test "x$test_shortpath" = x; then 28847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28848 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28849 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28850 fi 28851 28852 # Call helper function which possibly converts this using DOS-style short mode. 28853 # If so, the updated path is stored in $new_path. 28854 28855 input_path="$new_path" 28856 # Check if we need to convert this using DOS-style short mode. If the path 28857 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28858 # take no chances and rewrite it. 28859 # Note: m4 eats our [], so we need to use [ and ] instead. 28860 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28861 if test "x$has_forbidden_chars" != x; then 28862 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28863 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28864 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28865 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28866 # Going to short mode and back again did indeed matter. Since short mode is 28867 # case insensitive, let's make it lowercase to improve readability. 28868 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28869 # Now convert it back to Unix-style (cygpath) 28870 input_path=`$CYGPATH -u "$shortmode_path"` 28871 new_path="$input_path" 28872 fi 28873 fi 28874 28875 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28876 if test "x$test_cygdrive_prefix" = x; then 28877 # As a simple fix, exclude /usr/bin since it's not a real path. 28878 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28879 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28880 # a path prefixed by /cygdrive for fixpath to work. 28881 new_path="$CYGWIN_ROOT_PATH$input_path" 28882 fi 28883 fi 28884 28885 28886 if test "x$path" != "x$new_path"; then 28887 BOOT_JDK="$new_path" 28888 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28889 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28890 fi 28891 28892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28893 28894 path="$BOOT_JDK" 28895 has_colon=`$ECHO $path | $GREP ^.:` 28896 new_path="$path" 28897 if test "x$has_colon" = x; then 28898 # Not in mixed or Windows style, start by that. 28899 new_path=`cmd //c echo $path` 28900 fi 28901 28902 28903 input_path="$new_path" 28904 # Check if we need to convert this using DOS-style short mode. If the path 28905 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28906 # take no chances and rewrite it. 28907 # Note: m4 eats our [], so we need to use [ and ] instead. 28908 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28909 if test "x$has_forbidden_chars" != x; then 28910 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28911 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28912 fi 28913 28914 28915 windows_path="$new_path" 28916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28917 unix_path=`$CYGPATH -u "$windows_path"` 28918 new_path="$unix_path" 28919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28921 new_path="$unix_path" 28922 fi 28923 28924 if test "x$path" != "x$new_path"; then 28925 BOOT_JDK="$new_path" 28926 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28927 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28928 fi 28929 28930 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28931 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28932 28933 else 28934 # We're on a unix platform. Hooray! :) 28935 path="$BOOT_JDK" 28936 has_space=`$ECHO "$path" | $GREP " "` 28937 if test "x$has_space" != x; then 28938 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28939 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28940 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28941 fi 28942 28943 # Use eval to expand a potential ~ 28944 eval path="$path" 28945 if test ! -f "$path" && test ! -d "$path"; then 28946 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28947 fi 28948 28949 if test -d "$path"; then 28950 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28951 else 28952 dir="`$DIRNAME "$path"`" 28953 base="`$BASENAME "$path"`" 28954 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28955 fi 28956 fi 28957 fi 28958 28959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28960 $as_echo_n "checking for Boot JDK... " >&6; } 28961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28962 $as_echo "$BOOT_JDK" >&6; } 28963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28964 $as_echo_n "checking Boot JDK version... " >&6; } 28965 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28967 $as_echo "$BOOT_JDK_VERSION" >&6; } 28968 fi # end check jdk version 28969 fi # end check javac 28970 fi # end check java 28971 fi # end check boot jdk found 28972 fi 28973 28974 28975 if test "x$BOOT_JDK_FOUND" = xno; then 28976 # Now execute the test 28977 28978 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 28979 BOOT_JDK_SUFFIX="/Contents/Home" 28980 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28981 if test "x$ALL_JDKS_FOUND" != x; then 28982 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28983 28984 if test "x$BOOT_JDK_FOUND" = xno; then 28985 # Now execute the test 28986 28987 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28988 if test -d "$BOOT_JDK"; then 28989 BOOT_JDK_FOUND=maybe 28990 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28991 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28992 fi 28993 28994 28995 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28996 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28997 # Do we have a bin/java? 28998 if test ! -x "$BOOT_JDK/bin/java"; then 28999 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29000 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29001 BOOT_JDK_FOUND=no 29002 else 29003 # Do we have a bin/javac? 29004 if test ! -x "$BOOT_JDK/bin/javac"; then 29005 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29006 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29007 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29008 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29009 BOOT_JDK_FOUND=no 29010 else 29011 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29012 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29013 29014 # Extra M4 quote needed to protect [] in grep expression. 29015 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29016 if test "x$FOUND_CORRECT_VERSION" = x; then 29017 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29018 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29019 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29020 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29021 BOOT_JDK_FOUND=no 29022 else 29023 # We're done! :-) 29024 BOOT_JDK_FOUND=yes 29025 29026 # Only process if variable expands to non-empty 29027 29028 if test "x$BOOT_JDK" != x; then 29029 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29030 29031 # Input might be given as Windows format, start by converting to 29032 # unix format. 29033 path="$BOOT_JDK" 29034 new_path=`$CYGPATH -u "$path"` 29035 29036 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29037 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29038 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29039 # "foo.exe" is OK but "foo" is an error. 29040 # 29041 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29042 # It is also a way to make sure we got the proper file name for the real test later on. 29043 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29044 if test "x$test_shortpath" = x; then 29045 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29046 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29047 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29048 fi 29049 29050 # Call helper function which possibly converts this using DOS-style short mode. 29051 # If so, the updated path is stored in $new_path. 29052 29053 input_path="$new_path" 29054 # Check if we need to convert this using DOS-style short mode. If the path 29055 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29056 # take no chances and rewrite it. 29057 # Note: m4 eats our [], so we need to use [ and ] instead. 29058 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29059 if test "x$has_forbidden_chars" != x; then 29060 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29061 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29062 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29063 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29064 # Going to short mode and back again did indeed matter. Since short mode is 29065 # case insensitive, let's make it lowercase to improve readability. 29066 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29067 # Now convert it back to Unix-style (cygpath) 29068 input_path=`$CYGPATH -u "$shortmode_path"` 29069 new_path="$input_path" 29070 fi 29071 fi 29072 29073 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29074 if test "x$test_cygdrive_prefix" = x; then 29075 # As a simple fix, exclude /usr/bin since it's not a real path. 29076 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29077 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29078 # a path prefixed by /cygdrive for fixpath to work. 29079 new_path="$CYGWIN_ROOT_PATH$input_path" 29080 fi 29081 fi 29082 29083 29084 if test "x$path" != "x$new_path"; then 29085 BOOT_JDK="$new_path" 29086 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29087 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29088 fi 29089 29090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29091 29092 path="$BOOT_JDK" 29093 has_colon=`$ECHO $path | $GREP ^.:` 29094 new_path="$path" 29095 if test "x$has_colon" = x; then 29096 # Not in mixed or Windows style, start by that. 29097 new_path=`cmd //c echo $path` 29098 fi 29099 29100 29101 input_path="$new_path" 29102 # Check if we need to convert this using DOS-style short mode. If the path 29103 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29104 # take no chances and rewrite it. 29105 # Note: m4 eats our [], so we need to use [ and ] instead. 29106 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29107 if test "x$has_forbidden_chars" != x; then 29108 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29109 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29110 fi 29111 29112 29113 windows_path="$new_path" 29114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29115 unix_path=`$CYGPATH -u "$windows_path"` 29116 new_path="$unix_path" 29117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29118 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29119 new_path="$unix_path" 29120 fi 29121 29122 if test "x$path" != "x$new_path"; then 29123 BOOT_JDK="$new_path" 29124 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29125 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29126 fi 29127 29128 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29129 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29130 29131 else 29132 # We're on a unix platform. Hooray! :) 29133 path="$BOOT_JDK" 29134 has_space=`$ECHO "$path" | $GREP " "` 29135 if test "x$has_space" != x; then 29136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29137 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29138 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29139 fi 29140 29141 # Use eval to expand a potential ~ 29142 eval path="$path" 29143 if test ! -f "$path" && test ! -d "$path"; then 29144 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29145 fi 29146 29147 if test -d "$path"; then 29148 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29149 else 29150 dir="`$DIRNAME "$path"`" 29151 base="`$BASENAME "$path"`" 29152 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29153 fi 29154 fi 29155 fi 29156 29157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29158 $as_echo_n "checking for Boot JDK... " >&6; } 29159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29160 $as_echo "$BOOT_JDK" >&6; } 29161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29162 $as_echo_n "checking Boot JDK version... " >&6; } 29163 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29165 $as_echo "$BOOT_JDK_VERSION" >&6; } 29166 fi # end check jdk version 29167 fi # end check javac 29168 fi # end check java 29169 fi # end check boot jdk found 29170 fi 29171 29172 done 29173 fi 29174 29175 29176 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29177 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29178 # Do we have a bin/java? 29179 if test ! -x "$BOOT_JDK/bin/java"; then 29180 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29181 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29182 BOOT_JDK_FOUND=no 29183 else 29184 # Do we have a bin/javac? 29185 if test ! -x "$BOOT_JDK/bin/javac"; then 29186 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29187 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29188 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29189 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29190 BOOT_JDK_FOUND=no 29191 else 29192 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29193 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29194 29195 # Extra M4 quote needed to protect [] in grep expression. 29196 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29197 if test "x$FOUND_CORRECT_VERSION" = x; then 29198 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29200 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29201 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29202 BOOT_JDK_FOUND=no 29203 else 29204 # We're done! :-) 29205 BOOT_JDK_FOUND=yes 29206 29207 # Only process if variable expands to non-empty 29208 29209 if test "x$BOOT_JDK" != x; then 29210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29211 29212 # Input might be given as Windows format, start by converting to 29213 # unix format. 29214 path="$BOOT_JDK" 29215 new_path=`$CYGPATH -u "$path"` 29216 29217 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29218 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29219 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29220 # "foo.exe" is OK but "foo" is an error. 29221 # 29222 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29223 # It is also a way to make sure we got the proper file name for the real test later on. 29224 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29225 if test "x$test_shortpath" = x; then 29226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29227 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29228 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29229 fi 29230 29231 # Call helper function which possibly converts this using DOS-style short mode. 29232 # If so, the updated path is stored in $new_path. 29233 29234 input_path="$new_path" 29235 # Check if we need to convert this using DOS-style short mode. If the path 29236 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29237 # take no chances and rewrite it. 29238 # Note: m4 eats our [], so we need to use [ and ] instead. 29239 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29240 if test "x$has_forbidden_chars" != x; then 29241 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29242 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29243 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29244 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29245 # Going to short mode and back again did indeed matter. Since short mode is 29246 # case insensitive, let's make it lowercase to improve readability. 29247 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29248 # Now convert it back to Unix-style (cygpath) 29249 input_path=`$CYGPATH -u "$shortmode_path"` 29250 new_path="$input_path" 29251 fi 29252 fi 29253 29254 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29255 if test "x$test_cygdrive_prefix" = x; then 29256 # As a simple fix, exclude /usr/bin since it's not a real path. 29257 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29258 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29259 # a path prefixed by /cygdrive for fixpath to work. 29260 new_path="$CYGWIN_ROOT_PATH$input_path" 29261 fi 29262 fi 29263 29264 29265 if test "x$path" != "x$new_path"; then 29266 BOOT_JDK="$new_path" 29267 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29268 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29269 fi 29270 29271 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29272 29273 path="$BOOT_JDK" 29274 has_colon=`$ECHO $path | $GREP ^.:` 29275 new_path="$path" 29276 if test "x$has_colon" = x; then 29277 # Not in mixed or Windows style, start by that. 29278 new_path=`cmd //c echo $path` 29279 fi 29280 29281 29282 input_path="$new_path" 29283 # Check if we need to convert this using DOS-style short mode. If the path 29284 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29285 # take no chances and rewrite it. 29286 # Note: m4 eats our [], so we need to use [ and ] instead. 29287 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29288 if test "x$has_forbidden_chars" != x; then 29289 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29290 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29291 fi 29292 29293 29294 windows_path="$new_path" 29295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29296 unix_path=`$CYGPATH -u "$windows_path"` 29297 new_path="$unix_path" 29298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29299 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29300 new_path="$unix_path" 29301 fi 29302 29303 if test "x$path" != "x$new_path"; then 29304 BOOT_JDK="$new_path" 29305 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29306 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29307 fi 29308 29309 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29310 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29311 29312 else 29313 # We're on a unix platform. Hooray! :) 29314 path="$BOOT_JDK" 29315 has_space=`$ECHO "$path" | $GREP " "` 29316 if test "x$has_space" != x; then 29317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29318 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29319 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29320 fi 29321 29322 # Use eval to expand a potential ~ 29323 eval path="$path" 29324 if test ! -f "$path" && test ! -d "$path"; then 29325 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29326 fi 29327 29328 if test -d "$path"; then 29329 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29330 else 29331 dir="`$DIRNAME "$path"`" 29332 base="`$BASENAME "$path"`" 29333 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29334 fi 29335 fi 29336 fi 29337 29338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29339 $as_echo_n "checking for Boot JDK... " >&6; } 29340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29341 $as_echo "$BOOT_JDK" >&6; } 29342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29343 $as_echo_n "checking Boot JDK version... " >&6; } 29344 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29346 $as_echo "$BOOT_JDK_VERSION" >&6; } 29347 fi # end check jdk version 29348 fi # end check javac 29349 fi # end check java 29350 fi # end check boot jdk found 29351 fi 29352 29353 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 29354 29355 if test "x$BOOT_JDK_FOUND" = xno; then 29356 # Now execute the test 29357 29358 BOOT_JDK_PREFIX="/usr/lib/jvm" 29359 BOOT_JDK_SUFFIX="" 29360 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29361 if test "x$ALL_JDKS_FOUND" != x; then 29362 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29363 29364 if test "x$BOOT_JDK_FOUND" = xno; then 29365 # Now execute the test 29366 29367 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29368 if test -d "$BOOT_JDK"; then 29369 BOOT_JDK_FOUND=maybe 29370 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29371 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29372 fi 29373 29374 29375 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29376 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29377 # Do we have a bin/java? 29378 if test ! -x "$BOOT_JDK/bin/java"; then 29379 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29380 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29381 BOOT_JDK_FOUND=no 29382 else 29383 # Do we have a bin/javac? 29384 if test ! -x "$BOOT_JDK/bin/javac"; then 29385 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29386 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29387 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29388 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29389 BOOT_JDK_FOUND=no 29390 else 29391 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29392 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29393 29394 # Extra M4 quote needed to protect [] in grep expression. 29395 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29396 if test "x$FOUND_CORRECT_VERSION" = x; then 29397 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29398 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29399 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29400 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29401 BOOT_JDK_FOUND=no 29402 else 29403 # We're done! :-) 29404 BOOT_JDK_FOUND=yes 29405 29406 # Only process if variable expands to non-empty 29407 29408 if test "x$BOOT_JDK" != x; then 29409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29410 29411 # Input might be given as Windows format, start by converting to 29412 # unix format. 29413 path="$BOOT_JDK" 29414 new_path=`$CYGPATH -u "$path"` 29415 29416 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29417 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29418 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29419 # "foo.exe" is OK but "foo" is an error. 29420 # 29421 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29422 # It is also a way to make sure we got the proper file name for the real test later on. 29423 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29424 if test "x$test_shortpath" = x; then 29425 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29426 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29427 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29428 fi 29429 29430 # Call helper function which possibly converts this using DOS-style short mode. 29431 # If so, the updated path is stored in $new_path. 29432 29433 input_path="$new_path" 29434 # Check if we need to convert this using DOS-style short mode. If the path 29435 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29436 # take no chances and rewrite it. 29437 # Note: m4 eats our [], so we need to use [ and ] instead. 29438 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29439 if test "x$has_forbidden_chars" != x; then 29440 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29441 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29442 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29443 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29444 # Going to short mode and back again did indeed matter. Since short mode is 29445 # case insensitive, let's make it lowercase to improve readability. 29446 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29447 # Now convert it back to Unix-style (cygpath) 29448 input_path=`$CYGPATH -u "$shortmode_path"` 29449 new_path="$input_path" 29450 fi 29451 fi 29452 29453 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29454 if test "x$test_cygdrive_prefix" = x; then 29455 # As a simple fix, exclude /usr/bin since it's not a real path. 29456 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29457 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29458 # a path prefixed by /cygdrive for fixpath to work. 29459 new_path="$CYGWIN_ROOT_PATH$input_path" 29460 fi 29461 fi 29462 29463 29464 if test "x$path" != "x$new_path"; then 29465 BOOT_JDK="$new_path" 29466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29467 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29468 fi 29469 29470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29471 29472 path="$BOOT_JDK" 29473 has_colon=`$ECHO $path | $GREP ^.:` 29474 new_path="$path" 29475 if test "x$has_colon" = x; then 29476 # Not in mixed or Windows style, start by that. 29477 new_path=`cmd //c echo $path` 29478 fi 29479 29480 29481 input_path="$new_path" 29482 # Check if we need to convert this using DOS-style short mode. If the path 29483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29484 # take no chances and rewrite it. 29485 # Note: m4 eats our [], so we need to use [ and ] instead. 29486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29487 if test "x$has_forbidden_chars" != x; then 29488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29489 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29490 fi 29491 29492 29493 windows_path="$new_path" 29494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29495 unix_path=`$CYGPATH -u "$windows_path"` 29496 new_path="$unix_path" 29497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29499 new_path="$unix_path" 29500 fi 29501 29502 if test "x$path" != "x$new_path"; then 29503 BOOT_JDK="$new_path" 29504 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29505 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29506 fi 29507 29508 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29509 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29510 29511 else 29512 # We're on a unix platform. Hooray! :) 29513 path="$BOOT_JDK" 29514 has_space=`$ECHO "$path" | $GREP " "` 29515 if test "x$has_space" != x; then 29516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29517 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29518 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29519 fi 29520 29521 # Use eval to expand a potential ~ 29522 eval path="$path" 29523 if test ! -f "$path" && test ! -d "$path"; then 29524 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29525 fi 29526 29527 if test -d "$path"; then 29528 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29529 else 29530 dir="`$DIRNAME "$path"`" 29531 base="`$BASENAME "$path"`" 29532 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29533 fi 29534 fi 29535 fi 29536 29537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29538 $as_echo_n "checking for Boot JDK... " >&6; } 29539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29540 $as_echo "$BOOT_JDK" >&6; } 29541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29542 $as_echo_n "checking Boot JDK version... " >&6; } 29543 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29545 $as_echo "$BOOT_JDK_VERSION" >&6; } 29546 fi # end check jdk version 29547 fi # end check javac 29548 fi # end check java 29549 fi # end check boot jdk found 29550 fi 29551 29552 done 29553 fi 29554 29555 29556 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29557 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29558 # Do we have a bin/java? 29559 if test ! -x "$BOOT_JDK/bin/java"; then 29560 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29561 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29562 BOOT_JDK_FOUND=no 29563 else 29564 # Do we have a bin/javac? 29565 if test ! -x "$BOOT_JDK/bin/javac"; then 29566 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29567 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29568 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29569 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29570 BOOT_JDK_FOUND=no 29571 else 29572 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29573 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29574 29575 # Extra M4 quote needed to protect [] in grep expression. 29576 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29577 if test "x$FOUND_CORRECT_VERSION" = x; then 29578 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29579 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29580 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29581 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29582 BOOT_JDK_FOUND=no 29583 else 29584 # We're done! :-) 29585 BOOT_JDK_FOUND=yes 29586 29587 # Only process if variable expands to non-empty 29588 29589 if test "x$BOOT_JDK" != x; then 29590 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29591 29592 # Input might be given as Windows format, start by converting to 29593 # unix format. 29594 path="$BOOT_JDK" 29595 new_path=`$CYGPATH -u "$path"` 29596 29597 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29598 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29599 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29600 # "foo.exe" is OK but "foo" is an error. 29601 # 29602 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29603 # It is also a way to make sure we got the proper file name for the real test later on. 29604 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29605 if test "x$test_shortpath" = x; then 29606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29607 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29608 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29609 fi 29610 29611 # Call helper function which possibly converts this using DOS-style short mode. 29612 # If so, the updated path is stored in $new_path. 29613 29614 input_path="$new_path" 29615 # Check if we need to convert this using DOS-style short mode. If the path 29616 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29617 # take no chances and rewrite it. 29618 # Note: m4 eats our [], so we need to use [ and ] instead. 29619 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29620 if test "x$has_forbidden_chars" != x; then 29621 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29622 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29623 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29624 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29625 # Going to short mode and back again did indeed matter. Since short mode is 29626 # case insensitive, let's make it lowercase to improve readability. 29627 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29628 # Now convert it back to Unix-style (cygpath) 29629 input_path=`$CYGPATH -u "$shortmode_path"` 29630 new_path="$input_path" 29631 fi 29632 fi 29633 29634 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29635 if test "x$test_cygdrive_prefix" = x; then 29636 # As a simple fix, exclude /usr/bin since it's not a real path. 29637 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29638 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29639 # a path prefixed by /cygdrive for fixpath to work. 29640 new_path="$CYGWIN_ROOT_PATH$input_path" 29641 fi 29642 fi 29643 29644 29645 if test "x$path" != "x$new_path"; then 29646 BOOT_JDK="$new_path" 29647 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29648 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29649 fi 29650 29651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29652 29653 path="$BOOT_JDK" 29654 has_colon=`$ECHO $path | $GREP ^.:` 29655 new_path="$path" 29656 if test "x$has_colon" = x; then 29657 # Not in mixed or Windows style, start by that. 29658 new_path=`cmd //c echo $path` 29659 fi 29660 29661 29662 input_path="$new_path" 29663 # Check if we need to convert this using DOS-style short mode. If the path 29664 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29665 # take no chances and rewrite it. 29666 # Note: m4 eats our [], so we need to use [ and ] instead. 29667 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29668 if test "x$has_forbidden_chars" != x; then 29669 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29670 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29671 fi 29672 29673 29674 windows_path="$new_path" 29675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29676 unix_path=`$CYGPATH -u "$windows_path"` 29677 new_path="$unix_path" 29678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29679 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29680 new_path="$unix_path" 29681 fi 29682 29683 if test "x$path" != "x$new_path"; then 29684 BOOT_JDK="$new_path" 29685 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29686 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29687 fi 29688 29689 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29690 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29691 29692 else 29693 # We're on a unix platform. Hooray! :) 29694 path="$BOOT_JDK" 29695 has_space=`$ECHO "$path" | $GREP " "` 29696 if test "x$has_space" != x; then 29697 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29698 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29699 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29700 fi 29701 29702 # Use eval to expand a potential ~ 29703 eval path="$path" 29704 if test ! -f "$path" && test ! -d "$path"; then 29705 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29706 fi 29707 29708 if test -d "$path"; then 29709 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29710 else 29711 dir="`$DIRNAME "$path"`" 29712 base="`$BASENAME "$path"`" 29713 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29714 fi 29715 fi 29716 fi 29717 29718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29719 $as_echo_n "checking for Boot JDK... " >&6; } 29720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29721 $as_echo "$BOOT_JDK" >&6; } 29722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29723 $as_echo_n "checking Boot JDK version... " >&6; } 29724 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29726 $as_echo "$BOOT_JDK_VERSION" >&6; } 29727 fi # end check jdk version 29728 fi # end check javac 29729 fi # end check java 29730 fi # end check boot jdk found 29731 fi 29732 29733 fi 29734 29735 29736 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29737 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29738 # Do we have a bin/java? 29739 if test ! -x "$BOOT_JDK/bin/java"; then 29740 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29741 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29742 BOOT_JDK_FOUND=no 29743 else 29744 # Do we have a bin/javac? 29745 if test ! -x "$BOOT_JDK/bin/javac"; then 29746 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29747 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29748 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29749 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29750 BOOT_JDK_FOUND=no 29751 else 29752 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29753 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29754 29755 # Extra M4 quote needed to protect [] in grep expression. 29756 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29757 if test "x$FOUND_CORRECT_VERSION" = x; then 29758 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29759 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29760 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29761 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29762 BOOT_JDK_FOUND=no 29763 else 29764 # We're done! :-) 29765 BOOT_JDK_FOUND=yes 29766 29767 # Only process if variable expands to non-empty 29768 29769 if test "x$BOOT_JDK" != x; then 29770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29771 29772 # Input might be given as Windows format, start by converting to 29773 # unix format. 29774 path="$BOOT_JDK" 29775 new_path=`$CYGPATH -u "$path"` 29776 29777 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29778 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29779 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29780 # "foo.exe" is OK but "foo" is an error. 29781 # 29782 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29783 # It is also a way to make sure we got the proper file name for the real test later on. 29784 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29785 if test "x$test_shortpath" = x; then 29786 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29787 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29788 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29789 fi 29790 29791 # Call helper function which possibly converts this using DOS-style short mode. 29792 # If so, the updated path is stored in $new_path. 29793 29794 input_path="$new_path" 29795 # Check if we need to convert this using DOS-style short mode. If the path 29796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29797 # take no chances and rewrite it. 29798 # Note: m4 eats our [], so we need to use [ and ] instead. 29799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29800 if test "x$has_forbidden_chars" != x; then 29801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29802 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29803 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29804 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29805 # Going to short mode and back again did indeed matter. Since short mode is 29806 # case insensitive, let's make it lowercase to improve readability. 29807 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29808 # Now convert it back to Unix-style (cygpath) 29809 input_path=`$CYGPATH -u "$shortmode_path"` 29810 new_path="$input_path" 29811 fi 29812 fi 29813 29814 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29815 if test "x$test_cygdrive_prefix" = x; then 29816 # As a simple fix, exclude /usr/bin since it's not a real path. 29817 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29818 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29819 # a path prefixed by /cygdrive for fixpath to work. 29820 new_path="$CYGWIN_ROOT_PATH$input_path" 29821 fi 29822 fi 29823 29824 29825 if test "x$path" != "x$new_path"; then 29826 BOOT_JDK="$new_path" 29827 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29828 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29829 fi 29830 29831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29832 29833 path="$BOOT_JDK" 29834 has_colon=`$ECHO $path | $GREP ^.:` 29835 new_path="$path" 29836 if test "x$has_colon" = x; then 29837 # Not in mixed or Windows style, start by that. 29838 new_path=`cmd //c echo $path` 29839 fi 29840 29841 29842 input_path="$new_path" 29843 # Check if we need to convert this using DOS-style short mode. If the path 29844 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29845 # take no chances and rewrite it. 29846 # Note: m4 eats our [], so we need to use [ and ] instead. 29847 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29848 if test "x$has_forbidden_chars" != x; then 29849 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29850 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29851 fi 29852 29853 29854 windows_path="$new_path" 29855 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29856 unix_path=`$CYGPATH -u "$windows_path"` 29857 new_path="$unix_path" 29858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29859 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29860 new_path="$unix_path" 29861 fi 29862 29863 if test "x$path" != "x$new_path"; then 29864 BOOT_JDK="$new_path" 29865 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29866 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29867 fi 29868 29869 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29870 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29871 29872 else 29873 # We're on a unix platform. Hooray! :) 29874 path="$BOOT_JDK" 29875 has_space=`$ECHO "$path" | $GREP " "` 29876 if test "x$has_space" != x; then 29877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29878 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29879 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29880 fi 29881 29882 # Use eval to expand a potential ~ 29883 eval path="$path" 29884 if test ! -f "$path" && test ! -d "$path"; then 29885 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29886 fi 29887 29888 if test -d "$path"; then 29889 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29890 else 29891 dir="`$DIRNAME "$path"`" 29892 base="`$BASENAME "$path"`" 29893 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29894 fi 29895 fi 29896 fi 29897 29898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29899 $as_echo_n "checking for Boot JDK... " >&6; } 29900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29901 $as_echo "$BOOT_JDK" >&6; } 29902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29903 $as_echo_n "checking Boot JDK version... " >&6; } 29904 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29906 $as_echo "$BOOT_JDK_VERSION" >&6; } 29907 fi # end check jdk version 29908 fi # end check javac 29909 fi # end check java 29910 fi # end check boot jdk found 29911 fi 29912 29913 29914 # If we haven't found anything yet, we've truly lost. Give up. 29915 if test "x$BOOT_JDK_FOUND" = xno; then 29916 29917 # Print a helpful message on how to acquire the necessary build dependency. 29918 # openjdk is the help tag: freetype, cups, alsa etc 29919 MISSING_DEPENDENCY=openjdk 29920 29921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29922 cygwin_help $MISSING_DEPENDENCY 29923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29924 msys_help $MISSING_DEPENDENCY 29925 else 29926 PKGHANDLER_COMMAND= 29927 29928 case $PKGHANDLER in 29929 apt-get) 29930 apt_help $MISSING_DEPENDENCY ;; 29931 yum) 29932 yum_help $MISSING_DEPENDENCY ;; 29933 port) 29934 port_help $MISSING_DEPENDENCY ;; 29935 pkgutil) 29936 pkgutil_help $MISSING_DEPENDENCY ;; 29937 pkgadd) 29938 pkgadd_help $MISSING_DEPENDENCY ;; 29939 esac 29940 29941 if test "x$PKGHANDLER_COMMAND" != x; then 29942 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29943 fi 29944 fi 29945 29946 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 29947 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 29948 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 29949 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29950 as_fn_error $? "Cannot continue" "$LINENO" 5 29951 fi 29952 29953 29954 29955 # Setup tools from the Boot JDK. 29956 29957 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29958 29959 # Publish this variable in the help. 29960 29961 29962 if [ -z "${JAVA+x}" ]; then 29963 # The variable is not set by user, try to locate tool using the code snippet 29964 29965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 29966 $as_echo_n "checking for java in Boot JDK... " >&6; } 29967 JAVA=$BOOT_JDK/bin/java 29968 if test ! -x $JAVA; then 29969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29970 $as_echo "not found" >&6; } 29971 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29972 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29973 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 29974 fi 29975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29976 $as_echo "ok" >&6; } 29977 29978 29979 else 29980 # The variable is set, but is it from the command line or the environment? 29981 29982 # Try to remove the string !JAVA! from our list. 29983 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 29984 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29985 # If it failed, the variable was not from the command line. Ignore it, 29986 # but warn the user (except for BASH, which is always set by the calling BASH). 29987 if test "xJAVA" != xBASH; then 29988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 29989 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 29990 fi 29991 # Try to locate tool using the code snippet 29992 29993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 29994 $as_echo_n "checking for java in Boot JDK... " >&6; } 29995 JAVA=$BOOT_JDK/bin/java 29996 if test ! -x $JAVA; then 29997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29998 $as_echo "not found" >&6; } 29999 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30000 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30001 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30002 fi 30003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30004 $as_echo "ok" >&6; } 30005 30006 30007 else 30008 # If it succeeded, then it was overridden by the user. We will use it 30009 # for the tool. 30010 30011 # First remove it from the list of overridden variables, so we can test 30012 # for unknown variables in the end. 30013 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30014 30015 # Check if we try to supply an empty value 30016 if test "x$JAVA" = x; then 30017 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 30018 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 30019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30020 $as_echo_n "checking for JAVA... " >&6; } 30021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30022 $as_echo "disabled" >&6; } 30023 else 30024 # Check if the provided tool contains a complete path. 30025 tool_specified="$JAVA" 30026 tool_basename="${tool_specified##*/}" 30027 if test "x$tool_basename" = "x$tool_specified"; then 30028 # A command without a complete path is provided, search $PATH. 30029 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 30030 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 30031 # Extract the first word of "$tool_basename", so it can be a program name with args. 30032 set dummy $tool_basename; ac_word=$2 30033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30034 $as_echo_n "checking for $ac_word... " >&6; } 30035 if ${ac_cv_path_JAVA+:} false; then : 30036 $as_echo_n "(cached) " >&6 30037 else 30038 case $JAVA in 30039 [\\/]* | ?:[\\/]*) 30040 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 30041 ;; 30042 *) 30043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30044 for as_dir in $PATH 30045 do 30046 IFS=$as_save_IFS 30047 test -z "$as_dir" && as_dir=. 30048 for ac_exec_ext in '' $ac_executable_extensions; do 30049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30050 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 30051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30052 break 2 30053 fi 30054 done 30055 done 30056 IFS=$as_save_IFS 30057 30058 ;; 30059 esac 30060 fi 30061 JAVA=$ac_cv_path_JAVA 30062 if test -n "$JAVA"; then 30063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30064 $as_echo "$JAVA" >&6; } 30065 else 30066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30067 $as_echo "no" >&6; } 30068 fi 30069 30070 30071 if test "x$JAVA" = x; then 30072 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30073 fi 30074 else 30075 # Otherwise we believe it is a complete path. Use it as it is. 30076 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30077 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30079 $as_echo_n "checking for JAVA... " >&6; } 30080 if test ! -x "$tool_specified"; then 30081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30082 $as_echo "not found" >&6; } 30083 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30084 fi 30085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30086 $as_echo "$tool_specified" >&6; } 30087 fi 30088 fi 30089 fi 30090 30091 fi 30092 30093 30094 30095 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30096 30097 # Publish this variable in the help. 30098 30099 30100 if [ -z "${JAVAC+x}" ]; then 30101 # The variable is not set by user, try to locate tool using the code snippet 30102 30103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30104 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30105 JAVAC=$BOOT_JDK/bin/javac 30106 if test ! -x $JAVAC; then 30107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30108 $as_echo "not found" >&6; } 30109 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30110 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30111 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30112 fi 30113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30114 $as_echo "ok" >&6; } 30115 30116 30117 else 30118 # The variable is set, but is it from the command line or the environment? 30119 30120 # Try to remove the string !JAVAC! from our list. 30121 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30122 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30123 # If it failed, the variable was not from the command line. Ignore it, 30124 # but warn the user (except for BASH, which is always set by the calling BASH). 30125 if test "xJAVAC" != xBASH; then 30126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30127 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30128 fi 30129 # Try to locate tool using the code snippet 30130 30131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30132 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30133 JAVAC=$BOOT_JDK/bin/javac 30134 if test ! -x $JAVAC; then 30135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30136 $as_echo "not found" >&6; } 30137 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30138 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30139 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30140 fi 30141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30142 $as_echo "ok" >&6; } 30143 30144 30145 else 30146 # If it succeeded, then it was overridden by the user. We will use it 30147 # for the tool. 30148 30149 # First remove it from the list of overridden variables, so we can test 30150 # for unknown variables in the end. 30151 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30152 30153 # Check if we try to supply an empty value 30154 if test "x$JAVAC" = x; then 30155 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 30156 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 30157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30158 $as_echo_n "checking for JAVAC... " >&6; } 30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30160 $as_echo "disabled" >&6; } 30161 else 30162 # Check if the provided tool contains a complete path. 30163 tool_specified="$JAVAC" 30164 tool_basename="${tool_specified##*/}" 30165 if test "x$tool_basename" = "x$tool_specified"; then 30166 # A command without a complete path is provided, search $PATH. 30167 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 30168 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 30169 # Extract the first word of "$tool_basename", so it can be a program name with args. 30170 set dummy $tool_basename; ac_word=$2 30171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30172 $as_echo_n "checking for $ac_word... " >&6; } 30173 if ${ac_cv_path_JAVAC+:} false; then : 30174 $as_echo_n "(cached) " >&6 30175 else 30176 case $JAVAC in 30177 [\\/]* | ?:[\\/]*) 30178 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 30179 ;; 30180 *) 30181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30182 for as_dir in $PATH 30183 do 30184 IFS=$as_save_IFS 30185 test -z "$as_dir" && as_dir=. 30186 for ac_exec_ext in '' $ac_executable_extensions; do 30187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30188 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 30189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30190 break 2 30191 fi 30192 done 30193 done 30194 IFS=$as_save_IFS 30195 30196 ;; 30197 esac 30198 fi 30199 JAVAC=$ac_cv_path_JAVAC 30200 if test -n "$JAVAC"; then 30201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 30202 $as_echo "$JAVAC" >&6; } 30203 else 30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30205 $as_echo "no" >&6; } 30206 fi 30207 30208 30209 if test "x$JAVAC" = x; then 30210 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30211 fi 30212 else 30213 # Otherwise we believe it is a complete path. Use it as it is. 30214 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 30215 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 30216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30217 $as_echo_n "checking for JAVAC... " >&6; } 30218 if test ! -x "$tool_specified"; then 30219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30220 $as_echo "not found" >&6; } 30221 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 30222 fi 30223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30224 $as_echo "$tool_specified" >&6; } 30225 fi 30226 fi 30227 fi 30228 30229 fi 30230 30231 30232 30233 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30234 30235 # Publish this variable in the help. 30236 30237 30238 if [ -z "${JAVAH+x}" ]; then 30239 # The variable is not set by user, try to locate tool using the code snippet 30240 30241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 30242 $as_echo_n "checking for javah in Boot JDK... " >&6; } 30243 JAVAH=$BOOT_JDK/bin/javah 30244 if test ! -x $JAVAH; then 30245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30246 $as_echo "not found" >&6; } 30247 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30248 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30249 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 30250 fi 30251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30252 $as_echo "ok" >&6; } 30253 30254 30255 else 30256 # The variable is set, but is it from the command line or the environment? 30257 30258 # Try to remove the string !JAVAH! from our list. 30259 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 30260 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30261 # If it failed, the variable was not from the command line. Ignore it, 30262 # but warn the user (except for BASH, which is always set by the calling BASH). 30263 if test "xJAVAH" != xBASH; then 30264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 30265 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 30266 fi 30267 # Try to locate tool using the code snippet 30268 30269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 30270 $as_echo_n "checking for javah in Boot JDK... " >&6; } 30271 JAVAH=$BOOT_JDK/bin/javah 30272 if test ! -x $JAVAH; then 30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30274 $as_echo "not found" >&6; } 30275 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30276 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30277 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 30278 fi 30279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30280 $as_echo "ok" >&6; } 30281 30282 30283 else 30284 # If it succeeded, then it was overridden by the user. We will use it 30285 # for the tool. 30286 30287 # First remove it from the list of overridden variables, so we can test 30288 # for unknown variables in the end. 30289 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30290 30291 # Check if we try to supply an empty value 30292 if test "x$JAVAH" = x; then 30293 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 30294 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 30295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 30296 $as_echo_n "checking for JAVAH... " >&6; } 30297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30298 $as_echo "disabled" >&6; } 30299 else 30300 # Check if the provided tool contains a complete path. 30301 tool_specified="$JAVAH" 30302 tool_basename="${tool_specified##*/}" 30303 if test "x$tool_basename" = "x$tool_specified"; then 30304 # A command without a complete path is provided, search $PATH. 30305 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 30306 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 30307 # Extract the first word of "$tool_basename", so it can be a program name with args. 30308 set dummy $tool_basename; ac_word=$2 30309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30310 $as_echo_n "checking for $ac_word... " >&6; } 30311 if ${ac_cv_path_JAVAH+:} false; then : 30312 $as_echo_n "(cached) " >&6 30313 else 30314 case $JAVAH in 30315 [\\/]* | ?:[\\/]*) 30316 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 30317 ;; 30318 *) 30319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30320 for as_dir in $PATH 30321 do 30322 IFS=$as_save_IFS 30323 test -z "$as_dir" && as_dir=. 30324 for ac_exec_ext in '' $ac_executable_extensions; do 30325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30326 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 30327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30328 break 2 30329 fi 30330 done 30331 done 30332 IFS=$as_save_IFS 30333 30334 ;; 30335 esac 30336 fi 30337 JAVAH=$ac_cv_path_JAVAH 30338 if test -n "$JAVAH"; then 30339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 30340 $as_echo "$JAVAH" >&6; } 30341 else 30342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30343 $as_echo "no" >&6; } 30344 fi 30345 30346 30347 if test "x$JAVAH" = x; then 30348 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30349 fi 30350 else 30351 # Otherwise we believe it is a complete path. Use it as it is. 30352 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 30353 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 30354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 30355 $as_echo_n "checking for JAVAH... " >&6; } 30356 if test ! -x "$tool_specified"; then 30357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30358 $as_echo "not found" >&6; } 30359 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 30360 fi 30361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30362 $as_echo "$tool_specified" >&6; } 30363 fi 30364 fi 30365 fi 30366 30367 fi 30368 30369 30370 30371 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30372 30373 # Publish this variable in the help. 30374 30375 30376 if [ -z "${JAR+x}" ]; then 30377 # The variable is not set by user, try to locate tool using the code snippet 30378 30379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 30380 $as_echo_n "checking for jar in Boot JDK... " >&6; } 30381 JAR=$BOOT_JDK/bin/jar 30382 if test ! -x $JAR; then 30383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30384 $as_echo "not found" >&6; } 30385 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30386 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30387 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 30388 fi 30389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30390 $as_echo "ok" >&6; } 30391 30392 30393 else 30394 # The variable is set, but is it from the command line or the environment? 30395 30396 # Try to remove the string !JAR! from our list. 30397 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 30398 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30399 # If it failed, the variable was not from the command line. Ignore it, 30400 # but warn the user (except for BASH, which is always set by the calling BASH). 30401 if test "xJAR" != xBASH; then 30402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 30403 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 30404 fi 30405 # Try to locate tool using the code snippet 30406 30407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 30408 $as_echo_n "checking for jar in Boot JDK... " >&6; } 30409 JAR=$BOOT_JDK/bin/jar 30410 if test ! -x $JAR; then 30411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30412 $as_echo "not found" >&6; } 30413 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30414 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30415 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 30416 fi 30417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30418 $as_echo "ok" >&6; } 30419 30420 30421 else 30422 # If it succeeded, then it was overridden by the user. We will use it 30423 # for the tool. 30424 30425 # First remove it from the list of overridden variables, so we can test 30426 # for unknown variables in the end. 30427 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30428 30429 # Check if we try to supply an empty value 30430 if test "x$JAR" = x; then 30431 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 30432 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 30433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 30434 $as_echo_n "checking for JAR... " >&6; } 30435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30436 $as_echo "disabled" >&6; } 30437 else 30438 # Check if the provided tool contains a complete path. 30439 tool_specified="$JAR" 30440 tool_basename="${tool_specified##*/}" 30441 if test "x$tool_basename" = "x$tool_specified"; then 30442 # A command without a complete path is provided, search $PATH. 30443 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 30444 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 30445 # Extract the first word of "$tool_basename", so it can be a program name with args. 30446 set dummy $tool_basename; ac_word=$2 30447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30448 $as_echo_n "checking for $ac_word... " >&6; } 30449 if ${ac_cv_path_JAR+:} false; then : 30450 $as_echo_n "(cached) " >&6 30451 else 30452 case $JAR in 30453 [\\/]* | ?:[\\/]*) 30454 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 30455 ;; 30456 *) 30457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30458 for as_dir in $PATH 30459 do 30460 IFS=$as_save_IFS 30461 test -z "$as_dir" && as_dir=. 30462 for ac_exec_ext in '' $ac_executable_extensions; do 30463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30464 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 30465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30466 break 2 30467 fi 30468 done 30469 done 30470 IFS=$as_save_IFS 30471 30472 ;; 30473 esac 30474 fi 30475 JAR=$ac_cv_path_JAR 30476 if test -n "$JAR"; then 30477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 30478 $as_echo "$JAR" >&6; } 30479 else 30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30481 $as_echo "no" >&6; } 30482 fi 30483 30484 30485 if test "x$JAR" = x; then 30486 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30487 fi 30488 else 30489 # Otherwise we believe it is a complete path. Use it as it is. 30490 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 30491 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 30492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 30493 $as_echo_n "checking for JAR... " >&6; } 30494 if test ! -x "$tool_specified"; then 30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30496 $as_echo "not found" >&6; } 30497 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 30498 fi 30499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30500 $as_echo "$tool_specified" >&6; } 30501 fi 30502 fi 30503 fi 30504 30505 fi 30506 30507 30508 30509 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30510 30511 # Publish this variable in the help. 30512 30513 30514 if [ -z "${JARSIGNER+x}" ]; then 30515 # The variable is not set by user, try to locate tool using the code snippet 30516 30517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 30518 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 30519 JARSIGNER=$BOOT_JDK/bin/jarsigner 30520 if test ! -x $JARSIGNER; then 30521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30522 $as_echo "not found" >&6; } 30523 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30524 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30525 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 30526 fi 30527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30528 $as_echo "ok" >&6; } 30529 30530 30531 else 30532 # The variable is set, but is it from the command line or the environment? 30533 30534 # Try to remove the string !JARSIGNER! from our list. 30535 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 30536 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30537 # If it failed, the variable was not from the command line. Ignore it, 30538 # but warn the user (except for BASH, which is always set by the calling BASH). 30539 if test "xJARSIGNER" != xBASH; then 30540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 30541 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 30542 fi 30543 # Try to locate tool using the code snippet 30544 30545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 30546 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 30547 JARSIGNER=$BOOT_JDK/bin/jarsigner 30548 if test ! -x $JARSIGNER; then 30549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30550 $as_echo "not found" >&6; } 30551 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30552 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30553 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 30554 fi 30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30556 $as_echo "ok" >&6; } 30557 30558 30559 else 30560 # If it succeeded, then it was overridden by the user. We will use it 30561 # for the tool. 30562 30563 # First remove it from the list of overridden variables, so we can test 30564 # for unknown variables in the end. 30565 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30566 30567 # Check if we try to supply an empty value 30568 if test "x$JARSIGNER" = x; then 30569 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 30570 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 30571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 30572 $as_echo_n "checking for JARSIGNER... " >&6; } 30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30574 $as_echo "disabled" >&6; } 30575 else 30576 # Check if the provided tool contains a complete path. 30577 tool_specified="$JARSIGNER" 30578 tool_basename="${tool_specified##*/}" 30579 if test "x$tool_basename" = "x$tool_specified"; then 30580 # A command without a complete path is provided, search $PATH. 30581 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 30582 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 30583 # Extract the first word of "$tool_basename", so it can be a program name with args. 30584 set dummy $tool_basename; ac_word=$2 30585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30586 $as_echo_n "checking for $ac_word... " >&6; } 30587 if ${ac_cv_path_JARSIGNER+:} false; then : 30588 $as_echo_n "(cached) " >&6 30589 else 30590 case $JARSIGNER in 30591 [\\/]* | ?:[\\/]*) 30592 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 30593 ;; 30594 *) 30595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30596 for as_dir in $PATH 30597 do 30598 IFS=$as_save_IFS 30599 test -z "$as_dir" && as_dir=. 30600 for ac_exec_ext in '' $ac_executable_extensions; do 30601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30602 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 30603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30604 break 2 30605 fi 30606 done 30607 done 30608 IFS=$as_save_IFS 30609 30610 ;; 30611 esac 30612 fi 30613 JARSIGNER=$ac_cv_path_JARSIGNER 30614 if test -n "$JARSIGNER"; then 30615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 30616 $as_echo "$JARSIGNER" >&6; } 30617 else 30618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30619 $as_echo "no" >&6; } 30620 fi 30621 30622 30623 if test "x$JARSIGNER" = x; then 30624 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30625 fi 30626 else 30627 # Otherwise we believe it is a complete path. Use it as it is. 30628 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 30629 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 30630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 30631 $as_echo_n "checking for JARSIGNER... " >&6; } 30632 if test ! -x "$tool_specified"; then 30633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30634 $as_echo "not found" >&6; } 30635 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 30636 fi 30637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30638 $as_echo "$tool_specified" >&6; } 30639 fi 30640 fi 30641 fi 30642 30643 fi 30644 30645 30646 30647 # Finally, set some other options... 30648 30649 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 30650 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 30651 30652 30653 30654 $ECHO "Check if jvm arg is ok: --patch-module foo=bar" >&5 30655 $ECHO "Command: $JAVA --patch-module foo=bar -version" >&5 30656 OUTPUT=`$JAVA --patch-module foo=bar -version 2>&1` 30657 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 30658 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 30659 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 30660 dummy="$dummy --patch-module foo=bar" 30661 JVM_ARG_OK=true 30662 else 30663 $ECHO "Arg failed:" >&5 30664 $ECHO "$OUTPUT" >&5 30665 JVM_ARG_OK=false 30666 fi 30667 30668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK supports modules" >&5 30669 $as_echo_n "checking if Boot JDK supports modules... " >&6; } 30670 if test "x$JVM_ARG_OK" = "xtrue"; then 30671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30672 $as_echo "yes" >&6; } 30673 BOOT_JDK_MODULAR="true" 30674 else 30675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30676 $as_echo "no" >&6; } 30677 BOOT_JDK_MODULAR="false" 30678 fi 30679 30680 30681 30682 30683 # Check if the boot jdk is 32 or 64 bit 30684 if "$JAVA" -d64 -version > /dev/null 2>&1; then 30685 BOOT_JDK_BITS="64" 30686 else 30687 BOOT_JDK_BITS="32" 30688 fi 30689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 30690 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 30691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 30692 $as_echo "$BOOT_JDK_BITS" >&6; } 30693 30694 30695 30696 30697 # Check whether --with-build-jdk was given. 30698 if test "${with_build_jdk+set}" = set; then : 30699 withval=$with_build_jdk; 30700 fi 30701 30702 30703 CREATE_BUILDJDK=false 30704 EXTERNAL_BUILDJDK=false 30705 BUILD_JDK_FOUND="no" 30706 if test "x$with_build_jdk" != "x"; then 30707 30708 if test "x$BUILD_JDK_FOUND" = xno; then 30709 # Execute the test 30710 30711 if test "x$with_build_jdk" != x; then 30712 BUILD_JDK=$with_build_jdk 30713 BUILD_JDK_FOUND=maybe 30714 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 30715 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 30716 fi 30717 30718 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30719 if test "x$BUILD_JDK_FOUND" = xmaybe; then 30720 # Do we have a bin/java? 30721 if test ! -x "$BUILD_JDK/bin/java"; then 30722 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 30723 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 30724 BUILD_JDK_FOUND=no 30725 elif test ! -x "$BUILD_JDK/bin/jlink"; then 30726 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 30727 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 30728 BUILD_JDK_FOUND=no 30729 elif test ! -x "$BUILD_JDK/bin/jmod"; then 30730 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 30731 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 30732 BUILD_JDK_FOUND=no 30733 elif test ! -x "$BUILD_JDK/bin/javac"; then 30734 # Do we have a bin/javac? 30735 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 30736 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 30737 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 30738 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 30739 BUILD_JDK_FOUND=no 30740 else 30741 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30742 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30743 30744 # Extra M4 quote needed to protect [] in grep expression. 30745 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"'` 30746 if test "x$FOUND_CORRECT_VERSION" = x; then 30747 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 30748 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 30749 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 9)" >&5 30750 $as_echo "$as_me: (Your Build JDK must be version 9)" >&6;} 30751 BUILD_JDK_FOUND=no 30752 else 30753 # We're done! 30754 BUILD_JDK_FOUND=yes 30755 30756 # Only process if variable expands to non-empty 30757 30758 if test "x$BUILD_JDK" != x; then 30759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30760 30761 # Input might be given as Windows format, start by converting to 30762 # unix format. 30763 path="$BUILD_JDK" 30764 new_path=`$CYGPATH -u "$path"` 30765 30766 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30767 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30768 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30769 # "foo.exe" is OK but "foo" is an error. 30770 # 30771 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30772 # It is also a way to make sure we got the proper file name for the real test later on. 30773 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30774 if test "x$test_shortpath" = x; then 30775 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 30776 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 30777 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 30778 fi 30779 30780 # Call helper function which possibly converts this using DOS-style short mode. 30781 # If so, the updated path is stored in $new_path. 30782 30783 input_path="$new_path" 30784 # Check if we need to convert this using DOS-style short mode. If the path 30785 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30786 # take no chances and rewrite it. 30787 # Note: m4 eats our [], so we need to use [ and ] instead. 30788 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30789 if test "x$has_forbidden_chars" != x; then 30790 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30791 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30792 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30793 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30794 # Going to short mode and back again did indeed matter. Since short mode is 30795 # case insensitive, let's make it lowercase to improve readability. 30796 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30797 # Now convert it back to Unix-style (cygpath) 30798 input_path=`$CYGPATH -u "$shortmode_path"` 30799 new_path="$input_path" 30800 fi 30801 fi 30802 30803 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30804 if test "x$test_cygdrive_prefix" = x; then 30805 # As a simple fix, exclude /usr/bin since it's not a real path. 30806 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30807 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30808 # a path prefixed by /cygdrive for fixpath to work. 30809 new_path="$CYGWIN_ROOT_PATH$input_path" 30810 fi 30811 fi 30812 30813 30814 if test "x$path" != "x$new_path"; then 30815 BUILD_JDK="$new_path" 30816 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 30817 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 30818 fi 30819 30820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30821 30822 path="$BUILD_JDK" 30823 has_colon=`$ECHO $path | $GREP ^.:` 30824 new_path="$path" 30825 if test "x$has_colon" = x; then 30826 # Not in mixed or Windows style, start by that. 30827 new_path=`cmd //c echo $path` 30828 fi 30829 30830 30831 input_path="$new_path" 30832 # Check if we need to convert this using DOS-style short mode. If the path 30833 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30834 # take no chances and rewrite it. 30835 # Note: m4 eats our [], so we need to use [ and ] instead. 30836 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30837 if test "x$has_forbidden_chars" != x; then 30838 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30839 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30840 fi 30841 30842 30843 windows_path="$new_path" 30844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30845 unix_path=`$CYGPATH -u "$windows_path"` 30846 new_path="$unix_path" 30847 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30848 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30849 new_path="$unix_path" 30850 fi 30851 30852 if test "x$path" != "x$new_path"; then 30853 BUILD_JDK="$new_path" 30854 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 30855 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 30856 fi 30857 30858 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30859 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30860 30861 else 30862 # We're on a unix platform. Hooray! :) 30863 path="$BUILD_JDK" 30864 has_space=`$ECHO "$path" | $GREP " "` 30865 if test "x$has_space" != x; then 30866 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 30867 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 30868 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30869 fi 30870 30871 # Use eval to expand a potential ~ 30872 eval path="$path" 30873 if test ! -f "$path" && test ! -d "$path"; then 30874 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30875 fi 30876 30877 if test -d "$path"; then 30878 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 30879 else 30880 dir="`$DIRNAME "$path"`" 30881 base="`$BASENAME "$path"`" 30882 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30883 fi 30884 fi 30885 fi 30886 30887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30888 $as_echo_n "checking for Build JDK... " >&6; } 30889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 30890 $as_echo "$BUILD_JDK" >&6; } 30891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 30892 $as_echo_n "checking Build JDK version... " >&6; } 30893 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 30895 $as_echo "$BUILD_JDK_VERSION" >&6; } 30896 fi # end check jdk version 30897 fi # end check java 30898 fi # end check build jdk found 30899 fi 30900 30901 EXTERNAL_BUILDJDK=true 30902 else 30903 if test "x$COMPILE_TYPE" = "xcross"; then 30904 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 30905 BUILD_JDK_FOUND=yes 30906 CREATE_BUILDJDK=true 30907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30908 $as_echo_n "checking for Build JDK... " >&6; } 30909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 30910 $as_echo "yes, will build it for the host platform" >&6; } 30911 else 30912 BUILD_JDK="\$(JDK_OUTPUTDIR)" 30913 BUILD_JDK_FOUND=yes 30914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30915 $as_echo_n "checking for Build JDK... " >&6; } 30916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 30917 $as_echo "yes, will use output dir" >&6; } 30918 fi 30919 fi 30920 30921 JMOD="$BUILD_JDK/bin/jmod" 30922 JLINK="$BUILD_JDK/bin/jlink" 30923 30924 30925 30926 if test "x$BUILD_JDK_FOUND" != "xyes"; then 30927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30928 $as_echo_n "checking for Build JDK... " >&6; } 30929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30930 $as_echo "no" >&6; } 30931 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 30932 fi 30933 30934 30935 30936 30937 30938 30939 ############################################################################### 30940 # 30941 # Configure the sources to use. We can add or override individual directories. 30942 # 30943 ############################################################################### 30944 30945 30946 # Where are the sources. 30947 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 30948 CORBA_TOPDIR="$SRC_ROOT/corba" 30949 JAXP_TOPDIR="$SRC_ROOT/jaxp" 30950 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 30951 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 30952 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 30953 JDK_TOPDIR="$SRC_ROOT/jdk" 30954 30955 30956 30957 30958 30959 30960 30961 30962 30963 # This feature is no longer supported. 30964 30965 30966 30967 # Check whether --with-add-source-root was given. 30968 if test "${with_add_source_root+set}" = set; then : 30969 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 30970 $as_echo "$as_me: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&2;} 30971 fi 30972 30973 30974 30975 30976 # Check whether --with-override-source-root was given. 30977 if test "${with_override_source_root+set}" = set; then : 30978 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 30979 $as_echo "$as_me: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&2;} 30980 fi 30981 30982 30983 30984 30985 # Check whether --with-adds-and-overrides was given. 30986 if test "${with_adds_and_overrides+set}" = set; then : 30987 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 30988 $as_echo "$as_me: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&2;} 30989 fi 30990 30991 30992 30993 30994 # Check whether --with-override-langtools was given. 30995 if test "${with_override_langtools+set}" = set; then : 30996 withval=$with_override_langtools; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&5 30997 $as_echo "$as_me: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&2;} 30998 fi 30999 31000 31001 31002 31003 # Check whether --with-override-corba was given. 31004 if test "${with_override_corba+set}" = set; then : 31005 withval=$with_override_corba; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-corba is deprecated and will be ignored." >&5 31006 $as_echo "$as_me: WARNING: Option --with-override-corba is deprecated and will be ignored." >&2;} 31007 fi 31008 31009 31010 31011 31012 # Check whether --with-override-jaxp was given. 31013 if test "${with_override_jaxp+set}" = set; then : 31014 withval=$with_override_jaxp; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&5 31015 $as_echo "$as_me: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&2;} 31016 fi 31017 31018 31019 31020 31021 # Check whether --with-override-jaxws was given. 31022 if test "${with_override_jaxws+set}" = set; then : 31023 withval=$with_override_jaxws; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&5 31024 $as_echo "$as_me: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&2;} 31025 fi 31026 31027 31028 31029 31030 # Check whether --with-override-hotspot was given. 31031 if test "${with_override_hotspot+set}" = set; then : 31032 withval=$with_override_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&5 31033 $as_echo "$as_me: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&2;} 31034 fi 31035 31036 31037 31038 31039 # Check whether --with-override-nashorn was given. 31040 if test "${with_override_nashorn+set}" = set; then : 31041 withval=$with_override_nashorn; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&5 31042 $as_echo "$as_me: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&2;} 31043 fi 31044 31045 31046 31047 31048 # Check whether --with-override-jdk was given. 31049 if test "${with_override_jdk+set}" = set; then : 31050 withval=$with_override_jdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&5 31051 $as_echo "$as_me: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&2;} 31052 fi 31053 31054 31055 31056 31057 BUILD_OUTPUT="$OUTPUT_ROOT" 31058 31059 31060 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 31061 BUILD_HOTSPOT=true 31062 31063 31064 31065 # Check whether --with-import-hotspot was given. 31066 if test "${with_import_hotspot+set}" = set; then : 31067 withval=$with_import_hotspot; 31068 fi 31069 31070 if test "x$with_import_hotspot" != x; then 31071 CURDIR="$PWD" 31072 cd "$with_import_hotspot" 31073 HOTSPOT_DIST="`pwd`" 31074 cd "$CURDIR" 31075 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 31076 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 31077 fi 31078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 31079 $as_echo_n "checking if hotspot should be imported... " >&6; } 31080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 31081 $as_echo "yes from $HOTSPOT_DIST" >&6; } 31082 BUILD_HOTSPOT=false 31083 fi 31084 31085 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 31086 31087 31088 31089 31090 # Check whether --with-import-modules was given. 31091 if test "${with_import_modules+set}" = set; then : 31092 withval=$with_import_modules; 31093 fi 31094 31095 31096 if test "x$with_import_modules" != x \ 31097 && test "x$with_import_modules" != "xno"; then 31098 if test -d "$with_import_modules"; then 31099 IMPORT_MODULES_TOPDIR="$with_import_modules" 31100 31101 # Only process if variable expands to non-empty 31102 31103 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31105 31106 # Input might be given as Windows format, start by converting to 31107 # unix format. 31108 path="$IMPORT_MODULES_TOPDIR" 31109 new_path=`$CYGPATH -u "$path"` 31110 31111 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31112 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31113 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31114 # "foo.exe" is OK but "foo" is an error. 31115 # 31116 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31117 # It is also a way to make sure we got the proper file name for the real test later on. 31118 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31119 if test "x$test_shortpath" = x; then 31120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31121 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31122 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31123 fi 31124 31125 # Call helper function which possibly converts this using DOS-style short mode. 31126 # If so, the updated path is stored in $new_path. 31127 31128 input_path="$new_path" 31129 # Check if we need to convert this using DOS-style short mode. If the path 31130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31131 # take no chances and rewrite it. 31132 # Note: m4 eats our [], so we need to use [ and ] instead. 31133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31134 if test "x$has_forbidden_chars" != x; then 31135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31136 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31137 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31138 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31139 # Going to short mode and back again did indeed matter. Since short mode is 31140 # case insensitive, let's make it lowercase to improve readability. 31141 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31142 # Now convert it back to Unix-style (cygpath) 31143 input_path=`$CYGPATH -u "$shortmode_path"` 31144 new_path="$input_path" 31145 fi 31146 fi 31147 31148 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31149 if test "x$test_cygdrive_prefix" = x; then 31150 # As a simple fix, exclude /usr/bin since it's not a real path. 31151 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31152 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31153 # a path prefixed by /cygdrive for fixpath to work. 31154 new_path="$CYGWIN_ROOT_PATH$input_path" 31155 fi 31156 fi 31157 31158 31159 if test "x$path" != "x$new_path"; then 31160 IMPORT_MODULES_TOPDIR="$new_path" 31161 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31162 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31163 fi 31164 31165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31166 31167 path="$IMPORT_MODULES_TOPDIR" 31168 has_colon=`$ECHO $path | $GREP ^.:` 31169 new_path="$path" 31170 if test "x$has_colon" = x; then 31171 # Not in mixed or Windows style, start by that. 31172 new_path=`cmd //c echo $path` 31173 fi 31174 31175 31176 input_path="$new_path" 31177 # Check if we need to convert this using DOS-style short mode. If the path 31178 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31179 # take no chances and rewrite it. 31180 # Note: m4 eats our [], so we need to use [ and ] instead. 31181 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31182 if test "x$has_forbidden_chars" != x; then 31183 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31184 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31185 fi 31186 31187 31188 windows_path="$new_path" 31189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31190 unix_path=`$CYGPATH -u "$windows_path"` 31191 new_path="$unix_path" 31192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31193 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31194 new_path="$unix_path" 31195 fi 31196 31197 if test "x$path" != "x$new_path"; then 31198 IMPORT_MODULES_TOPDIR="$new_path" 31199 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31200 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31201 fi 31202 31203 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31204 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31205 31206 else 31207 # We're on a unix platform. Hooray! :) 31208 path="$IMPORT_MODULES_TOPDIR" 31209 has_space=`$ECHO "$path" | $GREP " "` 31210 if test "x$has_space" != x; then 31211 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31212 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31213 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31214 fi 31215 31216 # Use eval to expand a potential ~ 31217 eval path="$path" 31218 if test ! -f "$path" && test ! -d "$path"; then 31219 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 31220 fi 31221 31222 if test -d "$path"; then 31223 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 31224 else 31225 dir="`$DIRNAME "$path"`" 31226 base="`$BASENAME "$path"`" 31227 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 31228 fi 31229 fi 31230 fi 31231 31232 elif test -e "$with_import_modules"; then 31233 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 31234 $RM -rf "$IMPORT_MODULES_TOPDIR" 31235 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 31236 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 31237 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31238 fi 31239 else 31240 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31241 fi 31242 fi 31243 31244 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 31245 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 31246 fi 31247 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 31248 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 31249 fi 31250 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 31251 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 31252 fi 31253 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 31254 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 31255 fi 31256 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 31257 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 31258 fi 31259 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 31260 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 31261 fi 31262 31263 31264 31265 31266 31267 31268 31269 31270 31271 ############################################################################### 31272 # 31273 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 31274 # native code. 31275 # 31276 ############################################################################### 31277 31278 # See if we are doing a complete static build or not 31279 31280 # Check whether --enable-static-build was given. 31281 if test "${enable_static_build+set}" = set; then : 31282 enableval=$enable_static_build; 31283 fi 31284 31285 STATIC_BUILD=false 31286 if test "x$enable_static_build" = "xyes"; then 31287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31288 $as_echo_n "checking if static build is enabled... " >&6; } 31289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31290 $as_echo "yes" >&6; } 31291 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 31292 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 31293 fi 31294 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 31295 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $STATIC_BUILD_CFLAGS" 31296 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $STATIC_BUILD_CFLAGS" 31297 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31298 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31299 STATIC_BUILD=true 31300 elif test "x$enable_static_build" = "xno"; then 31301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31302 $as_echo_n "checking if static build is enabled... " >&6; } 31303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31304 $as_echo "no" >&6; } 31305 elif test "x$enable_static_build" != "x"; then 31306 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 31307 fi 31308 31309 31310 31311 31312 # First determine the toolchain type (compiler family) 31313 31314 31315 # Check whether --with-toolchain-type was given. 31316 if test "${with_toolchain_type+set}" = set; then : 31317 withval=$with_toolchain_type; 31318 fi 31319 31320 31321 # Use indirect variable referencing 31322 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 31323 VALID_TOOLCHAINS=${!toolchain_var_name} 31324 31325 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31326 if test -n "$XCODEBUILD"; then 31327 # On Mac OS X, default toolchain to clang after Xcode 5 31328 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 31329 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 31330 if test $? -ne 0; then 31331 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 31332 fi 31333 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 31334 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 31335 $CUT -f 1 -d .` 31336 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 31337 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 31338 if test $XCODE_MAJOR_VERSION -ge 5; then 31339 DEFAULT_TOOLCHAIN="clang" 31340 else 31341 DEFAULT_TOOLCHAIN="gcc" 31342 fi 31343 else 31344 # If Xcode is not installed, but the command line tools are 31345 # then we can't run xcodebuild. On these systems we should 31346 # default to clang 31347 DEFAULT_TOOLCHAIN="clang" 31348 fi 31349 else 31350 # First toolchain type in the list is the default 31351 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 31352 fi 31353 31354 if test "x$with_toolchain_type" = xlist; then 31355 # List all toolchains 31356 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 31357 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 31358 for toolchain in $VALID_TOOLCHAINS; do 31359 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 31360 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31361 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 31362 done 31363 31364 exit 0 31365 elif test "x$with_toolchain_type" != x; then 31366 # User override; check that it is valid 31367 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 31368 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 31369 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 31370 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 31371 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 31372 as_fn_error $? "Cannot continue." "$LINENO" 5 31373 fi 31374 TOOLCHAIN_TYPE=$with_toolchain_type 31375 else 31376 # No flag given, use default 31377 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 31378 fi 31379 31380 31381 TOOLCHAIN_CC_BINARY_clang="clang" 31382 TOOLCHAIN_CC_BINARY_gcc="gcc" 31383 TOOLCHAIN_CC_BINARY_microsoft="cl" 31384 TOOLCHAIN_CC_BINARY_solstudio="cc" 31385 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 31386 31387 TOOLCHAIN_CXX_BINARY_clang="clang++" 31388 TOOLCHAIN_CXX_BINARY_gcc="g++" 31389 TOOLCHAIN_CXX_BINARY_microsoft="cl" 31390 TOOLCHAIN_CXX_BINARY_solstudio="CC" 31391 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 31392 31393 # Use indirect variable referencing 31394 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 31395 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31396 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 31397 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 31398 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 31399 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 31400 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 31401 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 31402 31403 31404 # Define filename patterns 31405 if test "x$OPENJDK_TARGET_OS" = xwindows; then 31406 LIBRARY_PREFIX= 31407 SHARED_LIBRARY_SUFFIX='.dll' 31408 STATIC_LIBRARY_SUFFIX='.lib' 31409 SHARED_LIBRARY='$1.dll' 31410 STATIC_LIBRARY='$1.lib' 31411 OBJ_SUFFIX='.obj' 31412 EXE_SUFFIX='.exe' 31413 else 31414 LIBRARY_PREFIX=lib 31415 SHARED_LIBRARY_SUFFIX='.so' 31416 STATIC_LIBRARY_SUFFIX='.a' 31417 SHARED_LIBRARY='lib$1.so' 31418 STATIC_LIBRARY='lib$1.a' 31419 OBJ_SUFFIX='.o' 31420 EXE_SUFFIX='' 31421 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31422 # For full static builds, we're overloading the SHARED_LIBRARY 31423 # variables in order to limit the amount of changes required. 31424 # It would be better to remove SHARED and just use LIBRARY and 31425 # LIBRARY_SUFFIX for libraries that can be built either 31426 # shared or static and use STATIC_* for libraries that are 31427 # always built statically. 31428 if test "x$STATIC_BUILD" = xtrue; then 31429 SHARED_LIBRARY='lib$1.a' 31430 SHARED_LIBRARY_SUFFIX='.a' 31431 else 31432 SHARED_LIBRARY='lib$1.dylib' 31433 SHARED_LIBRARY_SUFFIX='.dylib' 31434 fi 31435 fi 31436 fi 31437 31438 31439 31440 31441 31442 31443 31444 31445 31446 31447 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 31448 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 31449 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 31450 else 31451 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 31452 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 31453 fi 31454 31455 31456 # User supplied flags should be used when configure detects compilers 31457 31458 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 31459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 31460 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 31461 fi 31462 31463 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 31464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 31465 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 31466 fi 31467 31468 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 31469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 31470 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 31471 fi 31472 31473 31474 # Check whether --with-extra-cflags was given. 31475 if test "${with_extra_cflags+set}" = set; then : 31476 withval=$with_extra_cflags; 31477 fi 31478 31479 31480 31481 # Check whether --with-extra-cxxflags was given. 31482 if test "${with_extra_cxxflags+set}" = set; then : 31483 withval=$with_extra_cxxflags; 31484 fi 31485 31486 31487 31488 # Check whether --with-extra-ldflags was given. 31489 if test "${with_extra_ldflags+set}" = set; then : 31490 withval=$with_extra_ldflags; 31491 fi 31492 31493 31494 EXTRA_CFLAGS="$with_extra_cflags" 31495 EXTRA_CXXFLAGS="$with_extra_cxxflags" 31496 EXTRA_LDFLAGS="$with_extra_ldflags" 31497 31498 # Hotspot needs these set in their legacy form 31499 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $EXTRA_CFLAGS" 31500 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $EXTRA_CXXFLAGS" 31501 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $EXTRA_LDFLAGS" 31502 31503 31504 31505 31506 31507 31508 31509 31510 31511 # The global CFLAGS and LDLAGS variables are used by configure tests and 31512 # should include the extra parameters 31513 CFLAGS="$EXTRA_CFLAGS" 31514 CXXFLAGS="$EXTRA_CXXFLAGS" 31515 LDFLAGS="$EXTRA_LDFLAGS" 31516 CPPFLAGS="" 31517 31518 # The sysroot cflags are needed for configure to be able to run the compilers 31519 31520 if test "x$SYSROOT" != "x"; then 31521 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 31522 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31523 # Solaris Studio does not have a concept of sysroot. Instead we must 31524 # make sure the default include and lib dirs are appended to each 31525 # compile and link command line. Must also add -I-xbuiltin to enable 31526 # inlining of system functions and intrinsics. 31527 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 31528 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 31529 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 31530 fi 31531 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 31532 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 31533 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 31534 elif test "x$TOOLCHAIN_TYPE" = xclang; then 31535 SYSROOT_CFLAGS="-isysroot $SYSROOT" 31536 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 31537 fi 31538 # Propagate the sysroot args to hotspot 31539 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 31540 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 31541 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 31542 # The global CFLAGS and LDFLAGS variables need these for configure to function 31543 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 31544 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 31545 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 31546 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 31547 fi 31548 31549 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31550 # We also need -iframework<path>/System/Library/Frameworks 31551 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31552 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31553 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 31554 # set this here so it doesn't have to be peppered throughout the forest 31555 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31556 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31557 fi 31558 31559 31560 31561 31562 31563 # Then detect the actual binaries needed 31564 31565 # FIXME: Is this needed? 31566 ac_ext=cpp 31567 ac_cpp='$CXXCPP $CPPFLAGS' 31568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31571 31572 31573 # Store the CFLAGS etc passed to the configure script. 31574 ORG_CFLAGS="$CFLAGS" 31575 ORG_CXXFLAGS="$CXXFLAGS" 31576 31577 # autoconf magic only relies on PATH, so update it if tools dir is specified 31578 OLD_PATH="$PATH" 31579 31580 # On Windows, we need to detect the visual studio installation first. 31581 # This will change the PATH, but we need to keep that new PATH even 31582 # after toolchain detection is done, since the compiler (on x86) uses 31583 # it for DLL resolution in runtime. 31584 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 31585 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 31586 31587 # Store path to cygwin link.exe to help excluding it when searching for 31588 # VS linker. This must be done before changing the PATH when looking for VS. 31589 # Extract the first word of "link", so it can be a program name with args. 31590 set dummy link; ac_word=$2 31591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31592 $as_echo_n "checking for $ac_word... " >&6; } 31593 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 31594 $as_echo_n "(cached) " >&6 31595 else 31596 case $CYGWIN_LINK in 31597 [\\/]* | ?:[\\/]*) 31598 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 31599 ;; 31600 *) 31601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31602 for as_dir in $PATH 31603 do 31604 IFS=$as_save_IFS 31605 test -z "$as_dir" && as_dir=. 31606 for ac_exec_ext in '' $ac_executable_extensions; do 31607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31608 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 31609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31610 break 2 31611 fi 31612 done 31613 done 31614 IFS=$as_save_IFS 31615 31616 ;; 31617 esac 31618 fi 31619 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 31620 if test -n "$CYGWIN_LINK"; then 31621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 31622 $as_echo "$CYGWIN_LINK" >&6; } 31623 else 31624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31625 $as_echo "no" >&6; } 31626 fi 31627 31628 31629 if test "x$CYGWIN_LINK" != x; then 31630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 31631 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 31632 "$CYGWIN_LINK" --version > /dev/null 31633 if test $? -eq 0 ; then 31634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31635 $as_echo "yes" >&6; } 31636 else 31637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31638 $as_echo "no" >&6; } 31639 # This might be the VS linker. Don't exclude it later on. 31640 CYGWIN_LINK="" 31641 fi 31642 fi 31643 31644 # First-hand choice is to locate and run the vsvars bat file. 31645 31646 31647 # Check whether --with-toolchain-version was given. 31648 if test "${with_toolchain_version+set}" = set; then : 31649 withval=$with_toolchain_version; 31650 fi 31651 31652 31653 if test "x$with_toolchain_version" = xlist; then 31654 # List all toolchains 31655 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 31656 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 31657 for version in $VALID_VS_VERSIONS; do 31658 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 31659 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 31660 done 31661 31662 exit 0 31663 elif test "x$DEVKIT_VS_VERSION" != x; then 31664 VS_VERSION=$DEVKIT_VS_VERSION 31665 TOOLCHAIN_VERSION=$VS_VERSION 31666 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 31667 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 31668 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 31669 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 31670 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31671 VS_PATH="$TOOLCHAIN_PATH:$PATH" 31672 31673 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 31674 # can still be exported as INCLUDE for compiler invocations without 31675 # SYSROOT_CFLAGS 31676 OLDIFS="$IFS" 31677 IFS=";" 31678 for i in $DEVKIT_VS_INCLUDE; do 31679 ipath=$i 31680 31681 unix_path="$ipath" 31682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31683 windows_path=`$CYGPATH -m "$unix_path"` 31684 ipath="$windows_path" 31685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31686 windows_path=`cmd //c echo $unix_path` 31687 ipath="$windows_path" 31688 fi 31689 31690 VS_INCLUDE="$VS_INCLUDE;$ipath" 31691 done 31692 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 31693 # as LIB for compiler invocations without SYSROOT_LDFLAGS 31694 for i in $DEVKIT_VS_LIB; do 31695 libpath=$i 31696 31697 unix_path="$libpath" 31698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31699 windows_path=`$CYGPATH -m "$unix_path"` 31700 libpath="$windows_path" 31701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31702 windows_path=`cmd //c echo $unix_path` 31703 libpath="$windows_path" 31704 fi 31705 31706 VS_LIB="$VS_LIB;$libpath" 31707 done 31708 IFS="$OLDIFS" 31709 31710 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 31711 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 31712 31713 elif test "x$with_toolchain_version" != x; then 31714 # User override; check that it is valid 31715 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 31716 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 31717 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 31718 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 31719 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 31720 as_fn_error $? "Cannot continue." "$LINENO" 5 31721 fi 31722 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 31723 else 31724 # No flag given, use default 31725 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 31726 fi 31727 31728 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 31729 31730 VS_VERSION="$VS_VERSION" 31731 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 31732 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 31733 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 31734 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 31735 31736 # When using --with-tools-dir, assume it points to the correct and default 31737 # version of Visual Studio or that --with-toolchain-version was also set. 31738 if test "x$with_tools_dir" != x; then 31739 31740 if test "x$VS_ENV_CMD" = x; then 31741 VS_VERSION="${VS_VERSION}" 31742 VS_BASE="$with_tools_dir/../.." 31743 METHOD="--with-tools-dir" 31744 31745 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31746 VCVARSFILE="vc/bin/vcvars32.bat" 31747 else 31748 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31749 fi 31750 31751 31752 windows_path="$VS_BASE" 31753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31754 unix_path=`$CYGPATH -u "$windows_path"` 31755 VS_BASE="$unix_path" 31756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31757 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31758 VS_BASE="$unix_path" 31759 fi 31760 31761 if test -d "$VS_BASE"; then 31762 if test -f "$VS_BASE/$VCVARSFILE"; then 31763 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31764 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31765 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31766 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31767 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31768 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31769 else 31770 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31771 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31772 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31773 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31774 fi 31775 fi 31776 fi 31777 31778 31779 if test "x$VS_ENV_CMD" = x; then 31780 VS_VERSION="${VS_VERSION}" 31781 VS_BASE="$with_tools_dir/../../.." 31782 METHOD="--with-tools-dir" 31783 31784 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31785 VCVARSFILE="vc/bin/vcvars32.bat" 31786 else 31787 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31788 fi 31789 31790 31791 windows_path="$VS_BASE" 31792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31793 unix_path=`$CYGPATH -u "$windows_path"` 31794 VS_BASE="$unix_path" 31795 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31796 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31797 VS_BASE="$unix_path" 31798 fi 31799 31800 if test -d "$VS_BASE"; then 31801 if test -f "$VS_BASE/$VCVARSFILE"; then 31802 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31803 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31804 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31805 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31806 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31807 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31808 else 31809 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31810 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31811 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31812 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31813 fi 31814 fi 31815 fi 31816 31817 if test "x$VS_ENV_CMD" = x; then 31818 # Having specified an argument which is incorrect will produce an instant failure; 31819 # we should not go on looking 31820 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 31821 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 31822 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 31823 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 31824 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 31825 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 31826 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 31827 fi 31828 fi 31829 31830 VS_ENV_CMD="" 31831 VS_ENV_ARGS="" 31832 31833 if test "x$VS_COMNTOOLS" != x; then 31834 31835 if test "x$VS_ENV_CMD" = x; then 31836 VS_VERSION="${VS_VERSION}" 31837 VS_BASE="$VS_COMNTOOLS/../.." 31838 METHOD="$VS_COMNTOOLS_VAR variable" 31839 31840 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31841 VCVARSFILE="vc/bin/vcvars32.bat" 31842 else 31843 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31844 fi 31845 31846 31847 windows_path="$VS_BASE" 31848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31849 unix_path=`$CYGPATH -u "$windows_path"` 31850 VS_BASE="$unix_path" 31851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31853 VS_BASE="$unix_path" 31854 fi 31855 31856 if test -d "$VS_BASE"; then 31857 if test -f "$VS_BASE/$VCVARSFILE"; then 31858 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31859 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31860 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31861 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31862 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31863 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31864 else 31865 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31866 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31867 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31868 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31869 fi 31870 fi 31871 fi 31872 31873 fi 31874 if test "x$PROGRAMFILES" != x; then 31875 31876 if test "x$VS_ENV_CMD" = x; then 31877 VS_VERSION="${VS_VERSION}" 31878 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 31879 METHOD="well-known name" 31880 31881 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31882 VCVARSFILE="vc/bin/vcvars32.bat" 31883 else 31884 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31885 fi 31886 31887 31888 windows_path="$VS_BASE" 31889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31890 unix_path=`$CYGPATH -u "$windows_path"` 31891 VS_BASE="$unix_path" 31892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31893 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31894 VS_BASE="$unix_path" 31895 fi 31896 31897 if test -d "$VS_BASE"; then 31898 if test -f "$VS_BASE/$VCVARSFILE"; then 31899 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31900 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31901 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31902 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31903 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31904 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31905 else 31906 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31907 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31908 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31909 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31910 fi 31911 fi 31912 fi 31913 31914 fi 31915 # Work around the insanely named ProgramFiles(x86) env variable 31916 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 31917 if test "x$PROGRAMFILES_X86" != x; then 31918 31919 if test "x$VS_ENV_CMD" = x; then 31920 VS_VERSION="${VS_VERSION}" 31921 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 31922 METHOD="well-known name" 31923 31924 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31925 VCVARSFILE="vc/bin/vcvars32.bat" 31926 else 31927 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31928 fi 31929 31930 31931 windows_path="$VS_BASE" 31932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31933 unix_path=`$CYGPATH -u "$windows_path"` 31934 VS_BASE="$unix_path" 31935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31937 VS_BASE="$unix_path" 31938 fi 31939 31940 if test -d "$VS_BASE"; then 31941 if test -f "$VS_BASE/$VCVARSFILE"; then 31942 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31943 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31944 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31945 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31946 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31947 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31948 else 31949 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31950 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31951 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31952 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31953 fi 31954 fi 31955 fi 31956 31957 fi 31958 31959 if test "x$VS_ENV_CMD" = x; then 31960 VS_VERSION="${VS_VERSION}" 31961 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 31962 METHOD="well-known name" 31963 31964 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31965 VCVARSFILE="vc/bin/vcvars32.bat" 31966 else 31967 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31968 fi 31969 31970 31971 windows_path="$VS_BASE" 31972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31973 unix_path=`$CYGPATH -u "$windows_path"` 31974 VS_BASE="$unix_path" 31975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31976 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31977 VS_BASE="$unix_path" 31978 fi 31979 31980 if test -d "$VS_BASE"; then 31981 if test -f "$VS_BASE/$VCVARSFILE"; then 31982 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31983 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31984 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31985 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31986 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31987 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31988 else 31989 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31990 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31991 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31992 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31993 fi 31994 fi 31995 fi 31996 31997 31998 if test "x$VS_ENV_CMD" = x; then 31999 VS_VERSION="${VS_VERSION}" 32000 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 32001 METHOD="well-known name" 32002 32003 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32004 VCVARSFILE="vc/bin/vcvars32.bat" 32005 else 32006 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32007 fi 32008 32009 32010 windows_path="$VS_BASE" 32011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32012 unix_path=`$CYGPATH -u "$windows_path"` 32013 VS_BASE="$unix_path" 32014 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32015 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32016 VS_BASE="$unix_path" 32017 fi 32018 32019 if test -d "$VS_BASE"; then 32020 if test -f "$VS_BASE/$VCVARSFILE"; then 32021 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32022 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32023 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32024 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32025 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32026 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32027 else 32028 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32029 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32030 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32031 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32032 fi 32033 fi 32034 fi 32035 32036 32037 if test "x$SDK_INSTALL_DIR" != x; then 32038 if test "x$ProgramW6432" != x; then 32039 32040 if test "x$VS_ENV_CMD" = x; then 32041 VS_VERSION="${VS_VERSION}" 32042 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 32043 METHOD="well-known name" 32044 32045 windows_path="$WIN_SDK_BASE" 32046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32047 unix_path=`$CYGPATH -u "$windows_path"` 32048 WIN_SDK_BASE="$unix_path" 32049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32050 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32051 WIN_SDK_BASE="$unix_path" 32052 fi 32053 32054 if test -d "$WIN_SDK_BASE"; then 32055 # There have been cases of partial or broken SDK installations. A missing 32056 # lib dir is not going to work. 32057 if test ! -d "$WIN_SDK_BASE/lib"; then 32058 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32059 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32060 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32061 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32062 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32063 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32064 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32065 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32066 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32067 VS_ENV_ARGS="/x86" 32068 else 32069 VS_ENV_ARGS="/x64" 32070 fi 32071 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32072 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32073 # TODO: improve detection for other versions of SDK 32074 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32075 else 32076 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32077 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32078 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32079 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32080 fi 32081 fi 32082 fi 32083 32084 fi 32085 if test "x$PROGRAMW6432" != x; then 32086 32087 if test "x$VS_ENV_CMD" = x; then 32088 VS_VERSION="${VS_VERSION}" 32089 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32090 METHOD="well-known name" 32091 32092 windows_path="$WIN_SDK_BASE" 32093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32094 unix_path=`$CYGPATH -u "$windows_path"` 32095 WIN_SDK_BASE="$unix_path" 32096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32097 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32098 WIN_SDK_BASE="$unix_path" 32099 fi 32100 32101 if test -d "$WIN_SDK_BASE"; then 32102 # There have been cases of partial or broken SDK installations. A missing 32103 # lib dir is not going to work. 32104 if test ! -d "$WIN_SDK_BASE/lib"; then 32105 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32106 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32107 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32108 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32109 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32110 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32111 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32112 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32113 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32114 VS_ENV_ARGS="/x86" 32115 else 32116 VS_ENV_ARGS="/x64" 32117 fi 32118 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32119 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32120 # TODO: improve detection for other versions of SDK 32121 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32122 else 32123 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32124 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32125 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32126 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32127 fi 32128 fi 32129 fi 32130 32131 fi 32132 if test "x$PROGRAMFILES" != x; then 32133 32134 if test "x$VS_ENV_CMD" = x; then 32135 VS_VERSION="${VS_VERSION}" 32136 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32137 METHOD="well-known name" 32138 32139 windows_path="$WIN_SDK_BASE" 32140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32141 unix_path=`$CYGPATH -u "$windows_path"` 32142 WIN_SDK_BASE="$unix_path" 32143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32144 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32145 WIN_SDK_BASE="$unix_path" 32146 fi 32147 32148 if test -d "$WIN_SDK_BASE"; then 32149 # There have been cases of partial or broken SDK installations. A missing 32150 # lib dir is not going to work. 32151 if test ! -d "$WIN_SDK_BASE/lib"; then 32152 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32153 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32154 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32155 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32156 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32157 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32158 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32159 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32160 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32161 VS_ENV_ARGS="/x86" 32162 else 32163 VS_ENV_ARGS="/x64" 32164 fi 32165 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32166 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32167 # TODO: improve detection for other versions of SDK 32168 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32169 else 32170 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32171 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32172 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32173 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32174 fi 32175 fi 32176 fi 32177 32178 fi 32179 32180 if test "x$VS_ENV_CMD" = x; then 32181 VS_VERSION="${VS_VERSION}" 32182 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32183 METHOD="well-known name" 32184 32185 windows_path="$WIN_SDK_BASE" 32186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32187 unix_path=`$CYGPATH -u "$windows_path"` 32188 WIN_SDK_BASE="$unix_path" 32189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32190 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32191 WIN_SDK_BASE="$unix_path" 32192 fi 32193 32194 if test -d "$WIN_SDK_BASE"; then 32195 # There have been cases of partial or broken SDK installations. A missing 32196 # lib dir is not going to work. 32197 if test ! -d "$WIN_SDK_BASE/lib"; then 32198 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32199 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32200 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32201 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32202 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32203 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32204 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32205 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32206 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32207 VS_ENV_ARGS="/x86" 32208 else 32209 VS_ENV_ARGS="/x64" 32210 fi 32211 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32212 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32213 # TODO: improve detection for other versions of SDK 32214 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32215 else 32216 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32217 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32218 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32219 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32220 fi 32221 fi 32222 fi 32223 32224 32225 if test "x$VS_ENV_CMD" = x; then 32226 VS_VERSION="${VS_VERSION}" 32227 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 32228 METHOD="well-known name" 32229 32230 windows_path="$WIN_SDK_BASE" 32231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32232 unix_path=`$CYGPATH -u "$windows_path"` 32233 WIN_SDK_BASE="$unix_path" 32234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32235 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32236 WIN_SDK_BASE="$unix_path" 32237 fi 32238 32239 if test -d "$WIN_SDK_BASE"; then 32240 # There have been cases of partial or broken SDK installations. A missing 32241 # lib dir is not going to work. 32242 if test ! -d "$WIN_SDK_BASE/lib"; then 32243 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32244 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32245 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32246 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32247 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32248 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32249 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32250 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32251 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32252 VS_ENV_ARGS="/x86" 32253 else 32254 VS_ENV_ARGS="/x64" 32255 fi 32256 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32257 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32258 # TODO: improve detection for other versions of SDK 32259 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32260 else 32261 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32262 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32263 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32264 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32265 fi 32266 fi 32267 fi 32268 32269 fi 32270 32271 if test "x$VS_ENV_CMD" != x; then 32272 TOOLCHAIN_VERSION=$VS_VERSION 32273 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32274 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32275 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32276 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32277 # The rest of the variables are already evaled while probing 32278 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 32279 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 32280 break 32281 fi 32282 done 32283 32284 32285 # If we have a devkit, skip all of the below. 32286 if test "x$DEVKIT_VS_VERSION" = x; then 32287 if test "x$VS_ENV_CMD" != x; then 32288 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 32289 32290 # Only process if variable expands to non-empty 32291 32292 if test "x$VS_ENV_CMD" != x; then 32293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32294 32295 # First separate the path from the arguments. This will split at the first 32296 # space. 32297 complete="$VS_ENV_CMD" 32298 path="${complete%% *}" 32299 tmp="$complete EOL" 32300 arguments="${tmp#* }" 32301 32302 # Input might be given as Windows format, start by converting to 32303 # unix format. 32304 new_path=`$CYGPATH -u "$path"` 32305 32306 # Now try to locate executable using which 32307 new_path=`$WHICH "$new_path" 2> /dev/null` 32308 # bat and cmd files are not always considered executable in cygwin causing which 32309 # to not find them 32310 if test "x$new_path" = x \ 32311 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32312 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32313 new_path=`$CYGPATH -u "$path"` 32314 fi 32315 if test "x$new_path" = x; then 32316 # Oops. Which didn't find the executable. 32317 # The splitting of arguments from the executable at a space might have been incorrect, 32318 # since paths with space are more likely in Windows. Give it another try with the whole 32319 # argument. 32320 path="$complete" 32321 arguments="EOL" 32322 new_path=`$CYGPATH -u "$path"` 32323 new_path=`$WHICH "$new_path" 2> /dev/null` 32324 # bat and cmd files are not always considered executable in cygwin causing which 32325 # to not find them 32326 if test "x$new_path" = x \ 32327 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32328 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32329 new_path=`$CYGPATH -u "$path"` 32330 fi 32331 if test "x$new_path" = x; then 32332 # It's still not found. Now this is an unrecoverable error. 32333 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32334 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32335 has_space=`$ECHO "$complete" | $GREP " "` 32336 if test "x$has_space" != x; then 32337 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32338 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32339 fi 32340 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32341 fi 32342 fi 32343 32344 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32345 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32346 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32347 # "foo.exe" is OK but "foo" is an error. 32348 # 32349 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32350 # It is also a way to make sure we got the proper file name for the real test later on. 32351 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32352 if test "x$test_shortpath" = x; then 32353 # Short path failed, file does not exist as specified. 32354 # Try adding .exe or .cmd 32355 if test -f "${new_path}.exe"; then 32356 input_to_shortpath="${new_path}.exe" 32357 elif test -f "${new_path}.cmd"; then 32358 input_to_shortpath="${new_path}.cmd" 32359 else 32360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 32361 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 32362 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32363 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32364 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32365 fi 32366 else 32367 input_to_shortpath="$new_path" 32368 fi 32369 32370 # Call helper function which possibly converts this using DOS-style short mode. 32371 # If so, the updated path is stored in $new_path. 32372 new_path="$input_to_shortpath" 32373 32374 input_path="$input_to_shortpath" 32375 # Check if we need to convert this using DOS-style short mode. If the path 32376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32377 # take no chances and rewrite it. 32378 # Note: m4 eats our [], so we need to use [ and ] instead. 32379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32380 if test "x$has_forbidden_chars" != x; then 32381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32382 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32383 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32384 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32385 # Going to short mode and back again did indeed matter. Since short mode is 32386 # case insensitive, let's make it lowercase to improve readability. 32387 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32388 # Now convert it back to Unix-style (cygpath) 32389 input_path=`$CYGPATH -u "$shortmode_path"` 32390 new_path="$input_path" 32391 fi 32392 fi 32393 32394 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32395 if test "x$test_cygdrive_prefix" = x; then 32396 # As a simple fix, exclude /usr/bin since it's not a real path. 32397 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32398 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32399 # a path prefixed by /cygdrive for fixpath to work. 32400 new_path="$CYGWIN_ROOT_PATH$input_path" 32401 fi 32402 fi 32403 32404 # remove trailing .exe if any 32405 new_path="${new_path/%.exe/}" 32406 32407 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32408 32409 # First separate the path from the arguments. This will split at the first 32410 # space. 32411 complete="$VS_ENV_CMD" 32412 path="${complete%% *}" 32413 tmp="$complete EOL" 32414 arguments="${tmp#* }" 32415 32416 # Input might be given as Windows format, start by converting to 32417 # unix format. 32418 new_path="$path" 32419 32420 windows_path="$new_path" 32421 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32422 unix_path=`$CYGPATH -u "$windows_path"` 32423 new_path="$unix_path" 32424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32425 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32426 new_path="$unix_path" 32427 fi 32428 32429 32430 # Now try to locate executable using which 32431 new_path=`$WHICH "$new_path" 2> /dev/null` 32432 32433 if test "x$new_path" = x; then 32434 # Oops. Which didn't find the executable. 32435 # The splitting of arguments from the executable at a space might have been incorrect, 32436 # since paths with space are more likely in Windows. Give it another try with the whole 32437 # argument. 32438 path="$complete" 32439 arguments="EOL" 32440 new_path="$path" 32441 32442 windows_path="$new_path" 32443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32444 unix_path=`$CYGPATH -u "$windows_path"` 32445 new_path="$unix_path" 32446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32447 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32448 new_path="$unix_path" 32449 fi 32450 32451 32452 new_path=`$WHICH "$new_path" 2> /dev/null` 32453 # bat and cmd files are not always considered executable in MSYS causing which 32454 # to not find them 32455 if test "x$new_path" = x \ 32456 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32457 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32458 new_path="$path" 32459 32460 windows_path="$new_path" 32461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32462 unix_path=`$CYGPATH -u "$windows_path"` 32463 new_path="$unix_path" 32464 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32465 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32466 new_path="$unix_path" 32467 fi 32468 32469 fi 32470 32471 if test "x$new_path" = x; then 32472 # It's still not found. Now this is an unrecoverable error. 32473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32474 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32475 has_space=`$ECHO "$complete" | $GREP " "` 32476 if test "x$has_space" != x; then 32477 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32478 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32479 fi 32480 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32481 fi 32482 fi 32483 32484 # Now new_path has a complete unix path to the binary 32485 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32486 # Keep paths in /bin as-is, but remove trailing .exe if any 32487 new_path="${new_path/%.exe/}" 32488 # Do not save /bin paths to all_fixpath_prefixes! 32489 else 32490 # Not in mixed or Windows style, start by that. 32491 new_path=`cmd //c echo $new_path` 32492 32493 input_path="$new_path" 32494 # Check if we need to convert this using DOS-style short mode. If the path 32495 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32496 # take no chances and rewrite it. 32497 # Note: m4 eats our [], so we need to use [ and ] instead. 32498 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32499 if test "x$has_forbidden_chars" != x; then 32500 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32501 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32502 fi 32503 32504 # Output is in $new_path 32505 32506 windows_path="$new_path" 32507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32508 unix_path=`$CYGPATH -u "$windows_path"` 32509 new_path="$unix_path" 32510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32512 new_path="$unix_path" 32513 fi 32514 32515 # remove trailing .exe if any 32516 new_path="${new_path/%.exe/}" 32517 32518 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32519 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32520 fi 32521 32522 else 32523 # We're on a unix platform. Hooray! :) 32524 # First separate the path from the arguments. This will split at the first 32525 # space. 32526 complete="$VS_ENV_CMD" 32527 path="${complete%% *}" 32528 tmp="$complete EOL" 32529 arguments="${tmp#* }" 32530 32531 # Cannot rely on the command "which" here since it doesn't always work. 32532 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32533 if test -z "$is_absolute_path"; then 32534 # Path to executable is not absolute. Find it. 32535 IFS_save="$IFS" 32536 IFS=: 32537 for p in $PATH; do 32538 if test -f "$p/$path" && test -x "$p/$path"; then 32539 new_path="$p/$path" 32540 break 32541 fi 32542 done 32543 IFS="$IFS_save" 32544 else 32545 # This is an absolute path, we can use it without further modifications. 32546 new_path="$path" 32547 fi 32548 32549 if test "x$new_path" = x; then 32550 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32551 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32552 has_space=`$ECHO "$complete" | $GREP " "` 32553 if test "x$has_space" != x; then 32554 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32555 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32556 fi 32557 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32558 fi 32559 fi 32560 32561 # Now join together the path and the arguments once again 32562 if test "x$arguments" != xEOL; then 32563 new_complete="$new_path ${arguments% *}" 32564 else 32565 new_complete="$new_path" 32566 fi 32567 32568 if test "x$complete" != "x$new_complete"; then 32569 VS_ENV_CMD="$new_complete" 32570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 32571 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 32572 fi 32573 fi 32574 32575 32576 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 32577 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 32578 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 32579 32580 # We need to create a couple of temporary files. 32581 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 32582 $MKDIR -p $VS_ENV_TMP_DIR 32583 32584 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 32585 # Instead create a shell script which will set the relevant variables when run. 32586 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 32587 32588 unix_path="$WINPATH_VS_ENV_CMD" 32589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32590 windows_path=`$CYGPATH -m "$unix_path"` 32591 WINPATH_VS_ENV_CMD="$windows_path" 32592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32593 windows_path=`cmd //c echo $unix_path` 32594 WINPATH_VS_ENV_CMD="$windows_path" 32595 fi 32596 32597 WINPATH_BASH="$BASH" 32598 32599 unix_path="$WINPATH_BASH" 32600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32601 windows_path=`$CYGPATH -m "$unix_path"` 32602 WINPATH_BASH="$windows_path" 32603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32604 windows_path=`cmd //c echo $unix_path` 32605 WINPATH_BASH="$windows_path" 32606 fi 32607 32608 32609 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 32610 # script (executable by bash) that will setup the important variables. 32611 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 32612 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 32613 # This will end up something like: 32614 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 32615 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 32616 # These will end up something like: 32617 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 32618 # The trailing space for everyone except PATH is no typo, but is needed due 32619 # to trailing \ in the Windows paths. These will be stripped later. 32620 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 32621 >> $EXTRACT_VC_ENV_BAT_FILE 32622 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 32623 >> $EXTRACT_VC_ENV_BAT_FILE 32624 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 32625 >> $EXTRACT_VC_ENV_BAT_FILE 32626 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 32627 >> $EXTRACT_VC_ENV_BAT_FILE 32628 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 32629 >> $EXTRACT_VC_ENV_BAT_FILE 32630 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 32631 >> $EXTRACT_VC_ENV_BAT_FILE 32632 32633 # Now execute the newly created bat file. 32634 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 32635 # Change directory so we don't need to mess with Windows paths in redirects. 32636 cd $VS_ENV_TMP_DIR 32637 cmd /c extract-vs-env.bat | $CAT 32638 cd $CURDIR 32639 32640 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 32641 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 32642 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 32643 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 32644 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 32645 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 32646 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 32647 as_fn_error $? "Cannot continue" "$LINENO" 5 32648 fi 32649 32650 # Now set all paths and other env variables. This will allow the rest of 32651 # the configure script to find and run the compiler in the proper way. 32652 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 32653 $as_echo "$as_me: Setting extracted environment variables" >&6;} 32654 . $VS_ENV_TMP_DIR/set-vs-env.sh 32655 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 32656 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 32657 else 32658 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 32659 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 32660 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 32661 fi 32662 fi 32663 32664 # At this point, we should have correct variables in the environment, or we can't continue. 32665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 32666 $as_echo_n "checking for Visual Studio variables... " >&6; } 32667 32668 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 32669 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 32670 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 32671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 32672 $as_echo "present but broken" >&6; } 32673 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 32674 else 32675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 32676 $as_echo "ok" >&6; } 32677 # Remove any trailing "\" ";" and " " from the variables. 32678 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 32679 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 32680 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 32681 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 32682 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 32683 # Remove any paths containing # (typically F#) as that messes up make. This 32684 # is needed if visual studio was installed with F# support. 32685 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 32686 32687 32688 32689 32690 32691 # Convert VS_INCLUDE into SYSROOT_CFLAGS 32692 OLDIFS="$IFS" 32693 IFS=";" 32694 for i in $VS_INCLUDE; do 32695 ipath=$i 32696 # Only process non-empty elements 32697 if test "x$ipath" != x; then 32698 IFS="$OLDIFS" 32699 # Check that directory exists before calling fixup_path 32700 testpath=$ipath 32701 32702 windows_path="$testpath" 32703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32704 unix_path=`$CYGPATH -u "$windows_path"` 32705 testpath="$unix_path" 32706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32708 testpath="$unix_path" 32709 fi 32710 32711 if test -d "$testpath"; then 32712 32713 # Only process if variable expands to non-empty 32714 32715 if test "x$ipath" != x; then 32716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32717 32718 # Input might be given as Windows format, start by converting to 32719 # unix format. 32720 path="$ipath" 32721 new_path=`$CYGPATH -u "$path"` 32722 32723 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32724 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32725 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32726 # "foo.exe" is OK but "foo" is an error. 32727 # 32728 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32729 # It is also a way to make sure we got the proper file name for the real test later on. 32730 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32731 if test "x$test_shortpath" = x; then 32732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32733 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32734 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 32735 fi 32736 32737 # Call helper function which possibly converts this using DOS-style short mode. 32738 # If so, the updated path is stored in $new_path. 32739 32740 input_path="$new_path" 32741 # Check if we need to convert this using DOS-style short mode. If the path 32742 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32743 # take no chances and rewrite it. 32744 # Note: m4 eats our [], so we need to use [ and ] instead. 32745 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32746 if test "x$has_forbidden_chars" != x; then 32747 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32748 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32749 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32750 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32751 # Going to short mode and back again did indeed matter. Since short mode is 32752 # case insensitive, let's make it lowercase to improve readability. 32753 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32754 # Now convert it back to Unix-style (cygpath) 32755 input_path=`$CYGPATH -u "$shortmode_path"` 32756 new_path="$input_path" 32757 fi 32758 fi 32759 32760 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32761 if test "x$test_cygdrive_prefix" = x; then 32762 # As a simple fix, exclude /usr/bin since it's not a real path. 32763 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32764 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32765 # a path prefixed by /cygdrive for fixpath to work. 32766 new_path="$CYGWIN_ROOT_PATH$input_path" 32767 fi 32768 fi 32769 32770 32771 if test "x$path" != "x$new_path"; then 32772 ipath="$new_path" 32773 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32774 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32775 fi 32776 32777 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32778 32779 path="$ipath" 32780 has_colon=`$ECHO $path | $GREP ^.:` 32781 new_path="$path" 32782 if test "x$has_colon" = x; then 32783 # Not in mixed or Windows style, start by that. 32784 new_path=`cmd //c echo $path` 32785 fi 32786 32787 32788 input_path="$new_path" 32789 # Check if we need to convert this using DOS-style short mode. If the path 32790 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32791 # take no chances and rewrite it. 32792 # Note: m4 eats our [], so we need to use [ and ] instead. 32793 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32794 if test "x$has_forbidden_chars" != x; then 32795 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32796 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32797 fi 32798 32799 32800 windows_path="$new_path" 32801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32802 unix_path=`$CYGPATH -u "$windows_path"` 32803 new_path="$unix_path" 32804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32805 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32806 new_path="$unix_path" 32807 fi 32808 32809 if test "x$path" != "x$new_path"; then 32810 ipath="$new_path" 32811 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32812 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32813 fi 32814 32815 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32816 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32817 32818 else 32819 # We're on a unix platform. Hooray! :) 32820 path="$ipath" 32821 has_space=`$ECHO "$path" | $GREP " "` 32822 if test "x$has_space" != x; then 32823 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32824 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32825 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32826 fi 32827 32828 # Use eval to expand a potential ~ 32829 eval path="$path" 32830 if test ! -f "$path" && test ! -d "$path"; then 32831 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 32832 fi 32833 32834 if test -d "$path"; then 32835 ipath="`cd "$path"; $THEPWDCMD -L`" 32836 else 32837 dir="`$DIRNAME "$path"`" 32838 base="`$BASENAME "$path"`" 32839 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 32840 fi 32841 fi 32842 fi 32843 32844 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 32845 fi 32846 IFS=";" 32847 fi 32848 done 32849 # Convert VS_LIB into SYSROOT_LDFLAGS 32850 for i in $VS_LIB; do 32851 libpath=$i 32852 # Only process non-empty elements 32853 if test "x$libpath" != x; then 32854 IFS="$OLDIFS" 32855 # Check that directory exists before calling fixup_path 32856 testpath=$libpath 32857 32858 windows_path="$testpath" 32859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32860 unix_path=`$CYGPATH -u "$windows_path"` 32861 testpath="$unix_path" 32862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32863 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32864 testpath="$unix_path" 32865 fi 32866 32867 if test -d "$testpath"; then 32868 32869 # Only process if variable expands to non-empty 32870 32871 if test "x$libpath" != x; then 32872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32873 32874 # Input might be given as Windows format, start by converting to 32875 # unix format. 32876 path="$libpath" 32877 new_path=`$CYGPATH -u "$path"` 32878 32879 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32880 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32881 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32882 # "foo.exe" is OK but "foo" is an error. 32883 # 32884 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32885 # It is also a way to make sure we got the proper file name for the real test later on. 32886 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32887 if test "x$test_shortpath" = x; then 32888 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 32889 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 32890 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 32891 fi 32892 32893 # Call helper function which possibly converts this using DOS-style short mode. 32894 # If so, the updated path is stored in $new_path. 32895 32896 input_path="$new_path" 32897 # Check if we need to convert this using DOS-style short mode. If the path 32898 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32899 # take no chances and rewrite it. 32900 # Note: m4 eats our [], so we need to use [ and ] instead. 32901 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32902 if test "x$has_forbidden_chars" != x; then 32903 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32904 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32905 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32906 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32907 # Going to short mode and back again did indeed matter. Since short mode is 32908 # case insensitive, let's make it lowercase to improve readability. 32909 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32910 # Now convert it back to Unix-style (cygpath) 32911 input_path=`$CYGPATH -u "$shortmode_path"` 32912 new_path="$input_path" 32913 fi 32914 fi 32915 32916 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32917 if test "x$test_cygdrive_prefix" = x; then 32918 # As a simple fix, exclude /usr/bin since it's not a real path. 32919 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32920 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32921 # a path prefixed by /cygdrive for fixpath to work. 32922 new_path="$CYGWIN_ROOT_PATH$input_path" 32923 fi 32924 fi 32925 32926 32927 if test "x$path" != "x$new_path"; then 32928 libpath="$new_path" 32929 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 32930 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 32931 fi 32932 32933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32934 32935 path="$libpath" 32936 has_colon=`$ECHO $path | $GREP ^.:` 32937 new_path="$path" 32938 if test "x$has_colon" = x; then 32939 # Not in mixed or Windows style, start by that. 32940 new_path=`cmd //c echo $path` 32941 fi 32942 32943 32944 input_path="$new_path" 32945 # Check if we need to convert this using DOS-style short mode. If the path 32946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32947 # take no chances and rewrite it. 32948 # Note: m4 eats our [], so we need to use [ and ] instead. 32949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32950 if test "x$has_forbidden_chars" != x; then 32951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32952 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32953 fi 32954 32955 32956 windows_path="$new_path" 32957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32958 unix_path=`$CYGPATH -u "$windows_path"` 32959 new_path="$unix_path" 32960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32962 new_path="$unix_path" 32963 fi 32964 32965 if test "x$path" != "x$new_path"; then 32966 libpath="$new_path" 32967 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 32968 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 32969 fi 32970 32971 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32972 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32973 32974 else 32975 # We're on a unix platform. Hooray! :) 32976 path="$libpath" 32977 has_space=`$ECHO "$path" | $GREP " "` 32978 if test "x$has_space" != x; then 32979 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 32980 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 32981 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32982 fi 32983 32984 # Use eval to expand a potential ~ 32985 eval path="$path" 32986 if test ! -f "$path" && test ! -d "$path"; then 32987 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 32988 fi 32989 32990 if test -d "$path"; then 32991 libpath="`cd "$path"; $THEPWDCMD -L`" 32992 else 32993 dir="`$DIRNAME "$path"`" 32994 base="`$BASENAME "$path"`" 32995 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 32996 fi 32997 fi 32998 fi 32999 33000 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 33001 fi 33002 IFS=";" 33003 fi 33004 done 33005 IFS="$OLDIFS" 33006 fi 33007 else 33008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33009 $as_echo "not found" >&6; } 33010 33011 if test "x$VS_ENV_CMD" = x; then 33012 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 33013 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 33014 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 33015 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 33016 else 33017 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 33018 $as_echo "$as_me: Running the extraction script failed." >&6;} 33019 fi 33020 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33021 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33022 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33023 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33024 as_fn_error $? "Cannot continue" "$LINENO" 5 33025 fi 33026 33027 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 33028 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 33029 PATH="$VS_PATH" 33030 # The microsoft toolchain also requires INCLUDE and LIB to be set. 33031 export INCLUDE="$VS_INCLUDE" 33032 export LIB="$VS_LIB" 33033 else 33034 if test "x$XCODE_VERSION_OUTPUT" != x; then 33035 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 33036 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 33037 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 33038 else 33039 # Currently we do not define this for other toolchains. This might change as the need arise. 33040 TOOLCHAIN_VERSION= 33041 fi 33042 fi 33043 33044 33045 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 33046 # override all other locations. 33047 if test "x$TOOLCHAIN_PATH" != x; then 33048 PATH=$TOOLCHAIN_PATH:$PATH 33049 fi 33050 33051 33052 # 33053 # Setup the compilers (CC and CXX) 33054 # 33055 33056 COMPILER_NAME=C 33057 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33058 33059 if test "x$CC" != x; then 33060 # User has supplied compiler name already, always let that override. 33061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33062 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33063 if test "x`basename $CC`" = "x$CC"; then 33064 # A command without a complete path is provided, search $PATH. 33065 33066 for ac_prog in $CC 33067 do 33068 # Extract the first word of "$ac_prog", so it can be a program name with args. 33069 set dummy $ac_prog; ac_word=$2 33070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33071 $as_echo_n "checking for $ac_word... " >&6; } 33072 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33073 $as_echo_n "(cached) " >&6 33074 else 33075 case $POTENTIAL_CC in 33076 [\\/]* | ?:[\\/]*) 33077 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33078 ;; 33079 *) 33080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33081 for as_dir in $PATH 33082 do 33083 IFS=$as_save_IFS 33084 test -z "$as_dir" && as_dir=. 33085 for ac_exec_ext in '' $ac_executable_extensions; do 33086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33087 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33089 break 2 33090 fi 33091 done 33092 done 33093 IFS=$as_save_IFS 33094 33095 ;; 33096 esac 33097 fi 33098 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33099 if test -n "$POTENTIAL_CC"; then 33100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33101 $as_echo "$POTENTIAL_CC" >&6; } 33102 else 33103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33104 $as_echo "no" >&6; } 33105 fi 33106 33107 33108 test -n "$POTENTIAL_CC" && break 33109 done 33110 33111 if test "x$POTENTIAL_CC" != x; then 33112 CC=$POTENTIAL_CC 33113 else 33114 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33115 fi 33116 else 33117 # Otherwise it might already be a complete path 33118 if test ! -x "$CC"; then 33119 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33120 fi 33121 fi 33122 else 33123 # No user supplied value. Locate compiler ourselves. 33124 33125 # If we are cross compiling, assume cross compilation tools follows the 33126 # cross compilation standard where they are prefixed with the autoconf 33127 # standard name for the target. For example the binary 33128 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33129 # If we are not cross compiling, then the default compiler name will be 33130 # used. 33131 33132 CC= 33133 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33134 # before checking the rest of the PATH. 33135 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33136 # step, this should not be necessary. 33137 if test -n "$TOOLCHAIN_PATH"; then 33138 PATH_save="$PATH" 33139 PATH="$TOOLCHAIN_PATH" 33140 for ac_prog in $SEARCH_LIST 33141 do 33142 # Extract the first word of "$ac_prog", so it can be a program name with args. 33143 set dummy $ac_prog; ac_word=$2 33144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33145 $as_echo_n "checking for $ac_word... " >&6; } 33146 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33147 $as_echo_n "(cached) " >&6 33148 else 33149 case $TOOLCHAIN_PATH_CC in 33150 [\\/]* | ?:[\\/]*) 33151 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33152 ;; 33153 *) 33154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33155 for as_dir in $PATH 33156 do 33157 IFS=$as_save_IFS 33158 test -z "$as_dir" && as_dir=. 33159 for ac_exec_ext in '' $ac_executable_extensions; do 33160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33161 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33163 break 2 33164 fi 33165 done 33166 done 33167 IFS=$as_save_IFS 33168 33169 ;; 33170 esac 33171 fi 33172 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33173 if test -n "$TOOLCHAIN_PATH_CC"; then 33174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33175 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33176 else 33177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33178 $as_echo "no" >&6; } 33179 fi 33180 33181 33182 test -n "$TOOLCHAIN_PATH_CC" && break 33183 done 33184 33185 CC=$TOOLCHAIN_PATH_CC 33186 PATH="$PATH_save" 33187 fi 33188 33189 # AC_PATH_PROGS can't be run multiple times with the same variable, 33190 # so create a new name for this run. 33191 if test "x$CC" = x; then 33192 for ac_prog in $SEARCH_LIST 33193 do 33194 # Extract the first word of "$ac_prog", so it can be a program name with args. 33195 set dummy $ac_prog; ac_word=$2 33196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33197 $as_echo_n "checking for $ac_word... " >&6; } 33198 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33199 $as_echo_n "(cached) " >&6 33200 else 33201 case $POTENTIAL_CC in 33202 [\\/]* | ?:[\\/]*) 33203 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33204 ;; 33205 *) 33206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33207 for as_dir in $PATH 33208 do 33209 IFS=$as_save_IFS 33210 test -z "$as_dir" && as_dir=. 33211 for ac_exec_ext in '' $ac_executable_extensions; do 33212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33213 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33215 break 2 33216 fi 33217 done 33218 done 33219 IFS=$as_save_IFS 33220 33221 ;; 33222 esac 33223 fi 33224 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33225 if test -n "$POTENTIAL_CC"; then 33226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33227 $as_echo "$POTENTIAL_CC" >&6; } 33228 else 33229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33230 $as_echo "no" >&6; } 33231 fi 33232 33233 33234 test -n "$POTENTIAL_CC" && break 33235 done 33236 33237 CC=$POTENTIAL_CC 33238 fi 33239 33240 if test "x$CC" = x; then 33241 33242 # Print a helpful message on how to acquire the necessary build dependency. 33243 # devkit is the help tag: freetype, cups, alsa etc 33244 MISSING_DEPENDENCY=devkit 33245 33246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33247 cygwin_help $MISSING_DEPENDENCY 33248 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33249 msys_help $MISSING_DEPENDENCY 33250 else 33251 PKGHANDLER_COMMAND= 33252 33253 case $PKGHANDLER in 33254 apt-get) 33255 apt_help $MISSING_DEPENDENCY ;; 33256 yum) 33257 yum_help $MISSING_DEPENDENCY ;; 33258 port) 33259 port_help $MISSING_DEPENDENCY ;; 33260 pkgutil) 33261 pkgutil_help $MISSING_DEPENDENCY ;; 33262 pkgadd) 33263 pkgadd_help $MISSING_DEPENDENCY ;; 33264 esac 33265 33266 if test "x$PKGHANDLER_COMMAND" != x; then 33267 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 33268 fi 33269 fi 33270 33271 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 33272 fi 33273 fi 33274 33275 # Now we have a compiler binary in CC. Make sure it's okay. 33276 33277 # Only process if variable expands to non-empty 33278 33279 if test "x$CC" != x; then 33280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33281 33282 # First separate the path from the arguments. This will split at the first 33283 # space. 33284 complete="$CC" 33285 path="${complete%% *}" 33286 tmp="$complete EOL" 33287 arguments="${tmp#* }" 33288 33289 # Input might be given as Windows format, start by converting to 33290 # unix format. 33291 new_path=`$CYGPATH -u "$path"` 33292 33293 # Now try to locate executable using which 33294 new_path=`$WHICH "$new_path" 2> /dev/null` 33295 # bat and cmd files are not always considered executable in cygwin causing which 33296 # to not find them 33297 if test "x$new_path" = x \ 33298 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33299 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33300 new_path=`$CYGPATH -u "$path"` 33301 fi 33302 if test "x$new_path" = x; then 33303 # Oops. Which didn't find the executable. 33304 # The splitting of arguments from the executable at a space might have been incorrect, 33305 # since paths with space are more likely in Windows. Give it another try with the whole 33306 # argument. 33307 path="$complete" 33308 arguments="EOL" 33309 new_path=`$CYGPATH -u "$path"` 33310 new_path=`$WHICH "$new_path" 2> /dev/null` 33311 # bat and cmd files are not always considered executable in cygwin causing which 33312 # to not find them 33313 if test "x$new_path" = x \ 33314 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33315 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33316 new_path=`$CYGPATH -u "$path"` 33317 fi 33318 if test "x$new_path" = x; then 33319 # It's still not found. Now this is an unrecoverable error. 33320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33321 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33322 has_space=`$ECHO "$complete" | $GREP " "` 33323 if test "x$has_space" != x; then 33324 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33325 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33326 fi 33327 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33328 fi 33329 fi 33330 33331 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33332 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33333 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33334 # "foo.exe" is OK but "foo" is an error. 33335 # 33336 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33337 # It is also a way to make sure we got the proper file name for the real test later on. 33338 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33339 if test "x$test_shortpath" = x; then 33340 # Short path failed, file does not exist as specified. 33341 # Try adding .exe or .cmd 33342 if test -f "${new_path}.exe"; then 33343 input_to_shortpath="${new_path}.exe" 33344 elif test -f "${new_path}.cmd"; then 33345 input_to_shortpath="${new_path}.cmd" 33346 else 33347 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 33348 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 33349 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33350 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33351 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33352 fi 33353 else 33354 input_to_shortpath="$new_path" 33355 fi 33356 33357 # Call helper function which possibly converts this using DOS-style short mode. 33358 # If so, the updated path is stored in $new_path. 33359 new_path="$input_to_shortpath" 33360 33361 input_path="$input_to_shortpath" 33362 # Check if we need to convert this using DOS-style short mode. If the path 33363 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33364 # take no chances and rewrite it. 33365 # Note: m4 eats our [], so we need to use [ and ] instead. 33366 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33367 if test "x$has_forbidden_chars" != x; then 33368 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33369 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33370 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33371 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33372 # Going to short mode and back again did indeed matter. Since short mode is 33373 # case insensitive, let's make it lowercase to improve readability. 33374 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33375 # Now convert it back to Unix-style (cygpath) 33376 input_path=`$CYGPATH -u "$shortmode_path"` 33377 new_path="$input_path" 33378 fi 33379 fi 33380 33381 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33382 if test "x$test_cygdrive_prefix" = x; then 33383 # As a simple fix, exclude /usr/bin since it's not a real path. 33384 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33385 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33386 # a path prefixed by /cygdrive for fixpath to work. 33387 new_path="$CYGWIN_ROOT_PATH$input_path" 33388 fi 33389 fi 33390 33391 # remove trailing .exe if any 33392 new_path="${new_path/%.exe/}" 33393 33394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33395 33396 # First separate the path from the arguments. This will split at the first 33397 # space. 33398 complete="$CC" 33399 path="${complete%% *}" 33400 tmp="$complete EOL" 33401 arguments="${tmp#* }" 33402 33403 # Input might be given as Windows format, start by converting to 33404 # unix format. 33405 new_path="$path" 33406 33407 windows_path="$new_path" 33408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33409 unix_path=`$CYGPATH -u "$windows_path"` 33410 new_path="$unix_path" 33411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33413 new_path="$unix_path" 33414 fi 33415 33416 33417 # Now try to locate executable using which 33418 new_path=`$WHICH "$new_path" 2> /dev/null` 33419 33420 if test "x$new_path" = x; then 33421 # Oops. Which didn't find the executable. 33422 # The splitting of arguments from the executable at a space might have been incorrect, 33423 # since paths with space are more likely in Windows. Give it another try with the whole 33424 # argument. 33425 path="$complete" 33426 arguments="EOL" 33427 new_path="$path" 33428 33429 windows_path="$new_path" 33430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33431 unix_path=`$CYGPATH -u "$windows_path"` 33432 new_path="$unix_path" 33433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33434 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33435 new_path="$unix_path" 33436 fi 33437 33438 33439 new_path=`$WHICH "$new_path" 2> /dev/null` 33440 # bat and cmd files are not always considered executable in MSYS causing which 33441 # to not find them 33442 if test "x$new_path" = x \ 33443 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33444 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33445 new_path="$path" 33446 33447 windows_path="$new_path" 33448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33449 unix_path=`$CYGPATH -u "$windows_path"` 33450 new_path="$unix_path" 33451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33453 new_path="$unix_path" 33454 fi 33455 33456 fi 33457 33458 if test "x$new_path" = x; then 33459 # It's still not found. Now this is an unrecoverable error. 33460 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33461 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33462 has_space=`$ECHO "$complete" | $GREP " "` 33463 if test "x$has_space" != x; then 33464 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33465 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33466 fi 33467 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33468 fi 33469 fi 33470 33471 # Now new_path has a complete unix path to the binary 33472 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33473 # Keep paths in /bin as-is, but remove trailing .exe if any 33474 new_path="${new_path/%.exe/}" 33475 # Do not save /bin paths to all_fixpath_prefixes! 33476 else 33477 # Not in mixed or Windows style, start by that. 33478 new_path=`cmd //c echo $new_path` 33479 33480 input_path="$new_path" 33481 # Check if we need to convert this using DOS-style short mode. If the path 33482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33483 # take no chances and rewrite it. 33484 # Note: m4 eats our [], so we need to use [ and ] instead. 33485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33486 if test "x$has_forbidden_chars" != x; then 33487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33488 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33489 fi 33490 33491 # Output is in $new_path 33492 33493 windows_path="$new_path" 33494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33495 unix_path=`$CYGPATH -u "$windows_path"` 33496 new_path="$unix_path" 33497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33499 new_path="$unix_path" 33500 fi 33501 33502 # remove trailing .exe if any 33503 new_path="${new_path/%.exe/}" 33504 33505 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33506 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33507 fi 33508 33509 else 33510 # We're on a unix platform. Hooray! :) 33511 # First separate the path from the arguments. This will split at the first 33512 # space. 33513 complete="$CC" 33514 path="${complete%% *}" 33515 tmp="$complete EOL" 33516 arguments="${tmp#* }" 33517 33518 # Cannot rely on the command "which" here since it doesn't always work. 33519 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33520 if test -z "$is_absolute_path"; then 33521 # Path to executable is not absolute. Find it. 33522 IFS_save="$IFS" 33523 IFS=: 33524 for p in $PATH; do 33525 if test -f "$p/$path" && test -x "$p/$path"; then 33526 new_path="$p/$path" 33527 break 33528 fi 33529 done 33530 IFS="$IFS_save" 33531 else 33532 # This is an absolute path, we can use it without further modifications. 33533 new_path="$path" 33534 fi 33535 33536 if test "x$new_path" = x; then 33537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33538 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33539 has_space=`$ECHO "$complete" | $GREP " "` 33540 if test "x$has_space" != x; then 33541 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33542 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33543 fi 33544 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33545 fi 33546 fi 33547 33548 # Now join together the path and the arguments once again 33549 if test "x$arguments" != xEOL; then 33550 new_complete="$new_path ${arguments% *}" 33551 else 33552 new_complete="$new_path" 33553 fi 33554 33555 if test "x$complete" != "x$new_complete"; then 33556 CC="$new_complete" 33557 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 33558 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 33559 fi 33560 fi 33561 33562 TEST_COMPILER="$CC" 33563 33564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 33565 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 33566 SYMLINK_ORIGINAL="$TEST_COMPILER" 33567 33568 if test "x$OPENJDK_BUILD_OS" != xwindows; then 33569 # Follow a chain of symbolic links. Use readlink 33570 # where it exists, else fall back to horribly 33571 # complicated shell code. 33572 if test "x$READLINK_TESTED" != yes; then 33573 # On MacOSX there is a readlink tool with a different 33574 # purpose than the GNU readlink tool. Check the found readlink. 33575 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 33576 if test "x$ISGNU" = x; then 33577 # A readlink that we do not know how to use. 33578 # Are there other non-GNU readlinks out there? 33579 READLINK_TESTED=yes 33580 READLINK= 33581 fi 33582 fi 33583 33584 if test "x$READLINK" != x; then 33585 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 33586 else 33587 # Save the current directory for restoring afterwards 33588 STARTDIR=$PWD 33589 COUNTER=0 33590 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 33591 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 33592 cd $sym_link_dir 33593 # Use -P flag to resolve symlinks in directories. 33594 cd `$THEPWDCMD -P` 33595 sym_link_dir=`$THEPWDCMD -P` 33596 # Resolve file symlinks 33597 while test $COUNTER -lt 20; do 33598 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 33599 if test "x$ISLINK" == x; then 33600 # This is not a symbolic link! We are done! 33601 break 33602 fi 33603 # Again resolve directory symlinks since the target of the just found 33604 # link could be in a different directory 33605 cd `$DIRNAME $ISLINK` 33606 sym_link_dir=`$THEPWDCMD -P` 33607 sym_link_file=`$BASENAME $ISLINK` 33608 let COUNTER=COUNTER+1 33609 done 33610 cd $STARTDIR 33611 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 33612 fi 33613 fi 33614 33615 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 33616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 33617 $as_echo "no symlink" >&6; } 33618 else 33619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 33620 $as_echo "$SYMLINK_ORIGINAL" >&6; } 33621 33622 # We can't handle ccache by gcc wrappers, since we need to know if we're 33623 # using ccache. Instead ccache usage must be controlled by a configure option. 33624 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 33625 if test "x$COMPILER_BASENAME" = "xccache"; then 33626 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 33627 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 33628 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 33629 fi 33630 fi 33631 33632 33633 COMPILER=$CC 33634 COMPILER_NAME=$COMPILER_NAME 33635 33636 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 33637 # cc -V output typically looks like 33638 # cc: Sun C 5.12 Linux_i386 2011/11/16 33639 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 33640 # Check that this is likely to be the Solaris Studio cc. 33641 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 33642 if test $? -ne 0; then 33643 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33644 { $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 33645 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33646 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33647 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33648 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33649 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33650 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33651 fi 33652 # Remove usage instructions (if present), and 33653 # collapse compiler output into a single line 33654 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33655 $SED -e 's/ *[Uu]sage:.*//'` 33656 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33657 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 33658 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 33659 # xlc -qversion output typically looks like 33660 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 33661 # Version: 11.01.0000.0015 33662 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 33663 # Check that this is likely to be the IBM XL C compiler. 33664 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 33665 if test $? -ne 0; then 33666 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33667 { $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 33668 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33669 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33670 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33671 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33672 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33673 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33674 fi 33675 # Collapse compiler output into a single line 33676 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33677 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33678 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 33679 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33680 # There is no specific version flag, but all output starts with a version string. 33681 # First line typically looks something like: 33682 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 33683 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 33684 # Check that this is likely to be Microsoft CL.EXE. 33685 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 33686 if test $? -ne 0; then 33687 { $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 33688 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33689 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33690 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33691 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33692 fi 33693 # Collapse compiler output into a single line 33694 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33695 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33696 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 33697 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 33698 # gcc --version output typically looks like 33699 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 33700 # Copyright (C) 2013 Free Software Foundation, Inc. 33701 # This is free software; see the source for copying conditions. There is NO 33702 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 33703 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33704 # Check that this is likely to be GCC. 33705 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 33706 if test $? -ne 0; then 33707 { $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 33708 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33709 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 33710 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 33711 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33712 fi 33713 # Remove Copyright and legalese from version string, and 33714 # collapse into a single line 33715 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33716 $SED -e 's/ *Copyright .*//'` 33717 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33718 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 33719 elif test "x$TOOLCHAIN_TYPE" = xclang; then 33720 # clang --version output typically looks like 33721 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 33722 # clang version 3.3 (tags/RELEASE_33/final) 33723 # or 33724 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 33725 # Target: x86_64-pc-linux-gnu 33726 # Thread model: posix 33727 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33728 # Check that this is likely to be clang 33729 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 33730 if test $? -ne 0; then 33731 { $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 33732 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33733 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33734 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33735 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33736 fi 33737 # Collapse compiler output into a single line 33738 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33739 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33740 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 33741 else 33742 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 33743 fi 33744 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 33745 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 33746 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 33747 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 33748 33749 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 33750 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 33751 33752 33753 # Now that we have resolved CC ourself, let autoconf have its go at it 33754 ac_ext=c 33755 ac_cpp='$CPP $CPPFLAGS' 33756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33758 ac_compiler_gnu=$ac_cv_c_compiler_gnu 33759 if test -n "$ac_tool_prefix"; then 33760 for ac_prog in $CC 33761 do 33762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33763 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33765 $as_echo_n "checking for $ac_word... " >&6; } 33766 if ${ac_cv_prog_CC+:} false; then : 33767 $as_echo_n "(cached) " >&6 33768 else 33769 if test -n "$CC"; then 33770 ac_cv_prog_CC="$CC" # Let the user override the test. 33771 else 33772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33773 for as_dir in $PATH 33774 do 33775 IFS=$as_save_IFS 33776 test -z "$as_dir" && as_dir=. 33777 for ac_exec_ext in '' $ac_executable_extensions; do 33778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 33780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33781 break 2 33782 fi 33783 done 33784 done 33785 IFS=$as_save_IFS 33786 33787 fi 33788 fi 33789 CC=$ac_cv_prog_CC 33790 if test -n "$CC"; then 33791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 33792 $as_echo "$CC" >&6; } 33793 else 33794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33795 $as_echo "no" >&6; } 33796 fi 33797 33798 33799 test -n "$CC" && break 33800 done 33801 fi 33802 if test -z "$CC"; then 33803 ac_ct_CC=$CC 33804 for ac_prog in $CC 33805 do 33806 # Extract the first word of "$ac_prog", so it can be a program name with args. 33807 set dummy $ac_prog; ac_word=$2 33808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33809 $as_echo_n "checking for $ac_word... " >&6; } 33810 if ${ac_cv_prog_ac_ct_CC+:} false; then : 33811 $as_echo_n "(cached) " >&6 33812 else 33813 if test -n "$ac_ct_CC"; then 33814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 33815 else 33816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33817 for as_dir in $PATH 33818 do 33819 IFS=$as_save_IFS 33820 test -z "$as_dir" && as_dir=. 33821 for ac_exec_ext in '' $ac_executable_extensions; do 33822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33823 ac_cv_prog_ac_ct_CC="$ac_prog" 33824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33825 break 2 33826 fi 33827 done 33828 done 33829 IFS=$as_save_IFS 33830 33831 fi 33832 fi 33833 ac_ct_CC=$ac_cv_prog_ac_ct_CC 33834 if test -n "$ac_ct_CC"; then 33835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 33836 $as_echo "$ac_ct_CC" >&6; } 33837 else 33838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33839 $as_echo "no" >&6; } 33840 fi 33841 33842 33843 test -n "$ac_ct_CC" && break 33844 done 33845 33846 if test "x$ac_ct_CC" = x; then 33847 CC="" 33848 else 33849 case $cross_compiling:$ac_tool_warned in 33850 yes:) 33851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33853 ac_tool_warned=yes ;; 33854 esac 33855 CC=$ac_ct_CC 33856 fi 33857 fi 33858 33859 33860 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33862 as_fn_error $? "no acceptable C compiler found in \$PATH 33863 See \`config.log' for more details" "$LINENO" 5; } 33864 33865 # Provide some information about the compiler. 33866 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 33867 set X $ac_compile 33868 ac_compiler=$2 33869 for ac_option in --version -v -V -qversion; do 33870 { { ac_try="$ac_compiler $ac_option >&5" 33871 case "(($ac_try" in 33872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33873 *) ac_try_echo=$ac_try;; 33874 esac 33875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33876 $as_echo "$ac_try_echo"; } >&5 33877 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33878 ac_status=$? 33879 if test -s conftest.err; then 33880 sed '10a\ 33881 ... rest of stderr output deleted ... 33882 10q' conftest.err >conftest.er1 33883 cat conftest.er1 >&5 33884 fi 33885 rm -f conftest.er1 conftest.err 33886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33887 test $ac_status = 0; } 33888 done 33889 33890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33891 /* end confdefs.h. */ 33892 33893 int 33894 main () 33895 { 33896 33897 ; 33898 return 0; 33899 } 33900 _ACEOF 33901 ac_clean_files_save=$ac_clean_files 33902 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 33903 # Try to create an executable without -o first, disregard a.out. 33904 # It will help us diagnose broken compilers, and finding out an intuition 33905 # of exeext. 33906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 33907 $as_echo_n "checking whether the C compiler works... " >&6; } 33908 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 33909 33910 # The possible output files: 33911 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 33912 33913 ac_rmfiles= 33914 for ac_file in $ac_files 33915 do 33916 case $ac_file in 33917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33918 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 33919 esac 33920 done 33921 rm -f $ac_rmfiles 33922 33923 if { { ac_try="$ac_link_default" 33924 case "(($ac_try" in 33925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33926 *) ac_try_echo=$ac_try;; 33927 esac 33928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33929 $as_echo "$ac_try_echo"; } >&5 33930 (eval "$ac_link_default") 2>&5 33931 ac_status=$? 33932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33933 test $ac_status = 0; }; then : 33934 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 33935 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 33936 # in a Makefile. We should not override ac_cv_exeext if it was cached, 33937 # so that the user can short-circuit this test for compilers unknown to 33938 # Autoconf. 33939 for ac_file in $ac_files '' 33940 do 33941 test -f "$ac_file" || continue 33942 case $ac_file in 33943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 33944 ;; 33945 [ab].out ) 33946 # We found the default executable, but exeext='' is most 33947 # certainly right. 33948 break;; 33949 *.* ) 33950 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 33951 then :; else 33952 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33953 fi 33954 # We set ac_cv_exeext here because the later test for it is not 33955 # safe: cross compilers may not add the suffix if given an `-o' 33956 # argument, so we may need to know it at that point already. 33957 # Even if this section looks crufty: it has the advantage of 33958 # actually working. 33959 break;; 33960 * ) 33961 break;; 33962 esac 33963 done 33964 test "$ac_cv_exeext" = no && ac_cv_exeext= 33965 33966 else 33967 ac_file='' 33968 fi 33969 if test -z "$ac_file"; then : 33970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33971 $as_echo "no" >&6; } 33972 $as_echo "$as_me: failed program was:" >&5 33973 sed 's/^/| /' conftest.$ac_ext >&5 33974 33975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33977 as_fn_error 77 "C compiler cannot create executables 33978 See \`config.log' for more details" "$LINENO" 5; } 33979 else 33980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33981 $as_echo "yes" >&6; } 33982 fi 33983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 33984 $as_echo_n "checking for C compiler default output file name... " >&6; } 33985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 33986 $as_echo "$ac_file" >&6; } 33987 ac_exeext=$ac_cv_exeext 33988 33989 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 33990 ac_clean_files=$ac_clean_files_save 33991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 33992 $as_echo_n "checking for suffix of executables... " >&6; } 33993 if { { ac_try="$ac_link" 33994 case "(($ac_try" in 33995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33996 *) ac_try_echo=$ac_try;; 33997 esac 33998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33999 $as_echo "$ac_try_echo"; } >&5 34000 (eval "$ac_link") 2>&5 34001 ac_status=$? 34002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34003 test $ac_status = 0; }; then : 34004 # If both `conftest.exe' and `conftest' are `present' (well, observable) 34005 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34006 # work properly (i.e., refer to `conftest.exe'), while it won't with 34007 # `rm'. 34008 for ac_file in conftest.exe conftest conftest.*; do 34009 test -f "$ac_file" || continue 34010 case $ac_file in 34011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34012 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34013 break;; 34014 * ) break;; 34015 esac 34016 done 34017 else 34018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34020 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 34021 See \`config.log' for more details" "$LINENO" 5; } 34022 fi 34023 rm -f conftest conftest$ac_cv_exeext 34024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34025 $as_echo "$ac_cv_exeext" >&6; } 34026 34027 rm -f conftest.$ac_ext 34028 EXEEXT=$ac_cv_exeext 34029 ac_exeext=$EXEEXT 34030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34031 /* end confdefs.h. */ 34032 #include <stdio.h> 34033 int 34034 main () 34035 { 34036 FILE *f = fopen ("conftest.out", "w"); 34037 return ferror (f) || fclose (f) != 0; 34038 34039 ; 34040 return 0; 34041 } 34042 _ACEOF 34043 ac_clean_files="$ac_clean_files conftest.out" 34044 # Check that the compiler produces executables we can run. If not, either 34045 # the compiler is broken, or we cross compile. 34046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34047 $as_echo_n "checking whether we are cross compiling... " >&6; } 34048 if test "$cross_compiling" != yes; then 34049 { { ac_try="$ac_link" 34050 case "(($ac_try" in 34051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34052 *) ac_try_echo=$ac_try;; 34053 esac 34054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34055 $as_echo "$ac_try_echo"; } >&5 34056 (eval "$ac_link") 2>&5 34057 ac_status=$? 34058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34059 test $ac_status = 0; } 34060 if { ac_try='./conftest$ac_cv_exeext' 34061 { { case "(($ac_try" in 34062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34063 *) ac_try_echo=$ac_try;; 34064 esac 34065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34066 $as_echo "$ac_try_echo"; } >&5 34067 (eval "$ac_try") 2>&5 34068 ac_status=$? 34069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34070 test $ac_status = 0; }; }; then 34071 cross_compiling=no 34072 else 34073 if test "$cross_compiling" = maybe; then 34074 cross_compiling=yes 34075 else 34076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34078 as_fn_error $? "cannot run C compiled programs. 34079 If you meant to cross compile, use \`--host'. 34080 See \`config.log' for more details" "$LINENO" 5; } 34081 fi 34082 fi 34083 fi 34084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34085 $as_echo "$cross_compiling" >&6; } 34086 34087 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34088 ac_clean_files=$ac_clean_files_save 34089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34090 $as_echo_n "checking for suffix of object files... " >&6; } 34091 if ${ac_cv_objext+:} false; then : 34092 $as_echo_n "(cached) " >&6 34093 else 34094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34095 /* end confdefs.h. */ 34096 34097 int 34098 main () 34099 { 34100 34101 ; 34102 return 0; 34103 } 34104 _ACEOF 34105 rm -f conftest.o conftest.obj 34106 if { { ac_try="$ac_compile" 34107 case "(($ac_try" in 34108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34109 *) ac_try_echo=$ac_try;; 34110 esac 34111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34112 $as_echo "$ac_try_echo"; } >&5 34113 (eval "$ac_compile") 2>&5 34114 ac_status=$? 34115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34116 test $ac_status = 0; }; then : 34117 for ac_file in conftest.o conftest.obj conftest.*; do 34118 test -f "$ac_file" || continue; 34119 case $ac_file in 34120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34121 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34122 break;; 34123 esac 34124 done 34125 else 34126 $as_echo "$as_me: failed program was:" >&5 34127 sed 's/^/| /' conftest.$ac_ext >&5 34128 34129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34131 as_fn_error $? "cannot compute suffix of object files: cannot compile 34132 See \`config.log' for more details" "$LINENO" 5; } 34133 fi 34134 rm -f conftest.$ac_cv_objext conftest.$ac_ext 34135 fi 34136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34137 $as_echo "$ac_cv_objext" >&6; } 34138 OBJEXT=$ac_cv_objext 34139 ac_objext=$OBJEXT 34140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 34141 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34142 if ${ac_cv_c_compiler_gnu+:} false; then : 34143 $as_echo_n "(cached) " >&6 34144 else 34145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34146 /* end confdefs.h. */ 34147 34148 int 34149 main () 34150 { 34151 #ifndef __GNUC__ 34152 choke me 34153 #endif 34154 34155 ; 34156 return 0; 34157 } 34158 _ACEOF 34159 if ac_fn_c_try_compile "$LINENO"; then : 34160 ac_compiler_gnu=yes 34161 else 34162 ac_compiler_gnu=no 34163 fi 34164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34165 ac_cv_c_compiler_gnu=$ac_compiler_gnu 34166 34167 fi 34168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 34169 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 34170 if test $ac_compiler_gnu = yes; then 34171 GCC=yes 34172 else 34173 GCC= 34174 fi 34175 ac_test_CFLAGS=${CFLAGS+set} 34176 ac_save_CFLAGS=$CFLAGS 34177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 34178 $as_echo_n "checking whether $CC accepts -g... " >&6; } 34179 if ${ac_cv_prog_cc_g+:} false; then : 34180 $as_echo_n "(cached) " >&6 34181 else 34182 ac_save_c_werror_flag=$ac_c_werror_flag 34183 ac_c_werror_flag=yes 34184 ac_cv_prog_cc_g=no 34185 CFLAGS="-g" 34186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34187 /* end confdefs.h. */ 34188 34189 int 34190 main () 34191 { 34192 34193 ; 34194 return 0; 34195 } 34196 _ACEOF 34197 if ac_fn_c_try_compile "$LINENO"; then : 34198 ac_cv_prog_cc_g=yes 34199 else 34200 CFLAGS="" 34201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34202 /* end confdefs.h. */ 34203 34204 int 34205 main () 34206 { 34207 34208 ; 34209 return 0; 34210 } 34211 _ACEOF 34212 if ac_fn_c_try_compile "$LINENO"; then : 34213 34214 else 34215 ac_c_werror_flag=$ac_save_c_werror_flag 34216 CFLAGS="-g" 34217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34218 /* end confdefs.h. */ 34219 34220 int 34221 main () 34222 { 34223 34224 ; 34225 return 0; 34226 } 34227 _ACEOF 34228 if ac_fn_c_try_compile "$LINENO"; then : 34229 ac_cv_prog_cc_g=yes 34230 fi 34231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34232 fi 34233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34234 fi 34235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34236 ac_c_werror_flag=$ac_save_c_werror_flag 34237 fi 34238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34239 $as_echo "$ac_cv_prog_cc_g" >&6; } 34240 if test "$ac_test_CFLAGS" = set; then 34241 CFLAGS=$ac_save_CFLAGS 34242 elif test $ac_cv_prog_cc_g = yes; then 34243 if test "$GCC" = yes; then 34244 CFLAGS="-g -O2" 34245 else 34246 CFLAGS="-g" 34247 fi 34248 else 34249 if test "$GCC" = yes; then 34250 CFLAGS="-O2" 34251 else 34252 CFLAGS= 34253 fi 34254 fi 34255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 34256 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 34257 if ${ac_cv_prog_cc_c89+:} false; then : 34258 $as_echo_n "(cached) " >&6 34259 else 34260 ac_cv_prog_cc_c89=no 34261 ac_save_CC=$CC 34262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34263 /* end confdefs.h. */ 34264 #include <stdarg.h> 34265 #include <stdio.h> 34266 struct stat; 34267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34268 struct buf { int x; }; 34269 FILE * (*rcsopen) (struct buf *, struct stat *, int); 34270 static char *e (p, i) 34271 char **p; 34272 int i; 34273 { 34274 return p[i]; 34275 } 34276 static char *f (char * (*g) (char **, int), char **p, ...) 34277 { 34278 char *s; 34279 va_list v; 34280 va_start (v,p); 34281 s = g (p, va_arg (v,int)); 34282 va_end (v); 34283 return s; 34284 } 34285 34286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 34287 function prototypes and stuff, but not '\xHH' hex character constants. 34288 These don't provoke an error unfortunately, instead are silently treated 34289 as 'x'. The following induces an error, until -std is added to get 34290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 34291 array size at least. It's necessary to write '\x00'==0 to get something 34292 that's true only with -std. */ 34293 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 34294 34295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 34296 inside strings and character constants. */ 34297 #define FOO(x) 'x' 34298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 34299 34300 int test (int i, double x); 34301 struct s1 {int (*f) (int a);}; 34302 struct s2 {int (*f) (double a);}; 34303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 34304 int argc; 34305 char **argv; 34306 int 34307 main () 34308 { 34309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 34310 ; 34311 return 0; 34312 } 34313 _ACEOF 34314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 34315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 34316 do 34317 CC="$ac_save_CC $ac_arg" 34318 if ac_fn_c_try_compile "$LINENO"; then : 34319 ac_cv_prog_cc_c89=$ac_arg 34320 fi 34321 rm -f core conftest.err conftest.$ac_objext 34322 test "x$ac_cv_prog_cc_c89" != "xno" && break 34323 done 34324 rm -f conftest.$ac_ext 34325 CC=$ac_save_CC 34326 34327 fi 34328 # AC_CACHE_VAL 34329 case "x$ac_cv_prog_cc_c89" in 34330 x) 34331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 34332 $as_echo "none needed" >&6; } ;; 34333 xno) 34334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 34335 $as_echo "unsupported" >&6; } ;; 34336 *) 34337 CC="$CC $ac_cv_prog_cc_c89" 34338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 34339 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 34340 esac 34341 if test "x$ac_cv_prog_cc_c89" != xno; then : 34342 34343 fi 34344 34345 ac_ext=cpp 34346 ac_cpp='$CXXCPP $CPPFLAGS' 34347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34350 34351 34352 34353 COMPILER_NAME=C++ 34354 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 34355 34356 if test "x$CXX" != x; then 34357 # User has supplied compiler name already, always let that override. 34358 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 34359 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 34360 if test "x`basename $CXX`" = "x$CXX"; then 34361 # A command without a complete path is provided, search $PATH. 34362 34363 for ac_prog in $CXX 34364 do 34365 # Extract the first word of "$ac_prog", so it can be a program name with args. 34366 set dummy $ac_prog; ac_word=$2 34367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34368 $as_echo_n "checking for $ac_word... " >&6; } 34369 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 34370 $as_echo_n "(cached) " >&6 34371 else 34372 case $POTENTIAL_CXX in 34373 [\\/]* | ?:[\\/]*) 34374 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 34375 ;; 34376 *) 34377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34378 for as_dir in $PATH 34379 do 34380 IFS=$as_save_IFS 34381 test -z "$as_dir" && as_dir=. 34382 for ac_exec_ext in '' $ac_executable_extensions; do 34383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34384 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34386 break 2 34387 fi 34388 done 34389 done 34390 IFS=$as_save_IFS 34391 34392 ;; 34393 esac 34394 fi 34395 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34396 if test -n "$POTENTIAL_CXX"; then 34397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34398 $as_echo "$POTENTIAL_CXX" >&6; } 34399 else 34400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34401 $as_echo "no" >&6; } 34402 fi 34403 34404 34405 test -n "$POTENTIAL_CXX" && break 34406 done 34407 34408 if test "x$POTENTIAL_CXX" != x; then 34409 CXX=$POTENTIAL_CXX 34410 else 34411 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 34412 fi 34413 else 34414 # Otherwise it might already be a complete path 34415 if test ! -x "$CXX"; then 34416 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 34417 fi 34418 fi 34419 else 34420 # No user supplied value. Locate compiler ourselves. 34421 34422 # If we are cross compiling, assume cross compilation tools follows the 34423 # cross compilation standard where they are prefixed with the autoconf 34424 # standard name for the target. For example the binary 34425 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 34426 # If we are not cross compiling, then the default compiler name will be 34427 # used. 34428 34429 CXX= 34430 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 34431 # before checking the rest of the PATH. 34432 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 34433 # step, this should not be necessary. 34434 if test -n "$TOOLCHAIN_PATH"; then 34435 PATH_save="$PATH" 34436 PATH="$TOOLCHAIN_PATH" 34437 for ac_prog in $SEARCH_LIST 34438 do 34439 # Extract the first word of "$ac_prog", so it can be a program name with args. 34440 set dummy $ac_prog; ac_word=$2 34441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34442 $as_echo_n "checking for $ac_word... " >&6; } 34443 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 34444 $as_echo_n "(cached) " >&6 34445 else 34446 case $TOOLCHAIN_PATH_CXX in 34447 [\\/]* | ?:[\\/]*) 34448 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 34449 ;; 34450 *) 34451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34452 for as_dir in $PATH 34453 do 34454 IFS=$as_save_IFS 34455 test -z "$as_dir" && as_dir=. 34456 for ac_exec_ext in '' $ac_executable_extensions; do 34457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34458 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 34459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34460 break 2 34461 fi 34462 done 34463 done 34464 IFS=$as_save_IFS 34465 34466 ;; 34467 esac 34468 fi 34469 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 34470 if test -n "$TOOLCHAIN_PATH_CXX"; then 34471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 34472 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 34473 else 34474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34475 $as_echo "no" >&6; } 34476 fi 34477 34478 34479 test -n "$TOOLCHAIN_PATH_CXX" && break 34480 done 34481 34482 CXX=$TOOLCHAIN_PATH_CXX 34483 PATH="$PATH_save" 34484 fi 34485 34486 # AC_PATH_PROGS can't be run multiple times with the same variable, 34487 # so create a new name for this run. 34488 if test "x$CXX" = x; then 34489 for ac_prog in $SEARCH_LIST 34490 do 34491 # Extract the first word of "$ac_prog", so it can be a program name with args. 34492 set dummy $ac_prog; ac_word=$2 34493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34494 $as_echo_n "checking for $ac_word... " >&6; } 34495 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 34496 $as_echo_n "(cached) " >&6 34497 else 34498 case $POTENTIAL_CXX in 34499 [\\/]* | ?:[\\/]*) 34500 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 34501 ;; 34502 *) 34503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34504 for as_dir in $PATH 34505 do 34506 IFS=$as_save_IFS 34507 test -z "$as_dir" && as_dir=. 34508 for ac_exec_ext in '' $ac_executable_extensions; do 34509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34510 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 34511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34512 break 2 34513 fi 34514 done 34515 done 34516 IFS=$as_save_IFS 34517 34518 ;; 34519 esac 34520 fi 34521 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34522 if test -n "$POTENTIAL_CXX"; then 34523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34524 $as_echo "$POTENTIAL_CXX" >&6; } 34525 else 34526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34527 $as_echo "no" >&6; } 34528 fi 34529 34530 34531 test -n "$POTENTIAL_CXX" && break 34532 done 34533 34534 CXX=$POTENTIAL_CXX 34535 fi 34536 34537 if test "x$CXX" = x; then 34538 34539 # Print a helpful message on how to acquire the necessary build dependency. 34540 # devkit is the help tag: freetype, cups, alsa etc 34541 MISSING_DEPENDENCY=devkit 34542 34543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34544 cygwin_help $MISSING_DEPENDENCY 34545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34546 msys_help $MISSING_DEPENDENCY 34547 else 34548 PKGHANDLER_COMMAND= 34549 34550 case $PKGHANDLER in 34551 apt-get) 34552 apt_help $MISSING_DEPENDENCY ;; 34553 yum) 34554 yum_help $MISSING_DEPENDENCY ;; 34555 port) 34556 port_help $MISSING_DEPENDENCY ;; 34557 pkgutil) 34558 pkgutil_help $MISSING_DEPENDENCY ;; 34559 pkgadd) 34560 pkgadd_help $MISSING_DEPENDENCY ;; 34561 esac 34562 34563 if test "x$PKGHANDLER_COMMAND" != x; then 34564 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34565 fi 34566 fi 34567 34568 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34569 fi 34570 fi 34571 34572 # Now we have a compiler binary in CXX. Make sure it's okay. 34573 34574 # Only process if variable expands to non-empty 34575 34576 if test "x$CXX" != x; then 34577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34578 34579 # First separate the path from the arguments. This will split at the first 34580 # space. 34581 complete="$CXX" 34582 path="${complete%% *}" 34583 tmp="$complete EOL" 34584 arguments="${tmp#* }" 34585 34586 # Input might be given as Windows format, start by converting to 34587 # unix format. 34588 new_path=`$CYGPATH -u "$path"` 34589 34590 # Now try to locate executable using which 34591 new_path=`$WHICH "$new_path" 2> /dev/null` 34592 # bat and cmd files are not always considered executable in cygwin causing which 34593 # to not find them 34594 if test "x$new_path" = x \ 34595 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34596 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34597 new_path=`$CYGPATH -u "$path"` 34598 fi 34599 if test "x$new_path" = x; then 34600 # Oops. Which didn't find the executable. 34601 # The splitting of arguments from the executable at a space might have been incorrect, 34602 # since paths with space are more likely in Windows. Give it another try with the whole 34603 # argument. 34604 path="$complete" 34605 arguments="EOL" 34606 new_path=`$CYGPATH -u "$path"` 34607 new_path=`$WHICH "$new_path" 2> /dev/null` 34608 # bat and cmd files are not always considered executable in cygwin causing which 34609 # to not find them 34610 if test "x$new_path" = x \ 34611 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34612 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34613 new_path=`$CYGPATH -u "$path"` 34614 fi 34615 if test "x$new_path" = x; then 34616 # It's still not found. Now this is an unrecoverable error. 34617 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34618 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34619 has_space=`$ECHO "$complete" | $GREP " "` 34620 if test "x$has_space" != x; then 34621 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34622 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34623 fi 34624 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34625 fi 34626 fi 34627 34628 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34629 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34630 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34631 # "foo.exe" is OK but "foo" is an error. 34632 # 34633 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34634 # It is also a way to make sure we got the proper file name for the real test later on. 34635 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34636 if test "x$test_shortpath" = x; then 34637 # Short path failed, file does not exist as specified. 34638 # Try adding .exe or .cmd 34639 if test -f "${new_path}.exe"; then 34640 input_to_shortpath="${new_path}.exe" 34641 elif test -f "${new_path}.cmd"; then 34642 input_to_shortpath="${new_path}.cmd" 34643 else 34644 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 34645 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 34646 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34647 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34648 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34649 fi 34650 else 34651 input_to_shortpath="$new_path" 34652 fi 34653 34654 # Call helper function which possibly converts this using DOS-style short mode. 34655 # If so, the updated path is stored in $new_path. 34656 new_path="$input_to_shortpath" 34657 34658 input_path="$input_to_shortpath" 34659 # Check if we need to convert this using DOS-style short mode. If the path 34660 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34661 # take no chances and rewrite it. 34662 # Note: m4 eats our [], so we need to use [ and ] instead. 34663 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34664 if test "x$has_forbidden_chars" != x; then 34665 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34666 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34667 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34668 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34669 # Going to short mode and back again did indeed matter. Since short mode is 34670 # case insensitive, let's make it lowercase to improve readability. 34671 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34672 # Now convert it back to Unix-style (cygpath) 34673 input_path=`$CYGPATH -u "$shortmode_path"` 34674 new_path="$input_path" 34675 fi 34676 fi 34677 34678 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34679 if test "x$test_cygdrive_prefix" = x; then 34680 # As a simple fix, exclude /usr/bin since it's not a real path. 34681 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34682 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34683 # a path prefixed by /cygdrive for fixpath to work. 34684 new_path="$CYGWIN_ROOT_PATH$input_path" 34685 fi 34686 fi 34687 34688 # remove trailing .exe if any 34689 new_path="${new_path/%.exe/}" 34690 34691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34692 34693 # First separate the path from the arguments. This will split at the first 34694 # space. 34695 complete="$CXX" 34696 path="${complete%% *}" 34697 tmp="$complete EOL" 34698 arguments="${tmp#* }" 34699 34700 # Input might be given as Windows format, start by converting to 34701 # unix format. 34702 new_path="$path" 34703 34704 windows_path="$new_path" 34705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34706 unix_path=`$CYGPATH -u "$windows_path"` 34707 new_path="$unix_path" 34708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34709 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34710 new_path="$unix_path" 34711 fi 34712 34713 34714 # Now try to locate executable using which 34715 new_path=`$WHICH "$new_path" 2> /dev/null` 34716 34717 if test "x$new_path" = x; then 34718 # Oops. Which didn't find the executable. 34719 # The splitting of arguments from the executable at a space might have been incorrect, 34720 # since paths with space are more likely in Windows. Give it another try with the whole 34721 # argument. 34722 path="$complete" 34723 arguments="EOL" 34724 new_path="$path" 34725 34726 windows_path="$new_path" 34727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34728 unix_path=`$CYGPATH -u "$windows_path"` 34729 new_path="$unix_path" 34730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34732 new_path="$unix_path" 34733 fi 34734 34735 34736 new_path=`$WHICH "$new_path" 2> /dev/null` 34737 # bat and cmd files are not always considered executable in MSYS causing which 34738 # to not find them 34739 if test "x$new_path" = x \ 34740 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34741 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34742 new_path="$path" 34743 34744 windows_path="$new_path" 34745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34746 unix_path=`$CYGPATH -u "$windows_path"` 34747 new_path="$unix_path" 34748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34749 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34750 new_path="$unix_path" 34751 fi 34752 34753 fi 34754 34755 if test "x$new_path" = x; then 34756 # It's still not found. Now this is an unrecoverable error. 34757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34758 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34759 has_space=`$ECHO "$complete" | $GREP " "` 34760 if test "x$has_space" != x; then 34761 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34762 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34763 fi 34764 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34765 fi 34766 fi 34767 34768 # Now new_path has a complete unix path to the binary 34769 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34770 # Keep paths in /bin as-is, but remove trailing .exe if any 34771 new_path="${new_path/%.exe/}" 34772 # Do not save /bin paths to all_fixpath_prefixes! 34773 else 34774 # Not in mixed or Windows style, start by that. 34775 new_path=`cmd //c echo $new_path` 34776 34777 input_path="$new_path" 34778 # Check if we need to convert this using DOS-style short mode. If the path 34779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34780 # take no chances and rewrite it. 34781 # Note: m4 eats our [], so we need to use [ and ] instead. 34782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34783 if test "x$has_forbidden_chars" != x; then 34784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34785 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34786 fi 34787 34788 # Output is in $new_path 34789 34790 windows_path="$new_path" 34791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34792 unix_path=`$CYGPATH -u "$windows_path"` 34793 new_path="$unix_path" 34794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34795 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34796 new_path="$unix_path" 34797 fi 34798 34799 # remove trailing .exe if any 34800 new_path="${new_path/%.exe/}" 34801 34802 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34803 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34804 fi 34805 34806 else 34807 # We're on a unix platform. Hooray! :) 34808 # First separate the path from the arguments. This will split at the first 34809 # space. 34810 complete="$CXX" 34811 path="${complete%% *}" 34812 tmp="$complete EOL" 34813 arguments="${tmp#* }" 34814 34815 # Cannot rely on the command "which" here since it doesn't always work. 34816 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34817 if test -z "$is_absolute_path"; then 34818 # Path to executable is not absolute. Find it. 34819 IFS_save="$IFS" 34820 IFS=: 34821 for p in $PATH; do 34822 if test -f "$p/$path" && test -x "$p/$path"; then 34823 new_path="$p/$path" 34824 break 34825 fi 34826 done 34827 IFS="$IFS_save" 34828 else 34829 # This is an absolute path, we can use it without further modifications. 34830 new_path="$path" 34831 fi 34832 34833 if test "x$new_path" = x; then 34834 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34835 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34836 has_space=`$ECHO "$complete" | $GREP " "` 34837 if test "x$has_space" != x; then 34838 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34839 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34840 fi 34841 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34842 fi 34843 fi 34844 34845 # Now join together the path and the arguments once again 34846 if test "x$arguments" != xEOL; then 34847 new_complete="$new_path ${arguments% *}" 34848 else 34849 new_complete="$new_path" 34850 fi 34851 34852 if test "x$complete" != "x$new_complete"; then 34853 CXX="$new_complete" 34854 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 34855 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 34856 fi 34857 fi 34858 34859 TEST_COMPILER="$CXX" 34860 34861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 34862 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 34863 SYMLINK_ORIGINAL="$TEST_COMPILER" 34864 34865 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34866 # Follow a chain of symbolic links. Use readlink 34867 # where it exists, else fall back to horribly 34868 # complicated shell code. 34869 if test "x$READLINK_TESTED" != yes; then 34870 # On MacOSX there is a readlink tool with a different 34871 # purpose than the GNU readlink tool. Check the found readlink. 34872 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34873 if test "x$ISGNU" = x; then 34874 # A readlink that we do not know how to use. 34875 # Are there other non-GNU readlinks out there? 34876 READLINK_TESTED=yes 34877 READLINK= 34878 fi 34879 fi 34880 34881 if test "x$READLINK" != x; then 34882 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34883 else 34884 # Save the current directory for restoring afterwards 34885 STARTDIR=$PWD 34886 COUNTER=0 34887 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34888 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34889 cd $sym_link_dir 34890 # Use -P flag to resolve symlinks in directories. 34891 cd `$THEPWDCMD -P` 34892 sym_link_dir=`$THEPWDCMD -P` 34893 # Resolve file symlinks 34894 while test $COUNTER -lt 20; do 34895 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34896 if test "x$ISLINK" == x; then 34897 # This is not a symbolic link! We are done! 34898 break 34899 fi 34900 # Again resolve directory symlinks since the target of the just found 34901 # link could be in a different directory 34902 cd `$DIRNAME $ISLINK` 34903 sym_link_dir=`$THEPWDCMD -P` 34904 sym_link_file=`$BASENAME $ISLINK` 34905 let COUNTER=COUNTER+1 34906 done 34907 cd $STARTDIR 34908 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34909 fi 34910 fi 34911 34912 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34914 $as_echo "no symlink" >&6; } 34915 else 34916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34917 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34918 34919 # We can't handle ccache by gcc wrappers, since we need to know if we're 34920 # using ccache. Instead ccache usage must be controlled by a configure option. 34921 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34922 if test "x$COMPILER_BASENAME" = "xccache"; then 34923 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34924 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34925 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34926 fi 34927 fi 34928 34929 34930 COMPILER=$CXX 34931 COMPILER_NAME=$COMPILER_NAME 34932 34933 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34934 # cc -V output typically looks like 34935 # cc: Sun C 5.12 Linux_i386 2011/11/16 34936 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34937 # Check that this is likely to be the Solaris Studio cc. 34938 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 34939 if test $? -ne 0; then 34940 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34941 { $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 34942 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34943 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34944 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34945 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34946 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34947 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34948 fi 34949 # Remove usage instructions (if present), and 34950 # collapse compiler output into a single line 34951 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34952 $SED -e 's/ *[Uu]sage:.*//'` 34953 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34954 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34955 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34956 # xlc -qversion output typically looks like 34957 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34958 # Version: 11.01.0000.0015 34959 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34960 # Check that this is likely to be the IBM XL C compiler. 34961 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34962 if test $? -ne 0; then 34963 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34964 { $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 34965 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34966 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34967 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34968 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34969 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34970 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34971 fi 34972 # Collapse compiler output into a single line 34973 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34974 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34975 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34976 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34977 # There is no specific version flag, but all output starts with a version string. 34978 # First line typically looks something like: 34979 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34980 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34981 # Check that this is likely to be Microsoft CL.EXE. 34982 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34983 if test $? -ne 0; then 34984 { $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 34985 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34986 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34987 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34988 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34989 fi 34990 # Collapse compiler output into a single line 34991 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34992 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34993 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34994 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34995 # gcc --version output typically looks like 34996 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34997 # Copyright (C) 2013 Free Software Foundation, Inc. 34998 # This is free software; see the source for copying conditions. There is NO 34999 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35000 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35001 # Check that this is likely to be GCC. 35002 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 35003 if test $? -ne 0; then 35004 { $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 35005 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35006 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 35007 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 35008 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35009 fi 35010 # Remove Copyright and legalese from version string, and 35011 # collapse into a single line 35012 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35013 $SED -e 's/ *Copyright .*//'` 35014 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35015 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 35016 elif test "x$TOOLCHAIN_TYPE" = xclang; then 35017 # clang --version output typically looks like 35018 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 35019 # clang version 3.3 (tags/RELEASE_33/final) 35020 # or 35021 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 35022 # Target: x86_64-pc-linux-gnu 35023 # Thread model: posix 35024 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35025 # Check that this is likely to be clang 35026 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 35027 if test $? -ne 0; then 35028 { $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 35029 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35030 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35031 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35032 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35033 fi 35034 # Collapse compiler output into a single line 35035 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35036 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35037 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 35038 else 35039 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 35040 fi 35041 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 35042 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 35043 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 35044 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 35045 35046 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 35047 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 35048 35049 35050 # Now that we have resolved CXX ourself, let autoconf have its go at it 35051 ac_ext=cpp 35052 ac_cpp='$CXXCPP $CPPFLAGS' 35053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35056 if test -z "$CXX"; then 35057 if test -n "$CCC"; then 35058 CXX=$CCC 35059 else 35060 if test -n "$ac_tool_prefix"; then 35061 for ac_prog in $CXX 35062 do 35063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35066 $as_echo_n "checking for $ac_word... " >&6; } 35067 if ${ac_cv_prog_CXX+:} false; then : 35068 $as_echo_n "(cached) " >&6 35069 else 35070 if test -n "$CXX"; then 35071 ac_cv_prog_CXX="$CXX" # Let the user override the test. 35072 else 35073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35074 for as_dir in $PATH 35075 do 35076 IFS=$as_save_IFS 35077 test -z "$as_dir" && as_dir=. 35078 for ac_exec_ext in '' $ac_executable_extensions; do 35079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35080 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 35081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35082 break 2 35083 fi 35084 done 35085 done 35086 IFS=$as_save_IFS 35087 35088 fi 35089 fi 35090 CXX=$ac_cv_prog_CXX 35091 if test -n "$CXX"; then 35092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 35093 $as_echo "$CXX" >&6; } 35094 else 35095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35096 $as_echo "no" >&6; } 35097 fi 35098 35099 35100 test -n "$CXX" && break 35101 done 35102 fi 35103 if test -z "$CXX"; then 35104 ac_ct_CXX=$CXX 35105 for ac_prog in $CXX 35106 do 35107 # Extract the first word of "$ac_prog", so it can be a program name with args. 35108 set dummy $ac_prog; ac_word=$2 35109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35110 $as_echo_n "checking for $ac_word... " >&6; } 35111 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 35112 $as_echo_n "(cached) " >&6 35113 else 35114 if test -n "$ac_ct_CXX"; then 35115 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 35116 else 35117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35118 for as_dir in $PATH 35119 do 35120 IFS=$as_save_IFS 35121 test -z "$as_dir" && as_dir=. 35122 for ac_exec_ext in '' $ac_executable_extensions; do 35123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35124 ac_cv_prog_ac_ct_CXX="$ac_prog" 35125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35126 break 2 35127 fi 35128 done 35129 done 35130 IFS=$as_save_IFS 35131 35132 fi 35133 fi 35134 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 35135 if test -n "$ac_ct_CXX"; then 35136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 35137 $as_echo "$ac_ct_CXX" >&6; } 35138 else 35139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35140 $as_echo "no" >&6; } 35141 fi 35142 35143 35144 test -n "$ac_ct_CXX" && break 35145 done 35146 35147 if test "x$ac_ct_CXX" = x; then 35148 CXX="g++" 35149 else 35150 case $cross_compiling:$ac_tool_warned in 35151 yes:) 35152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35154 ac_tool_warned=yes ;; 35155 esac 35156 CXX=$ac_ct_CXX 35157 fi 35158 fi 35159 35160 fi 35161 fi 35162 # Provide some information about the compiler. 35163 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 35164 set X $ac_compile 35165 ac_compiler=$2 35166 for ac_option in --version -v -V -qversion; do 35167 { { ac_try="$ac_compiler $ac_option >&5" 35168 case "(($ac_try" in 35169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35170 *) ac_try_echo=$ac_try;; 35171 esac 35172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35173 $as_echo "$ac_try_echo"; } >&5 35174 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 35175 ac_status=$? 35176 if test -s conftest.err; then 35177 sed '10a\ 35178 ... rest of stderr output deleted ... 35179 10q' conftest.err >conftest.er1 35180 cat conftest.er1 >&5 35181 fi 35182 rm -f conftest.er1 conftest.err 35183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35184 test $ac_status = 0; } 35185 done 35186 35187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 35188 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 35189 if ${ac_cv_cxx_compiler_gnu+:} false; then : 35190 $as_echo_n "(cached) " >&6 35191 else 35192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35193 /* end confdefs.h. */ 35194 35195 int 35196 main () 35197 { 35198 #ifndef __GNUC__ 35199 choke me 35200 #endif 35201 35202 ; 35203 return 0; 35204 } 35205 _ACEOF 35206 if ac_fn_cxx_try_compile "$LINENO"; then : 35207 ac_compiler_gnu=yes 35208 else 35209 ac_compiler_gnu=no 35210 fi 35211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35212 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 35213 35214 fi 35215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 35216 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 35217 if test $ac_compiler_gnu = yes; then 35218 GXX=yes 35219 else 35220 GXX= 35221 fi 35222 ac_test_CXXFLAGS=${CXXFLAGS+set} 35223 ac_save_CXXFLAGS=$CXXFLAGS 35224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 35225 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 35226 if ${ac_cv_prog_cxx_g+:} false; then : 35227 $as_echo_n "(cached) " >&6 35228 else 35229 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 35230 ac_cxx_werror_flag=yes 35231 ac_cv_prog_cxx_g=no 35232 CXXFLAGS="-g" 35233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35234 /* end confdefs.h. */ 35235 35236 int 35237 main () 35238 { 35239 35240 ; 35241 return 0; 35242 } 35243 _ACEOF 35244 if ac_fn_cxx_try_compile "$LINENO"; then : 35245 ac_cv_prog_cxx_g=yes 35246 else 35247 CXXFLAGS="" 35248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35249 /* end confdefs.h. */ 35250 35251 int 35252 main () 35253 { 35254 35255 ; 35256 return 0; 35257 } 35258 _ACEOF 35259 if ac_fn_cxx_try_compile "$LINENO"; then : 35260 35261 else 35262 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 35263 CXXFLAGS="-g" 35264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35265 /* end confdefs.h. */ 35266 35267 int 35268 main () 35269 { 35270 35271 ; 35272 return 0; 35273 } 35274 _ACEOF 35275 if ac_fn_cxx_try_compile "$LINENO"; then : 35276 ac_cv_prog_cxx_g=yes 35277 fi 35278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35279 fi 35280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35281 fi 35282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35283 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 35284 fi 35285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 35286 $as_echo "$ac_cv_prog_cxx_g" >&6; } 35287 if test "$ac_test_CXXFLAGS" = set; then 35288 CXXFLAGS=$ac_save_CXXFLAGS 35289 elif test $ac_cv_prog_cxx_g = yes; then 35290 if test "$GXX" = yes; then 35291 CXXFLAGS="-g -O2" 35292 else 35293 CXXFLAGS="-g" 35294 fi 35295 else 35296 if test "$GXX" = yes; then 35297 CXXFLAGS="-O2" 35298 else 35299 CXXFLAGS= 35300 fi 35301 fi 35302 ac_ext=cpp 35303 ac_cpp='$CXXCPP $CPPFLAGS' 35304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35307 35308 35309 # This is the compiler version number on the form X.Y[.Z] 35310 35311 35312 35313 35314 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 35315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 35316 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 35317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 35318 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 35319 fi 35320 35321 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 35322 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 35323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 35324 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 35325 fi 35326 35327 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 35328 { $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 35329 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 35330 fi 35331 35332 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION_NUMBER"` 35333 35334 35335 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 35336 35337 35338 35339 35340 35341 35342 35343 35344 35345 35346 35347 35348 35349 35350 35351 35352 35353 35354 35355 35356 35357 35358 35359 35360 35361 35362 35363 35364 35365 35366 35367 35368 35369 35370 35371 35372 35373 35374 35375 35376 35377 35378 35379 35380 35381 35382 35383 35384 35385 # Execute function body 35386 35387 # Need to assign to a variable since m4 is blocked from modifying parts in []. 35388 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 35389 35390 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 35391 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5 35392 fi 35393 35394 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 35395 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 35396 fi 35397 35398 # Version comparison method inspired by http://stackoverflow.com/a/24067243 35399 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 35400 35401 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 35402 : 35403 35404 else 35405 : 35406 35407 { $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 35408 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 35409 35410 35411 fi 35412 35413 35414 35415 35416 35417 35418 35419 35420 35421 35422 35423 35424 35425 35426 fi 35427 35428 # 35429 # Setup the preprocessor (CPP and CXXCPP) 35430 # 35431 ac_ext=c 35432 ac_cpp='$CPP $CPPFLAGS' 35433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35435 ac_compiler_gnu=$ac_cv_c_compiler_gnu 35436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 35437 $as_echo_n "checking how to run the C preprocessor... " >&6; } 35438 # On Suns, sometimes $CPP names a directory. 35439 if test -n "$CPP" && test -d "$CPP"; then 35440 CPP= 35441 fi 35442 if test -z "$CPP"; then 35443 if ${ac_cv_prog_CPP+:} false; then : 35444 $as_echo_n "(cached) " >&6 35445 else 35446 # Double quotes because CPP needs to be expanded 35447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 35448 do 35449 ac_preproc_ok=false 35450 for ac_c_preproc_warn_flag in '' yes 35451 do 35452 # Use a header file that comes with gcc, so configuring glibc 35453 # with a fresh cross-compiler works. 35454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35455 # <limits.h> exists even on freestanding compilers. 35456 # On the NeXT, cc -E runs the code through the compiler's parser, 35457 # not just through cpp. "Syntax error" is here to catch this case. 35458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35459 /* end confdefs.h. */ 35460 #ifdef __STDC__ 35461 # include <limits.h> 35462 #else 35463 # include <assert.h> 35464 #endif 35465 Syntax error 35466 _ACEOF 35467 if ac_fn_c_try_cpp "$LINENO"; then : 35468 35469 else 35470 # Broken: fails on valid input. 35471 continue 35472 fi 35473 rm -f conftest.err conftest.i conftest.$ac_ext 35474 35475 # OK, works on sane cases. Now check whether nonexistent headers 35476 # can be detected and how. 35477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35478 /* end confdefs.h. */ 35479 #include <ac_nonexistent.h> 35480 _ACEOF 35481 if ac_fn_c_try_cpp "$LINENO"; then : 35482 # Broken: success on invalid input. 35483 continue 35484 else 35485 # Passes both tests. 35486 ac_preproc_ok=: 35487 break 35488 fi 35489 rm -f conftest.err conftest.i conftest.$ac_ext 35490 35491 done 35492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35493 rm -f conftest.i conftest.err conftest.$ac_ext 35494 if $ac_preproc_ok; then : 35495 break 35496 fi 35497 35498 done 35499 ac_cv_prog_CPP=$CPP 35500 35501 fi 35502 CPP=$ac_cv_prog_CPP 35503 else 35504 ac_cv_prog_CPP=$CPP 35505 fi 35506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 35507 $as_echo "$CPP" >&6; } 35508 ac_preproc_ok=false 35509 for ac_c_preproc_warn_flag in '' yes 35510 do 35511 # Use a header file that comes with gcc, so configuring glibc 35512 # with a fresh cross-compiler works. 35513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35514 # <limits.h> exists even on freestanding compilers. 35515 # On the NeXT, cc -E runs the code through the compiler's parser, 35516 # not just through cpp. "Syntax error" is here to catch this case. 35517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35518 /* end confdefs.h. */ 35519 #ifdef __STDC__ 35520 # include <limits.h> 35521 #else 35522 # include <assert.h> 35523 #endif 35524 Syntax error 35525 _ACEOF 35526 if ac_fn_c_try_cpp "$LINENO"; then : 35527 35528 else 35529 # Broken: fails on valid input. 35530 continue 35531 fi 35532 rm -f conftest.err conftest.i conftest.$ac_ext 35533 35534 # OK, works on sane cases. Now check whether nonexistent headers 35535 # can be detected and how. 35536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35537 /* end confdefs.h. */ 35538 #include <ac_nonexistent.h> 35539 _ACEOF 35540 if ac_fn_c_try_cpp "$LINENO"; then : 35541 # Broken: success on invalid input. 35542 continue 35543 else 35544 # Passes both tests. 35545 ac_preproc_ok=: 35546 break 35547 fi 35548 rm -f conftest.err conftest.i conftest.$ac_ext 35549 35550 done 35551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35552 rm -f conftest.i conftest.err conftest.$ac_ext 35553 if $ac_preproc_ok; then : 35554 35555 else 35556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35558 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 35559 See \`config.log' for more details" "$LINENO" 5; } 35560 fi 35561 35562 ac_ext=cpp 35563 ac_cpp='$CXXCPP $CPPFLAGS' 35564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35567 35568 35569 # Only process if variable expands to non-empty 35570 35571 if test "x$CPP" != x; then 35572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35573 35574 # First separate the path from the arguments. This will split at the first 35575 # space. 35576 complete="$CPP" 35577 path="${complete%% *}" 35578 tmp="$complete EOL" 35579 arguments="${tmp#* }" 35580 35581 # Input might be given as Windows format, start by converting to 35582 # unix format. 35583 new_path=`$CYGPATH -u "$path"` 35584 35585 # Now try to locate executable using which 35586 new_path=`$WHICH "$new_path" 2> /dev/null` 35587 # bat and cmd files are not always considered executable in cygwin causing which 35588 # to not find them 35589 if test "x$new_path" = x \ 35590 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35591 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35592 new_path=`$CYGPATH -u "$path"` 35593 fi 35594 if test "x$new_path" = x; then 35595 # Oops. Which didn't find the executable. 35596 # The splitting of arguments from the executable at a space might have been incorrect, 35597 # since paths with space are more likely in Windows. Give it another try with the whole 35598 # argument. 35599 path="$complete" 35600 arguments="EOL" 35601 new_path=`$CYGPATH -u "$path"` 35602 new_path=`$WHICH "$new_path" 2> /dev/null` 35603 # bat and cmd files are not always considered executable in cygwin causing which 35604 # to not find them 35605 if test "x$new_path" = x \ 35606 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35607 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35608 new_path=`$CYGPATH -u "$path"` 35609 fi 35610 if test "x$new_path" = x; then 35611 # It's still not found. Now this is an unrecoverable error. 35612 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35613 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35614 has_space=`$ECHO "$complete" | $GREP " "` 35615 if test "x$has_space" != x; then 35616 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35617 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35618 fi 35619 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35620 fi 35621 fi 35622 35623 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35624 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35625 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35626 # "foo.exe" is OK but "foo" is an error. 35627 # 35628 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35629 # It is also a way to make sure we got the proper file name for the real test later on. 35630 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35631 if test "x$test_shortpath" = x; then 35632 # Short path failed, file does not exist as specified. 35633 # Try adding .exe or .cmd 35634 if test -f "${new_path}.exe"; then 35635 input_to_shortpath="${new_path}.exe" 35636 elif test -f "${new_path}.cmd"; then 35637 input_to_shortpath="${new_path}.cmd" 35638 else 35639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 35640 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 35641 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35642 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35643 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35644 fi 35645 else 35646 input_to_shortpath="$new_path" 35647 fi 35648 35649 # Call helper function which possibly converts this using DOS-style short mode. 35650 # If so, the updated path is stored in $new_path. 35651 new_path="$input_to_shortpath" 35652 35653 input_path="$input_to_shortpath" 35654 # Check if we need to convert this using DOS-style short mode. If the path 35655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35656 # take no chances and rewrite it. 35657 # Note: m4 eats our [], so we need to use [ and ] instead. 35658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35659 if test "x$has_forbidden_chars" != x; then 35660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35661 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35662 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35663 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35664 # Going to short mode and back again did indeed matter. Since short mode is 35665 # case insensitive, let's make it lowercase to improve readability. 35666 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35667 # Now convert it back to Unix-style (cygpath) 35668 input_path=`$CYGPATH -u "$shortmode_path"` 35669 new_path="$input_path" 35670 fi 35671 fi 35672 35673 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35674 if test "x$test_cygdrive_prefix" = x; then 35675 # As a simple fix, exclude /usr/bin since it's not a real path. 35676 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35677 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35678 # a path prefixed by /cygdrive for fixpath to work. 35679 new_path="$CYGWIN_ROOT_PATH$input_path" 35680 fi 35681 fi 35682 35683 # remove trailing .exe if any 35684 new_path="${new_path/%.exe/}" 35685 35686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35687 35688 # First separate the path from the arguments. This will split at the first 35689 # space. 35690 complete="$CPP" 35691 path="${complete%% *}" 35692 tmp="$complete EOL" 35693 arguments="${tmp#* }" 35694 35695 # Input might be given as Windows format, start by converting to 35696 # unix format. 35697 new_path="$path" 35698 35699 windows_path="$new_path" 35700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35701 unix_path=`$CYGPATH -u "$windows_path"` 35702 new_path="$unix_path" 35703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35705 new_path="$unix_path" 35706 fi 35707 35708 35709 # Now try to locate executable using which 35710 new_path=`$WHICH "$new_path" 2> /dev/null` 35711 35712 if test "x$new_path" = x; then 35713 # Oops. Which didn't find the executable. 35714 # The splitting of arguments from the executable at a space might have been incorrect, 35715 # since paths with space are more likely in Windows. Give it another try with the whole 35716 # argument. 35717 path="$complete" 35718 arguments="EOL" 35719 new_path="$path" 35720 35721 windows_path="$new_path" 35722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35723 unix_path=`$CYGPATH -u "$windows_path"` 35724 new_path="$unix_path" 35725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35726 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35727 new_path="$unix_path" 35728 fi 35729 35730 35731 new_path=`$WHICH "$new_path" 2> /dev/null` 35732 # bat and cmd files are not always considered executable in MSYS causing which 35733 # to not find them 35734 if test "x$new_path" = x \ 35735 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35736 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35737 new_path="$path" 35738 35739 windows_path="$new_path" 35740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35741 unix_path=`$CYGPATH -u "$windows_path"` 35742 new_path="$unix_path" 35743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35745 new_path="$unix_path" 35746 fi 35747 35748 fi 35749 35750 if test "x$new_path" = x; then 35751 # It's still not found. Now this is an unrecoverable error. 35752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35753 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35754 has_space=`$ECHO "$complete" | $GREP " "` 35755 if test "x$has_space" != x; then 35756 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35757 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35758 fi 35759 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35760 fi 35761 fi 35762 35763 # Now new_path has a complete unix path to the binary 35764 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35765 # Keep paths in /bin as-is, but remove trailing .exe if any 35766 new_path="${new_path/%.exe/}" 35767 # Do not save /bin paths to all_fixpath_prefixes! 35768 else 35769 # Not in mixed or Windows style, start by that. 35770 new_path=`cmd //c echo $new_path` 35771 35772 input_path="$new_path" 35773 # Check if we need to convert this using DOS-style short mode. If the path 35774 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35775 # take no chances and rewrite it. 35776 # Note: m4 eats our [], so we need to use [ and ] instead. 35777 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35778 if test "x$has_forbidden_chars" != x; then 35779 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35780 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35781 fi 35782 35783 # Output is in $new_path 35784 35785 windows_path="$new_path" 35786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35787 unix_path=`$CYGPATH -u "$windows_path"` 35788 new_path="$unix_path" 35789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35790 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35791 new_path="$unix_path" 35792 fi 35793 35794 # remove trailing .exe if any 35795 new_path="${new_path/%.exe/}" 35796 35797 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35798 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35799 fi 35800 35801 else 35802 # We're on a unix platform. Hooray! :) 35803 # First separate the path from the arguments. This will split at the first 35804 # space. 35805 complete="$CPP" 35806 path="${complete%% *}" 35807 tmp="$complete EOL" 35808 arguments="${tmp#* }" 35809 35810 # Cannot rely on the command "which" here since it doesn't always work. 35811 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35812 if test -z "$is_absolute_path"; then 35813 # Path to executable is not absolute. Find it. 35814 IFS_save="$IFS" 35815 IFS=: 35816 for p in $PATH; do 35817 if test -f "$p/$path" && test -x "$p/$path"; then 35818 new_path="$p/$path" 35819 break 35820 fi 35821 done 35822 IFS="$IFS_save" 35823 else 35824 # This is an absolute path, we can use it without further modifications. 35825 new_path="$path" 35826 fi 35827 35828 if test "x$new_path" = x; then 35829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35830 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35831 has_space=`$ECHO "$complete" | $GREP " "` 35832 if test "x$has_space" != x; then 35833 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35834 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35835 fi 35836 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35837 fi 35838 fi 35839 35840 # Now join together the path and the arguments once again 35841 if test "x$arguments" != xEOL; then 35842 new_complete="$new_path ${arguments% *}" 35843 else 35844 new_complete="$new_path" 35845 fi 35846 35847 if test "x$complete" != "x$new_complete"; then 35848 CPP="$new_complete" 35849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 35850 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 35851 fi 35852 fi 35853 35854 ac_ext=cpp 35855 ac_cpp='$CXXCPP $CPPFLAGS' 35856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 35860 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 35861 if test -z "$CXXCPP"; then 35862 if ${ac_cv_prog_CXXCPP+:} false; then : 35863 $as_echo_n "(cached) " >&6 35864 else 35865 # Double quotes because CXXCPP needs to be expanded 35866 for CXXCPP in "$CXX -E" "/lib/cpp" 35867 do 35868 ac_preproc_ok=false 35869 for ac_cxx_preproc_warn_flag in '' yes 35870 do 35871 # Use a header file that comes with gcc, so configuring glibc 35872 # with a fresh cross-compiler works. 35873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35874 # <limits.h> exists even on freestanding compilers. 35875 # On the NeXT, cc -E runs the code through the compiler's parser, 35876 # not just through cpp. "Syntax error" is here to catch this case. 35877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35878 /* end confdefs.h. */ 35879 #ifdef __STDC__ 35880 # include <limits.h> 35881 #else 35882 # include <assert.h> 35883 #endif 35884 Syntax error 35885 _ACEOF 35886 if ac_fn_cxx_try_cpp "$LINENO"; then : 35887 35888 else 35889 # Broken: fails on valid input. 35890 continue 35891 fi 35892 rm -f conftest.err conftest.i conftest.$ac_ext 35893 35894 # OK, works on sane cases. Now check whether nonexistent headers 35895 # can be detected and how. 35896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35897 /* end confdefs.h. */ 35898 #include <ac_nonexistent.h> 35899 _ACEOF 35900 if ac_fn_cxx_try_cpp "$LINENO"; then : 35901 # Broken: success on invalid input. 35902 continue 35903 else 35904 # Passes both tests. 35905 ac_preproc_ok=: 35906 break 35907 fi 35908 rm -f conftest.err conftest.i conftest.$ac_ext 35909 35910 done 35911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35912 rm -f conftest.i conftest.err conftest.$ac_ext 35913 if $ac_preproc_ok; then : 35914 break 35915 fi 35916 35917 done 35918 ac_cv_prog_CXXCPP=$CXXCPP 35919 35920 fi 35921 CXXCPP=$ac_cv_prog_CXXCPP 35922 else 35923 ac_cv_prog_CXXCPP=$CXXCPP 35924 fi 35925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 35926 $as_echo "$CXXCPP" >&6; } 35927 ac_preproc_ok=false 35928 for ac_cxx_preproc_warn_flag in '' yes 35929 do 35930 # Use a header file that comes with gcc, so configuring glibc 35931 # with a fresh cross-compiler works. 35932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35933 # <limits.h> exists even on freestanding compilers. 35934 # On the NeXT, cc -E runs the code through the compiler's parser, 35935 # not just through cpp. "Syntax error" is here to catch this case. 35936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35937 /* end confdefs.h. */ 35938 #ifdef __STDC__ 35939 # include <limits.h> 35940 #else 35941 # include <assert.h> 35942 #endif 35943 Syntax error 35944 _ACEOF 35945 if ac_fn_cxx_try_cpp "$LINENO"; then : 35946 35947 else 35948 # Broken: fails on valid input. 35949 continue 35950 fi 35951 rm -f conftest.err conftest.i conftest.$ac_ext 35952 35953 # OK, works on sane cases. Now check whether nonexistent headers 35954 # can be detected and how. 35955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35956 /* end confdefs.h. */ 35957 #include <ac_nonexistent.h> 35958 _ACEOF 35959 if ac_fn_cxx_try_cpp "$LINENO"; then : 35960 # Broken: success on invalid input. 35961 continue 35962 else 35963 # Passes both tests. 35964 ac_preproc_ok=: 35965 break 35966 fi 35967 rm -f conftest.err conftest.i conftest.$ac_ext 35968 35969 done 35970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35971 rm -f conftest.i conftest.err conftest.$ac_ext 35972 if $ac_preproc_ok; then : 35973 35974 else 35975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35977 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 35978 See \`config.log' for more details" "$LINENO" 5; } 35979 fi 35980 35981 ac_ext=cpp 35982 ac_cpp='$CXXCPP $CPPFLAGS' 35983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35986 35987 35988 # Only process if variable expands to non-empty 35989 35990 if test "x$CXXCPP" != x; then 35991 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35992 35993 # First separate the path from the arguments. This will split at the first 35994 # space. 35995 complete="$CXXCPP" 35996 path="${complete%% *}" 35997 tmp="$complete EOL" 35998 arguments="${tmp#* }" 35999 36000 # Input might be given as Windows format, start by converting to 36001 # unix format. 36002 new_path=`$CYGPATH -u "$path"` 36003 36004 # Now try to locate executable using which 36005 new_path=`$WHICH "$new_path" 2> /dev/null` 36006 # bat and cmd files are not always considered executable in cygwin causing which 36007 # to not find them 36008 if test "x$new_path" = x \ 36009 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36010 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36011 new_path=`$CYGPATH -u "$path"` 36012 fi 36013 if test "x$new_path" = x; then 36014 # Oops. Which didn't find the executable. 36015 # The splitting of arguments from the executable at a space might have been incorrect, 36016 # since paths with space are more likely in Windows. Give it another try with the whole 36017 # argument. 36018 path="$complete" 36019 arguments="EOL" 36020 new_path=`$CYGPATH -u "$path"` 36021 new_path=`$WHICH "$new_path" 2> /dev/null` 36022 # bat and cmd files are not always considered executable in cygwin causing which 36023 # to not find them 36024 if test "x$new_path" = x \ 36025 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36026 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36027 new_path=`$CYGPATH -u "$path"` 36028 fi 36029 if test "x$new_path" = x; then 36030 # It's still not found. Now this is an unrecoverable error. 36031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36032 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36033 has_space=`$ECHO "$complete" | $GREP " "` 36034 if test "x$has_space" != x; then 36035 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36036 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36037 fi 36038 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36039 fi 36040 fi 36041 36042 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36043 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36044 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36045 # "foo.exe" is OK but "foo" is an error. 36046 # 36047 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36048 # It is also a way to make sure we got the proper file name for the real test later on. 36049 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36050 if test "x$test_shortpath" = x; then 36051 # Short path failed, file does not exist as specified. 36052 # Try adding .exe or .cmd 36053 if test -f "${new_path}.exe"; then 36054 input_to_shortpath="${new_path}.exe" 36055 elif test -f "${new_path}.cmd"; then 36056 input_to_shortpath="${new_path}.cmd" 36057 else 36058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 36059 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 36060 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36061 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36062 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36063 fi 36064 else 36065 input_to_shortpath="$new_path" 36066 fi 36067 36068 # Call helper function which possibly converts this using DOS-style short mode. 36069 # If so, the updated path is stored in $new_path. 36070 new_path="$input_to_shortpath" 36071 36072 input_path="$input_to_shortpath" 36073 # Check if we need to convert this using DOS-style short mode. If the path 36074 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36075 # take no chances and rewrite it. 36076 # Note: m4 eats our [], so we need to use [ and ] instead. 36077 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36078 if test "x$has_forbidden_chars" != x; then 36079 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36080 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36081 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36082 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36083 # Going to short mode and back again did indeed matter. Since short mode is 36084 # case insensitive, let's make it lowercase to improve readability. 36085 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36086 # Now convert it back to Unix-style (cygpath) 36087 input_path=`$CYGPATH -u "$shortmode_path"` 36088 new_path="$input_path" 36089 fi 36090 fi 36091 36092 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36093 if test "x$test_cygdrive_prefix" = x; then 36094 # As a simple fix, exclude /usr/bin since it's not a real path. 36095 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36096 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36097 # a path prefixed by /cygdrive for fixpath to work. 36098 new_path="$CYGWIN_ROOT_PATH$input_path" 36099 fi 36100 fi 36101 36102 # remove trailing .exe if any 36103 new_path="${new_path/%.exe/}" 36104 36105 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36106 36107 # First separate the path from the arguments. This will split at the first 36108 # space. 36109 complete="$CXXCPP" 36110 path="${complete%% *}" 36111 tmp="$complete EOL" 36112 arguments="${tmp#* }" 36113 36114 # Input might be given as Windows format, start by converting to 36115 # unix format. 36116 new_path="$path" 36117 36118 windows_path="$new_path" 36119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36120 unix_path=`$CYGPATH -u "$windows_path"` 36121 new_path="$unix_path" 36122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36123 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36124 new_path="$unix_path" 36125 fi 36126 36127 36128 # Now try to locate executable using which 36129 new_path=`$WHICH "$new_path" 2> /dev/null` 36130 36131 if test "x$new_path" = x; then 36132 # Oops. Which didn't find the executable. 36133 # The splitting of arguments from the executable at a space might have been incorrect, 36134 # since paths with space are more likely in Windows. Give it another try with the whole 36135 # argument. 36136 path="$complete" 36137 arguments="EOL" 36138 new_path="$path" 36139 36140 windows_path="$new_path" 36141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36142 unix_path=`$CYGPATH -u "$windows_path"` 36143 new_path="$unix_path" 36144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36146 new_path="$unix_path" 36147 fi 36148 36149 36150 new_path=`$WHICH "$new_path" 2> /dev/null` 36151 # bat and cmd files are not always considered executable in MSYS causing which 36152 # to not find them 36153 if test "x$new_path" = x \ 36154 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36155 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36156 new_path="$path" 36157 36158 windows_path="$new_path" 36159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36160 unix_path=`$CYGPATH -u "$windows_path"` 36161 new_path="$unix_path" 36162 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36163 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36164 new_path="$unix_path" 36165 fi 36166 36167 fi 36168 36169 if test "x$new_path" = x; then 36170 # It's still not found. Now this is an unrecoverable error. 36171 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36172 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36173 has_space=`$ECHO "$complete" | $GREP " "` 36174 if test "x$has_space" != x; then 36175 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36176 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36177 fi 36178 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36179 fi 36180 fi 36181 36182 # Now new_path has a complete unix path to the binary 36183 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36184 # Keep paths in /bin as-is, but remove trailing .exe if any 36185 new_path="${new_path/%.exe/}" 36186 # Do not save /bin paths to all_fixpath_prefixes! 36187 else 36188 # Not in mixed or Windows style, start by that. 36189 new_path=`cmd //c echo $new_path` 36190 36191 input_path="$new_path" 36192 # Check if we need to convert this using DOS-style short mode. If the path 36193 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36194 # take no chances and rewrite it. 36195 # Note: m4 eats our [], so we need to use [ and ] instead. 36196 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36197 if test "x$has_forbidden_chars" != x; then 36198 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36199 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36200 fi 36201 36202 # Output is in $new_path 36203 36204 windows_path="$new_path" 36205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36206 unix_path=`$CYGPATH -u "$windows_path"` 36207 new_path="$unix_path" 36208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36209 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36210 new_path="$unix_path" 36211 fi 36212 36213 # remove trailing .exe if any 36214 new_path="${new_path/%.exe/}" 36215 36216 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36217 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36218 fi 36219 36220 else 36221 # We're on a unix platform. Hooray! :) 36222 # First separate the path from the arguments. This will split at the first 36223 # space. 36224 complete="$CXXCPP" 36225 path="${complete%% *}" 36226 tmp="$complete EOL" 36227 arguments="${tmp#* }" 36228 36229 # Cannot rely on the command "which" here since it doesn't always work. 36230 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36231 if test -z "$is_absolute_path"; then 36232 # Path to executable is not absolute. Find it. 36233 IFS_save="$IFS" 36234 IFS=: 36235 for p in $PATH; do 36236 if test -f "$p/$path" && test -x "$p/$path"; then 36237 new_path="$p/$path" 36238 break 36239 fi 36240 done 36241 IFS="$IFS_save" 36242 else 36243 # This is an absolute path, we can use it without further modifications. 36244 new_path="$path" 36245 fi 36246 36247 if test "x$new_path" = x; then 36248 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36249 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36250 has_space=`$ECHO "$complete" | $GREP " "` 36251 if test "x$has_space" != x; then 36252 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36253 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36254 fi 36255 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36256 fi 36257 fi 36258 36259 # Now join together the path and the arguments once again 36260 if test "x$arguments" != xEOL; then 36261 new_complete="$new_path ${arguments% *}" 36262 else 36263 new_complete="$new_path" 36264 fi 36265 36266 if test "x$complete" != "x$new_complete"; then 36267 CXXCPP="$new_complete" 36268 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 36269 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 36270 fi 36271 fi 36272 36273 36274 # 36275 # Setup the linker (LD) 36276 # 36277 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 36278 # In the Microsoft toolchain we have a separate LD command "link". 36279 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 36280 # a cygwin program for something completely different. 36281 # Extract the first word of "link", so it can be a program name with args. 36282 set dummy link; ac_word=$2 36283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36284 $as_echo_n "checking for $ac_word... " >&6; } 36285 if ${ac_cv_prog_LD+:} false; then : 36286 $as_echo_n "(cached) " >&6 36287 else 36288 if test -n "$LD"; then 36289 ac_cv_prog_LD="$LD" # Let the user override the test. 36290 else 36291 ac_prog_rejected=no 36292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36293 for as_dir in $PATH 36294 do 36295 IFS=$as_save_IFS 36296 test -z "$as_dir" && as_dir=. 36297 for ac_exec_ext in '' $ac_executable_extensions; do 36298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36299 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 36300 ac_prog_rejected=yes 36301 continue 36302 fi 36303 ac_cv_prog_LD="link" 36304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36305 break 2 36306 fi 36307 done 36308 done 36309 IFS=$as_save_IFS 36310 36311 if test $ac_prog_rejected = yes; then 36312 # We found a bogon in the path, so make sure we never use it. 36313 set dummy $ac_cv_prog_LD 36314 shift 36315 if test $# != 0; then 36316 # We chose a different compiler from the bogus one. 36317 # However, it has the same basename, so the bogon will be chosen 36318 # first if we set LD to just the basename; use the full file name. 36319 shift 36320 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 36321 fi 36322 fi 36323 fi 36324 fi 36325 LD=$ac_cv_prog_LD 36326 if test -n "$LD"; then 36327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 36328 $as_echo "$LD" >&6; } 36329 else 36330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36331 $as_echo "no" >&6; } 36332 fi 36333 36334 36335 36336 # Only process if variable expands to non-empty 36337 36338 if test "x$LD" != x; then 36339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36340 36341 # First separate the path from the arguments. This will split at the first 36342 # space. 36343 complete="$LD" 36344 path="${complete%% *}" 36345 tmp="$complete EOL" 36346 arguments="${tmp#* }" 36347 36348 # Input might be given as Windows format, start by converting to 36349 # unix format. 36350 new_path=`$CYGPATH -u "$path"` 36351 36352 # Now try to locate executable using which 36353 new_path=`$WHICH "$new_path" 2> /dev/null` 36354 # bat and cmd files are not always considered executable in cygwin causing which 36355 # to not find them 36356 if test "x$new_path" = x \ 36357 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36358 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36359 new_path=`$CYGPATH -u "$path"` 36360 fi 36361 if test "x$new_path" = x; then 36362 # Oops. Which didn't find the executable. 36363 # The splitting of arguments from the executable at a space might have been incorrect, 36364 # since paths with space are more likely in Windows. Give it another try with the whole 36365 # argument. 36366 path="$complete" 36367 arguments="EOL" 36368 new_path=`$CYGPATH -u "$path"` 36369 new_path=`$WHICH "$new_path" 2> /dev/null` 36370 # bat and cmd files are not always considered executable in cygwin causing which 36371 # to not find them 36372 if test "x$new_path" = x \ 36373 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36374 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36375 new_path=`$CYGPATH -u "$path"` 36376 fi 36377 if test "x$new_path" = x; then 36378 # It's still not found. Now this is an unrecoverable error. 36379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36380 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36381 has_space=`$ECHO "$complete" | $GREP " "` 36382 if test "x$has_space" != x; then 36383 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36384 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36385 fi 36386 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36387 fi 36388 fi 36389 36390 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36391 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36392 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36393 # "foo.exe" is OK but "foo" is an error. 36394 # 36395 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36396 # It is also a way to make sure we got the proper file name for the real test later on. 36397 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36398 if test "x$test_shortpath" = x; then 36399 # Short path failed, file does not exist as specified. 36400 # Try adding .exe or .cmd 36401 if test -f "${new_path}.exe"; then 36402 input_to_shortpath="${new_path}.exe" 36403 elif test -f "${new_path}.cmd"; then 36404 input_to_shortpath="${new_path}.cmd" 36405 else 36406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 36407 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 36408 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36409 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36410 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36411 fi 36412 else 36413 input_to_shortpath="$new_path" 36414 fi 36415 36416 # Call helper function which possibly converts this using DOS-style short mode. 36417 # If so, the updated path is stored in $new_path. 36418 new_path="$input_to_shortpath" 36419 36420 input_path="$input_to_shortpath" 36421 # Check if we need to convert this using DOS-style short mode. If the path 36422 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36423 # take no chances and rewrite it. 36424 # Note: m4 eats our [], so we need to use [ and ] instead. 36425 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36426 if test "x$has_forbidden_chars" != x; then 36427 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36428 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36429 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36430 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36431 # Going to short mode and back again did indeed matter. Since short mode is 36432 # case insensitive, let's make it lowercase to improve readability. 36433 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36434 # Now convert it back to Unix-style (cygpath) 36435 input_path=`$CYGPATH -u "$shortmode_path"` 36436 new_path="$input_path" 36437 fi 36438 fi 36439 36440 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36441 if test "x$test_cygdrive_prefix" = x; then 36442 # As a simple fix, exclude /usr/bin since it's not a real path. 36443 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36444 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36445 # a path prefixed by /cygdrive for fixpath to work. 36446 new_path="$CYGWIN_ROOT_PATH$input_path" 36447 fi 36448 fi 36449 36450 # remove trailing .exe if any 36451 new_path="${new_path/%.exe/}" 36452 36453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36454 36455 # First separate the path from the arguments. This will split at the first 36456 # space. 36457 complete="$LD" 36458 path="${complete%% *}" 36459 tmp="$complete EOL" 36460 arguments="${tmp#* }" 36461 36462 # Input might be given as Windows format, start by converting to 36463 # unix format. 36464 new_path="$path" 36465 36466 windows_path="$new_path" 36467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36468 unix_path=`$CYGPATH -u "$windows_path"` 36469 new_path="$unix_path" 36470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36472 new_path="$unix_path" 36473 fi 36474 36475 36476 # Now try to locate executable using which 36477 new_path=`$WHICH "$new_path" 2> /dev/null` 36478 36479 if test "x$new_path" = x; then 36480 # Oops. Which didn't find the executable. 36481 # The splitting of arguments from the executable at a space might have been incorrect, 36482 # since paths with space are more likely in Windows. Give it another try with the whole 36483 # argument. 36484 path="$complete" 36485 arguments="EOL" 36486 new_path="$path" 36487 36488 windows_path="$new_path" 36489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36490 unix_path=`$CYGPATH -u "$windows_path"` 36491 new_path="$unix_path" 36492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36493 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36494 new_path="$unix_path" 36495 fi 36496 36497 36498 new_path=`$WHICH "$new_path" 2> /dev/null` 36499 # bat and cmd files are not always considered executable in MSYS causing which 36500 # to not find them 36501 if test "x$new_path" = x \ 36502 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36503 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36504 new_path="$path" 36505 36506 windows_path="$new_path" 36507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36508 unix_path=`$CYGPATH -u "$windows_path"` 36509 new_path="$unix_path" 36510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36512 new_path="$unix_path" 36513 fi 36514 36515 fi 36516 36517 if test "x$new_path" = x; then 36518 # It's still not found. Now this is an unrecoverable error. 36519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36520 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36521 has_space=`$ECHO "$complete" | $GREP " "` 36522 if test "x$has_space" != x; then 36523 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36524 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36525 fi 36526 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36527 fi 36528 fi 36529 36530 # Now new_path has a complete unix path to the binary 36531 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36532 # Keep paths in /bin as-is, but remove trailing .exe if any 36533 new_path="${new_path/%.exe/}" 36534 # Do not save /bin paths to all_fixpath_prefixes! 36535 else 36536 # Not in mixed or Windows style, start by that. 36537 new_path=`cmd //c echo $new_path` 36538 36539 input_path="$new_path" 36540 # Check if we need to convert this using DOS-style short mode. If the path 36541 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36542 # take no chances and rewrite it. 36543 # Note: m4 eats our [], so we need to use [ and ] instead. 36544 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36545 if test "x$has_forbidden_chars" != x; then 36546 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36547 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36548 fi 36549 36550 # Output is in $new_path 36551 36552 windows_path="$new_path" 36553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36554 unix_path=`$CYGPATH -u "$windows_path"` 36555 new_path="$unix_path" 36556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36557 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36558 new_path="$unix_path" 36559 fi 36560 36561 # remove trailing .exe if any 36562 new_path="${new_path/%.exe/}" 36563 36564 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36565 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36566 fi 36567 36568 else 36569 # We're on a unix platform. Hooray! :) 36570 # First separate the path from the arguments. This will split at the first 36571 # space. 36572 complete="$LD" 36573 path="${complete%% *}" 36574 tmp="$complete EOL" 36575 arguments="${tmp#* }" 36576 36577 # Cannot rely on the command "which" here since it doesn't always work. 36578 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36579 if test -z "$is_absolute_path"; then 36580 # Path to executable is not absolute. Find it. 36581 IFS_save="$IFS" 36582 IFS=: 36583 for p in $PATH; do 36584 if test -f "$p/$path" && test -x "$p/$path"; then 36585 new_path="$p/$path" 36586 break 36587 fi 36588 done 36589 IFS="$IFS_save" 36590 else 36591 # This is an absolute path, we can use it without further modifications. 36592 new_path="$path" 36593 fi 36594 36595 if test "x$new_path" = x; then 36596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36597 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36598 has_space=`$ECHO "$complete" | $GREP " "` 36599 if test "x$has_space" != x; then 36600 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36601 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36602 fi 36603 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36604 fi 36605 fi 36606 36607 # Now join together the path and the arguments once again 36608 if test "x$arguments" != xEOL; then 36609 new_complete="$new_path ${arguments% *}" 36610 else 36611 new_complete="$new_path" 36612 fi 36613 36614 if test "x$complete" != "x$new_complete"; then 36615 LD="$new_complete" 36616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 36617 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 36618 fi 36619 fi 36620 36621 # Verify that we indeed succeeded with this trick. 36622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 36623 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 36624 "$LD" --version > /dev/null 36625 if test $? -eq 0 ; then 36626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36627 $as_echo "no" >&6; } 36628 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 36629 else 36630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36631 $as_echo "yes" >&6; } 36632 fi 36633 LDCXX="$LD" 36634 else 36635 # All other toolchains use the compiler to link. 36636 LD="$CC" 36637 LDCXX="$CXX" 36638 fi 36639 36640 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 36641 36642 36643 # 36644 # Setup the assembler (AS) 36645 # 36646 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 36647 36648 36649 # Publish this variable in the help. 36650 36651 36652 if [ -z "${AS+x}" ]; then 36653 # The variable is not set by user, try to locate tool using the code snippet 36654 for ac_prog in as 36655 do 36656 # Extract the first word of "$ac_prog", so it can be a program name with args. 36657 set dummy $ac_prog; ac_word=$2 36658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36659 $as_echo_n "checking for $ac_word... " >&6; } 36660 if ${ac_cv_path_AS+:} false; then : 36661 $as_echo_n "(cached) " >&6 36662 else 36663 case $AS in 36664 [\\/]* | ?:[\\/]*) 36665 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36666 ;; 36667 *) 36668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36669 for as_dir in $PATH 36670 do 36671 IFS=$as_save_IFS 36672 test -z "$as_dir" && as_dir=. 36673 for ac_exec_ext in '' $ac_executable_extensions; do 36674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36675 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36677 break 2 36678 fi 36679 done 36680 done 36681 IFS=$as_save_IFS 36682 36683 ;; 36684 esac 36685 fi 36686 AS=$ac_cv_path_AS 36687 if test -n "$AS"; then 36688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36689 $as_echo "$AS" >&6; } 36690 else 36691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36692 $as_echo "no" >&6; } 36693 fi 36694 36695 36696 test -n "$AS" && break 36697 done 36698 36699 else 36700 # The variable is set, but is it from the command line or the environment? 36701 36702 # Try to remove the string !AS! from our list. 36703 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 36704 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36705 # If it failed, the variable was not from the command line. Ignore it, 36706 # but warn the user (except for BASH, which is always set by the calling BASH). 36707 if test "xAS" != xBASH; then 36708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 36709 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 36710 fi 36711 # Try to locate tool using the code snippet 36712 for ac_prog in as 36713 do 36714 # Extract the first word of "$ac_prog", so it can be a program name with args. 36715 set dummy $ac_prog; ac_word=$2 36716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36717 $as_echo_n "checking for $ac_word... " >&6; } 36718 if ${ac_cv_path_AS+:} false; then : 36719 $as_echo_n "(cached) " >&6 36720 else 36721 case $AS in 36722 [\\/]* | ?:[\\/]*) 36723 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36724 ;; 36725 *) 36726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36727 for as_dir in $PATH 36728 do 36729 IFS=$as_save_IFS 36730 test -z "$as_dir" && as_dir=. 36731 for ac_exec_ext in '' $ac_executable_extensions; do 36732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36733 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36735 break 2 36736 fi 36737 done 36738 done 36739 IFS=$as_save_IFS 36740 36741 ;; 36742 esac 36743 fi 36744 AS=$ac_cv_path_AS 36745 if test -n "$AS"; then 36746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36747 $as_echo "$AS" >&6; } 36748 else 36749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36750 $as_echo "no" >&6; } 36751 fi 36752 36753 36754 test -n "$AS" && break 36755 done 36756 36757 else 36758 # If it succeeded, then it was overridden by the user. We will use it 36759 # for the tool. 36760 36761 # First remove it from the list of overridden variables, so we can test 36762 # for unknown variables in the end. 36763 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36764 36765 # Check if we try to supply an empty value 36766 if test "x$AS" = x; then 36767 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 36768 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 36769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36770 $as_echo_n "checking for AS... " >&6; } 36771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36772 $as_echo "disabled" >&6; } 36773 else 36774 # Check if the provided tool contains a complete path. 36775 tool_specified="$AS" 36776 tool_basename="${tool_specified##*/}" 36777 if test "x$tool_basename" = "x$tool_specified"; then 36778 # A command without a complete path is provided, search $PATH. 36779 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 36780 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 36781 # Extract the first word of "$tool_basename", so it can be a program name with args. 36782 set dummy $tool_basename; ac_word=$2 36783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36784 $as_echo_n "checking for $ac_word... " >&6; } 36785 if ${ac_cv_path_AS+:} false; then : 36786 $as_echo_n "(cached) " >&6 36787 else 36788 case $AS in 36789 [\\/]* | ?:[\\/]*) 36790 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36791 ;; 36792 *) 36793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36794 for as_dir in $PATH 36795 do 36796 IFS=$as_save_IFS 36797 test -z "$as_dir" && as_dir=. 36798 for ac_exec_ext in '' $ac_executable_extensions; do 36799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36800 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36802 break 2 36803 fi 36804 done 36805 done 36806 IFS=$as_save_IFS 36807 36808 ;; 36809 esac 36810 fi 36811 AS=$ac_cv_path_AS 36812 if test -n "$AS"; then 36813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36814 $as_echo "$AS" >&6; } 36815 else 36816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36817 $as_echo "no" >&6; } 36818 fi 36819 36820 36821 if test "x$AS" = x; then 36822 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36823 fi 36824 else 36825 # Otherwise we believe it is a complete path. Use it as it is. 36826 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 36827 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 36828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36829 $as_echo_n "checking for AS... " >&6; } 36830 if test ! -x "$tool_specified"; then 36831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36832 $as_echo "not found" >&6; } 36833 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 36834 fi 36835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36836 $as_echo "$tool_specified" >&6; } 36837 fi 36838 fi 36839 fi 36840 36841 fi 36842 36843 36844 36845 # Only process if variable expands to non-empty 36846 36847 if test "x$AS" != x; then 36848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36849 36850 # First separate the path from the arguments. This will split at the first 36851 # space. 36852 complete="$AS" 36853 path="${complete%% *}" 36854 tmp="$complete EOL" 36855 arguments="${tmp#* }" 36856 36857 # Input might be given as Windows format, start by converting to 36858 # unix format. 36859 new_path=`$CYGPATH -u "$path"` 36860 36861 # Now try to locate executable using which 36862 new_path=`$WHICH "$new_path" 2> /dev/null` 36863 # bat and cmd files are not always considered executable in cygwin causing which 36864 # to not find them 36865 if test "x$new_path" = x \ 36866 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36867 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36868 new_path=`$CYGPATH -u "$path"` 36869 fi 36870 if test "x$new_path" = x; then 36871 # Oops. Which didn't find the executable. 36872 # The splitting of arguments from the executable at a space might have been incorrect, 36873 # since paths with space are more likely in Windows. Give it another try with the whole 36874 # argument. 36875 path="$complete" 36876 arguments="EOL" 36877 new_path=`$CYGPATH -u "$path"` 36878 new_path=`$WHICH "$new_path" 2> /dev/null` 36879 # bat and cmd files are not always considered executable in cygwin causing which 36880 # to not find them 36881 if test "x$new_path" = x \ 36882 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36883 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36884 new_path=`$CYGPATH -u "$path"` 36885 fi 36886 if test "x$new_path" = x; then 36887 # It's still not found. Now this is an unrecoverable error. 36888 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36889 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36890 has_space=`$ECHO "$complete" | $GREP " "` 36891 if test "x$has_space" != x; then 36892 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36893 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36894 fi 36895 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36896 fi 36897 fi 36898 36899 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36900 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36901 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36902 # "foo.exe" is OK but "foo" is an error. 36903 # 36904 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36905 # It is also a way to make sure we got the proper file name for the real test later on. 36906 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36907 if test "x$test_shortpath" = x; then 36908 # Short path failed, file does not exist as specified. 36909 # Try adding .exe or .cmd 36910 if test -f "${new_path}.exe"; then 36911 input_to_shortpath="${new_path}.exe" 36912 elif test -f "${new_path}.cmd"; then 36913 input_to_shortpath="${new_path}.cmd" 36914 else 36915 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 36916 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 36917 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36918 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36919 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36920 fi 36921 else 36922 input_to_shortpath="$new_path" 36923 fi 36924 36925 # Call helper function which possibly converts this using DOS-style short mode. 36926 # If so, the updated path is stored in $new_path. 36927 new_path="$input_to_shortpath" 36928 36929 input_path="$input_to_shortpath" 36930 # Check if we need to convert this using DOS-style short mode. If the path 36931 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36932 # take no chances and rewrite it. 36933 # Note: m4 eats our [], so we need to use [ and ] instead. 36934 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36935 if test "x$has_forbidden_chars" != x; then 36936 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36937 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36938 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36939 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36940 # Going to short mode and back again did indeed matter. Since short mode is 36941 # case insensitive, let's make it lowercase to improve readability. 36942 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36943 # Now convert it back to Unix-style (cygpath) 36944 input_path=`$CYGPATH -u "$shortmode_path"` 36945 new_path="$input_path" 36946 fi 36947 fi 36948 36949 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36950 if test "x$test_cygdrive_prefix" = x; then 36951 # As a simple fix, exclude /usr/bin since it's not a real path. 36952 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36953 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36954 # a path prefixed by /cygdrive for fixpath to work. 36955 new_path="$CYGWIN_ROOT_PATH$input_path" 36956 fi 36957 fi 36958 36959 # remove trailing .exe if any 36960 new_path="${new_path/%.exe/}" 36961 36962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36963 36964 # First separate the path from the arguments. This will split at the first 36965 # space. 36966 complete="$AS" 36967 path="${complete%% *}" 36968 tmp="$complete EOL" 36969 arguments="${tmp#* }" 36970 36971 # Input might be given as Windows format, start by converting to 36972 # unix format. 36973 new_path="$path" 36974 36975 windows_path="$new_path" 36976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36977 unix_path=`$CYGPATH -u "$windows_path"` 36978 new_path="$unix_path" 36979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36981 new_path="$unix_path" 36982 fi 36983 36984 36985 # Now try to locate executable using which 36986 new_path=`$WHICH "$new_path" 2> /dev/null` 36987 36988 if test "x$new_path" = x; then 36989 # Oops. Which didn't find the executable. 36990 # The splitting of arguments from the executable at a space might have been incorrect, 36991 # since paths with space are more likely in Windows. Give it another try with the whole 36992 # argument. 36993 path="$complete" 36994 arguments="EOL" 36995 new_path="$path" 36996 36997 windows_path="$new_path" 36998 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36999 unix_path=`$CYGPATH -u "$windows_path"` 37000 new_path="$unix_path" 37001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37002 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37003 new_path="$unix_path" 37004 fi 37005 37006 37007 new_path=`$WHICH "$new_path" 2> /dev/null` 37008 # bat and cmd files are not always considered executable in MSYS causing which 37009 # to not find them 37010 if test "x$new_path" = x \ 37011 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37012 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37013 new_path="$path" 37014 37015 windows_path="$new_path" 37016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37017 unix_path=`$CYGPATH -u "$windows_path"` 37018 new_path="$unix_path" 37019 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37020 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37021 new_path="$unix_path" 37022 fi 37023 37024 fi 37025 37026 if test "x$new_path" = x; then 37027 # It's still not found. Now this is an unrecoverable error. 37028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37029 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37030 has_space=`$ECHO "$complete" | $GREP " "` 37031 if test "x$has_space" != x; then 37032 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37033 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37034 fi 37035 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37036 fi 37037 fi 37038 37039 # Now new_path has a complete unix path to the binary 37040 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37041 # Keep paths in /bin as-is, but remove trailing .exe if any 37042 new_path="${new_path/%.exe/}" 37043 # Do not save /bin paths to all_fixpath_prefixes! 37044 else 37045 # Not in mixed or Windows style, start by that. 37046 new_path=`cmd //c echo $new_path` 37047 37048 input_path="$new_path" 37049 # Check if we need to convert this using DOS-style short mode. If the path 37050 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37051 # take no chances and rewrite it. 37052 # Note: m4 eats our [], so we need to use [ and ] instead. 37053 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37054 if test "x$has_forbidden_chars" != x; then 37055 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37056 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37057 fi 37058 37059 # Output is in $new_path 37060 37061 windows_path="$new_path" 37062 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37063 unix_path=`$CYGPATH -u "$windows_path"` 37064 new_path="$unix_path" 37065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37066 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37067 new_path="$unix_path" 37068 fi 37069 37070 # remove trailing .exe if any 37071 new_path="${new_path/%.exe/}" 37072 37073 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37074 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37075 fi 37076 37077 else 37078 # We're on a unix platform. Hooray! :) 37079 # First separate the path from the arguments. This will split at the first 37080 # space. 37081 complete="$AS" 37082 path="${complete%% *}" 37083 tmp="$complete EOL" 37084 arguments="${tmp#* }" 37085 37086 # Cannot rely on the command "which" here since it doesn't always work. 37087 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37088 if test -z "$is_absolute_path"; then 37089 # Path to executable is not absolute. Find it. 37090 IFS_save="$IFS" 37091 IFS=: 37092 for p in $PATH; do 37093 if test -f "$p/$path" && test -x "$p/$path"; then 37094 new_path="$p/$path" 37095 break 37096 fi 37097 done 37098 IFS="$IFS_save" 37099 else 37100 # This is an absolute path, we can use it without further modifications. 37101 new_path="$path" 37102 fi 37103 37104 if test "x$new_path" = x; then 37105 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37106 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37107 has_space=`$ECHO "$complete" | $GREP " "` 37108 if test "x$has_space" != x; then 37109 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37110 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37111 fi 37112 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37113 fi 37114 fi 37115 37116 # Now join together the path and the arguments once again 37117 if test "x$arguments" != xEOL; then 37118 new_complete="$new_path ${arguments% *}" 37119 else 37120 new_complete="$new_path" 37121 fi 37122 37123 if test "x$complete" != "x$new_complete"; then 37124 AS="$new_complete" 37125 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 37126 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 37127 fi 37128 fi 37129 37130 if test "x$AS" = x; then 37131 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 37132 fi 37133 else 37134 # FIXME: is this correct for microsoft? 37135 AS="$CC -c" 37136 fi 37137 37138 37139 # 37140 # Setup the archiver (AR) 37141 # 37142 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37143 # The corresponding ar tool is lib.exe (used to create static libraries) 37144 # Extract the first word of "lib", so it can be a program name with args. 37145 set dummy lib; ac_word=$2 37146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37147 $as_echo_n "checking for $ac_word... " >&6; } 37148 if ${ac_cv_prog_AR+:} false; then : 37149 $as_echo_n "(cached) " >&6 37150 else 37151 if test -n "$AR"; then 37152 ac_cv_prog_AR="$AR" # Let the user override the test. 37153 else 37154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37155 for as_dir in $PATH 37156 do 37157 IFS=$as_save_IFS 37158 test -z "$as_dir" && as_dir=. 37159 for ac_exec_ext in '' $ac_executable_extensions; do 37160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37161 ac_cv_prog_AR="lib" 37162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37163 break 2 37164 fi 37165 done 37166 done 37167 IFS=$as_save_IFS 37168 37169 fi 37170 fi 37171 AR=$ac_cv_prog_AR 37172 if test -n "$AR"; then 37173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37174 $as_echo "$AR" >&6; } 37175 else 37176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37177 $as_echo "no" >&6; } 37178 fi 37179 37180 37181 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 37182 37183 37184 # Publish this variable in the help. 37185 37186 37187 if [ -z "${AR+x}" ]; then 37188 # The variable is not set by user, try to locate tool using the code snippet 37189 if test -n "$ac_tool_prefix"; then 37190 for ac_prog in ar gcc-ar 37191 do 37192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37195 $as_echo_n "checking for $ac_word... " >&6; } 37196 if ${ac_cv_prog_AR+:} false; then : 37197 $as_echo_n "(cached) " >&6 37198 else 37199 if test -n "$AR"; then 37200 ac_cv_prog_AR="$AR" # Let the user override the test. 37201 else 37202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37203 for as_dir in $PATH 37204 do 37205 IFS=$as_save_IFS 37206 test -z "$as_dir" && as_dir=. 37207 for ac_exec_ext in '' $ac_executable_extensions; do 37208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37209 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37211 break 2 37212 fi 37213 done 37214 done 37215 IFS=$as_save_IFS 37216 37217 fi 37218 fi 37219 AR=$ac_cv_prog_AR 37220 if test -n "$AR"; then 37221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37222 $as_echo "$AR" >&6; } 37223 else 37224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37225 $as_echo "no" >&6; } 37226 fi 37227 37228 37229 test -n "$AR" && break 37230 done 37231 fi 37232 if test -z "$AR"; then 37233 ac_ct_AR=$AR 37234 for ac_prog in ar gcc-ar 37235 do 37236 # Extract the first word of "$ac_prog", so it can be a program name with args. 37237 set dummy $ac_prog; ac_word=$2 37238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37239 $as_echo_n "checking for $ac_word... " >&6; } 37240 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37241 $as_echo_n "(cached) " >&6 37242 else 37243 if test -n "$ac_ct_AR"; then 37244 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37245 else 37246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37247 for as_dir in $PATH 37248 do 37249 IFS=$as_save_IFS 37250 test -z "$as_dir" && as_dir=. 37251 for ac_exec_ext in '' $ac_executable_extensions; do 37252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37253 ac_cv_prog_ac_ct_AR="$ac_prog" 37254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37255 break 2 37256 fi 37257 done 37258 done 37259 IFS=$as_save_IFS 37260 37261 fi 37262 fi 37263 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37264 if test -n "$ac_ct_AR"; then 37265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37266 $as_echo "$ac_ct_AR" >&6; } 37267 else 37268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37269 $as_echo "no" >&6; } 37270 fi 37271 37272 37273 test -n "$ac_ct_AR" && break 37274 done 37275 37276 if test "x$ac_ct_AR" = x; then 37277 AR="" 37278 else 37279 case $cross_compiling:$ac_tool_warned in 37280 yes:) 37281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37283 ac_tool_warned=yes ;; 37284 esac 37285 AR=$ac_ct_AR 37286 fi 37287 fi 37288 37289 else 37290 # The variable is set, but is it from the command line or the environment? 37291 37292 # Try to remove the string !AR! from our list. 37293 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 37294 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37295 # If it failed, the variable was not from the command line. Ignore it, 37296 # but warn the user (except for BASH, which is always set by the calling BASH). 37297 if test "xAR" != xBASH; then 37298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 37299 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 37300 fi 37301 # Try to locate tool using the code snippet 37302 if test -n "$ac_tool_prefix"; then 37303 for ac_prog in ar gcc-ar 37304 do 37305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37308 $as_echo_n "checking for $ac_word... " >&6; } 37309 if ${ac_cv_prog_AR+:} false; then : 37310 $as_echo_n "(cached) " >&6 37311 else 37312 if test -n "$AR"; then 37313 ac_cv_prog_AR="$AR" # Let the user override the test. 37314 else 37315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37316 for as_dir in $PATH 37317 do 37318 IFS=$as_save_IFS 37319 test -z "$as_dir" && as_dir=. 37320 for ac_exec_ext in '' $ac_executable_extensions; do 37321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37322 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37324 break 2 37325 fi 37326 done 37327 done 37328 IFS=$as_save_IFS 37329 37330 fi 37331 fi 37332 AR=$ac_cv_prog_AR 37333 if test -n "$AR"; then 37334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37335 $as_echo "$AR" >&6; } 37336 else 37337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37338 $as_echo "no" >&6; } 37339 fi 37340 37341 37342 test -n "$AR" && break 37343 done 37344 fi 37345 if test -z "$AR"; then 37346 ac_ct_AR=$AR 37347 for ac_prog in ar gcc-ar 37348 do 37349 # Extract the first word of "$ac_prog", so it can be a program name with args. 37350 set dummy $ac_prog; ac_word=$2 37351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37352 $as_echo_n "checking for $ac_word... " >&6; } 37353 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37354 $as_echo_n "(cached) " >&6 37355 else 37356 if test -n "$ac_ct_AR"; then 37357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37358 else 37359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37360 for as_dir in $PATH 37361 do 37362 IFS=$as_save_IFS 37363 test -z "$as_dir" && as_dir=. 37364 for ac_exec_ext in '' $ac_executable_extensions; do 37365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37366 ac_cv_prog_ac_ct_AR="$ac_prog" 37367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37368 break 2 37369 fi 37370 done 37371 done 37372 IFS=$as_save_IFS 37373 37374 fi 37375 fi 37376 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37377 if test -n "$ac_ct_AR"; then 37378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37379 $as_echo "$ac_ct_AR" >&6; } 37380 else 37381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37382 $as_echo "no" >&6; } 37383 fi 37384 37385 37386 test -n "$ac_ct_AR" && break 37387 done 37388 37389 if test "x$ac_ct_AR" = x; then 37390 AR="" 37391 else 37392 case $cross_compiling:$ac_tool_warned in 37393 yes:) 37394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37396 ac_tool_warned=yes ;; 37397 esac 37398 AR=$ac_ct_AR 37399 fi 37400 fi 37401 37402 else 37403 # If it succeeded, then it was overridden by the user. We will use it 37404 # for the tool. 37405 37406 # First remove it from the list of overridden variables, so we can test 37407 # for unknown variables in the end. 37408 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37409 37410 # Check if we try to supply an empty value 37411 if test "x$AR" = x; then 37412 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 37413 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 37414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37415 $as_echo_n "checking for AR... " >&6; } 37416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37417 $as_echo "disabled" >&6; } 37418 else 37419 # Check if the provided tool contains a complete path. 37420 tool_specified="$AR" 37421 tool_basename="${tool_specified##*/}" 37422 if test "x$tool_basename" = "x$tool_specified"; then 37423 # A command without a complete path is provided, search $PATH. 37424 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 37425 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 37426 # Extract the first word of "$tool_basename", so it can be a program name with args. 37427 set dummy $tool_basename; ac_word=$2 37428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37429 $as_echo_n "checking for $ac_word... " >&6; } 37430 if ${ac_cv_path_AR+:} false; then : 37431 $as_echo_n "(cached) " >&6 37432 else 37433 case $AR in 37434 [\\/]* | ?:[\\/]*) 37435 ac_cv_path_AR="$AR" # Let the user override the test with a path. 37436 ;; 37437 *) 37438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37439 for as_dir in $PATH 37440 do 37441 IFS=$as_save_IFS 37442 test -z "$as_dir" && as_dir=. 37443 for ac_exec_ext in '' $ac_executable_extensions; do 37444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37445 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 37446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37447 break 2 37448 fi 37449 done 37450 done 37451 IFS=$as_save_IFS 37452 37453 ;; 37454 esac 37455 fi 37456 AR=$ac_cv_path_AR 37457 if test -n "$AR"; then 37458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37459 $as_echo "$AR" >&6; } 37460 else 37461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37462 $as_echo "no" >&6; } 37463 fi 37464 37465 37466 if test "x$AR" = x; then 37467 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37468 fi 37469 else 37470 # Otherwise we believe it is a complete path. Use it as it is. 37471 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 37472 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 37473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37474 $as_echo_n "checking for AR... " >&6; } 37475 if test ! -x "$tool_specified"; then 37476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37477 $as_echo "not found" >&6; } 37478 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 37479 fi 37480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37481 $as_echo "$tool_specified" >&6; } 37482 fi 37483 fi 37484 fi 37485 37486 fi 37487 37488 37489 else 37490 37491 37492 # Publish this variable in the help. 37493 37494 37495 if [ -z "${AR+x}" ]; then 37496 # The variable is not set by user, try to locate tool using the code snippet 37497 if test -n "$ac_tool_prefix"; then 37498 for ac_prog in ar 37499 do 37500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37503 $as_echo_n "checking for $ac_word... " >&6; } 37504 if ${ac_cv_prog_AR+:} false; then : 37505 $as_echo_n "(cached) " >&6 37506 else 37507 if test -n "$AR"; then 37508 ac_cv_prog_AR="$AR" # Let the user override the test. 37509 else 37510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37511 for as_dir in $PATH 37512 do 37513 IFS=$as_save_IFS 37514 test -z "$as_dir" && as_dir=. 37515 for ac_exec_ext in '' $ac_executable_extensions; do 37516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37517 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37519 break 2 37520 fi 37521 done 37522 done 37523 IFS=$as_save_IFS 37524 37525 fi 37526 fi 37527 AR=$ac_cv_prog_AR 37528 if test -n "$AR"; then 37529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37530 $as_echo "$AR" >&6; } 37531 else 37532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37533 $as_echo "no" >&6; } 37534 fi 37535 37536 37537 test -n "$AR" && break 37538 done 37539 fi 37540 if test -z "$AR"; then 37541 ac_ct_AR=$AR 37542 for ac_prog in ar 37543 do 37544 # Extract the first word of "$ac_prog", so it can be a program name with args. 37545 set dummy $ac_prog; ac_word=$2 37546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37547 $as_echo_n "checking for $ac_word... " >&6; } 37548 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37549 $as_echo_n "(cached) " >&6 37550 else 37551 if test -n "$ac_ct_AR"; then 37552 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37553 else 37554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37555 for as_dir in $PATH 37556 do 37557 IFS=$as_save_IFS 37558 test -z "$as_dir" && as_dir=. 37559 for ac_exec_ext in '' $ac_executable_extensions; do 37560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37561 ac_cv_prog_ac_ct_AR="$ac_prog" 37562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37563 break 2 37564 fi 37565 done 37566 done 37567 IFS=$as_save_IFS 37568 37569 fi 37570 fi 37571 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37572 if test -n "$ac_ct_AR"; then 37573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37574 $as_echo "$ac_ct_AR" >&6; } 37575 else 37576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37577 $as_echo "no" >&6; } 37578 fi 37579 37580 37581 test -n "$ac_ct_AR" && break 37582 done 37583 37584 if test "x$ac_ct_AR" = x; then 37585 AR="" 37586 else 37587 case $cross_compiling:$ac_tool_warned in 37588 yes:) 37589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37591 ac_tool_warned=yes ;; 37592 esac 37593 AR=$ac_ct_AR 37594 fi 37595 fi 37596 37597 else 37598 # The variable is set, but is it from the command line or the environment? 37599 37600 # Try to remove the string !AR! from our list. 37601 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 37602 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37603 # If it failed, the variable was not from the command line. Ignore it, 37604 # but warn the user (except for BASH, which is always set by the calling BASH). 37605 if test "xAR" != xBASH; then 37606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 37607 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 37608 fi 37609 # Try to locate tool using the code snippet 37610 if test -n "$ac_tool_prefix"; then 37611 for ac_prog in ar 37612 do 37613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37616 $as_echo_n "checking for $ac_word... " >&6; } 37617 if ${ac_cv_prog_AR+:} false; then : 37618 $as_echo_n "(cached) " >&6 37619 else 37620 if test -n "$AR"; then 37621 ac_cv_prog_AR="$AR" # Let the user override the test. 37622 else 37623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37624 for as_dir in $PATH 37625 do 37626 IFS=$as_save_IFS 37627 test -z "$as_dir" && as_dir=. 37628 for ac_exec_ext in '' $ac_executable_extensions; do 37629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37630 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37632 break 2 37633 fi 37634 done 37635 done 37636 IFS=$as_save_IFS 37637 37638 fi 37639 fi 37640 AR=$ac_cv_prog_AR 37641 if test -n "$AR"; then 37642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37643 $as_echo "$AR" >&6; } 37644 else 37645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37646 $as_echo "no" >&6; } 37647 fi 37648 37649 37650 test -n "$AR" && break 37651 done 37652 fi 37653 if test -z "$AR"; then 37654 ac_ct_AR=$AR 37655 for ac_prog in ar 37656 do 37657 # Extract the first word of "$ac_prog", so it can be a program name with args. 37658 set dummy $ac_prog; ac_word=$2 37659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37660 $as_echo_n "checking for $ac_word... " >&6; } 37661 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37662 $as_echo_n "(cached) " >&6 37663 else 37664 if test -n "$ac_ct_AR"; then 37665 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37666 else 37667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37668 for as_dir in $PATH 37669 do 37670 IFS=$as_save_IFS 37671 test -z "$as_dir" && as_dir=. 37672 for ac_exec_ext in '' $ac_executable_extensions; do 37673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37674 ac_cv_prog_ac_ct_AR="$ac_prog" 37675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37676 break 2 37677 fi 37678 done 37679 done 37680 IFS=$as_save_IFS 37681 37682 fi 37683 fi 37684 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37685 if test -n "$ac_ct_AR"; then 37686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37687 $as_echo "$ac_ct_AR" >&6; } 37688 else 37689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37690 $as_echo "no" >&6; } 37691 fi 37692 37693 37694 test -n "$ac_ct_AR" && break 37695 done 37696 37697 if test "x$ac_ct_AR" = x; then 37698 AR="" 37699 else 37700 case $cross_compiling:$ac_tool_warned in 37701 yes:) 37702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37704 ac_tool_warned=yes ;; 37705 esac 37706 AR=$ac_ct_AR 37707 fi 37708 fi 37709 37710 else 37711 # If it succeeded, then it was overridden by the user. We will use it 37712 # for the tool. 37713 37714 # First remove it from the list of overridden variables, so we can test 37715 # for unknown variables in the end. 37716 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37717 37718 # Check if we try to supply an empty value 37719 if test "x$AR" = x; then 37720 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 37721 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 37722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37723 $as_echo_n "checking for AR... " >&6; } 37724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37725 $as_echo "disabled" >&6; } 37726 else 37727 # Check if the provided tool contains a complete path. 37728 tool_specified="$AR" 37729 tool_basename="${tool_specified##*/}" 37730 if test "x$tool_basename" = "x$tool_specified"; then 37731 # A command without a complete path is provided, search $PATH. 37732 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 37733 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 37734 # Extract the first word of "$tool_basename", so it can be a program name with args. 37735 set dummy $tool_basename; ac_word=$2 37736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37737 $as_echo_n "checking for $ac_word... " >&6; } 37738 if ${ac_cv_path_AR+:} false; then : 37739 $as_echo_n "(cached) " >&6 37740 else 37741 case $AR in 37742 [\\/]* | ?:[\\/]*) 37743 ac_cv_path_AR="$AR" # Let the user override the test with a path. 37744 ;; 37745 *) 37746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37747 for as_dir in $PATH 37748 do 37749 IFS=$as_save_IFS 37750 test -z "$as_dir" && as_dir=. 37751 for ac_exec_ext in '' $ac_executable_extensions; do 37752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37753 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 37754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37755 break 2 37756 fi 37757 done 37758 done 37759 IFS=$as_save_IFS 37760 37761 ;; 37762 esac 37763 fi 37764 AR=$ac_cv_path_AR 37765 if test -n "$AR"; then 37766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37767 $as_echo "$AR" >&6; } 37768 else 37769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37770 $as_echo "no" >&6; } 37771 fi 37772 37773 37774 if test "x$AR" = x; then 37775 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37776 fi 37777 else 37778 # Otherwise we believe it is a complete path. Use it as it is. 37779 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 37780 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 37781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37782 $as_echo_n "checking for AR... " >&6; } 37783 if test ! -x "$tool_specified"; then 37784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37785 $as_echo "not found" >&6; } 37786 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 37787 fi 37788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37789 $as_echo "$tool_specified" >&6; } 37790 fi 37791 fi 37792 fi 37793 37794 fi 37795 37796 37797 fi 37798 37799 # Only process if variable expands to non-empty 37800 37801 if test "x$AR" != x; then 37802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37803 37804 # First separate the path from the arguments. This will split at the first 37805 # space. 37806 complete="$AR" 37807 path="${complete%% *}" 37808 tmp="$complete EOL" 37809 arguments="${tmp#* }" 37810 37811 # Input might be given as Windows format, start by converting to 37812 # unix format. 37813 new_path=`$CYGPATH -u "$path"` 37814 37815 # Now try to locate executable using which 37816 new_path=`$WHICH "$new_path" 2> /dev/null` 37817 # bat and cmd files are not always considered executable in cygwin causing which 37818 # to not find them 37819 if test "x$new_path" = x \ 37820 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37821 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37822 new_path=`$CYGPATH -u "$path"` 37823 fi 37824 if test "x$new_path" = x; then 37825 # Oops. Which didn't find the executable. 37826 # The splitting of arguments from the executable at a space might have been incorrect, 37827 # since paths with space are more likely in Windows. Give it another try with the whole 37828 # argument. 37829 path="$complete" 37830 arguments="EOL" 37831 new_path=`$CYGPATH -u "$path"` 37832 new_path=`$WHICH "$new_path" 2> /dev/null` 37833 # bat and cmd files are not always considered executable in cygwin causing which 37834 # to not find them 37835 if test "x$new_path" = x \ 37836 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37837 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37838 new_path=`$CYGPATH -u "$path"` 37839 fi 37840 if test "x$new_path" = x; then 37841 # It's still not found. Now this is an unrecoverable error. 37842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37843 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37844 has_space=`$ECHO "$complete" | $GREP " "` 37845 if test "x$has_space" != x; then 37846 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37847 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37848 fi 37849 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37850 fi 37851 fi 37852 37853 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37854 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37855 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37856 # "foo.exe" is OK but "foo" is an error. 37857 # 37858 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37859 # It is also a way to make sure we got the proper file name for the real test later on. 37860 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37861 if test "x$test_shortpath" = x; then 37862 # Short path failed, file does not exist as specified. 37863 # Try adding .exe or .cmd 37864 if test -f "${new_path}.exe"; then 37865 input_to_shortpath="${new_path}.exe" 37866 elif test -f "${new_path}.cmd"; then 37867 input_to_shortpath="${new_path}.cmd" 37868 else 37869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 37870 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 37871 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37872 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37873 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37874 fi 37875 else 37876 input_to_shortpath="$new_path" 37877 fi 37878 37879 # Call helper function which possibly converts this using DOS-style short mode. 37880 # If so, the updated path is stored in $new_path. 37881 new_path="$input_to_shortpath" 37882 37883 input_path="$input_to_shortpath" 37884 # Check if we need to convert this using DOS-style short mode. If the path 37885 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37886 # take no chances and rewrite it. 37887 # Note: m4 eats our [], so we need to use [ and ] instead. 37888 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37889 if test "x$has_forbidden_chars" != x; then 37890 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37891 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37892 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37893 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37894 # Going to short mode and back again did indeed matter. Since short mode is 37895 # case insensitive, let's make it lowercase to improve readability. 37896 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37897 # Now convert it back to Unix-style (cygpath) 37898 input_path=`$CYGPATH -u "$shortmode_path"` 37899 new_path="$input_path" 37900 fi 37901 fi 37902 37903 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37904 if test "x$test_cygdrive_prefix" = x; then 37905 # As a simple fix, exclude /usr/bin since it's not a real path. 37906 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37907 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37908 # a path prefixed by /cygdrive for fixpath to work. 37909 new_path="$CYGWIN_ROOT_PATH$input_path" 37910 fi 37911 fi 37912 37913 # remove trailing .exe if any 37914 new_path="${new_path/%.exe/}" 37915 37916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37917 37918 # First separate the path from the arguments. This will split at the first 37919 # space. 37920 complete="$AR" 37921 path="${complete%% *}" 37922 tmp="$complete EOL" 37923 arguments="${tmp#* }" 37924 37925 # Input might be given as Windows format, start by converting to 37926 # unix format. 37927 new_path="$path" 37928 37929 windows_path="$new_path" 37930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37931 unix_path=`$CYGPATH -u "$windows_path"` 37932 new_path="$unix_path" 37933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37934 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37935 new_path="$unix_path" 37936 fi 37937 37938 37939 # Now try to locate executable using which 37940 new_path=`$WHICH "$new_path" 2> /dev/null` 37941 37942 if test "x$new_path" = x; then 37943 # Oops. Which didn't find the executable. 37944 # The splitting of arguments from the executable at a space might have been incorrect, 37945 # since paths with space are more likely in Windows. Give it another try with the whole 37946 # argument. 37947 path="$complete" 37948 arguments="EOL" 37949 new_path="$path" 37950 37951 windows_path="$new_path" 37952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37953 unix_path=`$CYGPATH -u "$windows_path"` 37954 new_path="$unix_path" 37955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37956 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37957 new_path="$unix_path" 37958 fi 37959 37960 37961 new_path=`$WHICH "$new_path" 2> /dev/null` 37962 # bat and cmd files are not always considered executable in MSYS causing which 37963 # to not find them 37964 if test "x$new_path" = x \ 37965 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37966 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37967 new_path="$path" 37968 37969 windows_path="$new_path" 37970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37971 unix_path=`$CYGPATH -u "$windows_path"` 37972 new_path="$unix_path" 37973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37975 new_path="$unix_path" 37976 fi 37977 37978 fi 37979 37980 if test "x$new_path" = x; then 37981 # It's still not found. Now this is an unrecoverable error. 37982 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37983 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37984 has_space=`$ECHO "$complete" | $GREP " "` 37985 if test "x$has_space" != x; then 37986 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37987 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37988 fi 37989 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37990 fi 37991 fi 37992 37993 # Now new_path has a complete unix path to the binary 37994 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37995 # Keep paths in /bin as-is, but remove trailing .exe if any 37996 new_path="${new_path/%.exe/}" 37997 # Do not save /bin paths to all_fixpath_prefixes! 37998 else 37999 # Not in mixed or Windows style, start by that. 38000 new_path=`cmd //c echo $new_path` 38001 38002 input_path="$new_path" 38003 # Check if we need to convert this using DOS-style short mode. If the path 38004 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38005 # take no chances and rewrite it. 38006 # Note: m4 eats our [], so we need to use [ and ] instead. 38007 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38008 if test "x$has_forbidden_chars" != x; then 38009 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38010 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38011 fi 38012 38013 # Output is in $new_path 38014 38015 windows_path="$new_path" 38016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38017 unix_path=`$CYGPATH -u "$windows_path"` 38018 new_path="$unix_path" 38019 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38020 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38021 new_path="$unix_path" 38022 fi 38023 38024 # remove trailing .exe if any 38025 new_path="${new_path/%.exe/}" 38026 38027 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38028 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38029 fi 38030 38031 else 38032 # We're on a unix platform. Hooray! :) 38033 # First separate the path from the arguments. This will split at the first 38034 # space. 38035 complete="$AR" 38036 path="${complete%% *}" 38037 tmp="$complete EOL" 38038 arguments="${tmp#* }" 38039 38040 # Cannot rely on the command "which" here since it doesn't always work. 38041 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38042 if test -z "$is_absolute_path"; then 38043 # Path to executable is not absolute. Find it. 38044 IFS_save="$IFS" 38045 IFS=: 38046 for p in $PATH; do 38047 if test -f "$p/$path" && test -x "$p/$path"; then 38048 new_path="$p/$path" 38049 break 38050 fi 38051 done 38052 IFS="$IFS_save" 38053 else 38054 # This is an absolute path, we can use it without further modifications. 38055 new_path="$path" 38056 fi 38057 38058 if test "x$new_path" = x; then 38059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38060 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38061 has_space=`$ECHO "$complete" | $GREP " "` 38062 if test "x$has_space" != x; then 38063 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38064 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38065 fi 38066 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38067 fi 38068 fi 38069 38070 # Now join together the path and the arguments once again 38071 if test "x$arguments" != xEOL; then 38072 new_complete="$new_path ${arguments% *}" 38073 else 38074 new_complete="$new_path" 38075 fi 38076 38077 if test "x$complete" != "x$new_complete"; then 38078 AR="$new_complete" 38079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 38080 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 38081 fi 38082 fi 38083 38084 38085 38086 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 38087 38088 38089 # Publish this variable in the help. 38090 38091 38092 if [ -z "${LIPO+x}" ]; then 38093 # The variable is not set by user, try to locate tool using the code snippet 38094 for ac_prog in lipo 38095 do 38096 # Extract the first word of "$ac_prog", so it can be a program name with args. 38097 set dummy $ac_prog; ac_word=$2 38098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38099 $as_echo_n "checking for $ac_word... " >&6; } 38100 if ${ac_cv_path_LIPO+:} false; then : 38101 $as_echo_n "(cached) " >&6 38102 else 38103 case $LIPO in 38104 [\\/]* | ?:[\\/]*) 38105 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38106 ;; 38107 *) 38108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38109 for as_dir in $PATH 38110 do 38111 IFS=$as_save_IFS 38112 test -z "$as_dir" && as_dir=. 38113 for ac_exec_ext in '' $ac_executable_extensions; do 38114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38115 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38117 break 2 38118 fi 38119 done 38120 done 38121 IFS=$as_save_IFS 38122 38123 ;; 38124 esac 38125 fi 38126 LIPO=$ac_cv_path_LIPO 38127 if test -n "$LIPO"; then 38128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38129 $as_echo "$LIPO" >&6; } 38130 else 38131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38132 $as_echo "no" >&6; } 38133 fi 38134 38135 38136 test -n "$LIPO" && break 38137 done 38138 38139 else 38140 # The variable is set, but is it from the command line or the environment? 38141 38142 # Try to remove the string !LIPO! from our list. 38143 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 38144 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38145 # If it failed, the variable was not from the command line. Ignore it, 38146 # but warn the user (except for BASH, which is always set by the calling BASH). 38147 if test "xLIPO" != xBASH; then 38148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 38149 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 38150 fi 38151 # Try to locate tool using the code snippet 38152 for ac_prog in lipo 38153 do 38154 # Extract the first word of "$ac_prog", so it can be a program name with args. 38155 set dummy $ac_prog; ac_word=$2 38156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38157 $as_echo_n "checking for $ac_word... " >&6; } 38158 if ${ac_cv_path_LIPO+:} false; then : 38159 $as_echo_n "(cached) " >&6 38160 else 38161 case $LIPO in 38162 [\\/]* | ?:[\\/]*) 38163 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38164 ;; 38165 *) 38166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38167 for as_dir in $PATH 38168 do 38169 IFS=$as_save_IFS 38170 test -z "$as_dir" && as_dir=. 38171 for ac_exec_ext in '' $ac_executable_extensions; do 38172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38173 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38175 break 2 38176 fi 38177 done 38178 done 38179 IFS=$as_save_IFS 38180 38181 ;; 38182 esac 38183 fi 38184 LIPO=$ac_cv_path_LIPO 38185 if test -n "$LIPO"; then 38186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38187 $as_echo "$LIPO" >&6; } 38188 else 38189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38190 $as_echo "no" >&6; } 38191 fi 38192 38193 38194 test -n "$LIPO" && break 38195 done 38196 38197 else 38198 # If it succeeded, then it was overridden by the user. We will use it 38199 # for the tool. 38200 38201 # First remove it from the list of overridden variables, so we can test 38202 # for unknown variables in the end. 38203 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38204 38205 # Check if we try to supply an empty value 38206 if test "x$LIPO" = x; then 38207 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 38208 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 38209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38210 $as_echo_n "checking for LIPO... " >&6; } 38211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38212 $as_echo "disabled" >&6; } 38213 else 38214 # Check if the provided tool contains a complete path. 38215 tool_specified="$LIPO" 38216 tool_basename="${tool_specified##*/}" 38217 if test "x$tool_basename" = "x$tool_specified"; then 38218 # A command without a complete path is provided, search $PATH. 38219 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 38220 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 38221 # Extract the first word of "$tool_basename", so it can be a program name with args. 38222 set dummy $tool_basename; ac_word=$2 38223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38224 $as_echo_n "checking for $ac_word... " >&6; } 38225 if ${ac_cv_path_LIPO+:} false; then : 38226 $as_echo_n "(cached) " >&6 38227 else 38228 case $LIPO in 38229 [\\/]* | ?:[\\/]*) 38230 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38231 ;; 38232 *) 38233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38234 for as_dir in $PATH 38235 do 38236 IFS=$as_save_IFS 38237 test -z "$as_dir" && as_dir=. 38238 for ac_exec_ext in '' $ac_executable_extensions; do 38239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38240 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38242 break 2 38243 fi 38244 done 38245 done 38246 IFS=$as_save_IFS 38247 38248 ;; 38249 esac 38250 fi 38251 LIPO=$ac_cv_path_LIPO 38252 if test -n "$LIPO"; then 38253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38254 $as_echo "$LIPO" >&6; } 38255 else 38256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38257 $as_echo "no" >&6; } 38258 fi 38259 38260 38261 if test "x$LIPO" = x; then 38262 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38263 fi 38264 else 38265 # Otherwise we believe it is a complete path. Use it as it is. 38266 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 38267 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 38268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38269 $as_echo_n "checking for LIPO... " >&6; } 38270 if test ! -x "$tool_specified"; then 38271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38272 $as_echo "not found" >&6; } 38273 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 38274 fi 38275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38276 $as_echo "$tool_specified" >&6; } 38277 fi 38278 fi 38279 fi 38280 38281 fi 38282 38283 38284 38285 # Only process if variable expands to non-empty 38286 38287 if test "x$LIPO" != x; then 38288 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38289 38290 # First separate the path from the arguments. This will split at the first 38291 # space. 38292 complete="$LIPO" 38293 path="${complete%% *}" 38294 tmp="$complete EOL" 38295 arguments="${tmp#* }" 38296 38297 # Input might be given as Windows format, start by converting to 38298 # unix format. 38299 new_path=`$CYGPATH -u "$path"` 38300 38301 # Now try to locate executable using which 38302 new_path=`$WHICH "$new_path" 2> /dev/null` 38303 # bat and cmd files are not always considered executable in cygwin causing which 38304 # to not find them 38305 if test "x$new_path" = x \ 38306 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38307 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38308 new_path=`$CYGPATH -u "$path"` 38309 fi 38310 if test "x$new_path" = x; then 38311 # Oops. Which didn't find the executable. 38312 # The splitting of arguments from the executable at a space might have been incorrect, 38313 # since paths with space are more likely in Windows. Give it another try with the whole 38314 # argument. 38315 path="$complete" 38316 arguments="EOL" 38317 new_path=`$CYGPATH -u "$path"` 38318 new_path=`$WHICH "$new_path" 2> /dev/null` 38319 # bat and cmd files are not always considered executable in cygwin causing which 38320 # to not find them 38321 if test "x$new_path" = x \ 38322 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38323 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38324 new_path=`$CYGPATH -u "$path"` 38325 fi 38326 if test "x$new_path" = x; then 38327 # It's still not found. Now this is an unrecoverable error. 38328 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38329 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38330 has_space=`$ECHO "$complete" | $GREP " "` 38331 if test "x$has_space" != x; then 38332 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38333 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38334 fi 38335 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38336 fi 38337 fi 38338 38339 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38340 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38341 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38342 # "foo.exe" is OK but "foo" is an error. 38343 # 38344 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38345 # It is also a way to make sure we got the proper file name for the real test later on. 38346 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38347 if test "x$test_shortpath" = x; then 38348 # Short path failed, file does not exist as specified. 38349 # Try adding .exe or .cmd 38350 if test -f "${new_path}.exe"; then 38351 input_to_shortpath="${new_path}.exe" 38352 elif test -f "${new_path}.cmd"; then 38353 input_to_shortpath="${new_path}.cmd" 38354 else 38355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 38356 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 38357 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38358 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38359 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38360 fi 38361 else 38362 input_to_shortpath="$new_path" 38363 fi 38364 38365 # Call helper function which possibly converts this using DOS-style short mode. 38366 # If so, the updated path is stored in $new_path. 38367 new_path="$input_to_shortpath" 38368 38369 input_path="$input_to_shortpath" 38370 # Check if we need to convert this using DOS-style short mode. If the path 38371 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38372 # take no chances and rewrite it. 38373 # Note: m4 eats our [], so we need to use [ and ] instead. 38374 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38375 if test "x$has_forbidden_chars" != x; then 38376 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38377 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38378 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38379 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38380 # Going to short mode and back again did indeed matter. Since short mode is 38381 # case insensitive, let's make it lowercase to improve readability. 38382 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38383 # Now convert it back to Unix-style (cygpath) 38384 input_path=`$CYGPATH -u "$shortmode_path"` 38385 new_path="$input_path" 38386 fi 38387 fi 38388 38389 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38390 if test "x$test_cygdrive_prefix" = x; then 38391 # As a simple fix, exclude /usr/bin since it's not a real path. 38392 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38393 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38394 # a path prefixed by /cygdrive for fixpath to work. 38395 new_path="$CYGWIN_ROOT_PATH$input_path" 38396 fi 38397 fi 38398 38399 # remove trailing .exe if any 38400 new_path="${new_path/%.exe/}" 38401 38402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38403 38404 # First separate the path from the arguments. This will split at the first 38405 # space. 38406 complete="$LIPO" 38407 path="${complete%% *}" 38408 tmp="$complete EOL" 38409 arguments="${tmp#* }" 38410 38411 # Input might be given as Windows format, start by converting to 38412 # unix format. 38413 new_path="$path" 38414 38415 windows_path="$new_path" 38416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38417 unix_path=`$CYGPATH -u "$windows_path"` 38418 new_path="$unix_path" 38419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38420 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38421 new_path="$unix_path" 38422 fi 38423 38424 38425 # Now try to locate executable using which 38426 new_path=`$WHICH "$new_path" 2> /dev/null` 38427 38428 if test "x$new_path" = x; then 38429 # Oops. Which didn't find the executable. 38430 # The splitting of arguments from the executable at a space might have been incorrect, 38431 # since paths with space are more likely in Windows. Give it another try with the whole 38432 # argument. 38433 path="$complete" 38434 arguments="EOL" 38435 new_path="$path" 38436 38437 windows_path="$new_path" 38438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38439 unix_path=`$CYGPATH -u "$windows_path"` 38440 new_path="$unix_path" 38441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38442 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38443 new_path="$unix_path" 38444 fi 38445 38446 38447 new_path=`$WHICH "$new_path" 2> /dev/null` 38448 # bat and cmd files are not always considered executable in MSYS causing which 38449 # to not find them 38450 if test "x$new_path" = x \ 38451 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38452 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38453 new_path="$path" 38454 38455 windows_path="$new_path" 38456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38457 unix_path=`$CYGPATH -u "$windows_path"` 38458 new_path="$unix_path" 38459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38460 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38461 new_path="$unix_path" 38462 fi 38463 38464 fi 38465 38466 if test "x$new_path" = x; then 38467 # It's still not found. Now this is an unrecoverable error. 38468 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38469 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38470 has_space=`$ECHO "$complete" | $GREP " "` 38471 if test "x$has_space" != x; then 38472 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38473 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38474 fi 38475 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38476 fi 38477 fi 38478 38479 # Now new_path has a complete unix path to the binary 38480 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38481 # Keep paths in /bin as-is, but remove trailing .exe if any 38482 new_path="${new_path/%.exe/}" 38483 # Do not save /bin paths to all_fixpath_prefixes! 38484 else 38485 # Not in mixed or Windows style, start by that. 38486 new_path=`cmd //c echo $new_path` 38487 38488 input_path="$new_path" 38489 # Check if we need to convert this using DOS-style short mode. If the path 38490 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38491 # take no chances and rewrite it. 38492 # Note: m4 eats our [], so we need to use [ and ] instead. 38493 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38494 if test "x$has_forbidden_chars" != x; then 38495 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38496 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38497 fi 38498 38499 # Output is in $new_path 38500 38501 windows_path="$new_path" 38502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38503 unix_path=`$CYGPATH -u "$windows_path"` 38504 new_path="$unix_path" 38505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38506 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38507 new_path="$unix_path" 38508 fi 38509 38510 # remove trailing .exe if any 38511 new_path="${new_path/%.exe/}" 38512 38513 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38514 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38515 fi 38516 38517 else 38518 # We're on a unix platform. Hooray! :) 38519 # First separate the path from the arguments. This will split at the first 38520 # space. 38521 complete="$LIPO" 38522 path="${complete%% *}" 38523 tmp="$complete EOL" 38524 arguments="${tmp#* }" 38525 38526 # Cannot rely on the command "which" here since it doesn't always work. 38527 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38528 if test -z "$is_absolute_path"; then 38529 # Path to executable is not absolute. Find it. 38530 IFS_save="$IFS" 38531 IFS=: 38532 for p in $PATH; do 38533 if test -f "$p/$path" && test -x "$p/$path"; then 38534 new_path="$p/$path" 38535 break 38536 fi 38537 done 38538 IFS="$IFS_save" 38539 else 38540 # This is an absolute path, we can use it without further modifications. 38541 new_path="$path" 38542 fi 38543 38544 if test "x$new_path" = x; then 38545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38546 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38547 has_space=`$ECHO "$complete" | $GREP " "` 38548 if test "x$has_space" != x; then 38549 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38550 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38551 fi 38552 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38553 fi 38554 fi 38555 38556 # Now join together the path and the arguments once again 38557 if test "x$arguments" != xEOL; then 38558 new_complete="$new_path ${arguments% *}" 38559 else 38560 new_complete="$new_path" 38561 fi 38562 38563 if test "x$complete" != "x$new_complete"; then 38564 LIPO="$new_complete" 38565 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 38566 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 38567 fi 38568 fi 38569 38570 fi 38571 38572 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38573 # Extract the first word of "mt", so it can be a program name with args. 38574 set dummy mt; ac_word=$2 38575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38576 $as_echo_n "checking for $ac_word... " >&6; } 38577 if ${ac_cv_prog_MT+:} false; then : 38578 $as_echo_n "(cached) " >&6 38579 else 38580 if test -n "$MT"; then 38581 ac_cv_prog_MT="$MT" # Let the user override the test. 38582 else 38583 ac_prog_rejected=no 38584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38585 for as_dir in $PATH 38586 do 38587 IFS=$as_save_IFS 38588 test -z "$as_dir" && as_dir=. 38589 for ac_exec_ext in '' $ac_executable_extensions; do 38590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 38592 ac_prog_rejected=yes 38593 continue 38594 fi 38595 ac_cv_prog_MT="mt" 38596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38597 break 2 38598 fi 38599 done 38600 done 38601 IFS=$as_save_IFS 38602 38603 if test $ac_prog_rejected = yes; then 38604 # We found a bogon in the path, so make sure we never use it. 38605 set dummy $ac_cv_prog_MT 38606 shift 38607 if test $# != 0; then 38608 # We chose a different compiler from the bogus one. 38609 # However, it has the same basename, so the bogon will be chosen 38610 # first if we set MT to just the basename; use the full file name. 38611 shift 38612 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 38613 fi 38614 fi 38615 fi 38616 fi 38617 MT=$ac_cv_prog_MT 38618 if test -n "$MT"; then 38619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 38620 $as_echo "$MT" >&6; } 38621 else 38622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38623 $as_echo "no" >&6; } 38624 fi 38625 38626 38627 38628 # Only process if variable expands to non-empty 38629 38630 if test "x$MT" != x; then 38631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38632 38633 # First separate the path from the arguments. This will split at the first 38634 # space. 38635 complete="$MT" 38636 path="${complete%% *}" 38637 tmp="$complete EOL" 38638 arguments="${tmp#* }" 38639 38640 # Input might be given as Windows format, start by converting to 38641 # unix format. 38642 new_path=`$CYGPATH -u "$path"` 38643 38644 # Now try to locate executable using which 38645 new_path=`$WHICH "$new_path" 2> /dev/null` 38646 # bat and cmd files are not always considered executable in cygwin causing which 38647 # to not find them 38648 if test "x$new_path" = x \ 38649 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38650 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38651 new_path=`$CYGPATH -u "$path"` 38652 fi 38653 if test "x$new_path" = x; then 38654 # Oops. Which didn't find the executable. 38655 # The splitting of arguments from the executable at a space might have been incorrect, 38656 # since paths with space are more likely in Windows. Give it another try with the whole 38657 # argument. 38658 path="$complete" 38659 arguments="EOL" 38660 new_path=`$CYGPATH -u "$path"` 38661 new_path=`$WHICH "$new_path" 2> /dev/null` 38662 # bat and cmd files are not always considered executable in cygwin causing which 38663 # to not find them 38664 if test "x$new_path" = x \ 38665 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38666 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38667 new_path=`$CYGPATH -u "$path"` 38668 fi 38669 if test "x$new_path" = x; then 38670 # It's still not found. Now this is an unrecoverable error. 38671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38672 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38673 has_space=`$ECHO "$complete" | $GREP " "` 38674 if test "x$has_space" != x; then 38675 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38676 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38677 fi 38678 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38679 fi 38680 fi 38681 38682 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38683 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38684 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38685 # "foo.exe" is OK but "foo" is an error. 38686 # 38687 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38688 # It is also a way to make sure we got the proper file name for the real test later on. 38689 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38690 if test "x$test_shortpath" = x; then 38691 # Short path failed, file does not exist as specified. 38692 # Try adding .exe or .cmd 38693 if test -f "${new_path}.exe"; then 38694 input_to_shortpath="${new_path}.exe" 38695 elif test -f "${new_path}.cmd"; then 38696 input_to_shortpath="${new_path}.cmd" 38697 else 38698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 38699 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 38700 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38701 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38702 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38703 fi 38704 else 38705 input_to_shortpath="$new_path" 38706 fi 38707 38708 # Call helper function which possibly converts this using DOS-style short mode. 38709 # If so, the updated path is stored in $new_path. 38710 new_path="$input_to_shortpath" 38711 38712 input_path="$input_to_shortpath" 38713 # Check if we need to convert this using DOS-style short mode. If the path 38714 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38715 # take no chances and rewrite it. 38716 # Note: m4 eats our [], so we need to use [ and ] instead. 38717 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38718 if test "x$has_forbidden_chars" != x; then 38719 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38720 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38721 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38722 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38723 # Going to short mode and back again did indeed matter. Since short mode is 38724 # case insensitive, let's make it lowercase to improve readability. 38725 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38726 # Now convert it back to Unix-style (cygpath) 38727 input_path=`$CYGPATH -u "$shortmode_path"` 38728 new_path="$input_path" 38729 fi 38730 fi 38731 38732 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38733 if test "x$test_cygdrive_prefix" = x; then 38734 # As a simple fix, exclude /usr/bin since it's not a real path. 38735 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38736 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38737 # a path prefixed by /cygdrive for fixpath to work. 38738 new_path="$CYGWIN_ROOT_PATH$input_path" 38739 fi 38740 fi 38741 38742 # remove trailing .exe if any 38743 new_path="${new_path/%.exe/}" 38744 38745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38746 38747 # First separate the path from the arguments. This will split at the first 38748 # space. 38749 complete="$MT" 38750 path="${complete%% *}" 38751 tmp="$complete EOL" 38752 arguments="${tmp#* }" 38753 38754 # Input might be given as Windows format, start by converting to 38755 # unix format. 38756 new_path="$path" 38757 38758 windows_path="$new_path" 38759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38760 unix_path=`$CYGPATH -u "$windows_path"` 38761 new_path="$unix_path" 38762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38763 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38764 new_path="$unix_path" 38765 fi 38766 38767 38768 # Now try to locate executable using which 38769 new_path=`$WHICH "$new_path" 2> /dev/null` 38770 38771 if test "x$new_path" = x; then 38772 # Oops. Which didn't find the executable. 38773 # The splitting of arguments from the executable at a space might have been incorrect, 38774 # since paths with space are more likely in Windows. Give it another try with the whole 38775 # argument. 38776 path="$complete" 38777 arguments="EOL" 38778 new_path="$path" 38779 38780 windows_path="$new_path" 38781 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38782 unix_path=`$CYGPATH -u "$windows_path"` 38783 new_path="$unix_path" 38784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38785 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38786 new_path="$unix_path" 38787 fi 38788 38789 38790 new_path=`$WHICH "$new_path" 2> /dev/null` 38791 # bat and cmd files are not always considered executable in MSYS causing which 38792 # to not find them 38793 if test "x$new_path" = x \ 38794 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38795 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38796 new_path="$path" 38797 38798 windows_path="$new_path" 38799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38800 unix_path=`$CYGPATH -u "$windows_path"` 38801 new_path="$unix_path" 38802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38804 new_path="$unix_path" 38805 fi 38806 38807 fi 38808 38809 if test "x$new_path" = x; then 38810 # It's still not found. Now this is an unrecoverable error. 38811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38812 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38813 has_space=`$ECHO "$complete" | $GREP " "` 38814 if test "x$has_space" != x; then 38815 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38816 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38817 fi 38818 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38819 fi 38820 fi 38821 38822 # Now new_path has a complete unix path to the binary 38823 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38824 # Keep paths in /bin as-is, but remove trailing .exe if any 38825 new_path="${new_path/%.exe/}" 38826 # Do not save /bin paths to all_fixpath_prefixes! 38827 else 38828 # Not in mixed or Windows style, start by that. 38829 new_path=`cmd //c echo $new_path` 38830 38831 input_path="$new_path" 38832 # Check if we need to convert this using DOS-style short mode. If the path 38833 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38834 # take no chances and rewrite it. 38835 # Note: m4 eats our [], so we need to use [ and ] instead. 38836 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38837 if test "x$has_forbidden_chars" != x; then 38838 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38839 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38840 fi 38841 38842 # Output is in $new_path 38843 38844 windows_path="$new_path" 38845 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38846 unix_path=`$CYGPATH -u "$windows_path"` 38847 new_path="$unix_path" 38848 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38849 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38850 new_path="$unix_path" 38851 fi 38852 38853 # remove trailing .exe if any 38854 new_path="${new_path/%.exe/}" 38855 38856 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38857 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38858 fi 38859 38860 else 38861 # We're on a unix platform. Hooray! :) 38862 # First separate the path from the arguments. This will split at the first 38863 # space. 38864 complete="$MT" 38865 path="${complete%% *}" 38866 tmp="$complete EOL" 38867 arguments="${tmp#* }" 38868 38869 # Cannot rely on the command "which" here since it doesn't always work. 38870 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38871 if test -z "$is_absolute_path"; then 38872 # Path to executable is not absolute. Find it. 38873 IFS_save="$IFS" 38874 IFS=: 38875 for p in $PATH; do 38876 if test -f "$p/$path" && test -x "$p/$path"; then 38877 new_path="$p/$path" 38878 break 38879 fi 38880 done 38881 IFS="$IFS_save" 38882 else 38883 # This is an absolute path, we can use it without further modifications. 38884 new_path="$path" 38885 fi 38886 38887 if test "x$new_path" = x; then 38888 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38889 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38890 has_space=`$ECHO "$complete" | $GREP " "` 38891 if test "x$has_space" != x; then 38892 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38893 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38894 fi 38895 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38896 fi 38897 fi 38898 38899 # Now join together the path and the arguments once again 38900 if test "x$arguments" != xEOL; then 38901 new_complete="$new_path ${arguments% *}" 38902 else 38903 new_complete="$new_path" 38904 fi 38905 38906 if test "x$complete" != "x$new_complete"; then 38907 MT="$new_complete" 38908 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 38909 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 38910 fi 38911 fi 38912 38913 # Setup the resource compiler (RC) 38914 # Extract the first word of "rc", so it can be a program name with args. 38915 set dummy rc; ac_word=$2 38916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38917 $as_echo_n "checking for $ac_word... " >&6; } 38918 if ${ac_cv_prog_RC+:} false; then : 38919 $as_echo_n "(cached) " >&6 38920 else 38921 if test -n "$RC"; then 38922 ac_cv_prog_RC="$RC" # Let the user override the test. 38923 else 38924 ac_prog_rejected=no 38925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38926 for as_dir in $PATH 38927 do 38928 IFS=$as_save_IFS 38929 test -z "$as_dir" && as_dir=. 38930 for ac_exec_ext in '' $ac_executable_extensions; do 38931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 38933 ac_prog_rejected=yes 38934 continue 38935 fi 38936 ac_cv_prog_RC="rc" 38937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38938 break 2 38939 fi 38940 done 38941 done 38942 IFS=$as_save_IFS 38943 38944 if test $ac_prog_rejected = yes; then 38945 # We found a bogon in the path, so make sure we never use it. 38946 set dummy $ac_cv_prog_RC 38947 shift 38948 if test $# != 0; then 38949 # We chose a different compiler from the bogus one. 38950 # However, it has the same basename, so the bogon will be chosen 38951 # first if we set RC to just the basename; use the full file name. 38952 shift 38953 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 38954 fi 38955 fi 38956 fi 38957 fi 38958 RC=$ac_cv_prog_RC 38959 if test -n "$RC"; then 38960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 38961 $as_echo "$RC" >&6; } 38962 else 38963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38964 $as_echo "no" >&6; } 38965 fi 38966 38967 38968 38969 # Only process if variable expands to non-empty 38970 38971 if test "x$RC" != x; then 38972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38973 38974 # First separate the path from the arguments. This will split at the first 38975 # space. 38976 complete="$RC" 38977 path="${complete%% *}" 38978 tmp="$complete EOL" 38979 arguments="${tmp#* }" 38980 38981 # Input might be given as Windows format, start by converting to 38982 # unix format. 38983 new_path=`$CYGPATH -u "$path"` 38984 38985 # Now try to locate executable using which 38986 new_path=`$WHICH "$new_path" 2> /dev/null` 38987 # bat and cmd files are not always considered executable in cygwin causing which 38988 # to not find them 38989 if test "x$new_path" = x \ 38990 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38991 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38992 new_path=`$CYGPATH -u "$path"` 38993 fi 38994 if test "x$new_path" = x; then 38995 # Oops. Which didn't find the executable. 38996 # The splitting of arguments from the executable at a space might have been incorrect, 38997 # since paths with space are more likely in Windows. Give it another try with the whole 38998 # argument. 38999 path="$complete" 39000 arguments="EOL" 39001 new_path=`$CYGPATH -u "$path"` 39002 new_path=`$WHICH "$new_path" 2> /dev/null` 39003 # bat and cmd files are not always considered executable in cygwin causing which 39004 # to not find them 39005 if test "x$new_path" = x \ 39006 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39007 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39008 new_path=`$CYGPATH -u "$path"` 39009 fi 39010 if test "x$new_path" = x; then 39011 # It's still not found. Now this is an unrecoverable error. 39012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39013 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39014 has_space=`$ECHO "$complete" | $GREP " "` 39015 if test "x$has_space" != x; then 39016 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39017 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39018 fi 39019 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39020 fi 39021 fi 39022 39023 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39024 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39025 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39026 # "foo.exe" is OK but "foo" is an error. 39027 # 39028 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39029 # It is also a way to make sure we got the proper file name for the real test later on. 39030 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39031 if test "x$test_shortpath" = x; then 39032 # Short path failed, file does not exist as specified. 39033 # Try adding .exe or .cmd 39034 if test -f "${new_path}.exe"; then 39035 input_to_shortpath="${new_path}.exe" 39036 elif test -f "${new_path}.cmd"; then 39037 input_to_shortpath="${new_path}.cmd" 39038 else 39039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 39040 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 39041 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39042 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39043 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39044 fi 39045 else 39046 input_to_shortpath="$new_path" 39047 fi 39048 39049 # Call helper function which possibly converts this using DOS-style short mode. 39050 # If so, the updated path is stored in $new_path. 39051 new_path="$input_to_shortpath" 39052 39053 input_path="$input_to_shortpath" 39054 # Check if we need to convert this using DOS-style short mode. If the path 39055 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39056 # take no chances and rewrite it. 39057 # Note: m4 eats our [], so we need to use [ and ] instead. 39058 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39059 if test "x$has_forbidden_chars" != x; then 39060 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39061 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39062 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39063 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39064 # Going to short mode and back again did indeed matter. Since short mode is 39065 # case insensitive, let's make it lowercase to improve readability. 39066 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39067 # Now convert it back to Unix-style (cygpath) 39068 input_path=`$CYGPATH -u "$shortmode_path"` 39069 new_path="$input_path" 39070 fi 39071 fi 39072 39073 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39074 if test "x$test_cygdrive_prefix" = x; then 39075 # As a simple fix, exclude /usr/bin since it's not a real path. 39076 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39077 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39078 # a path prefixed by /cygdrive for fixpath to work. 39079 new_path="$CYGWIN_ROOT_PATH$input_path" 39080 fi 39081 fi 39082 39083 # remove trailing .exe if any 39084 new_path="${new_path/%.exe/}" 39085 39086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39087 39088 # First separate the path from the arguments. This will split at the first 39089 # space. 39090 complete="$RC" 39091 path="${complete%% *}" 39092 tmp="$complete EOL" 39093 arguments="${tmp#* }" 39094 39095 # Input might be given as Windows format, start by converting to 39096 # unix format. 39097 new_path="$path" 39098 39099 windows_path="$new_path" 39100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39101 unix_path=`$CYGPATH -u "$windows_path"` 39102 new_path="$unix_path" 39103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39105 new_path="$unix_path" 39106 fi 39107 39108 39109 # Now try to locate executable using which 39110 new_path=`$WHICH "$new_path" 2> /dev/null` 39111 39112 if test "x$new_path" = x; then 39113 # Oops. Which didn't find the executable. 39114 # The splitting of arguments from the executable at a space might have been incorrect, 39115 # since paths with space are more likely in Windows. Give it another try with the whole 39116 # argument. 39117 path="$complete" 39118 arguments="EOL" 39119 new_path="$path" 39120 39121 windows_path="$new_path" 39122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39123 unix_path=`$CYGPATH -u "$windows_path"` 39124 new_path="$unix_path" 39125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39126 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39127 new_path="$unix_path" 39128 fi 39129 39130 39131 new_path=`$WHICH "$new_path" 2> /dev/null` 39132 # bat and cmd files are not always considered executable in MSYS causing which 39133 # to not find them 39134 if test "x$new_path" = x \ 39135 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39136 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39137 new_path="$path" 39138 39139 windows_path="$new_path" 39140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39141 unix_path=`$CYGPATH -u "$windows_path"` 39142 new_path="$unix_path" 39143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39144 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39145 new_path="$unix_path" 39146 fi 39147 39148 fi 39149 39150 if test "x$new_path" = x; then 39151 # It's still not found. Now this is an unrecoverable error. 39152 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39153 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39154 has_space=`$ECHO "$complete" | $GREP " "` 39155 if test "x$has_space" != x; then 39156 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39157 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39158 fi 39159 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39160 fi 39161 fi 39162 39163 # Now new_path has a complete unix path to the binary 39164 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39165 # Keep paths in /bin as-is, but remove trailing .exe if any 39166 new_path="${new_path/%.exe/}" 39167 # Do not save /bin paths to all_fixpath_prefixes! 39168 else 39169 # Not in mixed or Windows style, start by that. 39170 new_path=`cmd //c echo $new_path` 39171 39172 input_path="$new_path" 39173 # Check if we need to convert this using DOS-style short mode. If the path 39174 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39175 # take no chances and rewrite it. 39176 # Note: m4 eats our [], so we need to use [ and ] instead. 39177 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39178 if test "x$has_forbidden_chars" != x; then 39179 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39180 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39181 fi 39182 39183 # Output is in $new_path 39184 39185 windows_path="$new_path" 39186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39187 unix_path=`$CYGPATH -u "$windows_path"` 39188 new_path="$unix_path" 39189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39190 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39191 new_path="$unix_path" 39192 fi 39193 39194 # remove trailing .exe if any 39195 new_path="${new_path/%.exe/}" 39196 39197 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39198 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39199 fi 39200 39201 else 39202 # We're on a unix platform. Hooray! :) 39203 # First separate the path from the arguments. This will split at the first 39204 # space. 39205 complete="$RC" 39206 path="${complete%% *}" 39207 tmp="$complete EOL" 39208 arguments="${tmp#* }" 39209 39210 # Cannot rely on the command "which" here since it doesn't always work. 39211 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39212 if test -z "$is_absolute_path"; then 39213 # Path to executable is not absolute. Find it. 39214 IFS_save="$IFS" 39215 IFS=: 39216 for p in $PATH; do 39217 if test -f "$p/$path" && test -x "$p/$path"; then 39218 new_path="$p/$path" 39219 break 39220 fi 39221 done 39222 IFS="$IFS_save" 39223 else 39224 # This is an absolute path, we can use it without further modifications. 39225 new_path="$path" 39226 fi 39227 39228 if test "x$new_path" = x; then 39229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 39230 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 39231 has_space=`$ECHO "$complete" | $GREP " "` 39232 if test "x$has_space" != x; then 39233 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39234 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39235 fi 39236 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 39237 fi 39238 fi 39239 39240 # Now join together the path and the arguments once again 39241 if test "x$arguments" != xEOL; then 39242 new_complete="$new_path ${arguments% *}" 39243 else 39244 new_complete="$new_path" 39245 fi 39246 39247 if test "x$complete" != "x$new_complete"; then 39248 RC="$new_complete" 39249 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 39250 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 39251 fi 39252 fi 39253 39254 # Extract the first word of "dumpbin", so it can be a program name with args. 39255 set dummy dumpbin; ac_word=$2 39256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39257 $as_echo_n "checking for $ac_word... " >&6; } 39258 if ${ac_cv_prog_DUMPBIN+:} false; then : 39259 $as_echo_n "(cached) " >&6 39260 else 39261 if test -n "$DUMPBIN"; then 39262 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 39263 else 39264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39265 for as_dir in $PATH 39266 do 39267 IFS=$as_save_IFS 39268 test -z "$as_dir" && as_dir=. 39269 for ac_exec_ext in '' $ac_executable_extensions; do 39270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39271 ac_cv_prog_DUMPBIN="dumpbin" 39272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39273 break 2 39274 fi 39275 done 39276 done 39277 IFS=$as_save_IFS 39278 39279 fi 39280 fi 39281 DUMPBIN=$ac_cv_prog_DUMPBIN 39282 if test -n "$DUMPBIN"; then 39283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 39284 $as_echo "$DUMPBIN" >&6; } 39285 else 39286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39287 $as_echo "no" >&6; } 39288 fi 39289 39290 39291 39292 # Only process if variable expands to non-empty 39293 39294 if test "x$DUMPBIN" != x; then 39295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39296 39297 # First separate the path from the arguments. This will split at the first 39298 # space. 39299 complete="$DUMPBIN" 39300 path="${complete%% *}" 39301 tmp="$complete EOL" 39302 arguments="${tmp#* }" 39303 39304 # Input might be given as Windows format, start by converting to 39305 # unix format. 39306 new_path=`$CYGPATH -u "$path"` 39307 39308 # Now try to locate executable using which 39309 new_path=`$WHICH "$new_path" 2> /dev/null` 39310 # bat and cmd files are not always considered executable in cygwin causing which 39311 # to not find them 39312 if test "x$new_path" = x \ 39313 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39314 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39315 new_path=`$CYGPATH -u "$path"` 39316 fi 39317 if test "x$new_path" = x; then 39318 # Oops. Which didn't find the executable. 39319 # The splitting of arguments from the executable at a space might have been incorrect, 39320 # since paths with space are more likely in Windows. Give it another try with the whole 39321 # argument. 39322 path="$complete" 39323 arguments="EOL" 39324 new_path=`$CYGPATH -u "$path"` 39325 new_path=`$WHICH "$new_path" 2> /dev/null` 39326 # bat and cmd files are not always considered executable in cygwin causing which 39327 # to not find them 39328 if test "x$new_path" = x \ 39329 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39330 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39331 new_path=`$CYGPATH -u "$path"` 39332 fi 39333 if test "x$new_path" = x; then 39334 # It's still not found. Now this is an unrecoverable error. 39335 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39336 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39337 has_space=`$ECHO "$complete" | $GREP " "` 39338 if test "x$has_space" != x; then 39339 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39340 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39341 fi 39342 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39343 fi 39344 fi 39345 39346 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39347 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39348 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39349 # "foo.exe" is OK but "foo" is an error. 39350 # 39351 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39352 # It is also a way to make sure we got the proper file name for the real test later on. 39353 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39354 if test "x$test_shortpath" = x; then 39355 # Short path failed, file does not exist as specified. 39356 # Try adding .exe or .cmd 39357 if test -f "${new_path}.exe"; then 39358 input_to_shortpath="${new_path}.exe" 39359 elif test -f "${new_path}.cmd"; then 39360 input_to_shortpath="${new_path}.cmd" 39361 else 39362 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 39363 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 39364 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39365 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39366 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39367 fi 39368 else 39369 input_to_shortpath="$new_path" 39370 fi 39371 39372 # Call helper function which possibly converts this using DOS-style short mode. 39373 # If so, the updated path is stored in $new_path. 39374 new_path="$input_to_shortpath" 39375 39376 input_path="$input_to_shortpath" 39377 # Check if we need to convert this using DOS-style short mode. If the path 39378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39379 # take no chances and rewrite it. 39380 # Note: m4 eats our [], so we need to use [ and ] instead. 39381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39382 if test "x$has_forbidden_chars" != x; then 39383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39384 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39385 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39386 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39387 # Going to short mode and back again did indeed matter. Since short mode is 39388 # case insensitive, let's make it lowercase to improve readability. 39389 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39390 # Now convert it back to Unix-style (cygpath) 39391 input_path=`$CYGPATH -u "$shortmode_path"` 39392 new_path="$input_path" 39393 fi 39394 fi 39395 39396 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39397 if test "x$test_cygdrive_prefix" = x; then 39398 # As a simple fix, exclude /usr/bin since it's not a real path. 39399 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39400 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39401 # a path prefixed by /cygdrive for fixpath to work. 39402 new_path="$CYGWIN_ROOT_PATH$input_path" 39403 fi 39404 fi 39405 39406 # remove trailing .exe if any 39407 new_path="${new_path/%.exe/}" 39408 39409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39410 39411 # First separate the path from the arguments. This will split at the first 39412 # space. 39413 complete="$DUMPBIN" 39414 path="${complete%% *}" 39415 tmp="$complete EOL" 39416 arguments="${tmp#* }" 39417 39418 # Input might be given as Windows format, start by converting to 39419 # unix format. 39420 new_path="$path" 39421 39422 windows_path="$new_path" 39423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39424 unix_path=`$CYGPATH -u "$windows_path"` 39425 new_path="$unix_path" 39426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39428 new_path="$unix_path" 39429 fi 39430 39431 39432 # Now try to locate executable using which 39433 new_path=`$WHICH "$new_path" 2> /dev/null` 39434 39435 if test "x$new_path" = x; then 39436 # Oops. Which didn't find the executable. 39437 # The splitting of arguments from the executable at a space might have been incorrect, 39438 # since paths with space are more likely in Windows. Give it another try with the whole 39439 # argument. 39440 path="$complete" 39441 arguments="EOL" 39442 new_path="$path" 39443 39444 windows_path="$new_path" 39445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39446 unix_path=`$CYGPATH -u "$windows_path"` 39447 new_path="$unix_path" 39448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39449 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39450 new_path="$unix_path" 39451 fi 39452 39453 39454 new_path=`$WHICH "$new_path" 2> /dev/null` 39455 # bat and cmd files are not always considered executable in MSYS causing which 39456 # to not find them 39457 if test "x$new_path" = x \ 39458 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39459 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39460 new_path="$path" 39461 39462 windows_path="$new_path" 39463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39464 unix_path=`$CYGPATH -u "$windows_path"` 39465 new_path="$unix_path" 39466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39467 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39468 new_path="$unix_path" 39469 fi 39470 39471 fi 39472 39473 if test "x$new_path" = x; then 39474 # It's still not found. Now this is an unrecoverable error. 39475 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39476 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39477 has_space=`$ECHO "$complete" | $GREP " "` 39478 if test "x$has_space" != x; then 39479 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39480 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39481 fi 39482 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39483 fi 39484 fi 39485 39486 # Now new_path has a complete unix path to the binary 39487 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39488 # Keep paths in /bin as-is, but remove trailing .exe if any 39489 new_path="${new_path/%.exe/}" 39490 # Do not save /bin paths to all_fixpath_prefixes! 39491 else 39492 # Not in mixed or Windows style, start by that. 39493 new_path=`cmd //c echo $new_path` 39494 39495 input_path="$new_path" 39496 # Check if we need to convert this using DOS-style short mode. If the path 39497 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39498 # take no chances and rewrite it. 39499 # Note: m4 eats our [], so we need to use [ and ] instead. 39500 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39501 if test "x$has_forbidden_chars" != x; then 39502 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39503 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39504 fi 39505 39506 # Output is in $new_path 39507 39508 windows_path="$new_path" 39509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39510 unix_path=`$CYGPATH -u "$windows_path"` 39511 new_path="$unix_path" 39512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39513 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39514 new_path="$unix_path" 39515 fi 39516 39517 # remove trailing .exe if any 39518 new_path="${new_path/%.exe/}" 39519 39520 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39521 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39522 fi 39523 39524 else 39525 # We're on a unix platform. Hooray! :) 39526 # First separate the path from the arguments. This will split at the first 39527 # space. 39528 complete="$DUMPBIN" 39529 path="${complete%% *}" 39530 tmp="$complete EOL" 39531 arguments="${tmp#* }" 39532 39533 # Cannot rely on the command "which" here since it doesn't always work. 39534 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39535 if test -z "$is_absolute_path"; then 39536 # Path to executable is not absolute. Find it. 39537 IFS_save="$IFS" 39538 IFS=: 39539 for p in $PATH; do 39540 if test -f "$p/$path" && test -x "$p/$path"; then 39541 new_path="$p/$path" 39542 break 39543 fi 39544 done 39545 IFS="$IFS_save" 39546 else 39547 # This is an absolute path, we can use it without further modifications. 39548 new_path="$path" 39549 fi 39550 39551 if test "x$new_path" = x; then 39552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39553 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39554 has_space=`$ECHO "$complete" | $GREP " "` 39555 if test "x$has_space" != x; then 39556 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39557 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39558 fi 39559 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39560 fi 39561 fi 39562 39563 # Now join together the path and the arguments once again 39564 if test "x$arguments" != xEOL; then 39565 new_complete="$new_path ${arguments% *}" 39566 else 39567 new_complete="$new_path" 39568 fi 39569 39570 if test "x$complete" != "x$new_complete"; then 39571 DUMPBIN="$new_complete" 39572 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 39573 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 39574 fi 39575 fi 39576 39577 # We need to check for 'msbuild.exe' because at the place where we expect to 39578 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 39579 # won't find the 'msbuild.exe' executable in that case (and the 39580 # 'ac_executable_extensions' is unusable due to performance reasons). 39581 # Notice that we intentionally don't fix up the path to MSBUILD because we 39582 # will call it in a DOS shell during freetype detection on Windows (see 39583 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 39584 # Extract the first word of "msbuild.exe", so it can be a program name with args. 39585 set dummy msbuild.exe; ac_word=$2 39586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39587 $as_echo_n "checking for $ac_word... " >&6; } 39588 if ${ac_cv_prog_MSBUILD+:} false; then : 39589 $as_echo_n "(cached) " >&6 39590 else 39591 if test -n "$MSBUILD"; then 39592 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 39593 else 39594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39595 for as_dir in $PATH 39596 do 39597 IFS=$as_save_IFS 39598 test -z "$as_dir" && as_dir=. 39599 for ac_exec_ext in '' $ac_executable_extensions; do 39600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39601 ac_cv_prog_MSBUILD="msbuild.exe" 39602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39603 break 2 39604 fi 39605 done 39606 done 39607 IFS=$as_save_IFS 39608 39609 fi 39610 fi 39611 MSBUILD=$ac_cv_prog_MSBUILD 39612 if test -n "$MSBUILD"; then 39613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 39614 $as_echo "$MSBUILD" >&6; } 39615 else 39616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39617 $as_echo "no" >&6; } 39618 fi 39619 39620 39621 fi 39622 39623 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 39624 39625 39626 # Publish this variable in the help. 39627 39628 39629 if [ -z "${STRIP+x}" ]; then 39630 # The variable is not set by user, try to locate tool using the code snippet 39631 for ac_prog in strip 39632 do 39633 # Extract the first word of "$ac_prog", so it can be a program name with args. 39634 set dummy $ac_prog; ac_word=$2 39635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39636 $as_echo_n "checking for $ac_word... " >&6; } 39637 if ${ac_cv_path_STRIP+:} false; then : 39638 $as_echo_n "(cached) " >&6 39639 else 39640 case $STRIP in 39641 [\\/]* | ?:[\\/]*) 39642 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39643 ;; 39644 *) 39645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39646 for as_dir in $PATH 39647 do 39648 IFS=$as_save_IFS 39649 test -z "$as_dir" && as_dir=. 39650 for ac_exec_ext in '' $ac_executable_extensions; do 39651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39652 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39654 break 2 39655 fi 39656 done 39657 done 39658 IFS=$as_save_IFS 39659 39660 ;; 39661 esac 39662 fi 39663 STRIP=$ac_cv_path_STRIP 39664 if test -n "$STRIP"; then 39665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39666 $as_echo "$STRIP" >&6; } 39667 else 39668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39669 $as_echo "no" >&6; } 39670 fi 39671 39672 39673 test -n "$STRIP" && break 39674 done 39675 39676 else 39677 # The variable is set, but is it from the command line or the environment? 39678 39679 # Try to remove the string !STRIP! from our list. 39680 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 39681 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39682 # If it failed, the variable was not from the command line. Ignore it, 39683 # but warn the user (except for BASH, which is always set by the calling BASH). 39684 if test "xSTRIP" != xBASH; then 39685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 39686 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 39687 fi 39688 # Try to locate tool using the code snippet 39689 for ac_prog in strip 39690 do 39691 # Extract the first word of "$ac_prog", so it can be a program name with args. 39692 set dummy $ac_prog; ac_word=$2 39693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39694 $as_echo_n "checking for $ac_word... " >&6; } 39695 if ${ac_cv_path_STRIP+:} false; then : 39696 $as_echo_n "(cached) " >&6 39697 else 39698 case $STRIP in 39699 [\\/]* | ?:[\\/]*) 39700 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39701 ;; 39702 *) 39703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39704 for as_dir in $PATH 39705 do 39706 IFS=$as_save_IFS 39707 test -z "$as_dir" && as_dir=. 39708 for ac_exec_ext in '' $ac_executable_extensions; do 39709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39710 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39712 break 2 39713 fi 39714 done 39715 done 39716 IFS=$as_save_IFS 39717 39718 ;; 39719 esac 39720 fi 39721 STRIP=$ac_cv_path_STRIP 39722 if test -n "$STRIP"; then 39723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39724 $as_echo "$STRIP" >&6; } 39725 else 39726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39727 $as_echo "no" >&6; } 39728 fi 39729 39730 39731 test -n "$STRIP" && break 39732 done 39733 39734 else 39735 # If it succeeded, then it was overridden by the user. We will use it 39736 # for the tool. 39737 39738 # First remove it from the list of overridden variables, so we can test 39739 # for unknown variables in the end. 39740 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39741 39742 # Check if we try to supply an empty value 39743 if test "x$STRIP" = x; then 39744 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 39745 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 39746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39747 $as_echo_n "checking for STRIP... " >&6; } 39748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39749 $as_echo "disabled" >&6; } 39750 else 39751 # Check if the provided tool contains a complete path. 39752 tool_specified="$STRIP" 39753 tool_basename="${tool_specified##*/}" 39754 if test "x$tool_basename" = "x$tool_specified"; then 39755 # A command without a complete path is provided, search $PATH. 39756 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 39757 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 39758 # Extract the first word of "$tool_basename", so it can be a program name with args. 39759 set dummy $tool_basename; ac_word=$2 39760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39761 $as_echo_n "checking for $ac_word... " >&6; } 39762 if ${ac_cv_path_STRIP+:} false; then : 39763 $as_echo_n "(cached) " >&6 39764 else 39765 case $STRIP in 39766 [\\/]* | ?:[\\/]*) 39767 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39768 ;; 39769 *) 39770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39771 for as_dir in $PATH 39772 do 39773 IFS=$as_save_IFS 39774 test -z "$as_dir" && as_dir=. 39775 for ac_exec_ext in '' $ac_executable_extensions; do 39776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39777 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39779 break 2 39780 fi 39781 done 39782 done 39783 IFS=$as_save_IFS 39784 39785 ;; 39786 esac 39787 fi 39788 STRIP=$ac_cv_path_STRIP 39789 if test -n "$STRIP"; then 39790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39791 $as_echo "$STRIP" >&6; } 39792 else 39793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39794 $as_echo "no" >&6; } 39795 fi 39796 39797 39798 if test "x$STRIP" = x; then 39799 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39800 fi 39801 else 39802 # Otherwise we believe it is a complete path. Use it as it is. 39803 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 39804 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 39805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39806 $as_echo_n "checking for STRIP... " >&6; } 39807 if test ! -x "$tool_specified"; then 39808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39809 $as_echo "not found" >&6; } 39810 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 39811 fi 39812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39813 $as_echo "$tool_specified" >&6; } 39814 fi 39815 fi 39816 fi 39817 39818 fi 39819 39820 39821 39822 # Only process if variable expands to non-empty 39823 39824 if test "x$STRIP" != x; then 39825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39826 39827 # First separate the path from the arguments. This will split at the first 39828 # space. 39829 complete="$STRIP" 39830 path="${complete%% *}" 39831 tmp="$complete EOL" 39832 arguments="${tmp#* }" 39833 39834 # Input might be given as Windows format, start by converting to 39835 # unix format. 39836 new_path=`$CYGPATH -u "$path"` 39837 39838 # Now try to locate executable using which 39839 new_path=`$WHICH "$new_path" 2> /dev/null` 39840 # bat and cmd files are not always considered executable in cygwin causing which 39841 # to not find them 39842 if test "x$new_path" = x \ 39843 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39844 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39845 new_path=`$CYGPATH -u "$path"` 39846 fi 39847 if test "x$new_path" = x; then 39848 # Oops. Which didn't find the executable. 39849 # The splitting of arguments from the executable at a space might have been incorrect, 39850 # since paths with space are more likely in Windows. Give it another try with the whole 39851 # argument. 39852 path="$complete" 39853 arguments="EOL" 39854 new_path=`$CYGPATH -u "$path"` 39855 new_path=`$WHICH "$new_path" 2> /dev/null` 39856 # bat and cmd files are not always considered executable in cygwin causing which 39857 # to not find them 39858 if test "x$new_path" = x \ 39859 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39860 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39861 new_path=`$CYGPATH -u "$path"` 39862 fi 39863 if test "x$new_path" = x; then 39864 # It's still not found. Now this is an unrecoverable error. 39865 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39866 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39867 has_space=`$ECHO "$complete" | $GREP " "` 39868 if test "x$has_space" != x; then 39869 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39870 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39871 fi 39872 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39873 fi 39874 fi 39875 39876 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39877 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39878 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39879 # "foo.exe" is OK but "foo" is an error. 39880 # 39881 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39882 # It is also a way to make sure we got the proper file name for the real test later on. 39883 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39884 if test "x$test_shortpath" = x; then 39885 # Short path failed, file does not exist as specified. 39886 # Try adding .exe or .cmd 39887 if test -f "${new_path}.exe"; then 39888 input_to_shortpath="${new_path}.exe" 39889 elif test -f "${new_path}.cmd"; then 39890 input_to_shortpath="${new_path}.cmd" 39891 else 39892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 39893 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 39894 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39895 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39896 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39897 fi 39898 else 39899 input_to_shortpath="$new_path" 39900 fi 39901 39902 # Call helper function which possibly converts this using DOS-style short mode. 39903 # If so, the updated path is stored in $new_path. 39904 new_path="$input_to_shortpath" 39905 39906 input_path="$input_to_shortpath" 39907 # Check if we need to convert this using DOS-style short mode. If the path 39908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39909 # take no chances and rewrite it. 39910 # Note: m4 eats our [], so we need to use [ and ] instead. 39911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39912 if test "x$has_forbidden_chars" != x; then 39913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39914 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39915 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39916 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39917 # Going to short mode and back again did indeed matter. Since short mode is 39918 # case insensitive, let's make it lowercase to improve readability. 39919 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39920 # Now convert it back to Unix-style (cygpath) 39921 input_path=`$CYGPATH -u "$shortmode_path"` 39922 new_path="$input_path" 39923 fi 39924 fi 39925 39926 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39927 if test "x$test_cygdrive_prefix" = x; then 39928 # As a simple fix, exclude /usr/bin since it's not a real path. 39929 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39930 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39931 # a path prefixed by /cygdrive for fixpath to work. 39932 new_path="$CYGWIN_ROOT_PATH$input_path" 39933 fi 39934 fi 39935 39936 # remove trailing .exe if any 39937 new_path="${new_path/%.exe/}" 39938 39939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39940 39941 # First separate the path from the arguments. This will split at the first 39942 # space. 39943 complete="$STRIP" 39944 path="${complete%% *}" 39945 tmp="$complete EOL" 39946 arguments="${tmp#* }" 39947 39948 # Input might be given as Windows format, start by converting to 39949 # unix format. 39950 new_path="$path" 39951 39952 windows_path="$new_path" 39953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39954 unix_path=`$CYGPATH -u "$windows_path"` 39955 new_path="$unix_path" 39956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39957 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39958 new_path="$unix_path" 39959 fi 39960 39961 39962 # Now try to locate executable using which 39963 new_path=`$WHICH "$new_path" 2> /dev/null` 39964 39965 if test "x$new_path" = x; then 39966 # Oops. Which didn't find the executable. 39967 # The splitting of arguments from the executable at a space might have been incorrect, 39968 # since paths with space are more likely in Windows. Give it another try with the whole 39969 # argument. 39970 path="$complete" 39971 arguments="EOL" 39972 new_path="$path" 39973 39974 windows_path="$new_path" 39975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39976 unix_path=`$CYGPATH -u "$windows_path"` 39977 new_path="$unix_path" 39978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39980 new_path="$unix_path" 39981 fi 39982 39983 39984 new_path=`$WHICH "$new_path" 2> /dev/null` 39985 # bat and cmd files are not always considered executable in MSYS causing which 39986 # to not find them 39987 if test "x$new_path" = x \ 39988 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39989 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39990 new_path="$path" 39991 39992 windows_path="$new_path" 39993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39994 unix_path=`$CYGPATH -u "$windows_path"` 39995 new_path="$unix_path" 39996 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39997 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39998 new_path="$unix_path" 39999 fi 40000 40001 fi 40002 40003 if test "x$new_path" = x; then 40004 # It's still not found. Now this is an unrecoverable error. 40005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40006 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40007 has_space=`$ECHO "$complete" | $GREP " "` 40008 if test "x$has_space" != x; then 40009 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40010 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40011 fi 40012 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40013 fi 40014 fi 40015 40016 # Now new_path has a complete unix path to the binary 40017 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40018 # Keep paths in /bin as-is, but remove trailing .exe if any 40019 new_path="${new_path/%.exe/}" 40020 # Do not save /bin paths to all_fixpath_prefixes! 40021 else 40022 # Not in mixed or Windows style, start by that. 40023 new_path=`cmd //c echo $new_path` 40024 40025 input_path="$new_path" 40026 # Check if we need to convert this using DOS-style short mode. If the path 40027 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40028 # take no chances and rewrite it. 40029 # Note: m4 eats our [], so we need to use [ and ] instead. 40030 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40031 if test "x$has_forbidden_chars" != x; then 40032 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40033 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40034 fi 40035 40036 # Output is in $new_path 40037 40038 windows_path="$new_path" 40039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40040 unix_path=`$CYGPATH -u "$windows_path"` 40041 new_path="$unix_path" 40042 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40043 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40044 new_path="$unix_path" 40045 fi 40046 40047 # remove trailing .exe if any 40048 new_path="${new_path/%.exe/}" 40049 40050 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40051 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40052 fi 40053 40054 else 40055 # We're on a unix platform. Hooray! :) 40056 # First separate the path from the arguments. This will split at the first 40057 # space. 40058 complete="$STRIP" 40059 path="${complete%% *}" 40060 tmp="$complete EOL" 40061 arguments="${tmp#* }" 40062 40063 # Cannot rely on the command "which" here since it doesn't always work. 40064 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40065 if test -z "$is_absolute_path"; then 40066 # Path to executable is not absolute. Find it. 40067 IFS_save="$IFS" 40068 IFS=: 40069 for p in $PATH; do 40070 if test -f "$p/$path" && test -x "$p/$path"; then 40071 new_path="$p/$path" 40072 break 40073 fi 40074 done 40075 IFS="$IFS_save" 40076 else 40077 # This is an absolute path, we can use it without further modifications. 40078 new_path="$path" 40079 fi 40080 40081 if test "x$new_path" = x; then 40082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40083 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40084 has_space=`$ECHO "$complete" | $GREP " "` 40085 if test "x$has_space" != x; then 40086 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40087 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40088 fi 40089 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40090 fi 40091 fi 40092 40093 # Now join together the path and the arguments once again 40094 if test "x$arguments" != xEOL; then 40095 new_complete="$new_path ${arguments% *}" 40096 else 40097 new_complete="$new_path" 40098 fi 40099 40100 if test "x$complete" != "x$new_complete"; then 40101 STRIP="$new_complete" 40102 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 40103 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 40104 fi 40105 fi 40106 40107 40108 40109 # Publish this variable in the help. 40110 40111 40112 if [ -z "${NM+x}" ]; then 40113 # The variable is not set by user, try to locate tool using the code snippet 40114 for ac_prog in nm 40115 do 40116 # Extract the first word of "$ac_prog", so it can be a program name with args. 40117 set dummy $ac_prog; ac_word=$2 40118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40119 $as_echo_n "checking for $ac_word... " >&6; } 40120 if ${ac_cv_path_NM+:} false; then : 40121 $as_echo_n "(cached) " >&6 40122 else 40123 case $NM in 40124 [\\/]* | ?:[\\/]*) 40125 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40126 ;; 40127 *) 40128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40129 for as_dir in $PATH 40130 do 40131 IFS=$as_save_IFS 40132 test -z "$as_dir" && as_dir=. 40133 for ac_exec_ext in '' $ac_executable_extensions; do 40134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40135 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40137 break 2 40138 fi 40139 done 40140 done 40141 IFS=$as_save_IFS 40142 40143 ;; 40144 esac 40145 fi 40146 NM=$ac_cv_path_NM 40147 if test -n "$NM"; then 40148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40149 $as_echo "$NM" >&6; } 40150 else 40151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40152 $as_echo "no" >&6; } 40153 fi 40154 40155 40156 test -n "$NM" && break 40157 done 40158 40159 else 40160 # The variable is set, but is it from the command line or the environment? 40161 40162 # Try to remove the string !NM! from our list. 40163 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 40164 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40165 # If it failed, the variable was not from the command line. Ignore it, 40166 # but warn the user (except for BASH, which is always set by the calling BASH). 40167 if test "xNM" != xBASH; then 40168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 40169 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 40170 fi 40171 # Try to locate tool using the code snippet 40172 for ac_prog in nm 40173 do 40174 # Extract the first word of "$ac_prog", so it can be a program name with args. 40175 set dummy $ac_prog; ac_word=$2 40176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40177 $as_echo_n "checking for $ac_word... " >&6; } 40178 if ${ac_cv_path_NM+:} false; then : 40179 $as_echo_n "(cached) " >&6 40180 else 40181 case $NM in 40182 [\\/]* | ?:[\\/]*) 40183 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40184 ;; 40185 *) 40186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40187 for as_dir in $PATH 40188 do 40189 IFS=$as_save_IFS 40190 test -z "$as_dir" && as_dir=. 40191 for ac_exec_ext in '' $ac_executable_extensions; do 40192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40193 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40195 break 2 40196 fi 40197 done 40198 done 40199 IFS=$as_save_IFS 40200 40201 ;; 40202 esac 40203 fi 40204 NM=$ac_cv_path_NM 40205 if test -n "$NM"; then 40206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40207 $as_echo "$NM" >&6; } 40208 else 40209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40210 $as_echo "no" >&6; } 40211 fi 40212 40213 40214 test -n "$NM" && break 40215 done 40216 40217 else 40218 # If it succeeded, then it was overridden by the user. We will use it 40219 # for the tool. 40220 40221 # First remove it from the list of overridden variables, so we can test 40222 # for unknown variables in the end. 40223 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40224 40225 # Check if we try to supply an empty value 40226 if test "x$NM" = x; then 40227 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 40228 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 40229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40230 $as_echo_n "checking for NM... " >&6; } 40231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40232 $as_echo "disabled" >&6; } 40233 else 40234 # Check if the provided tool contains a complete path. 40235 tool_specified="$NM" 40236 tool_basename="${tool_specified##*/}" 40237 if test "x$tool_basename" = "x$tool_specified"; then 40238 # A command without a complete path is provided, search $PATH. 40239 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 40240 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 40241 # Extract the first word of "$tool_basename", so it can be a program name with args. 40242 set dummy $tool_basename; ac_word=$2 40243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40244 $as_echo_n "checking for $ac_word... " >&6; } 40245 if ${ac_cv_path_NM+:} false; then : 40246 $as_echo_n "(cached) " >&6 40247 else 40248 case $NM in 40249 [\\/]* | ?:[\\/]*) 40250 ac_cv_path_NM="$NM" # Let the user override the test with a path. 40251 ;; 40252 *) 40253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40254 for as_dir in $PATH 40255 do 40256 IFS=$as_save_IFS 40257 test -z "$as_dir" && as_dir=. 40258 for ac_exec_ext in '' $ac_executable_extensions; do 40259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40260 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 40261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40262 break 2 40263 fi 40264 done 40265 done 40266 IFS=$as_save_IFS 40267 40268 ;; 40269 esac 40270 fi 40271 NM=$ac_cv_path_NM 40272 if test -n "$NM"; then 40273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 40274 $as_echo "$NM" >&6; } 40275 else 40276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40277 $as_echo "no" >&6; } 40278 fi 40279 40280 40281 if test "x$NM" = x; then 40282 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40283 fi 40284 else 40285 # Otherwise we believe it is a complete path. Use it as it is. 40286 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 40287 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 40288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 40289 $as_echo_n "checking for NM... " >&6; } 40290 if test ! -x "$tool_specified"; then 40291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40292 $as_echo "not found" >&6; } 40293 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 40294 fi 40295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40296 $as_echo "$tool_specified" >&6; } 40297 fi 40298 fi 40299 fi 40300 40301 fi 40302 40303 40304 40305 # Only process if variable expands to non-empty 40306 40307 if test "x$NM" != x; then 40308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40309 40310 # First separate the path from the arguments. This will split at the first 40311 # space. 40312 complete="$NM" 40313 path="${complete%% *}" 40314 tmp="$complete EOL" 40315 arguments="${tmp#* }" 40316 40317 # Input might be given as Windows format, start by converting to 40318 # unix format. 40319 new_path=`$CYGPATH -u "$path"` 40320 40321 # Now try to locate executable using which 40322 new_path=`$WHICH "$new_path" 2> /dev/null` 40323 # bat and cmd files are not always considered executable in cygwin causing which 40324 # to not find them 40325 if test "x$new_path" = x \ 40326 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40327 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40328 new_path=`$CYGPATH -u "$path"` 40329 fi 40330 if test "x$new_path" = x; then 40331 # Oops. Which didn't find the executable. 40332 # The splitting of arguments from the executable at a space might have been incorrect, 40333 # since paths with space are more likely in Windows. Give it another try with the whole 40334 # argument. 40335 path="$complete" 40336 arguments="EOL" 40337 new_path=`$CYGPATH -u "$path"` 40338 new_path=`$WHICH "$new_path" 2> /dev/null` 40339 # bat and cmd files are not always considered executable in cygwin causing which 40340 # to not find them 40341 if test "x$new_path" = x \ 40342 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40343 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40344 new_path=`$CYGPATH -u "$path"` 40345 fi 40346 if test "x$new_path" = x; then 40347 # It's still not found. Now this is an unrecoverable error. 40348 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40349 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40350 has_space=`$ECHO "$complete" | $GREP " "` 40351 if test "x$has_space" != x; then 40352 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40353 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40354 fi 40355 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40356 fi 40357 fi 40358 40359 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40360 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40361 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40362 # "foo.exe" is OK but "foo" is an error. 40363 # 40364 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40365 # It is also a way to make sure we got the proper file name for the real test later on. 40366 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40367 if test "x$test_shortpath" = x; then 40368 # Short path failed, file does not exist as specified. 40369 # Try adding .exe or .cmd 40370 if test -f "${new_path}.exe"; then 40371 input_to_shortpath="${new_path}.exe" 40372 elif test -f "${new_path}.cmd"; then 40373 input_to_shortpath="${new_path}.cmd" 40374 else 40375 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 40376 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 40377 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40378 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40379 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40380 fi 40381 else 40382 input_to_shortpath="$new_path" 40383 fi 40384 40385 # Call helper function which possibly converts this using DOS-style short mode. 40386 # If so, the updated path is stored in $new_path. 40387 new_path="$input_to_shortpath" 40388 40389 input_path="$input_to_shortpath" 40390 # Check if we need to convert this using DOS-style short mode. If the path 40391 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40392 # take no chances and rewrite it. 40393 # Note: m4 eats our [], so we need to use [ and ] instead. 40394 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40395 if test "x$has_forbidden_chars" != x; then 40396 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40397 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40398 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40399 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40400 # Going to short mode and back again did indeed matter. Since short mode is 40401 # case insensitive, let's make it lowercase to improve readability. 40402 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40403 # Now convert it back to Unix-style (cygpath) 40404 input_path=`$CYGPATH -u "$shortmode_path"` 40405 new_path="$input_path" 40406 fi 40407 fi 40408 40409 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40410 if test "x$test_cygdrive_prefix" = x; then 40411 # As a simple fix, exclude /usr/bin since it's not a real path. 40412 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40413 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40414 # a path prefixed by /cygdrive for fixpath to work. 40415 new_path="$CYGWIN_ROOT_PATH$input_path" 40416 fi 40417 fi 40418 40419 # remove trailing .exe if any 40420 new_path="${new_path/%.exe/}" 40421 40422 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40423 40424 # First separate the path from the arguments. This will split at the first 40425 # space. 40426 complete="$NM" 40427 path="${complete%% *}" 40428 tmp="$complete EOL" 40429 arguments="${tmp#* }" 40430 40431 # Input might be given as Windows format, start by converting to 40432 # unix format. 40433 new_path="$path" 40434 40435 windows_path="$new_path" 40436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40437 unix_path=`$CYGPATH -u "$windows_path"` 40438 new_path="$unix_path" 40439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40440 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40441 new_path="$unix_path" 40442 fi 40443 40444 40445 # Now try to locate executable using which 40446 new_path=`$WHICH "$new_path" 2> /dev/null` 40447 40448 if test "x$new_path" = x; then 40449 # Oops. Which didn't find the executable. 40450 # The splitting of arguments from the executable at a space might have been incorrect, 40451 # since paths with space are more likely in Windows. Give it another try with the whole 40452 # argument. 40453 path="$complete" 40454 arguments="EOL" 40455 new_path="$path" 40456 40457 windows_path="$new_path" 40458 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40459 unix_path=`$CYGPATH -u "$windows_path"` 40460 new_path="$unix_path" 40461 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40462 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40463 new_path="$unix_path" 40464 fi 40465 40466 40467 new_path=`$WHICH "$new_path" 2> /dev/null` 40468 # bat and cmd files are not always considered executable in MSYS causing which 40469 # to not find them 40470 if test "x$new_path" = x \ 40471 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40472 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40473 new_path="$path" 40474 40475 windows_path="$new_path" 40476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40477 unix_path=`$CYGPATH -u "$windows_path"` 40478 new_path="$unix_path" 40479 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40480 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40481 new_path="$unix_path" 40482 fi 40483 40484 fi 40485 40486 if test "x$new_path" = x; then 40487 # It's still not found. Now this is an unrecoverable error. 40488 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40489 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40490 has_space=`$ECHO "$complete" | $GREP " "` 40491 if test "x$has_space" != x; then 40492 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40493 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40494 fi 40495 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40496 fi 40497 fi 40498 40499 # Now new_path has a complete unix path to the binary 40500 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40501 # Keep paths in /bin as-is, but remove trailing .exe if any 40502 new_path="${new_path/%.exe/}" 40503 # Do not save /bin paths to all_fixpath_prefixes! 40504 else 40505 # Not in mixed or Windows style, start by that. 40506 new_path=`cmd //c echo $new_path` 40507 40508 input_path="$new_path" 40509 # Check if we need to convert this using DOS-style short mode. If the path 40510 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40511 # take no chances and rewrite it. 40512 # Note: m4 eats our [], so we need to use [ and ] instead. 40513 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40514 if test "x$has_forbidden_chars" != x; then 40515 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40516 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40517 fi 40518 40519 # Output is in $new_path 40520 40521 windows_path="$new_path" 40522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40523 unix_path=`$CYGPATH -u "$windows_path"` 40524 new_path="$unix_path" 40525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40526 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40527 new_path="$unix_path" 40528 fi 40529 40530 # remove trailing .exe if any 40531 new_path="${new_path/%.exe/}" 40532 40533 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40534 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40535 fi 40536 40537 else 40538 # We're on a unix platform. Hooray! :) 40539 # First separate the path from the arguments. This will split at the first 40540 # space. 40541 complete="$NM" 40542 path="${complete%% *}" 40543 tmp="$complete EOL" 40544 arguments="${tmp#* }" 40545 40546 # Cannot rely on the command "which" here since it doesn't always work. 40547 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40548 if test -z "$is_absolute_path"; then 40549 # Path to executable is not absolute. Find it. 40550 IFS_save="$IFS" 40551 IFS=: 40552 for p in $PATH; do 40553 if test -f "$p/$path" && test -x "$p/$path"; then 40554 new_path="$p/$path" 40555 break 40556 fi 40557 done 40558 IFS="$IFS_save" 40559 else 40560 # This is an absolute path, we can use it without further modifications. 40561 new_path="$path" 40562 fi 40563 40564 if test "x$new_path" = x; then 40565 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40566 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40567 has_space=`$ECHO "$complete" | $GREP " "` 40568 if test "x$has_space" != x; then 40569 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40570 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40571 fi 40572 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40573 fi 40574 fi 40575 40576 # Now join together the path and the arguments once again 40577 if test "x$arguments" != xEOL; then 40578 new_complete="$new_path ${arguments% *}" 40579 else 40580 new_complete="$new_path" 40581 fi 40582 40583 if test "x$complete" != "x$new_complete"; then 40584 NM="$new_complete" 40585 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 40586 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 40587 fi 40588 fi 40589 40590 40591 40592 # Publish this variable in the help. 40593 40594 40595 if [ -z "${GNM+x}" ]; then 40596 # The variable is not set by user, try to locate tool using the code snippet 40597 for ac_prog in gnm 40598 do 40599 # Extract the first word of "$ac_prog", so it can be a program name with args. 40600 set dummy $ac_prog; ac_word=$2 40601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40602 $as_echo_n "checking for $ac_word... " >&6; } 40603 if ${ac_cv_path_GNM+:} false; then : 40604 $as_echo_n "(cached) " >&6 40605 else 40606 case $GNM in 40607 [\\/]* | ?:[\\/]*) 40608 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40609 ;; 40610 *) 40611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40612 for as_dir in $PATH 40613 do 40614 IFS=$as_save_IFS 40615 test -z "$as_dir" && as_dir=. 40616 for ac_exec_ext in '' $ac_executable_extensions; do 40617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40618 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40620 break 2 40621 fi 40622 done 40623 done 40624 IFS=$as_save_IFS 40625 40626 ;; 40627 esac 40628 fi 40629 GNM=$ac_cv_path_GNM 40630 if test -n "$GNM"; then 40631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40632 $as_echo "$GNM" >&6; } 40633 else 40634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40635 $as_echo "no" >&6; } 40636 fi 40637 40638 40639 test -n "$GNM" && break 40640 done 40641 40642 else 40643 # The variable is set, but is it from the command line or the environment? 40644 40645 # Try to remove the string !GNM! from our list. 40646 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 40647 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40648 # If it failed, the variable was not from the command line. Ignore it, 40649 # but warn the user (except for BASH, which is always set by the calling BASH). 40650 if test "xGNM" != xBASH; then 40651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 40652 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 40653 fi 40654 # Try to locate tool using the code snippet 40655 for ac_prog in gnm 40656 do 40657 # Extract the first word of "$ac_prog", so it can be a program name with args. 40658 set dummy $ac_prog; ac_word=$2 40659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40660 $as_echo_n "checking for $ac_word... " >&6; } 40661 if ${ac_cv_path_GNM+:} false; then : 40662 $as_echo_n "(cached) " >&6 40663 else 40664 case $GNM in 40665 [\\/]* | ?:[\\/]*) 40666 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40667 ;; 40668 *) 40669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40670 for as_dir in $PATH 40671 do 40672 IFS=$as_save_IFS 40673 test -z "$as_dir" && as_dir=. 40674 for ac_exec_ext in '' $ac_executable_extensions; do 40675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40676 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40678 break 2 40679 fi 40680 done 40681 done 40682 IFS=$as_save_IFS 40683 40684 ;; 40685 esac 40686 fi 40687 GNM=$ac_cv_path_GNM 40688 if test -n "$GNM"; then 40689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40690 $as_echo "$GNM" >&6; } 40691 else 40692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40693 $as_echo "no" >&6; } 40694 fi 40695 40696 40697 test -n "$GNM" && break 40698 done 40699 40700 else 40701 # If it succeeded, then it was overridden by the user. We will use it 40702 # for the tool. 40703 40704 # First remove it from the list of overridden variables, so we can test 40705 # for unknown variables in the end. 40706 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40707 40708 # Check if we try to supply an empty value 40709 if test "x$GNM" = x; then 40710 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 40711 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 40712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 40713 $as_echo_n "checking for GNM... " >&6; } 40714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40715 $as_echo "disabled" >&6; } 40716 else 40717 # Check if the provided tool contains a complete path. 40718 tool_specified="$GNM" 40719 tool_basename="${tool_specified##*/}" 40720 if test "x$tool_basename" = "x$tool_specified"; then 40721 # A command without a complete path is provided, search $PATH. 40722 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 40723 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 40724 # Extract the first word of "$tool_basename", so it can be a program name with args. 40725 set dummy $tool_basename; ac_word=$2 40726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40727 $as_echo_n "checking for $ac_word... " >&6; } 40728 if ${ac_cv_path_GNM+:} false; then : 40729 $as_echo_n "(cached) " >&6 40730 else 40731 case $GNM in 40732 [\\/]* | ?:[\\/]*) 40733 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40734 ;; 40735 *) 40736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40737 for as_dir in $PATH 40738 do 40739 IFS=$as_save_IFS 40740 test -z "$as_dir" && as_dir=. 40741 for ac_exec_ext in '' $ac_executable_extensions; do 40742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40743 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40745 break 2 40746 fi 40747 done 40748 done 40749 IFS=$as_save_IFS 40750 40751 ;; 40752 esac 40753 fi 40754 GNM=$ac_cv_path_GNM 40755 if test -n "$GNM"; then 40756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40757 $as_echo "$GNM" >&6; } 40758 else 40759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40760 $as_echo "no" >&6; } 40761 fi 40762 40763 40764 if test "x$GNM" = x; then 40765 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40766 fi 40767 else 40768 # Otherwise we believe it is a complete path. Use it as it is. 40769 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 40770 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 40771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 40772 $as_echo_n "checking for GNM... " >&6; } 40773 if test ! -x "$tool_specified"; then 40774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40775 $as_echo "not found" >&6; } 40776 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 40777 fi 40778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40779 $as_echo "$tool_specified" >&6; } 40780 fi 40781 fi 40782 fi 40783 40784 fi 40785 40786 40787 40788 # Only process if variable expands to non-empty 40789 40790 if test "x$GNM" != x; then 40791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40792 40793 # First separate the path from the arguments. This will split at the first 40794 # space. 40795 complete="$GNM" 40796 path="${complete%% *}" 40797 tmp="$complete EOL" 40798 arguments="${tmp#* }" 40799 40800 # Input might be given as Windows format, start by converting to 40801 # unix format. 40802 new_path=`$CYGPATH -u "$path"` 40803 40804 # Now try to locate executable using which 40805 new_path=`$WHICH "$new_path" 2> /dev/null` 40806 # bat and cmd files are not always considered executable in cygwin causing which 40807 # to not find them 40808 if test "x$new_path" = x \ 40809 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40810 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40811 new_path=`$CYGPATH -u "$path"` 40812 fi 40813 if test "x$new_path" = x; then 40814 # Oops. Which didn't find the executable. 40815 # The splitting of arguments from the executable at a space might have been incorrect, 40816 # since paths with space are more likely in Windows. Give it another try with the whole 40817 # argument. 40818 path="$complete" 40819 arguments="EOL" 40820 new_path=`$CYGPATH -u "$path"` 40821 new_path=`$WHICH "$new_path" 2> /dev/null` 40822 # bat and cmd files are not always considered executable in cygwin causing which 40823 # to not find them 40824 if test "x$new_path" = x \ 40825 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40826 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40827 new_path=`$CYGPATH -u "$path"` 40828 fi 40829 if test "x$new_path" = x; then 40830 # It's still not found. Now this is an unrecoverable error. 40831 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40832 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40833 has_space=`$ECHO "$complete" | $GREP " "` 40834 if test "x$has_space" != x; then 40835 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40836 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40837 fi 40838 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40839 fi 40840 fi 40841 40842 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40843 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40844 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40845 # "foo.exe" is OK but "foo" is an error. 40846 # 40847 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40848 # It is also a way to make sure we got the proper file name for the real test later on. 40849 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40850 if test "x$test_shortpath" = x; then 40851 # Short path failed, file does not exist as specified. 40852 # Try adding .exe or .cmd 40853 if test -f "${new_path}.exe"; then 40854 input_to_shortpath="${new_path}.exe" 40855 elif test -f "${new_path}.cmd"; then 40856 input_to_shortpath="${new_path}.cmd" 40857 else 40858 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 40859 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 40860 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40861 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40862 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40863 fi 40864 else 40865 input_to_shortpath="$new_path" 40866 fi 40867 40868 # Call helper function which possibly converts this using DOS-style short mode. 40869 # If so, the updated path is stored in $new_path. 40870 new_path="$input_to_shortpath" 40871 40872 input_path="$input_to_shortpath" 40873 # Check if we need to convert this using DOS-style short mode. If the path 40874 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40875 # take no chances and rewrite it. 40876 # Note: m4 eats our [], so we need to use [ and ] instead. 40877 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40878 if test "x$has_forbidden_chars" != x; then 40879 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40880 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40881 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40882 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40883 # Going to short mode and back again did indeed matter. Since short mode is 40884 # case insensitive, let's make it lowercase to improve readability. 40885 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40886 # Now convert it back to Unix-style (cygpath) 40887 input_path=`$CYGPATH -u "$shortmode_path"` 40888 new_path="$input_path" 40889 fi 40890 fi 40891 40892 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40893 if test "x$test_cygdrive_prefix" = x; then 40894 # As a simple fix, exclude /usr/bin since it's not a real path. 40895 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40896 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40897 # a path prefixed by /cygdrive for fixpath to work. 40898 new_path="$CYGWIN_ROOT_PATH$input_path" 40899 fi 40900 fi 40901 40902 # remove trailing .exe if any 40903 new_path="${new_path/%.exe/}" 40904 40905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40906 40907 # First separate the path from the arguments. This will split at the first 40908 # space. 40909 complete="$GNM" 40910 path="${complete%% *}" 40911 tmp="$complete EOL" 40912 arguments="${tmp#* }" 40913 40914 # Input might be given as Windows format, start by converting to 40915 # unix format. 40916 new_path="$path" 40917 40918 windows_path="$new_path" 40919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40920 unix_path=`$CYGPATH -u "$windows_path"` 40921 new_path="$unix_path" 40922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40923 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40924 new_path="$unix_path" 40925 fi 40926 40927 40928 # Now try to locate executable using which 40929 new_path=`$WHICH "$new_path" 2> /dev/null` 40930 40931 if test "x$new_path" = x; then 40932 # Oops. Which didn't find the executable. 40933 # The splitting of arguments from the executable at a space might have been incorrect, 40934 # since paths with space are more likely in Windows. Give it another try with the whole 40935 # argument. 40936 path="$complete" 40937 arguments="EOL" 40938 new_path="$path" 40939 40940 windows_path="$new_path" 40941 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40942 unix_path=`$CYGPATH -u "$windows_path"` 40943 new_path="$unix_path" 40944 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40945 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40946 new_path="$unix_path" 40947 fi 40948 40949 40950 new_path=`$WHICH "$new_path" 2> /dev/null` 40951 # bat and cmd files are not always considered executable in MSYS causing which 40952 # to not find them 40953 if test "x$new_path" = x \ 40954 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40955 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40956 new_path="$path" 40957 40958 windows_path="$new_path" 40959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40960 unix_path=`$CYGPATH -u "$windows_path"` 40961 new_path="$unix_path" 40962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40963 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40964 new_path="$unix_path" 40965 fi 40966 40967 fi 40968 40969 if test "x$new_path" = x; then 40970 # It's still not found. Now this is an unrecoverable error. 40971 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40972 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40973 has_space=`$ECHO "$complete" | $GREP " "` 40974 if test "x$has_space" != x; then 40975 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40976 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40977 fi 40978 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40979 fi 40980 fi 40981 40982 # Now new_path has a complete unix path to the binary 40983 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40984 # Keep paths in /bin as-is, but remove trailing .exe if any 40985 new_path="${new_path/%.exe/}" 40986 # Do not save /bin paths to all_fixpath_prefixes! 40987 else 40988 # Not in mixed or Windows style, start by that. 40989 new_path=`cmd //c echo $new_path` 40990 40991 input_path="$new_path" 40992 # Check if we need to convert this using DOS-style short mode. If the path 40993 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40994 # take no chances and rewrite it. 40995 # Note: m4 eats our [], so we need to use [ and ] instead. 40996 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40997 if test "x$has_forbidden_chars" != x; then 40998 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40999 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41000 fi 41001 41002 # Output is in $new_path 41003 41004 windows_path="$new_path" 41005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41006 unix_path=`$CYGPATH -u "$windows_path"` 41007 new_path="$unix_path" 41008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41010 new_path="$unix_path" 41011 fi 41012 41013 # remove trailing .exe if any 41014 new_path="${new_path/%.exe/}" 41015 41016 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41017 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41018 fi 41019 41020 else 41021 # We're on a unix platform. Hooray! :) 41022 # First separate the path from the arguments. This will split at the first 41023 # space. 41024 complete="$GNM" 41025 path="${complete%% *}" 41026 tmp="$complete EOL" 41027 arguments="${tmp#* }" 41028 41029 # Cannot rely on the command "which" here since it doesn't always work. 41030 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41031 if test -z "$is_absolute_path"; then 41032 # Path to executable is not absolute. Find it. 41033 IFS_save="$IFS" 41034 IFS=: 41035 for p in $PATH; do 41036 if test -f "$p/$path" && test -x "$p/$path"; then 41037 new_path="$p/$path" 41038 break 41039 fi 41040 done 41041 IFS="$IFS_save" 41042 else 41043 # This is an absolute path, we can use it without further modifications. 41044 new_path="$path" 41045 fi 41046 41047 if test "x$new_path" = x; then 41048 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 41049 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 41050 has_space=`$ECHO "$complete" | $GREP " "` 41051 if test "x$has_space" != x; then 41052 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41053 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41054 fi 41055 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 41056 fi 41057 fi 41058 41059 # Now join together the path and the arguments once again 41060 if test "x$arguments" != xEOL; then 41061 new_complete="$new_path ${arguments% *}" 41062 else 41063 new_complete="$new_path" 41064 fi 41065 41066 if test "x$complete" != "x$new_complete"; then 41067 GNM="$new_complete" 41068 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 41069 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 41070 fi 41071 fi 41072 41073 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 41074 # FIXME: we should unify this with the solaris case above. 41075 41076 41077 # Publish this variable in the help. 41078 41079 41080 if [ -z "${STRIP+x}" ]; then 41081 # The variable is not set by user, try to locate tool using the code snippet 41082 if test -n "$ac_tool_prefix"; then 41083 for ac_prog in strip 41084 do 41085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41088 $as_echo_n "checking for $ac_word... " >&6; } 41089 if ${ac_cv_prog_STRIP+:} false; then : 41090 $as_echo_n "(cached) " >&6 41091 else 41092 if test -n "$STRIP"; then 41093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41094 else 41095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41096 for as_dir in $PATH 41097 do 41098 IFS=$as_save_IFS 41099 test -z "$as_dir" && as_dir=. 41100 for ac_exec_ext in '' $ac_executable_extensions; do 41101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41102 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41104 break 2 41105 fi 41106 done 41107 done 41108 IFS=$as_save_IFS 41109 41110 fi 41111 fi 41112 STRIP=$ac_cv_prog_STRIP 41113 if test -n "$STRIP"; then 41114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41115 $as_echo "$STRIP" >&6; } 41116 else 41117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41118 $as_echo "no" >&6; } 41119 fi 41120 41121 41122 test -n "$STRIP" && break 41123 done 41124 fi 41125 if test -z "$STRIP"; then 41126 ac_ct_STRIP=$STRIP 41127 for ac_prog in strip 41128 do 41129 # Extract the first word of "$ac_prog", so it can be a program name with args. 41130 set dummy $ac_prog; ac_word=$2 41131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41132 $as_echo_n "checking for $ac_word... " >&6; } 41133 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 41134 $as_echo_n "(cached) " >&6 41135 else 41136 if test -n "$ac_ct_STRIP"; then 41137 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 41138 else 41139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41140 for as_dir in $PATH 41141 do 41142 IFS=$as_save_IFS 41143 test -z "$as_dir" && as_dir=. 41144 for ac_exec_ext in '' $ac_executable_extensions; do 41145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41146 ac_cv_prog_ac_ct_STRIP="$ac_prog" 41147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41148 break 2 41149 fi 41150 done 41151 done 41152 IFS=$as_save_IFS 41153 41154 fi 41155 fi 41156 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 41157 if test -n "$ac_ct_STRIP"; then 41158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41159 $as_echo "$ac_ct_STRIP" >&6; } 41160 else 41161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41162 $as_echo "no" >&6; } 41163 fi 41164 41165 41166 test -n "$ac_ct_STRIP" && break 41167 done 41168 41169 if test "x$ac_ct_STRIP" = x; then 41170 STRIP="" 41171 else 41172 case $cross_compiling:$ac_tool_warned in 41173 yes:) 41174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41176 ac_tool_warned=yes ;; 41177 esac 41178 STRIP=$ac_ct_STRIP 41179 fi 41180 fi 41181 41182 else 41183 # The variable is set, but is it from the command line or the environment? 41184 41185 # Try to remove the string !STRIP! from our list. 41186 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 41187 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41188 # If it failed, the variable was not from the command line. Ignore it, 41189 # but warn the user (except for BASH, which is always set by the calling BASH). 41190 if test "xSTRIP" != xBASH; then 41191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 41192 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 41193 fi 41194 # Try to locate tool using the code snippet 41195 if test -n "$ac_tool_prefix"; then 41196 for ac_prog in strip 41197 do 41198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41201 $as_echo_n "checking for $ac_word... " >&6; } 41202 if ${ac_cv_prog_STRIP+:} false; then : 41203 $as_echo_n "(cached) " >&6 41204 else 41205 if test -n "$STRIP"; then 41206 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 41207 else 41208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41209 for as_dir in $PATH 41210 do 41211 IFS=$as_save_IFS 41212 test -z "$as_dir" && as_dir=. 41213 for ac_exec_ext in '' $ac_executable_extensions; do 41214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41215 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 41216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41217 break 2 41218 fi 41219 done 41220 done 41221 IFS=$as_save_IFS 41222 41223 fi 41224 fi 41225 STRIP=$ac_cv_prog_STRIP 41226 if test -n "$STRIP"; then 41227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41228 $as_echo "$STRIP" >&6; } 41229 else 41230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41231 $as_echo "no" >&6; } 41232 fi 41233 41234 41235 test -n "$STRIP" && break 41236 done 41237 fi 41238 if test -z "$STRIP"; then 41239 ac_ct_STRIP=$STRIP 41240 for ac_prog in strip 41241 do 41242 # Extract the first word of "$ac_prog", so it can be a program name with args. 41243 set dummy $ac_prog; ac_word=$2 41244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41245 $as_echo_n "checking for $ac_word... " >&6; } 41246 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 41247 $as_echo_n "(cached) " >&6 41248 else 41249 if test -n "$ac_ct_STRIP"; then 41250 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 41251 else 41252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41253 for as_dir in $PATH 41254 do 41255 IFS=$as_save_IFS 41256 test -z "$as_dir" && as_dir=. 41257 for ac_exec_ext in '' $ac_executable_extensions; do 41258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41259 ac_cv_prog_ac_ct_STRIP="$ac_prog" 41260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41261 break 2 41262 fi 41263 done 41264 done 41265 IFS=$as_save_IFS 41266 41267 fi 41268 fi 41269 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 41270 if test -n "$ac_ct_STRIP"; then 41271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 41272 $as_echo "$ac_ct_STRIP" >&6; } 41273 else 41274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41275 $as_echo "no" >&6; } 41276 fi 41277 41278 41279 test -n "$ac_ct_STRIP" && break 41280 done 41281 41282 if test "x$ac_ct_STRIP" = x; then 41283 STRIP="" 41284 else 41285 case $cross_compiling:$ac_tool_warned in 41286 yes:) 41287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41289 ac_tool_warned=yes ;; 41290 esac 41291 STRIP=$ac_ct_STRIP 41292 fi 41293 fi 41294 41295 else 41296 # If it succeeded, then it was overridden by the user. We will use it 41297 # for the tool. 41298 41299 # First remove it from the list of overridden variables, so we can test 41300 # for unknown variables in the end. 41301 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41302 41303 # Check if we try to supply an empty value 41304 if test "x$STRIP" = x; then 41305 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 41306 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 41307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41308 $as_echo_n "checking for STRIP... " >&6; } 41309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41310 $as_echo "disabled" >&6; } 41311 else 41312 # Check if the provided tool contains a complete path. 41313 tool_specified="$STRIP" 41314 tool_basename="${tool_specified##*/}" 41315 if test "x$tool_basename" = "x$tool_specified"; then 41316 # A command without a complete path is provided, search $PATH. 41317 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 41318 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 41319 # Extract the first word of "$tool_basename", so it can be a program name with args. 41320 set dummy $tool_basename; ac_word=$2 41321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41322 $as_echo_n "checking for $ac_word... " >&6; } 41323 if ${ac_cv_path_STRIP+:} false; then : 41324 $as_echo_n "(cached) " >&6 41325 else 41326 case $STRIP in 41327 [\\/]* | ?:[\\/]*) 41328 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41329 ;; 41330 *) 41331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41332 for as_dir in $PATH 41333 do 41334 IFS=$as_save_IFS 41335 test -z "$as_dir" && as_dir=. 41336 for ac_exec_ext in '' $ac_executable_extensions; do 41337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41338 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41340 break 2 41341 fi 41342 done 41343 done 41344 IFS=$as_save_IFS 41345 41346 ;; 41347 esac 41348 fi 41349 STRIP=$ac_cv_path_STRIP 41350 if test -n "$STRIP"; then 41351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41352 $as_echo "$STRIP" >&6; } 41353 else 41354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41355 $as_echo "no" >&6; } 41356 fi 41357 41358 41359 if test "x$STRIP" = x; then 41360 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41361 fi 41362 else 41363 # Otherwise we believe it is a complete path. Use it as it is. 41364 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 41365 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 41366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41367 $as_echo_n "checking for STRIP... " >&6; } 41368 if test ! -x "$tool_specified"; then 41369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41370 $as_echo "not found" >&6; } 41371 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 41372 fi 41373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41374 $as_echo "$tool_specified" >&6; } 41375 fi 41376 fi 41377 fi 41378 41379 fi 41380 41381 41382 41383 # Only process if variable expands to non-empty 41384 41385 if test "x$STRIP" != x; then 41386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41387 41388 # First separate the path from the arguments. This will split at the first 41389 # space. 41390 complete="$STRIP" 41391 path="${complete%% *}" 41392 tmp="$complete EOL" 41393 arguments="${tmp#* }" 41394 41395 # Input might be given as Windows format, start by converting to 41396 # unix format. 41397 new_path=`$CYGPATH -u "$path"` 41398 41399 # Now try to locate executable using which 41400 new_path=`$WHICH "$new_path" 2> /dev/null` 41401 # bat and cmd files are not always considered executable in cygwin causing which 41402 # to not find them 41403 if test "x$new_path" = x \ 41404 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41405 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41406 new_path=`$CYGPATH -u "$path"` 41407 fi 41408 if test "x$new_path" = x; then 41409 # Oops. Which didn't find the executable. 41410 # The splitting of arguments from the executable at a space might have been incorrect, 41411 # since paths with space are more likely in Windows. Give it another try with the whole 41412 # argument. 41413 path="$complete" 41414 arguments="EOL" 41415 new_path=`$CYGPATH -u "$path"` 41416 new_path=`$WHICH "$new_path" 2> /dev/null` 41417 # bat and cmd files are not always considered executable in cygwin causing which 41418 # to not find them 41419 if test "x$new_path" = x \ 41420 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41421 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41422 new_path=`$CYGPATH -u "$path"` 41423 fi 41424 if test "x$new_path" = x; then 41425 # It's still not found. Now this is an unrecoverable error. 41426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41427 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41428 has_space=`$ECHO "$complete" | $GREP " "` 41429 if test "x$has_space" != x; then 41430 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41431 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41432 fi 41433 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41434 fi 41435 fi 41436 41437 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41438 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41439 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41440 # "foo.exe" is OK but "foo" is an error. 41441 # 41442 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41443 # It is also a way to make sure we got the proper file name for the real test later on. 41444 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41445 if test "x$test_shortpath" = x; then 41446 # Short path failed, file does not exist as specified. 41447 # Try adding .exe or .cmd 41448 if test -f "${new_path}.exe"; then 41449 input_to_shortpath="${new_path}.exe" 41450 elif test -f "${new_path}.cmd"; then 41451 input_to_shortpath="${new_path}.cmd" 41452 else 41453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 41454 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 41455 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41456 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41457 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41458 fi 41459 else 41460 input_to_shortpath="$new_path" 41461 fi 41462 41463 # Call helper function which possibly converts this using DOS-style short mode. 41464 # If so, the updated path is stored in $new_path. 41465 new_path="$input_to_shortpath" 41466 41467 input_path="$input_to_shortpath" 41468 # Check if we need to convert this using DOS-style short mode. If the path 41469 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41470 # take no chances and rewrite it. 41471 # Note: m4 eats our [], so we need to use [ and ] instead. 41472 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41473 if test "x$has_forbidden_chars" != x; then 41474 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41475 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41476 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41477 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41478 # Going to short mode and back again did indeed matter. Since short mode is 41479 # case insensitive, let's make it lowercase to improve readability. 41480 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41481 # Now convert it back to Unix-style (cygpath) 41482 input_path=`$CYGPATH -u "$shortmode_path"` 41483 new_path="$input_path" 41484 fi 41485 fi 41486 41487 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41488 if test "x$test_cygdrive_prefix" = x; then 41489 # As a simple fix, exclude /usr/bin since it's not a real path. 41490 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41491 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41492 # a path prefixed by /cygdrive for fixpath to work. 41493 new_path="$CYGWIN_ROOT_PATH$input_path" 41494 fi 41495 fi 41496 41497 # remove trailing .exe if any 41498 new_path="${new_path/%.exe/}" 41499 41500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41501 41502 # First separate the path from the arguments. This will split at the first 41503 # space. 41504 complete="$STRIP" 41505 path="${complete%% *}" 41506 tmp="$complete EOL" 41507 arguments="${tmp#* }" 41508 41509 # Input might be given as Windows format, start by converting to 41510 # unix format. 41511 new_path="$path" 41512 41513 windows_path="$new_path" 41514 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41515 unix_path=`$CYGPATH -u "$windows_path"` 41516 new_path="$unix_path" 41517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41518 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41519 new_path="$unix_path" 41520 fi 41521 41522 41523 # Now try to locate executable using which 41524 new_path=`$WHICH "$new_path" 2> /dev/null` 41525 41526 if test "x$new_path" = x; then 41527 # Oops. Which didn't find the executable. 41528 # The splitting of arguments from the executable at a space might have been incorrect, 41529 # since paths with space are more likely in Windows. Give it another try with the whole 41530 # argument. 41531 path="$complete" 41532 arguments="EOL" 41533 new_path="$path" 41534 41535 windows_path="$new_path" 41536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41537 unix_path=`$CYGPATH -u "$windows_path"` 41538 new_path="$unix_path" 41539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41540 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41541 new_path="$unix_path" 41542 fi 41543 41544 41545 new_path=`$WHICH "$new_path" 2> /dev/null` 41546 # bat and cmd files are not always considered executable in MSYS causing which 41547 # to not find them 41548 if test "x$new_path" = x \ 41549 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41550 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41551 new_path="$path" 41552 41553 windows_path="$new_path" 41554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41555 unix_path=`$CYGPATH -u "$windows_path"` 41556 new_path="$unix_path" 41557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41558 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41559 new_path="$unix_path" 41560 fi 41561 41562 fi 41563 41564 if test "x$new_path" = x; then 41565 # It's still not found. Now this is an unrecoverable error. 41566 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41567 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41568 has_space=`$ECHO "$complete" | $GREP " "` 41569 if test "x$has_space" != x; then 41570 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41571 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41572 fi 41573 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41574 fi 41575 fi 41576 41577 # Now new_path has a complete unix path to the binary 41578 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41579 # Keep paths in /bin as-is, but remove trailing .exe if any 41580 new_path="${new_path/%.exe/}" 41581 # Do not save /bin paths to all_fixpath_prefixes! 41582 else 41583 # Not in mixed or Windows style, start by that. 41584 new_path=`cmd //c echo $new_path` 41585 41586 input_path="$new_path" 41587 # Check if we need to convert this using DOS-style short mode. If the path 41588 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41589 # take no chances and rewrite it. 41590 # Note: m4 eats our [], so we need to use [ and ] instead. 41591 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41592 if test "x$has_forbidden_chars" != x; then 41593 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41594 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41595 fi 41596 41597 # Output is in $new_path 41598 41599 windows_path="$new_path" 41600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41601 unix_path=`$CYGPATH -u "$windows_path"` 41602 new_path="$unix_path" 41603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41604 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41605 new_path="$unix_path" 41606 fi 41607 41608 # remove trailing .exe if any 41609 new_path="${new_path/%.exe/}" 41610 41611 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41612 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41613 fi 41614 41615 else 41616 # We're on a unix platform. Hooray! :) 41617 # First separate the path from the arguments. This will split at the first 41618 # space. 41619 complete="$STRIP" 41620 path="${complete%% *}" 41621 tmp="$complete EOL" 41622 arguments="${tmp#* }" 41623 41624 # Cannot rely on the command "which" here since it doesn't always work. 41625 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41626 if test -z "$is_absolute_path"; then 41627 # Path to executable is not absolute. Find it. 41628 IFS_save="$IFS" 41629 IFS=: 41630 for p in $PATH; do 41631 if test -f "$p/$path" && test -x "$p/$path"; then 41632 new_path="$p/$path" 41633 break 41634 fi 41635 done 41636 IFS="$IFS_save" 41637 else 41638 # This is an absolute path, we can use it without further modifications. 41639 new_path="$path" 41640 fi 41641 41642 if test "x$new_path" = x; then 41643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41644 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41645 has_space=`$ECHO "$complete" | $GREP " "` 41646 if test "x$has_space" != x; then 41647 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41648 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41649 fi 41650 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41651 fi 41652 fi 41653 41654 # Now join together the path and the arguments once again 41655 if test "x$arguments" != xEOL; then 41656 new_complete="$new_path ${arguments% *}" 41657 else 41658 new_complete="$new_path" 41659 fi 41660 41661 if test "x$complete" != "x$new_complete"; then 41662 STRIP="$new_complete" 41663 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41664 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41665 fi 41666 fi 41667 41668 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41669 41670 41671 # Publish this variable in the help. 41672 41673 41674 if [ -z "${NM+x}" ]; then 41675 # The variable is not set by user, try to locate tool using the code snippet 41676 if test -n "$ac_tool_prefix"; then 41677 for ac_prog in nm gcc-nm 41678 do 41679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41682 $as_echo_n "checking for $ac_word... " >&6; } 41683 if ${ac_cv_prog_NM+:} false; then : 41684 $as_echo_n "(cached) " >&6 41685 else 41686 if test -n "$NM"; then 41687 ac_cv_prog_NM="$NM" # Let the user override the test. 41688 else 41689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41690 for as_dir in $PATH 41691 do 41692 IFS=$as_save_IFS 41693 test -z "$as_dir" && as_dir=. 41694 for ac_exec_ext in '' $ac_executable_extensions; do 41695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41696 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41698 break 2 41699 fi 41700 done 41701 done 41702 IFS=$as_save_IFS 41703 41704 fi 41705 fi 41706 NM=$ac_cv_prog_NM 41707 if test -n "$NM"; then 41708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41709 $as_echo "$NM" >&6; } 41710 else 41711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41712 $as_echo "no" >&6; } 41713 fi 41714 41715 41716 test -n "$NM" && break 41717 done 41718 fi 41719 if test -z "$NM"; then 41720 ac_ct_NM=$NM 41721 for ac_prog in nm gcc-nm 41722 do 41723 # Extract the first word of "$ac_prog", so it can be a program name with args. 41724 set dummy $ac_prog; ac_word=$2 41725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41726 $as_echo_n "checking for $ac_word... " >&6; } 41727 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41728 $as_echo_n "(cached) " >&6 41729 else 41730 if test -n "$ac_ct_NM"; then 41731 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41732 else 41733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41734 for as_dir in $PATH 41735 do 41736 IFS=$as_save_IFS 41737 test -z "$as_dir" && as_dir=. 41738 for ac_exec_ext in '' $ac_executable_extensions; do 41739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41740 ac_cv_prog_ac_ct_NM="$ac_prog" 41741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41742 break 2 41743 fi 41744 done 41745 done 41746 IFS=$as_save_IFS 41747 41748 fi 41749 fi 41750 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41751 if test -n "$ac_ct_NM"; then 41752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41753 $as_echo "$ac_ct_NM" >&6; } 41754 else 41755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41756 $as_echo "no" >&6; } 41757 fi 41758 41759 41760 test -n "$ac_ct_NM" && break 41761 done 41762 41763 if test "x$ac_ct_NM" = x; then 41764 NM="" 41765 else 41766 case $cross_compiling:$ac_tool_warned in 41767 yes:) 41768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41770 ac_tool_warned=yes ;; 41771 esac 41772 NM=$ac_ct_NM 41773 fi 41774 fi 41775 41776 else 41777 # The variable is set, but is it from the command line or the environment? 41778 41779 # Try to remove the string !NM! from our list. 41780 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41781 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41782 # If it failed, the variable was not from the command line. Ignore it, 41783 # but warn the user (except for BASH, which is always set by the calling BASH). 41784 if test "xNM" != xBASH; then 41785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41786 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41787 fi 41788 # Try to locate tool using the code snippet 41789 if test -n "$ac_tool_prefix"; then 41790 for ac_prog in nm gcc-nm 41791 do 41792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41795 $as_echo_n "checking for $ac_word... " >&6; } 41796 if ${ac_cv_prog_NM+:} false; then : 41797 $as_echo_n "(cached) " >&6 41798 else 41799 if test -n "$NM"; then 41800 ac_cv_prog_NM="$NM" # Let the user override the test. 41801 else 41802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41803 for as_dir in $PATH 41804 do 41805 IFS=$as_save_IFS 41806 test -z "$as_dir" && as_dir=. 41807 for ac_exec_ext in '' $ac_executable_extensions; do 41808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41809 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41811 break 2 41812 fi 41813 done 41814 done 41815 IFS=$as_save_IFS 41816 41817 fi 41818 fi 41819 NM=$ac_cv_prog_NM 41820 if test -n "$NM"; then 41821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41822 $as_echo "$NM" >&6; } 41823 else 41824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41825 $as_echo "no" >&6; } 41826 fi 41827 41828 41829 test -n "$NM" && break 41830 done 41831 fi 41832 if test -z "$NM"; then 41833 ac_ct_NM=$NM 41834 for ac_prog in nm gcc-nm 41835 do 41836 # Extract the first word of "$ac_prog", so it can be a program name with args. 41837 set dummy $ac_prog; ac_word=$2 41838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41839 $as_echo_n "checking for $ac_word... " >&6; } 41840 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41841 $as_echo_n "(cached) " >&6 41842 else 41843 if test -n "$ac_ct_NM"; then 41844 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41845 else 41846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41847 for as_dir in $PATH 41848 do 41849 IFS=$as_save_IFS 41850 test -z "$as_dir" && as_dir=. 41851 for ac_exec_ext in '' $ac_executable_extensions; do 41852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41853 ac_cv_prog_ac_ct_NM="$ac_prog" 41854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41855 break 2 41856 fi 41857 done 41858 done 41859 IFS=$as_save_IFS 41860 41861 fi 41862 fi 41863 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41864 if test -n "$ac_ct_NM"; then 41865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41866 $as_echo "$ac_ct_NM" >&6; } 41867 else 41868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41869 $as_echo "no" >&6; } 41870 fi 41871 41872 41873 test -n "$ac_ct_NM" && break 41874 done 41875 41876 if test "x$ac_ct_NM" = x; then 41877 NM="" 41878 else 41879 case $cross_compiling:$ac_tool_warned in 41880 yes:) 41881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41883 ac_tool_warned=yes ;; 41884 esac 41885 NM=$ac_ct_NM 41886 fi 41887 fi 41888 41889 else 41890 # If it succeeded, then it was overridden by the user. We will use it 41891 # for the tool. 41892 41893 # First remove it from the list of overridden variables, so we can test 41894 # for unknown variables in the end. 41895 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41896 41897 # Check if we try to supply an empty value 41898 if test "x$NM" = x; then 41899 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41900 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41902 $as_echo_n "checking for NM... " >&6; } 41903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41904 $as_echo "disabled" >&6; } 41905 else 41906 # Check if the provided tool contains a complete path. 41907 tool_specified="$NM" 41908 tool_basename="${tool_specified##*/}" 41909 if test "x$tool_basename" = "x$tool_specified"; then 41910 # A command without a complete path is provided, search $PATH. 41911 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41912 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41913 # Extract the first word of "$tool_basename", so it can be a program name with args. 41914 set dummy $tool_basename; ac_word=$2 41915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41916 $as_echo_n "checking for $ac_word... " >&6; } 41917 if ${ac_cv_path_NM+:} false; then : 41918 $as_echo_n "(cached) " >&6 41919 else 41920 case $NM in 41921 [\\/]* | ?:[\\/]*) 41922 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41923 ;; 41924 *) 41925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41926 for as_dir in $PATH 41927 do 41928 IFS=$as_save_IFS 41929 test -z "$as_dir" && as_dir=. 41930 for ac_exec_ext in '' $ac_executable_extensions; do 41931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41932 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41934 break 2 41935 fi 41936 done 41937 done 41938 IFS=$as_save_IFS 41939 41940 ;; 41941 esac 41942 fi 41943 NM=$ac_cv_path_NM 41944 if test -n "$NM"; then 41945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41946 $as_echo "$NM" >&6; } 41947 else 41948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41949 $as_echo "no" >&6; } 41950 fi 41951 41952 41953 if test "x$NM" = x; then 41954 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41955 fi 41956 else 41957 # Otherwise we believe it is a complete path. Use it as it is. 41958 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41959 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41961 $as_echo_n "checking for NM... " >&6; } 41962 if test ! -x "$tool_specified"; then 41963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41964 $as_echo "not found" >&6; } 41965 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 41966 fi 41967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41968 $as_echo "$tool_specified" >&6; } 41969 fi 41970 fi 41971 fi 41972 41973 fi 41974 41975 41976 else 41977 41978 41979 # Publish this variable in the help. 41980 41981 41982 if [ -z "${NM+x}" ]; then 41983 # The variable is not set by user, try to locate tool using the code snippet 41984 if test -n "$ac_tool_prefix"; then 41985 for ac_prog in nm 41986 do 41987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41990 $as_echo_n "checking for $ac_word... " >&6; } 41991 if ${ac_cv_prog_NM+:} false; then : 41992 $as_echo_n "(cached) " >&6 41993 else 41994 if test -n "$NM"; then 41995 ac_cv_prog_NM="$NM" # Let the user override the test. 41996 else 41997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41998 for as_dir in $PATH 41999 do 42000 IFS=$as_save_IFS 42001 test -z "$as_dir" && as_dir=. 42002 for ac_exec_ext in '' $ac_executable_extensions; do 42003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42004 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42006 break 2 42007 fi 42008 done 42009 done 42010 IFS=$as_save_IFS 42011 42012 fi 42013 fi 42014 NM=$ac_cv_prog_NM 42015 if test -n "$NM"; then 42016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42017 $as_echo "$NM" >&6; } 42018 else 42019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42020 $as_echo "no" >&6; } 42021 fi 42022 42023 42024 test -n "$NM" && break 42025 done 42026 fi 42027 if test -z "$NM"; then 42028 ac_ct_NM=$NM 42029 for ac_prog in nm 42030 do 42031 # Extract the first word of "$ac_prog", so it can be a program name with args. 42032 set dummy $ac_prog; ac_word=$2 42033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42034 $as_echo_n "checking for $ac_word... " >&6; } 42035 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42036 $as_echo_n "(cached) " >&6 42037 else 42038 if test -n "$ac_ct_NM"; then 42039 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42040 else 42041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42042 for as_dir in $PATH 42043 do 42044 IFS=$as_save_IFS 42045 test -z "$as_dir" && as_dir=. 42046 for ac_exec_ext in '' $ac_executable_extensions; do 42047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42048 ac_cv_prog_ac_ct_NM="$ac_prog" 42049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42050 break 2 42051 fi 42052 done 42053 done 42054 IFS=$as_save_IFS 42055 42056 fi 42057 fi 42058 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42059 if test -n "$ac_ct_NM"; then 42060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42061 $as_echo "$ac_ct_NM" >&6; } 42062 else 42063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42064 $as_echo "no" >&6; } 42065 fi 42066 42067 42068 test -n "$ac_ct_NM" && break 42069 done 42070 42071 if test "x$ac_ct_NM" = x; then 42072 NM="" 42073 else 42074 case $cross_compiling:$ac_tool_warned in 42075 yes:) 42076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42078 ac_tool_warned=yes ;; 42079 esac 42080 NM=$ac_ct_NM 42081 fi 42082 fi 42083 42084 else 42085 # The variable is set, but is it from the command line or the environment? 42086 42087 # Try to remove the string !NM! from our list. 42088 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42089 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42090 # If it failed, the variable was not from the command line. Ignore it, 42091 # but warn the user (except for BASH, which is always set by the calling BASH). 42092 if test "xNM" != xBASH; then 42093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42094 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42095 fi 42096 # Try to locate tool using the code snippet 42097 if test -n "$ac_tool_prefix"; then 42098 for ac_prog in nm 42099 do 42100 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42103 $as_echo_n "checking for $ac_word... " >&6; } 42104 if ${ac_cv_prog_NM+:} false; then : 42105 $as_echo_n "(cached) " >&6 42106 else 42107 if test -n "$NM"; then 42108 ac_cv_prog_NM="$NM" # Let the user override the test. 42109 else 42110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42111 for as_dir in $PATH 42112 do 42113 IFS=$as_save_IFS 42114 test -z "$as_dir" && as_dir=. 42115 for ac_exec_ext in '' $ac_executable_extensions; do 42116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42117 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 42118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42119 break 2 42120 fi 42121 done 42122 done 42123 IFS=$as_save_IFS 42124 42125 fi 42126 fi 42127 NM=$ac_cv_prog_NM 42128 if test -n "$NM"; then 42129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42130 $as_echo "$NM" >&6; } 42131 else 42132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42133 $as_echo "no" >&6; } 42134 fi 42135 42136 42137 test -n "$NM" && break 42138 done 42139 fi 42140 if test -z "$NM"; then 42141 ac_ct_NM=$NM 42142 for ac_prog in nm 42143 do 42144 # Extract the first word of "$ac_prog", so it can be a program name with args. 42145 set dummy $ac_prog; ac_word=$2 42146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42147 $as_echo_n "checking for $ac_word... " >&6; } 42148 if ${ac_cv_prog_ac_ct_NM+:} false; then : 42149 $as_echo_n "(cached) " >&6 42150 else 42151 if test -n "$ac_ct_NM"; then 42152 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 42153 else 42154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42155 for as_dir in $PATH 42156 do 42157 IFS=$as_save_IFS 42158 test -z "$as_dir" && as_dir=. 42159 for ac_exec_ext in '' $ac_executable_extensions; do 42160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42161 ac_cv_prog_ac_ct_NM="$ac_prog" 42162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42163 break 2 42164 fi 42165 done 42166 done 42167 IFS=$as_save_IFS 42168 42169 fi 42170 fi 42171 ac_ct_NM=$ac_cv_prog_ac_ct_NM 42172 if test -n "$ac_ct_NM"; then 42173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 42174 $as_echo "$ac_ct_NM" >&6; } 42175 else 42176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42177 $as_echo "no" >&6; } 42178 fi 42179 42180 42181 test -n "$ac_ct_NM" && break 42182 done 42183 42184 if test "x$ac_ct_NM" = x; then 42185 NM="" 42186 else 42187 case $cross_compiling:$ac_tool_warned in 42188 yes:) 42189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42191 ac_tool_warned=yes ;; 42192 esac 42193 NM=$ac_ct_NM 42194 fi 42195 fi 42196 42197 else 42198 # If it succeeded, then it was overridden by the user. We will use it 42199 # for the tool. 42200 42201 # First remove it from the list of overridden variables, so we can test 42202 # for unknown variables in the end. 42203 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42204 42205 # Check if we try to supply an empty value 42206 if test "x$NM" = x; then 42207 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42208 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42210 $as_echo_n "checking for NM... " >&6; } 42211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42212 $as_echo "disabled" >&6; } 42213 else 42214 # Check if the provided tool contains a complete path. 42215 tool_specified="$NM" 42216 tool_basename="${tool_specified##*/}" 42217 if test "x$tool_basename" = "x$tool_specified"; then 42218 # A command without a complete path is provided, search $PATH. 42219 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42220 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42221 # Extract the first word of "$tool_basename", so it can be a program name with args. 42222 set dummy $tool_basename; ac_word=$2 42223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42224 $as_echo_n "checking for $ac_word... " >&6; } 42225 if ${ac_cv_path_NM+:} false; then : 42226 $as_echo_n "(cached) " >&6 42227 else 42228 case $NM in 42229 [\\/]* | ?:[\\/]*) 42230 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42231 ;; 42232 *) 42233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42234 for as_dir in $PATH 42235 do 42236 IFS=$as_save_IFS 42237 test -z "$as_dir" && as_dir=. 42238 for ac_exec_ext in '' $ac_executable_extensions; do 42239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42240 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42242 break 2 42243 fi 42244 done 42245 done 42246 IFS=$as_save_IFS 42247 42248 ;; 42249 esac 42250 fi 42251 NM=$ac_cv_path_NM 42252 if test -n "$NM"; then 42253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42254 $as_echo "$NM" >&6; } 42255 else 42256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42257 $as_echo "no" >&6; } 42258 fi 42259 42260 42261 if test "x$NM" = x; then 42262 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42263 fi 42264 else 42265 # Otherwise we believe it is a complete path. Use it as it is. 42266 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42267 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42269 $as_echo_n "checking for NM... " >&6; } 42270 if test ! -x "$tool_specified"; then 42271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42272 $as_echo "not found" >&6; } 42273 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42274 fi 42275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42276 $as_echo "$tool_specified" >&6; } 42277 fi 42278 fi 42279 fi 42280 42281 fi 42282 42283 42284 fi 42285 42286 # Only process if variable expands to non-empty 42287 42288 if test "x$NM" != x; then 42289 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42290 42291 # First separate the path from the arguments. This will split at the first 42292 # space. 42293 complete="$NM" 42294 path="${complete%% *}" 42295 tmp="$complete EOL" 42296 arguments="${tmp#* }" 42297 42298 # Input might be given as Windows format, start by converting to 42299 # unix format. 42300 new_path=`$CYGPATH -u "$path"` 42301 42302 # Now try to locate executable using which 42303 new_path=`$WHICH "$new_path" 2> /dev/null` 42304 # bat and cmd files are not always considered executable in cygwin causing which 42305 # to not find them 42306 if test "x$new_path" = x \ 42307 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42308 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42309 new_path=`$CYGPATH -u "$path"` 42310 fi 42311 if test "x$new_path" = x; then 42312 # Oops. Which didn't find the executable. 42313 # The splitting of arguments from the executable at a space might have been incorrect, 42314 # since paths with space are more likely in Windows. Give it another try with the whole 42315 # argument. 42316 path="$complete" 42317 arguments="EOL" 42318 new_path=`$CYGPATH -u "$path"` 42319 new_path=`$WHICH "$new_path" 2> /dev/null` 42320 # bat and cmd files are not always considered executable in cygwin causing which 42321 # to not find them 42322 if test "x$new_path" = x \ 42323 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42324 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42325 new_path=`$CYGPATH -u "$path"` 42326 fi 42327 if test "x$new_path" = x; then 42328 # It's still not found. Now this is an unrecoverable error. 42329 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42330 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42331 has_space=`$ECHO "$complete" | $GREP " "` 42332 if test "x$has_space" != x; then 42333 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42334 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42335 fi 42336 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42337 fi 42338 fi 42339 42340 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42341 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42342 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42343 # "foo.exe" is OK but "foo" is an error. 42344 # 42345 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42346 # It is also a way to make sure we got the proper file name for the real test later on. 42347 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42348 if test "x$test_shortpath" = x; then 42349 # Short path failed, file does not exist as specified. 42350 # Try adding .exe or .cmd 42351 if test -f "${new_path}.exe"; then 42352 input_to_shortpath="${new_path}.exe" 42353 elif test -f "${new_path}.cmd"; then 42354 input_to_shortpath="${new_path}.cmd" 42355 else 42356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 42357 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 42358 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42359 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42360 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42361 fi 42362 else 42363 input_to_shortpath="$new_path" 42364 fi 42365 42366 # Call helper function which possibly converts this using DOS-style short mode. 42367 # If so, the updated path is stored in $new_path. 42368 new_path="$input_to_shortpath" 42369 42370 input_path="$input_to_shortpath" 42371 # Check if we need to convert this using DOS-style short mode. If the path 42372 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42373 # take no chances and rewrite it. 42374 # Note: m4 eats our [], so we need to use [ and ] instead. 42375 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42376 if test "x$has_forbidden_chars" != x; then 42377 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42378 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42379 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42380 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42381 # Going to short mode and back again did indeed matter. Since short mode is 42382 # case insensitive, let's make it lowercase to improve readability. 42383 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42384 # Now convert it back to Unix-style (cygpath) 42385 input_path=`$CYGPATH -u "$shortmode_path"` 42386 new_path="$input_path" 42387 fi 42388 fi 42389 42390 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42391 if test "x$test_cygdrive_prefix" = x; then 42392 # As a simple fix, exclude /usr/bin since it's not a real path. 42393 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42394 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42395 # a path prefixed by /cygdrive for fixpath to work. 42396 new_path="$CYGWIN_ROOT_PATH$input_path" 42397 fi 42398 fi 42399 42400 # remove trailing .exe if any 42401 new_path="${new_path/%.exe/}" 42402 42403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42404 42405 # First separate the path from the arguments. This will split at the first 42406 # space. 42407 complete="$NM" 42408 path="${complete%% *}" 42409 tmp="$complete EOL" 42410 arguments="${tmp#* }" 42411 42412 # Input might be given as Windows format, start by converting to 42413 # unix format. 42414 new_path="$path" 42415 42416 windows_path="$new_path" 42417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42418 unix_path=`$CYGPATH -u "$windows_path"` 42419 new_path="$unix_path" 42420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42421 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42422 new_path="$unix_path" 42423 fi 42424 42425 42426 # Now try to locate executable using which 42427 new_path=`$WHICH "$new_path" 2> /dev/null` 42428 42429 if test "x$new_path" = x; then 42430 # Oops. Which didn't find the executable. 42431 # The splitting of arguments from the executable at a space might have been incorrect, 42432 # since paths with space are more likely in Windows. Give it another try with the whole 42433 # argument. 42434 path="$complete" 42435 arguments="EOL" 42436 new_path="$path" 42437 42438 windows_path="$new_path" 42439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42440 unix_path=`$CYGPATH -u "$windows_path"` 42441 new_path="$unix_path" 42442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42443 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42444 new_path="$unix_path" 42445 fi 42446 42447 42448 new_path=`$WHICH "$new_path" 2> /dev/null` 42449 # bat and cmd files are not always considered executable in MSYS causing which 42450 # to not find them 42451 if test "x$new_path" = x \ 42452 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42453 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42454 new_path="$path" 42455 42456 windows_path="$new_path" 42457 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42458 unix_path=`$CYGPATH -u "$windows_path"` 42459 new_path="$unix_path" 42460 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42461 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42462 new_path="$unix_path" 42463 fi 42464 42465 fi 42466 42467 if test "x$new_path" = x; then 42468 # It's still not found. Now this is an unrecoverable error. 42469 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42470 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42471 has_space=`$ECHO "$complete" | $GREP " "` 42472 if test "x$has_space" != x; then 42473 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42474 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42475 fi 42476 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42477 fi 42478 fi 42479 42480 # Now new_path has a complete unix path to the binary 42481 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42482 # Keep paths in /bin as-is, but remove trailing .exe if any 42483 new_path="${new_path/%.exe/}" 42484 # Do not save /bin paths to all_fixpath_prefixes! 42485 else 42486 # Not in mixed or Windows style, start by that. 42487 new_path=`cmd //c echo $new_path` 42488 42489 input_path="$new_path" 42490 # Check if we need to convert this using DOS-style short mode. If the path 42491 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42492 # take no chances and rewrite it. 42493 # Note: m4 eats our [], so we need to use [ and ] instead. 42494 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42495 if test "x$has_forbidden_chars" != x; then 42496 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42497 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42498 fi 42499 42500 # Output is in $new_path 42501 42502 windows_path="$new_path" 42503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42504 unix_path=`$CYGPATH -u "$windows_path"` 42505 new_path="$unix_path" 42506 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42507 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42508 new_path="$unix_path" 42509 fi 42510 42511 # remove trailing .exe if any 42512 new_path="${new_path/%.exe/}" 42513 42514 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42515 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42516 fi 42517 42518 else 42519 # We're on a unix platform. Hooray! :) 42520 # First separate the path from the arguments. This will split at the first 42521 # space. 42522 complete="$NM" 42523 path="${complete%% *}" 42524 tmp="$complete EOL" 42525 arguments="${tmp#* }" 42526 42527 # Cannot rely on the command "which" here since it doesn't always work. 42528 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42529 if test -z "$is_absolute_path"; then 42530 # Path to executable is not absolute. Find it. 42531 IFS_save="$IFS" 42532 IFS=: 42533 for p in $PATH; do 42534 if test -f "$p/$path" && test -x "$p/$path"; then 42535 new_path="$p/$path" 42536 break 42537 fi 42538 done 42539 IFS="$IFS_save" 42540 else 42541 # This is an absolute path, we can use it without further modifications. 42542 new_path="$path" 42543 fi 42544 42545 if test "x$new_path" = x; then 42546 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42547 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42548 has_space=`$ECHO "$complete" | $GREP " "` 42549 if test "x$has_space" != x; then 42550 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42551 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42552 fi 42553 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42554 fi 42555 fi 42556 42557 # Now join together the path and the arguments once again 42558 if test "x$arguments" != xEOL; then 42559 new_complete="$new_path ${arguments% *}" 42560 else 42561 new_complete="$new_path" 42562 fi 42563 42564 if test "x$complete" != "x$new_complete"; then 42565 NM="$new_complete" 42566 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 42567 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 42568 fi 42569 fi 42570 42571 GNM="$NM" 42572 42573 fi 42574 42575 # objcopy is used for moving debug symbols to separate files when 42576 # full debug symbols are enabled. 42577 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 42578 42579 42580 # Publish this variable in the help. 42581 42582 42583 if [ -z "${OBJCOPY+x}" ]; then 42584 # The variable is not set by user, try to locate tool using the code snippet 42585 if test -n "$ac_tool_prefix"; then 42586 for ac_prog in gobjcopy objcopy 42587 do 42588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42591 $as_echo_n "checking for $ac_word... " >&6; } 42592 if ${ac_cv_prog_OBJCOPY+:} false; then : 42593 $as_echo_n "(cached) " >&6 42594 else 42595 if test -n "$OBJCOPY"; then 42596 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 42597 else 42598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42599 for as_dir in $PATH 42600 do 42601 IFS=$as_save_IFS 42602 test -z "$as_dir" && as_dir=. 42603 for ac_exec_ext in '' $ac_executable_extensions; do 42604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42605 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 42606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42607 break 2 42608 fi 42609 done 42610 done 42611 IFS=$as_save_IFS 42612 42613 fi 42614 fi 42615 OBJCOPY=$ac_cv_prog_OBJCOPY 42616 if test -n "$OBJCOPY"; then 42617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42618 $as_echo "$OBJCOPY" >&6; } 42619 else 42620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42621 $as_echo "no" >&6; } 42622 fi 42623 42624 42625 test -n "$OBJCOPY" && break 42626 done 42627 fi 42628 if test -z "$OBJCOPY"; then 42629 ac_ct_OBJCOPY=$OBJCOPY 42630 for ac_prog in gobjcopy objcopy 42631 do 42632 # Extract the first word of "$ac_prog", so it can be a program name with args. 42633 set dummy $ac_prog; ac_word=$2 42634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42635 $as_echo_n "checking for $ac_word... " >&6; } 42636 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 42637 $as_echo_n "(cached) " >&6 42638 else 42639 if test -n "$ac_ct_OBJCOPY"; then 42640 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 42641 else 42642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42643 for as_dir in $PATH 42644 do 42645 IFS=$as_save_IFS 42646 test -z "$as_dir" && as_dir=. 42647 for ac_exec_ext in '' $ac_executable_extensions; do 42648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42649 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 42650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42651 break 2 42652 fi 42653 done 42654 done 42655 IFS=$as_save_IFS 42656 42657 fi 42658 fi 42659 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 42660 if test -n "$ac_ct_OBJCOPY"; then 42661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 42662 $as_echo "$ac_ct_OBJCOPY" >&6; } 42663 else 42664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42665 $as_echo "no" >&6; } 42666 fi 42667 42668 42669 test -n "$ac_ct_OBJCOPY" && break 42670 done 42671 42672 if test "x$ac_ct_OBJCOPY" = x; then 42673 OBJCOPY="" 42674 else 42675 case $cross_compiling:$ac_tool_warned in 42676 yes:) 42677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42679 ac_tool_warned=yes ;; 42680 esac 42681 OBJCOPY=$ac_ct_OBJCOPY 42682 fi 42683 fi 42684 42685 else 42686 # The variable is set, but is it from the command line or the environment? 42687 42688 # Try to remove the string !OBJCOPY! from our list. 42689 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 42690 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42691 # If it failed, the variable was not from the command line. Ignore it, 42692 # but warn the user (except for BASH, which is always set by the calling BASH). 42693 if test "xOBJCOPY" != xBASH; then 42694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 42695 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 42696 fi 42697 # Try to locate tool using the code snippet 42698 if test -n "$ac_tool_prefix"; then 42699 for ac_prog in gobjcopy objcopy 42700 do 42701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42704 $as_echo_n "checking for $ac_word... " >&6; } 42705 if ${ac_cv_prog_OBJCOPY+:} false; then : 42706 $as_echo_n "(cached) " >&6 42707 else 42708 if test -n "$OBJCOPY"; then 42709 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 42710 else 42711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42712 for as_dir in $PATH 42713 do 42714 IFS=$as_save_IFS 42715 test -z "$as_dir" && as_dir=. 42716 for ac_exec_ext in '' $ac_executable_extensions; do 42717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42718 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 42719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42720 break 2 42721 fi 42722 done 42723 done 42724 IFS=$as_save_IFS 42725 42726 fi 42727 fi 42728 OBJCOPY=$ac_cv_prog_OBJCOPY 42729 if test -n "$OBJCOPY"; then 42730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42731 $as_echo "$OBJCOPY" >&6; } 42732 else 42733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42734 $as_echo "no" >&6; } 42735 fi 42736 42737 42738 test -n "$OBJCOPY" && break 42739 done 42740 fi 42741 if test -z "$OBJCOPY"; then 42742 ac_ct_OBJCOPY=$OBJCOPY 42743 for ac_prog in gobjcopy objcopy 42744 do 42745 # Extract the first word of "$ac_prog", so it can be a program name with args. 42746 set dummy $ac_prog; ac_word=$2 42747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42748 $as_echo_n "checking for $ac_word... " >&6; } 42749 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 42750 $as_echo_n "(cached) " >&6 42751 else 42752 if test -n "$ac_ct_OBJCOPY"; then 42753 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 42754 else 42755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42756 for as_dir in $PATH 42757 do 42758 IFS=$as_save_IFS 42759 test -z "$as_dir" && as_dir=. 42760 for ac_exec_ext in '' $ac_executable_extensions; do 42761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42762 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 42763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42764 break 2 42765 fi 42766 done 42767 done 42768 IFS=$as_save_IFS 42769 42770 fi 42771 fi 42772 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 42773 if test -n "$ac_ct_OBJCOPY"; then 42774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 42775 $as_echo "$ac_ct_OBJCOPY" >&6; } 42776 else 42777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42778 $as_echo "no" >&6; } 42779 fi 42780 42781 42782 test -n "$ac_ct_OBJCOPY" && break 42783 done 42784 42785 if test "x$ac_ct_OBJCOPY" = x; then 42786 OBJCOPY="" 42787 else 42788 case $cross_compiling:$ac_tool_warned in 42789 yes:) 42790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42792 ac_tool_warned=yes ;; 42793 esac 42794 OBJCOPY=$ac_ct_OBJCOPY 42795 fi 42796 fi 42797 42798 else 42799 # If it succeeded, then it was overridden by the user. We will use it 42800 # for the tool. 42801 42802 # First remove it from the list of overridden variables, so we can test 42803 # for unknown variables in the end. 42804 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42805 42806 # Check if we try to supply an empty value 42807 if test "x$OBJCOPY" = x; then 42808 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 42809 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 42810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42811 $as_echo_n "checking for OBJCOPY... " >&6; } 42812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42813 $as_echo "disabled" >&6; } 42814 else 42815 # Check if the provided tool contains a complete path. 42816 tool_specified="$OBJCOPY" 42817 tool_basename="${tool_specified##*/}" 42818 if test "x$tool_basename" = "x$tool_specified"; then 42819 # A command without a complete path is provided, search $PATH. 42820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 42821 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 42822 # Extract the first word of "$tool_basename", so it can be a program name with args. 42823 set dummy $tool_basename; ac_word=$2 42824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42825 $as_echo_n "checking for $ac_word... " >&6; } 42826 if ${ac_cv_path_OBJCOPY+:} false; then : 42827 $as_echo_n "(cached) " >&6 42828 else 42829 case $OBJCOPY in 42830 [\\/]* | ?:[\\/]*) 42831 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 42832 ;; 42833 *) 42834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42835 for as_dir in $PATH 42836 do 42837 IFS=$as_save_IFS 42838 test -z "$as_dir" && as_dir=. 42839 for ac_exec_ext in '' $ac_executable_extensions; do 42840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42841 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 42842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42843 break 2 42844 fi 42845 done 42846 done 42847 IFS=$as_save_IFS 42848 42849 ;; 42850 esac 42851 fi 42852 OBJCOPY=$ac_cv_path_OBJCOPY 42853 if test -n "$OBJCOPY"; then 42854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42855 $as_echo "$OBJCOPY" >&6; } 42856 else 42857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42858 $as_echo "no" >&6; } 42859 fi 42860 42861 42862 if test "x$OBJCOPY" = x; then 42863 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42864 fi 42865 else 42866 # Otherwise we believe it is a complete path. Use it as it is. 42867 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 42868 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 42869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42870 $as_echo_n "checking for OBJCOPY... " >&6; } 42871 if test ! -x "$tool_specified"; then 42872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42873 $as_echo "not found" >&6; } 42874 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 42875 fi 42876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42877 $as_echo "$tool_specified" >&6; } 42878 fi 42879 fi 42880 fi 42881 42882 fi 42883 42884 42885 # Only call fixup if objcopy was found. 42886 if test -n "$OBJCOPY"; then 42887 42888 # Only process if variable expands to non-empty 42889 42890 if test "x$OBJCOPY" != x; then 42891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42892 42893 # First separate the path from the arguments. This will split at the first 42894 # space. 42895 complete="$OBJCOPY" 42896 path="${complete%% *}" 42897 tmp="$complete EOL" 42898 arguments="${tmp#* }" 42899 42900 # Input might be given as Windows format, start by converting to 42901 # unix format. 42902 new_path=`$CYGPATH -u "$path"` 42903 42904 # Now try to locate executable using which 42905 new_path=`$WHICH "$new_path" 2> /dev/null` 42906 # bat and cmd files are not always considered executable in cygwin causing which 42907 # to not find them 42908 if test "x$new_path" = x \ 42909 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42910 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42911 new_path=`$CYGPATH -u "$path"` 42912 fi 42913 if test "x$new_path" = x; then 42914 # Oops. Which didn't find the executable. 42915 # The splitting of arguments from the executable at a space might have been incorrect, 42916 # since paths with space are more likely in Windows. Give it another try with the whole 42917 # argument. 42918 path="$complete" 42919 arguments="EOL" 42920 new_path=`$CYGPATH -u "$path"` 42921 new_path=`$WHICH "$new_path" 2> /dev/null` 42922 # bat and cmd files are not always considered executable in cygwin causing which 42923 # to not find them 42924 if test "x$new_path" = x \ 42925 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42926 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42927 new_path=`$CYGPATH -u "$path"` 42928 fi 42929 if test "x$new_path" = x; then 42930 # It's still not found. Now this is an unrecoverable error. 42931 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 42932 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 42933 has_space=`$ECHO "$complete" | $GREP " "` 42934 if test "x$has_space" != x; then 42935 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42936 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42937 fi 42938 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42939 fi 42940 fi 42941 42942 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42943 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42944 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42945 # "foo.exe" is OK but "foo" is an error. 42946 # 42947 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42948 # It is also a way to make sure we got the proper file name for the real test later on. 42949 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42950 if test "x$test_shortpath" = x; then 42951 # Short path failed, file does not exist as specified. 42952 # Try adding .exe or .cmd 42953 if test -f "${new_path}.exe"; then 42954 input_to_shortpath="${new_path}.exe" 42955 elif test -f "${new_path}.cmd"; then 42956 input_to_shortpath="${new_path}.cmd" 42957 else 42958 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 42959 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 42960 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42961 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42962 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42963 fi 42964 else 42965 input_to_shortpath="$new_path" 42966 fi 42967 42968 # Call helper function which possibly converts this using DOS-style short mode. 42969 # If so, the updated path is stored in $new_path. 42970 new_path="$input_to_shortpath" 42971 42972 input_path="$input_to_shortpath" 42973 # Check if we need to convert this using DOS-style short mode. If the path 42974 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42975 # take no chances and rewrite it. 42976 # Note: m4 eats our [], so we need to use [ and ] instead. 42977 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42978 if test "x$has_forbidden_chars" != x; then 42979 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42980 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42981 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42982 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42983 # Going to short mode and back again did indeed matter. Since short mode is 42984 # case insensitive, let's make it lowercase to improve readability. 42985 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42986 # Now convert it back to Unix-style (cygpath) 42987 input_path=`$CYGPATH -u "$shortmode_path"` 42988 new_path="$input_path" 42989 fi 42990 fi 42991 42992 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42993 if test "x$test_cygdrive_prefix" = x; then 42994 # As a simple fix, exclude /usr/bin since it's not a real path. 42995 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42996 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42997 # a path prefixed by /cygdrive for fixpath to work. 42998 new_path="$CYGWIN_ROOT_PATH$input_path" 42999 fi 43000 fi 43001 43002 # remove trailing .exe if any 43003 new_path="${new_path/%.exe/}" 43004 43005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43006 43007 # First separate the path from the arguments. This will split at the first 43008 # space. 43009 complete="$OBJCOPY" 43010 path="${complete%% *}" 43011 tmp="$complete EOL" 43012 arguments="${tmp#* }" 43013 43014 # Input might be given as Windows format, start by converting to 43015 # unix format. 43016 new_path="$path" 43017 43018 windows_path="$new_path" 43019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43020 unix_path=`$CYGPATH -u "$windows_path"` 43021 new_path="$unix_path" 43022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43023 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43024 new_path="$unix_path" 43025 fi 43026 43027 43028 # Now try to locate executable using which 43029 new_path=`$WHICH "$new_path" 2> /dev/null` 43030 43031 if test "x$new_path" = x; then 43032 # Oops. Which didn't find the executable. 43033 # The splitting of arguments from the executable at a space might have been incorrect, 43034 # since paths with space are more likely in Windows. Give it another try with the whole 43035 # argument. 43036 path="$complete" 43037 arguments="EOL" 43038 new_path="$path" 43039 43040 windows_path="$new_path" 43041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43042 unix_path=`$CYGPATH -u "$windows_path"` 43043 new_path="$unix_path" 43044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43045 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43046 new_path="$unix_path" 43047 fi 43048 43049 43050 new_path=`$WHICH "$new_path" 2> /dev/null` 43051 # bat and cmd files are not always considered executable in MSYS causing which 43052 # to not find them 43053 if test "x$new_path" = x \ 43054 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43055 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43056 new_path="$path" 43057 43058 windows_path="$new_path" 43059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43060 unix_path=`$CYGPATH -u "$windows_path"` 43061 new_path="$unix_path" 43062 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43063 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43064 new_path="$unix_path" 43065 fi 43066 43067 fi 43068 43069 if test "x$new_path" = x; then 43070 # It's still not found. Now this is an unrecoverable error. 43071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43072 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43073 has_space=`$ECHO "$complete" | $GREP " "` 43074 if test "x$has_space" != x; then 43075 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43076 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43077 fi 43078 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43079 fi 43080 fi 43081 43082 # Now new_path has a complete unix path to the binary 43083 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43084 # Keep paths in /bin as-is, but remove trailing .exe if any 43085 new_path="${new_path/%.exe/}" 43086 # Do not save /bin paths to all_fixpath_prefixes! 43087 else 43088 # Not in mixed or Windows style, start by that. 43089 new_path=`cmd //c echo $new_path` 43090 43091 input_path="$new_path" 43092 # Check if we need to convert this using DOS-style short mode. If the path 43093 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43094 # take no chances and rewrite it. 43095 # Note: m4 eats our [], so we need to use [ and ] instead. 43096 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43097 if test "x$has_forbidden_chars" != x; then 43098 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43099 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43100 fi 43101 43102 # Output is in $new_path 43103 43104 windows_path="$new_path" 43105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43106 unix_path=`$CYGPATH -u "$windows_path"` 43107 new_path="$unix_path" 43108 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43109 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43110 new_path="$unix_path" 43111 fi 43112 43113 # remove trailing .exe if any 43114 new_path="${new_path/%.exe/}" 43115 43116 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43117 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43118 fi 43119 43120 else 43121 # We're on a unix platform. Hooray! :) 43122 # First separate the path from the arguments. This will split at the first 43123 # space. 43124 complete="$OBJCOPY" 43125 path="${complete%% *}" 43126 tmp="$complete EOL" 43127 arguments="${tmp#* }" 43128 43129 # Cannot rely on the command "which" here since it doesn't always work. 43130 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43131 if test -z "$is_absolute_path"; then 43132 # Path to executable is not absolute. Find it. 43133 IFS_save="$IFS" 43134 IFS=: 43135 for p in $PATH; do 43136 if test -f "$p/$path" && test -x "$p/$path"; then 43137 new_path="$p/$path" 43138 break 43139 fi 43140 done 43141 IFS="$IFS_save" 43142 else 43143 # This is an absolute path, we can use it without further modifications. 43144 new_path="$path" 43145 fi 43146 43147 if test "x$new_path" = x; then 43148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 43149 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 43150 has_space=`$ECHO "$complete" | $GREP " "` 43151 if test "x$has_space" != x; then 43152 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43153 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43154 fi 43155 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 43156 fi 43157 fi 43158 43159 # Now join together the path and the arguments once again 43160 if test "x$arguments" != xEOL; then 43161 new_complete="$new_path ${arguments% *}" 43162 else 43163 new_complete="$new_path" 43164 fi 43165 43166 if test "x$complete" != "x$new_complete"; then 43167 OBJCOPY="$new_complete" 43168 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 43169 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 43170 fi 43171 fi 43172 43173 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 43174 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 43175 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 43176 # - version number is last blank separate word on first line 43177 # - version number formats that have been seen: 43178 # - <major>.<minor> 43179 # - <major>.<minor>.<micro> 43180 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 43181 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 43182 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 43183 -e 's/.* //' \ 43184 -e '/^[01]\./b bad' \ 43185 -e '/^2\./{' \ 43186 -e ' s/^2\.//' \ 43187 -e ' /^[0-9]$/b bad' \ 43188 -e ' /^[0-9]\./b bad' \ 43189 -e ' /^1[0-9]$/b bad' \ 43190 -e ' /^1[0-9]\./b bad' \ 43191 -e ' /^20\./b bad' \ 43192 -e ' /^21\.0$/b bad' \ 43193 -e ' /^21\.0\./b bad' \ 43194 -e '}' \ 43195 -e ':good' \ 43196 -e 's/.*/VALID_VERSION/p' \ 43197 -e 'q' \ 43198 -e ':bad' \ 43199 -e 's/.*/BAD_VERSION/p' \ 43200 -e 'q'` 43201 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 43202 OBJCOPY= 43203 { $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 43204 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 43205 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 43206 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 43207 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 43208 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 43209 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 43210 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 43211 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 43212 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 43213 fi 43214 fi 43215 fi 43216 fi 43217 43218 43219 43220 # Publish this variable in the help. 43221 43222 43223 if [ -z "${OBJDUMP+x}" ]; then 43224 # The variable is not set by user, try to locate tool using the code snippet 43225 if test -n "$ac_tool_prefix"; then 43226 for ac_prog in gobjdump objdump 43227 do 43228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43229 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43231 $as_echo_n "checking for $ac_word... " >&6; } 43232 if ${ac_cv_prog_OBJDUMP+:} false; then : 43233 $as_echo_n "(cached) " >&6 43234 else 43235 if test -n "$OBJDUMP"; then 43236 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 43237 else 43238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43239 for as_dir in $PATH 43240 do 43241 IFS=$as_save_IFS 43242 test -z "$as_dir" && as_dir=. 43243 for ac_exec_ext in '' $ac_executable_extensions; do 43244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43245 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 43246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43247 break 2 43248 fi 43249 done 43250 done 43251 IFS=$as_save_IFS 43252 43253 fi 43254 fi 43255 OBJDUMP=$ac_cv_prog_OBJDUMP 43256 if test -n "$OBJDUMP"; then 43257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43258 $as_echo "$OBJDUMP" >&6; } 43259 else 43260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43261 $as_echo "no" >&6; } 43262 fi 43263 43264 43265 test -n "$OBJDUMP" && break 43266 done 43267 fi 43268 if test -z "$OBJDUMP"; then 43269 ac_ct_OBJDUMP=$OBJDUMP 43270 for ac_prog in gobjdump objdump 43271 do 43272 # Extract the first word of "$ac_prog", so it can be a program name with args. 43273 set dummy $ac_prog; ac_word=$2 43274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43275 $as_echo_n "checking for $ac_word... " >&6; } 43276 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 43277 $as_echo_n "(cached) " >&6 43278 else 43279 if test -n "$ac_ct_OBJDUMP"; then 43280 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 43281 else 43282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43283 for as_dir in $PATH 43284 do 43285 IFS=$as_save_IFS 43286 test -z "$as_dir" && as_dir=. 43287 for ac_exec_ext in '' $ac_executable_extensions; do 43288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43289 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 43290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43291 break 2 43292 fi 43293 done 43294 done 43295 IFS=$as_save_IFS 43296 43297 fi 43298 fi 43299 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 43300 if test -n "$ac_ct_OBJDUMP"; then 43301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 43302 $as_echo "$ac_ct_OBJDUMP" >&6; } 43303 else 43304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43305 $as_echo "no" >&6; } 43306 fi 43307 43308 43309 test -n "$ac_ct_OBJDUMP" && break 43310 done 43311 43312 if test "x$ac_ct_OBJDUMP" = x; then 43313 OBJDUMP="" 43314 else 43315 case $cross_compiling:$ac_tool_warned in 43316 yes:) 43317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43319 ac_tool_warned=yes ;; 43320 esac 43321 OBJDUMP=$ac_ct_OBJDUMP 43322 fi 43323 fi 43324 43325 else 43326 # The variable is set, but is it from the command line or the environment? 43327 43328 # Try to remove the string !OBJDUMP! from our list. 43329 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 43330 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43331 # If it failed, the variable was not from the command line. Ignore it, 43332 # but warn the user (except for BASH, which is always set by the calling BASH). 43333 if test "xOBJDUMP" != xBASH; then 43334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 43335 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 43336 fi 43337 # Try to locate tool using the code snippet 43338 if test -n "$ac_tool_prefix"; then 43339 for ac_prog in gobjdump objdump 43340 do 43341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43344 $as_echo_n "checking for $ac_word... " >&6; } 43345 if ${ac_cv_prog_OBJDUMP+:} false; then : 43346 $as_echo_n "(cached) " >&6 43347 else 43348 if test -n "$OBJDUMP"; then 43349 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 43350 else 43351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43352 for as_dir in $PATH 43353 do 43354 IFS=$as_save_IFS 43355 test -z "$as_dir" && as_dir=. 43356 for ac_exec_ext in '' $ac_executable_extensions; do 43357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43358 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 43359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43360 break 2 43361 fi 43362 done 43363 done 43364 IFS=$as_save_IFS 43365 43366 fi 43367 fi 43368 OBJDUMP=$ac_cv_prog_OBJDUMP 43369 if test -n "$OBJDUMP"; then 43370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43371 $as_echo "$OBJDUMP" >&6; } 43372 else 43373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43374 $as_echo "no" >&6; } 43375 fi 43376 43377 43378 test -n "$OBJDUMP" && break 43379 done 43380 fi 43381 if test -z "$OBJDUMP"; then 43382 ac_ct_OBJDUMP=$OBJDUMP 43383 for ac_prog in gobjdump objdump 43384 do 43385 # Extract the first word of "$ac_prog", so it can be a program name with args. 43386 set dummy $ac_prog; ac_word=$2 43387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43388 $as_echo_n "checking for $ac_word... " >&6; } 43389 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 43390 $as_echo_n "(cached) " >&6 43391 else 43392 if test -n "$ac_ct_OBJDUMP"; then 43393 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 43394 else 43395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43396 for as_dir in $PATH 43397 do 43398 IFS=$as_save_IFS 43399 test -z "$as_dir" && as_dir=. 43400 for ac_exec_ext in '' $ac_executable_extensions; do 43401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43402 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 43403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43404 break 2 43405 fi 43406 done 43407 done 43408 IFS=$as_save_IFS 43409 43410 fi 43411 fi 43412 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 43413 if test -n "$ac_ct_OBJDUMP"; then 43414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 43415 $as_echo "$ac_ct_OBJDUMP" >&6; } 43416 else 43417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43418 $as_echo "no" >&6; } 43419 fi 43420 43421 43422 test -n "$ac_ct_OBJDUMP" && break 43423 done 43424 43425 if test "x$ac_ct_OBJDUMP" = x; then 43426 OBJDUMP="" 43427 else 43428 case $cross_compiling:$ac_tool_warned in 43429 yes:) 43430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43432 ac_tool_warned=yes ;; 43433 esac 43434 OBJDUMP=$ac_ct_OBJDUMP 43435 fi 43436 fi 43437 43438 else 43439 # If it succeeded, then it was overridden by the user. We will use it 43440 # for the tool. 43441 43442 # First remove it from the list of overridden variables, so we can test 43443 # for unknown variables in the end. 43444 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43445 43446 # Check if we try to supply an empty value 43447 if test "x$OBJDUMP" = x; then 43448 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 43449 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 43450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 43451 $as_echo_n "checking for OBJDUMP... " >&6; } 43452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43453 $as_echo "disabled" >&6; } 43454 else 43455 # Check if the provided tool contains a complete path. 43456 tool_specified="$OBJDUMP" 43457 tool_basename="${tool_specified##*/}" 43458 if test "x$tool_basename" = "x$tool_specified"; then 43459 # A command without a complete path is provided, search $PATH. 43460 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 43461 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 43462 # Extract the first word of "$tool_basename", so it can be a program name with args. 43463 set dummy $tool_basename; ac_word=$2 43464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43465 $as_echo_n "checking for $ac_word... " >&6; } 43466 if ${ac_cv_path_OBJDUMP+:} false; then : 43467 $as_echo_n "(cached) " >&6 43468 else 43469 case $OBJDUMP in 43470 [\\/]* | ?:[\\/]*) 43471 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 43472 ;; 43473 *) 43474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43475 for as_dir in $PATH 43476 do 43477 IFS=$as_save_IFS 43478 test -z "$as_dir" && as_dir=. 43479 for ac_exec_ext in '' $ac_executable_extensions; do 43480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43481 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 43482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43483 break 2 43484 fi 43485 done 43486 done 43487 IFS=$as_save_IFS 43488 43489 ;; 43490 esac 43491 fi 43492 OBJDUMP=$ac_cv_path_OBJDUMP 43493 if test -n "$OBJDUMP"; then 43494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 43495 $as_echo "$OBJDUMP" >&6; } 43496 else 43497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43498 $as_echo "no" >&6; } 43499 fi 43500 43501 43502 if test "x$OBJDUMP" = x; then 43503 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43504 fi 43505 else 43506 # Otherwise we believe it is a complete path. Use it as it is. 43507 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 43508 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 43509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 43510 $as_echo_n "checking for OBJDUMP... " >&6; } 43511 if test ! -x "$tool_specified"; then 43512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43513 $as_echo "not found" >&6; } 43514 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 43515 fi 43516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43517 $as_echo "$tool_specified" >&6; } 43518 fi 43519 fi 43520 fi 43521 43522 fi 43523 43524 43525 if test "x$OBJDUMP" != x; then 43526 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 43527 # bails if argument is missing. 43528 43529 # Only process if variable expands to non-empty 43530 43531 if test "x$OBJDUMP" != x; then 43532 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43533 43534 # First separate the path from the arguments. This will split at the first 43535 # space. 43536 complete="$OBJDUMP" 43537 path="${complete%% *}" 43538 tmp="$complete EOL" 43539 arguments="${tmp#* }" 43540 43541 # Input might be given as Windows format, start by converting to 43542 # unix format. 43543 new_path=`$CYGPATH -u "$path"` 43544 43545 # Now try to locate executable using which 43546 new_path=`$WHICH "$new_path" 2> /dev/null` 43547 # bat and cmd files are not always considered executable in cygwin causing which 43548 # to not find them 43549 if test "x$new_path" = x \ 43550 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43551 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43552 new_path=`$CYGPATH -u "$path"` 43553 fi 43554 if test "x$new_path" = x; then 43555 # Oops. Which didn't find the executable. 43556 # The splitting of arguments from the executable at a space might have been incorrect, 43557 # since paths with space are more likely in Windows. Give it another try with the whole 43558 # argument. 43559 path="$complete" 43560 arguments="EOL" 43561 new_path=`$CYGPATH -u "$path"` 43562 new_path=`$WHICH "$new_path" 2> /dev/null` 43563 # bat and cmd files are not always considered executable in cygwin causing which 43564 # to not find them 43565 if test "x$new_path" = x \ 43566 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43567 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43568 new_path=`$CYGPATH -u "$path"` 43569 fi 43570 if test "x$new_path" = x; then 43571 # It's still not found. Now this is an unrecoverable error. 43572 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43573 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43574 has_space=`$ECHO "$complete" | $GREP " "` 43575 if test "x$has_space" != x; then 43576 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43577 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43578 fi 43579 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43580 fi 43581 fi 43582 43583 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43584 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43585 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43586 # "foo.exe" is OK but "foo" is an error. 43587 # 43588 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43589 # It is also a way to make sure we got the proper file name for the real test later on. 43590 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43591 if test "x$test_shortpath" = x; then 43592 # Short path failed, file does not exist as specified. 43593 # Try adding .exe or .cmd 43594 if test -f "${new_path}.exe"; then 43595 input_to_shortpath="${new_path}.exe" 43596 elif test -f "${new_path}.cmd"; then 43597 input_to_shortpath="${new_path}.cmd" 43598 else 43599 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 43600 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 43601 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43602 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43603 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43604 fi 43605 else 43606 input_to_shortpath="$new_path" 43607 fi 43608 43609 # Call helper function which possibly converts this using DOS-style short mode. 43610 # If so, the updated path is stored in $new_path. 43611 new_path="$input_to_shortpath" 43612 43613 input_path="$input_to_shortpath" 43614 # Check if we need to convert this using DOS-style short mode. If the path 43615 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43616 # take no chances and rewrite it. 43617 # Note: m4 eats our [], so we need to use [ and ] instead. 43618 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43619 if test "x$has_forbidden_chars" != x; then 43620 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43621 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43622 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43623 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43624 # Going to short mode and back again did indeed matter. Since short mode is 43625 # case insensitive, let's make it lowercase to improve readability. 43626 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43627 # Now convert it back to Unix-style (cygpath) 43628 input_path=`$CYGPATH -u "$shortmode_path"` 43629 new_path="$input_path" 43630 fi 43631 fi 43632 43633 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43634 if test "x$test_cygdrive_prefix" = x; then 43635 # As a simple fix, exclude /usr/bin since it's not a real path. 43636 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43637 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43638 # a path prefixed by /cygdrive for fixpath to work. 43639 new_path="$CYGWIN_ROOT_PATH$input_path" 43640 fi 43641 fi 43642 43643 # remove trailing .exe if any 43644 new_path="${new_path/%.exe/}" 43645 43646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43647 43648 # First separate the path from the arguments. This will split at the first 43649 # space. 43650 complete="$OBJDUMP" 43651 path="${complete%% *}" 43652 tmp="$complete EOL" 43653 arguments="${tmp#* }" 43654 43655 # Input might be given as Windows format, start by converting to 43656 # unix format. 43657 new_path="$path" 43658 43659 windows_path="$new_path" 43660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43661 unix_path=`$CYGPATH -u "$windows_path"` 43662 new_path="$unix_path" 43663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43664 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43665 new_path="$unix_path" 43666 fi 43667 43668 43669 # Now try to locate executable using which 43670 new_path=`$WHICH "$new_path" 2> /dev/null` 43671 43672 if test "x$new_path" = x; then 43673 # Oops. Which didn't find the executable. 43674 # The splitting of arguments from the executable at a space might have been incorrect, 43675 # since paths with space are more likely in Windows. Give it another try with the whole 43676 # argument. 43677 path="$complete" 43678 arguments="EOL" 43679 new_path="$path" 43680 43681 windows_path="$new_path" 43682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43683 unix_path=`$CYGPATH -u "$windows_path"` 43684 new_path="$unix_path" 43685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43686 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43687 new_path="$unix_path" 43688 fi 43689 43690 43691 new_path=`$WHICH "$new_path" 2> /dev/null` 43692 # bat and cmd files are not always considered executable in MSYS causing which 43693 # to not find them 43694 if test "x$new_path" = x \ 43695 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43696 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43697 new_path="$path" 43698 43699 windows_path="$new_path" 43700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43701 unix_path=`$CYGPATH -u "$windows_path"` 43702 new_path="$unix_path" 43703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43705 new_path="$unix_path" 43706 fi 43707 43708 fi 43709 43710 if test "x$new_path" = x; then 43711 # It's still not found. Now this is an unrecoverable error. 43712 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43713 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43714 has_space=`$ECHO "$complete" | $GREP " "` 43715 if test "x$has_space" != x; then 43716 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43717 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43718 fi 43719 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43720 fi 43721 fi 43722 43723 # Now new_path has a complete unix path to the binary 43724 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43725 # Keep paths in /bin as-is, but remove trailing .exe if any 43726 new_path="${new_path/%.exe/}" 43727 # Do not save /bin paths to all_fixpath_prefixes! 43728 else 43729 # Not in mixed or Windows style, start by that. 43730 new_path=`cmd //c echo $new_path` 43731 43732 input_path="$new_path" 43733 # Check if we need to convert this using DOS-style short mode. If the path 43734 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43735 # take no chances and rewrite it. 43736 # Note: m4 eats our [], so we need to use [ and ] instead. 43737 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43738 if test "x$has_forbidden_chars" != x; then 43739 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43740 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43741 fi 43742 43743 # Output is in $new_path 43744 43745 windows_path="$new_path" 43746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43747 unix_path=`$CYGPATH -u "$windows_path"` 43748 new_path="$unix_path" 43749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43751 new_path="$unix_path" 43752 fi 43753 43754 # remove trailing .exe if any 43755 new_path="${new_path/%.exe/}" 43756 43757 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43758 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43759 fi 43760 43761 else 43762 # We're on a unix platform. Hooray! :) 43763 # First separate the path from the arguments. This will split at the first 43764 # space. 43765 complete="$OBJDUMP" 43766 path="${complete%% *}" 43767 tmp="$complete EOL" 43768 arguments="${tmp#* }" 43769 43770 # Cannot rely on the command "which" here since it doesn't always work. 43771 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43772 if test -z "$is_absolute_path"; then 43773 # Path to executable is not absolute. Find it. 43774 IFS_save="$IFS" 43775 IFS=: 43776 for p in $PATH; do 43777 if test -f "$p/$path" && test -x "$p/$path"; then 43778 new_path="$p/$path" 43779 break 43780 fi 43781 done 43782 IFS="$IFS_save" 43783 else 43784 # This is an absolute path, we can use it without further modifications. 43785 new_path="$path" 43786 fi 43787 43788 if test "x$new_path" = x; then 43789 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43790 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43791 has_space=`$ECHO "$complete" | $GREP " "` 43792 if test "x$has_space" != x; then 43793 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43794 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43795 fi 43796 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43797 fi 43798 fi 43799 43800 # Now join together the path and the arguments once again 43801 if test "x$arguments" != xEOL; then 43802 new_complete="$new_path ${arguments% *}" 43803 else 43804 new_complete="$new_path" 43805 fi 43806 43807 if test "x$complete" != "x$new_complete"; then 43808 OBJDUMP="$new_complete" 43809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 43810 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 43811 fi 43812 fi 43813 43814 fi 43815 43816 43817 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 43818 # to remain in place. Otherwise the compiler will not work in some siutations 43819 # in later configure checks. 43820 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 43821 PATH="$OLD_PATH" 43822 fi 43823 43824 # Restore the flags to the user specified values. 43825 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 43826 CFLAGS="$ORG_CFLAGS" 43827 CXXFLAGS="$ORG_CXXFLAGS" 43828 43829 43830 # Finally do some processing after the detection phase 43831 43832 if test "x$COMPILE_TYPE" = "xcross"; then 43833 # Now we need to find a C/C++ compiler that can build executables for the 43834 # build platform. We can't use the AC_PROG_CC macro, since it can only be 43835 # used once. Also, we need to do this without adding a tools dir to the 43836 # path, otherwise we might pick up cross-compilers which don't use standard 43837 # naming. 43838 43839 OLDPATH="$PATH" 43840 43841 43842 # Check whether --with-build-devkit was given. 43843 if test "${with_build_devkit+set}" = set; then : 43844 withval=$with_build_devkit; 43845 fi 43846 43847 if test "x$with_build_devkit" = "xyes"; then 43848 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 43849 elif test -n "$with_build_devkit"; then 43850 if test ! -d "$with_build_devkit"; then 43851 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 43852 else 43853 43854 # Only process if variable expands to non-empty 43855 43856 if test "x$with_build_devkit" != x; then 43857 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43858 43859 # Input might be given as Windows format, start by converting to 43860 # unix format. 43861 path="$with_build_devkit" 43862 new_path=`$CYGPATH -u "$path"` 43863 43864 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43865 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43866 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43867 # "foo.exe" is OK but "foo" is an error. 43868 # 43869 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43870 # It is also a way to make sure we got the proper file name for the real test later on. 43871 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43872 if test "x$test_shortpath" = x; then 43873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43874 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43875 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 43876 fi 43877 43878 # Call helper function which possibly converts this using DOS-style short mode. 43879 # If so, the updated path is stored in $new_path. 43880 43881 input_path="$new_path" 43882 # Check if we need to convert this using DOS-style short mode. If the path 43883 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43884 # take no chances and rewrite it. 43885 # Note: m4 eats our [], so we need to use [ and ] instead. 43886 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43887 if test "x$has_forbidden_chars" != x; then 43888 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43889 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43890 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43891 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43892 # Going to short mode and back again did indeed matter. Since short mode is 43893 # case insensitive, let's make it lowercase to improve readability. 43894 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43895 # Now convert it back to Unix-style (cygpath) 43896 input_path=`$CYGPATH -u "$shortmode_path"` 43897 new_path="$input_path" 43898 fi 43899 fi 43900 43901 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43902 if test "x$test_cygdrive_prefix" = x; then 43903 # As a simple fix, exclude /usr/bin since it's not a real path. 43904 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43905 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43906 # a path prefixed by /cygdrive for fixpath to work. 43907 new_path="$CYGWIN_ROOT_PATH$input_path" 43908 fi 43909 fi 43910 43911 43912 if test "x$path" != "x$new_path"; then 43913 with_build_devkit="$new_path" 43914 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43915 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43916 fi 43917 43918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43919 43920 path="$with_build_devkit" 43921 has_colon=`$ECHO $path | $GREP ^.:` 43922 new_path="$path" 43923 if test "x$has_colon" = x; then 43924 # Not in mixed or Windows style, start by that. 43925 new_path=`cmd //c echo $path` 43926 fi 43927 43928 43929 input_path="$new_path" 43930 # Check if we need to convert this using DOS-style short mode. If the path 43931 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43932 # take no chances and rewrite it. 43933 # Note: m4 eats our [], so we need to use [ and ] instead. 43934 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43935 if test "x$has_forbidden_chars" != x; then 43936 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43937 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43938 fi 43939 43940 43941 windows_path="$new_path" 43942 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43943 unix_path=`$CYGPATH -u "$windows_path"` 43944 new_path="$unix_path" 43945 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43946 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43947 new_path="$unix_path" 43948 fi 43949 43950 if test "x$path" != "x$new_path"; then 43951 with_build_devkit="$new_path" 43952 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43953 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43954 fi 43955 43956 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43957 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43958 43959 else 43960 # We're on a unix platform. Hooray! :) 43961 path="$with_build_devkit" 43962 has_space=`$ECHO "$path" | $GREP " "` 43963 if test "x$has_space" != x; then 43964 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43965 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43966 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43967 fi 43968 43969 # Use eval to expand a potential ~ 43970 eval path="$path" 43971 if test ! -f "$path" && test ! -d "$path"; then 43972 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 43973 fi 43974 43975 if test -d "$path"; then 43976 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 43977 else 43978 dir="`$DIRNAME "$path"`" 43979 base="`$BASENAME "$path"`" 43980 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 43981 fi 43982 fi 43983 fi 43984 43985 BUILD_DEVKIT_ROOT="$with_build_devkit" 43986 # Check for a meta data info file in the root of the devkit 43987 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 43988 # Process devkit.info so that existing devkit variables are not 43989 # modified by this 43990 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 43991 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 43992 -e "s/\$host/\$build/g" \ 43993 $BUILD_DEVKIT_ROOT/devkit.info \ 43994 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 43995 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 43996 # This potentially sets the following: 43997 # A descriptive name of the devkit 43998 43999 if test "x$BUILD_DEVKIT_NAME" = x; then 44000 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 44001 fi 44002 44003 # Corresponds to --with-extra-path 44004 44005 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 44006 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 44007 fi 44008 44009 # Corresponds to --with-toolchain-path 44010 44011 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 44012 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 44013 fi 44014 44015 # Corresponds to --with-sysroot 44016 44017 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 44018 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 44019 fi 44020 44021 # Skip the Window specific parts 44022 fi 44023 44024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 44025 $as_echo_n "checking for build platform devkit... " >&6; } 44026 if test "x$BUILD_DEVKIT_NAME" != x; then 44027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 44028 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 44029 else 44030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 44031 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 44032 fi 44033 44034 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 44035 44036 if test "x$BUILD_SYSROOT" != "x"; then 44037 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 44038 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44039 # Solaris Studio does not have a concept of sysroot. Instead we must 44040 # make sure the default include and lib dirs are appended to each 44041 # compile and link command line. Must also add -I-xbuiltin to enable 44042 # inlining of system functions and intrinsics. 44043 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 44044 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 44045 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 44046 fi 44047 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 44048 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 44049 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 44050 elif test "x$TOOLCHAIN_TYPE" = xclang; then 44051 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 44052 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 44053 fi 44054 # Propagate the sysroot args to hotspot 44055 BUILD_LEGACY_EXTRA_CFLAGS="$BUILD_LEGACY_EXTRA_CFLAGS $BUILD_SYSROOT_CFLAGS" 44056 BUILD_LEGACY_EXTRA_CXXFLAGS="$BUILD_LEGACY_EXTRA_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 44057 BUILD_LEGACY_EXTRA_LDFLAGS="$BUILD_LEGACY_EXTRA_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 44058 # The global CFLAGS and LDFLAGS variables need these for configure to function 44059 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 44060 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 44061 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 44062 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 44063 fi 44064 44065 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 44066 # We also need -iframework<path>/System/Library/Frameworks 44067 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44068 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 44069 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 44070 # set this here so it doesn't have to be peppered throughout the forest 44071 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44072 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 44073 fi 44074 44075 44076 44077 44078 44079 # Fallback default of just /bin if DEVKIT_PATH is not defined 44080 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 44081 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 44082 fi 44083 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 44084 fi 44085 fi 44086 44087 # FIXME: we should list the discovered compilers as an exclude pattern! 44088 # If we do that, we can do this detection before POST_DETECTION, and still 44089 # find the build compilers in the tools dir, if needed. 44090 44091 44092 44093 # Publish this variable in the help. 44094 44095 44096 if [ -z "${BUILD_CC+x}" ]; then 44097 # The variable is not set by user, try to locate tool using the code snippet 44098 for ac_prog in cl cc gcc 44099 do 44100 # Extract the first word of "$ac_prog", so it can be a program name with args. 44101 set dummy $ac_prog; ac_word=$2 44102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44103 $as_echo_n "checking for $ac_word... " >&6; } 44104 if ${ac_cv_path_BUILD_CC+:} false; then : 44105 $as_echo_n "(cached) " >&6 44106 else 44107 case $BUILD_CC in 44108 [\\/]* | ?:[\\/]*) 44109 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44110 ;; 44111 *) 44112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44113 for as_dir in $PATH 44114 do 44115 IFS=$as_save_IFS 44116 test -z "$as_dir" && as_dir=. 44117 for ac_exec_ext in '' $ac_executable_extensions; do 44118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44119 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44121 break 2 44122 fi 44123 done 44124 done 44125 IFS=$as_save_IFS 44126 44127 ;; 44128 esac 44129 fi 44130 BUILD_CC=$ac_cv_path_BUILD_CC 44131 if test -n "$BUILD_CC"; then 44132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44133 $as_echo "$BUILD_CC" >&6; } 44134 else 44135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44136 $as_echo "no" >&6; } 44137 fi 44138 44139 44140 test -n "$BUILD_CC" && break 44141 done 44142 44143 else 44144 # The variable is set, but is it from the command line or the environment? 44145 44146 # Try to remove the string !BUILD_CC! from our list. 44147 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 44148 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44149 # If it failed, the variable was not from the command line. Ignore it, 44150 # but warn the user (except for BASH, which is always set by the calling BASH). 44151 if test "xBUILD_CC" != xBASH; then 44152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 44153 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 44154 fi 44155 # Try to locate tool using the code snippet 44156 for ac_prog in cl cc gcc 44157 do 44158 # Extract the first word of "$ac_prog", so it can be a program name with args. 44159 set dummy $ac_prog; ac_word=$2 44160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44161 $as_echo_n "checking for $ac_word... " >&6; } 44162 if ${ac_cv_path_BUILD_CC+:} false; then : 44163 $as_echo_n "(cached) " >&6 44164 else 44165 case $BUILD_CC in 44166 [\\/]* | ?:[\\/]*) 44167 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44168 ;; 44169 *) 44170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44171 for as_dir in $PATH 44172 do 44173 IFS=$as_save_IFS 44174 test -z "$as_dir" && as_dir=. 44175 for ac_exec_ext in '' $ac_executable_extensions; do 44176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44177 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44179 break 2 44180 fi 44181 done 44182 done 44183 IFS=$as_save_IFS 44184 44185 ;; 44186 esac 44187 fi 44188 BUILD_CC=$ac_cv_path_BUILD_CC 44189 if test -n "$BUILD_CC"; then 44190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44191 $as_echo "$BUILD_CC" >&6; } 44192 else 44193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44194 $as_echo "no" >&6; } 44195 fi 44196 44197 44198 test -n "$BUILD_CC" && break 44199 done 44200 44201 else 44202 # If it succeeded, then it was overridden by the user. We will use it 44203 # for the tool. 44204 44205 # First remove it from the list of overridden variables, so we can test 44206 # for unknown variables in the end. 44207 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44208 44209 # Check if we try to supply an empty value 44210 if test "x$BUILD_CC" = x; then 44211 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 44212 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 44213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 44214 $as_echo_n "checking for BUILD_CC... " >&6; } 44215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44216 $as_echo "disabled" >&6; } 44217 else 44218 # Check if the provided tool contains a complete path. 44219 tool_specified="$BUILD_CC" 44220 tool_basename="${tool_specified##*/}" 44221 if test "x$tool_basename" = "x$tool_specified"; then 44222 # A command without a complete path is provided, search $PATH. 44223 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 44224 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 44225 # Extract the first word of "$tool_basename", so it can be a program name with args. 44226 set dummy $tool_basename; ac_word=$2 44227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44228 $as_echo_n "checking for $ac_word... " >&6; } 44229 if ${ac_cv_path_BUILD_CC+:} false; then : 44230 $as_echo_n "(cached) " >&6 44231 else 44232 case $BUILD_CC in 44233 [\\/]* | ?:[\\/]*) 44234 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 44235 ;; 44236 *) 44237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44238 for as_dir in $PATH 44239 do 44240 IFS=$as_save_IFS 44241 test -z "$as_dir" && as_dir=. 44242 for ac_exec_ext in '' $ac_executable_extensions; do 44243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44244 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 44245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44246 break 2 44247 fi 44248 done 44249 done 44250 IFS=$as_save_IFS 44251 44252 ;; 44253 esac 44254 fi 44255 BUILD_CC=$ac_cv_path_BUILD_CC 44256 if test -n "$BUILD_CC"; then 44257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 44258 $as_echo "$BUILD_CC" >&6; } 44259 else 44260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44261 $as_echo "no" >&6; } 44262 fi 44263 44264 44265 if test "x$BUILD_CC" = x; then 44266 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44267 fi 44268 else 44269 # Otherwise we believe it is a complete path. Use it as it is. 44270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 44271 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 44272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 44273 $as_echo_n "checking for BUILD_CC... " >&6; } 44274 if test ! -x "$tool_specified"; then 44275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44276 $as_echo "not found" >&6; } 44277 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 44278 fi 44279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44280 $as_echo "$tool_specified" >&6; } 44281 fi 44282 fi 44283 fi 44284 44285 fi 44286 44287 44288 44289 if test "x$BUILD_CC" = x; then 44290 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 44291 fi 44292 44293 44294 44295 # Only process if variable expands to non-empty 44296 44297 if test "x$BUILD_CC" != x; then 44298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44299 44300 # First separate the path from the arguments. This will split at the first 44301 # space. 44302 complete="$BUILD_CC" 44303 path="${complete%% *}" 44304 tmp="$complete EOL" 44305 arguments="${tmp#* }" 44306 44307 # Input might be given as Windows format, start by converting to 44308 # unix format. 44309 new_path=`$CYGPATH -u "$path"` 44310 44311 # Now try to locate executable using which 44312 new_path=`$WHICH "$new_path" 2> /dev/null` 44313 # bat and cmd files are not always considered executable in cygwin causing which 44314 # to not find them 44315 if test "x$new_path" = x \ 44316 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44317 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44318 new_path=`$CYGPATH -u "$path"` 44319 fi 44320 if test "x$new_path" = x; then 44321 # Oops. Which didn't find the executable. 44322 # The splitting of arguments from the executable at a space might have been incorrect, 44323 # since paths with space are more likely in Windows. Give it another try with the whole 44324 # argument. 44325 path="$complete" 44326 arguments="EOL" 44327 new_path=`$CYGPATH -u "$path"` 44328 new_path=`$WHICH "$new_path" 2> /dev/null` 44329 # bat and cmd files are not always considered executable in cygwin causing which 44330 # to not find them 44331 if test "x$new_path" = x \ 44332 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44333 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44334 new_path=`$CYGPATH -u "$path"` 44335 fi 44336 if test "x$new_path" = x; then 44337 # It's still not found. Now this is an unrecoverable error. 44338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44339 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44340 has_space=`$ECHO "$complete" | $GREP " "` 44341 if test "x$has_space" != x; then 44342 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44343 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44344 fi 44345 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44346 fi 44347 fi 44348 44349 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44350 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44351 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44352 # "foo.exe" is OK but "foo" is an error. 44353 # 44354 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44355 # It is also a way to make sure we got the proper file name for the real test later on. 44356 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44357 if test "x$test_shortpath" = x; then 44358 # Short path failed, file does not exist as specified. 44359 # Try adding .exe or .cmd 44360 if test -f "${new_path}.exe"; then 44361 input_to_shortpath="${new_path}.exe" 44362 elif test -f "${new_path}.cmd"; then 44363 input_to_shortpath="${new_path}.cmd" 44364 else 44365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 44366 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 44367 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44368 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44369 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44370 fi 44371 else 44372 input_to_shortpath="$new_path" 44373 fi 44374 44375 # Call helper function which possibly converts this using DOS-style short mode. 44376 # If so, the updated path is stored in $new_path. 44377 new_path="$input_to_shortpath" 44378 44379 input_path="$input_to_shortpath" 44380 # Check if we need to convert this using DOS-style short mode. If the path 44381 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44382 # take no chances and rewrite it. 44383 # Note: m4 eats our [], so we need to use [ and ] instead. 44384 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44385 if test "x$has_forbidden_chars" != x; then 44386 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44387 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44388 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44389 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44390 # Going to short mode and back again did indeed matter. Since short mode is 44391 # case insensitive, let's make it lowercase to improve readability. 44392 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44393 # Now convert it back to Unix-style (cygpath) 44394 input_path=`$CYGPATH -u "$shortmode_path"` 44395 new_path="$input_path" 44396 fi 44397 fi 44398 44399 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44400 if test "x$test_cygdrive_prefix" = x; then 44401 # As a simple fix, exclude /usr/bin since it's not a real path. 44402 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44403 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44404 # a path prefixed by /cygdrive for fixpath to work. 44405 new_path="$CYGWIN_ROOT_PATH$input_path" 44406 fi 44407 fi 44408 44409 # remove trailing .exe if any 44410 new_path="${new_path/%.exe/}" 44411 44412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44413 44414 # First separate the path from the arguments. This will split at the first 44415 # space. 44416 complete="$BUILD_CC" 44417 path="${complete%% *}" 44418 tmp="$complete EOL" 44419 arguments="${tmp#* }" 44420 44421 # Input might be given as Windows format, start by converting to 44422 # unix format. 44423 new_path="$path" 44424 44425 windows_path="$new_path" 44426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44427 unix_path=`$CYGPATH -u "$windows_path"` 44428 new_path="$unix_path" 44429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44430 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44431 new_path="$unix_path" 44432 fi 44433 44434 44435 # Now try to locate executable using which 44436 new_path=`$WHICH "$new_path" 2> /dev/null` 44437 44438 if test "x$new_path" = x; then 44439 # Oops. Which didn't find the executable. 44440 # The splitting of arguments from the executable at a space might have been incorrect, 44441 # since paths with space are more likely in Windows. Give it another try with the whole 44442 # argument. 44443 path="$complete" 44444 arguments="EOL" 44445 new_path="$path" 44446 44447 windows_path="$new_path" 44448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44449 unix_path=`$CYGPATH -u "$windows_path"` 44450 new_path="$unix_path" 44451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44453 new_path="$unix_path" 44454 fi 44455 44456 44457 new_path=`$WHICH "$new_path" 2> /dev/null` 44458 # bat and cmd files are not always considered executable in MSYS causing which 44459 # to not find them 44460 if test "x$new_path" = x \ 44461 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44462 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44463 new_path="$path" 44464 44465 windows_path="$new_path" 44466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44467 unix_path=`$CYGPATH -u "$windows_path"` 44468 new_path="$unix_path" 44469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44471 new_path="$unix_path" 44472 fi 44473 44474 fi 44475 44476 if test "x$new_path" = x; then 44477 # It's still not found. Now this is an unrecoverable error. 44478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44479 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44480 has_space=`$ECHO "$complete" | $GREP " "` 44481 if test "x$has_space" != x; then 44482 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44483 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44484 fi 44485 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44486 fi 44487 fi 44488 44489 # Now new_path has a complete unix path to the binary 44490 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44491 # Keep paths in /bin as-is, but remove trailing .exe if any 44492 new_path="${new_path/%.exe/}" 44493 # Do not save /bin paths to all_fixpath_prefixes! 44494 else 44495 # Not in mixed or Windows style, start by that. 44496 new_path=`cmd //c echo $new_path` 44497 44498 input_path="$new_path" 44499 # Check if we need to convert this using DOS-style short mode. If the path 44500 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44501 # take no chances and rewrite it. 44502 # Note: m4 eats our [], so we need to use [ and ] instead. 44503 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44504 if test "x$has_forbidden_chars" != x; then 44505 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44506 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44507 fi 44508 44509 # Output is in $new_path 44510 44511 windows_path="$new_path" 44512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44513 unix_path=`$CYGPATH -u "$windows_path"` 44514 new_path="$unix_path" 44515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44516 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44517 new_path="$unix_path" 44518 fi 44519 44520 # remove trailing .exe if any 44521 new_path="${new_path/%.exe/}" 44522 44523 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44524 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44525 fi 44526 44527 else 44528 # We're on a unix platform. Hooray! :) 44529 # First separate the path from the arguments. This will split at the first 44530 # space. 44531 complete="$BUILD_CC" 44532 path="${complete%% *}" 44533 tmp="$complete EOL" 44534 arguments="${tmp#* }" 44535 44536 # Cannot rely on the command "which" here since it doesn't always work. 44537 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44538 if test -z "$is_absolute_path"; then 44539 # Path to executable is not absolute. Find it. 44540 IFS_save="$IFS" 44541 IFS=: 44542 for p in $PATH; do 44543 if test -f "$p/$path" && test -x "$p/$path"; then 44544 new_path="$p/$path" 44545 break 44546 fi 44547 done 44548 IFS="$IFS_save" 44549 else 44550 # This is an absolute path, we can use it without further modifications. 44551 new_path="$path" 44552 fi 44553 44554 if test "x$new_path" = x; then 44555 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44556 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44557 has_space=`$ECHO "$complete" | $GREP " "` 44558 if test "x$has_space" != x; then 44559 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44560 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44561 fi 44562 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44563 fi 44564 fi 44565 44566 # Now join together the path and the arguments once again 44567 if test "x$arguments" != xEOL; then 44568 new_complete="$new_path ${arguments% *}" 44569 else 44570 new_complete="$new_path" 44571 fi 44572 44573 if test "x$complete" != "x$new_complete"; then 44574 BUILD_CC="$new_complete" 44575 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 44576 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 44577 fi 44578 fi 44579 44580 44581 44582 44583 # Publish this variable in the help. 44584 44585 44586 if [ -z "${BUILD_CXX+x}" ]; then 44587 # The variable is not set by user, try to locate tool using the code snippet 44588 for ac_prog in cl CC g++ 44589 do 44590 # Extract the first word of "$ac_prog", so it can be a program name with args. 44591 set dummy $ac_prog; ac_word=$2 44592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44593 $as_echo_n "checking for $ac_word... " >&6; } 44594 if ${ac_cv_path_BUILD_CXX+:} false; then : 44595 $as_echo_n "(cached) " >&6 44596 else 44597 case $BUILD_CXX in 44598 [\\/]* | ?:[\\/]*) 44599 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44600 ;; 44601 *) 44602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44603 for as_dir in $PATH 44604 do 44605 IFS=$as_save_IFS 44606 test -z "$as_dir" && as_dir=. 44607 for ac_exec_ext in '' $ac_executable_extensions; do 44608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44609 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44611 break 2 44612 fi 44613 done 44614 done 44615 IFS=$as_save_IFS 44616 44617 ;; 44618 esac 44619 fi 44620 BUILD_CXX=$ac_cv_path_BUILD_CXX 44621 if test -n "$BUILD_CXX"; then 44622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44623 $as_echo "$BUILD_CXX" >&6; } 44624 else 44625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44626 $as_echo "no" >&6; } 44627 fi 44628 44629 44630 test -n "$BUILD_CXX" && break 44631 done 44632 44633 else 44634 # The variable is set, but is it from the command line or the environment? 44635 44636 # Try to remove the string !BUILD_CXX! from our list. 44637 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 44638 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44639 # If it failed, the variable was not from the command line. Ignore it, 44640 # but warn the user (except for BASH, which is always set by the calling BASH). 44641 if test "xBUILD_CXX" != xBASH; then 44642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 44643 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 44644 fi 44645 # Try to locate tool using the code snippet 44646 for ac_prog in cl CC g++ 44647 do 44648 # Extract the first word of "$ac_prog", so it can be a program name with args. 44649 set dummy $ac_prog; ac_word=$2 44650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44651 $as_echo_n "checking for $ac_word... " >&6; } 44652 if ${ac_cv_path_BUILD_CXX+:} false; then : 44653 $as_echo_n "(cached) " >&6 44654 else 44655 case $BUILD_CXX in 44656 [\\/]* | ?:[\\/]*) 44657 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44658 ;; 44659 *) 44660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44661 for as_dir in $PATH 44662 do 44663 IFS=$as_save_IFS 44664 test -z "$as_dir" && as_dir=. 44665 for ac_exec_ext in '' $ac_executable_extensions; do 44666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44667 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44669 break 2 44670 fi 44671 done 44672 done 44673 IFS=$as_save_IFS 44674 44675 ;; 44676 esac 44677 fi 44678 BUILD_CXX=$ac_cv_path_BUILD_CXX 44679 if test -n "$BUILD_CXX"; then 44680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44681 $as_echo "$BUILD_CXX" >&6; } 44682 else 44683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44684 $as_echo "no" >&6; } 44685 fi 44686 44687 44688 test -n "$BUILD_CXX" && break 44689 done 44690 44691 else 44692 # If it succeeded, then it was overridden by the user. We will use it 44693 # for the tool. 44694 44695 # First remove it from the list of overridden variables, so we can test 44696 # for unknown variables in the end. 44697 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44698 44699 # Check if we try to supply an empty value 44700 if test "x$BUILD_CXX" = x; then 44701 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 44702 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 44703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 44704 $as_echo_n "checking for BUILD_CXX... " >&6; } 44705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44706 $as_echo "disabled" >&6; } 44707 else 44708 # Check if the provided tool contains a complete path. 44709 tool_specified="$BUILD_CXX" 44710 tool_basename="${tool_specified##*/}" 44711 if test "x$tool_basename" = "x$tool_specified"; then 44712 # A command without a complete path is provided, search $PATH. 44713 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 44714 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 44715 # Extract the first word of "$tool_basename", so it can be a program name with args. 44716 set dummy $tool_basename; ac_word=$2 44717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44718 $as_echo_n "checking for $ac_word... " >&6; } 44719 if ${ac_cv_path_BUILD_CXX+:} false; then : 44720 $as_echo_n "(cached) " >&6 44721 else 44722 case $BUILD_CXX in 44723 [\\/]* | ?:[\\/]*) 44724 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44725 ;; 44726 *) 44727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44728 for as_dir in $PATH 44729 do 44730 IFS=$as_save_IFS 44731 test -z "$as_dir" && as_dir=. 44732 for ac_exec_ext in '' $ac_executable_extensions; do 44733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44734 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44736 break 2 44737 fi 44738 done 44739 done 44740 IFS=$as_save_IFS 44741 44742 ;; 44743 esac 44744 fi 44745 BUILD_CXX=$ac_cv_path_BUILD_CXX 44746 if test -n "$BUILD_CXX"; then 44747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44748 $as_echo "$BUILD_CXX" >&6; } 44749 else 44750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44751 $as_echo "no" >&6; } 44752 fi 44753 44754 44755 if test "x$BUILD_CXX" = x; then 44756 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44757 fi 44758 else 44759 # Otherwise we believe it is a complete path. Use it as it is. 44760 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 44761 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 44762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 44763 $as_echo_n "checking for BUILD_CXX... " >&6; } 44764 if test ! -x "$tool_specified"; then 44765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44766 $as_echo "not found" >&6; } 44767 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 44768 fi 44769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44770 $as_echo "$tool_specified" >&6; } 44771 fi 44772 fi 44773 fi 44774 44775 fi 44776 44777 44778 44779 if test "x$BUILD_CXX" = x; then 44780 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 44781 fi 44782 44783 44784 44785 # Only process if variable expands to non-empty 44786 44787 if test "x$BUILD_CXX" != x; then 44788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44789 44790 # First separate the path from the arguments. This will split at the first 44791 # space. 44792 complete="$BUILD_CXX" 44793 path="${complete%% *}" 44794 tmp="$complete EOL" 44795 arguments="${tmp#* }" 44796 44797 # Input might be given as Windows format, start by converting to 44798 # unix format. 44799 new_path=`$CYGPATH -u "$path"` 44800 44801 # Now try to locate executable using which 44802 new_path=`$WHICH "$new_path" 2> /dev/null` 44803 # bat and cmd files are not always considered executable in cygwin causing which 44804 # to not find them 44805 if test "x$new_path" = x \ 44806 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44807 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44808 new_path=`$CYGPATH -u "$path"` 44809 fi 44810 if test "x$new_path" = x; then 44811 # Oops. Which didn't find the executable. 44812 # The splitting of arguments from the executable at a space might have been incorrect, 44813 # since paths with space are more likely in Windows. Give it another try with the whole 44814 # argument. 44815 path="$complete" 44816 arguments="EOL" 44817 new_path=`$CYGPATH -u "$path"` 44818 new_path=`$WHICH "$new_path" 2> /dev/null` 44819 # bat and cmd files are not always considered executable in cygwin causing which 44820 # to not find them 44821 if test "x$new_path" = x \ 44822 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44823 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44824 new_path=`$CYGPATH -u "$path"` 44825 fi 44826 if test "x$new_path" = x; then 44827 # It's still not found. Now this is an unrecoverable error. 44828 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44829 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44830 has_space=`$ECHO "$complete" | $GREP " "` 44831 if test "x$has_space" != x; then 44832 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44833 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44834 fi 44835 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44836 fi 44837 fi 44838 44839 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44840 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44841 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44842 # "foo.exe" is OK but "foo" is an error. 44843 # 44844 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44845 # It is also a way to make sure we got the proper file name for the real test later on. 44846 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44847 if test "x$test_shortpath" = x; then 44848 # Short path failed, file does not exist as specified. 44849 # Try adding .exe or .cmd 44850 if test -f "${new_path}.exe"; then 44851 input_to_shortpath="${new_path}.exe" 44852 elif test -f "${new_path}.cmd"; then 44853 input_to_shortpath="${new_path}.cmd" 44854 else 44855 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 44856 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 44857 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44858 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44859 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44860 fi 44861 else 44862 input_to_shortpath="$new_path" 44863 fi 44864 44865 # Call helper function which possibly converts this using DOS-style short mode. 44866 # If so, the updated path is stored in $new_path. 44867 new_path="$input_to_shortpath" 44868 44869 input_path="$input_to_shortpath" 44870 # Check if we need to convert this using DOS-style short mode. If the path 44871 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44872 # take no chances and rewrite it. 44873 # Note: m4 eats our [], so we need to use [ and ] instead. 44874 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44875 if test "x$has_forbidden_chars" != x; then 44876 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44877 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44878 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44879 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44880 # Going to short mode and back again did indeed matter. Since short mode is 44881 # case insensitive, let's make it lowercase to improve readability. 44882 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44883 # Now convert it back to Unix-style (cygpath) 44884 input_path=`$CYGPATH -u "$shortmode_path"` 44885 new_path="$input_path" 44886 fi 44887 fi 44888 44889 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44890 if test "x$test_cygdrive_prefix" = x; then 44891 # As a simple fix, exclude /usr/bin since it's not a real path. 44892 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44893 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44894 # a path prefixed by /cygdrive for fixpath to work. 44895 new_path="$CYGWIN_ROOT_PATH$input_path" 44896 fi 44897 fi 44898 44899 # remove trailing .exe if any 44900 new_path="${new_path/%.exe/}" 44901 44902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44903 44904 # First separate the path from the arguments. This will split at the first 44905 # space. 44906 complete="$BUILD_CXX" 44907 path="${complete%% *}" 44908 tmp="$complete EOL" 44909 arguments="${tmp#* }" 44910 44911 # Input might be given as Windows format, start by converting to 44912 # unix format. 44913 new_path="$path" 44914 44915 windows_path="$new_path" 44916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44917 unix_path=`$CYGPATH -u "$windows_path"` 44918 new_path="$unix_path" 44919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44921 new_path="$unix_path" 44922 fi 44923 44924 44925 # Now try to locate executable using which 44926 new_path=`$WHICH "$new_path" 2> /dev/null` 44927 44928 if test "x$new_path" = x; then 44929 # Oops. Which didn't find the executable. 44930 # The splitting of arguments from the executable at a space might have been incorrect, 44931 # since paths with space are more likely in Windows. Give it another try with the whole 44932 # argument. 44933 path="$complete" 44934 arguments="EOL" 44935 new_path="$path" 44936 44937 windows_path="$new_path" 44938 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44939 unix_path=`$CYGPATH -u "$windows_path"` 44940 new_path="$unix_path" 44941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44942 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44943 new_path="$unix_path" 44944 fi 44945 44946 44947 new_path=`$WHICH "$new_path" 2> /dev/null` 44948 # bat and cmd files are not always considered executable in MSYS causing which 44949 # to not find them 44950 if test "x$new_path" = x \ 44951 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44952 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44953 new_path="$path" 44954 44955 windows_path="$new_path" 44956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44957 unix_path=`$CYGPATH -u "$windows_path"` 44958 new_path="$unix_path" 44959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44960 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44961 new_path="$unix_path" 44962 fi 44963 44964 fi 44965 44966 if test "x$new_path" = x; then 44967 # It's still not found. Now this is an unrecoverable error. 44968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44969 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44970 has_space=`$ECHO "$complete" | $GREP " "` 44971 if test "x$has_space" != x; then 44972 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44973 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44974 fi 44975 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44976 fi 44977 fi 44978 44979 # Now new_path has a complete unix path to the binary 44980 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44981 # Keep paths in /bin as-is, but remove trailing .exe if any 44982 new_path="${new_path/%.exe/}" 44983 # Do not save /bin paths to all_fixpath_prefixes! 44984 else 44985 # Not in mixed or Windows style, start by that. 44986 new_path=`cmd //c echo $new_path` 44987 44988 input_path="$new_path" 44989 # Check if we need to convert this using DOS-style short mode. If the path 44990 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44991 # take no chances and rewrite it. 44992 # Note: m4 eats our [], so we need to use [ and ] instead. 44993 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44994 if test "x$has_forbidden_chars" != x; then 44995 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44996 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44997 fi 44998 44999 # Output is in $new_path 45000 45001 windows_path="$new_path" 45002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45003 unix_path=`$CYGPATH -u "$windows_path"` 45004 new_path="$unix_path" 45005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45007 new_path="$unix_path" 45008 fi 45009 45010 # remove trailing .exe if any 45011 new_path="${new_path/%.exe/}" 45012 45013 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45014 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45015 fi 45016 45017 else 45018 # We're on a unix platform. Hooray! :) 45019 # First separate the path from the arguments. This will split at the first 45020 # space. 45021 complete="$BUILD_CXX" 45022 path="${complete%% *}" 45023 tmp="$complete EOL" 45024 arguments="${tmp#* }" 45025 45026 # Cannot rely on the command "which" here since it doesn't always work. 45027 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45028 if test -z "$is_absolute_path"; then 45029 # Path to executable is not absolute. Find it. 45030 IFS_save="$IFS" 45031 IFS=: 45032 for p in $PATH; do 45033 if test -f "$p/$path" && test -x "$p/$path"; then 45034 new_path="$p/$path" 45035 break 45036 fi 45037 done 45038 IFS="$IFS_save" 45039 else 45040 # This is an absolute path, we can use it without further modifications. 45041 new_path="$path" 45042 fi 45043 45044 if test "x$new_path" = x; then 45045 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 45046 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 45047 has_space=`$ECHO "$complete" | $GREP " "` 45048 if test "x$has_space" != x; then 45049 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45050 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45051 fi 45052 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 45053 fi 45054 fi 45055 45056 # Now join together the path and the arguments once again 45057 if test "x$arguments" != xEOL; then 45058 new_complete="$new_path ${arguments% *}" 45059 else 45060 new_complete="$new_path" 45061 fi 45062 45063 if test "x$complete" != "x$new_complete"; then 45064 BUILD_CXX="$new_complete" 45065 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 45066 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 45067 fi 45068 fi 45069 45070 45071 45072 # Publish this variable in the help. 45073 45074 45075 if [ -z "${BUILD_NM+x}" ]; then 45076 # The variable is not set by user, try to locate tool using the code snippet 45077 for ac_prog in nm gcc-nm 45078 do 45079 # Extract the first word of "$ac_prog", so it can be a program name with args. 45080 set dummy $ac_prog; ac_word=$2 45081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45082 $as_echo_n "checking for $ac_word... " >&6; } 45083 if ${ac_cv_path_BUILD_NM+:} false; then : 45084 $as_echo_n "(cached) " >&6 45085 else 45086 case $BUILD_NM in 45087 [\\/]* | ?:[\\/]*) 45088 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45089 ;; 45090 *) 45091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45092 for as_dir in $PATH 45093 do 45094 IFS=$as_save_IFS 45095 test -z "$as_dir" && as_dir=. 45096 for ac_exec_ext in '' $ac_executable_extensions; do 45097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45098 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45100 break 2 45101 fi 45102 done 45103 done 45104 IFS=$as_save_IFS 45105 45106 ;; 45107 esac 45108 fi 45109 BUILD_NM=$ac_cv_path_BUILD_NM 45110 if test -n "$BUILD_NM"; then 45111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45112 $as_echo "$BUILD_NM" >&6; } 45113 else 45114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45115 $as_echo "no" >&6; } 45116 fi 45117 45118 45119 test -n "$BUILD_NM" && break 45120 done 45121 45122 else 45123 # The variable is set, but is it from the command line or the environment? 45124 45125 # Try to remove the string !BUILD_NM! from our list. 45126 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 45127 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45128 # If it failed, the variable was not from the command line. Ignore it, 45129 # but warn the user (except for BASH, which is always set by the calling BASH). 45130 if test "xBUILD_NM" != xBASH; then 45131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 45132 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 45133 fi 45134 # Try to locate tool using the code snippet 45135 for ac_prog in nm gcc-nm 45136 do 45137 # Extract the first word of "$ac_prog", so it can be a program name with args. 45138 set dummy $ac_prog; ac_word=$2 45139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45140 $as_echo_n "checking for $ac_word... " >&6; } 45141 if ${ac_cv_path_BUILD_NM+:} false; then : 45142 $as_echo_n "(cached) " >&6 45143 else 45144 case $BUILD_NM in 45145 [\\/]* | ?:[\\/]*) 45146 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45147 ;; 45148 *) 45149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45150 for as_dir in $PATH 45151 do 45152 IFS=$as_save_IFS 45153 test -z "$as_dir" && as_dir=. 45154 for ac_exec_ext in '' $ac_executable_extensions; do 45155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45156 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45158 break 2 45159 fi 45160 done 45161 done 45162 IFS=$as_save_IFS 45163 45164 ;; 45165 esac 45166 fi 45167 BUILD_NM=$ac_cv_path_BUILD_NM 45168 if test -n "$BUILD_NM"; then 45169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45170 $as_echo "$BUILD_NM" >&6; } 45171 else 45172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45173 $as_echo "no" >&6; } 45174 fi 45175 45176 45177 test -n "$BUILD_NM" && break 45178 done 45179 45180 else 45181 # If it succeeded, then it was overridden by the user. We will use it 45182 # for the tool. 45183 45184 # First remove it from the list of overridden variables, so we can test 45185 # for unknown variables in the end. 45186 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45187 45188 # Check if we try to supply an empty value 45189 if test "x$BUILD_NM" = x; then 45190 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 45191 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 45192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 45193 $as_echo_n "checking for BUILD_NM... " >&6; } 45194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45195 $as_echo "disabled" >&6; } 45196 else 45197 # Check if the provided tool contains a complete path. 45198 tool_specified="$BUILD_NM" 45199 tool_basename="${tool_specified##*/}" 45200 if test "x$tool_basename" = "x$tool_specified"; then 45201 # A command without a complete path is provided, search $PATH. 45202 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 45203 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 45204 # Extract the first word of "$tool_basename", so it can be a program name with args. 45205 set dummy $tool_basename; ac_word=$2 45206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45207 $as_echo_n "checking for $ac_word... " >&6; } 45208 if ${ac_cv_path_BUILD_NM+:} false; then : 45209 $as_echo_n "(cached) " >&6 45210 else 45211 case $BUILD_NM in 45212 [\\/]* | ?:[\\/]*) 45213 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 45214 ;; 45215 *) 45216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45217 for as_dir in $PATH 45218 do 45219 IFS=$as_save_IFS 45220 test -z "$as_dir" && as_dir=. 45221 for ac_exec_ext in '' $ac_executable_extensions; do 45222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45223 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 45224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45225 break 2 45226 fi 45227 done 45228 done 45229 IFS=$as_save_IFS 45230 45231 ;; 45232 esac 45233 fi 45234 BUILD_NM=$ac_cv_path_BUILD_NM 45235 if test -n "$BUILD_NM"; then 45236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 45237 $as_echo "$BUILD_NM" >&6; } 45238 else 45239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45240 $as_echo "no" >&6; } 45241 fi 45242 45243 45244 if test "x$BUILD_NM" = x; then 45245 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45246 fi 45247 else 45248 # Otherwise we believe it is a complete path. Use it as it is. 45249 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 45250 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 45251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 45252 $as_echo_n "checking for BUILD_NM... " >&6; } 45253 if test ! -x "$tool_specified"; then 45254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45255 $as_echo "not found" >&6; } 45256 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 45257 fi 45258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45259 $as_echo "$tool_specified" >&6; } 45260 fi 45261 fi 45262 fi 45263 45264 fi 45265 45266 45267 45268 # Only process if variable expands to non-empty 45269 45270 if test "x$BUILD_NM" != x; then 45271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45272 45273 # First separate the path from the arguments. This will split at the first 45274 # space. 45275 complete="$BUILD_NM" 45276 path="${complete%% *}" 45277 tmp="$complete EOL" 45278 arguments="${tmp#* }" 45279 45280 # Input might be given as Windows format, start by converting to 45281 # unix format. 45282 new_path=`$CYGPATH -u "$path"` 45283 45284 # Now try to locate executable using which 45285 new_path=`$WHICH "$new_path" 2> /dev/null` 45286 # bat and cmd files are not always considered executable in cygwin causing which 45287 # to not find them 45288 if test "x$new_path" = x \ 45289 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45290 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45291 new_path=`$CYGPATH -u "$path"` 45292 fi 45293 if test "x$new_path" = x; then 45294 # Oops. Which didn't find the executable. 45295 # The splitting of arguments from the executable at a space might have been incorrect, 45296 # since paths with space are more likely in Windows. Give it another try with the whole 45297 # argument. 45298 path="$complete" 45299 arguments="EOL" 45300 new_path=`$CYGPATH -u "$path"` 45301 new_path=`$WHICH "$new_path" 2> /dev/null` 45302 # bat and cmd files are not always considered executable in cygwin causing which 45303 # to not find them 45304 if test "x$new_path" = x \ 45305 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45306 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45307 new_path=`$CYGPATH -u "$path"` 45308 fi 45309 if test "x$new_path" = x; then 45310 # It's still not found. Now this is an unrecoverable error. 45311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45312 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45313 has_space=`$ECHO "$complete" | $GREP " "` 45314 if test "x$has_space" != x; then 45315 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45316 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45317 fi 45318 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45319 fi 45320 fi 45321 45322 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45323 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45324 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45325 # "foo.exe" is OK but "foo" is an error. 45326 # 45327 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45328 # It is also a way to make sure we got the proper file name for the real test later on. 45329 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45330 if test "x$test_shortpath" = x; then 45331 # Short path failed, file does not exist as specified. 45332 # Try adding .exe or .cmd 45333 if test -f "${new_path}.exe"; then 45334 input_to_shortpath="${new_path}.exe" 45335 elif test -f "${new_path}.cmd"; then 45336 input_to_shortpath="${new_path}.cmd" 45337 else 45338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 45339 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 45340 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45341 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45342 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45343 fi 45344 else 45345 input_to_shortpath="$new_path" 45346 fi 45347 45348 # Call helper function which possibly converts this using DOS-style short mode. 45349 # If so, the updated path is stored in $new_path. 45350 new_path="$input_to_shortpath" 45351 45352 input_path="$input_to_shortpath" 45353 # Check if we need to convert this using DOS-style short mode. If the path 45354 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45355 # take no chances and rewrite it. 45356 # Note: m4 eats our [], so we need to use [ and ] instead. 45357 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45358 if test "x$has_forbidden_chars" != x; then 45359 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45360 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45361 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45362 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45363 # Going to short mode and back again did indeed matter. Since short mode is 45364 # case insensitive, let's make it lowercase to improve readability. 45365 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45366 # Now convert it back to Unix-style (cygpath) 45367 input_path=`$CYGPATH -u "$shortmode_path"` 45368 new_path="$input_path" 45369 fi 45370 fi 45371 45372 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45373 if test "x$test_cygdrive_prefix" = x; then 45374 # As a simple fix, exclude /usr/bin since it's not a real path. 45375 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45376 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45377 # a path prefixed by /cygdrive for fixpath to work. 45378 new_path="$CYGWIN_ROOT_PATH$input_path" 45379 fi 45380 fi 45381 45382 # remove trailing .exe if any 45383 new_path="${new_path/%.exe/}" 45384 45385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45386 45387 # First separate the path from the arguments. This will split at the first 45388 # space. 45389 complete="$BUILD_NM" 45390 path="${complete%% *}" 45391 tmp="$complete EOL" 45392 arguments="${tmp#* }" 45393 45394 # Input might be given as Windows format, start by converting to 45395 # unix format. 45396 new_path="$path" 45397 45398 windows_path="$new_path" 45399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45400 unix_path=`$CYGPATH -u "$windows_path"` 45401 new_path="$unix_path" 45402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45403 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45404 new_path="$unix_path" 45405 fi 45406 45407 45408 # Now try to locate executable using which 45409 new_path=`$WHICH "$new_path" 2> /dev/null` 45410 45411 if test "x$new_path" = x; then 45412 # Oops. Which didn't find the executable. 45413 # The splitting of arguments from the executable at a space might have been incorrect, 45414 # since paths with space are more likely in Windows. Give it another try with the whole 45415 # argument. 45416 path="$complete" 45417 arguments="EOL" 45418 new_path="$path" 45419 45420 windows_path="$new_path" 45421 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45422 unix_path=`$CYGPATH -u "$windows_path"` 45423 new_path="$unix_path" 45424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45425 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45426 new_path="$unix_path" 45427 fi 45428 45429 45430 new_path=`$WHICH "$new_path" 2> /dev/null` 45431 # bat and cmd files are not always considered executable in MSYS causing which 45432 # to not find them 45433 if test "x$new_path" = x \ 45434 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45435 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45436 new_path="$path" 45437 45438 windows_path="$new_path" 45439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45440 unix_path=`$CYGPATH -u "$windows_path"` 45441 new_path="$unix_path" 45442 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45443 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45444 new_path="$unix_path" 45445 fi 45446 45447 fi 45448 45449 if test "x$new_path" = x; then 45450 # It's still not found. Now this is an unrecoverable error. 45451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45452 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45453 has_space=`$ECHO "$complete" | $GREP " "` 45454 if test "x$has_space" != x; then 45455 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45456 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45457 fi 45458 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45459 fi 45460 fi 45461 45462 # Now new_path has a complete unix path to the binary 45463 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45464 # Keep paths in /bin as-is, but remove trailing .exe if any 45465 new_path="${new_path/%.exe/}" 45466 # Do not save /bin paths to all_fixpath_prefixes! 45467 else 45468 # Not in mixed or Windows style, start by that. 45469 new_path=`cmd //c echo $new_path` 45470 45471 input_path="$new_path" 45472 # Check if we need to convert this using DOS-style short mode. If the path 45473 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45474 # take no chances and rewrite it. 45475 # Note: m4 eats our [], so we need to use [ and ] instead. 45476 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45477 if test "x$has_forbidden_chars" != x; then 45478 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45479 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45480 fi 45481 45482 # Output is in $new_path 45483 45484 windows_path="$new_path" 45485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45486 unix_path=`$CYGPATH -u "$windows_path"` 45487 new_path="$unix_path" 45488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45489 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45490 new_path="$unix_path" 45491 fi 45492 45493 # remove trailing .exe if any 45494 new_path="${new_path/%.exe/}" 45495 45496 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45497 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45498 fi 45499 45500 else 45501 # We're on a unix platform. Hooray! :) 45502 # First separate the path from the arguments. This will split at the first 45503 # space. 45504 complete="$BUILD_NM" 45505 path="${complete%% *}" 45506 tmp="$complete EOL" 45507 arguments="${tmp#* }" 45508 45509 # Cannot rely on the command "which" here since it doesn't always work. 45510 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45511 if test -z "$is_absolute_path"; then 45512 # Path to executable is not absolute. Find it. 45513 IFS_save="$IFS" 45514 IFS=: 45515 for p in $PATH; do 45516 if test -f "$p/$path" && test -x "$p/$path"; then 45517 new_path="$p/$path" 45518 break 45519 fi 45520 done 45521 IFS="$IFS_save" 45522 else 45523 # This is an absolute path, we can use it without further modifications. 45524 new_path="$path" 45525 fi 45526 45527 if test "x$new_path" = x; then 45528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 45529 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 45530 has_space=`$ECHO "$complete" | $GREP " "` 45531 if test "x$has_space" != x; then 45532 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45533 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45534 fi 45535 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45536 fi 45537 fi 45538 45539 # Now join together the path and the arguments once again 45540 if test "x$arguments" != xEOL; then 45541 new_complete="$new_path ${arguments% *}" 45542 else 45543 new_complete="$new_path" 45544 fi 45545 45546 if test "x$complete" != "x$new_complete"; then 45547 BUILD_NM="$new_complete" 45548 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 45549 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 45550 fi 45551 fi 45552 45553 45554 45555 # Publish this variable in the help. 45556 45557 45558 if [ -z "${BUILD_AR+x}" ]; then 45559 # The variable is not set by user, try to locate tool using the code snippet 45560 for ac_prog in ar gcc-ar 45561 do 45562 # Extract the first word of "$ac_prog", so it can be a program name with args. 45563 set dummy $ac_prog; ac_word=$2 45564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45565 $as_echo_n "checking for $ac_word... " >&6; } 45566 if ${ac_cv_path_BUILD_AR+:} false; then : 45567 $as_echo_n "(cached) " >&6 45568 else 45569 case $BUILD_AR in 45570 [\\/]* | ?:[\\/]*) 45571 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45572 ;; 45573 *) 45574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45575 for as_dir in $PATH 45576 do 45577 IFS=$as_save_IFS 45578 test -z "$as_dir" && as_dir=. 45579 for ac_exec_ext in '' $ac_executable_extensions; do 45580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45581 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45583 break 2 45584 fi 45585 done 45586 done 45587 IFS=$as_save_IFS 45588 45589 ;; 45590 esac 45591 fi 45592 BUILD_AR=$ac_cv_path_BUILD_AR 45593 if test -n "$BUILD_AR"; then 45594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45595 $as_echo "$BUILD_AR" >&6; } 45596 else 45597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45598 $as_echo "no" >&6; } 45599 fi 45600 45601 45602 test -n "$BUILD_AR" && break 45603 done 45604 45605 else 45606 # The variable is set, but is it from the command line or the environment? 45607 45608 # Try to remove the string !BUILD_AR! from our list. 45609 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 45610 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45611 # If it failed, the variable was not from the command line. Ignore it, 45612 # but warn the user (except for BASH, which is always set by the calling BASH). 45613 if test "xBUILD_AR" != xBASH; then 45614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 45615 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 45616 fi 45617 # Try to locate tool using the code snippet 45618 for ac_prog in ar gcc-ar 45619 do 45620 # Extract the first word of "$ac_prog", so it can be a program name with args. 45621 set dummy $ac_prog; ac_word=$2 45622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45623 $as_echo_n "checking for $ac_word... " >&6; } 45624 if ${ac_cv_path_BUILD_AR+:} false; then : 45625 $as_echo_n "(cached) " >&6 45626 else 45627 case $BUILD_AR in 45628 [\\/]* | ?:[\\/]*) 45629 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45630 ;; 45631 *) 45632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45633 for as_dir in $PATH 45634 do 45635 IFS=$as_save_IFS 45636 test -z "$as_dir" && as_dir=. 45637 for ac_exec_ext in '' $ac_executable_extensions; do 45638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45639 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45641 break 2 45642 fi 45643 done 45644 done 45645 IFS=$as_save_IFS 45646 45647 ;; 45648 esac 45649 fi 45650 BUILD_AR=$ac_cv_path_BUILD_AR 45651 if test -n "$BUILD_AR"; then 45652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45653 $as_echo "$BUILD_AR" >&6; } 45654 else 45655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45656 $as_echo "no" >&6; } 45657 fi 45658 45659 45660 test -n "$BUILD_AR" && break 45661 done 45662 45663 else 45664 # If it succeeded, then it was overridden by the user. We will use it 45665 # for the tool. 45666 45667 # First remove it from the list of overridden variables, so we can test 45668 # for unknown variables in the end. 45669 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45670 45671 # Check if we try to supply an empty value 45672 if test "x$BUILD_AR" = x; then 45673 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 45674 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 45675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 45676 $as_echo_n "checking for BUILD_AR... " >&6; } 45677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45678 $as_echo "disabled" >&6; } 45679 else 45680 # Check if the provided tool contains a complete path. 45681 tool_specified="$BUILD_AR" 45682 tool_basename="${tool_specified##*/}" 45683 if test "x$tool_basename" = "x$tool_specified"; then 45684 # A command without a complete path is provided, search $PATH. 45685 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 45686 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 45687 # Extract the first word of "$tool_basename", so it can be a program name with args. 45688 set dummy $tool_basename; ac_word=$2 45689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45690 $as_echo_n "checking for $ac_word... " >&6; } 45691 if ${ac_cv_path_BUILD_AR+:} false; then : 45692 $as_echo_n "(cached) " >&6 45693 else 45694 case $BUILD_AR in 45695 [\\/]* | ?:[\\/]*) 45696 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45697 ;; 45698 *) 45699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45700 for as_dir in $PATH 45701 do 45702 IFS=$as_save_IFS 45703 test -z "$as_dir" && as_dir=. 45704 for ac_exec_ext in '' $ac_executable_extensions; do 45705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45706 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45708 break 2 45709 fi 45710 done 45711 done 45712 IFS=$as_save_IFS 45713 45714 ;; 45715 esac 45716 fi 45717 BUILD_AR=$ac_cv_path_BUILD_AR 45718 if test -n "$BUILD_AR"; then 45719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45720 $as_echo "$BUILD_AR" >&6; } 45721 else 45722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45723 $as_echo "no" >&6; } 45724 fi 45725 45726 45727 if test "x$BUILD_AR" = x; then 45728 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45729 fi 45730 else 45731 # Otherwise we believe it is a complete path. Use it as it is. 45732 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 45733 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 45734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 45735 $as_echo_n "checking for BUILD_AR... " >&6; } 45736 if test ! -x "$tool_specified"; then 45737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45738 $as_echo "not found" >&6; } 45739 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 45740 fi 45741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45742 $as_echo "$tool_specified" >&6; } 45743 fi 45744 fi 45745 fi 45746 45747 fi 45748 45749 45750 45751 # Only process if variable expands to non-empty 45752 45753 if test "x$BUILD_AR" != x; then 45754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45755 45756 # First separate the path from the arguments. This will split at the first 45757 # space. 45758 complete="$BUILD_AR" 45759 path="${complete%% *}" 45760 tmp="$complete EOL" 45761 arguments="${tmp#* }" 45762 45763 # Input might be given as Windows format, start by converting to 45764 # unix format. 45765 new_path=`$CYGPATH -u "$path"` 45766 45767 # Now try to locate executable using which 45768 new_path=`$WHICH "$new_path" 2> /dev/null` 45769 # bat and cmd files are not always considered executable in cygwin causing which 45770 # to not find them 45771 if test "x$new_path" = x \ 45772 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45773 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45774 new_path=`$CYGPATH -u "$path"` 45775 fi 45776 if test "x$new_path" = x; then 45777 # Oops. Which didn't find the executable. 45778 # The splitting of arguments from the executable at a space might have been incorrect, 45779 # since paths with space are more likely in Windows. Give it another try with the whole 45780 # argument. 45781 path="$complete" 45782 arguments="EOL" 45783 new_path=`$CYGPATH -u "$path"` 45784 new_path=`$WHICH "$new_path" 2> /dev/null` 45785 # bat and cmd files are not always considered executable in cygwin causing which 45786 # to not find them 45787 if test "x$new_path" = x \ 45788 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45789 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45790 new_path=`$CYGPATH -u "$path"` 45791 fi 45792 if test "x$new_path" = x; then 45793 # It's still not found. Now this is an unrecoverable error. 45794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45795 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45796 has_space=`$ECHO "$complete" | $GREP " "` 45797 if test "x$has_space" != x; then 45798 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45799 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45800 fi 45801 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45802 fi 45803 fi 45804 45805 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45806 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45807 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45808 # "foo.exe" is OK but "foo" is an error. 45809 # 45810 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45811 # It is also a way to make sure we got the proper file name for the real test later on. 45812 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45813 if test "x$test_shortpath" = x; then 45814 # Short path failed, file does not exist as specified. 45815 # Try adding .exe or .cmd 45816 if test -f "${new_path}.exe"; then 45817 input_to_shortpath="${new_path}.exe" 45818 elif test -f "${new_path}.cmd"; then 45819 input_to_shortpath="${new_path}.cmd" 45820 else 45821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 45822 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 45823 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45824 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45825 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45826 fi 45827 else 45828 input_to_shortpath="$new_path" 45829 fi 45830 45831 # Call helper function which possibly converts this using DOS-style short mode. 45832 # If so, the updated path is stored in $new_path. 45833 new_path="$input_to_shortpath" 45834 45835 input_path="$input_to_shortpath" 45836 # Check if we need to convert this using DOS-style short mode. If the path 45837 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45838 # take no chances and rewrite it. 45839 # Note: m4 eats our [], so we need to use [ and ] instead. 45840 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45841 if test "x$has_forbidden_chars" != x; then 45842 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45843 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45844 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45845 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45846 # Going to short mode and back again did indeed matter. Since short mode is 45847 # case insensitive, let's make it lowercase to improve readability. 45848 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45849 # Now convert it back to Unix-style (cygpath) 45850 input_path=`$CYGPATH -u "$shortmode_path"` 45851 new_path="$input_path" 45852 fi 45853 fi 45854 45855 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45856 if test "x$test_cygdrive_prefix" = x; then 45857 # As a simple fix, exclude /usr/bin since it's not a real path. 45858 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45859 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45860 # a path prefixed by /cygdrive for fixpath to work. 45861 new_path="$CYGWIN_ROOT_PATH$input_path" 45862 fi 45863 fi 45864 45865 # remove trailing .exe if any 45866 new_path="${new_path/%.exe/}" 45867 45868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45869 45870 # First separate the path from the arguments. This will split at the first 45871 # space. 45872 complete="$BUILD_AR" 45873 path="${complete%% *}" 45874 tmp="$complete EOL" 45875 arguments="${tmp#* }" 45876 45877 # Input might be given as Windows format, start by converting to 45878 # unix format. 45879 new_path="$path" 45880 45881 windows_path="$new_path" 45882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45883 unix_path=`$CYGPATH -u "$windows_path"` 45884 new_path="$unix_path" 45885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45886 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45887 new_path="$unix_path" 45888 fi 45889 45890 45891 # Now try to locate executable using which 45892 new_path=`$WHICH "$new_path" 2> /dev/null` 45893 45894 if test "x$new_path" = x; then 45895 # Oops. Which didn't find the executable. 45896 # The splitting of arguments from the executable at a space might have been incorrect, 45897 # since paths with space are more likely in Windows. Give it another try with the whole 45898 # argument. 45899 path="$complete" 45900 arguments="EOL" 45901 new_path="$path" 45902 45903 windows_path="$new_path" 45904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45905 unix_path=`$CYGPATH -u "$windows_path"` 45906 new_path="$unix_path" 45907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45908 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45909 new_path="$unix_path" 45910 fi 45911 45912 45913 new_path=`$WHICH "$new_path" 2> /dev/null` 45914 # bat and cmd files are not always considered executable in MSYS causing which 45915 # to not find them 45916 if test "x$new_path" = x \ 45917 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45918 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45919 new_path="$path" 45920 45921 windows_path="$new_path" 45922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45923 unix_path=`$CYGPATH -u "$windows_path"` 45924 new_path="$unix_path" 45925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45926 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45927 new_path="$unix_path" 45928 fi 45929 45930 fi 45931 45932 if test "x$new_path" = x; then 45933 # It's still not found. Now this is an unrecoverable error. 45934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45935 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45936 has_space=`$ECHO "$complete" | $GREP " "` 45937 if test "x$has_space" != x; then 45938 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45939 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45940 fi 45941 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45942 fi 45943 fi 45944 45945 # Now new_path has a complete unix path to the binary 45946 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45947 # Keep paths in /bin as-is, but remove trailing .exe if any 45948 new_path="${new_path/%.exe/}" 45949 # Do not save /bin paths to all_fixpath_prefixes! 45950 else 45951 # Not in mixed or Windows style, start by that. 45952 new_path=`cmd //c echo $new_path` 45953 45954 input_path="$new_path" 45955 # Check if we need to convert this using DOS-style short mode. If the path 45956 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45957 # take no chances and rewrite it. 45958 # Note: m4 eats our [], so we need to use [ and ] instead. 45959 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45960 if test "x$has_forbidden_chars" != x; then 45961 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45962 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45963 fi 45964 45965 # Output is in $new_path 45966 45967 windows_path="$new_path" 45968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45969 unix_path=`$CYGPATH -u "$windows_path"` 45970 new_path="$unix_path" 45971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45972 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45973 new_path="$unix_path" 45974 fi 45975 45976 # remove trailing .exe if any 45977 new_path="${new_path/%.exe/}" 45978 45979 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45980 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45981 fi 45982 45983 else 45984 # We're on a unix platform. Hooray! :) 45985 # First separate the path from the arguments. This will split at the first 45986 # space. 45987 complete="$BUILD_AR" 45988 path="${complete%% *}" 45989 tmp="$complete EOL" 45990 arguments="${tmp#* }" 45991 45992 # Cannot rely on the command "which" here since it doesn't always work. 45993 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45994 if test -z "$is_absolute_path"; then 45995 # Path to executable is not absolute. Find it. 45996 IFS_save="$IFS" 45997 IFS=: 45998 for p in $PATH; do 45999 if test -f "$p/$path" && test -x "$p/$path"; then 46000 new_path="$p/$path" 46001 break 46002 fi 46003 done 46004 IFS="$IFS_save" 46005 else 46006 # This is an absolute path, we can use it without further modifications. 46007 new_path="$path" 46008 fi 46009 46010 if test "x$new_path" = x; then 46011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 46012 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 46013 has_space=`$ECHO "$complete" | $GREP " "` 46014 if test "x$has_space" != x; then 46015 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46016 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46017 fi 46018 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 46019 fi 46020 fi 46021 46022 # Now join together the path and the arguments once again 46023 if test "x$arguments" != xEOL; then 46024 new_complete="$new_path ${arguments% *}" 46025 else 46026 new_complete="$new_path" 46027 fi 46028 46029 if test "x$complete" != "x$new_complete"; then 46030 BUILD_AR="$new_complete" 46031 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 46032 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 46033 fi 46034 fi 46035 46036 46037 46038 # Publish this variable in the help. 46039 46040 46041 if [ -z "${BUILD_OBJCOPY+x}" ]; then 46042 # The variable is not set by user, try to locate tool using the code snippet 46043 for ac_prog in objcopy 46044 do 46045 # Extract the first word of "$ac_prog", so it can be a program name with args. 46046 set dummy $ac_prog; ac_word=$2 46047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46048 $as_echo_n "checking for $ac_word... " >&6; } 46049 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46050 $as_echo_n "(cached) " >&6 46051 else 46052 case $BUILD_OBJCOPY in 46053 [\\/]* | ?:[\\/]*) 46054 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46055 ;; 46056 *) 46057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46058 for as_dir in $PATH 46059 do 46060 IFS=$as_save_IFS 46061 test -z "$as_dir" && as_dir=. 46062 for ac_exec_ext in '' $ac_executable_extensions; do 46063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46064 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46066 break 2 46067 fi 46068 done 46069 done 46070 IFS=$as_save_IFS 46071 46072 ;; 46073 esac 46074 fi 46075 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46076 if test -n "$BUILD_OBJCOPY"; then 46077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46078 $as_echo "$BUILD_OBJCOPY" >&6; } 46079 else 46080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46081 $as_echo "no" >&6; } 46082 fi 46083 46084 46085 test -n "$BUILD_OBJCOPY" && break 46086 done 46087 46088 else 46089 # The variable is set, but is it from the command line or the environment? 46090 46091 # Try to remove the string !BUILD_OBJCOPY! from our list. 46092 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 46093 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46094 # If it failed, the variable was not from the command line. Ignore it, 46095 # but warn the user (except for BASH, which is always set by the calling BASH). 46096 if test "xBUILD_OBJCOPY" != xBASH; then 46097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 46098 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 46099 fi 46100 # Try to locate tool using the code snippet 46101 for ac_prog in objcopy 46102 do 46103 # Extract the first word of "$ac_prog", so it can be a program name with args. 46104 set dummy $ac_prog; ac_word=$2 46105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46106 $as_echo_n "checking for $ac_word... " >&6; } 46107 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46108 $as_echo_n "(cached) " >&6 46109 else 46110 case $BUILD_OBJCOPY in 46111 [\\/]* | ?:[\\/]*) 46112 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46113 ;; 46114 *) 46115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46116 for as_dir in $PATH 46117 do 46118 IFS=$as_save_IFS 46119 test -z "$as_dir" && as_dir=. 46120 for ac_exec_ext in '' $ac_executable_extensions; do 46121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46122 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46124 break 2 46125 fi 46126 done 46127 done 46128 IFS=$as_save_IFS 46129 46130 ;; 46131 esac 46132 fi 46133 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46134 if test -n "$BUILD_OBJCOPY"; then 46135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46136 $as_echo "$BUILD_OBJCOPY" >&6; } 46137 else 46138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46139 $as_echo "no" >&6; } 46140 fi 46141 46142 46143 test -n "$BUILD_OBJCOPY" && break 46144 done 46145 46146 else 46147 # If it succeeded, then it was overridden by the user. We will use it 46148 # for the tool. 46149 46150 # First remove it from the list of overridden variables, so we can test 46151 # for unknown variables in the end. 46152 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46153 46154 # Check if we try to supply an empty value 46155 if test "x$BUILD_OBJCOPY" = x; then 46156 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 46157 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 46158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 46159 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 46160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46161 $as_echo "disabled" >&6; } 46162 else 46163 # Check if the provided tool contains a complete path. 46164 tool_specified="$BUILD_OBJCOPY" 46165 tool_basename="${tool_specified##*/}" 46166 if test "x$tool_basename" = "x$tool_specified"; then 46167 # A command without a complete path is provided, search $PATH. 46168 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 46169 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 46170 # Extract the first word of "$tool_basename", so it can be a program name with args. 46171 set dummy $tool_basename; ac_word=$2 46172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46173 $as_echo_n "checking for $ac_word... " >&6; } 46174 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 46175 $as_echo_n "(cached) " >&6 46176 else 46177 case $BUILD_OBJCOPY in 46178 [\\/]* | ?:[\\/]*) 46179 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 46180 ;; 46181 *) 46182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46183 for as_dir in $PATH 46184 do 46185 IFS=$as_save_IFS 46186 test -z "$as_dir" && as_dir=. 46187 for ac_exec_ext in '' $ac_executable_extensions; do 46188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46189 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 46190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46191 break 2 46192 fi 46193 done 46194 done 46195 IFS=$as_save_IFS 46196 46197 ;; 46198 esac 46199 fi 46200 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 46201 if test -n "$BUILD_OBJCOPY"; then 46202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 46203 $as_echo "$BUILD_OBJCOPY" >&6; } 46204 else 46205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46206 $as_echo "no" >&6; } 46207 fi 46208 46209 46210 if test "x$BUILD_OBJCOPY" = x; then 46211 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46212 fi 46213 else 46214 # Otherwise we believe it is a complete path. Use it as it is. 46215 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 46216 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 46217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 46218 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 46219 if test ! -x "$tool_specified"; then 46220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46221 $as_echo "not found" >&6; } 46222 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 46223 fi 46224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46225 $as_echo "$tool_specified" >&6; } 46226 fi 46227 fi 46228 fi 46229 46230 fi 46231 46232 46233 46234 # Only process if variable expands to non-empty 46235 46236 if test "x$BUILD_OBJCOPY" != x; then 46237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46238 46239 # First separate the path from the arguments. This will split at the first 46240 # space. 46241 complete="$BUILD_OBJCOPY" 46242 path="${complete%% *}" 46243 tmp="$complete EOL" 46244 arguments="${tmp#* }" 46245 46246 # Input might be given as Windows format, start by converting to 46247 # unix format. 46248 new_path=`$CYGPATH -u "$path"` 46249 46250 # Now try to locate executable using which 46251 new_path=`$WHICH "$new_path" 2> /dev/null` 46252 # bat and cmd files are not always considered executable in cygwin causing which 46253 # to not find them 46254 if test "x$new_path" = x \ 46255 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46256 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46257 new_path=`$CYGPATH -u "$path"` 46258 fi 46259 if test "x$new_path" = x; then 46260 # Oops. Which didn't find the executable. 46261 # The splitting of arguments from the executable at a space might have been incorrect, 46262 # since paths with space are more likely in Windows. Give it another try with the whole 46263 # argument. 46264 path="$complete" 46265 arguments="EOL" 46266 new_path=`$CYGPATH -u "$path"` 46267 new_path=`$WHICH "$new_path" 2> /dev/null` 46268 # bat and cmd files are not always considered executable in cygwin causing which 46269 # to not find them 46270 if test "x$new_path" = x \ 46271 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46272 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46273 new_path=`$CYGPATH -u "$path"` 46274 fi 46275 if test "x$new_path" = x; then 46276 # It's still not found. Now this is an unrecoverable error. 46277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46278 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46279 has_space=`$ECHO "$complete" | $GREP " "` 46280 if test "x$has_space" != x; then 46281 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46282 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46283 fi 46284 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46285 fi 46286 fi 46287 46288 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46289 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46290 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46291 # "foo.exe" is OK but "foo" is an error. 46292 # 46293 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46294 # It is also a way to make sure we got the proper file name for the real test later on. 46295 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46296 if test "x$test_shortpath" = x; then 46297 # Short path failed, file does not exist as specified. 46298 # Try adding .exe or .cmd 46299 if test -f "${new_path}.exe"; then 46300 input_to_shortpath="${new_path}.exe" 46301 elif test -f "${new_path}.cmd"; then 46302 input_to_shortpath="${new_path}.cmd" 46303 else 46304 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 46305 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 46306 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46307 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46308 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46309 fi 46310 else 46311 input_to_shortpath="$new_path" 46312 fi 46313 46314 # Call helper function which possibly converts this using DOS-style short mode. 46315 # If so, the updated path is stored in $new_path. 46316 new_path="$input_to_shortpath" 46317 46318 input_path="$input_to_shortpath" 46319 # Check if we need to convert this using DOS-style short mode. If the path 46320 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46321 # take no chances and rewrite it. 46322 # Note: m4 eats our [], so we need to use [ and ] instead. 46323 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46324 if test "x$has_forbidden_chars" != x; then 46325 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46326 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46327 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46328 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46329 # Going to short mode and back again did indeed matter. Since short mode is 46330 # case insensitive, let's make it lowercase to improve readability. 46331 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46332 # Now convert it back to Unix-style (cygpath) 46333 input_path=`$CYGPATH -u "$shortmode_path"` 46334 new_path="$input_path" 46335 fi 46336 fi 46337 46338 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46339 if test "x$test_cygdrive_prefix" = x; then 46340 # As a simple fix, exclude /usr/bin since it's not a real path. 46341 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46342 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46343 # a path prefixed by /cygdrive for fixpath to work. 46344 new_path="$CYGWIN_ROOT_PATH$input_path" 46345 fi 46346 fi 46347 46348 # remove trailing .exe if any 46349 new_path="${new_path/%.exe/}" 46350 46351 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46352 46353 # First separate the path from the arguments. This will split at the first 46354 # space. 46355 complete="$BUILD_OBJCOPY" 46356 path="${complete%% *}" 46357 tmp="$complete EOL" 46358 arguments="${tmp#* }" 46359 46360 # Input might be given as Windows format, start by converting to 46361 # unix format. 46362 new_path="$path" 46363 46364 windows_path="$new_path" 46365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46366 unix_path=`$CYGPATH -u "$windows_path"` 46367 new_path="$unix_path" 46368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46370 new_path="$unix_path" 46371 fi 46372 46373 46374 # Now try to locate executable using which 46375 new_path=`$WHICH "$new_path" 2> /dev/null` 46376 46377 if test "x$new_path" = x; then 46378 # Oops. Which didn't find the executable. 46379 # The splitting of arguments from the executable at a space might have been incorrect, 46380 # since paths with space are more likely in Windows. Give it another try with the whole 46381 # argument. 46382 path="$complete" 46383 arguments="EOL" 46384 new_path="$path" 46385 46386 windows_path="$new_path" 46387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46388 unix_path=`$CYGPATH -u "$windows_path"` 46389 new_path="$unix_path" 46390 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46391 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46392 new_path="$unix_path" 46393 fi 46394 46395 46396 new_path=`$WHICH "$new_path" 2> /dev/null` 46397 # bat and cmd files are not always considered executable in MSYS causing which 46398 # to not find them 46399 if test "x$new_path" = x \ 46400 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46401 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46402 new_path="$path" 46403 46404 windows_path="$new_path" 46405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46406 unix_path=`$CYGPATH -u "$windows_path"` 46407 new_path="$unix_path" 46408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46410 new_path="$unix_path" 46411 fi 46412 46413 fi 46414 46415 if test "x$new_path" = x; then 46416 # It's still not found. Now this is an unrecoverable error. 46417 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46418 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46419 has_space=`$ECHO "$complete" | $GREP " "` 46420 if test "x$has_space" != x; then 46421 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46422 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46423 fi 46424 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46425 fi 46426 fi 46427 46428 # Now new_path has a complete unix path to the binary 46429 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46430 # Keep paths in /bin as-is, but remove trailing .exe if any 46431 new_path="${new_path/%.exe/}" 46432 # Do not save /bin paths to all_fixpath_prefixes! 46433 else 46434 # Not in mixed or Windows style, start by that. 46435 new_path=`cmd //c echo $new_path` 46436 46437 input_path="$new_path" 46438 # Check if we need to convert this using DOS-style short mode. If the path 46439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46440 # take no chances and rewrite it. 46441 # Note: m4 eats our [], so we need to use [ and ] instead. 46442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46443 if test "x$has_forbidden_chars" != x; then 46444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46445 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46446 fi 46447 46448 # Output is in $new_path 46449 46450 windows_path="$new_path" 46451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46452 unix_path=`$CYGPATH -u "$windows_path"` 46453 new_path="$unix_path" 46454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46455 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46456 new_path="$unix_path" 46457 fi 46458 46459 # remove trailing .exe if any 46460 new_path="${new_path/%.exe/}" 46461 46462 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46463 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46464 fi 46465 46466 else 46467 # We're on a unix platform. Hooray! :) 46468 # First separate the path from the arguments. This will split at the first 46469 # space. 46470 complete="$BUILD_OBJCOPY" 46471 path="${complete%% *}" 46472 tmp="$complete EOL" 46473 arguments="${tmp#* }" 46474 46475 # Cannot rely on the command "which" here since it doesn't always work. 46476 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46477 if test -z "$is_absolute_path"; then 46478 # Path to executable is not absolute. Find it. 46479 IFS_save="$IFS" 46480 IFS=: 46481 for p in $PATH; do 46482 if test -f "$p/$path" && test -x "$p/$path"; then 46483 new_path="$p/$path" 46484 break 46485 fi 46486 done 46487 IFS="$IFS_save" 46488 else 46489 # This is an absolute path, we can use it without further modifications. 46490 new_path="$path" 46491 fi 46492 46493 if test "x$new_path" = x; then 46494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 46495 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 46496 has_space=`$ECHO "$complete" | $GREP " "` 46497 if test "x$has_space" != x; then 46498 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46499 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46500 fi 46501 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 46502 fi 46503 fi 46504 46505 # Now join together the path and the arguments once again 46506 if test "x$arguments" != xEOL; then 46507 new_complete="$new_path ${arguments% *}" 46508 else 46509 new_complete="$new_path" 46510 fi 46511 46512 if test "x$complete" != "x$new_complete"; then 46513 BUILD_OBJCOPY="$new_complete" 46514 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 46515 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 46516 fi 46517 fi 46518 46519 46520 46521 # Publish this variable in the help. 46522 46523 46524 if [ -z "${BUILD_STRIP+x}" ]; then 46525 # The variable is not set by user, try to locate tool using the code snippet 46526 for ac_prog in strip 46527 do 46528 # Extract the first word of "$ac_prog", so it can be a program name with args. 46529 set dummy $ac_prog; ac_word=$2 46530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46531 $as_echo_n "checking for $ac_word... " >&6; } 46532 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46533 $as_echo_n "(cached) " >&6 46534 else 46535 case $BUILD_STRIP in 46536 [\\/]* | ?:[\\/]*) 46537 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46538 ;; 46539 *) 46540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46541 for as_dir in $PATH 46542 do 46543 IFS=$as_save_IFS 46544 test -z "$as_dir" && as_dir=. 46545 for ac_exec_ext in '' $ac_executable_extensions; do 46546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46547 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46549 break 2 46550 fi 46551 done 46552 done 46553 IFS=$as_save_IFS 46554 46555 ;; 46556 esac 46557 fi 46558 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46559 if test -n "$BUILD_STRIP"; then 46560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46561 $as_echo "$BUILD_STRIP" >&6; } 46562 else 46563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46564 $as_echo "no" >&6; } 46565 fi 46566 46567 46568 test -n "$BUILD_STRIP" && break 46569 done 46570 46571 else 46572 # The variable is set, but is it from the command line or the environment? 46573 46574 # Try to remove the string !BUILD_STRIP! from our list. 46575 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 46576 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46577 # If it failed, the variable was not from the command line. Ignore it, 46578 # but warn the user (except for BASH, which is always set by the calling BASH). 46579 if test "xBUILD_STRIP" != xBASH; then 46580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 46581 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 46582 fi 46583 # Try to locate tool using the code snippet 46584 for ac_prog in strip 46585 do 46586 # Extract the first word of "$ac_prog", so it can be a program name with args. 46587 set dummy $ac_prog; ac_word=$2 46588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46589 $as_echo_n "checking for $ac_word... " >&6; } 46590 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46591 $as_echo_n "(cached) " >&6 46592 else 46593 case $BUILD_STRIP in 46594 [\\/]* | ?:[\\/]*) 46595 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46596 ;; 46597 *) 46598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46599 for as_dir in $PATH 46600 do 46601 IFS=$as_save_IFS 46602 test -z "$as_dir" && as_dir=. 46603 for ac_exec_ext in '' $ac_executable_extensions; do 46604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46605 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46607 break 2 46608 fi 46609 done 46610 done 46611 IFS=$as_save_IFS 46612 46613 ;; 46614 esac 46615 fi 46616 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46617 if test -n "$BUILD_STRIP"; then 46618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46619 $as_echo "$BUILD_STRIP" >&6; } 46620 else 46621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46622 $as_echo "no" >&6; } 46623 fi 46624 46625 46626 test -n "$BUILD_STRIP" && break 46627 done 46628 46629 else 46630 # If it succeeded, then it was overridden by the user. We will use it 46631 # for the tool. 46632 46633 # First remove it from the list of overridden variables, so we can test 46634 # for unknown variables in the end. 46635 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46636 46637 # Check if we try to supply an empty value 46638 if test "x$BUILD_STRIP" = x; then 46639 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 46640 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 46641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 46642 $as_echo_n "checking for BUILD_STRIP... " >&6; } 46643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46644 $as_echo "disabled" >&6; } 46645 else 46646 # Check if the provided tool contains a complete path. 46647 tool_specified="$BUILD_STRIP" 46648 tool_basename="${tool_specified##*/}" 46649 if test "x$tool_basename" = "x$tool_specified"; then 46650 # A command without a complete path is provided, search $PATH. 46651 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 46652 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 46653 # Extract the first word of "$tool_basename", so it can be a program name with args. 46654 set dummy $tool_basename; ac_word=$2 46655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46656 $as_echo_n "checking for $ac_word... " >&6; } 46657 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46658 $as_echo_n "(cached) " >&6 46659 else 46660 case $BUILD_STRIP in 46661 [\\/]* | ?:[\\/]*) 46662 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46663 ;; 46664 *) 46665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46666 for as_dir in $PATH 46667 do 46668 IFS=$as_save_IFS 46669 test -z "$as_dir" && as_dir=. 46670 for ac_exec_ext in '' $ac_executable_extensions; do 46671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46672 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46674 break 2 46675 fi 46676 done 46677 done 46678 IFS=$as_save_IFS 46679 46680 ;; 46681 esac 46682 fi 46683 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46684 if test -n "$BUILD_STRIP"; then 46685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46686 $as_echo "$BUILD_STRIP" >&6; } 46687 else 46688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46689 $as_echo "no" >&6; } 46690 fi 46691 46692 46693 if test "x$BUILD_STRIP" = x; then 46694 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46695 fi 46696 else 46697 # Otherwise we believe it is a complete path. Use it as it is. 46698 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 46699 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 46700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 46701 $as_echo_n "checking for BUILD_STRIP... " >&6; } 46702 if test ! -x "$tool_specified"; then 46703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46704 $as_echo "not found" >&6; } 46705 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 46706 fi 46707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46708 $as_echo "$tool_specified" >&6; } 46709 fi 46710 fi 46711 fi 46712 46713 fi 46714 46715 46716 46717 # Only process if variable expands to non-empty 46718 46719 if test "x$BUILD_STRIP" != x; then 46720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46721 46722 # First separate the path from the arguments. This will split at the first 46723 # space. 46724 complete="$BUILD_STRIP" 46725 path="${complete%% *}" 46726 tmp="$complete EOL" 46727 arguments="${tmp#* }" 46728 46729 # Input might be given as Windows format, start by converting to 46730 # unix format. 46731 new_path=`$CYGPATH -u "$path"` 46732 46733 # Now try to locate executable using which 46734 new_path=`$WHICH "$new_path" 2> /dev/null` 46735 # bat and cmd files are not always considered executable in cygwin causing which 46736 # to not find them 46737 if test "x$new_path" = x \ 46738 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46739 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46740 new_path=`$CYGPATH -u "$path"` 46741 fi 46742 if test "x$new_path" = x; then 46743 # Oops. Which didn't find the executable. 46744 # The splitting of arguments from the executable at a space might have been incorrect, 46745 # since paths with space are more likely in Windows. Give it another try with the whole 46746 # argument. 46747 path="$complete" 46748 arguments="EOL" 46749 new_path=`$CYGPATH -u "$path"` 46750 new_path=`$WHICH "$new_path" 2> /dev/null` 46751 # bat and cmd files are not always considered executable in cygwin causing which 46752 # to not find them 46753 if test "x$new_path" = x \ 46754 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46755 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46756 new_path=`$CYGPATH -u "$path"` 46757 fi 46758 if test "x$new_path" = x; then 46759 # It's still not found. Now this is an unrecoverable error. 46760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46761 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46762 has_space=`$ECHO "$complete" | $GREP " "` 46763 if test "x$has_space" != x; then 46764 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46765 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46766 fi 46767 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46768 fi 46769 fi 46770 46771 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46772 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46773 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46774 # "foo.exe" is OK but "foo" is an error. 46775 # 46776 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46777 # It is also a way to make sure we got the proper file name for the real test later on. 46778 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46779 if test "x$test_shortpath" = x; then 46780 # Short path failed, file does not exist as specified. 46781 # Try adding .exe or .cmd 46782 if test -f "${new_path}.exe"; then 46783 input_to_shortpath="${new_path}.exe" 46784 elif test -f "${new_path}.cmd"; then 46785 input_to_shortpath="${new_path}.cmd" 46786 else 46787 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 46788 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 46789 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46790 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46791 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46792 fi 46793 else 46794 input_to_shortpath="$new_path" 46795 fi 46796 46797 # Call helper function which possibly converts this using DOS-style short mode. 46798 # If so, the updated path is stored in $new_path. 46799 new_path="$input_to_shortpath" 46800 46801 input_path="$input_to_shortpath" 46802 # Check if we need to convert this using DOS-style short mode. If the path 46803 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46804 # take no chances and rewrite it. 46805 # Note: m4 eats our [], so we need to use [ and ] instead. 46806 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46807 if test "x$has_forbidden_chars" != x; then 46808 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46809 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46810 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46811 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46812 # Going to short mode and back again did indeed matter. Since short mode is 46813 # case insensitive, let's make it lowercase to improve readability. 46814 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46815 # Now convert it back to Unix-style (cygpath) 46816 input_path=`$CYGPATH -u "$shortmode_path"` 46817 new_path="$input_path" 46818 fi 46819 fi 46820 46821 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46822 if test "x$test_cygdrive_prefix" = x; then 46823 # As a simple fix, exclude /usr/bin since it's not a real path. 46824 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46825 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46826 # a path prefixed by /cygdrive for fixpath to work. 46827 new_path="$CYGWIN_ROOT_PATH$input_path" 46828 fi 46829 fi 46830 46831 # remove trailing .exe if any 46832 new_path="${new_path/%.exe/}" 46833 46834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46835 46836 # First separate the path from the arguments. This will split at the first 46837 # space. 46838 complete="$BUILD_STRIP" 46839 path="${complete%% *}" 46840 tmp="$complete EOL" 46841 arguments="${tmp#* }" 46842 46843 # Input might be given as Windows format, start by converting to 46844 # unix format. 46845 new_path="$path" 46846 46847 windows_path="$new_path" 46848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46849 unix_path=`$CYGPATH -u "$windows_path"` 46850 new_path="$unix_path" 46851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46853 new_path="$unix_path" 46854 fi 46855 46856 46857 # Now try to locate executable using which 46858 new_path=`$WHICH "$new_path" 2> /dev/null` 46859 46860 if test "x$new_path" = x; then 46861 # Oops. Which didn't find the executable. 46862 # The splitting of arguments from the executable at a space might have been incorrect, 46863 # since paths with space are more likely in Windows. Give it another try with the whole 46864 # argument. 46865 path="$complete" 46866 arguments="EOL" 46867 new_path="$path" 46868 46869 windows_path="$new_path" 46870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46871 unix_path=`$CYGPATH -u "$windows_path"` 46872 new_path="$unix_path" 46873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46875 new_path="$unix_path" 46876 fi 46877 46878 46879 new_path=`$WHICH "$new_path" 2> /dev/null` 46880 # bat and cmd files are not always considered executable in MSYS causing which 46881 # to not find them 46882 if test "x$new_path" = x \ 46883 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46884 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46885 new_path="$path" 46886 46887 windows_path="$new_path" 46888 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46889 unix_path=`$CYGPATH -u "$windows_path"` 46890 new_path="$unix_path" 46891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46892 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46893 new_path="$unix_path" 46894 fi 46895 46896 fi 46897 46898 if test "x$new_path" = x; then 46899 # It's still not found. Now this is an unrecoverable error. 46900 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46901 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46902 has_space=`$ECHO "$complete" | $GREP " "` 46903 if test "x$has_space" != x; then 46904 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46905 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46906 fi 46907 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46908 fi 46909 fi 46910 46911 # Now new_path has a complete unix path to the binary 46912 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46913 # Keep paths in /bin as-is, but remove trailing .exe if any 46914 new_path="${new_path/%.exe/}" 46915 # Do not save /bin paths to all_fixpath_prefixes! 46916 else 46917 # Not in mixed or Windows style, start by that. 46918 new_path=`cmd //c echo $new_path` 46919 46920 input_path="$new_path" 46921 # Check if we need to convert this using DOS-style short mode. If the path 46922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46923 # take no chances and rewrite it. 46924 # Note: m4 eats our [], so we need to use [ and ] instead. 46925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46926 if test "x$has_forbidden_chars" != x; then 46927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46928 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46929 fi 46930 46931 # Output is in $new_path 46932 46933 windows_path="$new_path" 46934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46935 unix_path=`$CYGPATH -u "$windows_path"` 46936 new_path="$unix_path" 46937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46938 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46939 new_path="$unix_path" 46940 fi 46941 46942 # remove trailing .exe if any 46943 new_path="${new_path/%.exe/}" 46944 46945 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46946 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46947 fi 46948 46949 else 46950 # We're on a unix platform. Hooray! :) 46951 # First separate the path from the arguments. This will split at the first 46952 # space. 46953 complete="$BUILD_STRIP" 46954 path="${complete%% *}" 46955 tmp="$complete EOL" 46956 arguments="${tmp#* }" 46957 46958 # Cannot rely on the command "which" here since it doesn't always work. 46959 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46960 if test -z "$is_absolute_path"; then 46961 # Path to executable is not absolute. Find it. 46962 IFS_save="$IFS" 46963 IFS=: 46964 for p in $PATH; do 46965 if test -f "$p/$path" && test -x "$p/$path"; then 46966 new_path="$p/$path" 46967 break 46968 fi 46969 done 46970 IFS="$IFS_save" 46971 else 46972 # This is an absolute path, we can use it without further modifications. 46973 new_path="$path" 46974 fi 46975 46976 if test "x$new_path" = x; then 46977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46978 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46979 has_space=`$ECHO "$complete" | $GREP " "` 46980 if test "x$has_space" != x; then 46981 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46982 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46983 fi 46984 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46985 fi 46986 fi 46987 46988 # Now join together the path and the arguments once again 46989 if test "x$arguments" != xEOL; then 46990 new_complete="$new_path ${arguments% *}" 46991 else 46992 new_complete="$new_path" 46993 fi 46994 46995 if test "x$complete" != "x$new_complete"; then 46996 BUILD_STRIP="$new_complete" 46997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 46998 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 46999 fi 47000 fi 47001 47002 # Assume the C compiler is the assembler 47003 BUILD_AS="$BUILD_CC -c" 47004 # Just like for the target compiler, use the compiler as linker 47005 BUILD_LD="$BUILD_CC" 47006 BUILD_LDCXX="$BUILD_CXX" 47007 47008 PATH="$OLDPATH" 47009 47010 47011 COMPILER=$BUILD_CC 47012 COMPILER_NAME=BuildC 47013 47014 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47015 # cc -V output typically looks like 47016 # cc: Sun C 5.12 Linux_i386 2011/11/16 47017 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 47018 # Check that this is likely to be the Solaris Studio cc. 47019 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 47020 if test $? -ne 0; then 47021 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47022 { $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 47023 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47024 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47025 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47026 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47027 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47028 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47029 fi 47030 # Remove usage instructions (if present), and 47031 # collapse compiler output into a single line 47032 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47033 $SED -e 's/ *[Uu]sage:.*//'` 47034 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47035 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 47036 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47037 # xlc -qversion output typically looks like 47038 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 47039 # Version: 11.01.0000.0015 47040 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 47041 # Check that this is likely to be the IBM XL C compiler. 47042 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 47043 if test $? -ne 0; then 47044 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47045 { $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 47046 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47047 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47048 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47049 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47050 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47051 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47052 fi 47053 # Collapse compiler output into a single line 47054 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47055 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47056 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47057 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47058 # There is no specific version flag, but all output starts with a version string. 47059 # First line typically looks something like: 47060 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47061 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47062 # Check that this is likely to be Microsoft CL.EXE. 47063 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47064 if test $? -ne 0; then 47065 { $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 47066 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47067 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47068 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47069 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47070 fi 47071 # Collapse compiler output into a single line 47072 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47073 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47074 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47075 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47076 # gcc --version output typically looks like 47077 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47078 # Copyright (C) 2013 Free Software Foundation, Inc. 47079 # This is free software; see the source for copying conditions. There is NO 47080 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47081 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47082 # Check that this is likely to be GCC. 47083 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47084 if test $? -ne 0; then 47085 { $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 47086 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47087 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47088 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47089 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47090 fi 47091 # Remove Copyright and legalese from version string, and 47092 # collapse into a single line 47093 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47094 $SED -e 's/ *Copyright .*//'` 47095 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47096 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47097 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47098 # clang --version output typically looks like 47099 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47100 # clang version 3.3 (tags/RELEASE_33/final) 47101 # or 47102 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47103 # Target: x86_64-pc-linux-gnu 47104 # Thread model: posix 47105 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47106 # Check that this is likely to be clang 47107 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 47108 if test $? -ne 0; then 47109 { $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 47110 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47111 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47112 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47113 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47114 fi 47115 # Collapse compiler output into a single line 47116 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47117 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47118 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 47119 else 47120 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 47121 fi 47122 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 47123 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 47124 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 47125 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 47126 47127 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 47128 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 47129 47130 47131 COMPILER=$BUILD_CXX 47132 COMPILER_NAME=BuildC++ 47133 47134 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47135 # cc -V output typically looks like 47136 # cc: Sun C 5.12 Linux_i386 2011/11/16 47137 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 47138 # Check that this is likely to be the Solaris Studio cc. 47139 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 47140 if test $? -ne 0; then 47141 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47142 { $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 47143 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47144 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47145 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47146 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47147 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47148 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47149 fi 47150 # Remove usage instructions (if present), and 47151 # collapse compiler output into a single line 47152 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47153 $SED -e 's/ *[Uu]sage:.*//'` 47154 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47155 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 47156 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 47157 # xlc -qversion output typically looks like 47158 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 47159 # Version: 11.01.0000.0015 47160 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 47161 # Check that this is likely to be the IBM XL C compiler. 47162 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 47163 if test $? -ne 0; then 47164 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47165 { $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 47166 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47167 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47168 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47169 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 47170 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 47171 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47172 fi 47173 # Collapse compiler output into a single line 47174 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47175 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47176 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 47177 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47178 # There is no specific version flag, but all output starts with a version string. 47179 # First line typically looks something like: 47180 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 47181 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47182 # Check that this is likely to be Microsoft CL.EXE. 47183 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 47184 if test $? -ne 0; then 47185 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 47186 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47187 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47188 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47189 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47190 fi 47191 # Collapse compiler output into a single line 47192 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47193 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47194 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 47195 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 47196 # gcc --version output typically looks like 47197 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 47198 # Copyright (C) 2013 Free Software Foundation, Inc. 47199 # This is free software; see the source for copying conditions. There is NO 47200 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 47201 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47202 # Check that this is likely to be GCC. 47203 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 47204 if test $? -ne 0; then 47205 { $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 47206 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47207 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 47208 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 47209 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47210 fi 47211 # Remove Copyright and legalese from version string, and 47212 # collapse into a single line 47213 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47214 $SED -e 's/ *Copyright .*//'` 47215 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47216 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 47217 elif test "x$TOOLCHAIN_TYPE" = xclang; then 47218 # clang --version output typically looks like 47219 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 47220 # clang version 3.3 (tags/RELEASE_33/final) 47221 # or 47222 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 47223 # Target: x86_64-pc-linux-gnu 47224 # Thread model: posix 47225 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 47226 # Check that this is likely to be clang 47227 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 47228 if test $? -ne 0; then 47229 { $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 47230 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 47231 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 47232 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 47233 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 47234 fi 47235 # Collapse compiler output into a single line 47236 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 47237 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 47238 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 47239 else 47240 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 47241 fi 47242 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 47243 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 47244 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 47245 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 47246 47247 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 47248 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 47249 47250 47251 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 47252 { $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 47253 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 47254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 47255 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 47256 fi 47257 47258 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 47259 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 47260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 47261 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47262 fi 47263 47264 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 47265 { $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 47266 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47267 fi 47268 47269 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$BUILD_CC_VERSION_NUMBER"` 47270 47271 else 47272 # If we are not cross compiling, use the normal target compilers for 47273 # building the build platform executables. 47274 BUILD_CC="$CC" 47275 BUILD_CXX="$CXX" 47276 BUILD_LD="$LD" 47277 BUILD_LDCXX="$LDCXX" 47278 BUILD_NM="$NM" 47279 BUILD_AS="$AS" 47280 BUILD_OBJCOPY="$OBJCOPY" 47281 BUILD_STRIP="$STRIP" 47282 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 47283 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 47284 BUILD_AR="$AR" 47285 47286 47287 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 47288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 47289 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 47290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 47291 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 47292 fi 47293 47294 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 47295 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 47296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 47297 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47298 fi 47299 47300 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 47301 { $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 47302 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 47303 fi 47304 47305 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION_NUMBER"` 47306 47307 fi 47308 47309 47310 47311 47312 47313 47314 47315 47316 47317 47318 47319 47320 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47321 # For hotspot, we need these in Windows mixed path, 47322 # so rewrite them all. Need added .exe suffix. 47323 HOTSPOT_CXX="$CXX.exe" 47324 HOTSPOT_LD="$LD.exe" 47325 HOTSPOT_MT="$MT.exe" 47326 HOTSPOT_RC="$RC.exe" 47327 47328 unix_path="$HOTSPOT_CXX" 47329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47330 windows_path=`$CYGPATH -m "$unix_path"` 47331 HOTSPOT_CXX="$windows_path" 47332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47333 windows_path=`cmd //c echo $unix_path` 47334 HOTSPOT_CXX="$windows_path" 47335 fi 47336 47337 47338 unix_path="$HOTSPOT_LD" 47339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47340 windows_path=`$CYGPATH -m "$unix_path"` 47341 HOTSPOT_LD="$windows_path" 47342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47343 windows_path=`cmd //c echo $unix_path` 47344 HOTSPOT_LD="$windows_path" 47345 fi 47346 47347 47348 unix_path="$HOTSPOT_MT" 47349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47350 windows_path=`$CYGPATH -m "$unix_path"` 47351 HOTSPOT_MT="$windows_path" 47352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47353 windows_path=`cmd //c echo $unix_path` 47354 HOTSPOT_MT="$windows_path" 47355 fi 47356 47357 47358 unix_path="$HOTSPOT_RC" 47359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47360 windows_path=`$CYGPATH -m "$unix_path"` 47361 HOTSPOT_RC="$windows_path" 47362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47363 windows_path=`cmd //c echo $unix_path` 47364 HOTSPOT_RC="$windows_path" 47365 fi 47366 47367 47368 47369 else 47370 HOTSPOT_CXX="$CXX" 47371 HOTSPOT_LD="$LD" 47372 fi 47373 47374 47375 47376 if test "x$TOOLCHAIN_TYPE" = xclang; then 47377 USE_CLANG=true 47378 fi 47379 47380 47381 47382 47383 47384 # The package path is used only on macosx? 47385 # FIXME: clean this up, and/or move it elsewhere. 47386 PACKAGE_PATH=/opt/local 47387 47388 47389 # Check for extra potential brokenness. 47390 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47391 # On Windows, double-check that we got the right compiler. 47392 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 47393 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 47394 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 47395 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 47396 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 47397 fi 47398 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 47399 if test "x$COMPILER_CPU_TEST" != "xx64"; then 47400 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 47401 fi 47402 fi 47403 fi 47404 47405 if test "x$TOOLCHAIN_TYPE" = xgcc; then 47406 # If this is a --hash-style=gnu system, use --hash-style=both, why? 47407 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 47408 # This is later checked when setting flags. 47409 47410 # "-Og" suppported for GCC 4.8 and later 47411 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 47412 47413 47414 47415 47416 47417 47418 47419 47420 47421 47422 47423 47424 47425 47426 47427 47428 47429 47430 47431 47432 47433 47434 47435 47436 47437 47438 47439 47440 47441 47442 47443 47444 47445 47446 47447 47448 47449 47450 47451 47452 47453 47454 47455 47456 47457 47458 47459 # Execute function body 47460 47461 47462 47463 47464 47465 47466 47467 47468 47469 47470 47471 47472 47473 47474 47475 47476 47477 47478 47479 47480 47481 47482 47483 47484 47485 47486 47487 47488 47489 47490 47491 47492 47493 47494 47495 47496 47497 47498 47499 47500 47501 47502 47503 47504 47505 47506 47507 47508 # Execute function body 47509 47510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47511 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47512 supports=yes 47513 47514 saved_cflags="$CFLAGS" 47515 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 47516 ac_ext=c 47517 ac_cpp='$CPP $CPPFLAGS' 47518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47520 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47521 47522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47523 /* end confdefs.h. */ 47524 int i; 47525 _ACEOF 47526 if ac_fn_c_try_compile "$LINENO"; then : 47527 47528 else 47529 supports=no 47530 fi 47531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47532 ac_ext=cpp 47533 ac_cpp='$CXXCPP $CPPFLAGS' 47534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47537 47538 CFLAGS="$saved_cflags" 47539 47540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47541 $as_echo "$supports" >&6; } 47542 if test "x$supports" = "xyes" ; then 47543 : 47544 C_COMP_SUPPORTS="yes" 47545 else 47546 : 47547 C_COMP_SUPPORTS="no" 47548 fi 47549 47550 47551 47552 47553 47554 47555 47556 47557 47558 47559 47560 47561 47562 47563 47564 47565 47566 47567 47568 47569 47570 47571 47572 47573 47574 47575 47576 47577 47578 47579 47580 47581 47582 47583 47584 47585 47586 47587 47588 47589 47590 47591 47592 47593 47594 47595 47596 47597 47598 47599 47600 47601 47602 47603 47604 47605 47606 47607 47608 # Execute function body 47609 47610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47611 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47612 supports=yes 47613 47614 saved_cxxflags="$CXXFLAGS" 47615 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 47616 ac_ext=cpp 47617 ac_cpp='$CXXCPP $CPPFLAGS' 47618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47621 47622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47623 /* end confdefs.h. */ 47624 int i; 47625 _ACEOF 47626 if ac_fn_cxx_try_compile "$LINENO"; then : 47627 47628 else 47629 supports=no 47630 fi 47631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47632 ac_ext=cpp 47633 ac_cpp='$CXXCPP $CPPFLAGS' 47634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47637 47638 CXXFLAGS="$saved_cxxflags" 47639 47640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47641 $as_echo "$supports" >&6; } 47642 if test "x$supports" = "xyes" ; then 47643 : 47644 CXX_COMP_SUPPORTS="yes" 47645 else 47646 : 47647 CXX_COMP_SUPPORTS="no" 47648 fi 47649 47650 47651 47652 47653 47654 47655 47656 47657 47658 47659 47660 47661 47662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 47663 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 47664 supports=no 47665 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 47666 47667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47668 $as_echo "$supports" >&6; } 47669 if test "x$supports" = "xyes" ; then 47670 : 47671 HAS_CFLAG_OPTIMIZE_DEBUG=true 47672 else 47673 : 47674 HAS_CFLAG_OPTIMIZE_DEBUG=false 47675 fi 47676 47677 47678 47679 47680 47681 47682 47683 # "-z relro" supported in GNU binutils 2.17 and later 47684 LINKER_RELRO_FLAG="-Wl,-z,relro" 47685 47686 47687 47688 47689 47690 47691 47692 47693 47694 47695 47696 47697 47698 47699 47700 47701 47702 47703 47704 47705 47706 47707 47708 47709 47710 47711 47712 47713 47714 47715 47716 47717 47718 47719 47720 47721 47722 47723 47724 47725 47726 47727 47728 47729 47730 47731 47732 # Execute function body 47733 47734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 47735 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 47736 supports=yes 47737 47738 saved_ldflags="$LDFLAGS" 47739 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 47740 ac_ext=c 47741 ac_cpp='$CPP $CPPFLAGS' 47742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47744 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47745 47746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47747 /* end confdefs.h. */ 47748 47749 int 47750 main () 47751 { 47752 47753 ; 47754 return 0; 47755 } 47756 _ACEOF 47757 if ac_fn_c_try_link "$LINENO"; then : 47758 47759 else 47760 supports=no 47761 fi 47762 rm -f core conftest.err conftest.$ac_objext \ 47763 conftest$ac_exeext conftest.$ac_ext 47764 ac_ext=cpp 47765 ac_cpp='$CXXCPP $CPPFLAGS' 47766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47769 47770 LDFLAGS="$saved_ldflags" 47771 47772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47773 $as_echo "$supports" >&6; } 47774 if test "x$supports" = "xyes" ; then 47775 : 47776 HAS_LINKER_RELRO=true 47777 else 47778 : 47779 HAS_LINKER_RELRO=false 47780 fi 47781 47782 47783 47784 47785 47786 47787 47788 47789 47790 47791 47792 47793 47794 # "-z now" supported in GNU binutils 2.11 and later 47795 LINKER_NOW_FLAG="-Wl,-z,now" 47796 47797 47798 47799 47800 47801 47802 47803 47804 47805 47806 47807 47808 47809 47810 47811 47812 47813 47814 47815 47816 47817 47818 47819 47820 47821 47822 47823 47824 47825 47826 47827 47828 47829 47830 47831 47832 47833 47834 47835 47836 47837 47838 47839 47840 47841 47842 47843 # Execute function body 47844 47845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 47846 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 47847 supports=yes 47848 47849 saved_ldflags="$LDFLAGS" 47850 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 47851 ac_ext=c 47852 ac_cpp='$CPP $CPPFLAGS' 47853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47855 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47856 47857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47858 /* end confdefs.h. */ 47859 47860 int 47861 main () 47862 { 47863 47864 ; 47865 return 0; 47866 } 47867 _ACEOF 47868 if ac_fn_c_try_link "$LINENO"; then : 47869 47870 else 47871 supports=no 47872 fi 47873 rm -f core conftest.err conftest.$ac_objext \ 47874 conftest$ac_exeext conftest.$ac_ext 47875 ac_ext=cpp 47876 ac_cpp='$CXXCPP $CPPFLAGS' 47877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47880 47881 LDFLAGS="$saved_ldflags" 47882 47883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47884 $as_echo "$supports" >&6; } 47885 if test "x$supports" = "xyes" ; then 47886 : 47887 HAS_LINKER_NOW=true 47888 else 47889 : 47890 HAS_LINKER_NOW=false 47891 fi 47892 47893 47894 47895 47896 47897 47898 47899 47900 47901 47902 47903 47904 fi 47905 47906 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 47907 # in executable.' 47908 USING_BROKEN_SUSE_LD=no 47909 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 47910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 47911 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 47912 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 47913 $ECHO "int main() { }" > main.c 47914 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 47915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47916 $as_echo "no" >&6; } 47917 USING_BROKEN_SUSE_LD=no 47918 else 47919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47920 $as_echo "yes" >&6; } 47921 USING_BROKEN_SUSE_LD=yes 47922 fi 47923 $RM version-script.map main.c a.out 47924 fi 47925 47926 47927 # Setup hotspot lecagy names for toolchains 47928 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 47929 if test "x$TOOLCHAIN_TYPE" = xclang; then 47930 HOTSPOT_TOOLCHAIN_TYPE=gcc 47931 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47932 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 47933 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47934 HOTSPOT_TOOLCHAIN_TYPE=visCPP 47935 fi 47936 47937 47938 47939 # Setup the JTReg Regression Test Harness. 47940 47941 47942 # Check whether --with-jtreg was given. 47943 if test "${with_jtreg+set}" = set; then : 47944 withval=$with_jtreg; 47945 else 47946 with_jtreg=no 47947 fi 47948 47949 47950 if test "x$with_jtreg" = xno; then 47951 # jtreg disabled 47952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 47953 $as_echo_n "checking for jtreg... " >&6; } 47954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47955 $as_echo "no" >&6; } 47956 else 47957 if test "x$with_jtreg" != xyes; then 47958 # with path specified. 47959 JT_HOME="$with_jtreg" 47960 fi 47961 47962 if test "x$JT_HOME" != x; then 47963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 47964 $as_echo_n "checking for jtreg... " >&6; } 47965 47966 # use JT_HOME enviroment var. 47967 47968 # Only process if variable expands to non-empty 47969 47970 if test "x$JT_HOME" != x; then 47971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47972 47973 # Input might be given as Windows format, start by converting to 47974 # unix format. 47975 path="$JT_HOME" 47976 new_path=`$CYGPATH -u "$path"` 47977 47978 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47979 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47980 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47981 # "foo.exe" is OK but "foo" is an error. 47982 # 47983 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47984 # It is also a way to make sure we got the proper file name for the real test later on. 47985 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47986 if test "x$test_shortpath" = x; then 47987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 47988 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 47989 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 47990 fi 47991 47992 # Call helper function which possibly converts this using DOS-style short mode. 47993 # If so, the updated path is stored in $new_path. 47994 47995 input_path="$new_path" 47996 # Check if we need to convert this using DOS-style short mode. If the path 47997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47998 # take no chances and rewrite it. 47999 # Note: m4 eats our [], so we need to use [ and ] instead. 48000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48001 if test "x$has_forbidden_chars" != x; then 48002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48003 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48004 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48005 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48006 # Going to short mode and back again did indeed matter. Since short mode is 48007 # case insensitive, let's make it lowercase to improve readability. 48008 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48009 # Now convert it back to Unix-style (cygpath) 48010 input_path=`$CYGPATH -u "$shortmode_path"` 48011 new_path="$input_path" 48012 fi 48013 fi 48014 48015 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48016 if test "x$test_cygdrive_prefix" = x; then 48017 # As a simple fix, exclude /usr/bin since it's not a real path. 48018 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48019 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48020 # a path prefixed by /cygdrive for fixpath to work. 48021 new_path="$CYGWIN_ROOT_PATH$input_path" 48022 fi 48023 fi 48024 48025 48026 if test "x$path" != "x$new_path"; then 48027 JT_HOME="$new_path" 48028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 48029 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 48030 fi 48031 48032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48033 48034 path="$JT_HOME" 48035 has_colon=`$ECHO $path | $GREP ^.:` 48036 new_path="$path" 48037 if test "x$has_colon" = x; then 48038 # Not in mixed or Windows style, start by that. 48039 new_path=`cmd //c echo $path` 48040 fi 48041 48042 48043 input_path="$new_path" 48044 # Check if we need to convert this using DOS-style short mode. If the path 48045 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48046 # take no chances and rewrite it. 48047 # Note: m4 eats our [], so we need to use [ and ] instead. 48048 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48049 if test "x$has_forbidden_chars" != x; then 48050 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48051 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48052 fi 48053 48054 48055 windows_path="$new_path" 48056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48057 unix_path=`$CYGPATH -u "$windows_path"` 48058 new_path="$unix_path" 48059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48060 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48061 new_path="$unix_path" 48062 fi 48063 48064 if test "x$path" != "x$new_path"; then 48065 JT_HOME="$new_path" 48066 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 48067 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 48068 fi 48069 48070 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48071 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48072 48073 else 48074 # We're on a unix platform. Hooray! :) 48075 path="$JT_HOME" 48076 has_space=`$ECHO "$path" | $GREP " "` 48077 if test "x$has_space" != x; then 48078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 48079 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 48080 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48081 fi 48082 48083 # Use eval to expand a potential ~ 48084 eval path="$path" 48085 if test ! -f "$path" && test ! -d "$path"; then 48086 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 48087 fi 48088 48089 if test -d "$path"; then 48090 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 48091 else 48092 dir="`$DIRNAME "$path"`" 48093 base="`$BASENAME "$path"`" 48094 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 48095 fi 48096 fi 48097 fi 48098 48099 48100 # jtreg win32 script works for everybody 48101 JTREGEXE="$JT_HOME/bin/jtreg" 48102 48103 if test ! -f "$JTREGEXE"; then 48104 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 48105 fi 48106 48107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48108 $as_echo "$JTREGEXE" >&6; } 48109 else 48110 # try to find jtreg on path 48111 48112 48113 48114 # Publish this variable in the help. 48115 48116 48117 if [ -z "${JTREGEXE+x}" ]; then 48118 # The variable is not set by user, try to locate tool using the code snippet 48119 for ac_prog in jtreg 48120 do 48121 # Extract the first word of "$ac_prog", so it can be a program name with args. 48122 set dummy $ac_prog; ac_word=$2 48123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48124 $as_echo_n "checking for $ac_word... " >&6; } 48125 if ${ac_cv_path_JTREGEXE+:} false; then : 48126 $as_echo_n "(cached) " >&6 48127 else 48128 case $JTREGEXE in 48129 [\\/]* | ?:[\\/]*) 48130 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48131 ;; 48132 *) 48133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48134 for as_dir in $PATH 48135 do 48136 IFS=$as_save_IFS 48137 test -z "$as_dir" && as_dir=. 48138 for ac_exec_ext in '' $ac_executable_extensions; do 48139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48140 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48142 break 2 48143 fi 48144 done 48145 done 48146 IFS=$as_save_IFS 48147 48148 ;; 48149 esac 48150 fi 48151 JTREGEXE=$ac_cv_path_JTREGEXE 48152 if test -n "$JTREGEXE"; then 48153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48154 $as_echo "$JTREGEXE" >&6; } 48155 else 48156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48157 $as_echo "no" >&6; } 48158 fi 48159 48160 48161 test -n "$JTREGEXE" && break 48162 done 48163 48164 else 48165 # The variable is set, but is it from the command line or the environment? 48166 48167 # Try to remove the string !JTREGEXE! from our list. 48168 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 48169 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48170 # If it failed, the variable was not from the command line. Ignore it, 48171 # but warn the user (except for BASH, which is always set by the calling BASH). 48172 if test "xJTREGEXE" != xBASH; then 48173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 48174 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 48175 fi 48176 # Try to locate tool using the code snippet 48177 for ac_prog in jtreg 48178 do 48179 # Extract the first word of "$ac_prog", so it can be a program name with args. 48180 set dummy $ac_prog; ac_word=$2 48181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48182 $as_echo_n "checking for $ac_word... " >&6; } 48183 if ${ac_cv_path_JTREGEXE+:} false; then : 48184 $as_echo_n "(cached) " >&6 48185 else 48186 case $JTREGEXE in 48187 [\\/]* | ?:[\\/]*) 48188 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48189 ;; 48190 *) 48191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48192 for as_dir in $PATH 48193 do 48194 IFS=$as_save_IFS 48195 test -z "$as_dir" && as_dir=. 48196 for ac_exec_ext in '' $ac_executable_extensions; do 48197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48198 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48200 break 2 48201 fi 48202 done 48203 done 48204 IFS=$as_save_IFS 48205 48206 ;; 48207 esac 48208 fi 48209 JTREGEXE=$ac_cv_path_JTREGEXE 48210 if test -n "$JTREGEXE"; then 48211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48212 $as_echo "$JTREGEXE" >&6; } 48213 else 48214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48215 $as_echo "no" >&6; } 48216 fi 48217 48218 48219 test -n "$JTREGEXE" && break 48220 done 48221 48222 else 48223 # If it succeeded, then it was overridden by the user. We will use it 48224 # for the tool. 48225 48226 # First remove it from the list of overridden variables, so we can test 48227 # for unknown variables in the end. 48228 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48229 48230 # Check if we try to supply an empty value 48231 if test "x$JTREGEXE" = x; then 48232 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 48233 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 48234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 48235 $as_echo_n "checking for JTREGEXE... " >&6; } 48236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 48237 $as_echo "disabled" >&6; } 48238 else 48239 # Check if the provided tool contains a complete path. 48240 tool_specified="$JTREGEXE" 48241 tool_basename="${tool_specified##*/}" 48242 if test "x$tool_basename" = "x$tool_specified"; then 48243 # A command without a complete path is provided, search $PATH. 48244 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 48245 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 48246 # Extract the first word of "$tool_basename", so it can be a program name with args. 48247 set dummy $tool_basename; ac_word=$2 48248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48249 $as_echo_n "checking for $ac_word... " >&6; } 48250 if ${ac_cv_path_JTREGEXE+:} false; then : 48251 $as_echo_n "(cached) " >&6 48252 else 48253 case $JTREGEXE in 48254 [\\/]* | ?:[\\/]*) 48255 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 48256 ;; 48257 *) 48258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48259 for as_dir in $PATH 48260 do 48261 IFS=$as_save_IFS 48262 test -z "$as_dir" && as_dir=. 48263 for ac_exec_ext in '' $ac_executable_extensions; do 48264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48265 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 48266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48267 break 2 48268 fi 48269 done 48270 done 48271 IFS=$as_save_IFS 48272 48273 ;; 48274 esac 48275 fi 48276 JTREGEXE=$ac_cv_path_JTREGEXE 48277 if test -n "$JTREGEXE"; then 48278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 48279 $as_echo "$JTREGEXE" >&6; } 48280 else 48281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48282 $as_echo "no" >&6; } 48283 fi 48284 48285 48286 if test "x$JTREGEXE" = x; then 48287 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48288 fi 48289 else 48290 # Otherwise we believe it is a complete path. Use it as it is. 48291 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 48292 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 48293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 48294 $as_echo_n "checking for JTREGEXE... " >&6; } 48295 if test ! -x "$tool_specified"; then 48296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48297 $as_echo "not found" >&6; } 48298 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 48299 fi 48300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48301 $as_echo "$tool_specified" >&6; } 48302 fi 48303 fi 48304 fi 48305 48306 fi 48307 48308 48309 48310 if test "x$JTREGEXE" = x; then 48311 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 48312 fi 48313 48314 48315 JT_HOME="`$DIRNAME $JTREGEXE`" 48316 fi 48317 fi 48318 48319 48320 48321 48322 48323 48324 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 48325 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 48326 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 48327 # commands produced by the link step (currently AIX only) 48328 if test "x$TOOLCHAIN_TYPE" = xxlc; then 48329 COMPILER_TARGET_BITS_FLAG="-q" 48330 COMPILER_COMMAND_FILE_FLAG="-f" 48331 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 48332 else 48333 COMPILER_TARGET_BITS_FLAG="-m" 48334 COMPILER_COMMAND_FILE_FLAG="@" 48335 COMPILER_BINDCMD_FILE_FLAG="" 48336 48337 # The solstudio linker does not support @-files. 48338 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48339 COMPILER_COMMAND_FILE_FLAG= 48340 fi 48341 48342 # Check if @file is supported by gcc 48343 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 48345 $as_echo_n "checking if @file is supported by gcc... " >&6; } 48346 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 48347 $ECHO "" "--version" > command.file 48348 if $CXX @command.file 2>&5 >&5; then 48349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48350 $as_echo "yes" >&6; } 48351 COMPILER_COMMAND_FILE_FLAG="@" 48352 else 48353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48354 $as_echo "no" >&6; } 48355 COMPILER_COMMAND_FILE_FLAG= 48356 fi 48357 $RM command.file 48358 fi 48359 fi 48360 48361 48362 48363 48364 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 48365 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48366 ARFLAGS="-r" 48367 elif test "x$OPENJDK_TARGET_OS" = xaix; then 48368 ARFLAGS="-X64" 48369 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 48370 # lib.exe is used as AR to create static libraries. 48371 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 48372 else 48373 ARFLAGS="" 48374 fi 48375 48376 48377 ## Setup strip. 48378 # FIXME: should this really be per platform, or should it be per toolchain type? 48379 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 48380 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 48381 if test "x$OPENJDK_TARGET_OS" = xlinux; then 48382 STRIPFLAGS="-g" 48383 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 48384 STRIPFLAGS="-x" 48385 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 48386 STRIPFLAGS="-S" 48387 elif test "x$OPENJDK_TARGET_OS" = xaix; then 48388 STRIPFLAGS="-X32_64" 48389 fi 48390 48391 48392 48393 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48394 CC_OUT_OPTION=-Fo 48395 EXE_OUT_OPTION=-out: 48396 LD_OUT_OPTION=-out: 48397 AR_OUT_OPTION=-out: 48398 else 48399 # The option used to specify the target .o,.a or .so file. 48400 # When compiling, how to specify the to be created object file. 48401 CC_OUT_OPTION='-o$(SPACE)' 48402 # When linking, how to specify the to be created executable. 48403 EXE_OUT_OPTION='-o$(SPACE)' 48404 # When linking, how to specify the to be created dynamically linkable library. 48405 LD_OUT_OPTION='-o$(SPACE)' 48406 # When archiving, how to specify the to be create static archive for object files. 48407 AR_OUT_OPTION='rcs$(SPACE)' 48408 fi 48409 48410 48411 48412 48413 48414 # On Windows, we need to set RC flags. 48415 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48416 RC_FLAGS="-nologo -l0x409" 48417 JVM_RCFLAGS="-nologo" 48418 if test "x$DEBUG_LEVEL" = xrelease; then 48419 RC_FLAGS="$RC_FLAGS -DNDEBUG" 48420 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 48421 fi 48422 48423 # The version variables used to create RC_FLAGS may be overridden 48424 # in a custom configure script, or possibly the command line. 48425 # Let those variables be expanded at make time in spec.gmk. 48426 # The \$ are escaped to the shell, and the $(...) variables 48427 # are evaluated by make. 48428 RC_FLAGS="$RC_FLAGS \ 48429 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 48430 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 48431 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 48432 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 48433 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 48434 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 48435 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 48436 48437 JVM_RCFLAGS="$JVM_RCFLAGS \ 48438 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 48439 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 48440 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 48441 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 48442 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 48443 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 48444 -D\"HS_FNAME=jvm.dll\" \ 48445 -D\"HS_INTERNAL_NAME=jvm\"" 48446 fi 48447 48448 48449 48450 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48451 # silence copyright notice and other headers. 48452 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 48453 fi 48454 48455 48456 # Now we can test some aspects on the target using configure macros. 48457 48458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 48459 $as_echo_n "checking for ANSI C header files... " >&6; } 48460 if ${ac_cv_header_stdc+:} false; then : 48461 $as_echo_n "(cached) " >&6 48462 else 48463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48464 /* end confdefs.h. */ 48465 #include <stdlib.h> 48466 #include <stdarg.h> 48467 #include <string.h> 48468 #include <float.h> 48469 48470 int 48471 main () 48472 { 48473 48474 ; 48475 return 0; 48476 } 48477 _ACEOF 48478 if ac_fn_cxx_try_compile "$LINENO"; then : 48479 ac_cv_header_stdc=yes 48480 else 48481 ac_cv_header_stdc=no 48482 fi 48483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48484 48485 if test $ac_cv_header_stdc = yes; then 48486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 48487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48488 /* end confdefs.h. */ 48489 #include <string.h> 48490 48491 _ACEOF 48492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48493 $EGREP "memchr" >/dev/null 2>&1; then : 48494 48495 else 48496 ac_cv_header_stdc=no 48497 fi 48498 rm -f conftest* 48499 48500 fi 48501 48502 if test $ac_cv_header_stdc = yes; then 48503 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 48504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48505 /* end confdefs.h. */ 48506 #include <stdlib.h> 48507 48508 _ACEOF 48509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 48510 $EGREP "free" >/dev/null 2>&1; then : 48511 48512 else 48513 ac_cv_header_stdc=no 48514 fi 48515 rm -f conftest* 48516 48517 fi 48518 48519 if test $ac_cv_header_stdc = yes; then 48520 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 48521 if test "$cross_compiling" = yes; then : 48522 : 48523 else 48524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48525 /* end confdefs.h. */ 48526 #include <ctype.h> 48527 #include <stdlib.h> 48528 #if ((' ' & 0x0FF) == 0x020) 48529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 48530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 48531 #else 48532 # define ISLOWER(c) \ 48533 (('a' <= (c) && (c) <= 'i') \ 48534 || ('j' <= (c) && (c) <= 'r') \ 48535 || ('s' <= (c) && (c) <= 'z')) 48536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 48537 #endif 48538 48539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 48540 int 48541 main () 48542 { 48543 int i; 48544 for (i = 0; i < 256; i++) 48545 if (XOR (islower (i), ISLOWER (i)) 48546 || toupper (i) != TOUPPER (i)) 48547 return 2; 48548 return 0; 48549 } 48550 _ACEOF 48551 if ac_fn_cxx_try_run "$LINENO"; then : 48552 48553 else 48554 ac_cv_header_stdc=no 48555 fi 48556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48557 conftest.$ac_objext conftest.beam conftest.$ac_ext 48558 fi 48559 48560 fi 48561 fi 48562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 48563 $as_echo "$ac_cv_header_stdc" >&6; } 48564 if test $ac_cv_header_stdc = yes; then 48565 48566 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 48567 48568 fi 48569 48570 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 48571 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 48572 inttypes.h stdint.h unistd.h 48573 do : 48574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 48575 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 48576 " 48577 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 48578 cat >>confdefs.h <<_ACEOF 48579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 48580 _ACEOF 48581 48582 fi 48583 48584 done 48585 48586 48587 48588 ############################################################################### 48589 # 48590 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 48591 # (The JVM can use 32 or 64 bit Java pointers but that decision 48592 # is made at runtime.) 48593 # 48594 48595 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 48596 # Always specify -m flag on Solaris 48597 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 48598 48599 # When we add flags to the "official" CFLAGS etc, we need to 48600 # keep track of these additions in ADDED_CFLAGS etc. These 48601 # will later be checked to make sure only controlled additions 48602 # have been made to CFLAGS etc. 48603 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48604 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48605 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48606 48607 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48608 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48609 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48610 48611 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48612 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48613 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48614 48615 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48616 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48617 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48618 48619 elif test "x$COMPILE_TYPE" = xreduced; then 48620 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 48621 # Specify -m if running reduced on unix platforms 48622 48623 # When we add flags to the "official" CFLAGS etc, we need to 48624 # keep track of these additions in ADDED_CFLAGS etc. These 48625 # will later be checked to make sure only controlled additions 48626 # have been made to CFLAGS etc. 48627 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48628 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48629 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48630 48631 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48632 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48633 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48634 48635 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48636 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48637 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48638 48639 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48640 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48641 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48642 48643 fi 48644 fi 48645 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48646 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48647 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48648 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48649 fi 48650 48651 # Make compilation sanity check 48652 for ac_header in stdio.h 48653 do : 48654 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 48655 if test "x$ac_cv_header_stdio_h" = xyes; then : 48656 cat >>confdefs.h <<_ACEOF 48657 #define HAVE_STDIO_H 1 48658 _ACEOF 48659 48660 else 48661 48662 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 48663 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 48664 if test "x$COMPILE_TYPE" = xreduced; then 48665 48666 # Print a helpful message on how to acquire the necessary build dependency. 48667 # reduced is the help tag: freetype, cups, alsa etc 48668 MISSING_DEPENDENCY=reduced 48669 48670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48671 cygwin_help $MISSING_DEPENDENCY 48672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48673 msys_help $MISSING_DEPENDENCY 48674 else 48675 PKGHANDLER_COMMAND= 48676 48677 case $PKGHANDLER in 48678 apt-get) 48679 apt_help $MISSING_DEPENDENCY ;; 48680 yum) 48681 yum_help $MISSING_DEPENDENCY ;; 48682 port) 48683 port_help $MISSING_DEPENDENCY ;; 48684 pkgutil) 48685 pkgutil_help $MISSING_DEPENDENCY ;; 48686 pkgadd) 48687 pkgadd_help $MISSING_DEPENDENCY ;; 48688 esac 48689 48690 if test "x$PKGHANDLER_COMMAND" != x; then 48691 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48692 fi 48693 fi 48694 48695 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 48696 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 48697 elif test "x$COMPILE_TYPE" = xcross; then 48698 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 48699 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 48700 fi 48701 as_fn_error $? "Cannot continue." "$LINENO" 5 48702 48703 fi 48704 48705 done 48706 48707 48708 # The cast to long int works around a bug in the HP C Compiler 48709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 48710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 48711 # This bug is HP SR number 8606223364. 48712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 48713 $as_echo_n "checking size of int *... " >&6; } 48714 if ${ac_cv_sizeof_int_p+:} false; then : 48715 $as_echo_n "(cached) " >&6 48716 else 48717 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 48718 48719 else 48720 if test "$ac_cv_type_int_p" = yes; then 48721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48723 as_fn_error 77 "cannot compute sizeof (int *) 48724 See \`config.log' for more details" "$LINENO" 5; } 48725 else 48726 ac_cv_sizeof_int_p=0 48727 fi 48728 fi 48729 48730 fi 48731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 48732 $as_echo "$ac_cv_sizeof_int_p" >&6; } 48733 48734 48735 48736 cat >>confdefs.h <<_ACEOF 48737 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 48738 _ACEOF 48739 48740 48741 48742 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 48743 if test "x$ac_cv_sizeof_int_p" = x; then 48744 # The test failed, lets stick to the assumed value. 48745 { $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 48746 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 48747 else 48748 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 48749 48750 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 48751 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 48752 # Let's try to implicitely set the compilers target architecture and retry the test 48753 { $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 48754 $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;} 48755 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 48756 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 48757 48758 # When we add flags to the "official" CFLAGS etc, we need to 48759 # keep track of these additions in ADDED_CFLAGS etc. These 48760 # will later be checked to make sure only controlled additions 48761 # have been made to CFLAGS etc. 48762 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48763 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48764 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 48765 48766 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 48767 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 48768 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 48769 48770 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 48771 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 48772 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 48773 48774 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 48775 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 48776 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 48777 48778 48779 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 48780 unset ac_cv_sizeof_int_p 48781 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 48782 cat >>confdefs.h <<_ACEOF 48783 #undef SIZEOF_INT_P 48784 _ACEOF 48785 48786 # The cast to long int works around a bug in the HP C Compiler 48787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 48788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 48789 # This bug is HP SR number 8606223364. 48790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 48791 $as_echo_n "checking size of int *... " >&6; } 48792 if ${ac_cv_sizeof_int_p+:} false; then : 48793 $as_echo_n "(cached) " >&6 48794 else 48795 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 48796 48797 else 48798 if test "$ac_cv_type_int_p" = yes; then 48799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 48800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 48801 as_fn_error 77 "cannot compute sizeof (int *) 48802 See \`config.log' for more details" "$LINENO" 5; } 48803 else 48804 ac_cv_sizeof_int_p=0 48805 fi 48806 fi 48807 48808 fi 48809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 48810 $as_echo "$ac_cv_sizeof_int_p" >&6; } 48811 48812 48813 48814 cat >>confdefs.h <<_ACEOF 48815 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 48816 _ACEOF 48817 48818 48819 48820 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 48821 48822 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 48823 { $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 48824 $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;} 48825 if test "x$COMPILE_TYPE" = xreduced; then 48826 48827 # Print a helpful message on how to acquire the necessary build dependency. 48828 # reduced is the help tag: freetype, cups, alsa etc 48829 MISSING_DEPENDENCY=reduced 48830 48831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48832 cygwin_help $MISSING_DEPENDENCY 48833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48834 msys_help $MISSING_DEPENDENCY 48835 else 48836 PKGHANDLER_COMMAND= 48837 48838 case $PKGHANDLER in 48839 apt-get) 48840 apt_help $MISSING_DEPENDENCY ;; 48841 yum) 48842 yum_help $MISSING_DEPENDENCY ;; 48843 port) 48844 port_help $MISSING_DEPENDENCY ;; 48845 pkgutil) 48846 pkgutil_help $MISSING_DEPENDENCY ;; 48847 pkgadd) 48848 pkgadd_help $MISSING_DEPENDENCY ;; 48849 esac 48850 48851 if test "x$PKGHANDLER_COMMAND" != x; then 48852 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48853 fi 48854 fi 48855 48856 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 48857 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 48858 elif test "x$COMPILE_TYPE" = xcross; then 48859 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 48860 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 48861 fi 48862 as_fn_error $? "Cannot continue." "$LINENO" 5 48863 fi 48864 fi 48865 fi 48866 48867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 48868 $as_echo_n "checking for target address size... " >&6; } 48869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 48870 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 48871 48872 48873 ############################################################################### 48874 # 48875 # Is the target little of big endian? 48876 # 48877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 48878 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 48879 if ${ac_cv_c_bigendian+:} false; then : 48880 $as_echo_n "(cached) " >&6 48881 else 48882 ac_cv_c_bigendian=unknown 48883 # See if we're dealing with a universal compiler. 48884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48885 /* end confdefs.h. */ 48886 #ifndef __APPLE_CC__ 48887 not a universal capable compiler 48888 #endif 48889 typedef int dummy; 48890 48891 _ACEOF 48892 if ac_fn_cxx_try_compile "$LINENO"; then : 48893 48894 # Check for potential -arch flags. It is not universal unless 48895 # there are at least two -arch flags with different values. 48896 ac_arch= 48897 ac_prev= 48898 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 48899 if test -n "$ac_prev"; then 48900 case $ac_word in 48901 i?86 | x86_64 | ppc | ppc64) 48902 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 48903 ac_arch=$ac_word 48904 else 48905 ac_cv_c_bigendian=universal 48906 break 48907 fi 48908 ;; 48909 esac 48910 ac_prev= 48911 elif test "x$ac_word" = "x-arch"; then 48912 ac_prev=arch 48913 fi 48914 done 48915 fi 48916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48917 if test $ac_cv_c_bigendian = unknown; then 48918 # See if sys/param.h defines the BYTE_ORDER macro. 48919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48920 /* end confdefs.h. */ 48921 #include <sys/types.h> 48922 #include <sys/param.h> 48923 48924 int 48925 main () 48926 { 48927 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 48928 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 48929 && LITTLE_ENDIAN) 48930 bogus endian macros 48931 #endif 48932 48933 ; 48934 return 0; 48935 } 48936 _ACEOF 48937 if ac_fn_cxx_try_compile "$LINENO"; then : 48938 # It does; now see whether it defined to BIG_ENDIAN or not. 48939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48940 /* end confdefs.h. */ 48941 #include <sys/types.h> 48942 #include <sys/param.h> 48943 48944 int 48945 main () 48946 { 48947 #if BYTE_ORDER != BIG_ENDIAN 48948 not big endian 48949 #endif 48950 48951 ; 48952 return 0; 48953 } 48954 _ACEOF 48955 if ac_fn_cxx_try_compile "$LINENO"; then : 48956 ac_cv_c_bigendian=yes 48957 else 48958 ac_cv_c_bigendian=no 48959 fi 48960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48961 fi 48962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48963 fi 48964 if test $ac_cv_c_bigendian = unknown; then 48965 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 48966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48967 /* end confdefs.h. */ 48968 #include <limits.h> 48969 48970 int 48971 main () 48972 { 48973 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 48974 bogus endian macros 48975 #endif 48976 48977 ; 48978 return 0; 48979 } 48980 _ACEOF 48981 if ac_fn_cxx_try_compile "$LINENO"; then : 48982 # It does; now see whether it defined to _BIG_ENDIAN or not. 48983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48984 /* end confdefs.h. */ 48985 #include <limits.h> 48986 48987 int 48988 main () 48989 { 48990 #ifndef _BIG_ENDIAN 48991 not big endian 48992 #endif 48993 48994 ; 48995 return 0; 48996 } 48997 _ACEOF 48998 if ac_fn_cxx_try_compile "$LINENO"; then : 48999 ac_cv_c_bigendian=yes 49000 else 49001 ac_cv_c_bigendian=no 49002 fi 49003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49004 fi 49005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49006 fi 49007 if test $ac_cv_c_bigendian = unknown; then 49008 # Compile a test program. 49009 if test "$cross_compiling" = yes; then : 49010 # Try to guess by grepping values from an object file. 49011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49012 /* end confdefs.h. */ 49013 short int ascii_mm[] = 49014 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 49015 short int ascii_ii[] = 49016 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 49017 int use_ascii (int i) { 49018 return ascii_mm[i] + ascii_ii[i]; 49019 } 49020 short int ebcdic_ii[] = 49021 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 49022 short int ebcdic_mm[] = 49023 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 49024 int use_ebcdic (int i) { 49025 return ebcdic_mm[i] + ebcdic_ii[i]; 49026 } 49027 extern int foo; 49028 49029 int 49030 main () 49031 { 49032 return use_ascii (foo) == use_ebcdic (foo); 49033 ; 49034 return 0; 49035 } 49036 _ACEOF 49037 if ac_fn_cxx_try_compile "$LINENO"; then : 49038 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 49039 ac_cv_c_bigendian=yes 49040 fi 49041 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 49042 if test "$ac_cv_c_bigendian" = unknown; then 49043 ac_cv_c_bigendian=no 49044 else 49045 # finding both strings is unlikely to happen, but who knows? 49046 ac_cv_c_bigendian=unknown 49047 fi 49048 fi 49049 fi 49050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49051 else 49052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49053 /* end confdefs.h. */ 49054 $ac_includes_default 49055 int 49056 main () 49057 { 49058 49059 /* Are we little or big endian? From Harbison&Steele. */ 49060 union 49061 { 49062 long int l; 49063 char c[sizeof (long int)]; 49064 } u; 49065 u.l = 1; 49066 return u.c[sizeof (long int) - 1] == 1; 49067 49068 ; 49069 return 0; 49070 } 49071 _ACEOF 49072 if ac_fn_cxx_try_run "$LINENO"; then : 49073 ac_cv_c_bigendian=no 49074 else 49075 ac_cv_c_bigendian=yes 49076 fi 49077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 49078 conftest.$ac_objext conftest.beam conftest.$ac_ext 49079 fi 49080 49081 fi 49082 fi 49083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 49084 $as_echo "$ac_cv_c_bigendian" >&6; } 49085 case $ac_cv_c_bigendian in #( 49086 yes) 49087 ENDIAN="big";; #( 49088 no) 49089 ENDIAN="little" ;; #( 49090 universal) 49091 ENDIAN="universal_endianness" 49092 ;; #( 49093 *) 49094 ENDIAN="unknown" ;; 49095 esac 49096 49097 49098 if test "x$ENDIAN" = xuniversal_endianness; then 49099 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 49100 fi 49101 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 49102 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 49103 fi 49104 49105 49106 # Configure flags for the tools 49107 49108 ############################################################################### 49109 # 49110 # How to compile shared libraries. 49111 # 49112 49113 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49114 PICFLAG="-fPIC" 49115 C_FLAG_REORDER='' 49116 CXX_FLAG_REORDER='' 49117 49118 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49119 # Linking is different on MacOSX 49120 if test "x$STATIC_BUILD" = xtrue; then 49121 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 49122 else 49123 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 49124 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 49125 fi 49126 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 49127 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49128 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 49129 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 49130 else 49131 # Default works for linux, might work on other platforms as well. 49132 SHARED_LIBRARY_FLAGS='-shared' 49133 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 49134 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 49135 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 49136 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 49137 fi 49138 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49139 C_FLAG_REORDER='' 49140 CXX_FLAG_REORDER='' 49141 49142 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49143 # Linking is different on MacOSX 49144 PICFLAG='' 49145 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 49146 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 49147 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49148 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 49149 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 49150 49151 if test "x$STATIC_BUILD" = xfalse; then 49152 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 49153 fi 49154 else 49155 # Default works for linux, might work on other platforms as well. 49156 PICFLAG='-fPIC' 49157 SHARED_LIBRARY_FLAGS='-shared' 49158 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 49159 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 49160 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 49161 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 49162 fi 49163 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49164 PICFLAG="-KPIC" 49165 C_FLAG_REORDER='-xF' 49166 CXX_FLAG_REORDER='-xF' 49167 SHARED_LIBRARY_FLAGS="-G" 49168 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 49169 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 49170 SET_SHARED_LIBRARY_NAME='-h $1' 49171 SET_SHARED_LIBRARY_MAPFILE='-M$1' 49172 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49173 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 49174 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 49175 # will have to patch this single instruction with a call to some out-of-order code which 49176 # does the load from the TOC. This is of course slow. But in that case we also would have 49177 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 49178 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 49179 # can be patched directly by the linker and does not require a jump to out-of-order code. 49180 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 49181 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 49182 # loads for accessing a global variable). But there are rumors that this may be seen as a 49183 # 'performance feature' because of improved code locality of the symbols used in a 49184 # compilation unit. 49185 PICFLAG="-qpic" 49186 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 49187 C_FLAG_REORDER='' 49188 CXX_FLAG_REORDER='' 49189 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 49190 SET_EXECUTABLE_ORIGIN="" 49191 SET_SHARED_LIBRARY_ORIGIN='' 49192 SET_SHARED_LIBRARY_NAME='' 49193 SET_SHARED_LIBRARY_MAPFILE='' 49194 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49195 PICFLAG="" 49196 C_FLAG_REORDER='' 49197 CXX_FLAG_REORDER='' 49198 SHARED_LIBRARY_FLAGS="-dll" 49199 SET_EXECUTABLE_ORIGIN='' 49200 SET_SHARED_LIBRARY_ORIGIN='' 49201 SET_SHARED_LIBRARY_NAME='' 49202 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 49203 fi 49204 49205 49206 49207 49208 49209 49210 49211 49212 49213 # The (cross) compiler is now configured, we can now test capabilities 49214 # of the target platform. 49215 49216 49217 49218 ############################################################################### 49219 # 49220 # Setup the opt flags for different compilers 49221 # and different operating systems. 49222 # 49223 49224 # FIXME: this was indirectly the old default, but just inherited. 49225 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49226 # C_FLAG_DEPS="-MMD -MF" 49227 # fi 49228 49229 # Generate make dependency files 49230 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49231 C_FLAG_DEPS="-MMD -MF" 49232 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49233 C_FLAG_DEPS="-MMD -MF" 49234 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49235 C_FLAG_DEPS="-xMMD -xMF" 49236 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49237 C_FLAG_DEPS="-qmakedep=gcc -MF" 49238 fi 49239 CXX_FLAG_DEPS="$C_FLAG_DEPS" 49240 49241 49242 49243 # Debug symbols 49244 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49245 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 49246 # reduce from default "-g2" option to save space 49247 CFLAGS_DEBUG_SYMBOLS="-g1" 49248 CXXFLAGS_DEBUG_SYMBOLS="-g1" 49249 else 49250 CFLAGS_DEBUG_SYMBOLS="-g" 49251 CXXFLAGS_DEBUG_SYMBOLS="-g" 49252 fi 49253 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49254 CFLAGS_DEBUG_SYMBOLS="-g" 49255 CXXFLAGS_DEBUG_SYMBOLS="-g" 49256 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49257 CFLAGS_DEBUG_SYMBOLS="-g -xs" 49258 # -g0 enables debug symbols without disabling inlining. 49259 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 49260 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49261 CFLAGS_DEBUG_SYMBOLS="-g" 49262 CXXFLAGS_DEBUG_SYMBOLS="-g" 49263 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49264 CFLAGS_DEBUG_SYMBOLS="-Zi" 49265 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 49266 fi 49267 49268 49269 49270 # Debug symbols for JVM_CFLAGS 49271 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49272 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 49273 if test "x$DEBUG_LEVEL" = xslowdebug; then 49274 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 49275 else 49276 # -g0 does not disable inlining, which -g does. 49277 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 49278 fi 49279 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49280 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 49281 else 49282 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 49283 fi 49284 49285 49286 # bounds, memory and behavior checking options 49287 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49288 case $DEBUG_LEVEL in 49289 release ) 49290 # no adjustment 49291 ;; 49292 fastdebug ) 49293 # no adjustment 49294 ;; 49295 slowdebug ) 49296 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 49297 # get's added conditionally on whether we produce debug symbols or not. 49298 # This is most likely not really correct. 49299 49300 # Add runtime stack smashing and undefined behavior checks. 49301 # Not all versions of gcc support -fstack-protector 49302 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 49303 49304 49305 49306 49307 49308 49309 49310 49311 49312 49313 49314 49315 49316 49317 49318 49319 49320 49321 49322 49323 49324 49325 49326 49327 49328 49329 49330 49331 49332 49333 49334 49335 49336 49337 49338 49339 49340 49341 49342 49343 49344 49345 # Execute function body 49346 49347 49348 49349 49350 49351 49352 49353 49354 49355 49356 49357 49358 49359 49360 49361 49362 49363 49364 49365 49366 49367 49368 49369 49370 49371 49372 49373 49374 49375 49376 49377 49378 49379 49380 49381 49382 49383 49384 49385 49386 49387 49388 49389 49390 49391 49392 49393 49394 # Execute function body 49395 49396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49397 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49398 supports=yes 49399 49400 saved_cflags="$CFLAGS" 49401 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 49402 ac_ext=c 49403 ac_cpp='$CPP $CPPFLAGS' 49404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49406 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49407 49408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49409 /* end confdefs.h. */ 49410 int i; 49411 _ACEOF 49412 if ac_fn_c_try_compile "$LINENO"; then : 49413 49414 else 49415 supports=no 49416 fi 49417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49418 ac_ext=cpp 49419 ac_cpp='$CXXCPP $CPPFLAGS' 49420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49423 49424 CFLAGS="$saved_cflags" 49425 49426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49427 $as_echo "$supports" >&6; } 49428 if test "x$supports" = "xyes" ; then 49429 : 49430 C_COMP_SUPPORTS="yes" 49431 else 49432 : 49433 C_COMP_SUPPORTS="no" 49434 fi 49435 49436 49437 49438 49439 49440 49441 49442 49443 49444 49445 49446 49447 49448 49449 49450 49451 49452 49453 49454 49455 49456 49457 49458 49459 49460 49461 49462 49463 49464 49465 49466 49467 49468 49469 49470 49471 49472 49473 49474 49475 49476 49477 49478 49479 49480 49481 49482 49483 49484 49485 49486 49487 49488 49489 49490 49491 49492 49493 49494 # Execute function body 49495 49496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49497 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49498 supports=yes 49499 49500 saved_cxxflags="$CXXFLAGS" 49501 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 49502 ac_ext=cpp 49503 ac_cpp='$CXXCPP $CPPFLAGS' 49504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49507 49508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49509 /* end confdefs.h. */ 49510 int i; 49511 _ACEOF 49512 if ac_fn_cxx_try_compile "$LINENO"; then : 49513 49514 else 49515 supports=no 49516 fi 49517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49518 ac_ext=cpp 49519 ac_cpp='$CXXCPP $CPPFLAGS' 49520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49523 49524 CXXFLAGS="$saved_cxxflags" 49525 49526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49527 $as_echo "$supports" >&6; } 49528 if test "x$supports" = "xyes" ; then 49529 : 49530 CXX_COMP_SUPPORTS="yes" 49531 else 49532 : 49533 CXX_COMP_SUPPORTS="no" 49534 fi 49535 49536 49537 49538 49539 49540 49541 49542 49543 49544 49545 49546 49547 49548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 49549 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 49550 supports=no 49551 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 49552 49553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49554 $as_echo "$supports" >&6; } 49555 if test "x$supports" = "xyes" ; then 49556 : 49557 49558 else 49559 : 49560 STACK_PROTECTOR_CFLAG="" 49561 fi 49562 49563 49564 49565 49566 49567 49568 49569 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49570 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49571 if test "x$STACK_PROTECTOR_CFLAG" != x; then 49572 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 49573 fi 49574 ;; 49575 esac 49576 fi 49577 49578 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49579 if test "x$DEBUG_LEVEL" != xrelease; then 49580 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 49581 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 49582 fi 49583 fi 49584 fi 49585 49586 # Optimization levels 49587 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49588 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 49589 49590 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 49591 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 49592 C_O_FLAG_HIGHEST_JVM="-xO4" 49593 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 49594 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 49595 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 49596 C_O_FLAG_DEBUG="-xregs=no%frameptr" 49597 C_O_FLAG_DEBUG_JVM="" 49598 C_O_FLAG_NONE="-xregs=no%frameptr" 49599 CXX_O_FLAG_HIGHEST_JVM="-xO4" 49600 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 49601 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 49602 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 49603 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 49604 CXX_O_FLAG_DEBUG_JVM="" 49605 CXX_O_FLAG_NONE="-xregs=no%frameptr" 49606 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 49607 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 49608 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 49609 fi 49610 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 49611 C_O_FLAG_HIGHEST_JVM="-xO4" 49612 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 49613 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 49614 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 49615 C_O_FLAG_DEBUG="" 49616 C_O_FLAG_DEBUG_JVM="" 49617 C_O_FLAG_NONE="" 49618 CXX_O_FLAG_HIGHEST_JVM="-xO4" 49619 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 49620 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 49621 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 49622 CXX_O_FLAG_DEBUG="" 49623 CXX_O_FLAG_DEBUG_JVM="" 49624 CXX_O_FLAG_NONE="" 49625 fi 49626 else 49627 # The remaining toolchains share opt flags between CC and CXX; 49628 # setup for C and duplicate afterwards. 49629 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49630 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49631 # On MacOSX we optimize for size, something 49632 # we should do for all platforms? 49633 C_O_FLAG_HIGHEST_JVM="-Os" 49634 C_O_FLAG_HIGHEST="-Os" 49635 C_O_FLAG_HI="-Os" 49636 C_O_FLAG_NORM="-Os" 49637 C_O_FLAG_SIZE="-Os" 49638 else 49639 C_O_FLAG_HIGHEST_JVM="-O3" 49640 C_O_FLAG_HIGHEST="-O3" 49641 C_O_FLAG_HI="-O3" 49642 C_O_FLAG_NORM="-O2" 49643 C_O_FLAG_SIZE="-Os" 49644 fi 49645 C_O_FLAG_DEBUG="-O0" 49646 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49647 C_O_FLAG_DEBUG_JVM="" 49648 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 49649 C_O_FLAG_DEBUG_JVM="-O0" 49650 fi 49651 C_O_FLAG_NONE="-O0" 49652 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49653 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49654 # On MacOSX we optimize for size, something 49655 # we should do for all platforms? 49656 C_O_FLAG_HIGHEST_JVM="-Os" 49657 C_O_FLAG_HIGHEST="-Os" 49658 C_O_FLAG_HI="-Os" 49659 C_O_FLAG_NORM="-Os" 49660 C_O_FLAG_SIZE="-Os" 49661 else 49662 C_O_FLAG_HIGHEST_JVM="-O3" 49663 C_O_FLAG_HIGHEST="-O3" 49664 C_O_FLAG_HI="-O3" 49665 C_O_FLAG_NORM="-O2" 49666 C_O_FLAG_SIZE="-Os" 49667 fi 49668 C_O_FLAG_DEBUG="-O0" 49669 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49670 C_O_FLAG_DEBUG_JVM="" 49671 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 49672 C_O_FLAG_DEBUG_JVM="-O0" 49673 fi 49674 C_O_FLAG_NONE="-O0" 49675 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49676 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 49677 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 49678 C_O_FLAG_HI="-O3 -qinline -qinlglue" 49679 C_O_FLAG_NORM="-O2" 49680 C_O_FLAG_DEBUG="-qnoopt" 49681 # FIXME: Value below not verified. 49682 C_O_FLAG_DEBUG_JVM="" 49683 C_O_FLAG_NONE="-qnoopt" 49684 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49685 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 49686 C_O_FLAG_HIGHEST="-O2" 49687 C_O_FLAG_HI="-O1" 49688 C_O_FLAG_NORM="-O1" 49689 C_O_FLAG_DEBUG="-Od" 49690 C_O_FLAG_DEBUG_JVM="" 49691 C_O_FLAG_NONE="-Od" 49692 C_O_FLAG_SIZE="-Os" 49693 fi 49694 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 49695 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 49696 CXX_O_FLAG_HI="$C_O_FLAG_HI" 49697 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 49698 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 49699 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 49700 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 49701 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 49702 fi 49703 49704 # Adjust optimization flags according to debug level. 49705 case $DEBUG_LEVEL in 49706 release ) 49707 # no adjustment 49708 ;; 49709 fastdebug ) 49710 # Not quite so much optimization 49711 C_O_FLAG_HI="$C_O_FLAG_NORM" 49712 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 49713 ;; 49714 slowdebug ) 49715 # Disable optimization 49716 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 49717 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 49718 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 49719 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 49720 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 49721 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 49722 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 49723 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 49724 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 49725 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 49726 ;; 49727 esac 49728 49729 49730 49731 49732 49733 49734 49735 49736 49737 49738 49739 49740 49741 49742 49743 49744 49745 49746 49747 # Special extras... 49748 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49749 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 49750 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 49751 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 49752 fi 49753 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 49754 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 49755 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49756 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49757 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49758 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 49759 CXXSTD_CXXFLAG="-std=gnu++98" 49760 49761 49762 49763 49764 49765 49766 49767 49768 49769 49770 49771 49772 49773 49774 49775 49776 49777 49778 49779 49780 49781 49782 49783 49784 49785 49786 49787 49788 49789 49790 49791 49792 49793 49794 49795 49796 49797 49798 49799 49800 49801 49802 # Execute function body 49803 49804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 49805 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 49806 supports=yes 49807 49808 saved_cxxflags="$CXXFLAGS" 49809 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 49810 ac_ext=cpp 49811 ac_cpp='$CXXCPP $CPPFLAGS' 49812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49815 49816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49817 /* end confdefs.h. */ 49818 int i; 49819 _ACEOF 49820 if ac_fn_cxx_try_compile "$LINENO"; then : 49821 49822 else 49823 supports=no 49824 fi 49825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49826 ac_ext=cpp 49827 ac_cpp='$CXXCPP $CPPFLAGS' 49828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49831 49832 CXXFLAGS="$saved_cxxflags" 49833 49834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49835 $as_echo "$supports" >&6; } 49836 if test "x$supports" = "xyes" ; then 49837 : 49838 49839 else 49840 : 49841 CXXSTD_CXXFLAG="" 49842 fi 49843 49844 49845 49846 49847 49848 49849 49850 49851 49852 49853 49854 49855 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 49856 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 49857 49858 fi 49859 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49860 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 49861 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 49862 fi 49863 49864 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49865 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 49866 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 49867 fi 49868 49869 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 49870 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 49871 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 49872 49873 ############################################################################### 49874 # 49875 # Now setup the CFLAGS and LDFLAGS for the JDK build. 49876 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 49877 # 49878 49879 # Setup compiler/platform specific flags into 49880 # CFLAGS_JDK - C Compiler flags 49881 # CXXFLAGS_JDK - C++ Compiler flags 49882 # COMMON_CCXXFLAGS_JDK - common to C and C++ 49883 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49884 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 49885 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 49886 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 49887 if test "x$OPENJDK_TARGET_CPU" = xx86; then 49888 # Force compatibility with i586 on 32 bit intel platforms. 49889 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 49890 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 49891 fi 49892 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 49893 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 49894 case $OPENJDK_TARGET_CPU_ARCH in 49895 arm ) 49896 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49897 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49898 ;; 49899 ppc ) 49900 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49901 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49902 ;; 49903 s390 ) 49904 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 49905 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49906 ;; 49907 * ) 49908 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 49909 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49910 ;; 49911 esac 49912 49913 49914 49915 49916 49917 49918 49919 49920 49921 49922 49923 49924 49925 49926 49927 49928 49929 49930 49931 49932 49933 49934 49935 49936 49937 49938 49939 49940 49941 49942 49943 49944 49945 49946 49947 49948 49949 49950 49951 49952 49953 49954 49955 49956 49957 49958 49959 49960 49961 49962 49963 49964 49965 49966 # Execute function body 49967 49968 # Need to assign to a variable since m4 is blocked from modifying parts in []. 49969 REFERENCE_VERSION=6 49970 49971 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 49972 as_fn_error $? "Internal error: Cannot compare to 6, only three parts (X.Y.Z) is supported" "$LINENO" 5 49973 fi 49974 49975 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 49976 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 49977 fi 49978 49979 # Version comparison method inspired by http://stackoverflow.com/a/24067243 49980 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 49981 49982 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 49983 : 49984 49985 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 49986 # runs afoul of the more aggressive versions of these optimisations. 49987 # Notably, value range propagation now assumes that the this pointer of C++ 49988 # member functions is non-null. 49989 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 49990 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 49991 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 49992 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 49993 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 49994 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 49995 49996 else 49997 : 49998 49999 fi 50000 50001 50002 50003 50004 50005 50006 50007 50008 50009 50010 50011 50012 50013 50014 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50015 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 50016 50017 # Restrict the debug information created by Clang to avoid 50018 # too big object files and speed the build up a little bit 50019 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 50020 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 50021 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50022 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50023 # Force compatibility with i586 on 32 bit intel platforms. 50024 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 50025 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 50026 fi 50027 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 50028 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50029 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50030 case $OPENJDK_TARGET_CPU_ARCH in 50031 ppc ) 50032 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50033 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50034 ;; 50035 * ) 50036 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50037 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 50038 ;; 50039 esac 50040 fi 50041 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50042 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 50043 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 50044 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 50045 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 50046 fi 50047 50048 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 50049 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 50050 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50051 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 50052 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50053 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50054 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50055 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 50056 -MD -Zc:wchar_t- -W3 -wd4800 \ 50057 -DWIN32_LEAN_AND_MEAN \ 50058 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 50059 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 50060 -DWIN32 -DIAL" 50061 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 50062 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 50063 else 50064 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 50065 fi 50066 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 50067 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 50068 # studio. 50069 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 50070 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 50071 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 50072 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 50073 fi 50074 fi 50075 50076 ############################################################################### 50077 50078 # Adjust flags according to debug level. 50079 case $DEBUG_LEVEL in 50080 fastdebug | slowdebug ) 50081 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 50082 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 50083 JAVAC_FLAGS="$JAVAC_FLAGS -g" 50084 ;; 50085 release ) 50086 ;; 50087 * ) 50088 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50089 ;; 50090 esac 50091 50092 # Set some common defines. These works for all compilers, but assume 50093 # -D is universally accepted. 50094 50095 # Setup endianness 50096 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 50097 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 50098 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 50099 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 50100 # Note: -Dmacro is the same as #define macro 1 50101 # -Dmacro= is the same as #define macro 50102 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50103 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 50104 else 50105 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 50106 fi 50107 else 50108 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 50109 # are defined in the system? 50110 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50111 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 50112 else 50113 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 50114 fi 50115 fi 50116 50117 # Setup target OS define. Use OS target name but in upper case. 50118 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 50119 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 50120 50121 # Setup target CPU 50122 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50123 $OPENJDK_TARGET_ADD_LP64 \ 50124 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 50125 50126 # Setup debug/release defines 50127 if test "x$DEBUG_LEVEL" = xrelease; then 50128 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 50129 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50130 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 50131 fi 50132 else 50133 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 50134 fi 50135 50136 # Set some additional per-OS defines. 50137 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50138 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 50139 JVM_CFLAGS="$JVM_CFLAGS -pipe -fPIC -fno-rtti -fno-exceptions \ 50140 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 50141 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50142 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 50143 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 50144 -D_Crun_inline_placement -library=%none -KPIC -mt -xwe -features=no%except" 50145 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50146 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 50147 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 50148 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 50149 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 50150 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 50151 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 50152 -fno-omit-frame-pointer" 50153 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50154 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 50155 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 50156 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 50157 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 50158 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 50159 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 50160 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 50161 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50162 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 50163 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 50164 fi 50165 50166 # Set some additional per-CPU defines. 50167 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 50168 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 50169 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50170 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 50171 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 50172 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50173 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50174 # fixes `relocation truncated to fit' error for gcc 4.1. 50175 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 50176 # Use ppc64 instructions, but schedule for power5 50177 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 50178 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50179 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 50180 fi 50181 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 50182 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50183 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50184 # Little endian machine uses ELFv2 ABI. 50185 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 50186 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 50187 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power7 -mtune=power8" 50188 fi 50189 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 50190 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50191 JVM_CFLAGS="$JVM_CFLAGS -mbackchain -march=z10" 50192 fi 50193 fi 50194 50195 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 50196 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 50197 fi 50198 50199 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50200 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 50201 # Solaris does not have _LP64=1 in the old build. 50202 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 50203 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 50204 fi 50205 fi 50206 50207 # Set JVM_CFLAGS warning handling 50208 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50209 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 50210 -Wunused-value -Woverloaded-virtual" 50211 50212 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50213 50214 50215 50216 50217 50218 50219 50220 50221 50222 50223 50224 50225 50226 50227 50228 50229 50230 50231 50232 50233 50234 50235 50236 50237 50238 50239 50240 50241 50242 50243 50244 50245 50246 50247 50248 50249 50250 50251 50252 50253 50254 50255 50256 50257 50258 50259 50260 50261 50262 50263 50264 50265 50266 50267 # Execute function body 50268 50269 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50270 REFERENCE_VERSION=4.8 50271 50272 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 50273 as_fn_error $? "Internal error: Cannot compare to 4.8, only three parts (X.Y.Z) is supported" "$LINENO" 5 50274 fi 50275 50276 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50277 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 50278 fi 50279 50280 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50281 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 50282 50283 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50284 : 50285 50286 # These flags either do not work or give spurious warnings prior to gcc 4.8. 50287 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 50288 50289 50290 else 50291 : 50292 50293 fi 50294 50295 50296 50297 50298 50299 50300 50301 50302 50303 50304 50305 50306 50307 50308 fi 50309 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 50310 # Non-zero builds have stricter warnings 50311 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 50312 else 50313 if test "x$TOOLCHAIN_TYPE" = xclang; then 50314 # Some versions of llvm do not like -Wundef 50315 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 50316 fi 50317 fi 50318 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50319 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 50320 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 50321 fi 50322 50323 # Additional macosx handling 50324 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50325 # Setting these parameters makes it an error to link to macosx APIs that are 50326 # newer than the given OS version and makes the linked binaries compatible 50327 # even if built on a newer version of the OS. 50328 # The expected format is X.Y.Z 50329 MACOSX_VERSION_MIN=10.7.0 50330 50331 50332 # The macro takes the version with no dots, ex: 1070 50333 # Let the flags variables get resolved in make for easier override on make 50334 # command line. 50335 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50336 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50337 fi 50338 50339 # Setup some hard coded includes 50340 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50341 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 50342 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 50343 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 50344 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 50345 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 50346 50347 # The shared libraries are compiled using the picflag. 50348 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50349 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 50350 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50351 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 50352 50353 # Executable flags 50354 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 50355 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 50356 50357 50358 50359 50360 50361 50362 # Setup LDFLAGS et al. 50363 # 50364 50365 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50366 LDFLAGS_MICROSOFT="-nologo -opt:ref" 50367 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 50368 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 50369 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 50370 LDFLAGS_SAFESH="-safeseh" 50371 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 50372 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 50373 # NOTE: Old build added -machine. Probably not needed. 50374 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 50375 else 50376 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 50377 fi 50378 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50379 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 50380 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50381 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 50382 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50383 fi 50384 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50385 # If this is a --hash-style=gnu system, use --hash-style=both, why? 50386 # We have previously set HAS_GNU_HASH if this is the case 50387 if test -n "$HAS_GNU_HASH"; then 50388 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 50389 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 50390 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 50391 fi 50392 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50393 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50394 fi 50395 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50396 # And since we now know that the linker is gnu, then add -z defs, to forbid 50397 # undefined symbols in object files. 50398 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 50399 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 50400 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 50401 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 50402 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 50403 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50404 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 50405 fi 50406 case $DEBUG_LEVEL in 50407 release ) 50408 # tell linker to optimize libraries. 50409 # Should this be supplied to the OSS linker as well? 50410 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 50411 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 50412 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 50413 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50414 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50415 fi 50416 ;; 50417 slowdebug ) 50418 # Hotspot always let the linker optimize 50419 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50420 if test "x$HAS_LINKER_NOW" = "xtrue"; then 50421 # do relocations at load 50422 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 50423 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 50424 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 50425 fi 50426 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50427 # mark relocations read only 50428 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50429 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50430 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50431 fi 50432 ;; 50433 fastdebug ) 50434 # Hotspot always let the linker optimize 50435 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50436 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50437 # mark relocations read only 50438 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50439 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50440 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50441 fi 50442 ;; 50443 * ) 50444 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50445 ;; 50446 esac 50447 fi 50448 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50449 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 50450 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 50451 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 50452 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 50453 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 50454 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 50455 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 50456 fi 50457 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50458 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 50459 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 50460 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 50461 fi 50462 50463 # Customize LDFLAGS for executables 50464 50465 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 50466 50467 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50468 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 50469 LDFLAGS_STACK_SIZE=1048576 50470 else 50471 LDFLAGS_STACK_SIZE=327680 50472 fi 50473 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 50474 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50475 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 50476 fi 50477 50478 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 50479 50480 # Customize LDFLAGS for libs 50481 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 50482 50483 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 50484 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50485 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50486 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 50487 JDKLIB_LIBS="" 50488 else 50489 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50490 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)" 50491 50492 if test "xTARGET" = "xTARGET"; then 50493 # On some platforms (mac) the linker warns about non existing -L dirs. 50494 # Add server first if available. Linking aginst client does not always produce the same results. 50495 # Only add client/minimal dir if client/minimal is being built. 50496 # Default to server for other variants. 50497 if [[ " $JVM_VARIANTS " =~ " server " ]] ; then 50498 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50499 elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then 50500 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/client" 50501 elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 50502 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/minimal" 50503 else 50504 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50505 fi 50506 elif test "xTARGET" = "xBUILD"; then 50507 # When building a buildjdk, it's always only the server variant 50508 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 50509 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50510 fi 50511 50512 JDKLIB_LIBS="-ljava -ljvm" 50513 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50514 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 50515 fi 50516 50517 fi 50518 50519 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 50520 50521 # Set JVM_LIBS (per os) 50522 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50523 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 50524 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50525 # FIXME: This hard-coded path is not really proper. 50526 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 50527 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 50528 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50529 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 50530 fi 50531 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 50532 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 50533 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50534 JVM_LIBS="$JVM_LIBS -lm" 50535 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50536 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 50537 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 50538 JVM_LIBS="$JVM_LIBS -lm" 50539 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50540 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 50541 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 50542 wsock32.lib winmm.lib version.lib psapi.lib" 50543 fi 50544 50545 # Set JVM_ASFLAGS 50546 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50547 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50548 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 50549 fi 50550 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50551 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 50552 fi 50553 50554 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 50555 50556 50557 50558 50559 50560 50561 50562 50563 50564 50565 50566 50567 50568 50569 50570 # Special extras... 50571 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50572 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 50573 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 50574 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 50575 fi 50576 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 50577 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 50578 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50579 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50580 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50581 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50582 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 50583 50584 50585 50586 50587 50588 50589 50590 50591 50592 50593 50594 50595 50596 50597 50598 50599 50600 50601 50602 50603 50604 50605 50606 50607 50608 50609 50610 50611 50612 50613 50614 50615 50616 50617 50618 50619 50620 50621 50622 50623 50624 50625 # Execute function body 50626 50627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 50628 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 50629 supports=yes 50630 50631 saved_cxxflags="$CXXFLAGS" 50632 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 50633 ac_ext=cpp 50634 ac_cpp='$CXXCPP $CPPFLAGS' 50635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50638 50639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50640 /* end confdefs.h. */ 50641 int i; 50642 _ACEOF 50643 if ac_fn_cxx_try_compile "$LINENO"; then : 50644 50645 else 50646 supports=no 50647 fi 50648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50649 ac_ext=cpp 50650 ac_cpp='$CXXCPP $CPPFLAGS' 50651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50654 50655 CXXFLAGS="$saved_cxxflags" 50656 50657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50658 $as_echo "$supports" >&6; } 50659 if test "x$supports" = "xyes" ; then 50660 : 50661 50662 else 50663 : 50664 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 50665 fi 50666 50667 50668 50669 50670 50671 50672 50673 50674 50675 50676 50677 50678 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 50679 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 50680 50681 fi 50682 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50683 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 50684 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 50685 fi 50686 50687 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50688 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 50689 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 50690 fi 50691 50692 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 50693 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 50694 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 50695 50696 ############################################################################### 50697 # 50698 # Now setup the CFLAGS and LDFLAGS for the JDK build. 50699 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 50700 # 50701 50702 # Setup compiler/platform specific flags into 50703 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 50704 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 50705 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 50706 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50707 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 50708 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 50709 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 50710 if test "x$OPENJDK_BUILD_CPU" = xx86; then 50711 # Force compatibility with i586 on 32 bit intel platforms. 50712 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 50713 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 50714 fi 50715 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50716 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50717 case $OPENJDK_BUILD_CPU_ARCH in 50718 arm ) 50719 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50720 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50721 ;; 50722 ppc ) 50723 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50724 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50725 ;; 50726 s390 ) 50727 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 50728 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50729 ;; 50730 * ) 50731 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50732 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50733 ;; 50734 esac 50735 50736 50737 50738 50739 50740 50741 50742 50743 50744 50745 50746 50747 50748 50749 50750 50751 50752 50753 50754 50755 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 # Execute function body 50790 50791 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50792 REFERENCE_VERSION=6 50793 50794 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 50795 as_fn_error $? "Internal error: Cannot compare to 6, only three parts (X.Y.Z) is supported" "$LINENO" 5 50796 fi 50797 50798 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50799 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 50800 fi 50801 50802 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50803 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 50804 50805 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50806 : 50807 50808 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 50809 # runs afoul of the more aggressive versions of these optimisations. 50810 # Notably, value range propagation now assumes that the this pointer of C++ 50811 # member functions is non-null. 50812 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 50813 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 50814 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 50815 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 50816 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50817 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 50818 50819 else 50820 : 50821 50822 fi 50823 50824 50825 50826 50827 50828 50829 50830 50831 50832 50833 50834 50835 50836 50837 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50838 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 50839 50840 # Restrict the debug information created by Clang to avoid 50841 # too big object files and speed the build up a little bit 50842 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 50843 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 50844 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50845 if test "x$OPENJDK_BUILD_CPU" = xx86; then 50846 # Force compatibility with i586 on 32 bit intel platforms. 50847 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 50848 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 50849 fi 50850 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 50851 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50852 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50853 case $OPENJDK_BUILD_CPU_ARCH in 50854 ppc ) 50855 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50856 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50857 ;; 50858 * ) 50859 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50860 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50861 ;; 50862 esac 50863 fi 50864 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50865 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 50866 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 50867 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 50868 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 50869 fi 50870 50871 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 50872 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 50873 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50874 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 50875 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50876 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50877 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50878 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 50879 -MD -Zc:wchar_t- -W3 -wd4800 \ 50880 -DWIN32_LEAN_AND_MEAN \ 50881 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 50882 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 50883 -DWIN32 -DIAL" 50884 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 50885 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 50886 else 50887 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 50888 fi 50889 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 50890 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 50891 # studio. 50892 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 50893 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 50894 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 50895 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 50896 fi 50897 fi 50898 50899 ############################################################################### 50900 50901 # Adjust flags according to debug level. 50902 case $DEBUG_LEVEL in 50903 fastdebug | slowdebug ) 50904 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 50905 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 50906 JAVAC_FLAGS="$JAVAC_FLAGS -g" 50907 ;; 50908 release ) 50909 ;; 50910 * ) 50911 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50912 ;; 50913 esac 50914 50915 # Set some common defines. These works for all compilers, but assume 50916 # -D is universally accepted. 50917 50918 # Setup endianness 50919 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 50920 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 50921 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 50922 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 50923 # Note: -Dmacro is the same as #define macro 1 50924 # -Dmacro= is the same as #define macro 50925 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 50926 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 50927 else 50928 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 50929 fi 50930 else 50931 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 50932 # are defined in the system? 50933 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 50934 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 50935 else 50936 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 50937 fi 50938 fi 50939 50940 # Setup target OS define. Use OS target name but in upper case. 50941 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 50942 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 50943 50944 # Setup target CPU 50945 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 50946 $OPENJDK_BUILD_ADD_LP64 \ 50947 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 50948 50949 # Setup debug/release defines 50950 if test "x$DEBUG_LEVEL" = xrelease; then 50951 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 50952 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 50953 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 50954 fi 50955 else 50956 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 50957 fi 50958 50959 # Set some additional per-OS defines. 50960 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50961 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 50962 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe -fPIC -fno-rtti -fno-exceptions \ 50963 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 50964 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 50965 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 50966 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 50967 -D_Crun_inline_placement -library=%none -KPIC -mt -xwe -features=no%except" 50968 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 50969 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 50970 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 50971 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 50972 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 50973 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 50974 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 50975 -fno-omit-frame-pointer" 50976 elif test "x$OPENJDK_BUILD_OS" = xaix; then 50977 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 50978 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 50979 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 50980 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 50981 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 50982 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 50983 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 50984 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 50985 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 50986 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 50987 fi 50988 50989 # Set some additional per-CPU defines. 50990 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 50991 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 50992 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 50993 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 50994 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 50995 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50996 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50997 # fixes `relocation truncated to fit' error for gcc 4.1. 50998 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 50999 # Use ppc64 instructions, but schedule for power5 51000 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 51001 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51002 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 51003 fi 51004 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 51005 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51006 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 51007 # Little endian machine uses ELFv2 ABI. 51008 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 51009 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 51010 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power7 -mtune=power8" 51011 fi 51012 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 51013 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51014 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mbackchain -march=z10" 51015 fi 51016 fi 51017 51018 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 51019 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 51020 fi 51021 51022 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 51023 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 51024 # Solaris does not have _LP64=1 in the old build. 51025 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 51026 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 51027 fi 51028 fi 51029 51030 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 51031 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51032 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 51033 -Wunused-value -Woverloaded-virtual" 51034 51035 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51036 51037 51038 51039 51040 51041 51042 51043 51044 51045 51046 51047 51048 51049 51050 51051 51052 51053 51054 51055 51056 51057 51058 51059 51060 51061 51062 51063 51064 51065 51066 51067 51068 51069 51070 51071 51072 51073 51074 51075 51076 51077 51078 51079 51080 51081 51082 51083 51084 51085 51086 51087 51088 51089 51090 # Execute function body 51091 51092 # Need to assign to a variable since m4 is blocked from modifying parts in []. 51093 REFERENCE_VERSION=4.8 51094 51095 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 51096 as_fn_error $? "Internal error: Cannot compare to 4.8, only three parts (X.Y.Z) is supported" "$LINENO" 5 51097 fi 51098 51099 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 51100 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 51101 fi 51102 51103 # Version comparison method inspired by http://stackoverflow.com/a/24067243 51104 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 51105 51106 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 51107 : 51108 51109 # These flags either do not work or give spurious warnings prior to gcc 4.8. 51110 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 51111 51112 51113 else 51114 : 51115 51116 fi 51117 51118 51119 51120 51121 51122 51123 51124 51125 51126 51127 51128 51129 51130 51131 fi 51132 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 51133 # Non-zero builds have stricter warnings 51134 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 51135 else 51136 if test "x$TOOLCHAIN_TYPE" = xclang; then 51137 # Some versions of llvm do not like -Wundef 51138 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 51139 fi 51140 fi 51141 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51142 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 51143 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 51144 fi 51145 51146 # Additional macosx handling 51147 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51148 # Setting these parameters makes it an error to link to macosx APIs that are 51149 # newer than the given OS version and makes the linked binaries compatible 51150 # even if built on a newer version of the OS. 51151 # The expected format is X.Y.Z 51152 MACOSX_VERSION_MIN=10.7.0 51153 51154 51155 # The macro takes the version with no dots, ex: 1070 51156 # Let the flags variables get resolved in make for easier override on make 51157 # command line. 51158 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51159 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 51160 fi 51161 51162 # Setup some hard coded includes 51163 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51164 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 51165 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 51166 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 51167 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 51168 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava" 51169 51170 # The shared libraries are compiled using the picflag. 51171 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51172 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 51173 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 51174 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 51175 51176 # Executable flags 51177 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 51178 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 51179 51180 51181 51182 51183 51184 51185 # Setup LDFLAGS et al. 51186 # 51187 51188 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51189 LDFLAGS_MICROSOFT="-nologo -opt:ref" 51190 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 51191 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 51192 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 51193 LDFLAGS_SAFESH="-safeseh" 51194 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 51195 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 51196 # NOTE: Old build added -machine. Probably not needed. 51197 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 51198 else 51199 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 51200 fi 51201 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51202 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 51203 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51204 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 51205 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51206 fi 51207 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 51208 # If this is a --hash-style=gnu system, use --hash-style=both, why? 51209 # We have previously set HAS_GNU_HASH if this is the case 51210 if test -n "$HAS_GNU_HASH"; then 51211 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 51212 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 51213 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 51214 fi 51215 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 51216 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 51217 fi 51218 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51219 # And since we now know that the linker is gnu, then add -z defs, to forbid 51220 # undefined symbols in object files. 51221 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 51222 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 51223 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 51224 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 51225 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 51226 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51227 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 51228 fi 51229 case $DEBUG_LEVEL in 51230 release ) 51231 # tell linker to optimize libraries. 51232 # Should this be supplied to the OSS linker as well? 51233 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 51234 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 51235 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 51236 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51237 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51238 fi 51239 ;; 51240 slowdebug ) 51241 # Hotspot always let the linker optimize 51242 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 51243 if test "x$HAS_LINKER_NOW" = "xtrue"; then 51244 # do relocations at load 51245 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 51246 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 51247 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 51248 fi 51249 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51250 # mark relocations read only 51251 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 51252 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51253 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51254 fi 51255 ;; 51256 fastdebug ) 51257 # Hotspot always let the linker optimize 51258 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 51259 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 51260 # mark relocations read only 51261 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 51262 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 51263 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 51264 fi 51265 ;; 51266 * ) 51267 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 51268 ;; 51269 esac 51270 fi 51271 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51272 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 51273 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 51274 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 51275 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 51276 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 51277 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 51278 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 51279 fi 51280 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51281 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 51282 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 51283 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 51284 fi 51285 51286 # Customize LDFLAGS for executables 51287 51288 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 51289 51290 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51291 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 51292 LDFLAGS_STACK_SIZE=1048576 51293 else 51294 LDFLAGS_STACK_SIZE=327680 51295 fi 51296 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 51297 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 51298 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 51299 fi 51300 51301 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51302 51303 # Customize LDFLAGS for libs 51304 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 51305 51306 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 51307 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51308 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51309 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 51310 OPENJDK_BUILD_JDKLIB_LIBS="" 51311 else 51312 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51313 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)" 51314 51315 if test "xBUILD" = "xTARGET"; then 51316 # On some platforms (mac) the linker warns about non existing -L dirs. 51317 # Add server first if available. Linking aginst client does not always produce the same results. 51318 # Only add client/minimal dir if client/minimal is being built. 51319 # Default to server for other variants. 51320 if [[ " $JVM_VARIANTS " =~ " server " ]] ; then 51321 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51322 elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then 51323 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/client" 51324 elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 51325 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/minimal" 51326 else 51327 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51328 fi 51329 elif test "xBUILD" = "xBUILD"; then 51330 # When building a buildjdk, it's always only the server variant 51331 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 51332 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 51333 fi 51334 51335 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 51336 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51337 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 51338 fi 51339 51340 fi 51341 51342 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 51343 51344 # Set OPENJDK_BUILD_JVM_LIBS (per os) 51345 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51346 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 51347 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 51348 # FIXME: This hard-coded path is not really proper. 51349 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 51350 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 51351 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 51352 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 51353 fi 51354 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 51355 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 51356 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51357 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 51358 elif test "x$OPENJDK_BUILD_OS" = xaix; then 51359 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 51360 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 51361 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 51362 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51363 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 51364 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 51365 wsock32.lib winmm.lib version.lib psapi.lib" 51366 fi 51367 51368 # Set OPENJDK_BUILD_JVM_ASFLAGS 51369 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51370 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51371 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 51372 fi 51373 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51374 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 51375 fi 51376 51377 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51378 51379 51380 51381 51382 51383 51384 51385 51386 51387 51388 51389 51390 51391 51392 51393 # Tests are only ever compiled for TARGET 51394 # Flags for compiling test libraries 51395 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 51396 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 51397 51398 # Flags for compiling test executables 51399 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 51400 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 51401 51402 51403 51404 51405 51406 51407 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 51408 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 51409 51410 51411 51412 51413 51414 51415 # Some Zero and Shark settings. 51416 # ZERO_ARCHFLAG tells the compiler which mode to build for 51417 case "${OPENJDK_TARGET_CPU}" in 51418 s390) 51419 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 51420 ;; 51421 *) 51422 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51423 esac 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 51454 51455 51456 51457 51458 51459 51460 51461 51462 51463 51464 51465 51466 # Execute function body 51467 51468 51469 51470 51471 51472 51473 51474 51475 51476 51477 51478 51479 51480 51481 51482 51483 51484 51485 51486 51487 51488 51489 51490 51491 51492 51493 51494 51495 51496 51497 51498 51499 51500 51501 51502 51503 51504 51505 51506 51507 51508 51509 51510 51511 51512 51513 51514 51515 # Execute function body 51516 51517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 51518 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 51519 supports=yes 51520 51521 saved_cflags="$CFLAGS" 51522 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 51523 ac_ext=c 51524 ac_cpp='$CPP $CPPFLAGS' 51525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51527 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51528 51529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51530 /* end confdefs.h. */ 51531 int i; 51532 _ACEOF 51533 if ac_fn_c_try_compile "$LINENO"; then : 51534 51535 else 51536 supports=no 51537 fi 51538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51539 ac_ext=cpp 51540 ac_cpp='$CXXCPP $CPPFLAGS' 51541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51544 51545 CFLAGS="$saved_cflags" 51546 51547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51548 $as_echo "$supports" >&6; } 51549 if test "x$supports" = "xyes" ; then 51550 : 51551 C_COMP_SUPPORTS="yes" 51552 else 51553 : 51554 C_COMP_SUPPORTS="no" 51555 fi 51556 51557 51558 51559 51560 51561 51562 51563 51564 51565 51566 51567 51568 51569 51570 51571 51572 51573 51574 51575 51576 51577 51578 51579 51580 51581 51582 51583 51584 51585 51586 51587 51588 51589 51590 51591 51592 51593 51594 51595 51596 51597 51598 51599 51600 51601 51602 51603 51604 51605 51606 51607 51608 51609 51610 51611 51612 51613 51614 51615 # Execute function body 51616 51617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 51618 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 51619 supports=yes 51620 51621 saved_cxxflags="$CXXFLAGS" 51622 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 51623 ac_ext=cpp 51624 ac_cpp='$CXXCPP $CPPFLAGS' 51625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51628 51629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51630 /* end confdefs.h. */ 51631 int i; 51632 _ACEOF 51633 if ac_fn_cxx_try_compile "$LINENO"; then : 51634 51635 else 51636 supports=no 51637 fi 51638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51639 ac_ext=cpp 51640 ac_cpp='$CXXCPP $CPPFLAGS' 51641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51644 51645 CXXFLAGS="$saved_cxxflags" 51646 51647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51648 $as_echo "$supports" >&6; } 51649 if test "x$supports" = "xyes" ; then 51650 : 51651 CXX_COMP_SUPPORTS="yes" 51652 else 51653 : 51654 CXX_COMP_SUPPORTS="no" 51655 fi 51656 51657 51658 51659 51660 51661 51662 51663 51664 51665 51666 51667 51668 51669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 51670 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } 51671 supports=no 51672 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51673 51674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51675 $as_echo "$supports" >&6; } 51676 if test "x$supports" = "xyes" ; then 51677 : 51678 51679 else 51680 : 51681 ZERO_ARCHFLAG="" 51682 fi 51683 51684 51685 51686 51687 51688 51689 51690 51691 # Check that the compiler supports -mX (or -qX on AIX) flags 51692 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 51693 51694 51695 51696 51697 51698 51699 51700 51701 51702 51703 51704 51705 51706 51707 51708 51709 51710 51711 51712 51713 51714 51715 51716 51717 51718 51719 51720 51721 51722 51723 51724 51725 51726 51727 51728 51729 51730 51731 51732 51733 51734 51735 51736 51737 51738 51739 51740 # Execute function body 51741 51742 51743 51744 51745 51746 51747 51748 51749 51750 51751 51752 51753 51754 51755 51756 51757 51758 51759 51760 51761 51762 51763 51764 51765 51766 51767 51768 51769 51770 51771 51772 51773 51774 51775 51776 51777 51778 51779 51780 51781 51782 51783 51784 51785 51786 51787 51788 51789 # Execute function body 51790 51791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51792 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51793 supports=yes 51794 51795 saved_cflags="$CFLAGS" 51796 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51797 ac_ext=c 51798 ac_cpp='$CPP $CPPFLAGS' 51799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51801 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51802 51803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51804 /* end confdefs.h. */ 51805 int i; 51806 _ACEOF 51807 if ac_fn_c_try_compile "$LINENO"; then : 51808 51809 else 51810 supports=no 51811 fi 51812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51813 ac_ext=cpp 51814 ac_cpp='$CXXCPP $CPPFLAGS' 51815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51818 51819 CFLAGS="$saved_cflags" 51820 51821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51822 $as_echo "$supports" >&6; } 51823 if test "x$supports" = "xyes" ; then 51824 : 51825 C_COMP_SUPPORTS="yes" 51826 else 51827 : 51828 C_COMP_SUPPORTS="no" 51829 fi 51830 51831 51832 51833 51834 51835 51836 51837 51838 51839 51840 51841 51842 51843 51844 51845 51846 51847 51848 51849 51850 51851 51852 51853 51854 51855 51856 51857 51858 51859 51860 51861 51862 51863 51864 51865 51866 51867 51868 51869 51870 51871 51872 51873 51874 51875 51876 51877 51878 51879 51880 51881 51882 51883 51884 51885 51886 51887 51888 51889 # Execute function body 51890 51891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51892 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51893 supports=yes 51894 51895 saved_cxxflags="$CXXFLAGS" 51896 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51897 ac_ext=cpp 51898 ac_cpp='$CXXCPP $CPPFLAGS' 51899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51902 51903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51904 /* end confdefs.h. */ 51905 int i; 51906 _ACEOF 51907 if ac_fn_cxx_try_compile "$LINENO"; then : 51908 51909 else 51910 supports=no 51911 fi 51912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51913 ac_ext=cpp 51914 ac_cpp='$CXXCPP $CPPFLAGS' 51915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51918 51919 CXXFLAGS="$saved_cxxflags" 51920 51921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51922 $as_echo "$supports" >&6; } 51923 if test "x$supports" = "xyes" ; then 51924 : 51925 CXX_COMP_SUPPORTS="yes" 51926 else 51927 : 51928 CXX_COMP_SUPPORTS="no" 51929 fi 51930 51931 51932 51933 51934 51935 51936 51937 51938 51939 51940 51941 51942 51943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51944 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51945 supports=no 51946 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51947 51948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51949 $as_echo "$supports" >&6; } 51950 if test "x$supports" = "xyes" ; then 51951 : 51952 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 51953 else 51954 : 51955 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 51956 fi 51957 51958 51959 51960 51961 51962 51963 51964 51965 # Check whether --enable-warnings-as-errors was given. 51966 if test "${enable_warnings_as_errors+set}" = set; then : 51967 enableval=$enable_warnings_as_errors; 51968 fi 51969 51970 51971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 51972 $as_echo_n "checking if native warnings are errors... " >&6; } 51973 if test "x$enable_warnings_as_errors" = "xyes"; then 51974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitely set)" >&5 51975 $as_echo "yes (explicitely set)" >&6; } 51976 WARNINGS_AS_ERRORS=true 51977 elif test "x$enable_warnings_as_errors" = "xno"; then 51978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51979 $as_echo "no" >&6; } 51980 WARNINGS_AS_ERRORS=false 51981 elif test "x$enable_warnings_as_errors" = "x"; then 51982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 51983 $as_echo "yes (default)" >&6; } 51984 WARNINGS_AS_ERRORS=true 51985 else 51986 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 51987 fi 51988 51989 if test "x$WARNINGS_AS_ERRORS" = "xfalse"; then 51990 # Set legacy hotspot variable 51991 HOTSPOT_SET_WARNINGS_AS_ERRORS="WARNINGS_ARE_ERRORS=" 51992 else 51993 HOTSPOT_SET_WARNINGS_AS_ERRORS="" 51994 fi 51995 51996 51997 51998 51999 case "${TOOLCHAIN_TYPE}" in 52000 microsoft) 52001 DISABLE_WARNING_PREFIX="-wd" 52002 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 52003 ;; 52004 solstudio) 52005 DISABLE_WARNING_PREFIX="-erroff=" 52006 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 52007 ;; 52008 gcc) 52009 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 52010 52011 52012 52013 52014 52015 52016 52017 52018 52019 52020 52021 52022 52023 52024 52025 52026 52027 52028 52029 52030 52031 52032 52033 52034 52035 52036 52037 52038 52039 52040 52041 52042 52043 52044 52045 52046 52047 52048 52049 52050 52051 52052 52053 52054 52055 52056 52057 # Execute function body 52058 52059 52060 52061 52062 52063 52064 52065 52066 52067 52068 52069 52070 52071 52072 52073 52074 52075 52076 52077 52078 52079 52080 52081 52082 52083 52084 52085 52086 52087 52088 52089 52090 52091 52092 52093 52094 52095 52096 52097 52098 52099 52100 52101 52102 52103 52104 52105 52106 # Execute function body 52107 52108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52109 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52110 supports=yes 52111 52112 saved_cflags="$CFLAGS" 52113 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52114 ac_ext=c 52115 ac_cpp='$CPP $CPPFLAGS' 52116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52118 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52119 52120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52121 /* end confdefs.h. */ 52122 int i; 52123 _ACEOF 52124 if ac_fn_c_try_compile "$LINENO"; then : 52125 52126 else 52127 supports=no 52128 fi 52129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52130 ac_ext=cpp 52131 ac_cpp='$CXXCPP $CPPFLAGS' 52132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52135 52136 CFLAGS="$saved_cflags" 52137 52138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52139 $as_echo "$supports" >&6; } 52140 if test "x$supports" = "xyes" ; then 52141 : 52142 C_COMP_SUPPORTS="yes" 52143 else 52144 : 52145 C_COMP_SUPPORTS="no" 52146 fi 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 52173 52174 52175 52176 52177 52178 52179 52180 52181 52182 52183 52184 52185 52186 52187 52188 52189 52190 52191 52192 52193 52194 52195 52196 52197 52198 52199 52200 52201 52202 52203 52204 52205 52206 # Execute function body 52207 52208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52209 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52210 supports=yes 52211 52212 saved_cxxflags="$CXXFLAGS" 52213 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52214 ac_ext=cpp 52215 ac_cpp='$CXXCPP $CPPFLAGS' 52216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52219 52220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52221 /* end confdefs.h. */ 52222 int i; 52223 _ACEOF 52224 if ac_fn_cxx_try_compile "$LINENO"; then : 52225 52226 else 52227 supports=no 52228 fi 52229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52230 ac_ext=cpp 52231 ac_cpp='$CXXCPP $CPPFLAGS' 52232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52235 52236 CXXFLAGS="$saved_cxxflags" 52237 52238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52239 $as_echo "$supports" >&6; } 52240 if test "x$supports" = "xyes" ; then 52241 : 52242 CXX_COMP_SUPPORTS="yes" 52243 else 52244 : 52245 CXX_COMP_SUPPORTS="no" 52246 fi 52247 52248 52249 52250 52251 52252 52253 52254 52255 52256 52257 52258 52259 52260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52261 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52262 supports=no 52263 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52264 52265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52266 $as_echo "$supports" >&6; } 52267 if test "x$supports" = "xyes" ; then 52268 : 52269 GCC_CAN_DISABLE_WARNINGS=true 52270 else 52271 : 52272 GCC_CAN_DISABLE_WARNINGS=false 52273 52274 fi 52275 52276 52277 52278 52279 52280 52281 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 52282 DISABLE_WARNING_PREFIX="-Wno-" 52283 else 52284 DISABLE_WARNING_PREFIX= 52285 fi 52286 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 52287 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 52288 # CFLAGS since any target specific flags will likely not work with the 52289 # build compiler 52290 CC_OLD="$CC" 52291 CXX_OLD="$CXX" 52292 CC="$BUILD_CC" 52293 CXX="$BUILD_CXX" 52294 CFLAGS_OLD="$CFLAGS" 52295 CFLAGS="" 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 52333 52334 52335 52336 52337 52338 52339 52340 52341 52342 52343 # Execute function body 52344 52345 52346 52347 52348 52349 52350 52351 52352 52353 52354 52355 52356 52357 52358 52359 52360 52361 52362 52363 52364 52365 52366 52367 52368 52369 52370 52371 52372 52373 52374 52375 52376 52377 52378 52379 52380 52381 52382 52383 52384 52385 52386 52387 52388 52389 52390 52391 52392 # Execute function body 52393 52394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52395 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52396 supports=yes 52397 52398 saved_cflags="$CFLAGS" 52399 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52400 ac_ext=c 52401 ac_cpp='$CPP $CPPFLAGS' 52402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52404 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52405 52406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52407 /* end confdefs.h. */ 52408 int i; 52409 _ACEOF 52410 if ac_fn_c_try_compile "$LINENO"; then : 52411 52412 else 52413 supports=no 52414 fi 52415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52416 ac_ext=cpp 52417 ac_cpp='$CXXCPP $CPPFLAGS' 52418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52421 52422 CFLAGS="$saved_cflags" 52423 52424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52425 $as_echo "$supports" >&6; } 52426 if test "x$supports" = "xyes" ; then 52427 : 52428 C_COMP_SUPPORTS="yes" 52429 else 52430 : 52431 C_COMP_SUPPORTS="no" 52432 fi 52433 52434 52435 52436 52437 52438 52439 52440 52441 52442 52443 52444 52445 52446 52447 52448 52449 52450 52451 52452 52453 52454 52455 52456 52457 52458 52459 52460 52461 52462 52463 52464 52465 52466 52467 52468 52469 52470 52471 52472 52473 52474 52475 52476 52477 52478 52479 52480 52481 52482 52483 52484 52485 52486 52487 52488 52489 52490 52491 52492 # Execute function body 52493 52494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52495 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52496 supports=yes 52497 52498 saved_cxxflags="$CXXFLAGS" 52499 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52500 ac_ext=cpp 52501 ac_cpp='$CXXCPP $CPPFLAGS' 52502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52505 52506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52507 /* end confdefs.h. */ 52508 int i; 52509 _ACEOF 52510 if ac_fn_cxx_try_compile "$LINENO"; then : 52511 52512 else 52513 supports=no 52514 fi 52515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52516 ac_ext=cpp 52517 ac_cpp='$CXXCPP $CPPFLAGS' 52518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52521 52522 CXXFLAGS="$saved_cxxflags" 52523 52524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52525 $as_echo "$supports" >&6; } 52526 if test "x$supports" = "xyes" ; then 52527 : 52528 CXX_COMP_SUPPORTS="yes" 52529 else 52530 : 52531 CXX_COMP_SUPPORTS="no" 52532 fi 52533 52534 52535 52536 52537 52538 52539 52540 52541 52542 52543 52544 52545 52546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52547 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52548 supports=no 52549 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52550 52551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52552 $as_echo "$supports" >&6; } 52553 if test "x$supports" = "xyes" ; then 52554 : 52555 BUILD_CC_CAN_DISABLE_WARNINGS=true 52556 else 52557 : 52558 BUILD_CC_CAN_DISABLE_WARNINGS=false 52559 52560 fi 52561 52562 52563 52564 52565 52566 52567 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 52568 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 52569 else 52570 BUILD_CC_DISABLE_WARNING_PREFIX= 52571 fi 52572 CC="$CC_OLD" 52573 CXX="$CXX_OLD" 52574 CFLAGS="$CFLAGS_OLD" 52575 ;; 52576 clang) 52577 DISABLE_WARNING_PREFIX="-Wno-" 52578 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 52579 ;; 52580 xlc) 52581 DISABLE_WARNING_PREFIX="-qsuppress=" 52582 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 52583 ;; 52584 esac 52585 52586 52587 52588 52589 52590 # Setup debug symbols (need objcopy from the toolchain for that) 52591 52592 # 52593 # NATIVE_DEBUG_SYMBOLS 52594 # This must be done after the toolchain is setup, since we're looking at objcopy. 52595 # 52596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 52597 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 52598 52599 # Check whether --with-native-debug-symbols was given. 52600 if test "${with_native_debug_symbols+set}" = set; then : 52601 withval=$with_native_debug_symbols; 52602 if test "x$OPENJDK_TARGET_OS" = xaix; then 52603 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 52604 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 52605 fi 52606 fi 52607 52608 else 52609 52610 if test "x$OPENJDK_TARGET_OS" = xaix; then 52611 # AIX doesn't support 'zipped' so use 'internal' as default 52612 with_native_debug_symbols="internal" 52613 else 52614 if test "x$STATIC_BUILD" = xtrue; then 52615 with_native_debug_symbols="none" 52616 else 52617 with_native_debug_symbols="zipped" 52618 fi 52619 fi 52620 52621 fi 52622 52623 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 52624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 52625 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 52626 52627 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 52628 52629 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 52630 if test "x$OBJCOPY" = x; then 52631 # enabling of enable-debug-symbols and can't find objcopy 52632 # this is an error 52633 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 52634 fi 52635 fi 52636 52637 COMPILE_WITH_DEBUG_SYMBOLS=true 52638 COPY_DEBUG_SYMBOLS=true 52639 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 52640 52641 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true 52642 DEBUG_BINARIES=false 52643 STRIP_POLICY=min_strip 52644 52645 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 52646 COMPILE_WITH_DEBUG_SYMBOLS=false 52647 COPY_DEBUG_SYMBOLS=false 52648 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52649 52650 DEBUG_BINARIES=false 52651 STRIP_POLICY=no_strip 52652 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 52653 COMPILE_WITH_DEBUG_SYMBOLS=true 52654 COPY_DEBUG_SYMBOLS=false 52655 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52656 52657 # Hotspot legacy support, will turn on -g when COPY_DEBUG_SYMBOLS=false 52658 DEBUG_BINARIES=true 52659 STRIP_POLICY=no_strip 52660 STRIP="" 52661 52662 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 52663 52664 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 52665 if test "x$OBJCOPY" = x; then 52666 # enabling of enable-debug-symbols and can't find objcopy 52667 # this is an error 52668 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 52669 fi 52670 fi 52671 52672 COMPILE_WITH_DEBUG_SYMBOLS=true 52673 COPY_DEBUG_SYMBOLS=true 52674 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52675 52676 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true 52677 DEBUG_BINARIES=false 52678 STRIP_POLICY=min_strip 52679 else 52680 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 52681 fi 52682 52683 # --enable-debug-symbols is deprecated. 52684 # Please use --with-native-debug-symbols=[internal,external,zipped] . 52685 52686 # Check whether --enable-debug-symbols was given. 52687 if test "${enable_debug_symbols+set}" = set; then : 52688 enableval=$enable_debug_symbols; 52689 fi 52690 52691 if test "x$enable_debug_symbols" != x; then 52692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 52693 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 52694 52695 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 52696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 52697 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 52698 fi 52699 52700 fi 52701 52702 52703 # --enable-zip-debug-info is deprecated. 52704 # Please use --with-native-debug-symbols=zipped . 52705 52706 # Check whether --enable-zip-debug-info was given. 52707 if test "${enable_zip_debug_info+set}" = set; then : 52708 enableval=$enable_zip_debug_info; 52709 fi 52710 52711 if test "x$enable_zip_debug_info" != x; then 52712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 52713 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 52714 52715 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 52716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 52717 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 52718 fi 52719 52720 fi 52721 52722 52723 52724 52725 52726 52727 # Legacy values 52728 52729 52730 52731 52732 # Check whether --enable-native-coverage was given. 52733 if test "${enable_native_coverage+set}" = set; then : 52734 enableval=$enable_native_coverage; 52735 fi 52736 52737 GCOV_ENABLED="false" 52738 if test "x$enable_native_coverage" = "xyes"; then 52739 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 52740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 52741 $as_echo_n "checking if native coverage is enabled... " >&6; } 52742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52743 $as_echo "yes" >&6; } 52744 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 52745 GCOV_LDFLAGS="-fprofile-arcs" 52746 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 52747 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 52748 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 52749 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 52750 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 52751 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 52752 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 52753 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 52754 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 52755 GCOV_ENABLED="true" 52756 else 52757 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 52758 fi 52759 elif test "x$enable_native_coverage" = "xno"; then 52760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 52761 $as_echo_n "checking if native coverage is enabled... " >&6; } 52762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52763 $as_echo "no" >&6; } 52764 elif test "x$enable_native_coverage" != "x"; then 52765 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 52766 fi 52767 52768 52769 52770 52771 # Need toolchain to setup dtrace 52772 52773 # Test for dtrace dependencies 52774 # Check whether --enable-dtrace was given. 52775 if test "${enable_dtrace+set}" = set; then : 52776 enableval=$enable_dtrace; 52777 fi 52778 52779 52780 DTRACE_DEP_MISSING=false 52781 52782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 52783 $as_echo_n "checking for dtrace tool... " >&6; } 52784 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 52785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 52786 $as_echo "$DTRACE" >&6; } 52787 else 52788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 52789 $as_echo "not found, cannot build dtrace" >&6; } 52790 DTRACE_DEP_MISSING=true 52791 fi 52792 52793 for ac_header in sys/sdt.h 52794 do : 52795 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 52796 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 52797 cat >>confdefs.h <<_ACEOF 52798 #define HAVE_SYS_SDT_H 1 52799 _ACEOF 52800 DTRACE_HEADERS_OK=yes 52801 else 52802 DTRACE_HEADERS_OK=no 52803 fi 52804 52805 done 52806 52807 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 52808 DTRACE_DEP_MISSING=true 52809 fi 52810 52811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 52812 $as_echo_n "checking if dtrace should be built... " >&6; } 52813 if test "x$enable_dtrace" = "xyes"; then 52814 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 52815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 52816 $as_echo "no, missing dependencies" >&6; } 52817 52818 # Print a helpful message on how to acquire the necessary build dependency. 52819 # dtrace is the help tag: freetype, cups, alsa etc 52820 MISSING_DEPENDENCY=dtrace 52821 52822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52823 cygwin_help $MISSING_DEPENDENCY 52824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52825 msys_help $MISSING_DEPENDENCY 52826 else 52827 PKGHANDLER_COMMAND= 52828 52829 case $PKGHANDLER in 52830 apt-get) 52831 apt_help $MISSING_DEPENDENCY ;; 52832 yum) 52833 yum_help $MISSING_DEPENDENCY ;; 52834 port) 52835 port_help $MISSING_DEPENDENCY ;; 52836 pkgutil) 52837 pkgutil_help $MISSING_DEPENDENCY ;; 52838 pkgadd) 52839 pkgadd_help $MISSING_DEPENDENCY ;; 52840 esac 52841 52842 if test "x$PKGHANDLER_COMMAND" != x; then 52843 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 52844 fi 52845 fi 52846 52847 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 52848 else 52849 INCLUDE_DTRACE=true 52850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 52851 $as_echo "yes, forced" >&6; } 52852 fi 52853 elif test "x$enable_dtrace" = "xno"; then 52854 INCLUDE_DTRACE=false 52855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 52856 $as_echo "no, forced" >&6; } 52857 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 52858 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 52859 INCLUDE_DTRACE=false 52860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 52861 $as_echo "no, missing dependencies" >&6; } 52862 else 52863 INCLUDE_DTRACE=true 52864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 52865 $as_echo "yes, dependencies present" >&6; } 52866 fi 52867 else 52868 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 52869 fi 52870 52871 52872 52873 # Check whether --enable-aot was given. 52874 if test "${enable_aot+set}" = set; then : 52875 enableval=$enable_aot; 52876 fi 52877 52878 52879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot src is present" >&5 52880 $as_echo_n "checking if aot src is present... " >&6; } 52881 if test -d "$HOTSPOT_TOPDIR/src/jdk.aot"; then 52882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52883 $as_echo "yes" >&6; } 52884 52885 ENABLE_AOT_DEFAULT="false" 52886 # Only enable AOT on linux-X64. 52887 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = "xlinux-x86_64"; then 52888 ENABLE_AOT_DEFAULT="true" 52889 fi 52890 52891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 52892 $as_echo_n "checking if aot should be enabled... " >&6; } 52893 if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then 52894 if test "x$ENABLE_AOT_DEFAULT" = "xtrue"; then 52895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52896 $as_echo "yes" >&6; } 52897 ENABLE_AOT="true" 52898 else 52899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52900 $as_echo "no" >&6; } 52901 ENABLE_AOT="false" 52902 fi 52903 elif test "x$enable_aot" = "xyes"; then 52904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 52905 $as_echo "yes, forced" >&6; } 52906 ENABLE_AOT="true" 52907 elif test "x$enable_aot" = "xno"; then 52908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 52909 $as_echo "no, forced" >&6; } 52910 ENABLE_AOT="false" 52911 else 52912 as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5 52913 fi 52914 52915 else 52916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52917 $as_echo "no" >&6; } 52918 ENABLE_AOT="false" 52919 fi 52920 52921 52922 52923 52924 # The user can in some cases supply additional jvm features. For the custom 52925 # variant, this defines the entire variant. 52926 52927 # Check whether --with-jvm-features was given. 52928 if test "${with_jvm_features+set}" = set; then : 52929 withval=$with_jvm_features; 52930 fi 52931 52932 if test "x$with_jvm_features" != x; then 52933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 52934 $as_echo_n "checking additional JVM features... " >&6; } 52935 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 52936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 52937 $as_echo "$JVM_FEATURES" >&6; } 52938 fi 52939 52940 # Verify that dependencies are met for explicitly set features. 52941 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 52942 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 52943 fi 52944 52945 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 52946 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 52947 fi 52948 52949 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 52950 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 52951 fi 52952 52953 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 52954 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 52955 fi 52956 52957 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 52958 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 52959 fi 52960 52961 # Turn on additional features based on other parts of configure 52962 if test "x$INCLUDE_DTRACE" = "xtrue"; then 52963 JVM_FEATURES="$JVM_FEATURES dtrace" 52964 else 52965 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 52966 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 52967 fi 52968 fi 52969 52970 if test "x$STATIC_BUILD" = "xtrue"; then 52971 JVM_FEATURES="$JVM_FEATURES static-build" 52972 else 52973 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 52974 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 52975 fi 52976 fi 52977 52978 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52979 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 52980 as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5 52981 fi 52982 fi 52983 52984 if ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52985 if [[ " $JVM_FEATURES " =~ " shark " ]] ; then 52986 as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5 52987 fi 52988 fi 52989 52990 # Only enable jvmci on x86_64, sparcv9 and aarch64. 52991 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 52992 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 52993 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 52994 JVM_FEATURES_jvmci="jvmci" 52995 else 52996 JVM_FEATURES_jvmci="" 52997 fi 52998 52999 if test "x$ENABLE_AOT" = "xtrue"; then 53000 JVM_FEATURES_aot="aot" 53001 else 53002 JVM_FEATURES_aot="" 53003 fi 53004 53005 # All variants but minimal (and custom) get these features 53006 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti fprof vm-structs jni-check services management all-gcs nmt cds" 53007 53008 # Enable features depending on variant. 53009 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot" 53010 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 53011 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 53012 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES" 53013 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 53014 JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES" 53015 JVM_FEATURES_custom="$JVM_FEATURES" 53016 53017 53018 53019 53020 53021 53022 53023 53024 53025 # Used for verification of Makefiles by check-jvm-feature 53026 53027 53028 # We don't support --with-jvm-interpreter anymore, use zero instead. 53029 53030 53031 # Check whether --with-jvm-interpreter was given. 53032 if test "${with_jvm_interpreter+set}" = set; then : 53033 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 53034 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 53035 fi 53036 53037 53038 53039 53040 # Check whether --enable-hotspot-gtest was given. 53041 if test "${enable_hotspot_gtest+set}" = set; then : 53042 enableval=$enable_hotspot_gtest; 53043 fi 53044 53045 53046 if test -e "$HOTSPOT_TOPDIR/test/native"; then 53047 GTEST_DIR_EXISTS="true" 53048 else 53049 GTEST_DIR_EXISTS="false" 53050 fi 53051 53052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 53053 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 53054 if test "x$enable_hotspot_gtest" = "xyes"; then 53055 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 53056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 53057 $as_echo "yes, forced" >&6; } 53058 BUILD_GTEST="true" 53059 else 53060 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 53061 fi 53062 elif test "x$enable_hotspot_gtest" = "xno"; then 53063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 53064 $as_echo "no, forced" >&6; } 53065 BUILD_GTEST="false" 53066 elif test "x$enable_hotspot_gtest" = "x"; then 53067 if test "x$GTEST_DIR_EXISTS" = "xtrue" && test "x$OPENJDK_TARGET_OS" != "xaix"; then 53068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53069 $as_echo "yes" >&6; } 53070 BUILD_GTEST="true" 53071 else 53072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53073 $as_echo "no" >&6; } 53074 BUILD_GTEST="false" 53075 fi 53076 else 53077 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 53078 fi 53079 53080 53081 53082 53083 ############################################################################### 53084 # 53085 # Check dependencies for external and internal libraries. 53086 # 53087 ############################################################################### 53088 53089 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 53090 53091 # When using cygwin or msys, we need a wrapper binary that renames 53092 # /cygdrive/c/ arguments into c:/ arguments and peeks into 53093 # @files and rewrites these too! This wrapper binary is 53094 # called fixpath. 53095 FIXPATH= 53096 if test "x$OPENJDK_BUILD_OS" = xwindows; then 53097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 53098 $as_echo_n "checking if fixpath can be created... " >&6; } 53099 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 53100 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 53101 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 53102 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 53103 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 53104 FIXPATH="$FIXPATH_BIN -c" 53105 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 53106 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 53107 # @ was chosen as separator to minimize risk of other tools messing around with it 53108 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 53109 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 53110 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 53111 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 53112 fi 53113 FIXPATH_SRC_W="$FIXPATH_SRC" 53114 FIXPATH_BIN_W="$FIXPATH_BIN" 53115 53116 unix_path="$FIXPATH_SRC_W" 53117 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53118 windows_path=`$CYGPATH -m "$unix_path"` 53119 FIXPATH_SRC_W="$windows_path" 53120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53121 windows_path=`cmd //c echo $unix_path` 53122 FIXPATH_SRC_W="$windows_path" 53123 fi 53124 53125 53126 unix_path="$FIXPATH_BIN_W" 53127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53128 windows_path=`$CYGPATH -m "$unix_path"` 53129 FIXPATH_BIN_W="$windows_path" 53130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53131 windows_path=`cmd //c echo $unix_path` 53132 FIXPATH_BIN_W="$windows_path" 53133 fi 53134 53135 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 53136 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 53137 cd $FIXPATH_DIR 53138 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 53139 cd $CURDIR 53140 53141 if test ! -x $FIXPATH_BIN; then 53142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53143 $as_echo "no" >&6; } 53144 cat $FIXPATH_DIR/fixpath1.log 53145 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 53146 fi 53147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53148 $as_echo "yes" >&6; } 53149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 53150 $as_echo_n "checking if fixpath.exe works... " >&6; } 53151 cd $FIXPATH_DIR 53152 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 53153 > $FIXPATH_DIR/fixpath2.log 2>&1 53154 cd $CURDIR 53155 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 53156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53157 $as_echo "no" >&6; } 53158 cat $FIXPATH_DIR/fixpath2.log 53159 as_fn_error $? "fixpath did not work!" "$LINENO" 5 53160 fi 53161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53162 $as_echo "yes" >&6; } 53163 53164 FIXPATH_DETACH_FLAG="--detach" 53165 fi 53166 53167 53168 53169 53170 53171 53172 # Check if X11 is needed 53173 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 53174 # No X11 support on windows or macosx 53175 NEEDS_LIB_X11=false 53176 else 53177 # All other instances need X11, even if building headless only, libawt still 53178 # needs X11 headers. 53179 NEEDS_LIB_X11=true 53180 fi 53181 53182 # Check if cups is needed 53183 if test "x$OPENJDK_TARGET_OS" = xwindows; then 53184 # Windows have a separate print system 53185 NEEDS_LIB_CUPS=false 53186 else 53187 NEEDS_LIB_CUPS=true 53188 fi 53189 53190 # A custom hook may have set this already 53191 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 53192 NEEDS_LIB_FREETYPE=true 53193 fi 53194 53195 # Check if alsa is needed 53196 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53197 NEEDS_LIB_ALSA=true 53198 else 53199 NEEDS_LIB_ALSA=false 53200 fi 53201 53202 # Check if ffi is needed 53203 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53204 NEEDS_LIB_FFI=true 53205 else 53206 NEEDS_LIB_FFI=false 53207 fi 53208 53209 # Check if elf is needed (only for AOT build) 53210 if test "x$ENABLE_AOT" = "xtrue"; then 53211 NEEDS_LIB_JELFSHIM=true 53212 else 53213 NEEDS_LIB_JELFSHIM=false 53214 fi 53215 53216 53217 # statically link libstdc++ before C++ ABI is stablized on Linux unless 53218 # dynamic build is configured on command line. 53219 53220 # Check whether --with-stdc++lib was given. 53221 if test "${with_stdc__lib+set}" = set; then : 53222 withval=$with_stdc__lib; 53223 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 53224 && test "x$with_stdc__lib" != xdefault; then 53225 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 53226 fi 53227 53228 else 53229 with_stdc__lib=default 53230 53231 fi 53232 53233 53234 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53235 # Test if stdc++ can be linked statically. 53236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 53237 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 53238 STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc" 53239 ac_ext=cpp 53240 ac_cpp='$CXXCPP $CPPFLAGS' 53241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53244 53245 OLD_LIBS="$LIBS" 53246 LIBS="$STATIC_STDCXX_FLAGS" 53247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53248 /* end confdefs.h. */ 53249 53250 int 53251 main () 53252 { 53253 return 0; 53254 ; 53255 return 0; 53256 } 53257 _ACEOF 53258 if ac_fn_cxx_try_link "$LINENO"; then : 53259 has_static_libstdcxx=yes 53260 else 53261 has_static_libstdcxx=no 53262 fi 53263 rm -f core conftest.err conftest.$ac_objext \ 53264 conftest$ac_exeext conftest.$ac_ext 53265 LIBS="$OLD_LIBS" 53266 ac_ext=cpp 53267 ac_cpp='$CXXCPP $CPPFLAGS' 53268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53271 53272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 53273 $as_echo "$has_static_libstdcxx" >&6; } 53274 53275 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 53276 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 53277 fi 53278 53279 # If dynamic was requested, it's available since it would fail above otherwise. 53280 # If dynamic wasn't requested, go with static unless it isn't available. 53281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 53282 $as_echo_n "checking how to link with libstdc++... " >&6; } 53283 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno \ 53284 || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 53285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 53286 $as_echo "dynamic" >&6; } 53287 else 53288 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 53289 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 53290 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 53291 # just use the same setting as for the TARGET toolchain. 53292 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 53293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 53294 $as_echo "static" >&6; } 53295 fi 53296 fi 53297 53298 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 53299 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 53300 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 53301 fi 53302 53303 53304 53305 # Setup Windows runtime dlls 53306 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 53307 53308 53309 # Check whether --with-msvcr-dll was given. 53310 if test "${with_msvcr_dll+set}" = set; then : 53311 withval=$with_msvcr_dll; 53312 fi 53313 53314 53315 if test "x$with_msvcr_dll" != x; then 53316 # If given explicitely by user, do not probe. If not present, fail directly. 53317 53318 DLL_NAME="$MSVCR_NAME" 53319 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 53320 METHOD="--with-msvcr-dll" 53321 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53322 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53323 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53324 53325 # Need to check if the found msvcr is correct architecture 53326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53327 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53328 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53330 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53331 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53332 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53333 CORRECT_MSVCR_ARCH="PE32 executable" 53334 else 53335 CORRECT_MSVCR_ARCH="PE32+ executable" 53336 fi 53337 else 53338 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53339 CORRECT_MSVCR_ARCH=386 53340 else 53341 CORRECT_MSVCR_ARCH=x86-64 53342 fi 53343 fi 53344 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53346 $as_echo "ok" >&6; } 53347 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53348 53349 # Only process if variable expands to non-empty 53350 53351 if test "x$MSVC_DLL" != x; then 53352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53353 53354 # Input might be given as Windows format, start by converting to 53355 # unix format. 53356 path="$MSVC_DLL" 53357 new_path=`$CYGPATH -u "$path"` 53358 53359 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53360 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53361 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53362 # "foo.exe" is OK but "foo" is an error. 53363 # 53364 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53365 # It is also a way to make sure we got the proper file name for the real test later on. 53366 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53367 if test "x$test_shortpath" = x; then 53368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53369 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53370 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53371 fi 53372 53373 # Call helper function which possibly converts this using DOS-style short mode. 53374 # If so, the updated path is stored in $new_path. 53375 53376 input_path="$new_path" 53377 # Check if we need to convert this using DOS-style short mode. If the path 53378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53379 # take no chances and rewrite it. 53380 # Note: m4 eats our [], so we need to use [ and ] instead. 53381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53382 if test "x$has_forbidden_chars" != x; then 53383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53384 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53385 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53386 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53387 # Going to short mode and back again did indeed matter. Since short mode is 53388 # case insensitive, let's make it lowercase to improve readability. 53389 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53390 # Now convert it back to Unix-style (cygpath) 53391 input_path=`$CYGPATH -u "$shortmode_path"` 53392 new_path="$input_path" 53393 fi 53394 fi 53395 53396 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53397 if test "x$test_cygdrive_prefix" = x; then 53398 # As a simple fix, exclude /usr/bin since it's not a real path. 53399 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53400 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53401 # a path prefixed by /cygdrive for fixpath to work. 53402 new_path="$CYGWIN_ROOT_PATH$input_path" 53403 fi 53404 fi 53405 53406 53407 if test "x$path" != "x$new_path"; then 53408 MSVC_DLL="$new_path" 53409 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53410 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53411 fi 53412 53413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53414 53415 path="$MSVC_DLL" 53416 has_colon=`$ECHO $path | $GREP ^.:` 53417 new_path="$path" 53418 if test "x$has_colon" = x; then 53419 # Not in mixed or Windows style, start by that. 53420 new_path=`cmd //c echo $path` 53421 fi 53422 53423 53424 input_path="$new_path" 53425 # Check if we need to convert this using DOS-style short mode. If the path 53426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53427 # take no chances and rewrite it. 53428 # Note: m4 eats our [], so we need to use [ and ] instead. 53429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53430 if test "x$has_forbidden_chars" != x; then 53431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53432 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53433 fi 53434 53435 53436 windows_path="$new_path" 53437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53438 unix_path=`$CYGPATH -u "$windows_path"` 53439 new_path="$unix_path" 53440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53441 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53442 new_path="$unix_path" 53443 fi 53444 53445 if test "x$path" != "x$new_path"; then 53446 MSVC_DLL="$new_path" 53447 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53448 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53449 fi 53450 53451 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53452 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53453 53454 else 53455 # We're on a unix platform. Hooray! :) 53456 path="$MSVC_DLL" 53457 has_space=`$ECHO "$path" | $GREP " "` 53458 if test "x$has_space" != x; then 53459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53460 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53461 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53462 fi 53463 53464 # Use eval to expand a potential ~ 53465 eval path="$path" 53466 if test ! -f "$path" && test ! -d "$path"; then 53467 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53468 fi 53469 53470 if test -d "$path"; then 53471 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53472 else 53473 dir="`$DIRNAME "$path"`" 53474 base="`$BASENAME "$path"`" 53475 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53476 fi 53477 fi 53478 fi 53479 53480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53481 $as_echo_n "checking for $DLL_NAME... " >&6; } 53482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53483 $as_echo "$MSVC_DLL" >&6; } 53484 else 53485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53486 $as_echo "incorrect, ignoring" >&6; } 53487 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53488 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53489 fi 53490 fi 53491 53492 if test "x$MSVC_DLL" = x; then 53493 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 53494 fi 53495 MSVCR_DLL="$MSVC_DLL" 53496 elif test "x$DEVKIT_MSVCR_DLL" != x; then 53497 53498 DLL_NAME="$MSVCR_NAME" 53499 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 53500 METHOD="devkit" 53501 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53502 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53503 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53504 53505 # Need to check if the found msvcr is correct architecture 53506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53507 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53508 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53510 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53511 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53512 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53513 CORRECT_MSVCR_ARCH="PE32 executable" 53514 else 53515 CORRECT_MSVCR_ARCH="PE32+ executable" 53516 fi 53517 else 53518 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53519 CORRECT_MSVCR_ARCH=386 53520 else 53521 CORRECT_MSVCR_ARCH=x86-64 53522 fi 53523 fi 53524 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53526 $as_echo "ok" >&6; } 53527 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53528 53529 # Only process if variable expands to non-empty 53530 53531 if test "x$MSVC_DLL" != x; then 53532 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53533 53534 # Input might be given as Windows format, start by converting to 53535 # unix format. 53536 path="$MSVC_DLL" 53537 new_path=`$CYGPATH -u "$path"` 53538 53539 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53540 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53541 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53542 # "foo.exe" is OK but "foo" is an error. 53543 # 53544 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53545 # It is also a way to make sure we got the proper file name for the real test later on. 53546 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53547 if test "x$test_shortpath" = x; then 53548 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53549 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53550 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53551 fi 53552 53553 # Call helper function which possibly converts this using DOS-style short mode. 53554 # If so, the updated path is stored in $new_path. 53555 53556 input_path="$new_path" 53557 # Check if we need to convert this using DOS-style short mode. If the path 53558 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53559 # take no chances and rewrite it. 53560 # Note: m4 eats our [], so we need to use [ and ] instead. 53561 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53562 if test "x$has_forbidden_chars" != x; then 53563 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53564 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53565 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53566 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53567 # Going to short mode and back again did indeed matter. Since short mode is 53568 # case insensitive, let's make it lowercase to improve readability. 53569 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53570 # Now convert it back to Unix-style (cygpath) 53571 input_path=`$CYGPATH -u "$shortmode_path"` 53572 new_path="$input_path" 53573 fi 53574 fi 53575 53576 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53577 if test "x$test_cygdrive_prefix" = x; then 53578 # As a simple fix, exclude /usr/bin since it's not a real path. 53579 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53580 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53581 # a path prefixed by /cygdrive for fixpath to work. 53582 new_path="$CYGWIN_ROOT_PATH$input_path" 53583 fi 53584 fi 53585 53586 53587 if test "x$path" != "x$new_path"; then 53588 MSVC_DLL="$new_path" 53589 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53590 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53591 fi 53592 53593 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53594 53595 path="$MSVC_DLL" 53596 has_colon=`$ECHO $path | $GREP ^.:` 53597 new_path="$path" 53598 if test "x$has_colon" = x; then 53599 # Not in mixed or Windows style, start by that. 53600 new_path=`cmd //c echo $path` 53601 fi 53602 53603 53604 input_path="$new_path" 53605 # Check if we need to convert this using DOS-style short mode. If the path 53606 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53607 # take no chances and rewrite it. 53608 # Note: m4 eats our [], so we need to use [ and ] instead. 53609 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53610 if test "x$has_forbidden_chars" != x; then 53611 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53612 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53613 fi 53614 53615 53616 windows_path="$new_path" 53617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53618 unix_path=`$CYGPATH -u "$windows_path"` 53619 new_path="$unix_path" 53620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53621 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53622 new_path="$unix_path" 53623 fi 53624 53625 if test "x$path" != "x$new_path"; then 53626 MSVC_DLL="$new_path" 53627 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53628 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53629 fi 53630 53631 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53632 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53633 53634 else 53635 # We're on a unix platform. Hooray! :) 53636 path="$MSVC_DLL" 53637 has_space=`$ECHO "$path" | $GREP " "` 53638 if test "x$has_space" != x; then 53639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53640 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53641 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53642 fi 53643 53644 # Use eval to expand a potential ~ 53645 eval path="$path" 53646 if test ! -f "$path" && test ! -d "$path"; then 53647 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53648 fi 53649 53650 if test -d "$path"; then 53651 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53652 else 53653 dir="`$DIRNAME "$path"`" 53654 base="`$BASENAME "$path"`" 53655 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53656 fi 53657 fi 53658 fi 53659 53660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53661 $as_echo_n "checking for $DLL_NAME... " >&6; } 53662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53663 $as_echo "$MSVC_DLL" >&6; } 53664 else 53665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53666 $as_echo "incorrect, ignoring" >&6; } 53667 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53668 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53669 fi 53670 fi 53671 53672 if test "x$MSVC_DLL" = x; then 53673 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 53674 fi 53675 MSVCR_DLL="$MSVC_DLL" 53676 else 53677 53678 DLL_NAME="${MSVCR_NAME}" 53679 MSVC_DLL= 53680 53681 if test "x$MSVC_DLL" = x; then 53682 # Probe: Using well-known location from Visual Studio 10.0 53683 if test "x$VCINSTALLDIR" != x; then 53684 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 53685 53686 windows_path="$CYGWIN_VC_INSTALL_DIR" 53687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53688 unix_path=`$CYGPATH -u "$windows_path"` 53689 CYGWIN_VC_INSTALL_DIR="$unix_path" 53690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53692 CYGWIN_VC_INSTALL_DIR="$unix_path" 53693 fi 53694 53695 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 53696 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 53697 else 53698 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 53699 fi 53700 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 53701 53702 DLL_NAME="$DLL_NAME" 53703 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53704 METHOD="well-known location in VCINSTALLDIR" 53705 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53706 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53707 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53708 53709 # Need to check if the found msvcr is correct architecture 53710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53711 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53712 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53714 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53715 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53716 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53717 CORRECT_MSVCR_ARCH="PE32 executable" 53718 else 53719 CORRECT_MSVCR_ARCH="PE32+ executable" 53720 fi 53721 else 53722 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53723 CORRECT_MSVCR_ARCH=386 53724 else 53725 CORRECT_MSVCR_ARCH=x86-64 53726 fi 53727 fi 53728 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53730 $as_echo "ok" >&6; } 53731 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53732 53733 # Only process if variable expands to non-empty 53734 53735 if test "x$MSVC_DLL" != x; then 53736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53737 53738 # Input might be given as Windows format, start by converting to 53739 # unix format. 53740 path="$MSVC_DLL" 53741 new_path=`$CYGPATH -u "$path"` 53742 53743 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53744 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53745 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53746 # "foo.exe" is OK but "foo" is an error. 53747 # 53748 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53749 # It is also a way to make sure we got the proper file name for the real test later on. 53750 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53751 if test "x$test_shortpath" = x; then 53752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53753 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53754 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53755 fi 53756 53757 # Call helper function which possibly converts this using DOS-style short mode. 53758 # If so, the updated path is stored in $new_path. 53759 53760 input_path="$new_path" 53761 # Check if we need to convert this using DOS-style short mode. If the path 53762 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53763 # take no chances and rewrite it. 53764 # Note: m4 eats our [], so we need to use [ and ] instead. 53765 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53766 if test "x$has_forbidden_chars" != x; then 53767 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53768 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53769 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53770 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53771 # Going to short mode and back again did indeed matter. Since short mode is 53772 # case insensitive, let's make it lowercase to improve readability. 53773 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53774 # Now convert it back to Unix-style (cygpath) 53775 input_path=`$CYGPATH -u "$shortmode_path"` 53776 new_path="$input_path" 53777 fi 53778 fi 53779 53780 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53781 if test "x$test_cygdrive_prefix" = x; then 53782 # As a simple fix, exclude /usr/bin since it's not a real path. 53783 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53784 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53785 # a path prefixed by /cygdrive for fixpath to work. 53786 new_path="$CYGWIN_ROOT_PATH$input_path" 53787 fi 53788 fi 53789 53790 53791 if test "x$path" != "x$new_path"; then 53792 MSVC_DLL="$new_path" 53793 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53794 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53795 fi 53796 53797 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53798 53799 path="$MSVC_DLL" 53800 has_colon=`$ECHO $path | $GREP ^.:` 53801 new_path="$path" 53802 if test "x$has_colon" = x; then 53803 # Not in mixed or Windows style, start by that. 53804 new_path=`cmd //c echo $path` 53805 fi 53806 53807 53808 input_path="$new_path" 53809 # Check if we need to convert this using DOS-style short mode. If the path 53810 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53811 # take no chances and rewrite it. 53812 # Note: m4 eats our [], so we need to use [ and ] instead. 53813 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53814 if test "x$has_forbidden_chars" != x; then 53815 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53816 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53817 fi 53818 53819 53820 windows_path="$new_path" 53821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53822 unix_path=`$CYGPATH -u "$windows_path"` 53823 new_path="$unix_path" 53824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53825 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53826 new_path="$unix_path" 53827 fi 53828 53829 if test "x$path" != "x$new_path"; then 53830 MSVC_DLL="$new_path" 53831 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53832 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53833 fi 53834 53835 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53836 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53837 53838 else 53839 # We're on a unix platform. Hooray! :) 53840 path="$MSVC_DLL" 53841 has_space=`$ECHO "$path" | $GREP " "` 53842 if test "x$has_space" != x; then 53843 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53844 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53845 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53846 fi 53847 53848 # Use eval to expand a potential ~ 53849 eval path="$path" 53850 if test ! -f "$path" && test ! -d "$path"; then 53851 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53852 fi 53853 53854 if test -d "$path"; then 53855 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53856 else 53857 dir="`$DIRNAME "$path"`" 53858 base="`$BASENAME "$path"`" 53859 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53860 fi 53861 fi 53862 fi 53863 53864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53865 $as_echo_n "checking for $DLL_NAME... " >&6; } 53866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53867 $as_echo "$MSVC_DLL" >&6; } 53868 else 53869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53870 $as_echo "incorrect, ignoring" >&6; } 53871 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53872 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53873 fi 53874 fi 53875 53876 fi 53877 fi 53878 53879 if test "x$MSVC_DLL" = x; then 53880 # Probe: Check in the Boot JDK directory. 53881 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 53882 53883 DLL_NAME="$DLL_NAME" 53884 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53885 METHOD="well-known location in Boot JDK" 53886 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53887 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53888 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53889 53890 # Need to check if the found msvcr is correct architecture 53891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53892 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53893 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53895 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53896 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53897 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53898 CORRECT_MSVCR_ARCH="PE32 executable" 53899 else 53900 CORRECT_MSVCR_ARCH="PE32+ executable" 53901 fi 53902 else 53903 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53904 CORRECT_MSVCR_ARCH=386 53905 else 53906 CORRECT_MSVCR_ARCH=x86-64 53907 fi 53908 fi 53909 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53911 $as_echo "ok" >&6; } 53912 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53913 53914 # Only process if variable expands to non-empty 53915 53916 if test "x$MSVC_DLL" != x; then 53917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53918 53919 # Input might be given as Windows format, start by converting to 53920 # unix format. 53921 path="$MSVC_DLL" 53922 new_path=`$CYGPATH -u "$path"` 53923 53924 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53925 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53926 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53927 # "foo.exe" is OK but "foo" is an error. 53928 # 53929 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53930 # It is also a way to make sure we got the proper file name for the real test later on. 53931 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53932 if test "x$test_shortpath" = x; then 53933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53934 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53935 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53936 fi 53937 53938 # Call helper function which possibly converts this using DOS-style short mode. 53939 # If so, the updated path is stored in $new_path. 53940 53941 input_path="$new_path" 53942 # Check if we need to convert this using DOS-style short mode. If the path 53943 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53944 # take no chances and rewrite it. 53945 # Note: m4 eats our [], so we need to use [ and ] instead. 53946 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53947 if test "x$has_forbidden_chars" != x; then 53948 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53949 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53950 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53951 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53952 # Going to short mode and back again did indeed matter. Since short mode is 53953 # case insensitive, let's make it lowercase to improve readability. 53954 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53955 # Now convert it back to Unix-style (cygpath) 53956 input_path=`$CYGPATH -u "$shortmode_path"` 53957 new_path="$input_path" 53958 fi 53959 fi 53960 53961 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53962 if test "x$test_cygdrive_prefix" = x; then 53963 # As a simple fix, exclude /usr/bin since it's not a real path. 53964 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53965 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53966 # a path prefixed by /cygdrive for fixpath to work. 53967 new_path="$CYGWIN_ROOT_PATH$input_path" 53968 fi 53969 fi 53970 53971 53972 if test "x$path" != "x$new_path"; then 53973 MSVC_DLL="$new_path" 53974 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53975 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53976 fi 53977 53978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53979 53980 path="$MSVC_DLL" 53981 has_colon=`$ECHO $path | $GREP ^.:` 53982 new_path="$path" 53983 if test "x$has_colon" = x; then 53984 # Not in mixed or Windows style, start by that. 53985 new_path=`cmd //c echo $path` 53986 fi 53987 53988 53989 input_path="$new_path" 53990 # Check if we need to convert this using DOS-style short mode. If the path 53991 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53992 # take no chances and rewrite it. 53993 # Note: m4 eats our [], so we need to use [ and ] instead. 53994 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53995 if test "x$has_forbidden_chars" != x; then 53996 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53997 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53998 fi 53999 54000 54001 windows_path="$new_path" 54002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54003 unix_path=`$CYGPATH -u "$windows_path"` 54004 new_path="$unix_path" 54005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54007 new_path="$unix_path" 54008 fi 54009 54010 if test "x$path" != "x$new_path"; then 54011 MSVC_DLL="$new_path" 54012 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54013 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54014 fi 54015 54016 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54017 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54018 54019 else 54020 # We're on a unix platform. Hooray! :) 54021 path="$MSVC_DLL" 54022 has_space=`$ECHO "$path" | $GREP " "` 54023 if test "x$has_space" != x; then 54024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54025 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54026 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54027 fi 54028 54029 # Use eval to expand a potential ~ 54030 eval path="$path" 54031 if test ! -f "$path" && test ! -d "$path"; then 54032 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54033 fi 54034 54035 if test -d "$path"; then 54036 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54037 else 54038 dir="`$DIRNAME "$path"`" 54039 base="`$BASENAME "$path"`" 54040 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54041 fi 54042 fi 54043 fi 54044 54045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54046 $as_echo_n "checking for $DLL_NAME... " >&6; } 54047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54048 $as_echo "$MSVC_DLL" >&6; } 54049 else 54050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54051 $as_echo "incorrect, ignoring" >&6; } 54052 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54053 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54054 fi 54055 fi 54056 54057 fi 54058 54059 if test "x$MSVC_DLL" = x; then 54060 # Probe: Look in the Windows system32 directory 54061 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 54062 54063 windows_path="$CYGWIN_SYSTEMROOT" 54064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54065 unix_path=`$CYGPATH -u "$windows_path"` 54066 CYGWIN_SYSTEMROOT="$unix_path" 54067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54068 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54069 CYGWIN_SYSTEMROOT="$unix_path" 54070 fi 54071 54072 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 54073 54074 DLL_NAME="$DLL_NAME" 54075 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54076 METHOD="well-known location in SYSTEMROOT" 54077 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54078 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54079 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54080 54081 # Need to check if the found msvcr is correct architecture 54082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54083 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54084 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54085 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54086 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54087 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54088 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54089 CORRECT_MSVCR_ARCH="PE32 executable" 54090 else 54091 CORRECT_MSVCR_ARCH="PE32+ executable" 54092 fi 54093 else 54094 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54095 CORRECT_MSVCR_ARCH=386 54096 else 54097 CORRECT_MSVCR_ARCH=x86-64 54098 fi 54099 fi 54100 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54102 $as_echo "ok" >&6; } 54103 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54104 54105 # Only process if variable expands to non-empty 54106 54107 if test "x$MSVC_DLL" != x; then 54108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54109 54110 # Input might be given as Windows format, start by converting to 54111 # unix format. 54112 path="$MSVC_DLL" 54113 new_path=`$CYGPATH -u "$path"` 54114 54115 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54116 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54117 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54118 # "foo.exe" is OK but "foo" is an error. 54119 # 54120 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54121 # It is also a way to make sure we got the proper file name for the real test later on. 54122 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54123 if test "x$test_shortpath" = x; then 54124 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54125 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54126 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54127 fi 54128 54129 # Call helper function which possibly converts this using DOS-style short mode. 54130 # If so, the updated path is stored in $new_path. 54131 54132 input_path="$new_path" 54133 # Check if we need to convert this using DOS-style short mode. If the path 54134 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54135 # take no chances and rewrite it. 54136 # Note: m4 eats our [], so we need to use [ and ] instead. 54137 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54138 if test "x$has_forbidden_chars" != x; then 54139 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54140 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54141 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54142 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54143 # Going to short mode and back again did indeed matter. Since short mode is 54144 # case insensitive, let's make it lowercase to improve readability. 54145 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54146 # Now convert it back to Unix-style (cygpath) 54147 input_path=`$CYGPATH -u "$shortmode_path"` 54148 new_path="$input_path" 54149 fi 54150 fi 54151 54152 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54153 if test "x$test_cygdrive_prefix" = x; then 54154 # As a simple fix, exclude /usr/bin since it's not a real path. 54155 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54156 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54157 # a path prefixed by /cygdrive for fixpath to work. 54158 new_path="$CYGWIN_ROOT_PATH$input_path" 54159 fi 54160 fi 54161 54162 54163 if test "x$path" != "x$new_path"; then 54164 MSVC_DLL="$new_path" 54165 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54166 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54167 fi 54168 54169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54170 54171 path="$MSVC_DLL" 54172 has_colon=`$ECHO $path | $GREP ^.:` 54173 new_path="$path" 54174 if test "x$has_colon" = x; then 54175 # Not in mixed or Windows style, start by that. 54176 new_path=`cmd //c echo $path` 54177 fi 54178 54179 54180 input_path="$new_path" 54181 # Check if we need to convert this using DOS-style short mode. If the path 54182 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54183 # take no chances and rewrite it. 54184 # Note: m4 eats our [], so we need to use [ and ] instead. 54185 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54186 if test "x$has_forbidden_chars" != x; then 54187 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54188 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54189 fi 54190 54191 54192 windows_path="$new_path" 54193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54194 unix_path=`$CYGPATH -u "$windows_path"` 54195 new_path="$unix_path" 54196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54197 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54198 new_path="$unix_path" 54199 fi 54200 54201 if test "x$path" != "x$new_path"; then 54202 MSVC_DLL="$new_path" 54203 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54204 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54205 fi 54206 54207 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54208 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54209 54210 else 54211 # We're on a unix platform. Hooray! :) 54212 path="$MSVC_DLL" 54213 has_space=`$ECHO "$path" | $GREP " "` 54214 if test "x$has_space" != x; then 54215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54216 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54217 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54218 fi 54219 54220 # Use eval to expand a potential ~ 54221 eval path="$path" 54222 if test ! -f "$path" && test ! -d "$path"; then 54223 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54224 fi 54225 54226 if test -d "$path"; then 54227 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54228 else 54229 dir="`$DIRNAME "$path"`" 54230 base="`$BASENAME "$path"`" 54231 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54232 fi 54233 fi 54234 fi 54235 54236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54237 $as_echo_n "checking for $DLL_NAME... " >&6; } 54238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54239 $as_echo "$MSVC_DLL" >&6; } 54240 else 54241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54242 $as_echo "incorrect, ignoring" >&6; } 54243 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54244 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54245 fi 54246 fi 54247 54248 fi 54249 54250 if test "x$MSVC_DLL" = x; then 54251 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 54252 if test "x$VS100COMNTOOLS" != x; then 54253 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 54254 54255 windows_path="$CYGWIN_VS_TOOLS_DIR" 54256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54257 unix_path=`$CYGPATH -u "$windows_path"` 54258 CYGWIN_VS_TOOLS_DIR="$unix_path" 54259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54261 CYGWIN_VS_TOOLS_DIR="$unix_path" 54262 fi 54263 54264 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54265 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 54266 | $GREP -i /x64/ | $HEAD --lines 1` 54267 else 54268 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 54269 | $GREP -i /x86/ | $HEAD --lines 1` 54270 fi 54271 54272 DLL_NAME="$DLL_NAME" 54273 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54274 METHOD="search of VS100COMNTOOLS" 54275 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54276 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54277 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54278 54279 # Need to check if the found msvcr is correct architecture 54280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54281 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54282 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54283 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54284 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54285 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54286 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54287 CORRECT_MSVCR_ARCH="PE32 executable" 54288 else 54289 CORRECT_MSVCR_ARCH="PE32+ executable" 54290 fi 54291 else 54292 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54293 CORRECT_MSVCR_ARCH=386 54294 else 54295 CORRECT_MSVCR_ARCH=x86-64 54296 fi 54297 fi 54298 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54300 $as_echo "ok" >&6; } 54301 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54302 54303 # Only process if variable expands to non-empty 54304 54305 if test "x$MSVC_DLL" != x; then 54306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54307 54308 # Input might be given as Windows format, start by converting to 54309 # unix format. 54310 path="$MSVC_DLL" 54311 new_path=`$CYGPATH -u "$path"` 54312 54313 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54314 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54315 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54316 # "foo.exe" is OK but "foo" is an error. 54317 # 54318 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54319 # It is also a way to make sure we got the proper file name for the real test later on. 54320 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54321 if test "x$test_shortpath" = x; then 54322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54323 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54324 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54325 fi 54326 54327 # Call helper function which possibly converts this using DOS-style short mode. 54328 # If so, the updated path is stored in $new_path. 54329 54330 input_path="$new_path" 54331 # Check if we need to convert this using DOS-style short mode. If the path 54332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54333 # take no chances and rewrite it. 54334 # Note: m4 eats our [], so we need to use [ and ] instead. 54335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54336 if test "x$has_forbidden_chars" != x; then 54337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54338 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54339 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54340 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54341 # Going to short mode and back again did indeed matter. Since short mode is 54342 # case insensitive, let's make it lowercase to improve readability. 54343 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54344 # Now convert it back to Unix-style (cygpath) 54345 input_path=`$CYGPATH -u "$shortmode_path"` 54346 new_path="$input_path" 54347 fi 54348 fi 54349 54350 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54351 if test "x$test_cygdrive_prefix" = x; then 54352 # As a simple fix, exclude /usr/bin since it's not a real path. 54353 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54354 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54355 # a path prefixed by /cygdrive for fixpath to work. 54356 new_path="$CYGWIN_ROOT_PATH$input_path" 54357 fi 54358 fi 54359 54360 54361 if test "x$path" != "x$new_path"; then 54362 MSVC_DLL="$new_path" 54363 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54364 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54365 fi 54366 54367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54368 54369 path="$MSVC_DLL" 54370 has_colon=`$ECHO $path | $GREP ^.:` 54371 new_path="$path" 54372 if test "x$has_colon" = x; then 54373 # Not in mixed or Windows style, start by that. 54374 new_path=`cmd //c echo $path` 54375 fi 54376 54377 54378 input_path="$new_path" 54379 # Check if we need to convert this using DOS-style short mode. If the path 54380 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54381 # take no chances and rewrite it. 54382 # Note: m4 eats our [], so we need to use [ and ] instead. 54383 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54384 if test "x$has_forbidden_chars" != x; then 54385 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54386 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54387 fi 54388 54389 54390 windows_path="$new_path" 54391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54392 unix_path=`$CYGPATH -u "$windows_path"` 54393 new_path="$unix_path" 54394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54396 new_path="$unix_path" 54397 fi 54398 54399 if test "x$path" != "x$new_path"; then 54400 MSVC_DLL="$new_path" 54401 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54402 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54403 fi 54404 54405 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54406 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54407 54408 else 54409 # We're on a unix platform. Hooray! :) 54410 path="$MSVC_DLL" 54411 has_space=`$ECHO "$path" | $GREP " "` 54412 if test "x$has_space" != x; then 54413 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54414 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54415 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54416 fi 54417 54418 # Use eval to expand a potential ~ 54419 eval path="$path" 54420 if test ! -f "$path" && test ! -d "$path"; then 54421 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54422 fi 54423 54424 if test -d "$path"; then 54425 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54426 else 54427 dir="`$DIRNAME "$path"`" 54428 base="`$BASENAME "$path"`" 54429 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54430 fi 54431 fi 54432 fi 54433 54434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54435 $as_echo_n "checking for $DLL_NAME... " >&6; } 54436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54437 $as_echo "$MSVC_DLL" >&6; } 54438 else 54439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54440 $as_echo "incorrect, ignoring" >&6; } 54441 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54442 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54443 fi 54444 fi 54445 54446 fi 54447 fi 54448 54449 if test "x$MSVC_DLL" = x; then 54450 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 54451 # (This was the original behaviour; kept since it might turn something up) 54452 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 54453 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54454 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54455 | $GREP x64 | $HEAD --lines 1` 54456 else 54457 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54458 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 54459 if test "x$POSSIBLE_MSVC_DLL" = x; then 54460 # We're grasping at straws now... 54461 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54462 | $HEAD --lines 1` 54463 fi 54464 fi 54465 54466 54467 DLL_NAME="$DLL_NAME" 54468 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54469 METHOD="search of VCINSTALLDIR" 54470 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54471 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54472 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54473 54474 # Need to check if the found msvcr is correct architecture 54475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54476 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54477 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54479 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54480 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54481 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54482 CORRECT_MSVCR_ARCH="PE32 executable" 54483 else 54484 CORRECT_MSVCR_ARCH="PE32+ executable" 54485 fi 54486 else 54487 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54488 CORRECT_MSVCR_ARCH=386 54489 else 54490 CORRECT_MSVCR_ARCH=x86-64 54491 fi 54492 fi 54493 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54495 $as_echo "ok" >&6; } 54496 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54497 54498 # Only process if variable expands to non-empty 54499 54500 if test "x$MSVC_DLL" != x; then 54501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54502 54503 # Input might be given as Windows format, start by converting to 54504 # unix format. 54505 path="$MSVC_DLL" 54506 new_path=`$CYGPATH -u "$path"` 54507 54508 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54509 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54510 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54511 # "foo.exe" is OK but "foo" is an error. 54512 # 54513 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54514 # It is also a way to make sure we got the proper file name for the real test later on. 54515 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54516 if test "x$test_shortpath" = x; then 54517 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54518 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54519 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54520 fi 54521 54522 # Call helper function which possibly converts this using DOS-style short mode. 54523 # If so, the updated path is stored in $new_path. 54524 54525 input_path="$new_path" 54526 # Check if we need to convert this using DOS-style short mode. If the path 54527 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54528 # take no chances and rewrite it. 54529 # Note: m4 eats our [], so we need to use [ and ] instead. 54530 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54531 if test "x$has_forbidden_chars" != x; then 54532 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54533 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54534 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54535 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54536 # Going to short mode and back again did indeed matter. Since short mode is 54537 # case insensitive, let's make it lowercase to improve readability. 54538 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54539 # Now convert it back to Unix-style (cygpath) 54540 input_path=`$CYGPATH -u "$shortmode_path"` 54541 new_path="$input_path" 54542 fi 54543 fi 54544 54545 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54546 if test "x$test_cygdrive_prefix" = x; then 54547 # As a simple fix, exclude /usr/bin since it's not a real path. 54548 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54549 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54550 # a path prefixed by /cygdrive for fixpath to work. 54551 new_path="$CYGWIN_ROOT_PATH$input_path" 54552 fi 54553 fi 54554 54555 54556 if test "x$path" != "x$new_path"; then 54557 MSVC_DLL="$new_path" 54558 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54559 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54560 fi 54561 54562 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54563 54564 path="$MSVC_DLL" 54565 has_colon=`$ECHO $path | $GREP ^.:` 54566 new_path="$path" 54567 if test "x$has_colon" = x; then 54568 # Not in mixed or Windows style, start by that. 54569 new_path=`cmd //c echo $path` 54570 fi 54571 54572 54573 input_path="$new_path" 54574 # Check if we need to convert this using DOS-style short mode. If the path 54575 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54576 # take no chances and rewrite it. 54577 # Note: m4 eats our [], so we need to use [ and ] instead. 54578 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54579 if test "x$has_forbidden_chars" != x; then 54580 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54581 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54582 fi 54583 54584 54585 windows_path="$new_path" 54586 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54587 unix_path=`$CYGPATH -u "$windows_path"` 54588 new_path="$unix_path" 54589 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54590 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54591 new_path="$unix_path" 54592 fi 54593 54594 if test "x$path" != "x$new_path"; then 54595 MSVC_DLL="$new_path" 54596 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54597 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54598 fi 54599 54600 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54601 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54602 54603 else 54604 # We're on a unix platform. Hooray! :) 54605 path="$MSVC_DLL" 54606 has_space=`$ECHO "$path" | $GREP " "` 54607 if test "x$has_space" != x; then 54608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54609 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54610 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54611 fi 54612 54613 # Use eval to expand a potential ~ 54614 eval path="$path" 54615 if test ! -f "$path" && test ! -d "$path"; then 54616 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54617 fi 54618 54619 if test -d "$path"; then 54620 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54621 else 54622 dir="`$DIRNAME "$path"`" 54623 base="`$BASENAME "$path"`" 54624 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54625 fi 54626 fi 54627 fi 54628 54629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54630 $as_echo_n "checking for $DLL_NAME... " >&6; } 54631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54632 $as_echo "$MSVC_DLL" >&6; } 54633 else 54634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54635 $as_echo "incorrect, ignoring" >&6; } 54636 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54637 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54638 fi 54639 fi 54640 54641 fi 54642 fi 54643 54644 if test "x$MSVC_DLL" = x; then 54645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54646 $as_echo_n "checking for $DLL_NAME... " >&6; } 54647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54648 $as_echo "no" >&6; } 54649 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 54650 fi 54651 54652 MSVCR_DLL="$MSVC_DLL" 54653 fi 54654 54655 54656 54657 # Check whether --with-msvcp-dll was given. 54658 if test "${with_msvcp_dll+set}" = set; then : 54659 withval=$with_msvcp_dll; 54660 fi 54661 54662 54663 if test "x$MSVCP_NAME" != "x"; then 54664 if test "x$with_msvcp_dll" != x; then 54665 # If given explicitely by user, do not probe. If not present, fail directly. 54666 54667 DLL_NAME="$MSVCP_NAME" 54668 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 54669 METHOD="--with-msvcp-dll" 54670 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54671 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54672 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54673 54674 # Need to check if the found msvcr is correct architecture 54675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54676 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54677 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54679 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54680 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54681 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54682 CORRECT_MSVCR_ARCH="PE32 executable" 54683 else 54684 CORRECT_MSVCR_ARCH="PE32+ executable" 54685 fi 54686 else 54687 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54688 CORRECT_MSVCR_ARCH=386 54689 else 54690 CORRECT_MSVCR_ARCH=x86-64 54691 fi 54692 fi 54693 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54695 $as_echo "ok" >&6; } 54696 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54697 54698 # Only process if variable expands to non-empty 54699 54700 if test "x$MSVC_DLL" != x; then 54701 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54702 54703 # Input might be given as Windows format, start by converting to 54704 # unix format. 54705 path="$MSVC_DLL" 54706 new_path=`$CYGPATH -u "$path"` 54707 54708 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54709 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54710 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54711 # "foo.exe" is OK but "foo" is an error. 54712 # 54713 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54714 # It is also a way to make sure we got the proper file name for the real test later on. 54715 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54716 if test "x$test_shortpath" = x; then 54717 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54718 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54719 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54720 fi 54721 54722 # Call helper function which possibly converts this using DOS-style short mode. 54723 # If so, the updated path is stored in $new_path. 54724 54725 input_path="$new_path" 54726 # Check if we need to convert this using DOS-style short mode. If the path 54727 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54728 # take no chances and rewrite it. 54729 # Note: m4 eats our [], so we need to use [ and ] instead. 54730 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54731 if test "x$has_forbidden_chars" != x; then 54732 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54733 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54734 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54735 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54736 # Going to short mode and back again did indeed matter. Since short mode is 54737 # case insensitive, let's make it lowercase to improve readability. 54738 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54739 # Now convert it back to Unix-style (cygpath) 54740 input_path=`$CYGPATH -u "$shortmode_path"` 54741 new_path="$input_path" 54742 fi 54743 fi 54744 54745 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54746 if test "x$test_cygdrive_prefix" = x; then 54747 # As a simple fix, exclude /usr/bin since it's not a real path. 54748 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54749 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54750 # a path prefixed by /cygdrive for fixpath to work. 54751 new_path="$CYGWIN_ROOT_PATH$input_path" 54752 fi 54753 fi 54754 54755 54756 if test "x$path" != "x$new_path"; then 54757 MSVC_DLL="$new_path" 54758 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54759 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54760 fi 54761 54762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54763 54764 path="$MSVC_DLL" 54765 has_colon=`$ECHO $path | $GREP ^.:` 54766 new_path="$path" 54767 if test "x$has_colon" = x; then 54768 # Not in mixed or Windows style, start by that. 54769 new_path=`cmd //c echo $path` 54770 fi 54771 54772 54773 input_path="$new_path" 54774 # Check if we need to convert this using DOS-style short mode. If the path 54775 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54776 # take no chances and rewrite it. 54777 # Note: m4 eats our [], so we need to use [ and ] instead. 54778 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54779 if test "x$has_forbidden_chars" != x; then 54780 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54781 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54782 fi 54783 54784 54785 windows_path="$new_path" 54786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54787 unix_path=`$CYGPATH -u "$windows_path"` 54788 new_path="$unix_path" 54789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54790 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54791 new_path="$unix_path" 54792 fi 54793 54794 if test "x$path" != "x$new_path"; then 54795 MSVC_DLL="$new_path" 54796 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54797 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54798 fi 54799 54800 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54801 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54802 54803 else 54804 # We're on a unix platform. Hooray! :) 54805 path="$MSVC_DLL" 54806 has_space=`$ECHO "$path" | $GREP " "` 54807 if test "x$has_space" != x; then 54808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54809 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54810 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54811 fi 54812 54813 # Use eval to expand a potential ~ 54814 eval path="$path" 54815 if test ! -f "$path" && test ! -d "$path"; then 54816 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54817 fi 54818 54819 if test -d "$path"; then 54820 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54821 else 54822 dir="`$DIRNAME "$path"`" 54823 base="`$BASENAME "$path"`" 54824 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54825 fi 54826 fi 54827 fi 54828 54829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54830 $as_echo_n "checking for $DLL_NAME... " >&6; } 54831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54832 $as_echo "$MSVC_DLL" >&6; } 54833 else 54834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54835 $as_echo "incorrect, ignoring" >&6; } 54836 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54837 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54838 fi 54839 fi 54840 54841 if test "x$MSVC_DLL" = x; then 54842 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 54843 fi 54844 MSVCP_DLL="$MSVC_DLL" 54845 elif test "x$DEVKIT_MSVCP_DLL" != x; then 54846 54847 DLL_NAME="$MSVCP_NAME" 54848 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 54849 METHOD="devkit" 54850 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54851 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54852 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54853 54854 # Need to check if the found msvcr is correct architecture 54855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54856 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54857 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54858 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54859 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54860 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54861 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54862 CORRECT_MSVCR_ARCH="PE32 executable" 54863 else 54864 CORRECT_MSVCR_ARCH="PE32+ executable" 54865 fi 54866 else 54867 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54868 CORRECT_MSVCR_ARCH=386 54869 else 54870 CORRECT_MSVCR_ARCH=x86-64 54871 fi 54872 fi 54873 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54875 $as_echo "ok" >&6; } 54876 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54877 54878 # Only process if variable expands to non-empty 54879 54880 if test "x$MSVC_DLL" != x; then 54881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54882 54883 # Input might be given as Windows format, start by converting to 54884 # unix format. 54885 path="$MSVC_DLL" 54886 new_path=`$CYGPATH -u "$path"` 54887 54888 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54889 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54890 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54891 # "foo.exe" is OK but "foo" is an error. 54892 # 54893 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54894 # It is also a way to make sure we got the proper file name for the real test later on. 54895 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54896 if test "x$test_shortpath" = x; then 54897 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54898 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54899 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54900 fi 54901 54902 # Call helper function which possibly converts this using DOS-style short mode. 54903 # If so, the updated path is stored in $new_path. 54904 54905 input_path="$new_path" 54906 # Check if we need to convert this using DOS-style short mode. If the path 54907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54908 # take no chances and rewrite it. 54909 # Note: m4 eats our [], so we need to use [ and ] instead. 54910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54911 if test "x$has_forbidden_chars" != x; then 54912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54913 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54914 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54915 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54916 # Going to short mode and back again did indeed matter. Since short mode is 54917 # case insensitive, let's make it lowercase to improve readability. 54918 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54919 # Now convert it back to Unix-style (cygpath) 54920 input_path=`$CYGPATH -u "$shortmode_path"` 54921 new_path="$input_path" 54922 fi 54923 fi 54924 54925 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54926 if test "x$test_cygdrive_prefix" = x; then 54927 # As a simple fix, exclude /usr/bin since it's not a real path. 54928 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54929 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54930 # a path prefixed by /cygdrive for fixpath to work. 54931 new_path="$CYGWIN_ROOT_PATH$input_path" 54932 fi 54933 fi 54934 54935 54936 if test "x$path" != "x$new_path"; then 54937 MSVC_DLL="$new_path" 54938 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54939 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54940 fi 54941 54942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54943 54944 path="$MSVC_DLL" 54945 has_colon=`$ECHO $path | $GREP ^.:` 54946 new_path="$path" 54947 if test "x$has_colon" = x; then 54948 # Not in mixed or Windows style, start by that. 54949 new_path=`cmd //c echo $path` 54950 fi 54951 54952 54953 input_path="$new_path" 54954 # Check if we need to convert this using DOS-style short mode. If the path 54955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54956 # take no chances and rewrite it. 54957 # Note: m4 eats our [], so we need to use [ and ] instead. 54958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54959 if test "x$has_forbidden_chars" != x; then 54960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54961 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54962 fi 54963 54964 54965 windows_path="$new_path" 54966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54967 unix_path=`$CYGPATH -u "$windows_path"` 54968 new_path="$unix_path" 54969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54970 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54971 new_path="$unix_path" 54972 fi 54973 54974 if test "x$path" != "x$new_path"; then 54975 MSVC_DLL="$new_path" 54976 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54977 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54978 fi 54979 54980 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54981 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54982 54983 else 54984 # We're on a unix platform. Hooray! :) 54985 path="$MSVC_DLL" 54986 has_space=`$ECHO "$path" | $GREP " "` 54987 if test "x$has_space" != x; then 54988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54989 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54990 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54991 fi 54992 54993 # Use eval to expand a potential ~ 54994 eval path="$path" 54995 if test ! -f "$path" && test ! -d "$path"; then 54996 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54997 fi 54998 54999 if test -d "$path"; then 55000 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55001 else 55002 dir="`$DIRNAME "$path"`" 55003 base="`$BASENAME "$path"`" 55004 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55005 fi 55006 fi 55007 fi 55008 55009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55010 $as_echo_n "checking for $DLL_NAME... " >&6; } 55011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55012 $as_echo "$MSVC_DLL" >&6; } 55013 else 55014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55015 $as_echo "incorrect, ignoring" >&6; } 55016 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55017 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55018 fi 55019 fi 55020 55021 if test "x$MSVC_DLL" = x; then 55022 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 55023 fi 55024 MSVCP_DLL="$MSVC_DLL" 55025 else 55026 55027 DLL_NAME="${MSVCP_NAME}" 55028 MSVC_DLL= 55029 55030 if test "x$MSVC_DLL" = x; then 55031 # Probe: Using well-known location from Visual Studio 10.0 55032 if test "x$VCINSTALLDIR" != x; then 55033 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 55034 55035 windows_path="$CYGWIN_VC_INSTALL_DIR" 55036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55037 unix_path=`$CYGPATH -u "$windows_path"` 55038 CYGWIN_VC_INSTALL_DIR="$unix_path" 55039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55041 CYGWIN_VC_INSTALL_DIR="$unix_path" 55042 fi 55043 55044 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55045 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55046 else 55047 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55048 fi 55049 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 55050 55051 DLL_NAME="$DLL_NAME" 55052 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55053 METHOD="well-known location in VCINSTALLDIR" 55054 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55055 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55056 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55057 55058 # Need to check if the found msvcr is correct architecture 55059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55060 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55061 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55062 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55063 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55064 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55065 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55066 CORRECT_MSVCR_ARCH="PE32 executable" 55067 else 55068 CORRECT_MSVCR_ARCH="PE32+ executable" 55069 fi 55070 else 55071 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55072 CORRECT_MSVCR_ARCH=386 55073 else 55074 CORRECT_MSVCR_ARCH=x86-64 55075 fi 55076 fi 55077 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55079 $as_echo "ok" >&6; } 55080 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55081 55082 # Only process if variable expands to non-empty 55083 55084 if test "x$MSVC_DLL" != x; then 55085 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55086 55087 # Input might be given as Windows format, start by converting to 55088 # unix format. 55089 path="$MSVC_DLL" 55090 new_path=`$CYGPATH -u "$path"` 55091 55092 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55093 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55094 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55095 # "foo.exe" is OK but "foo" is an error. 55096 # 55097 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55098 # It is also a way to make sure we got the proper file name for the real test later on. 55099 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55100 if test "x$test_shortpath" = x; then 55101 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55102 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55103 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55104 fi 55105 55106 # Call helper function which possibly converts this using DOS-style short mode. 55107 # If so, the updated path is stored in $new_path. 55108 55109 input_path="$new_path" 55110 # Check if we need to convert this using DOS-style short mode. If the path 55111 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55112 # take no chances and rewrite it. 55113 # Note: m4 eats our [], so we need to use [ and ] instead. 55114 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55115 if test "x$has_forbidden_chars" != x; then 55116 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55117 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55118 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55119 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55120 # Going to short mode and back again did indeed matter. Since short mode is 55121 # case insensitive, let's make it lowercase to improve readability. 55122 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55123 # Now convert it back to Unix-style (cygpath) 55124 input_path=`$CYGPATH -u "$shortmode_path"` 55125 new_path="$input_path" 55126 fi 55127 fi 55128 55129 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55130 if test "x$test_cygdrive_prefix" = x; then 55131 # As a simple fix, exclude /usr/bin since it's not a real path. 55132 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55133 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55134 # a path prefixed by /cygdrive for fixpath to work. 55135 new_path="$CYGWIN_ROOT_PATH$input_path" 55136 fi 55137 fi 55138 55139 55140 if test "x$path" != "x$new_path"; then 55141 MSVC_DLL="$new_path" 55142 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55143 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55144 fi 55145 55146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55147 55148 path="$MSVC_DLL" 55149 has_colon=`$ECHO $path | $GREP ^.:` 55150 new_path="$path" 55151 if test "x$has_colon" = x; then 55152 # Not in mixed or Windows style, start by that. 55153 new_path=`cmd //c echo $path` 55154 fi 55155 55156 55157 input_path="$new_path" 55158 # Check if we need to convert this using DOS-style short mode. If the path 55159 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55160 # take no chances and rewrite it. 55161 # Note: m4 eats our [], so we need to use [ and ] instead. 55162 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55163 if test "x$has_forbidden_chars" != x; then 55164 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55165 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55166 fi 55167 55168 55169 windows_path="$new_path" 55170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55171 unix_path=`$CYGPATH -u "$windows_path"` 55172 new_path="$unix_path" 55173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55175 new_path="$unix_path" 55176 fi 55177 55178 if test "x$path" != "x$new_path"; then 55179 MSVC_DLL="$new_path" 55180 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55181 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55182 fi 55183 55184 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55185 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55186 55187 else 55188 # We're on a unix platform. Hooray! :) 55189 path="$MSVC_DLL" 55190 has_space=`$ECHO "$path" | $GREP " "` 55191 if test "x$has_space" != x; then 55192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55193 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55194 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55195 fi 55196 55197 # Use eval to expand a potential ~ 55198 eval path="$path" 55199 if test ! -f "$path" && test ! -d "$path"; then 55200 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55201 fi 55202 55203 if test -d "$path"; then 55204 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55205 else 55206 dir="`$DIRNAME "$path"`" 55207 base="`$BASENAME "$path"`" 55208 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55209 fi 55210 fi 55211 fi 55212 55213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55214 $as_echo_n "checking for $DLL_NAME... " >&6; } 55215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55216 $as_echo "$MSVC_DLL" >&6; } 55217 else 55218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55219 $as_echo "incorrect, ignoring" >&6; } 55220 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55221 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55222 fi 55223 fi 55224 55225 fi 55226 fi 55227 55228 if test "x$MSVC_DLL" = x; then 55229 # Probe: Check in the Boot JDK directory. 55230 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 55231 55232 DLL_NAME="$DLL_NAME" 55233 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55234 METHOD="well-known location in Boot JDK" 55235 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55236 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55237 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55238 55239 # Need to check if the found msvcr is correct architecture 55240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55241 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55242 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55244 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55245 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55246 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55247 CORRECT_MSVCR_ARCH="PE32 executable" 55248 else 55249 CORRECT_MSVCR_ARCH="PE32+ executable" 55250 fi 55251 else 55252 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55253 CORRECT_MSVCR_ARCH=386 55254 else 55255 CORRECT_MSVCR_ARCH=x86-64 55256 fi 55257 fi 55258 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55260 $as_echo "ok" >&6; } 55261 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55262 55263 # Only process if variable expands to non-empty 55264 55265 if test "x$MSVC_DLL" != x; then 55266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55267 55268 # Input might be given as Windows format, start by converting to 55269 # unix format. 55270 path="$MSVC_DLL" 55271 new_path=`$CYGPATH -u "$path"` 55272 55273 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55274 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55275 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55276 # "foo.exe" is OK but "foo" is an error. 55277 # 55278 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55279 # It is also a way to make sure we got the proper file name for the real test later on. 55280 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55281 if test "x$test_shortpath" = x; then 55282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55283 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55284 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55285 fi 55286 55287 # Call helper function which possibly converts this using DOS-style short mode. 55288 # If so, the updated path is stored in $new_path. 55289 55290 input_path="$new_path" 55291 # Check if we need to convert this using DOS-style short mode. If the path 55292 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55293 # take no chances and rewrite it. 55294 # Note: m4 eats our [], so we need to use [ and ] instead. 55295 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55296 if test "x$has_forbidden_chars" != x; then 55297 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55298 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55299 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55300 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55301 # Going to short mode and back again did indeed matter. Since short mode is 55302 # case insensitive, let's make it lowercase to improve readability. 55303 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55304 # Now convert it back to Unix-style (cygpath) 55305 input_path=`$CYGPATH -u "$shortmode_path"` 55306 new_path="$input_path" 55307 fi 55308 fi 55309 55310 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55311 if test "x$test_cygdrive_prefix" = x; then 55312 # As a simple fix, exclude /usr/bin since it's not a real path. 55313 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55314 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55315 # a path prefixed by /cygdrive for fixpath to work. 55316 new_path="$CYGWIN_ROOT_PATH$input_path" 55317 fi 55318 fi 55319 55320 55321 if test "x$path" != "x$new_path"; then 55322 MSVC_DLL="$new_path" 55323 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55324 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55325 fi 55326 55327 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55328 55329 path="$MSVC_DLL" 55330 has_colon=`$ECHO $path | $GREP ^.:` 55331 new_path="$path" 55332 if test "x$has_colon" = x; then 55333 # Not in mixed or Windows style, start by that. 55334 new_path=`cmd //c echo $path` 55335 fi 55336 55337 55338 input_path="$new_path" 55339 # Check if we need to convert this using DOS-style short mode. If the path 55340 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55341 # take no chances and rewrite it. 55342 # Note: m4 eats our [], so we need to use [ and ] instead. 55343 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55344 if test "x$has_forbidden_chars" != x; then 55345 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55346 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55347 fi 55348 55349 55350 windows_path="$new_path" 55351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55352 unix_path=`$CYGPATH -u "$windows_path"` 55353 new_path="$unix_path" 55354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55356 new_path="$unix_path" 55357 fi 55358 55359 if test "x$path" != "x$new_path"; then 55360 MSVC_DLL="$new_path" 55361 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55362 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55363 fi 55364 55365 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55366 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55367 55368 else 55369 # We're on a unix platform. Hooray! :) 55370 path="$MSVC_DLL" 55371 has_space=`$ECHO "$path" | $GREP " "` 55372 if test "x$has_space" != x; then 55373 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55374 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55375 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55376 fi 55377 55378 # Use eval to expand a potential ~ 55379 eval path="$path" 55380 if test ! -f "$path" && test ! -d "$path"; then 55381 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55382 fi 55383 55384 if test -d "$path"; then 55385 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55386 else 55387 dir="`$DIRNAME "$path"`" 55388 base="`$BASENAME "$path"`" 55389 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55390 fi 55391 fi 55392 fi 55393 55394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55395 $as_echo_n "checking for $DLL_NAME... " >&6; } 55396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55397 $as_echo "$MSVC_DLL" >&6; } 55398 else 55399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55400 $as_echo "incorrect, ignoring" >&6; } 55401 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55402 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55403 fi 55404 fi 55405 55406 fi 55407 55408 if test "x$MSVC_DLL" = x; then 55409 # Probe: Look in the Windows system32 directory 55410 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 55411 55412 windows_path="$CYGWIN_SYSTEMROOT" 55413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55414 unix_path=`$CYGPATH -u "$windows_path"` 55415 CYGWIN_SYSTEMROOT="$unix_path" 55416 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55417 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55418 CYGWIN_SYSTEMROOT="$unix_path" 55419 fi 55420 55421 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 55422 55423 DLL_NAME="$DLL_NAME" 55424 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55425 METHOD="well-known location in SYSTEMROOT" 55426 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55427 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55428 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55429 55430 # Need to check if the found msvcr is correct architecture 55431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55432 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55433 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55434 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55435 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55436 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55437 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55438 CORRECT_MSVCR_ARCH="PE32 executable" 55439 else 55440 CORRECT_MSVCR_ARCH="PE32+ executable" 55441 fi 55442 else 55443 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55444 CORRECT_MSVCR_ARCH=386 55445 else 55446 CORRECT_MSVCR_ARCH=x86-64 55447 fi 55448 fi 55449 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55451 $as_echo "ok" >&6; } 55452 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55453 55454 # Only process if variable expands to non-empty 55455 55456 if test "x$MSVC_DLL" != x; then 55457 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55458 55459 # Input might be given as Windows format, start by converting to 55460 # unix format. 55461 path="$MSVC_DLL" 55462 new_path=`$CYGPATH -u "$path"` 55463 55464 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55465 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55466 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55467 # "foo.exe" is OK but "foo" is an error. 55468 # 55469 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55470 # It is also a way to make sure we got the proper file name for the real test later on. 55471 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55472 if test "x$test_shortpath" = x; then 55473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55474 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55475 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55476 fi 55477 55478 # Call helper function which possibly converts this using DOS-style short mode. 55479 # If so, the updated path is stored in $new_path. 55480 55481 input_path="$new_path" 55482 # Check if we need to convert this using DOS-style short mode. If the path 55483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55484 # take no chances and rewrite it. 55485 # Note: m4 eats our [], so we need to use [ and ] instead. 55486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55487 if test "x$has_forbidden_chars" != x; then 55488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55489 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55490 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55491 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55492 # Going to short mode and back again did indeed matter. Since short mode is 55493 # case insensitive, let's make it lowercase to improve readability. 55494 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55495 # Now convert it back to Unix-style (cygpath) 55496 input_path=`$CYGPATH -u "$shortmode_path"` 55497 new_path="$input_path" 55498 fi 55499 fi 55500 55501 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55502 if test "x$test_cygdrive_prefix" = x; then 55503 # As a simple fix, exclude /usr/bin since it's not a real path. 55504 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55505 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55506 # a path prefixed by /cygdrive for fixpath to work. 55507 new_path="$CYGWIN_ROOT_PATH$input_path" 55508 fi 55509 fi 55510 55511 55512 if test "x$path" != "x$new_path"; then 55513 MSVC_DLL="$new_path" 55514 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55515 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55516 fi 55517 55518 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55519 55520 path="$MSVC_DLL" 55521 has_colon=`$ECHO $path | $GREP ^.:` 55522 new_path="$path" 55523 if test "x$has_colon" = x; then 55524 # Not in mixed or Windows style, start by that. 55525 new_path=`cmd //c echo $path` 55526 fi 55527 55528 55529 input_path="$new_path" 55530 # Check if we need to convert this using DOS-style short mode. If the path 55531 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55532 # take no chances and rewrite it. 55533 # Note: m4 eats our [], so we need to use [ and ] instead. 55534 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55535 if test "x$has_forbidden_chars" != x; then 55536 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55537 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55538 fi 55539 55540 55541 windows_path="$new_path" 55542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55543 unix_path=`$CYGPATH -u "$windows_path"` 55544 new_path="$unix_path" 55545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55546 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55547 new_path="$unix_path" 55548 fi 55549 55550 if test "x$path" != "x$new_path"; then 55551 MSVC_DLL="$new_path" 55552 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55553 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55554 fi 55555 55556 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55557 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55558 55559 else 55560 # We're on a unix platform. Hooray! :) 55561 path="$MSVC_DLL" 55562 has_space=`$ECHO "$path" | $GREP " "` 55563 if test "x$has_space" != x; then 55564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55565 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55566 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55567 fi 55568 55569 # Use eval to expand a potential ~ 55570 eval path="$path" 55571 if test ! -f "$path" && test ! -d "$path"; then 55572 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55573 fi 55574 55575 if test -d "$path"; then 55576 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55577 else 55578 dir="`$DIRNAME "$path"`" 55579 base="`$BASENAME "$path"`" 55580 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55581 fi 55582 fi 55583 fi 55584 55585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55586 $as_echo_n "checking for $DLL_NAME... " >&6; } 55587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55588 $as_echo "$MSVC_DLL" >&6; } 55589 else 55590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55591 $as_echo "incorrect, ignoring" >&6; } 55592 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55593 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55594 fi 55595 fi 55596 55597 fi 55598 55599 if test "x$MSVC_DLL" = x; then 55600 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 55601 if test "x$VS100COMNTOOLS" != x; then 55602 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 55603 55604 windows_path="$CYGWIN_VS_TOOLS_DIR" 55605 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55606 unix_path=`$CYGPATH -u "$windows_path"` 55607 CYGWIN_VS_TOOLS_DIR="$unix_path" 55608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55609 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55610 CYGWIN_VS_TOOLS_DIR="$unix_path" 55611 fi 55612 55613 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55614 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55615 | $GREP -i /x64/ | $HEAD --lines 1` 55616 else 55617 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55618 | $GREP -i /x86/ | $HEAD --lines 1` 55619 fi 55620 55621 DLL_NAME="$DLL_NAME" 55622 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55623 METHOD="search of VS100COMNTOOLS" 55624 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55625 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55626 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55627 55628 # Need to check if the found msvcr is correct architecture 55629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55630 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55631 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55632 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55633 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55634 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55635 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55636 CORRECT_MSVCR_ARCH="PE32 executable" 55637 else 55638 CORRECT_MSVCR_ARCH="PE32+ executable" 55639 fi 55640 else 55641 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55642 CORRECT_MSVCR_ARCH=386 55643 else 55644 CORRECT_MSVCR_ARCH=x86-64 55645 fi 55646 fi 55647 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55649 $as_echo "ok" >&6; } 55650 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55651 55652 # Only process if variable expands to non-empty 55653 55654 if test "x$MSVC_DLL" != x; then 55655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55656 55657 # Input might be given as Windows format, start by converting to 55658 # unix format. 55659 path="$MSVC_DLL" 55660 new_path=`$CYGPATH -u "$path"` 55661 55662 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55663 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55664 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55665 # "foo.exe" is OK but "foo" is an error. 55666 # 55667 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55668 # It is also a way to make sure we got the proper file name for the real test later on. 55669 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55670 if test "x$test_shortpath" = x; then 55671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55672 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55673 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55674 fi 55675 55676 # Call helper function which possibly converts this using DOS-style short mode. 55677 # If so, the updated path is stored in $new_path. 55678 55679 input_path="$new_path" 55680 # Check if we need to convert this using DOS-style short mode. If the path 55681 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55682 # take no chances and rewrite it. 55683 # Note: m4 eats our [], so we need to use [ and ] instead. 55684 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55685 if test "x$has_forbidden_chars" != x; then 55686 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55687 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55688 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55689 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55690 # Going to short mode and back again did indeed matter. Since short mode is 55691 # case insensitive, let's make it lowercase to improve readability. 55692 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55693 # Now convert it back to Unix-style (cygpath) 55694 input_path=`$CYGPATH -u "$shortmode_path"` 55695 new_path="$input_path" 55696 fi 55697 fi 55698 55699 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55700 if test "x$test_cygdrive_prefix" = x; then 55701 # As a simple fix, exclude /usr/bin since it's not a real path. 55702 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55703 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55704 # a path prefixed by /cygdrive for fixpath to work. 55705 new_path="$CYGWIN_ROOT_PATH$input_path" 55706 fi 55707 fi 55708 55709 55710 if test "x$path" != "x$new_path"; then 55711 MSVC_DLL="$new_path" 55712 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55713 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55714 fi 55715 55716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55717 55718 path="$MSVC_DLL" 55719 has_colon=`$ECHO $path | $GREP ^.:` 55720 new_path="$path" 55721 if test "x$has_colon" = x; then 55722 # Not in mixed or Windows style, start by that. 55723 new_path=`cmd //c echo $path` 55724 fi 55725 55726 55727 input_path="$new_path" 55728 # Check if we need to convert this using DOS-style short mode. If the path 55729 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55730 # take no chances and rewrite it. 55731 # Note: m4 eats our [], so we need to use [ and ] instead. 55732 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55733 if test "x$has_forbidden_chars" != x; then 55734 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55735 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55736 fi 55737 55738 55739 windows_path="$new_path" 55740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55741 unix_path=`$CYGPATH -u "$windows_path"` 55742 new_path="$unix_path" 55743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55745 new_path="$unix_path" 55746 fi 55747 55748 if test "x$path" != "x$new_path"; then 55749 MSVC_DLL="$new_path" 55750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55751 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55752 fi 55753 55754 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55755 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55756 55757 else 55758 # We're on a unix platform. Hooray! :) 55759 path="$MSVC_DLL" 55760 has_space=`$ECHO "$path" | $GREP " "` 55761 if test "x$has_space" != x; then 55762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55763 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55764 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55765 fi 55766 55767 # Use eval to expand a potential ~ 55768 eval path="$path" 55769 if test ! -f "$path" && test ! -d "$path"; then 55770 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55771 fi 55772 55773 if test -d "$path"; then 55774 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55775 else 55776 dir="`$DIRNAME "$path"`" 55777 base="`$BASENAME "$path"`" 55778 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55779 fi 55780 fi 55781 fi 55782 55783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55784 $as_echo_n "checking for $DLL_NAME... " >&6; } 55785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55786 $as_echo "$MSVC_DLL" >&6; } 55787 else 55788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55789 $as_echo "incorrect, ignoring" >&6; } 55790 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55791 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55792 fi 55793 fi 55794 55795 fi 55796 fi 55797 55798 if test "x$MSVC_DLL" = x; then 55799 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 55800 # (This was the original behaviour; kept since it might turn something up) 55801 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 55802 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55803 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55804 | $GREP x64 | $HEAD --lines 1` 55805 else 55806 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55807 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 55808 if test "x$POSSIBLE_MSVC_DLL" = x; then 55809 # We're grasping at straws now... 55810 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55811 | $HEAD --lines 1` 55812 fi 55813 fi 55814 55815 55816 DLL_NAME="$DLL_NAME" 55817 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55818 METHOD="search of VCINSTALLDIR" 55819 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55820 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55821 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55822 55823 # Need to check if the found msvcr is correct architecture 55824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55825 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55826 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55828 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55829 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55830 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55831 CORRECT_MSVCR_ARCH="PE32 executable" 55832 else 55833 CORRECT_MSVCR_ARCH="PE32+ executable" 55834 fi 55835 else 55836 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55837 CORRECT_MSVCR_ARCH=386 55838 else 55839 CORRECT_MSVCR_ARCH=x86-64 55840 fi 55841 fi 55842 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55844 $as_echo "ok" >&6; } 55845 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55846 55847 # Only process if variable expands to non-empty 55848 55849 if test "x$MSVC_DLL" != x; then 55850 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55851 55852 # Input might be given as Windows format, start by converting to 55853 # unix format. 55854 path="$MSVC_DLL" 55855 new_path=`$CYGPATH -u "$path"` 55856 55857 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55858 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55859 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55860 # "foo.exe" is OK but "foo" is an error. 55861 # 55862 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55863 # It is also a way to make sure we got the proper file name for the real test later on. 55864 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55865 if test "x$test_shortpath" = x; then 55866 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55867 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55868 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55869 fi 55870 55871 # Call helper function which possibly converts this using DOS-style short mode. 55872 # If so, the updated path is stored in $new_path. 55873 55874 input_path="$new_path" 55875 # Check if we need to convert this using DOS-style short mode. If the path 55876 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55877 # take no chances and rewrite it. 55878 # Note: m4 eats our [], so we need to use [ and ] instead. 55879 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55880 if test "x$has_forbidden_chars" != x; then 55881 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55882 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55883 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55884 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55885 # Going to short mode and back again did indeed matter. Since short mode is 55886 # case insensitive, let's make it lowercase to improve readability. 55887 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55888 # Now convert it back to Unix-style (cygpath) 55889 input_path=`$CYGPATH -u "$shortmode_path"` 55890 new_path="$input_path" 55891 fi 55892 fi 55893 55894 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55895 if test "x$test_cygdrive_prefix" = x; then 55896 # As a simple fix, exclude /usr/bin since it's not a real path. 55897 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55898 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55899 # a path prefixed by /cygdrive for fixpath to work. 55900 new_path="$CYGWIN_ROOT_PATH$input_path" 55901 fi 55902 fi 55903 55904 55905 if test "x$path" != "x$new_path"; then 55906 MSVC_DLL="$new_path" 55907 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55908 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55909 fi 55910 55911 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55912 55913 path="$MSVC_DLL" 55914 has_colon=`$ECHO $path | $GREP ^.:` 55915 new_path="$path" 55916 if test "x$has_colon" = x; then 55917 # Not in mixed or Windows style, start by that. 55918 new_path=`cmd //c echo $path` 55919 fi 55920 55921 55922 input_path="$new_path" 55923 # Check if we need to convert this using DOS-style short mode. If the path 55924 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55925 # take no chances and rewrite it. 55926 # Note: m4 eats our [], so we need to use [ and ] instead. 55927 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55928 if test "x$has_forbidden_chars" != x; then 55929 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55930 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55931 fi 55932 55933 55934 windows_path="$new_path" 55935 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55936 unix_path=`$CYGPATH -u "$windows_path"` 55937 new_path="$unix_path" 55938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55939 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55940 new_path="$unix_path" 55941 fi 55942 55943 if test "x$path" != "x$new_path"; then 55944 MSVC_DLL="$new_path" 55945 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55946 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55947 fi 55948 55949 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55950 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55951 55952 else 55953 # We're on a unix platform. Hooray! :) 55954 path="$MSVC_DLL" 55955 has_space=`$ECHO "$path" | $GREP " "` 55956 if test "x$has_space" != x; then 55957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55958 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55959 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55960 fi 55961 55962 # Use eval to expand a potential ~ 55963 eval path="$path" 55964 if test ! -f "$path" && test ! -d "$path"; then 55965 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55966 fi 55967 55968 if test -d "$path"; then 55969 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55970 else 55971 dir="`$DIRNAME "$path"`" 55972 base="`$BASENAME "$path"`" 55973 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55974 fi 55975 fi 55976 fi 55977 55978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55979 $as_echo_n "checking for $DLL_NAME... " >&6; } 55980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55981 $as_echo "$MSVC_DLL" >&6; } 55982 else 55983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55984 $as_echo "incorrect, ignoring" >&6; } 55985 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55986 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55987 fi 55988 fi 55989 55990 fi 55991 fi 55992 55993 if test "x$MSVC_DLL" = x; then 55994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55995 $as_echo_n "checking for $DLL_NAME... " >&6; } 55996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55997 $as_echo "no" >&6; } 55998 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 55999 fi 56000 56001 MSVCP_DLL="$MSVC_DLL" 56002 fi 56003 56004 fi 56005 56006 fi 56007 56008 56009 if test "x$NEEDS_LIB_X11" = xfalse; then 56010 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 56011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 56012 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 56013 fi 56014 X_CFLAGS= 56015 X_LIBS= 56016 else 56017 56018 if test "x${with_x}" = xno; then 56019 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 56020 fi 56021 56022 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 56023 # The user has specified a X11 base directory. Use it for includes and 56024 # libraries, unless explicitely overridden. 56025 if test "x$x_includes" = xNONE; then 56026 x_includes="${with_x}/include" 56027 fi 56028 if test "x$x_libraries" = xNONE; then 56029 x_libraries="${with_x}/lib" 56030 fi 56031 else 56032 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 56033 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 56034 # --x-libraries for the sysroot, if that seems to be correct. 56035 if test "x$SYSROOT" != "x"; then 56036 if test "x$x_includes" = xNONE; then 56037 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 56038 x_includes="$SYSROOT/usr/X11R6/include" 56039 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 56040 x_includes="$SYSROOT/usr/include" 56041 fi 56042 fi 56043 if test "x$x_libraries" = xNONE; then 56044 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 56045 x_libraries="$SYSROOT/usr/X11R6/lib" 56046 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56047 x_libraries="$SYSROOT/usr/lib64" 56048 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 56049 x_libraries="$SYSROOT/usr/lib" 56050 fi 56051 fi 56052 fi 56053 fi 56054 56055 # Now let autoconf do it's magic 56056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 56057 $as_echo_n "checking for X... " >&6; } 56058 56059 56060 # Check whether --with-x was given. 56061 if test "${with_x+set}" = set; then : 56062 withval=$with_x; 56063 fi 56064 56065 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 56066 if test "x$with_x" = xno; then 56067 # The user explicitly disabled X. 56068 have_x=disabled 56069 else 56070 case $x_includes,$x_libraries in #( 56071 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 56072 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 56073 $as_echo_n "(cached) " >&6 56074 else 56075 # One or both of the vars are not set, and there is no cached value. 56076 ac_x_includes=no ac_x_libraries=no 56077 rm -f -r conftest.dir 56078 if mkdir conftest.dir; then 56079 cd conftest.dir 56080 cat >Imakefile <<'_ACEOF' 56081 incroot: 56082 @echo incroot='${INCROOT}' 56083 usrlibdir: 56084 @echo usrlibdir='${USRLIBDIR}' 56085 libdir: 56086 @echo libdir='${LIBDIR}' 56087 _ACEOF 56088 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 56089 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 56090 for ac_var in incroot usrlibdir libdir; do 56091 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 56092 done 56093 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 56094 for ac_extension in a so sl dylib la dll; do 56095 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 56096 test -f "$ac_im_libdir/libX11.$ac_extension"; then 56097 ac_im_usrlibdir=$ac_im_libdir; break 56098 fi 56099 done 56100 # Screen out bogus values from the imake configuration. They are 56101 # bogus both because they are the default anyway, and because 56102 # using them would break gcc on systems where it needs fixed includes. 56103 case $ac_im_incroot in 56104 /usr/include) ac_x_includes= ;; 56105 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 56106 esac 56107 case $ac_im_usrlibdir in 56108 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 56109 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 56110 esac 56111 fi 56112 cd .. 56113 rm -f -r conftest.dir 56114 fi 56115 56116 # Standard set of common directories for X headers. 56117 # Check X11 before X11Rn because it is often a symlink to the current release. 56118 ac_x_header_dirs=' 56119 /usr/X11/include 56120 /usr/X11R7/include 56121 /usr/X11R6/include 56122 /usr/X11R5/include 56123 /usr/X11R4/include 56124 56125 /usr/include/X11 56126 /usr/include/X11R7 56127 /usr/include/X11R6 56128 /usr/include/X11R5 56129 /usr/include/X11R4 56130 56131 /usr/local/X11/include 56132 /usr/local/X11R7/include 56133 /usr/local/X11R6/include 56134 /usr/local/X11R5/include 56135 /usr/local/X11R4/include 56136 56137 /usr/local/include/X11 56138 /usr/local/include/X11R7 56139 /usr/local/include/X11R6 56140 /usr/local/include/X11R5 56141 /usr/local/include/X11R4 56142 56143 /usr/X386/include 56144 /usr/x386/include 56145 /usr/XFree86/include/X11 56146 56147 /usr/include 56148 /usr/local/include 56149 /usr/unsupported/include 56150 /usr/athena/include 56151 /usr/local/x11r5/include 56152 /usr/lpp/Xamples/include 56153 56154 /usr/openwin/include 56155 /usr/openwin/share/include' 56156 56157 if test "$ac_x_includes" = no; then 56158 # Guess where to find include files, by looking for Xlib.h. 56159 # First, try using that file with no special directory specified. 56160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56161 /* end confdefs.h. */ 56162 #include <X11/Xlib.h> 56163 _ACEOF 56164 if ac_fn_cxx_try_cpp "$LINENO"; then : 56165 # We can compile using X headers with no special include directory. 56166 ac_x_includes= 56167 else 56168 for ac_dir in $ac_x_header_dirs; do 56169 if test -r "$ac_dir/X11/Xlib.h"; then 56170 ac_x_includes=$ac_dir 56171 break 56172 fi 56173 done 56174 fi 56175 rm -f conftest.err conftest.i conftest.$ac_ext 56176 fi # $ac_x_includes = no 56177 56178 if test "$ac_x_libraries" = no; then 56179 # Check for the libraries. 56180 # See if we find them without any special options. 56181 # Don't add to $LIBS permanently. 56182 ac_save_LIBS=$LIBS 56183 LIBS="-lX11 $LIBS" 56184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56185 /* end confdefs.h. */ 56186 #include <X11/Xlib.h> 56187 int 56188 main () 56189 { 56190 XrmInitialize () 56191 ; 56192 return 0; 56193 } 56194 _ACEOF 56195 if ac_fn_cxx_try_link "$LINENO"; then : 56196 LIBS=$ac_save_LIBS 56197 # We can link X programs with no special library path. 56198 ac_x_libraries= 56199 else 56200 LIBS=$ac_save_LIBS 56201 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 56202 do 56203 # Don't even attempt the hair of trying to link an X program! 56204 for ac_extension in a so sl dylib la dll; do 56205 if test -r "$ac_dir/libX11.$ac_extension"; then 56206 ac_x_libraries=$ac_dir 56207 break 2 56208 fi 56209 done 56210 done 56211 fi 56212 rm -f core conftest.err conftest.$ac_objext \ 56213 conftest$ac_exeext conftest.$ac_ext 56214 fi # $ac_x_libraries = no 56215 56216 case $ac_x_includes,$ac_x_libraries in #( 56217 no,* | *,no | *\'*) 56218 # Didn't find X, or a directory has "'" in its name. 56219 ac_cv_have_x="have_x=no";; #( 56220 *) 56221 # Record where we found X for the cache. 56222 ac_cv_have_x="have_x=yes\ 56223 ac_x_includes='$ac_x_includes'\ 56224 ac_x_libraries='$ac_x_libraries'" 56225 esac 56226 fi 56227 ;; #( 56228 *) have_x=yes;; 56229 esac 56230 eval "$ac_cv_have_x" 56231 fi # $with_x != no 56232 56233 if test "$have_x" != yes; then 56234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 56235 $as_echo "$have_x" >&6; } 56236 no_x=yes 56237 else 56238 # If each of the values was on the command line, it overrides each guess. 56239 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 56240 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 56241 # Update the cache value to reflect the command line values. 56242 ac_cv_have_x="have_x=yes\ 56243 ac_x_includes='$x_includes'\ 56244 ac_x_libraries='$x_libraries'" 56245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 56246 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 56247 fi 56248 56249 if test "$no_x" = yes; then 56250 # Not all programs may use this symbol, but it does not hurt to define it. 56251 56252 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 56253 56254 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 56255 else 56256 if test -n "$x_includes"; then 56257 X_CFLAGS="$X_CFLAGS -I$x_includes" 56258 fi 56259 56260 # It would also be nice to do this for all -L options, not just this one. 56261 if test -n "$x_libraries"; then 56262 X_LIBS="$X_LIBS -L$x_libraries" 56263 # For Solaris; some versions of Sun CC require a space after -R and 56264 # others require no space. Words are not sufficient . . . . 56265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 56266 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 56267 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 56268 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 56269 ac_cxx_werror_flag=yes 56270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56271 /* end confdefs.h. */ 56272 56273 int 56274 main () 56275 { 56276 56277 ; 56278 return 0; 56279 } 56280 _ACEOF 56281 if ac_fn_cxx_try_link "$LINENO"; then : 56282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56283 $as_echo "no" >&6; } 56284 X_LIBS="$X_LIBS -R$x_libraries" 56285 else 56286 LIBS="$ac_xsave_LIBS -R $x_libraries" 56287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56288 /* end confdefs.h. */ 56289 56290 int 56291 main () 56292 { 56293 56294 ; 56295 return 0; 56296 } 56297 _ACEOF 56298 if ac_fn_cxx_try_link "$LINENO"; then : 56299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56300 $as_echo "yes" >&6; } 56301 X_LIBS="$X_LIBS -R $x_libraries" 56302 else 56303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 56304 $as_echo "neither works" >&6; } 56305 fi 56306 rm -f core conftest.err conftest.$ac_objext \ 56307 conftest$ac_exeext conftest.$ac_ext 56308 fi 56309 rm -f core conftest.err conftest.$ac_objext \ 56310 conftest$ac_exeext conftest.$ac_ext 56311 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 56312 LIBS=$ac_xsave_LIBS 56313 fi 56314 56315 # Check for system-dependent libraries X programs must link with. 56316 # Do this before checking for the system-independent R6 libraries 56317 # (-lICE), since we may need -lsocket or whatever for X linking. 56318 56319 if test "$ISC" = yes; then 56320 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 56321 else 56322 # Martyn Johnson says this is needed for Ultrix, if the X 56323 # libraries were built with DECnet support. And Karl Berry says 56324 # the Alpha needs dnet_stub (dnet does not exist). 56325 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 56326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56327 /* end confdefs.h. */ 56328 56329 /* Override any GCC internal prototype to avoid an error. 56330 Use char because int might match the return type of a GCC 56331 builtin and then its argument prototype would still apply. */ 56332 #ifdef __cplusplus 56333 extern "C" 56334 #endif 56335 char XOpenDisplay (); 56336 int 56337 main () 56338 { 56339 return XOpenDisplay (); 56340 ; 56341 return 0; 56342 } 56343 _ACEOF 56344 if ac_fn_cxx_try_link "$LINENO"; then : 56345 56346 else 56347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 56348 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 56349 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 56350 $as_echo_n "(cached) " >&6 56351 else 56352 ac_check_lib_save_LIBS=$LIBS 56353 LIBS="-ldnet $LIBS" 56354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56355 /* end confdefs.h. */ 56356 56357 /* Override any GCC internal prototype to avoid an error. 56358 Use char because int might match the return type of a GCC 56359 builtin and then its argument prototype would still apply. */ 56360 #ifdef __cplusplus 56361 extern "C" 56362 #endif 56363 char dnet_ntoa (); 56364 int 56365 main () 56366 { 56367 return dnet_ntoa (); 56368 ; 56369 return 0; 56370 } 56371 _ACEOF 56372 if ac_fn_cxx_try_link "$LINENO"; then : 56373 ac_cv_lib_dnet_dnet_ntoa=yes 56374 else 56375 ac_cv_lib_dnet_dnet_ntoa=no 56376 fi 56377 rm -f core conftest.err conftest.$ac_objext \ 56378 conftest$ac_exeext conftest.$ac_ext 56379 LIBS=$ac_check_lib_save_LIBS 56380 fi 56381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 56382 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 56383 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 56384 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 56385 fi 56386 56387 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 56388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 56389 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 56390 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 56391 $as_echo_n "(cached) " >&6 56392 else 56393 ac_check_lib_save_LIBS=$LIBS 56394 LIBS="-ldnet_stub $LIBS" 56395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56396 /* end confdefs.h. */ 56397 56398 /* Override any GCC internal prototype to avoid an error. 56399 Use char because int might match the return type of a GCC 56400 builtin and then its argument prototype would still apply. */ 56401 #ifdef __cplusplus 56402 extern "C" 56403 #endif 56404 char dnet_ntoa (); 56405 int 56406 main () 56407 { 56408 return dnet_ntoa (); 56409 ; 56410 return 0; 56411 } 56412 _ACEOF 56413 if ac_fn_cxx_try_link "$LINENO"; then : 56414 ac_cv_lib_dnet_stub_dnet_ntoa=yes 56415 else 56416 ac_cv_lib_dnet_stub_dnet_ntoa=no 56417 fi 56418 rm -f core conftest.err conftest.$ac_objext \ 56419 conftest$ac_exeext conftest.$ac_ext 56420 LIBS=$ac_check_lib_save_LIBS 56421 fi 56422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 56423 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 56424 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 56425 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 56426 fi 56427 56428 fi 56429 fi 56430 rm -f core conftest.err conftest.$ac_objext \ 56431 conftest$ac_exeext conftest.$ac_ext 56432 LIBS="$ac_xsave_LIBS" 56433 56434 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 56435 # to get the SysV transport functions. 56436 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 56437 # needs -lnsl. 56438 # The nsl library prevents programs from opening the X display 56439 # on Irix 5.2, according to T.E. Dickey. 56440 # The functions gethostbyname, getservbyname, and inet_addr are 56441 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 56442 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 56443 if test "x$ac_cv_func_gethostbyname" = xyes; then : 56444 56445 fi 56446 56447 if test $ac_cv_func_gethostbyname = no; then 56448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 56449 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 56450 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 56451 $as_echo_n "(cached) " >&6 56452 else 56453 ac_check_lib_save_LIBS=$LIBS 56454 LIBS="-lnsl $LIBS" 56455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56456 /* end confdefs.h. */ 56457 56458 /* Override any GCC internal prototype to avoid an error. 56459 Use char because int might match the return type of a GCC 56460 builtin and then its argument prototype would still apply. */ 56461 #ifdef __cplusplus 56462 extern "C" 56463 #endif 56464 char gethostbyname (); 56465 int 56466 main () 56467 { 56468 return gethostbyname (); 56469 ; 56470 return 0; 56471 } 56472 _ACEOF 56473 if ac_fn_cxx_try_link "$LINENO"; then : 56474 ac_cv_lib_nsl_gethostbyname=yes 56475 else 56476 ac_cv_lib_nsl_gethostbyname=no 56477 fi 56478 rm -f core conftest.err conftest.$ac_objext \ 56479 conftest$ac_exeext conftest.$ac_ext 56480 LIBS=$ac_check_lib_save_LIBS 56481 fi 56482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 56483 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 56484 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 56485 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 56486 fi 56487 56488 if test $ac_cv_lib_nsl_gethostbyname = no; then 56489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 56490 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 56491 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 56492 $as_echo_n "(cached) " >&6 56493 else 56494 ac_check_lib_save_LIBS=$LIBS 56495 LIBS="-lbsd $LIBS" 56496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56497 /* end confdefs.h. */ 56498 56499 /* Override any GCC internal prototype to avoid an error. 56500 Use char because int might match the return type of a GCC 56501 builtin and then its argument prototype would still apply. */ 56502 #ifdef __cplusplus 56503 extern "C" 56504 #endif 56505 char gethostbyname (); 56506 int 56507 main () 56508 { 56509 return gethostbyname (); 56510 ; 56511 return 0; 56512 } 56513 _ACEOF 56514 if ac_fn_cxx_try_link "$LINENO"; then : 56515 ac_cv_lib_bsd_gethostbyname=yes 56516 else 56517 ac_cv_lib_bsd_gethostbyname=no 56518 fi 56519 rm -f core conftest.err conftest.$ac_objext \ 56520 conftest$ac_exeext conftest.$ac_ext 56521 LIBS=$ac_check_lib_save_LIBS 56522 fi 56523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 56524 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 56525 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 56526 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 56527 fi 56528 56529 fi 56530 fi 56531 56532 # lieder@skyler.mavd.honeywell.com says without -lsocket, 56533 # socket/setsockopt and other routines are undefined under SCO ODT 56534 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 56535 # on later versions), says Simon Leinen: it contains gethostby* 56536 # variants that don't use the name server (or something). -lsocket 56537 # must be given before -lnsl if both are needed. We assume that 56538 # if connect needs -lnsl, so does gethostbyname. 56539 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 56540 if test "x$ac_cv_func_connect" = xyes; then : 56541 56542 fi 56543 56544 if test $ac_cv_func_connect = no; then 56545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 56546 $as_echo_n "checking for connect in -lsocket... " >&6; } 56547 if ${ac_cv_lib_socket_connect+:} false; then : 56548 $as_echo_n "(cached) " >&6 56549 else 56550 ac_check_lib_save_LIBS=$LIBS 56551 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 56552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56553 /* end confdefs.h. */ 56554 56555 /* Override any GCC internal prototype to avoid an error. 56556 Use char because int might match the return type of a GCC 56557 builtin and then its argument prototype would still apply. */ 56558 #ifdef __cplusplus 56559 extern "C" 56560 #endif 56561 char connect (); 56562 int 56563 main () 56564 { 56565 return connect (); 56566 ; 56567 return 0; 56568 } 56569 _ACEOF 56570 if ac_fn_cxx_try_link "$LINENO"; then : 56571 ac_cv_lib_socket_connect=yes 56572 else 56573 ac_cv_lib_socket_connect=no 56574 fi 56575 rm -f core conftest.err conftest.$ac_objext \ 56576 conftest$ac_exeext conftest.$ac_ext 56577 LIBS=$ac_check_lib_save_LIBS 56578 fi 56579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 56580 $as_echo "$ac_cv_lib_socket_connect" >&6; } 56581 if test "x$ac_cv_lib_socket_connect" = xyes; then : 56582 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 56583 fi 56584 56585 fi 56586 56587 # Guillermo Gomez says -lposix is necessary on A/UX. 56588 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 56589 if test "x$ac_cv_func_remove" = xyes; then : 56590 56591 fi 56592 56593 if test $ac_cv_func_remove = no; then 56594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 56595 $as_echo_n "checking for remove in -lposix... " >&6; } 56596 if ${ac_cv_lib_posix_remove+:} false; then : 56597 $as_echo_n "(cached) " >&6 56598 else 56599 ac_check_lib_save_LIBS=$LIBS 56600 LIBS="-lposix $LIBS" 56601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56602 /* end confdefs.h. */ 56603 56604 /* Override any GCC internal prototype to avoid an error. 56605 Use char because int might match the return type of a GCC 56606 builtin and then its argument prototype would still apply. */ 56607 #ifdef __cplusplus 56608 extern "C" 56609 #endif 56610 char remove (); 56611 int 56612 main () 56613 { 56614 return remove (); 56615 ; 56616 return 0; 56617 } 56618 _ACEOF 56619 if ac_fn_cxx_try_link "$LINENO"; then : 56620 ac_cv_lib_posix_remove=yes 56621 else 56622 ac_cv_lib_posix_remove=no 56623 fi 56624 rm -f core conftest.err conftest.$ac_objext \ 56625 conftest$ac_exeext conftest.$ac_ext 56626 LIBS=$ac_check_lib_save_LIBS 56627 fi 56628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 56629 $as_echo "$ac_cv_lib_posix_remove" >&6; } 56630 if test "x$ac_cv_lib_posix_remove" = xyes; then : 56631 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 56632 fi 56633 56634 fi 56635 56636 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 56637 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 56638 if test "x$ac_cv_func_shmat" = xyes; then : 56639 56640 fi 56641 56642 if test $ac_cv_func_shmat = no; then 56643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 56644 $as_echo_n "checking for shmat in -lipc... " >&6; } 56645 if ${ac_cv_lib_ipc_shmat+:} false; then : 56646 $as_echo_n "(cached) " >&6 56647 else 56648 ac_check_lib_save_LIBS=$LIBS 56649 LIBS="-lipc $LIBS" 56650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56651 /* end confdefs.h. */ 56652 56653 /* Override any GCC internal prototype to avoid an error. 56654 Use char because int might match the return type of a GCC 56655 builtin and then its argument prototype would still apply. */ 56656 #ifdef __cplusplus 56657 extern "C" 56658 #endif 56659 char shmat (); 56660 int 56661 main () 56662 { 56663 return shmat (); 56664 ; 56665 return 0; 56666 } 56667 _ACEOF 56668 if ac_fn_cxx_try_link "$LINENO"; then : 56669 ac_cv_lib_ipc_shmat=yes 56670 else 56671 ac_cv_lib_ipc_shmat=no 56672 fi 56673 rm -f core conftest.err conftest.$ac_objext \ 56674 conftest$ac_exeext conftest.$ac_ext 56675 LIBS=$ac_check_lib_save_LIBS 56676 fi 56677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 56678 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 56679 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 56680 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 56681 fi 56682 56683 fi 56684 fi 56685 56686 # Check for libraries that X11R6 Xt/Xaw programs need. 56687 ac_save_LDFLAGS=$LDFLAGS 56688 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 56689 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 56690 # check for ICE first), but we must link in the order -lSM -lICE or 56691 # we get undefined symbols. So assume we have SM if we have ICE. 56692 # These have to be linked with before -lX11, unlike the other 56693 # libraries we check for below, so use a different variable. 56694 # John Interrante, Karl Berry 56695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 56696 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 56697 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 56698 $as_echo_n "(cached) " >&6 56699 else 56700 ac_check_lib_save_LIBS=$LIBS 56701 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 56702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56703 /* end confdefs.h. */ 56704 56705 /* Override any GCC internal prototype to avoid an error. 56706 Use char because int might match the return type of a GCC 56707 builtin and then its argument prototype would still apply. */ 56708 #ifdef __cplusplus 56709 extern "C" 56710 #endif 56711 char IceConnectionNumber (); 56712 int 56713 main () 56714 { 56715 return IceConnectionNumber (); 56716 ; 56717 return 0; 56718 } 56719 _ACEOF 56720 if ac_fn_cxx_try_link "$LINENO"; then : 56721 ac_cv_lib_ICE_IceConnectionNumber=yes 56722 else 56723 ac_cv_lib_ICE_IceConnectionNumber=no 56724 fi 56725 rm -f core conftest.err conftest.$ac_objext \ 56726 conftest$ac_exeext conftest.$ac_ext 56727 LIBS=$ac_check_lib_save_LIBS 56728 fi 56729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 56730 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 56731 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 56732 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 56733 fi 56734 56735 LDFLAGS=$ac_save_LDFLAGS 56736 56737 fi 56738 56739 56740 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 56741 # this doesn't make sense so we remove it. 56742 if test "x$COMPILE_TYPE" = xcross; then 56743 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 56744 fi 56745 56746 if test "x$no_x" = xyes; then 56747 56748 # Print a helpful message on how to acquire the necessary build dependency. 56749 # x11 is the help tag: freetype, cups, alsa etc 56750 MISSING_DEPENDENCY=x11 56751 56752 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56753 cygwin_help $MISSING_DEPENDENCY 56754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56755 msys_help $MISSING_DEPENDENCY 56756 else 56757 PKGHANDLER_COMMAND= 56758 56759 case $PKGHANDLER in 56760 apt-get) 56761 apt_help $MISSING_DEPENDENCY ;; 56762 yum) 56763 yum_help $MISSING_DEPENDENCY ;; 56764 port) 56765 port_help $MISSING_DEPENDENCY ;; 56766 pkgutil) 56767 pkgutil_help $MISSING_DEPENDENCY ;; 56768 pkgadd) 56769 pkgadd_help $MISSING_DEPENDENCY ;; 56770 esac 56771 56772 if test "x$PKGHANDLER_COMMAND" != x; then 56773 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56774 fi 56775 fi 56776 56777 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 56778 fi 56779 56780 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 56781 OPENWIN_HOME="/usr/openwin" 56782 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 56783 X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 56784 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 56785 fi 56786 56787 ac_ext=c 56788 ac_cpp='$CPP $CPPFLAGS' 56789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56791 ac_compiler_gnu=$ac_cv_c_compiler_gnu 56792 56793 OLD_CFLAGS="$CFLAGS" 56794 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 56795 56796 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 56797 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 56798 do : 56799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 56800 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 56801 # include <X11/Xlib.h> 56802 # include <X11/Xutil.h> 56803 56804 56805 " 56806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 56807 cat >>confdefs.h <<_ACEOF 56808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 56809 _ACEOF 56810 X11_HEADERS_OK=yes 56811 else 56812 X11_HEADERS_OK=no; break 56813 fi 56814 56815 done 56816 56817 56818 if test "x$X11_HEADERS_OK" = xno; then 56819 56820 # Print a helpful message on how to acquire the necessary build dependency. 56821 # x11 is the help tag: freetype, cups, alsa etc 56822 MISSING_DEPENDENCY=x11 56823 56824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56825 cygwin_help $MISSING_DEPENDENCY 56826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56827 msys_help $MISSING_DEPENDENCY 56828 else 56829 PKGHANDLER_COMMAND= 56830 56831 case $PKGHANDLER in 56832 apt-get) 56833 apt_help $MISSING_DEPENDENCY ;; 56834 yum) 56835 yum_help $MISSING_DEPENDENCY ;; 56836 port) 56837 port_help $MISSING_DEPENDENCY ;; 56838 pkgutil) 56839 pkgutil_help $MISSING_DEPENDENCY ;; 56840 pkgadd) 56841 pkgadd_help $MISSING_DEPENDENCY ;; 56842 esac 56843 56844 if test "x$PKGHANDLER_COMMAND" != x; then 56845 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56846 fi 56847 fi 56848 56849 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 56850 fi 56851 56852 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 56853 # defined in libawt_xawt. 56854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 56855 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 56856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56857 /* end confdefs.h. */ 56858 #include <X11/extensions/Xrender.h> 56859 int 56860 main () 56861 { 56862 XLinearGradient x; 56863 ; 56864 return 0; 56865 } 56866 _ACEOF 56867 if ac_fn_c_try_compile "$LINENO"; then : 56868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56869 $as_echo "yes" >&6; } 56870 else 56871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56872 $as_echo "no" >&6; } 56873 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 56874 fi 56875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56876 56877 CFLAGS="$OLD_CFLAGS" 56878 ac_ext=cpp 56879 ac_cpp='$CXXCPP $CPPFLAGS' 56880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 56883 56884 fi # NEEDS_LIB_X11 56885 56886 56887 56888 56889 56890 56891 # Check whether --with-cups was given. 56892 if test "${with_cups+set}" = set; then : 56893 withval=$with_cups; 56894 fi 56895 56896 56897 # Check whether --with-cups-include was given. 56898 if test "${with_cups_include+set}" = set; then : 56899 withval=$with_cups_include; 56900 fi 56901 56902 56903 if test "x$NEEDS_LIB_CUPS" = xfalse; then 56904 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 56905 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 56906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 56907 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 56908 fi 56909 CUPS_CFLAGS= 56910 else 56911 CUPS_FOUND=no 56912 56913 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 56914 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 56915 fi 56916 56917 if test "x${with_cups}" != x; then 56918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 56919 $as_echo_n "checking for cups headers... " >&6; } 56920 if test -s "${with_cups}/include/cups/cups.h"; then 56921 CUPS_CFLAGS="-I${with_cups}/include" 56922 CUPS_FOUND=yes 56923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 56924 $as_echo "$CUPS_FOUND" >&6; } 56925 else 56926 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 56927 fi 56928 fi 56929 if test "x${with_cups_include}" != x; then 56930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 56931 $as_echo_n "checking for cups headers... " >&6; } 56932 if test -s "${with_cups_include}/cups/cups.h"; then 56933 CUPS_CFLAGS="-I${with_cups_include}" 56934 CUPS_FOUND=yes 56935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 56936 $as_echo "$CUPS_FOUND" >&6; } 56937 else 56938 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 56939 fi 56940 fi 56941 if test "x$CUPS_FOUND" = xno; then 56942 # Are the cups headers installed in the default /usr/include location? 56943 for ac_header in cups/cups.h cups/ppd.h 56944 do : 56945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 56946 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 56947 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 56948 cat >>confdefs.h <<_ACEOF 56949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 56950 _ACEOF 56951 56952 CUPS_FOUND=yes 56953 CUPS_CFLAGS= 56954 DEFAULT_CUPS=yes 56955 56956 fi 56957 56958 done 56959 56960 fi 56961 if test "x$CUPS_FOUND" = xno; then 56962 56963 # Print a helpful message on how to acquire the necessary build dependency. 56964 # cups is the help tag: freetype, cups, alsa etc 56965 MISSING_DEPENDENCY=cups 56966 56967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56968 cygwin_help $MISSING_DEPENDENCY 56969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56970 msys_help $MISSING_DEPENDENCY 56971 else 56972 PKGHANDLER_COMMAND= 56973 56974 case $PKGHANDLER in 56975 apt-get) 56976 apt_help $MISSING_DEPENDENCY ;; 56977 yum) 56978 yum_help $MISSING_DEPENDENCY ;; 56979 port) 56980 port_help $MISSING_DEPENDENCY ;; 56981 pkgutil) 56982 pkgutil_help $MISSING_DEPENDENCY ;; 56983 pkgadd) 56984 pkgadd_help $MISSING_DEPENDENCY ;; 56985 esac 56986 56987 if test "x$PKGHANDLER_COMMAND" != x; then 56988 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56989 fi 56990 fi 56991 56992 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 56993 fi 56994 fi 56995 56996 56997 56998 56999 57000 # Check whether --with-freetype was given. 57001 if test "${with_freetype+set}" = set; then : 57002 withval=$with_freetype; 57003 fi 57004 57005 57006 # Check whether --with-freetype-include was given. 57007 if test "${with_freetype_include+set}" = set; then : 57008 withval=$with_freetype_include; 57009 fi 57010 57011 57012 # Check whether --with-freetype-lib was given. 57013 if test "${with_freetype_lib+set}" = set; then : 57014 withval=$with_freetype_lib; 57015 fi 57016 57017 57018 # Check whether --with-freetype-src was given. 57019 if test "${with_freetype_src+set}" = set; then : 57020 withval=$with_freetype_src; 57021 fi 57022 57023 # Check whether --enable-freetype-bundling was given. 57024 if test "${enable_freetype_bundling+set}" = set; then : 57025 enableval=$enable_freetype_bundling; 57026 fi 57027 57028 57029 # Need to specify explicitly since it needs to be overridden on some versions of macosx 57030 FREETYPE_BASE_NAME=freetype 57031 FREETYPE_CFLAGS= 57032 FREETYPE_LIBS= 57033 FREETYPE_BUNDLE_LIB_PATH= 57034 57035 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 57036 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 57037 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 57038 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 57039 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 57040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 57041 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 57042 fi 57043 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 57044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 57045 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 57046 fi 57047 else 57048 # freetype is needed to build; go get it! 57049 57050 BUNDLE_FREETYPE="$enable_freetype_bundling" 57051 57052 if test "x$with_freetype_src" != x; then 57053 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57054 # Try to build freetype if --with-freetype-src was given on Windows 57055 57056 FREETYPE_SRC_PATH="$with_freetype_src" 57057 BUILD_FREETYPE=yes 57058 57059 # Check if the freetype sources are acessible.. 57060 if ! test -d $FREETYPE_SRC_PATH; then 57061 { $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 57062 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 57063 BUILD_FREETYPE=no 57064 fi 57065 # ..and contain a vc2010 project file 57066 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 57067 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 57068 { $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 57069 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 57070 BUILD_FREETYPE=no 57071 fi 57072 # Now check if configure found a version of 'msbuild.exe' 57073 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 57074 { $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 57075 $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;} 57076 BUILD_FREETYPE=no 57077 fi 57078 57079 # Ready to go.. 57080 if test "x$BUILD_FREETYPE" = xyes; then 57081 # msbuild requires trailing slashes for output directories 57082 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 57083 freetype_lib_path_unix="$freetype_lib_path" 57084 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 57085 57086 unix_path="$vcxproj_path" 57087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57088 windows_path=`$CYGPATH -m "$unix_path"` 57089 vcxproj_path="$windows_path" 57090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57091 windows_path=`cmd //c echo $unix_path` 57092 vcxproj_path="$windows_path" 57093 fi 57094 57095 57096 unix_path="$freetype_lib_path" 57097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57098 windows_path=`$CYGPATH -m "$unix_path"` 57099 freetype_lib_path="$windows_path" 57100 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57101 windows_path=`cmd //c echo $unix_path` 57102 freetype_lib_path="$windows_path" 57103 fi 57104 57105 57106 unix_path="$freetype_obj_path" 57107 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57108 windows_path=`$CYGPATH -m "$unix_path"` 57109 freetype_obj_path="$windows_path" 57110 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57111 windows_path=`cmd //c echo $unix_path` 57112 freetype_obj_path="$windows_path" 57113 fi 57114 57115 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57116 freetype_platform=x64 57117 else 57118 freetype_platform=win32 57119 fi 57120 57121 # The original freetype project file is for VS 2010 (i.e. 'v100'), 57122 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 57123 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 57124 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 57125 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 57126 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 57127 57128 # First we try to build the freetype.dll 57129 $ECHO -e "@echo off\n"\ 57130 "$MSBUILD $vcxproj_path "\ 57131 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 57132 "/p:Configuration=\"Release Multithreaded\" "\ 57133 "/p:Platform=$freetype_platform "\ 57134 "/p:ConfigurationType=DynamicLibrary "\ 57135 "/p:TargetName=freetype "\ 57136 "/p:OutDir=\"$freetype_lib_path\" "\ 57137 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 57138 cmd /c freetype.bat 57139 57140 if test -s "$freetype_lib_path_unix/freetype.dll"; then 57141 # If that succeeds we also build freetype.lib 57142 $ECHO -e "@echo off\n"\ 57143 "$MSBUILD $vcxproj_path "\ 57144 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 57145 "/p:Configuration=\"Release Multithreaded\" "\ 57146 "/p:Platform=$freetype_platform "\ 57147 "/p:ConfigurationType=StaticLibrary "\ 57148 "/p:TargetName=freetype "\ 57149 "/p:OutDir=\"$freetype_lib_path\" "\ 57150 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 57151 cmd /c freetype.bat 57152 57153 if test -s "$freetype_lib_path_unix/freetype.lib"; then 57154 # Once we build both, lib and dll, set freetype lib and include path appropriately 57155 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 57156 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 57157 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 57158 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 57159 else 57160 BUILD_FREETYPE=no 57161 fi 57162 else 57163 BUILD_FREETYPE=no 57164 fi 57165 fi 57166 57167 if test "x$BUILD_FREETYPE" = xyes; then 57168 # Okay, we built it. Check that it works. 57169 57170 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57171 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57172 METHOD="--with-freetype-src" 57173 57174 # Let's start with an optimistic view of the world :-) 57175 FOUND_FREETYPE=yes 57176 57177 # First look for the canonical freetype main include file ft2build.h. 57178 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57179 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57180 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57181 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57182 # Fail. 57183 FOUND_FREETYPE=no 57184 fi 57185 fi 57186 57187 if test "x$FOUND_FREETYPE" = xyes; then 57188 # Include file found, let's continue the sanity check. 57189 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57190 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57191 57192 # Reset to default value 57193 FREETYPE_BASE_NAME=freetype 57194 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57195 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57196 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57197 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57198 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57199 # for the .6 version explicitly. 57200 FREETYPE_BASE_NAME=freetype.6 57201 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57202 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57203 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57204 else 57205 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57206 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57207 FOUND_FREETYPE=no 57208 fi 57209 else 57210 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57211 # On Windows, we will need both .lib and .dll file. 57212 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57213 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57214 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57215 FOUND_FREETYPE=no 57216 fi 57217 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57218 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57219 # Found lib in isa dir, use that instead. 57220 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57221 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57222 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57223 fi 57224 fi 57225 fi 57226 57227 if test "x$FOUND_FREETYPE" = xyes; then 57228 57229 # Only process if variable expands to non-empty 57230 57231 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57233 57234 # Input might be given as Windows format, start by converting to 57235 # unix format. 57236 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57237 new_path=`$CYGPATH -u "$path"` 57238 57239 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57240 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57241 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57242 # "foo.exe" is OK but "foo" is an error. 57243 # 57244 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57245 # It is also a way to make sure we got the proper file name for the real test later on. 57246 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57247 if test "x$test_shortpath" = x; then 57248 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57249 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57250 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57251 fi 57252 57253 # Call helper function which possibly converts this using DOS-style short mode. 57254 # If so, the updated path is stored in $new_path. 57255 57256 input_path="$new_path" 57257 # Check if we need to convert this using DOS-style short mode. If the path 57258 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57259 # take no chances and rewrite it. 57260 # Note: m4 eats our [], so we need to use [ and ] instead. 57261 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57262 if test "x$has_forbidden_chars" != x; then 57263 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57264 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57265 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57266 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57267 # Going to short mode and back again did indeed matter. Since short mode is 57268 # case insensitive, let's make it lowercase to improve readability. 57269 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57270 # Now convert it back to Unix-style (cygpath) 57271 input_path=`$CYGPATH -u "$shortmode_path"` 57272 new_path="$input_path" 57273 fi 57274 fi 57275 57276 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57277 if test "x$test_cygdrive_prefix" = x; then 57278 # As a simple fix, exclude /usr/bin since it's not a real path. 57279 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57280 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57281 # a path prefixed by /cygdrive for fixpath to work. 57282 new_path="$CYGWIN_ROOT_PATH$input_path" 57283 fi 57284 fi 57285 57286 57287 if test "x$path" != "x$new_path"; then 57288 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57289 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57290 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57291 fi 57292 57293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57294 57295 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57296 has_colon=`$ECHO $path | $GREP ^.:` 57297 new_path="$path" 57298 if test "x$has_colon" = x; then 57299 # Not in mixed or Windows style, start by that. 57300 new_path=`cmd //c echo $path` 57301 fi 57302 57303 57304 input_path="$new_path" 57305 # Check if we need to convert this using DOS-style short mode. If the path 57306 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57307 # take no chances and rewrite it. 57308 # Note: m4 eats our [], so we need to use [ and ] instead. 57309 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57310 if test "x$has_forbidden_chars" != x; then 57311 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57312 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57313 fi 57314 57315 57316 windows_path="$new_path" 57317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57318 unix_path=`$CYGPATH -u "$windows_path"` 57319 new_path="$unix_path" 57320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57321 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57322 new_path="$unix_path" 57323 fi 57324 57325 if test "x$path" != "x$new_path"; then 57326 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57327 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57328 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57329 fi 57330 57331 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57332 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57333 57334 else 57335 # We're on a unix platform. Hooray! :) 57336 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57337 has_space=`$ECHO "$path" | $GREP " "` 57338 if test "x$has_space" != x; then 57339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57340 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57341 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57342 fi 57343 57344 # Use eval to expand a potential ~ 57345 eval path="$path" 57346 if test ! -f "$path" && test ! -d "$path"; then 57347 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57348 fi 57349 57350 if test -d "$path"; then 57351 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57352 else 57353 dir="`$DIRNAME "$path"`" 57354 base="`$BASENAME "$path"`" 57355 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57356 fi 57357 fi 57358 fi 57359 57360 57361 # Only process if variable expands to non-empty 57362 57363 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57365 57366 # Input might be given as Windows format, start by converting to 57367 # unix format. 57368 path="$POTENTIAL_FREETYPE_LIB_PATH" 57369 new_path=`$CYGPATH -u "$path"` 57370 57371 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57372 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57373 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57374 # "foo.exe" is OK but "foo" is an error. 57375 # 57376 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57377 # It is also a way to make sure we got the proper file name for the real test later on. 57378 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57379 if test "x$test_shortpath" = x; then 57380 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57381 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57382 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57383 fi 57384 57385 # Call helper function which possibly converts this using DOS-style short mode. 57386 # If so, the updated path is stored in $new_path. 57387 57388 input_path="$new_path" 57389 # Check if we need to convert this using DOS-style short mode. If the path 57390 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57391 # take no chances and rewrite it. 57392 # Note: m4 eats our [], so we need to use [ and ] instead. 57393 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57394 if test "x$has_forbidden_chars" != x; then 57395 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57396 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57397 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57398 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57399 # Going to short mode and back again did indeed matter. Since short mode is 57400 # case insensitive, let's make it lowercase to improve readability. 57401 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57402 # Now convert it back to Unix-style (cygpath) 57403 input_path=`$CYGPATH -u "$shortmode_path"` 57404 new_path="$input_path" 57405 fi 57406 fi 57407 57408 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57409 if test "x$test_cygdrive_prefix" = x; then 57410 # As a simple fix, exclude /usr/bin since it's not a real path. 57411 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57412 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57413 # a path prefixed by /cygdrive for fixpath to work. 57414 new_path="$CYGWIN_ROOT_PATH$input_path" 57415 fi 57416 fi 57417 57418 57419 if test "x$path" != "x$new_path"; then 57420 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57421 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57422 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57423 fi 57424 57425 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57426 57427 path="$POTENTIAL_FREETYPE_LIB_PATH" 57428 has_colon=`$ECHO $path | $GREP ^.:` 57429 new_path="$path" 57430 if test "x$has_colon" = x; then 57431 # Not in mixed or Windows style, start by that. 57432 new_path=`cmd //c echo $path` 57433 fi 57434 57435 57436 input_path="$new_path" 57437 # Check if we need to convert this using DOS-style short mode. If the path 57438 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57439 # take no chances and rewrite it. 57440 # Note: m4 eats our [], so we need to use [ and ] instead. 57441 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57442 if test "x$has_forbidden_chars" != x; then 57443 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57444 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57445 fi 57446 57447 57448 windows_path="$new_path" 57449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57450 unix_path=`$CYGPATH -u "$windows_path"` 57451 new_path="$unix_path" 57452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57454 new_path="$unix_path" 57455 fi 57456 57457 if test "x$path" != "x$new_path"; then 57458 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57459 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57460 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57461 fi 57462 57463 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57464 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57465 57466 else 57467 # We're on a unix platform. Hooray! :) 57468 path="$POTENTIAL_FREETYPE_LIB_PATH" 57469 has_space=`$ECHO "$path" | $GREP " "` 57470 if test "x$has_space" != x; then 57471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57472 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57473 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57474 fi 57475 57476 # Use eval to expand a potential ~ 57477 eval path="$path" 57478 if test ! -f "$path" && test ! -d "$path"; then 57479 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57480 fi 57481 57482 if test -d "$path"; then 57483 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57484 else 57485 dir="`$DIRNAME "$path"`" 57486 base="`$BASENAME "$path"`" 57487 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57488 fi 57489 fi 57490 fi 57491 57492 57493 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57495 $as_echo_n "checking for freetype includes... " >&6; } 57496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57497 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57498 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57500 $as_echo_n "checking for freetype libraries... " >&6; } 57501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57502 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57503 fi 57504 57505 if test "x$FOUND_FREETYPE" != xyes; then 57506 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 57507 fi 57508 else 57509 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 57510 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 57511 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 57512 fi 57513 else 57514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 57515 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 57516 fi 57517 fi 57518 57519 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 57520 # User has specified settings 57521 57522 if test "x$BUNDLE_FREETYPE" = x; then 57523 # If not specified, default is to bundle freetype 57524 BUNDLE_FREETYPE=yes 57525 fi 57526 57527 if test "x$with_freetype" != x; then 57528 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 57529 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 57530 fi 57531 57532 # Allow --with-freetype-lib and --with-freetype-include to override 57533 if test "x$with_freetype_include" != x; then 57534 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 57535 fi 57536 if test "x$with_freetype_lib" != x; then 57537 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 57538 fi 57539 57540 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57541 # Okay, we got it. Check that it works. 57542 57543 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57544 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57545 METHOD="--with-freetype" 57546 57547 # Let's start with an optimistic view of the world :-) 57548 FOUND_FREETYPE=yes 57549 57550 # First look for the canonical freetype main include file ft2build.h. 57551 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57552 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57553 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57554 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57555 # Fail. 57556 FOUND_FREETYPE=no 57557 fi 57558 fi 57559 57560 if test "x$FOUND_FREETYPE" = xyes; then 57561 # Include file found, let's continue the sanity check. 57562 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57563 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57564 57565 # Reset to default value 57566 FREETYPE_BASE_NAME=freetype 57567 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57568 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57569 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57570 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57571 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57572 # for the .6 version explicitly. 57573 FREETYPE_BASE_NAME=freetype.6 57574 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57575 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57576 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57577 else 57578 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57579 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57580 FOUND_FREETYPE=no 57581 fi 57582 else 57583 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57584 # On Windows, we will need both .lib and .dll file. 57585 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57586 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57587 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57588 FOUND_FREETYPE=no 57589 fi 57590 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57591 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57592 # Found lib in isa dir, use that instead. 57593 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57594 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57595 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57596 fi 57597 fi 57598 fi 57599 57600 if test "x$FOUND_FREETYPE" = xyes; then 57601 57602 # Only process if variable expands to non-empty 57603 57604 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57605 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57606 57607 # Input might be given as Windows format, start by converting to 57608 # unix format. 57609 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57610 new_path=`$CYGPATH -u "$path"` 57611 57612 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57613 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57614 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57615 # "foo.exe" is OK but "foo" is an error. 57616 # 57617 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57618 # It is also a way to make sure we got the proper file name for the real test later on. 57619 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57620 if test "x$test_shortpath" = x; then 57621 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57622 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57623 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57624 fi 57625 57626 # Call helper function which possibly converts this using DOS-style short mode. 57627 # If so, the updated path is stored in $new_path. 57628 57629 input_path="$new_path" 57630 # Check if we need to convert this using DOS-style short mode. If the path 57631 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57632 # take no chances and rewrite it. 57633 # Note: m4 eats our [], so we need to use [ and ] instead. 57634 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57635 if test "x$has_forbidden_chars" != x; then 57636 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57637 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57638 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57639 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57640 # Going to short mode and back again did indeed matter. Since short mode is 57641 # case insensitive, let's make it lowercase to improve readability. 57642 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57643 # Now convert it back to Unix-style (cygpath) 57644 input_path=`$CYGPATH -u "$shortmode_path"` 57645 new_path="$input_path" 57646 fi 57647 fi 57648 57649 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57650 if test "x$test_cygdrive_prefix" = x; then 57651 # As a simple fix, exclude /usr/bin since it's not a real path. 57652 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57653 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57654 # a path prefixed by /cygdrive for fixpath to work. 57655 new_path="$CYGWIN_ROOT_PATH$input_path" 57656 fi 57657 fi 57658 57659 57660 if test "x$path" != "x$new_path"; then 57661 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57662 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57663 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57664 fi 57665 57666 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57667 57668 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57669 has_colon=`$ECHO $path | $GREP ^.:` 57670 new_path="$path" 57671 if test "x$has_colon" = x; then 57672 # Not in mixed or Windows style, start by that. 57673 new_path=`cmd //c echo $path` 57674 fi 57675 57676 57677 input_path="$new_path" 57678 # Check if we need to convert this using DOS-style short mode. If the path 57679 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57680 # take no chances and rewrite it. 57681 # Note: m4 eats our [], so we need to use [ and ] instead. 57682 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57683 if test "x$has_forbidden_chars" != x; then 57684 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57685 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57686 fi 57687 57688 57689 windows_path="$new_path" 57690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57691 unix_path=`$CYGPATH -u "$windows_path"` 57692 new_path="$unix_path" 57693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57694 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57695 new_path="$unix_path" 57696 fi 57697 57698 if test "x$path" != "x$new_path"; then 57699 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57700 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57701 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57702 fi 57703 57704 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57705 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57706 57707 else 57708 # We're on a unix platform. Hooray! :) 57709 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57710 has_space=`$ECHO "$path" | $GREP " "` 57711 if test "x$has_space" != x; then 57712 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57713 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57714 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57715 fi 57716 57717 # Use eval to expand a potential ~ 57718 eval path="$path" 57719 if test ! -f "$path" && test ! -d "$path"; then 57720 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57721 fi 57722 57723 if test -d "$path"; then 57724 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57725 else 57726 dir="`$DIRNAME "$path"`" 57727 base="`$BASENAME "$path"`" 57728 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57729 fi 57730 fi 57731 fi 57732 57733 57734 # Only process if variable expands to non-empty 57735 57736 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57738 57739 # Input might be given as Windows format, start by converting to 57740 # unix format. 57741 path="$POTENTIAL_FREETYPE_LIB_PATH" 57742 new_path=`$CYGPATH -u "$path"` 57743 57744 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57745 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57746 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57747 # "foo.exe" is OK but "foo" is an error. 57748 # 57749 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57750 # It is also a way to make sure we got the proper file name for the real test later on. 57751 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57752 if test "x$test_shortpath" = x; then 57753 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57754 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57755 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57756 fi 57757 57758 # Call helper function which possibly converts this using DOS-style short mode. 57759 # If so, the updated path is stored in $new_path. 57760 57761 input_path="$new_path" 57762 # Check if we need to convert this using DOS-style short mode. If the path 57763 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57764 # take no chances and rewrite it. 57765 # Note: m4 eats our [], so we need to use [ and ] instead. 57766 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57767 if test "x$has_forbidden_chars" != x; then 57768 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57769 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57770 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57771 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57772 # Going to short mode and back again did indeed matter. Since short mode is 57773 # case insensitive, let's make it lowercase to improve readability. 57774 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57775 # Now convert it back to Unix-style (cygpath) 57776 input_path=`$CYGPATH -u "$shortmode_path"` 57777 new_path="$input_path" 57778 fi 57779 fi 57780 57781 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57782 if test "x$test_cygdrive_prefix" = x; then 57783 # As a simple fix, exclude /usr/bin since it's not a real path. 57784 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57785 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57786 # a path prefixed by /cygdrive for fixpath to work. 57787 new_path="$CYGWIN_ROOT_PATH$input_path" 57788 fi 57789 fi 57790 57791 57792 if test "x$path" != "x$new_path"; then 57793 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57794 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57795 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57796 fi 57797 57798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57799 57800 path="$POTENTIAL_FREETYPE_LIB_PATH" 57801 has_colon=`$ECHO $path | $GREP ^.:` 57802 new_path="$path" 57803 if test "x$has_colon" = x; then 57804 # Not in mixed or Windows style, start by that. 57805 new_path=`cmd //c echo $path` 57806 fi 57807 57808 57809 input_path="$new_path" 57810 # Check if we need to convert this using DOS-style short mode. If the path 57811 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57812 # take no chances and rewrite it. 57813 # Note: m4 eats our [], so we need to use [ and ] instead. 57814 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57815 if test "x$has_forbidden_chars" != x; then 57816 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57817 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57818 fi 57819 57820 57821 windows_path="$new_path" 57822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57823 unix_path=`$CYGPATH -u "$windows_path"` 57824 new_path="$unix_path" 57825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57827 new_path="$unix_path" 57828 fi 57829 57830 if test "x$path" != "x$new_path"; then 57831 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57832 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57833 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57834 fi 57835 57836 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57837 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57838 57839 else 57840 # We're on a unix platform. Hooray! :) 57841 path="$POTENTIAL_FREETYPE_LIB_PATH" 57842 has_space=`$ECHO "$path" | $GREP " "` 57843 if test "x$has_space" != x; then 57844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57845 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57846 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57847 fi 57848 57849 # Use eval to expand a potential ~ 57850 eval path="$path" 57851 if test ! -f "$path" && test ! -d "$path"; then 57852 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57853 fi 57854 57855 if test -d "$path"; then 57856 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57857 else 57858 dir="`$DIRNAME "$path"`" 57859 base="`$BASENAME "$path"`" 57860 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57861 fi 57862 fi 57863 fi 57864 57865 57866 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57868 $as_echo_n "checking for freetype includes... " >&6; } 57869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57870 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57871 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57873 $as_echo_n "checking for freetype libraries... " >&6; } 57874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57875 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57876 fi 57877 57878 if test "x$FOUND_FREETYPE" != xyes; then 57879 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 57880 fi 57881 else 57882 # User specified only one of lib or include. This is an error. 57883 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 57884 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 57885 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 57886 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 57887 else 57888 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 57889 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 57890 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 57891 fi 57892 fi 57893 else 57894 # User did not specify settings, but we need freetype. Try to locate it. 57895 57896 if test "x$BUNDLE_FREETYPE" = x; then 57897 # If not specified, default is to bundle freetype only on windows 57898 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57899 BUNDLE_FREETYPE=yes 57900 else 57901 BUNDLE_FREETYPE=no 57902 fi 57903 fi 57904 57905 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 57906 if test "x$SYSROOT" = x; then 57907 if test "x$FOUND_FREETYPE" != xyes; then 57908 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 57909 if test "x$PKG_CONFIG" != x; then 57910 57911 pkg_failed=no 57912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 57913 $as_echo_n "checking for FREETYPE... " >&6; } 57914 57915 if test -n "$FREETYPE_CFLAGS"; then 57916 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 57917 elif test -n "$PKG_CONFIG"; then 57918 if test -n "$PKG_CONFIG" && \ 57919 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 57920 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 57921 ac_status=$? 57922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57923 test $ac_status = 0; }; then 57924 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 57925 else 57926 pkg_failed=yes 57927 fi 57928 else 57929 pkg_failed=untried 57930 fi 57931 if test -n "$FREETYPE_LIBS"; then 57932 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 57933 elif test -n "$PKG_CONFIG"; then 57934 if test -n "$PKG_CONFIG" && \ 57935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 57936 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 57937 ac_status=$? 57938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57939 test $ac_status = 0; }; then 57940 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 57941 else 57942 pkg_failed=yes 57943 fi 57944 else 57945 pkg_failed=untried 57946 fi 57947 57948 57949 57950 if test $pkg_failed = yes; then 57951 57952 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 57953 _pkg_short_errors_supported=yes 57954 else 57955 _pkg_short_errors_supported=no 57956 fi 57957 if test $_pkg_short_errors_supported = yes; then 57958 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 57959 else 57960 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 57961 fi 57962 # Put the nasty error message in config.log where it belongs 57963 echo "$FREETYPE_PKG_ERRORS" >&5 57964 57965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57966 $as_echo "no" >&6; } 57967 FOUND_FREETYPE=no 57968 elif test $pkg_failed = untried; then 57969 FOUND_FREETYPE=no 57970 else 57971 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 57972 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 57973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57974 $as_echo "yes" >&6; } 57975 FOUND_FREETYPE=yes 57976 fi 57977 if test "x$FOUND_FREETYPE" = xyes; then 57978 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 57979 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 57980 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 57981 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 57982 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 57983 fi 57984 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 57985 if test "x$BUNDLE_FREETYPE" = xyes; then 57986 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 57987 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 57988 FOUND_FREETYPE=no 57989 else 57990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 57991 $as_echo_n "checking for freetype... " >&6; } 57992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 57993 $as_echo "yes (using pkg-config)" >&6; } 57994 fi 57995 fi 57996 fi 57997 fi 57998 fi 57999 58000 if test "x$FOUND_FREETYPE" != xyes; then 58001 # Check in well-known locations 58002 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58003 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 58004 58005 windows_path="$FREETYPE_BASE_DIR" 58006 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58007 unix_path=`$CYGPATH -u "$windows_path"` 58008 FREETYPE_BASE_DIR="$unix_path" 58009 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58010 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58011 FREETYPE_BASE_DIR="$unix_path" 58012 fi 58013 58014 58015 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58016 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 58017 METHOD="well-known location" 58018 58019 # Let's start with an optimistic view of the world :-) 58020 FOUND_FREETYPE=yes 58021 58022 # First look for the canonical freetype main include file ft2build.h. 58023 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58024 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58025 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58026 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58027 # Fail. 58028 FOUND_FREETYPE=no 58029 fi 58030 fi 58031 58032 if test "x$FOUND_FREETYPE" = xyes; then 58033 # Include file found, let's continue the sanity check. 58034 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58035 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58036 58037 # Reset to default value 58038 FREETYPE_BASE_NAME=freetype 58039 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58040 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58041 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58042 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58043 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58044 # for the .6 version explicitly. 58045 FREETYPE_BASE_NAME=freetype.6 58046 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58047 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58048 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58049 else 58050 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58051 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58052 FOUND_FREETYPE=no 58053 fi 58054 else 58055 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58056 # On Windows, we will need both .lib and .dll file. 58057 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58058 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58059 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58060 FOUND_FREETYPE=no 58061 fi 58062 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58063 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58064 # Found lib in isa dir, use that instead. 58065 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58066 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58067 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58068 fi 58069 fi 58070 fi 58071 58072 if test "x$FOUND_FREETYPE" = xyes; then 58073 58074 # Only process if variable expands to non-empty 58075 58076 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58078 58079 # Input might be given as Windows format, start by converting to 58080 # unix format. 58081 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58082 new_path=`$CYGPATH -u "$path"` 58083 58084 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58085 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58086 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58087 # "foo.exe" is OK but "foo" is an error. 58088 # 58089 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58090 # It is also a way to make sure we got the proper file name for the real test later on. 58091 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58092 if test "x$test_shortpath" = x; then 58093 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58094 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58095 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58096 fi 58097 58098 # Call helper function which possibly converts this using DOS-style short mode. 58099 # If so, the updated path is stored in $new_path. 58100 58101 input_path="$new_path" 58102 # Check if we need to convert this using DOS-style short mode. If the path 58103 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58104 # take no chances and rewrite it. 58105 # Note: m4 eats our [], so we need to use [ and ] instead. 58106 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58107 if test "x$has_forbidden_chars" != x; then 58108 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58109 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58110 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58111 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58112 # Going to short mode and back again did indeed matter. Since short mode is 58113 # case insensitive, let's make it lowercase to improve readability. 58114 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58115 # Now convert it back to Unix-style (cygpath) 58116 input_path=`$CYGPATH -u "$shortmode_path"` 58117 new_path="$input_path" 58118 fi 58119 fi 58120 58121 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58122 if test "x$test_cygdrive_prefix" = x; then 58123 # As a simple fix, exclude /usr/bin since it's not a real path. 58124 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58125 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58126 # a path prefixed by /cygdrive for fixpath to work. 58127 new_path="$CYGWIN_ROOT_PATH$input_path" 58128 fi 58129 fi 58130 58131 58132 if test "x$path" != "x$new_path"; then 58133 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58134 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58135 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58136 fi 58137 58138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58139 58140 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58141 has_colon=`$ECHO $path | $GREP ^.:` 58142 new_path="$path" 58143 if test "x$has_colon" = x; then 58144 # Not in mixed or Windows style, start by that. 58145 new_path=`cmd //c echo $path` 58146 fi 58147 58148 58149 input_path="$new_path" 58150 # Check if we need to convert this using DOS-style short mode. If the path 58151 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58152 # take no chances and rewrite it. 58153 # Note: m4 eats our [], so we need to use [ and ] instead. 58154 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58155 if test "x$has_forbidden_chars" != x; then 58156 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58157 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58158 fi 58159 58160 58161 windows_path="$new_path" 58162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58163 unix_path=`$CYGPATH -u "$windows_path"` 58164 new_path="$unix_path" 58165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58166 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58167 new_path="$unix_path" 58168 fi 58169 58170 if test "x$path" != "x$new_path"; then 58171 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58172 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58173 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58174 fi 58175 58176 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58177 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58178 58179 else 58180 # We're on a unix platform. Hooray! :) 58181 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58182 has_space=`$ECHO "$path" | $GREP " "` 58183 if test "x$has_space" != x; then 58184 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58185 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58186 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58187 fi 58188 58189 # Use eval to expand a potential ~ 58190 eval path="$path" 58191 if test ! -f "$path" && test ! -d "$path"; then 58192 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58193 fi 58194 58195 if test -d "$path"; then 58196 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58197 else 58198 dir="`$DIRNAME "$path"`" 58199 base="`$BASENAME "$path"`" 58200 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58201 fi 58202 fi 58203 fi 58204 58205 58206 # Only process if variable expands to non-empty 58207 58208 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58210 58211 # Input might be given as Windows format, start by converting to 58212 # unix format. 58213 path="$POTENTIAL_FREETYPE_LIB_PATH" 58214 new_path=`$CYGPATH -u "$path"` 58215 58216 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58217 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58218 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58219 # "foo.exe" is OK but "foo" is an error. 58220 # 58221 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58222 # It is also a way to make sure we got the proper file name for the real test later on. 58223 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58224 if test "x$test_shortpath" = x; then 58225 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58226 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58227 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58228 fi 58229 58230 # Call helper function which possibly converts this using DOS-style short mode. 58231 # If so, the updated path is stored in $new_path. 58232 58233 input_path="$new_path" 58234 # Check if we need to convert this using DOS-style short mode. If the path 58235 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58236 # take no chances and rewrite it. 58237 # Note: m4 eats our [], so we need to use [ and ] instead. 58238 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58239 if test "x$has_forbidden_chars" != x; then 58240 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58241 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58242 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58243 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58244 # Going to short mode and back again did indeed matter. Since short mode is 58245 # case insensitive, let's make it lowercase to improve readability. 58246 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58247 # Now convert it back to Unix-style (cygpath) 58248 input_path=`$CYGPATH -u "$shortmode_path"` 58249 new_path="$input_path" 58250 fi 58251 fi 58252 58253 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58254 if test "x$test_cygdrive_prefix" = x; then 58255 # As a simple fix, exclude /usr/bin since it's not a real path. 58256 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58257 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58258 # a path prefixed by /cygdrive for fixpath to work. 58259 new_path="$CYGWIN_ROOT_PATH$input_path" 58260 fi 58261 fi 58262 58263 58264 if test "x$path" != "x$new_path"; then 58265 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58266 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58267 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58268 fi 58269 58270 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58271 58272 path="$POTENTIAL_FREETYPE_LIB_PATH" 58273 has_colon=`$ECHO $path | $GREP ^.:` 58274 new_path="$path" 58275 if test "x$has_colon" = x; then 58276 # Not in mixed or Windows style, start by that. 58277 new_path=`cmd //c echo $path` 58278 fi 58279 58280 58281 input_path="$new_path" 58282 # Check if we need to convert this using DOS-style short mode. If the path 58283 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58284 # take no chances and rewrite it. 58285 # Note: m4 eats our [], so we need to use [ and ] instead. 58286 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58287 if test "x$has_forbidden_chars" != x; then 58288 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58289 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58290 fi 58291 58292 58293 windows_path="$new_path" 58294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58295 unix_path=`$CYGPATH -u "$windows_path"` 58296 new_path="$unix_path" 58297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58298 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58299 new_path="$unix_path" 58300 fi 58301 58302 if test "x$path" != "x$new_path"; then 58303 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58304 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58305 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58306 fi 58307 58308 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58309 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58310 58311 else 58312 # We're on a unix platform. Hooray! :) 58313 path="$POTENTIAL_FREETYPE_LIB_PATH" 58314 has_space=`$ECHO "$path" | $GREP " "` 58315 if test "x$has_space" != x; then 58316 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58317 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58318 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58319 fi 58320 58321 # Use eval to expand a potential ~ 58322 eval path="$path" 58323 if test ! -f "$path" && test ! -d "$path"; then 58324 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58325 fi 58326 58327 if test -d "$path"; then 58328 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58329 else 58330 dir="`$DIRNAME "$path"`" 58331 base="`$BASENAME "$path"`" 58332 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58333 fi 58334 fi 58335 fi 58336 58337 58338 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58340 $as_echo_n "checking for freetype includes... " >&6; } 58341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58342 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58343 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58345 $as_echo_n "checking for freetype libraries... " >&6; } 58346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58347 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58348 fi 58349 58350 if test "x$FOUND_FREETYPE" != xyes; then 58351 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 58352 58353 windows_path="$FREETYPE_BASE_DIR" 58354 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58355 unix_path=`$CYGPATH -u "$windows_path"` 58356 FREETYPE_BASE_DIR="$unix_path" 58357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58358 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58359 FREETYPE_BASE_DIR="$unix_path" 58360 fi 58361 58362 58363 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58364 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 58365 METHOD="well-known location" 58366 58367 # Let's start with an optimistic view of the world :-) 58368 FOUND_FREETYPE=yes 58369 58370 # First look for the canonical freetype main include file ft2build.h. 58371 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58372 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58373 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58374 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58375 # Fail. 58376 FOUND_FREETYPE=no 58377 fi 58378 fi 58379 58380 if test "x$FOUND_FREETYPE" = xyes; then 58381 # Include file found, let's continue the sanity check. 58382 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58383 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58384 58385 # Reset to default value 58386 FREETYPE_BASE_NAME=freetype 58387 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58388 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58389 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58390 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58391 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58392 # for the .6 version explicitly. 58393 FREETYPE_BASE_NAME=freetype.6 58394 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58395 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58396 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58397 else 58398 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58399 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58400 FOUND_FREETYPE=no 58401 fi 58402 else 58403 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58404 # On Windows, we will need both .lib and .dll file. 58405 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58406 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58407 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58408 FOUND_FREETYPE=no 58409 fi 58410 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58411 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58412 # Found lib in isa dir, use that instead. 58413 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58414 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58415 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58416 fi 58417 fi 58418 fi 58419 58420 if test "x$FOUND_FREETYPE" = xyes; then 58421 58422 # Only process if variable expands to non-empty 58423 58424 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58425 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58426 58427 # Input might be given as Windows format, start by converting to 58428 # unix format. 58429 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58430 new_path=`$CYGPATH -u "$path"` 58431 58432 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58433 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58434 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58435 # "foo.exe" is OK but "foo" is an error. 58436 # 58437 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58438 # It is also a way to make sure we got the proper file name for the real test later on. 58439 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58440 if test "x$test_shortpath" = x; then 58441 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58442 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58443 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58444 fi 58445 58446 # Call helper function which possibly converts this using DOS-style short mode. 58447 # If so, the updated path is stored in $new_path. 58448 58449 input_path="$new_path" 58450 # Check if we need to convert this using DOS-style short mode. If the path 58451 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58452 # take no chances and rewrite it. 58453 # Note: m4 eats our [], so we need to use [ and ] instead. 58454 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58455 if test "x$has_forbidden_chars" != x; then 58456 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58457 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58458 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58459 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58460 # Going to short mode and back again did indeed matter. Since short mode is 58461 # case insensitive, let's make it lowercase to improve readability. 58462 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58463 # Now convert it back to Unix-style (cygpath) 58464 input_path=`$CYGPATH -u "$shortmode_path"` 58465 new_path="$input_path" 58466 fi 58467 fi 58468 58469 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58470 if test "x$test_cygdrive_prefix" = x; then 58471 # As a simple fix, exclude /usr/bin since it's not a real path. 58472 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58473 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58474 # a path prefixed by /cygdrive for fixpath to work. 58475 new_path="$CYGWIN_ROOT_PATH$input_path" 58476 fi 58477 fi 58478 58479 58480 if test "x$path" != "x$new_path"; then 58481 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58482 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58483 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58484 fi 58485 58486 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58487 58488 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58489 has_colon=`$ECHO $path | $GREP ^.:` 58490 new_path="$path" 58491 if test "x$has_colon" = x; then 58492 # Not in mixed or Windows style, start by that. 58493 new_path=`cmd //c echo $path` 58494 fi 58495 58496 58497 input_path="$new_path" 58498 # Check if we need to convert this using DOS-style short mode. If the path 58499 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58500 # take no chances and rewrite it. 58501 # Note: m4 eats our [], so we need to use [ and ] instead. 58502 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58503 if test "x$has_forbidden_chars" != x; then 58504 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58505 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58506 fi 58507 58508 58509 windows_path="$new_path" 58510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58511 unix_path=`$CYGPATH -u "$windows_path"` 58512 new_path="$unix_path" 58513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58514 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58515 new_path="$unix_path" 58516 fi 58517 58518 if test "x$path" != "x$new_path"; then 58519 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58520 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58521 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58522 fi 58523 58524 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58525 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58526 58527 else 58528 # We're on a unix platform. Hooray! :) 58529 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58530 has_space=`$ECHO "$path" | $GREP " "` 58531 if test "x$has_space" != x; then 58532 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58533 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58534 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58535 fi 58536 58537 # Use eval to expand a potential ~ 58538 eval path="$path" 58539 if test ! -f "$path" && test ! -d "$path"; then 58540 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58541 fi 58542 58543 if test -d "$path"; then 58544 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58545 else 58546 dir="`$DIRNAME "$path"`" 58547 base="`$BASENAME "$path"`" 58548 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58549 fi 58550 fi 58551 fi 58552 58553 58554 # Only process if variable expands to non-empty 58555 58556 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58558 58559 # Input might be given as Windows format, start by converting to 58560 # unix format. 58561 path="$POTENTIAL_FREETYPE_LIB_PATH" 58562 new_path=`$CYGPATH -u "$path"` 58563 58564 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58565 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58566 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58567 # "foo.exe" is OK but "foo" is an error. 58568 # 58569 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58570 # It is also a way to make sure we got the proper file name for the real test later on. 58571 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58572 if test "x$test_shortpath" = x; then 58573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58574 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58575 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58576 fi 58577 58578 # Call helper function which possibly converts this using DOS-style short mode. 58579 # If so, the updated path is stored in $new_path. 58580 58581 input_path="$new_path" 58582 # Check if we need to convert this using DOS-style short mode. If the path 58583 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58584 # take no chances and rewrite it. 58585 # Note: m4 eats our [], so we need to use [ and ] instead. 58586 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58587 if test "x$has_forbidden_chars" != x; then 58588 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58589 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58590 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58591 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58592 # Going to short mode and back again did indeed matter. Since short mode is 58593 # case insensitive, let's make it lowercase to improve readability. 58594 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58595 # Now convert it back to Unix-style (cygpath) 58596 input_path=`$CYGPATH -u "$shortmode_path"` 58597 new_path="$input_path" 58598 fi 58599 fi 58600 58601 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58602 if test "x$test_cygdrive_prefix" = x; then 58603 # As a simple fix, exclude /usr/bin since it's not a real path. 58604 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58605 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58606 # a path prefixed by /cygdrive for fixpath to work. 58607 new_path="$CYGWIN_ROOT_PATH$input_path" 58608 fi 58609 fi 58610 58611 58612 if test "x$path" != "x$new_path"; then 58613 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58615 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58616 fi 58617 58618 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58619 58620 path="$POTENTIAL_FREETYPE_LIB_PATH" 58621 has_colon=`$ECHO $path | $GREP ^.:` 58622 new_path="$path" 58623 if test "x$has_colon" = x; then 58624 # Not in mixed or Windows style, start by that. 58625 new_path=`cmd //c echo $path` 58626 fi 58627 58628 58629 input_path="$new_path" 58630 # Check if we need to convert this using DOS-style short mode. If the path 58631 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58632 # take no chances and rewrite it. 58633 # Note: m4 eats our [], so we need to use [ and ] instead. 58634 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58635 if test "x$has_forbidden_chars" != x; then 58636 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58637 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58638 fi 58639 58640 58641 windows_path="$new_path" 58642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58643 unix_path=`$CYGPATH -u "$windows_path"` 58644 new_path="$unix_path" 58645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58647 new_path="$unix_path" 58648 fi 58649 58650 if test "x$path" != "x$new_path"; then 58651 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58652 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58653 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58654 fi 58655 58656 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58657 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58658 58659 else 58660 # We're on a unix platform. Hooray! :) 58661 path="$POTENTIAL_FREETYPE_LIB_PATH" 58662 has_space=`$ECHO "$path" | $GREP " "` 58663 if test "x$has_space" != x; then 58664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58665 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58666 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58667 fi 58668 58669 # Use eval to expand a potential ~ 58670 eval path="$path" 58671 if test ! -f "$path" && test ! -d "$path"; then 58672 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58673 fi 58674 58675 if test -d "$path"; then 58676 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58677 else 58678 dir="`$DIRNAME "$path"`" 58679 base="`$BASENAME "$path"`" 58680 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58681 fi 58682 fi 58683 fi 58684 58685 58686 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58688 $as_echo_n "checking for freetype includes... " >&6; } 58689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58690 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58691 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58693 $as_echo_n "checking for freetype libraries... " >&6; } 58694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58695 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58696 fi 58697 58698 fi 58699 if test "x$FOUND_FREETYPE" != xyes; then 58700 FREETYPE_BASE_DIR="$HOME/freetype" 58701 58702 windows_path="$FREETYPE_BASE_DIR" 58703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58704 unix_path=`$CYGPATH -u "$windows_path"` 58705 FREETYPE_BASE_DIR="$unix_path" 58706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58708 FREETYPE_BASE_DIR="$unix_path" 58709 fi 58710 58711 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58712 58713 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58714 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 58715 METHOD="well-known location" 58716 58717 # Let's start with an optimistic view of the world :-) 58718 FOUND_FREETYPE=yes 58719 58720 # First look for the canonical freetype main include file ft2build.h. 58721 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58722 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58723 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58724 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58725 # Fail. 58726 FOUND_FREETYPE=no 58727 fi 58728 fi 58729 58730 if test "x$FOUND_FREETYPE" = xyes; then 58731 # Include file found, let's continue the sanity check. 58732 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58733 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58734 58735 # Reset to default value 58736 FREETYPE_BASE_NAME=freetype 58737 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58738 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58739 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58740 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58741 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58742 # for the .6 version explicitly. 58743 FREETYPE_BASE_NAME=freetype.6 58744 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58745 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58746 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58747 else 58748 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58749 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58750 FOUND_FREETYPE=no 58751 fi 58752 else 58753 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58754 # On Windows, we will need both .lib and .dll file. 58755 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58756 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58757 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58758 FOUND_FREETYPE=no 58759 fi 58760 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58761 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58762 # Found lib in isa dir, use that instead. 58763 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58764 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58765 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58766 fi 58767 fi 58768 fi 58769 58770 if test "x$FOUND_FREETYPE" = xyes; then 58771 58772 # Only process if variable expands to non-empty 58773 58774 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58776 58777 # Input might be given as Windows format, start by converting to 58778 # unix format. 58779 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58780 new_path=`$CYGPATH -u "$path"` 58781 58782 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58783 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58784 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58785 # "foo.exe" is OK but "foo" is an error. 58786 # 58787 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58788 # It is also a way to make sure we got the proper file name for the real test later on. 58789 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58790 if test "x$test_shortpath" = x; then 58791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58792 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58793 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58794 fi 58795 58796 # Call helper function which possibly converts this using DOS-style short mode. 58797 # If so, the updated path is stored in $new_path. 58798 58799 input_path="$new_path" 58800 # Check if we need to convert this using DOS-style short mode. If the path 58801 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58802 # take no chances and rewrite it. 58803 # Note: m4 eats our [], so we need to use [ and ] instead. 58804 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58805 if test "x$has_forbidden_chars" != x; then 58806 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58807 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58808 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58809 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58810 # Going to short mode and back again did indeed matter. Since short mode is 58811 # case insensitive, let's make it lowercase to improve readability. 58812 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58813 # Now convert it back to Unix-style (cygpath) 58814 input_path=`$CYGPATH -u "$shortmode_path"` 58815 new_path="$input_path" 58816 fi 58817 fi 58818 58819 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58820 if test "x$test_cygdrive_prefix" = x; then 58821 # As a simple fix, exclude /usr/bin since it's not a real path. 58822 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58823 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58824 # a path prefixed by /cygdrive for fixpath to work. 58825 new_path="$CYGWIN_ROOT_PATH$input_path" 58826 fi 58827 fi 58828 58829 58830 if test "x$path" != "x$new_path"; then 58831 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58832 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58833 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58834 fi 58835 58836 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58837 58838 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58839 has_colon=`$ECHO $path | $GREP ^.:` 58840 new_path="$path" 58841 if test "x$has_colon" = x; then 58842 # Not in mixed or Windows style, start by that. 58843 new_path=`cmd //c echo $path` 58844 fi 58845 58846 58847 input_path="$new_path" 58848 # Check if we need to convert this using DOS-style short mode. If the path 58849 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58850 # take no chances and rewrite it. 58851 # Note: m4 eats our [], so we need to use [ and ] instead. 58852 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58853 if test "x$has_forbidden_chars" != x; then 58854 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58855 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58856 fi 58857 58858 58859 windows_path="$new_path" 58860 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58861 unix_path=`$CYGPATH -u "$windows_path"` 58862 new_path="$unix_path" 58863 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58864 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58865 new_path="$unix_path" 58866 fi 58867 58868 if test "x$path" != "x$new_path"; then 58869 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58870 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58871 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58872 fi 58873 58874 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58875 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58876 58877 else 58878 # We're on a unix platform. Hooray! :) 58879 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58880 has_space=`$ECHO "$path" | $GREP " "` 58881 if test "x$has_space" != x; then 58882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58883 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58884 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58885 fi 58886 58887 # Use eval to expand a potential ~ 58888 eval path="$path" 58889 if test ! -f "$path" && test ! -d "$path"; then 58890 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58891 fi 58892 58893 if test -d "$path"; then 58894 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58895 else 58896 dir="`$DIRNAME "$path"`" 58897 base="`$BASENAME "$path"`" 58898 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58899 fi 58900 fi 58901 fi 58902 58903 58904 # Only process if variable expands to non-empty 58905 58906 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58908 58909 # Input might be given as Windows format, start by converting to 58910 # unix format. 58911 path="$POTENTIAL_FREETYPE_LIB_PATH" 58912 new_path=`$CYGPATH -u "$path"` 58913 58914 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58915 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58916 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58917 # "foo.exe" is OK but "foo" is an error. 58918 # 58919 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58920 # It is also a way to make sure we got the proper file name for the real test later on. 58921 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58922 if test "x$test_shortpath" = x; then 58923 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58924 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58925 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58926 fi 58927 58928 # Call helper function which possibly converts this using DOS-style short mode. 58929 # If so, the updated path is stored in $new_path. 58930 58931 input_path="$new_path" 58932 # Check if we need to convert this using DOS-style short mode. If the path 58933 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58934 # take no chances and rewrite it. 58935 # Note: m4 eats our [], so we need to use [ and ] instead. 58936 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58937 if test "x$has_forbidden_chars" != x; then 58938 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58939 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58940 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58941 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58942 # Going to short mode and back again did indeed matter. Since short mode is 58943 # case insensitive, let's make it lowercase to improve readability. 58944 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58945 # Now convert it back to Unix-style (cygpath) 58946 input_path=`$CYGPATH -u "$shortmode_path"` 58947 new_path="$input_path" 58948 fi 58949 fi 58950 58951 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58952 if test "x$test_cygdrive_prefix" = x; then 58953 # As a simple fix, exclude /usr/bin since it's not a real path. 58954 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58955 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58956 # a path prefixed by /cygdrive for fixpath to work. 58957 new_path="$CYGWIN_ROOT_PATH$input_path" 58958 fi 58959 fi 58960 58961 58962 if test "x$path" != "x$new_path"; then 58963 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58964 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58965 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58966 fi 58967 58968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58969 58970 path="$POTENTIAL_FREETYPE_LIB_PATH" 58971 has_colon=`$ECHO $path | $GREP ^.:` 58972 new_path="$path" 58973 if test "x$has_colon" = x; then 58974 # Not in mixed or Windows style, start by that. 58975 new_path=`cmd //c echo $path` 58976 fi 58977 58978 58979 input_path="$new_path" 58980 # Check if we need to convert this using DOS-style short mode. If the path 58981 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58982 # take no chances and rewrite it. 58983 # Note: m4 eats our [], so we need to use [ and ] instead. 58984 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58985 if test "x$has_forbidden_chars" != x; then 58986 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58987 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58988 fi 58989 58990 58991 windows_path="$new_path" 58992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58993 unix_path=`$CYGPATH -u "$windows_path"` 58994 new_path="$unix_path" 58995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58997 new_path="$unix_path" 58998 fi 58999 59000 if test "x$path" != "x$new_path"; then 59001 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59002 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59003 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59004 fi 59005 59006 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59007 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59008 59009 else 59010 # We're on a unix platform. Hooray! :) 59011 path="$POTENTIAL_FREETYPE_LIB_PATH" 59012 has_space=`$ECHO "$path" | $GREP " "` 59013 if test "x$has_space" != x; then 59014 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59015 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59016 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59017 fi 59018 59019 # Use eval to expand a potential ~ 59020 eval path="$path" 59021 if test ! -f "$path" && test ! -d "$path"; then 59022 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59023 fi 59024 59025 if test -d "$path"; then 59026 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59027 else 59028 dir="`$DIRNAME "$path"`" 59029 base="`$BASENAME "$path"`" 59030 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59031 fi 59032 fi 59033 fi 59034 59035 59036 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59038 $as_echo_n "checking for freetype includes... " >&6; } 59039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59040 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59041 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59043 $as_echo_n "checking for freetype libraries... " >&6; } 59044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59045 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59046 fi 59047 59048 else 59049 59050 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59051 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 59052 METHOD="well-known location" 59053 59054 # Let's start with an optimistic view of the world :-) 59055 FOUND_FREETYPE=yes 59056 59057 # First look for the canonical freetype main include file ft2build.h. 59058 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59059 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59060 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59061 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59062 # Fail. 59063 FOUND_FREETYPE=no 59064 fi 59065 fi 59066 59067 if test "x$FOUND_FREETYPE" = xyes; then 59068 # Include file found, let's continue the sanity check. 59069 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59070 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59071 59072 # Reset to default value 59073 FREETYPE_BASE_NAME=freetype 59074 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59075 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59076 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59077 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59078 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59079 # for the .6 version explicitly. 59080 FREETYPE_BASE_NAME=freetype.6 59081 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59082 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59083 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59084 else 59085 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59086 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59087 FOUND_FREETYPE=no 59088 fi 59089 else 59090 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59091 # On Windows, we will need both .lib and .dll file. 59092 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59093 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59094 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59095 FOUND_FREETYPE=no 59096 fi 59097 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59098 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59099 # Found lib in isa dir, use that instead. 59100 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59101 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59102 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59103 fi 59104 fi 59105 fi 59106 59107 if test "x$FOUND_FREETYPE" = xyes; then 59108 59109 # Only process if variable expands to non-empty 59110 59111 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59112 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59113 59114 # Input might be given as Windows format, start by converting to 59115 # unix format. 59116 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59117 new_path=`$CYGPATH -u "$path"` 59118 59119 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59120 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59121 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59122 # "foo.exe" is OK but "foo" is an error. 59123 # 59124 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59125 # It is also a way to make sure we got the proper file name for the real test later on. 59126 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59127 if test "x$test_shortpath" = x; then 59128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59129 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59130 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59131 fi 59132 59133 # Call helper function which possibly converts this using DOS-style short mode. 59134 # If so, the updated path is stored in $new_path. 59135 59136 input_path="$new_path" 59137 # Check if we need to convert this using DOS-style short mode. If the path 59138 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59139 # take no chances and rewrite it. 59140 # Note: m4 eats our [], so we need to use [ and ] instead. 59141 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59142 if test "x$has_forbidden_chars" != x; then 59143 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59144 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59145 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59146 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59147 # Going to short mode and back again did indeed matter. Since short mode is 59148 # case insensitive, let's make it lowercase to improve readability. 59149 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59150 # Now convert it back to Unix-style (cygpath) 59151 input_path=`$CYGPATH -u "$shortmode_path"` 59152 new_path="$input_path" 59153 fi 59154 fi 59155 59156 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59157 if test "x$test_cygdrive_prefix" = x; then 59158 # As a simple fix, exclude /usr/bin since it's not a real path. 59159 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59160 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59161 # a path prefixed by /cygdrive for fixpath to work. 59162 new_path="$CYGWIN_ROOT_PATH$input_path" 59163 fi 59164 fi 59165 59166 59167 if test "x$path" != "x$new_path"; then 59168 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59169 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59170 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59171 fi 59172 59173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59174 59175 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59176 has_colon=`$ECHO $path | $GREP ^.:` 59177 new_path="$path" 59178 if test "x$has_colon" = x; then 59179 # Not in mixed or Windows style, start by that. 59180 new_path=`cmd //c echo $path` 59181 fi 59182 59183 59184 input_path="$new_path" 59185 # Check if we need to convert this using DOS-style short mode. If the path 59186 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59187 # take no chances and rewrite it. 59188 # Note: m4 eats our [], so we need to use [ and ] instead. 59189 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59190 if test "x$has_forbidden_chars" != x; then 59191 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59192 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59193 fi 59194 59195 59196 windows_path="$new_path" 59197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59198 unix_path=`$CYGPATH -u "$windows_path"` 59199 new_path="$unix_path" 59200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59201 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59202 new_path="$unix_path" 59203 fi 59204 59205 if test "x$path" != "x$new_path"; then 59206 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59207 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59208 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59209 fi 59210 59211 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59212 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59213 59214 else 59215 # We're on a unix platform. Hooray! :) 59216 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59217 has_space=`$ECHO "$path" | $GREP " "` 59218 if test "x$has_space" != x; then 59219 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59220 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59221 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59222 fi 59223 59224 # Use eval to expand a potential ~ 59225 eval path="$path" 59226 if test ! -f "$path" && test ! -d "$path"; then 59227 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59228 fi 59229 59230 if test -d "$path"; then 59231 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59232 else 59233 dir="`$DIRNAME "$path"`" 59234 base="`$BASENAME "$path"`" 59235 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59236 fi 59237 fi 59238 fi 59239 59240 59241 # Only process if variable expands to non-empty 59242 59243 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59244 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59245 59246 # Input might be given as Windows format, start by converting to 59247 # unix format. 59248 path="$POTENTIAL_FREETYPE_LIB_PATH" 59249 new_path=`$CYGPATH -u "$path"` 59250 59251 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59252 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59253 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59254 # "foo.exe" is OK but "foo" is an error. 59255 # 59256 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59257 # It is also a way to make sure we got the proper file name for the real test later on. 59258 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59259 if test "x$test_shortpath" = x; then 59260 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59261 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59262 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59263 fi 59264 59265 # Call helper function which possibly converts this using DOS-style short mode. 59266 # If so, the updated path is stored in $new_path. 59267 59268 input_path="$new_path" 59269 # Check if we need to convert this using DOS-style short mode. If the path 59270 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59271 # take no chances and rewrite it. 59272 # Note: m4 eats our [], so we need to use [ and ] instead. 59273 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59274 if test "x$has_forbidden_chars" != x; then 59275 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59276 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59277 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59278 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59279 # Going to short mode and back again did indeed matter. Since short mode is 59280 # case insensitive, let's make it lowercase to improve readability. 59281 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59282 # Now convert it back to Unix-style (cygpath) 59283 input_path=`$CYGPATH -u "$shortmode_path"` 59284 new_path="$input_path" 59285 fi 59286 fi 59287 59288 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59289 if test "x$test_cygdrive_prefix" = x; then 59290 # As a simple fix, exclude /usr/bin since it's not a real path. 59291 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59292 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59293 # a path prefixed by /cygdrive for fixpath to work. 59294 new_path="$CYGWIN_ROOT_PATH$input_path" 59295 fi 59296 fi 59297 59298 59299 if test "x$path" != "x$new_path"; then 59300 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59301 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59302 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59303 fi 59304 59305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59306 59307 path="$POTENTIAL_FREETYPE_LIB_PATH" 59308 has_colon=`$ECHO $path | $GREP ^.:` 59309 new_path="$path" 59310 if test "x$has_colon" = x; then 59311 # Not in mixed or Windows style, start by that. 59312 new_path=`cmd //c echo $path` 59313 fi 59314 59315 59316 input_path="$new_path" 59317 # Check if we need to convert this using DOS-style short mode. If the path 59318 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59319 # take no chances and rewrite it. 59320 # Note: m4 eats our [], so we need to use [ and ] instead. 59321 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59322 if test "x$has_forbidden_chars" != x; then 59323 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59324 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59325 fi 59326 59327 59328 windows_path="$new_path" 59329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59330 unix_path=`$CYGPATH -u "$windows_path"` 59331 new_path="$unix_path" 59332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59333 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59334 new_path="$unix_path" 59335 fi 59336 59337 if test "x$path" != "x$new_path"; then 59338 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59339 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59340 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59341 fi 59342 59343 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59344 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59345 59346 else 59347 # We're on a unix platform. Hooray! :) 59348 path="$POTENTIAL_FREETYPE_LIB_PATH" 59349 has_space=`$ECHO "$path" | $GREP " "` 59350 if test "x$has_space" != x; then 59351 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59352 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59353 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59354 fi 59355 59356 # Use eval to expand a potential ~ 59357 eval path="$path" 59358 if test ! -f "$path" && test ! -d "$path"; then 59359 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59360 fi 59361 59362 if test -d "$path"; then 59363 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59364 else 59365 dir="`$DIRNAME "$path"`" 59366 base="`$BASENAME "$path"`" 59367 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59368 fi 59369 fi 59370 fi 59371 59372 59373 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59375 $as_echo_n "checking for freetype includes... " >&6; } 59376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59377 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59378 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59380 $as_echo_n "checking for freetype libraries... " >&6; } 59381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59382 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59383 fi 59384 59385 fi 59386 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 59387 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 59388 # Source is available, as a last resort try to build freetype in default location 59389 59390 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 59391 BUILD_FREETYPE=yes 59392 59393 # Check if the freetype sources are acessible.. 59394 if ! test -d $FREETYPE_SRC_PATH; then 59395 { $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 59396 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 59397 BUILD_FREETYPE=no 59398 fi 59399 # ..and contain a vc2010 project file 59400 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 59401 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 59402 { $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 59403 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 59404 BUILD_FREETYPE=no 59405 fi 59406 # Now check if configure found a version of 'msbuild.exe' 59407 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 59408 { $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 59409 $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;} 59410 BUILD_FREETYPE=no 59411 fi 59412 59413 # Ready to go.. 59414 if test "x$BUILD_FREETYPE" = xyes; then 59415 # msbuild requires trailing slashes for output directories 59416 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 59417 freetype_lib_path_unix="$freetype_lib_path" 59418 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 59419 59420 unix_path="$vcxproj_path" 59421 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59422 windows_path=`$CYGPATH -m "$unix_path"` 59423 vcxproj_path="$windows_path" 59424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59425 windows_path=`cmd //c echo $unix_path` 59426 vcxproj_path="$windows_path" 59427 fi 59428 59429 59430 unix_path="$freetype_lib_path" 59431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59432 windows_path=`$CYGPATH -m "$unix_path"` 59433 freetype_lib_path="$windows_path" 59434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59435 windows_path=`cmd //c echo $unix_path` 59436 freetype_lib_path="$windows_path" 59437 fi 59438 59439 59440 unix_path="$freetype_obj_path" 59441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59442 windows_path=`$CYGPATH -m "$unix_path"` 59443 freetype_obj_path="$windows_path" 59444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59445 windows_path=`cmd //c echo $unix_path` 59446 freetype_obj_path="$windows_path" 59447 fi 59448 59449 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59450 freetype_platform=x64 59451 else 59452 freetype_platform=win32 59453 fi 59454 59455 # The original freetype project file is for VS 2010 (i.e. 'v100'), 59456 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 59457 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 59458 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 59459 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 59460 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 59461 59462 # First we try to build the freetype.dll 59463 $ECHO -e "@echo off\n"\ 59464 "$MSBUILD $vcxproj_path "\ 59465 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59466 "/p:Configuration=\"Release Multithreaded\" "\ 59467 "/p:Platform=$freetype_platform "\ 59468 "/p:ConfigurationType=DynamicLibrary "\ 59469 "/p:TargetName=freetype "\ 59470 "/p:OutDir=\"$freetype_lib_path\" "\ 59471 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 59472 cmd /c freetype.bat 59473 59474 if test -s "$freetype_lib_path_unix/freetype.dll"; then 59475 # If that succeeds we also build freetype.lib 59476 $ECHO -e "@echo off\n"\ 59477 "$MSBUILD $vcxproj_path "\ 59478 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59479 "/p:Configuration=\"Release Multithreaded\" "\ 59480 "/p:Platform=$freetype_platform "\ 59481 "/p:ConfigurationType=StaticLibrary "\ 59482 "/p:TargetName=freetype "\ 59483 "/p:OutDir=\"$freetype_lib_path\" "\ 59484 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 59485 cmd /c freetype.bat 59486 59487 if test -s "$freetype_lib_path_unix/freetype.lib"; then 59488 # Once we build both, lib and dll, set freetype lib and include path appropriately 59489 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 59490 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 59491 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 59492 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 59493 else 59494 BUILD_FREETYPE=no 59495 fi 59496 else 59497 BUILD_FREETYPE=no 59498 fi 59499 fi 59500 59501 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59502 59503 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59504 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 59505 METHOD="well-known location" 59506 59507 # Let's start with an optimistic view of the world :-) 59508 FOUND_FREETYPE=yes 59509 59510 # First look for the canonical freetype main include file ft2build.h. 59511 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59512 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59513 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59514 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59515 # Fail. 59516 FOUND_FREETYPE=no 59517 fi 59518 fi 59519 59520 if test "x$FOUND_FREETYPE" = xyes; then 59521 # Include file found, let's continue the sanity check. 59522 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59523 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59524 59525 # Reset to default value 59526 FREETYPE_BASE_NAME=freetype 59527 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59528 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59529 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59530 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59531 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59532 # for the .6 version explicitly. 59533 FREETYPE_BASE_NAME=freetype.6 59534 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59535 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59536 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59537 else 59538 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59539 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59540 FOUND_FREETYPE=no 59541 fi 59542 else 59543 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59544 # On Windows, we will need both .lib and .dll file. 59545 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59546 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59547 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59548 FOUND_FREETYPE=no 59549 fi 59550 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59551 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59552 # Found lib in isa dir, use that instead. 59553 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59554 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59555 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59556 fi 59557 fi 59558 fi 59559 59560 if test "x$FOUND_FREETYPE" = xyes; then 59561 59562 # Only process if variable expands to non-empty 59563 59564 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59565 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59566 59567 # Input might be given as Windows format, start by converting to 59568 # unix format. 59569 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59570 new_path=`$CYGPATH -u "$path"` 59571 59572 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59573 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59574 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59575 # "foo.exe" is OK but "foo" is an error. 59576 # 59577 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59578 # It is also a way to make sure we got the proper file name for the real test later on. 59579 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59580 if test "x$test_shortpath" = x; then 59581 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59582 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59583 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59584 fi 59585 59586 # Call helper function which possibly converts this using DOS-style short mode. 59587 # If so, the updated path is stored in $new_path. 59588 59589 input_path="$new_path" 59590 # Check if we need to convert this using DOS-style short mode. If the path 59591 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59592 # take no chances and rewrite it. 59593 # Note: m4 eats our [], so we need to use [ and ] instead. 59594 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59595 if test "x$has_forbidden_chars" != x; then 59596 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59597 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59598 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59599 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59600 # Going to short mode and back again did indeed matter. Since short mode is 59601 # case insensitive, let's make it lowercase to improve readability. 59602 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59603 # Now convert it back to Unix-style (cygpath) 59604 input_path=`$CYGPATH -u "$shortmode_path"` 59605 new_path="$input_path" 59606 fi 59607 fi 59608 59609 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59610 if test "x$test_cygdrive_prefix" = x; then 59611 # As a simple fix, exclude /usr/bin since it's not a real path. 59612 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59613 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59614 # a path prefixed by /cygdrive for fixpath to work. 59615 new_path="$CYGWIN_ROOT_PATH$input_path" 59616 fi 59617 fi 59618 59619 59620 if test "x$path" != "x$new_path"; then 59621 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59622 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59623 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59624 fi 59625 59626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59627 59628 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59629 has_colon=`$ECHO $path | $GREP ^.:` 59630 new_path="$path" 59631 if test "x$has_colon" = x; then 59632 # Not in mixed or Windows style, start by that. 59633 new_path=`cmd //c echo $path` 59634 fi 59635 59636 59637 input_path="$new_path" 59638 # Check if we need to convert this using DOS-style short mode. If the path 59639 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59640 # take no chances and rewrite it. 59641 # Note: m4 eats our [], so we need to use [ and ] instead. 59642 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59643 if test "x$has_forbidden_chars" != x; then 59644 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59645 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59646 fi 59647 59648 59649 windows_path="$new_path" 59650 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59651 unix_path=`$CYGPATH -u "$windows_path"` 59652 new_path="$unix_path" 59653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59654 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59655 new_path="$unix_path" 59656 fi 59657 59658 if test "x$path" != "x$new_path"; then 59659 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59660 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59661 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59662 fi 59663 59664 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59665 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59666 59667 else 59668 # We're on a unix platform. Hooray! :) 59669 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59670 has_space=`$ECHO "$path" | $GREP " "` 59671 if test "x$has_space" != x; then 59672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59673 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59674 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59675 fi 59676 59677 # Use eval to expand a potential ~ 59678 eval path="$path" 59679 if test ! -f "$path" && test ! -d "$path"; then 59680 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59681 fi 59682 59683 if test -d "$path"; then 59684 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59685 else 59686 dir="`$DIRNAME "$path"`" 59687 base="`$BASENAME "$path"`" 59688 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59689 fi 59690 fi 59691 fi 59692 59693 59694 # Only process if variable expands to non-empty 59695 59696 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59698 59699 # Input might be given as Windows format, start by converting to 59700 # unix format. 59701 path="$POTENTIAL_FREETYPE_LIB_PATH" 59702 new_path=`$CYGPATH -u "$path"` 59703 59704 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59705 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59706 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59707 # "foo.exe" is OK but "foo" is an error. 59708 # 59709 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59710 # It is also a way to make sure we got the proper file name for the real test later on. 59711 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59712 if test "x$test_shortpath" = x; then 59713 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59714 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59715 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59716 fi 59717 59718 # Call helper function which possibly converts this using DOS-style short mode. 59719 # If so, the updated path is stored in $new_path. 59720 59721 input_path="$new_path" 59722 # Check if we need to convert this using DOS-style short mode. If the path 59723 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59724 # take no chances and rewrite it. 59725 # Note: m4 eats our [], so we need to use [ and ] instead. 59726 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59727 if test "x$has_forbidden_chars" != x; then 59728 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59729 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59730 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59731 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59732 # Going to short mode and back again did indeed matter. Since short mode is 59733 # case insensitive, let's make it lowercase to improve readability. 59734 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59735 # Now convert it back to Unix-style (cygpath) 59736 input_path=`$CYGPATH -u "$shortmode_path"` 59737 new_path="$input_path" 59738 fi 59739 fi 59740 59741 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59742 if test "x$test_cygdrive_prefix" = x; then 59743 # As a simple fix, exclude /usr/bin since it's not a real path. 59744 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59745 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59746 # a path prefixed by /cygdrive for fixpath to work. 59747 new_path="$CYGWIN_ROOT_PATH$input_path" 59748 fi 59749 fi 59750 59751 59752 if test "x$path" != "x$new_path"; then 59753 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59754 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59755 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59756 fi 59757 59758 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59759 59760 path="$POTENTIAL_FREETYPE_LIB_PATH" 59761 has_colon=`$ECHO $path | $GREP ^.:` 59762 new_path="$path" 59763 if test "x$has_colon" = x; then 59764 # Not in mixed or Windows style, start by that. 59765 new_path=`cmd //c echo $path` 59766 fi 59767 59768 59769 input_path="$new_path" 59770 # Check if we need to convert this using DOS-style short mode. If the path 59771 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59772 # take no chances and rewrite it. 59773 # Note: m4 eats our [], so we need to use [ and ] instead. 59774 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59775 if test "x$has_forbidden_chars" != x; then 59776 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59777 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59778 fi 59779 59780 59781 windows_path="$new_path" 59782 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59783 unix_path=`$CYGPATH -u "$windows_path"` 59784 new_path="$unix_path" 59785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59786 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59787 new_path="$unix_path" 59788 fi 59789 59790 if test "x$path" != "x$new_path"; then 59791 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59792 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59793 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59794 fi 59795 59796 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59797 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59798 59799 else 59800 # We're on a unix platform. Hooray! :) 59801 path="$POTENTIAL_FREETYPE_LIB_PATH" 59802 has_space=`$ECHO "$path" | $GREP " "` 59803 if test "x$has_space" != x; then 59804 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59805 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59806 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59807 fi 59808 59809 # Use eval to expand a potential ~ 59810 eval path="$path" 59811 if test ! -f "$path" && test ! -d "$path"; then 59812 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59813 fi 59814 59815 if test -d "$path"; then 59816 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59817 else 59818 dir="`$DIRNAME "$path"`" 59819 base="`$BASENAME "$path"`" 59820 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59821 fi 59822 fi 59823 fi 59824 59825 59826 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59828 $as_echo_n "checking for freetype includes... " >&6; } 59829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59830 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59831 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59833 $as_echo_n "checking for freetype libraries... " >&6; } 59834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59835 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59836 fi 59837 59838 else 59839 59840 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59841 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 59842 METHOD="well-known location" 59843 59844 # Let's start with an optimistic view of the world :-) 59845 FOUND_FREETYPE=yes 59846 59847 # First look for the canonical freetype main include file ft2build.h. 59848 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59849 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59850 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59851 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59852 # Fail. 59853 FOUND_FREETYPE=no 59854 fi 59855 fi 59856 59857 if test "x$FOUND_FREETYPE" = xyes; then 59858 # Include file found, let's continue the sanity check. 59859 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59860 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59861 59862 # Reset to default value 59863 FREETYPE_BASE_NAME=freetype 59864 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59865 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59866 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59867 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59868 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59869 # for the .6 version explicitly. 59870 FREETYPE_BASE_NAME=freetype.6 59871 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59872 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59873 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59874 else 59875 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59876 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59877 FOUND_FREETYPE=no 59878 fi 59879 else 59880 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59881 # On Windows, we will need both .lib and .dll file. 59882 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59883 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59884 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59885 FOUND_FREETYPE=no 59886 fi 59887 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59888 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59889 # Found lib in isa dir, use that instead. 59890 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59891 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59892 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59893 fi 59894 fi 59895 fi 59896 59897 if test "x$FOUND_FREETYPE" = xyes; then 59898 59899 # Only process if variable expands to non-empty 59900 59901 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59902 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59903 59904 # Input might be given as Windows format, start by converting to 59905 # unix format. 59906 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59907 new_path=`$CYGPATH -u "$path"` 59908 59909 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59910 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59911 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59912 # "foo.exe" is OK but "foo" is an error. 59913 # 59914 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59915 # It is also a way to make sure we got the proper file name for the real test later on. 59916 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59917 if test "x$test_shortpath" = x; then 59918 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59919 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59920 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59921 fi 59922 59923 # Call helper function which possibly converts this using DOS-style short mode. 59924 # If so, the updated path is stored in $new_path. 59925 59926 input_path="$new_path" 59927 # Check if we need to convert this using DOS-style short mode. If the path 59928 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59929 # take no chances and rewrite it. 59930 # Note: m4 eats our [], so we need to use [ and ] instead. 59931 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59932 if test "x$has_forbidden_chars" != x; then 59933 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59934 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59935 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59936 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59937 # Going to short mode and back again did indeed matter. Since short mode is 59938 # case insensitive, let's make it lowercase to improve readability. 59939 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59940 # Now convert it back to Unix-style (cygpath) 59941 input_path=`$CYGPATH -u "$shortmode_path"` 59942 new_path="$input_path" 59943 fi 59944 fi 59945 59946 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59947 if test "x$test_cygdrive_prefix" = x; then 59948 # As a simple fix, exclude /usr/bin since it's not a real path. 59949 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59950 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59951 # a path prefixed by /cygdrive for fixpath to work. 59952 new_path="$CYGWIN_ROOT_PATH$input_path" 59953 fi 59954 fi 59955 59956 59957 if test "x$path" != "x$new_path"; then 59958 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59959 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59960 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59961 fi 59962 59963 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59964 59965 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59966 has_colon=`$ECHO $path | $GREP ^.:` 59967 new_path="$path" 59968 if test "x$has_colon" = x; then 59969 # Not in mixed or Windows style, start by that. 59970 new_path=`cmd //c echo $path` 59971 fi 59972 59973 59974 input_path="$new_path" 59975 # Check if we need to convert this using DOS-style short mode. If the path 59976 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59977 # take no chances and rewrite it. 59978 # Note: m4 eats our [], so we need to use [ and ] instead. 59979 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59980 if test "x$has_forbidden_chars" != x; then 59981 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59982 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59983 fi 59984 59985 59986 windows_path="$new_path" 59987 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59988 unix_path=`$CYGPATH -u "$windows_path"` 59989 new_path="$unix_path" 59990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59991 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59992 new_path="$unix_path" 59993 fi 59994 59995 if test "x$path" != "x$new_path"; then 59996 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59998 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59999 fi 60000 60001 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60002 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60003 60004 else 60005 # We're on a unix platform. Hooray! :) 60006 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60007 has_space=`$ECHO "$path" | $GREP " "` 60008 if test "x$has_space" != x; then 60009 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60010 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60011 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60012 fi 60013 60014 # Use eval to expand a potential ~ 60015 eval path="$path" 60016 if test ! -f "$path" && test ! -d "$path"; then 60017 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60018 fi 60019 60020 if test -d "$path"; then 60021 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60022 else 60023 dir="`$DIRNAME "$path"`" 60024 base="`$BASENAME "$path"`" 60025 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60026 fi 60027 fi 60028 fi 60029 60030 60031 # Only process if variable expands to non-empty 60032 60033 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60034 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60035 60036 # Input might be given as Windows format, start by converting to 60037 # unix format. 60038 path="$POTENTIAL_FREETYPE_LIB_PATH" 60039 new_path=`$CYGPATH -u "$path"` 60040 60041 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60042 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60043 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60044 # "foo.exe" is OK but "foo" is an error. 60045 # 60046 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60047 # It is also a way to make sure we got the proper file name for the real test later on. 60048 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60049 if test "x$test_shortpath" = x; then 60050 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60051 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60052 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60053 fi 60054 60055 # Call helper function which possibly converts this using DOS-style short mode. 60056 # If so, the updated path is stored in $new_path. 60057 60058 input_path="$new_path" 60059 # Check if we need to convert this using DOS-style short mode. If the path 60060 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60061 # take no chances and rewrite it. 60062 # Note: m4 eats our [], so we need to use [ and ] instead. 60063 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60064 if test "x$has_forbidden_chars" != x; then 60065 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60066 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60067 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60068 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60069 # Going to short mode and back again did indeed matter. Since short mode is 60070 # case insensitive, let's make it lowercase to improve readability. 60071 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60072 # Now convert it back to Unix-style (cygpath) 60073 input_path=`$CYGPATH -u "$shortmode_path"` 60074 new_path="$input_path" 60075 fi 60076 fi 60077 60078 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60079 if test "x$test_cygdrive_prefix" = x; then 60080 # As a simple fix, exclude /usr/bin since it's not a real path. 60081 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60082 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60083 # a path prefixed by /cygdrive for fixpath to work. 60084 new_path="$CYGWIN_ROOT_PATH$input_path" 60085 fi 60086 fi 60087 60088 60089 if test "x$path" != "x$new_path"; then 60090 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60091 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60092 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60093 fi 60094 60095 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60096 60097 path="$POTENTIAL_FREETYPE_LIB_PATH" 60098 has_colon=`$ECHO $path | $GREP ^.:` 60099 new_path="$path" 60100 if test "x$has_colon" = x; then 60101 # Not in mixed or Windows style, start by that. 60102 new_path=`cmd //c echo $path` 60103 fi 60104 60105 60106 input_path="$new_path" 60107 # Check if we need to convert this using DOS-style short mode. If the path 60108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60109 # take no chances and rewrite it. 60110 # Note: m4 eats our [], so we need to use [ and ] instead. 60111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60112 if test "x$has_forbidden_chars" != x; then 60113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60114 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60115 fi 60116 60117 60118 windows_path="$new_path" 60119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60120 unix_path=`$CYGPATH -u "$windows_path"` 60121 new_path="$unix_path" 60122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60123 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60124 new_path="$unix_path" 60125 fi 60126 60127 if test "x$path" != "x$new_path"; then 60128 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60130 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60131 fi 60132 60133 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60134 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60135 60136 else 60137 # We're on a unix platform. Hooray! :) 60138 path="$POTENTIAL_FREETYPE_LIB_PATH" 60139 has_space=`$ECHO "$path" | $GREP " "` 60140 if test "x$has_space" != x; then 60141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60142 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60143 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60144 fi 60145 60146 # Use eval to expand a potential ~ 60147 eval path="$path" 60148 if test ! -f "$path" && test ! -d "$path"; then 60149 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60150 fi 60151 60152 if test -d "$path"; then 60153 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60154 else 60155 dir="`$DIRNAME "$path"`" 60156 base="`$BASENAME "$path"`" 60157 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60158 fi 60159 fi 60160 fi 60161 60162 60163 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60165 $as_echo_n "checking for freetype includes... " >&6; } 60166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60167 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60168 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60170 $as_echo_n "checking for freetype libraries... " >&6; } 60171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60172 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60173 fi 60174 60175 fi 60176 fi 60177 fi 60178 else 60179 FREETYPE_BASE_DIR="$SYSROOT/usr" 60180 60181 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60182 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60183 METHOD="well-known location" 60184 60185 # Let's start with an optimistic view of the world :-) 60186 FOUND_FREETYPE=yes 60187 60188 # First look for the canonical freetype main include file ft2build.h. 60189 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60190 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60191 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60192 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60193 # Fail. 60194 FOUND_FREETYPE=no 60195 fi 60196 fi 60197 60198 if test "x$FOUND_FREETYPE" = xyes; then 60199 # Include file found, let's continue the sanity check. 60200 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60201 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60202 60203 # Reset to default value 60204 FREETYPE_BASE_NAME=freetype 60205 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60206 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60207 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60208 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60209 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60210 # for the .6 version explicitly. 60211 FREETYPE_BASE_NAME=freetype.6 60212 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60213 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60214 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60215 else 60216 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60217 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60218 FOUND_FREETYPE=no 60219 fi 60220 else 60221 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60222 # On Windows, we will need both .lib and .dll file. 60223 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60224 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60225 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60226 FOUND_FREETYPE=no 60227 fi 60228 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60229 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60230 # Found lib in isa dir, use that instead. 60231 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60232 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60233 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60234 fi 60235 fi 60236 fi 60237 60238 if test "x$FOUND_FREETYPE" = xyes; then 60239 60240 # Only process if variable expands to non-empty 60241 60242 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60244 60245 # Input might be given as Windows format, start by converting to 60246 # unix format. 60247 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60248 new_path=`$CYGPATH -u "$path"` 60249 60250 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60251 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60252 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60253 # "foo.exe" is OK but "foo" is an error. 60254 # 60255 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60256 # It is also a way to make sure we got the proper file name for the real test later on. 60257 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60258 if test "x$test_shortpath" = x; then 60259 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60260 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60261 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60262 fi 60263 60264 # Call helper function which possibly converts this using DOS-style short mode. 60265 # If so, the updated path is stored in $new_path. 60266 60267 input_path="$new_path" 60268 # Check if we need to convert this using DOS-style short mode. If the path 60269 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60270 # take no chances and rewrite it. 60271 # Note: m4 eats our [], so we need to use [ and ] instead. 60272 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60273 if test "x$has_forbidden_chars" != x; then 60274 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60275 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60276 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60277 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60278 # Going to short mode and back again did indeed matter. Since short mode is 60279 # case insensitive, let's make it lowercase to improve readability. 60280 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60281 # Now convert it back to Unix-style (cygpath) 60282 input_path=`$CYGPATH -u "$shortmode_path"` 60283 new_path="$input_path" 60284 fi 60285 fi 60286 60287 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60288 if test "x$test_cygdrive_prefix" = x; then 60289 # As a simple fix, exclude /usr/bin since it's not a real path. 60290 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60291 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60292 # a path prefixed by /cygdrive for fixpath to work. 60293 new_path="$CYGWIN_ROOT_PATH$input_path" 60294 fi 60295 fi 60296 60297 60298 if test "x$path" != "x$new_path"; then 60299 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60300 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60301 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60302 fi 60303 60304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60305 60306 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60307 has_colon=`$ECHO $path | $GREP ^.:` 60308 new_path="$path" 60309 if test "x$has_colon" = x; then 60310 # Not in mixed or Windows style, start by that. 60311 new_path=`cmd //c echo $path` 60312 fi 60313 60314 60315 input_path="$new_path" 60316 # Check if we need to convert this using DOS-style short mode. If the path 60317 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60318 # take no chances and rewrite it. 60319 # Note: m4 eats our [], so we need to use [ and ] instead. 60320 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60321 if test "x$has_forbidden_chars" != x; then 60322 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60323 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60324 fi 60325 60326 60327 windows_path="$new_path" 60328 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60329 unix_path=`$CYGPATH -u "$windows_path"` 60330 new_path="$unix_path" 60331 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60332 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60333 new_path="$unix_path" 60334 fi 60335 60336 if test "x$path" != "x$new_path"; then 60337 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60338 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60339 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60340 fi 60341 60342 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60343 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60344 60345 else 60346 # We're on a unix platform. Hooray! :) 60347 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60348 has_space=`$ECHO "$path" | $GREP " "` 60349 if test "x$has_space" != x; then 60350 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60351 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60352 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60353 fi 60354 60355 # Use eval to expand a potential ~ 60356 eval path="$path" 60357 if test ! -f "$path" && test ! -d "$path"; then 60358 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60359 fi 60360 60361 if test -d "$path"; then 60362 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60363 else 60364 dir="`$DIRNAME "$path"`" 60365 base="`$BASENAME "$path"`" 60366 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60367 fi 60368 fi 60369 fi 60370 60371 60372 # Only process if variable expands to non-empty 60373 60374 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60376 60377 # Input might be given as Windows format, start by converting to 60378 # unix format. 60379 path="$POTENTIAL_FREETYPE_LIB_PATH" 60380 new_path=`$CYGPATH -u "$path"` 60381 60382 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60383 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60384 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60385 # "foo.exe" is OK but "foo" is an error. 60386 # 60387 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60388 # It is also a way to make sure we got the proper file name for the real test later on. 60389 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60390 if test "x$test_shortpath" = x; then 60391 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60392 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60393 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60394 fi 60395 60396 # Call helper function which possibly converts this using DOS-style short mode. 60397 # If so, the updated path is stored in $new_path. 60398 60399 input_path="$new_path" 60400 # Check if we need to convert this using DOS-style short mode. If the path 60401 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60402 # take no chances and rewrite it. 60403 # Note: m4 eats our [], so we need to use [ and ] instead. 60404 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60405 if test "x$has_forbidden_chars" != x; then 60406 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60407 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60408 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60409 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60410 # Going to short mode and back again did indeed matter. Since short mode is 60411 # case insensitive, let's make it lowercase to improve readability. 60412 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60413 # Now convert it back to Unix-style (cygpath) 60414 input_path=`$CYGPATH -u "$shortmode_path"` 60415 new_path="$input_path" 60416 fi 60417 fi 60418 60419 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60420 if test "x$test_cygdrive_prefix" = x; then 60421 # As a simple fix, exclude /usr/bin since it's not a real path. 60422 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60423 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60424 # a path prefixed by /cygdrive for fixpath to work. 60425 new_path="$CYGWIN_ROOT_PATH$input_path" 60426 fi 60427 fi 60428 60429 60430 if test "x$path" != "x$new_path"; then 60431 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60432 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60433 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60434 fi 60435 60436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60437 60438 path="$POTENTIAL_FREETYPE_LIB_PATH" 60439 has_colon=`$ECHO $path | $GREP ^.:` 60440 new_path="$path" 60441 if test "x$has_colon" = x; then 60442 # Not in mixed or Windows style, start by that. 60443 new_path=`cmd //c echo $path` 60444 fi 60445 60446 60447 input_path="$new_path" 60448 # Check if we need to convert this using DOS-style short mode. If the path 60449 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60450 # take no chances and rewrite it. 60451 # Note: m4 eats our [], so we need to use [ and ] instead. 60452 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60453 if test "x$has_forbidden_chars" != x; then 60454 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60455 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60456 fi 60457 60458 60459 windows_path="$new_path" 60460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60461 unix_path=`$CYGPATH -u "$windows_path"` 60462 new_path="$unix_path" 60463 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60464 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60465 new_path="$unix_path" 60466 fi 60467 60468 if test "x$path" != "x$new_path"; then 60469 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60470 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60471 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60472 fi 60473 60474 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60475 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60476 60477 else 60478 # We're on a unix platform. Hooray! :) 60479 path="$POTENTIAL_FREETYPE_LIB_PATH" 60480 has_space=`$ECHO "$path" | $GREP " "` 60481 if test "x$has_space" != x; then 60482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60483 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60484 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60485 fi 60486 60487 # Use eval to expand a potential ~ 60488 eval path="$path" 60489 if test ! -f "$path" && test ! -d "$path"; then 60490 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60491 fi 60492 60493 if test -d "$path"; then 60494 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60495 else 60496 dir="`$DIRNAME "$path"`" 60497 base="`$BASENAME "$path"`" 60498 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60499 fi 60500 fi 60501 fi 60502 60503 60504 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60506 $as_echo_n "checking for freetype includes... " >&6; } 60507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60508 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60509 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60511 $as_echo_n "checking for freetype libraries... " >&6; } 60512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60513 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60514 fi 60515 60516 60517 if test "x$FOUND_FREETYPE" != xyes; then 60518 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 60519 60520 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60521 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60522 METHOD="well-known location" 60523 60524 # Let's start with an optimistic view of the world :-) 60525 FOUND_FREETYPE=yes 60526 60527 # First look for the canonical freetype main include file ft2build.h. 60528 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60529 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60530 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60531 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60532 # Fail. 60533 FOUND_FREETYPE=no 60534 fi 60535 fi 60536 60537 if test "x$FOUND_FREETYPE" = xyes; then 60538 # Include file found, let's continue the sanity check. 60539 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60540 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60541 60542 # Reset to default value 60543 FREETYPE_BASE_NAME=freetype 60544 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60545 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60546 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60547 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60548 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60549 # for the .6 version explicitly. 60550 FREETYPE_BASE_NAME=freetype.6 60551 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60552 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60553 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60554 else 60555 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60556 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60557 FOUND_FREETYPE=no 60558 fi 60559 else 60560 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60561 # On Windows, we will need both .lib and .dll file. 60562 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60563 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60564 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60565 FOUND_FREETYPE=no 60566 fi 60567 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60568 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60569 # Found lib in isa dir, use that instead. 60570 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60571 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60572 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60573 fi 60574 fi 60575 fi 60576 60577 if test "x$FOUND_FREETYPE" = xyes; then 60578 60579 # Only process if variable expands to non-empty 60580 60581 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60583 60584 # Input might be given as Windows format, start by converting to 60585 # unix format. 60586 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60587 new_path=`$CYGPATH -u "$path"` 60588 60589 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60590 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60591 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60592 # "foo.exe" is OK but "foo" is an error. 60593 # 60594 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60595 # It is also a way to make sure we got the proper file name for the real test later on. 60596 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60597 if test "x$test_shortpath" = x; then 60598 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60599 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60600 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60601 fi 60602 60603 # Call helper function which possibly converts this using DOS-style short mode. 60604 # If so, the updated path is stored in $new_path. 60605 60606 input_path="$new_path" 60607 # Check if we need to convert this using DOS-style short mode. If the path 60608 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60609 # take no chances and rewrite it. 60610 # Note: m4 eats our [], so we need to use [ and ] instead. 60611 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60612 if test "x$has_forbidden_chars" != x; then 60613 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60614 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60615 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60616 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60617 # Going to short mode and back again did indeed matter. Since short mode is 60618 # case insensitive, let's make it lowercase to improve readability. 60619 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60620 # Now convert it back to Unix-style (cygpath) 60621 input_path=`$CYGPATH -u "$shortmode_path"` 60622 new_path="$input_path" 60623 fi 60624 fi 60625 60626 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60627 if test "x$test_cygdrive_prefix" = x; then 60628 # As a simple fix, exclude /usr/bin since it's not a real path. 60629 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60630 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60631 # a path prefixed by /cygdrive for fixpath to work. 60632 new_path="$CYGWIN_ROOT_PATH$input_path" 60633 fi 60634 fi 60635 60636 60637 if test "x$path" != "x$new_path"; then 60638 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60639 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60640 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60641 fi 60642 60643 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60644 60645 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60646 has_colon=`$ECHO $path | $GREP ^.:` 60647 new_path="$path" 60648 if test "x$has_colon" = x; then 60649 # Not in mixed or Windows style, start by that. 60650 new_path=`cmd //c echo $path` 60651 fi 60652 60653 60654 input_path="$new_path" 60655 # Check if we need to convert this using DOS-style short mode. If the path 60656 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60657 # take no chances and rewrite it. 60658 # Note: m4 eats our [], so we need to use [ and ] instead. 60659 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60660 if test "x$has_forbidden_chars" != x; then 60661 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60662 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60663 fi 60664 60665 60666 windows_path="$new_path" 60667 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60668 unix_path=`$CYGPATH -u "$windows_path"` 60669 new_path="$unix_path" 60670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60671 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60672 new_path="$unix_path" 60673 fi 60674 60675 if test "x$path" != "x$new_path"; then 60676 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60677 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60678 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60679 fi 60680 60681 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60682 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60683 60684 else 60685 # We're on a unix platform. Hooray! :) 60686 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60687 has_space=`$ECHO "$path" | $GREP " "` 60688 if test "x$has_space" != x; then 60689 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60690 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60691 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60692 fi 60693 60694 # Use eval to expand a potential ~ 60695 eval path="$path" 60696 if test ! -f "$path" && test ! -d "$path"; then 60697 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60698 fi 60699 60700 if test -d "$path"; then 60701 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60702 else 60703 dir="`$DIRNAME "$path"`" 60704 base="`$BASENAME "$path"`" 60705 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60706 fi 60707 fi 60708 fi 60709 60710 60711 # Only process if variable expands to non-empty 60712 60713 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60715 60716 # Input might be given as Windows format, start by converting to 60717 # unix format. 60718 path="$POTENTIAL_FREETYPE_LIB_PATH" 60719 new_path=`$CYGPATH -u "$path"` 60720 60721 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60722 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60723 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60724 # "foo.exe" is OK but "foo" is an error. 60725 # 60726 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60727 # It is also a way to make sure we got the proper file name for the real test later on. 60728 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60729 if test "x$test_shortpath" = x; then 60730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60731 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60732 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60733 fi 60734 60735 # Call helper function which possibly converts this using DOS-style short mode. 60736 # If so, the updated path is stored in $new_path. 60737 60738 input_path="$new_path" 60739 # Check if we need to convert this using DOS-style short mode. If the path 60740 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60741 # take no chances and rewrite it. 60742 # Note: m4 eats our [], so we need to use [ and ] instead. 60743 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60744 if test "x$has_forbidden_chars" != x; then 60745 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60746 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60747 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60748 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60749 # Going to short mode and back again did indeed matter. Since short mode is 60750 # case insensitive, let's make it lowercase to improve readability. 60751 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60752 # Now convert it back to Unix-style (cygpath) 60753 input_path=`$CYGPATH -u "$shortmode_path"` 60754 new_path="$input_path" 60755 fi 60756 fi 60757 60758 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60759 if test "x$test_cygdrive_prefix" = x; then 60760 # As a simple fix, exclude /usr/bin since it's not a real path. 60761 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60762 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60763 # a path prefixed by /cygdrive for fixpath to work. 60764 new_path="$CYGWIN_ROOT_PATH$input_path" 60765 fi 60766 fi 60767 60768 60769 if test "x$path" != "x$new_path"; then 60770 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60772 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60773 fi 60774 60775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60776 60777 path="$POTENTIAL_FREETYPE_LIB_PATH" 60778 has_colon=`$ECHO $path | $GREP ^.:` 60779 new_path="$path" 60780 if test "x$has_colon" = x; then 60781 # Not in mixed or Windows style, start by that. 60782 new_path=`cmd //c echo $path` 60783 fi 60784 60785 60786 input_path="$new_path" 60787 # Check if we need to convert this using DOS-style short mode. If the path 60788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60789 # take no chances and rewrite it. 60790 # Note: m4 eats our [], so we need to use [ and ] instead. 60791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60792 if test "x$has_forbidden_chars" != x; then 60793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60794 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60795 fi 60796 60797 60798 windows_path="$new_path" 60799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60800 unix_path=`$CYGPATH -u "$windows_path"` 60801 new_path="$unix_path" 60802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60804 new_path="$unix_path" 60805 fi 60806 60807 if test "x$path" != "x$new_path"; then 60808 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60810 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60811 fi 60812 60813 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60814 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60815 60816 else 60817 # We're on a unix platform. Hooray! :) 60818 path="$POTENTIAL_FREETYPE_LIB_PATH" 60819 has_space=`$ECHO "$path" | $GREP " "` 60820 if test "x$has_space" != x; then 60821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60822 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60823 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60824 fi 60825 60826 # Use eval to expand a potential ~ 60827 eval path="$path" 60828 if test ! -f "$path" && test ! -d "$path"; then 60829 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60830 fi 60831 60832 if test -d "$path"; then 60833 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60834 else 60835 dir="`$DIRNAME "$path"`" 60836 base="`$BASENAME "$path"`" 60837 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60838 fi 60839 fi 60840 fi 60841 60842 60843 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60845 $as_echo_n "checking for freetype includes... " >&6; } 60846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60847 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60848 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60850 $as_echo_n "checking for freetype libraries... " >&6; } 60851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60852 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60853 fi 60854 60855 fi 60856 60857 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 60858 if test "x$FOUND_FREETYPE" != xyes; then 60859 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 60860 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 60861 60862 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60863 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60864 METHOD="well-known location" 60865 60866 # Let's start with an optimistic view of the world :-) 60867 FOUND_FREETYPE=yes 60868 60869 # First look for the canonical freetype main include file ft2build.h. 60870 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60871 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60872 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60873 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60874 # Fail. 60875 FOUND_FREETYPE=no 60876 fi 60877 fi 60878 60879 if test "x$FOUND_FREETYPE" = xyes; then 60880 # Include file found, let's continue the sanity check. 60881 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60882 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60883 60884 # Reset to default value 60885 FREETYPE_BASE_NAME=freetype 60886 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60887 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60888 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60889 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60890 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60891 # for the .6 version explicitly. 60892 FREETYPE_BASE_NAME=freetype.6 60893 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60894 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60895 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60896 else 60897 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60898 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60899 FOUND_FREETYPE=no 60900 fi 60901 else 60902 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60903 # On Windows, we will need both .lib and .dll file. 60904 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60905 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60906 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60907 FOUND_FREETYPE=no 60908 fi 60909 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60910 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60911 # Found lib in isa dir, use that instead. 60912 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60913 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60914 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60915 fi 60916 fi 60917 fi 60918 60919 if test "x$FOUND_FREETYPE" = xyes; then 60920 60921 # Only process if variable expands to non-empty 60922 60923 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60925 60926 # Input might be given as Windows format, start by converting to 60927 # unix format. 60928 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60929 new_path=`$CYGPATH -u "$path"` 60930 60931 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60932 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60933 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60934 # "foo.exe" is OK but "foo" is an error. 60935 # 60936 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60937 # It is also a way to make sure we got the proper file name for the real test later on. 60938 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60939 if test "x$test_shortpath" = x; then 60940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60941 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60942 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60943 fi 60944 60945 # Call helper function which possibly converts this using DOS-style short mode. 60946 # If so, the updated path is stored in $new_path. 60947 60948 input_path="$new_path" 60949 # Check if we need to convert this using DOS-style short mode. If the path 60950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60951 # take no chances and rewrite it. 60952 # Note: m4 eats our [], so we need to use [ and ] instead. 60953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60954 if test "x$has_forbidden_chars" != x; then 60955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60956 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60957 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60958 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60959 # Going to short mode and back again did indeed matter. Since short mode is 60960 # case insensitive, let's make it lowercase to improve readability. 60961 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60962 # Now convert it back to Unix-style (cygpath) 60963 input_path=`$CYGPATH -u "$shortmode_path"` 60964 new_path="$input_path" 60965 fi 60966 fi 60967 60968 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60969 if test "x$test_cygdrive_prefix" = x; then 60970 # As a simple fix, exclude /usr/bin since it's not a real path. 60971 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60972 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60973 # a path prefixed by /cygdrive for fixpath to work. 60974 new_path="$CYGWIN_ROOT_PATH$input_path" 60975 fi 60976 fi 60977 60978 60979 if test "x$path" != "x$new_path"; then 60980 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60981 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60982 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60983 fi 60984 60985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60986 60987 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60988 has_colon=`$ECHO $path | $GREP ^.:` 60989 new_path="$path" 60990 if test "x$has_colon" = x; then 60991 # Not in mixed or Windows style, start by that. 60992 new_path=`cmd //c echo $path` 60993 fi 60994 60995 60996 input_path="$new_path" 60997 # Check if we need to convert this using DOS-style short mode. If the path 60998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60999 # take no chances and rewrite it. 61000 # Note: m4 eats our [], so we need to use [ and ] instead. 61001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61002 if test "x$has_forbidden_chars" != x; then 61003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61004 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61005 fi 61006 61007 61008 windows_path="$new_path" 61009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61010 unix_path=`$CYGPATH -u "$windows_path"` 61011 new_path="$unix_path" 61012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61014 new_path="$unix_path" 61015 fi 61016 61017 if test "x$path" != "x$new_path"; then 61018 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61019 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61020 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61021 fi 61022 61023 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61024 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61025 61026 else 61027 # We're on a unix platform. Hooray! :) 61028 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61029 has_space=`$ECHO "$path" | $GREP " "` 61030 if test "x$has_space" != x; then 61031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61032 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61033 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61034 fi 61035 61036 # Use eval to expand a potential ~ 61037 eval path="$path" 61038 if test ! -f "$path" && test ! -d "$path"; then 61039 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61040 fi 61041 61042 if test -d "$path"; then 61043 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61044 else 61045 dir="`$DIRNAME "$path"`" 61046 base="`$BASENAME "$path"`" 61047 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61048 fi 61049 fi 61050 fi 61051 61052 61053 # Only process if variable expands to non-empty 61054 61055 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61057 61058 # Input might be given as Windows format, start by converting to 61059 # unix format. 61060 path="$POTENTIAL_FREETYPE_LIB_PATH" 61061 new_path=`$CYGPATH -u "$path"` 61062 61063 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61064 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61065 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61066 # "foo.exe" is OK but "foo" is an error. 61067 # 61068 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61069 # It is also a way to make sure we got the proper file name for the real test later on. 61070 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61071 if test "x$test_shortpath" = x; then 61072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61073 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61074 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61075 fi 61076 61077 # Call helper function which possibly converts this using DOS-style short mode. 61078 # If so, the updated path is stored in $new_path. 61079 61080 input_path="$new_path" 61081 # Check if we need to convert this using DOS-style short mode. If the path 61082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61083 # take no chances and rewrite it. 61084 # Note: m4 eats our [], so we need to use [ and ] instead. 61085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61086 if test "x$has_forbidden_chars" != x; then 61087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61088 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61089 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61090 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61091 # Going to short mode and back again did indeed matter. Since short mode is 61092 # case insensitive, let's make it lowercase to improve readability. 61093 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61094 # Now convert it back to Unix-style (cygpath) 61095 input_path=`$CYGPATH -u "$shortmode_path"` 61096 new_path="$input_path" 61097 fi 61098 fi 61099 61100 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61101 if test "x$test_cygdrive_prefix" = x; then 61102 # As a simple fix, exclude /usr/bin since it's not a real path. 61103 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61104 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61105 # a path prefixed by /cygdrive for fixpath to work. 61106 new_path="$CYGWIN_ROOT_PATH$input_path" 61107 fi 61108 fi 61109 61110 61111 if test "x$path" != "x$new_path"; then 61112 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61114 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61115 fi 61116 61117 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61118 61119 path="$POTENTIAL_FREETYPE_LIB_PATH" 61120 has_colon=`$ECHO $path | $GREP ^.:` 61121 new_path="$path" 61122 if test "x$has_colon" = x; then 61123 # Not in mixed or Windows style, start by that. 61124 new_path=`cmd //c echo $path` 61125 fi 61126 61127 61128 input_path="$new_path" 61129 # Check if we need to convert this using DOS-style short mode. If the path 61130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61131 # take no chances and rewrite it. 61132 # Note: m4 eats our [], so we need to use [ and ] instead. 61133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61134 if test "x$has_forbidden_chars" != x; then 61135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61136 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61137 fi 61138 61139 61140 windows_path="$new_path" 61141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61142 unix_path=`$CYGPATH -u "$windows_path"` 61143 new_path="$unix_path" 61144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61146 new_path="$unix_path" 61147 fi 61148 61149 if test "x$path" != "x$new_path"; then 61150 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61151 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61152 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61153 fi 61154 61155 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61156 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61157 61158 else 61159 # We're on a unix platform. Hooray! :) 61160 path="$POTENTIAL_FREETYPE_LIB_PATH" 61161 has_space=`$ECHO "$path" | $GREP " "` 61162 if test "x$has_space" != x; then 61163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61164 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61165 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61166 fi 61167 61168 # Use eval to expand a potential ~ 61169 eval path="$path" 61170 if test ! -f "$path" && test ! -d "$path"; then 61171 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61172 fi 61173 61174 if test -d "$path"; then 61175 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61176 else 61177 dir="`$DIRNAME "$path"`" 61178 base="`$BASENAME "$path"`" 61179 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61180 fi 61181 fi 61182 fi 61183 61184 61185 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61187 $as_echo_n "checking for freetype includes... " >&6; } 61188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61189 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61190 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61192 $as_echo_n "checking for freetype libraries... " >&6; } 61193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61194 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61195 fi 61196 61197 fi 61198 fi 61199 61200 if test "x$FOUND_FREETYPE" != xyes; then 61201 FREETYPE_BASE_DIR="$SYSROOT/usr" 61202 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61203 61204 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61205 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 61206 METHOD="well-known location" 61207 61208 # Let's start with an optimistic view of the world :-) 61209 FOUND_FREETYPE=yes 61210 61211 # First look for the canonical freetype main include file ft2build.h. 61212 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61213 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61214 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61215 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61216 # Fail. 61217 FOUND_FREETYPE=no 61218 fi 61219 fi 61220 61221 if test "x$FOUND_FREETYPE" = xyes; then 61222 # Include file found, let's continue the sanity check. 61223 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61224 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61225 61226 # Reset to default value 61227 FREETYPE_BASE_NAME=freetype 61228 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61229 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61230 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61231 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61232 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61233 # for the .6 version explicitly. 61234 FREETYPE_BASE_NAME=freetype.6 61235 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61236 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61237 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61238 else 61239 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61240 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61241 FOUND_FREETYPE=no 61242 fi 61243 else 61244 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61245 # On Windows, we will need both .lib and .dll file. 61246 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61247 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61248 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61249 FOUND_FREETYPE=no 61250 fi 61251 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61252 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61253 # Found lib in isa dir, use that instead. 61254 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61255 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61256 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61257 fi 61258 fi 61259 fi 61260 61261 if test "x$FOUND_FREETYPE" = xyes; then 61262 61263 # Only process if variable expands to non-empty 61264 61265 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61267 61268 # Input might be given as Windows format, start by converting to 61269 # unix format. 61270 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61271 new_path=`$CYGPATH -u "$path"` 61272 61273 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61274 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61275 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61276 # "foo.exe" is OK but "foo" is an error. 61277 # 61278 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61279 # It is also a way to make sure we got the proper file name for the real test later on. 61280 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61281 if test "x$test_shortpath" = x; then 61282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61283 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61284 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61285 fi 61286 61287 # Call helper function which possibly converts this using DOS-style short mode. 61288 # If so, the updated path is stored in $new_path. 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 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61299 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61300 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61301 # Going to short mode and back again did indeed matter. Since short mode is 61302 # case insensitive, let's make it lowercase to improve readability. 61303 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61304 # Now convert it back to Unix-style (cygpath) 61305 input_path=`$CYGPATH -u "$shortmode_path"` 61306 new_path="$input_path" 61307 fi 61308 fi 61309 61310 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61311 if test "x$test_cygdrive_prefix" = x; then 61312 # As a simple fix, exclude /usr/bin since it's not a real path. 61313 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61314 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61315 # a path prefixed by /cygdrive for fixpath to work. 61316 new_path="$CYGWIN_ROOT_PATH$input_path" 61317 fi 61318 fi 61319 61320 61321 if test "x$path" != "x$new_path"; then 61322 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61323 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61324 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61325 fi 61326 61327 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61328 61329 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61330 has_colon=`$ECHO $path | $GREP ^.:` 61331 new_path="$path" 61332 if test "x$has_colon" = x; then 61333 # Not in mixed or Windows style, start by that. 61334 new_path=`cmd //c echo $path` 61335 fi 61336 61337 61338 input_path="$new_path" 61339 # Check if we need to convert this using DOS-style short mode. If the path 61340 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61341 # take no chances and rewrite it. 61342 # Note: m4 eats our [], so we need to use [ and ] instead. 61343 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61344 if test "x$has_forbidden_chars" != x; then 61345 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61346 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61347 fi 61348 61349 61350 windows_path="$new_path" 61351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61352 unix_path=`$CYGPATH -u "$windows_path"` 61353 new_path="$unix_path" 61354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61356 new_path="$unix_path" 61357 fi 61358 61359 if test "x$path" != "x$new_path"; then 61360 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61361 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61362 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61363 fi 61364 61365 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61366 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61367 61368 else 61369 # We're on a unix platform. Hooray! :) 61370 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61371 has_space=`$ECHO "$path" | $GREP " "` 61372 if test "x$has_space" != x; then 61373 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61374 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61375 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61376 fi 61377 61378 # Use eval to expand a potential ~ 61379 eval path="$path" 61380 if test ! -f "$path" && test ! -d "$path"; then 61381 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61382 fi 61383 61384 if test -d "$path"; then 61385 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61386 else 61387 dir="`$DIRNAME "$path"`" 61388 base="`$BASENAME "$path"`" 61389 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61390 fi 61391 fi 61392 fi 61393 61394 61395 # Only process if variable expands to non-empty 61396 61397 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61398 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61399 61400 # Input might be given as Windows format, start by converting to 61401 # unix format. 61402 path="$POTENTIAL_FREETYPE_LIB_PATH" 61403 new_path=`$CYGPATH -u "$path"` 61404 61405 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61406 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61407 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61408 # "foo.exe" is OK but "foo" is an error. 61409 # 61410 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61411 # It is also a way to make sure we got the proper file name for the real test later on. 61412 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61413 if test "x$test_shortpath" = x; then 61414 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61415 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61416 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61417 fi 61418 61419 # Call helper function which possibly converts this using DOS-style short mode. 61420 # If so, the updated path is stored in $new_path. 61421 61422 input_path="$new_path" 61423 # Check if we need to convert this using DOS-style short mode. If the path 61424 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61425 # take no chances and rewrite it. 61426 # Note: m4 eats our [], so we need to use [ and ] instead. 61427 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61428 if test "x$has_forbidden_chars" != x; then 61429 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61430 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61431 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61432 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61433 # Going to short mode and back again did indeed matter. Since short mode is 61434 # case insensitive, let's make it lowercase to improve readability. 61435 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61436 # Now convert it back to Unix-style (cygpath) 61437 input_path=`$CYGPATH -u "$shortmode_path"` 61438 new_path="$input_path" 61439 fi 61440 fi 61441 61442 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61443 if test "x$test_cygdrive_prefix" = x; then 61444 # As a simple fix, exclude /usr/bin since it's not a real path. 61445 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61446 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61447 # a path prefixed by /cygdrive for fixpath to work. 61448 new_path="$CYGWIN_ROOT_PATH$input_path" 61449 fi 61450 fi 61451 61452 61453 if test "x$path" != "x$new_path"; then 61454 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61455 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61456 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61457 fi 61458 61459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61460 61461 path="$POTENTIAL_FREETYPE_LIB_PATH" 61462 has_colon=`$ECHO $path | $GREP ^.:` 61463 new_path="$path" 61464 if test "x$has_colon" = x; then 61465 # Not in mixed or Windows style, start by that. 61466 new_path=`cmd //c echo $path` 61467 fi 61468 61469 61470 input_path="$new_path" 61471 # Check if we need to convert this using DOS-style short mode. If the path 61472 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61473 # take no chances and rewrite it. 61474 # Note: m4 eats our [], so we need to use [ and ] instead. 61475 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61476 if test "x$has_forbidden_chars" != x; then 61477 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61478 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61479 fi 61480 61481 61482 windows_path="$new_path" 61483 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61484 unix_path=`$CYGPATH -u "$windows_path"` 61485 new_path="$unix_path" 61486 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61487 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61488 new_path="$unix_path" 61489 fi 61490 61491 if test "x$path" != "x$new_path"; then 61492 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61493 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61494 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61495 fi 61496 61497 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61498 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61499 61500 else 61501 # We're on a unix platform. Hooray! :) 61502 path="$POTENTIAL_FREETYPE_LIB_PATH" 61503 has_space=`$ECHO "$path" | $GREP " "` 61504 if test "x$has_space" != x; then 61505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61506 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61507 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61508 fi 61509 61510 # Use eval to expand a potential ~ 61511 eval path="$path" 61512 if test ! -f "$path" && test ! -d "$path"; then 61513 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61514 fi 61515 61516 if test -d "$path"; then 61517 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61518 else 61519 dir="`$DIRNAME "$path"`" 61520 base="`$BASENAME "$path"`" 61521 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61522 fi 61523 fi 61524 fi 61525 61526 61527 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61529 $as_echo_n "checking for freetype includes... " >&6; } 61530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61531 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61532 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61534 $as_echo_n "checking for freetype libraries... " >&6; } 61535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61536 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61537 fi 61538 61539 else 61540 61541 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61542 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 61543 METHOD="well-known location" 61544 61545 # Let's start with an optimistic view of the world :-) 61546 FOUND_FREETYPE=yes 61547 61548 # First look for the canonical freetype main include file ft2build.h. 61549 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61550 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61551 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61552 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61553 # Fail. 61554 FOUND_FREETYPE=no 61555 fi 61556 fi 61557 61558 if test "x$FOUND_FREETYPE" = xyes; then 61559 # Include file found, let's continue the sanity check. 61560 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61561 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61562 61563 # Reset to default value 61564 FREETYPE_BASE_NAME=freetype 61565 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61566 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61567 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61568 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61569 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61570 # for the .6 version explicitly. 61571 FREETYPE_BASE_NAME=freetype.6 61572 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61573 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61574 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61575 else 61576 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61577 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61578 FOUND_FREETYPE=no 61579 fi 61580 else 61581 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61582 # On Windows, we will need both .lib and .dll file. 61583 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61584 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61585 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61586 FOUND_FREETYPE=no 61587 fi 61588 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61589 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61590 # Found lib in isa dir, use that instead. 61591 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61592 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61593 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61594 fi 61595 fi 61596 fi 61597 61598 if test "x$FOUND_FREETYPE" = xyes; then 61599 61600 # Only process if variable expands to non-empty 61601 61602 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61604 61605 # Input might be given as Windows format, start by converting to 61606 # unix format. 61607 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61608 new_path=`$CYGPATH -u "$path"` 61609 61610 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61611 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61612 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61613 # "foo.exe" is OK but "foo" is an error. 61614 # 61615 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61616 # It is also a way to make sure we got the proper file name for the real test later on. 61617 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61618 if test "x$test_shortpath" = x; then 61619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61620 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61621 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61622 fi 61623 61624 # Call helper function which possibly converts this using DOS-style short mode. 61625 # If so, the updated path is stored in $new_path. 61626 61627 input_path="$new_path" 61628 # Check if we need to convert this using DOS-style short mode. If the path 61629 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61630 # take no chances and rewrite it. 61631 # Note: m4 eats our [], so we need to use [ and ] instead. 61632 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61633 if test "x$has_forbidden_chars" != x; then 61634 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61635 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61636 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61637 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61638 # Going to short mode and back again did indeed matter. Since short mode is 61639 # case insensitive, let's make it lowercase to improve readability. 61640 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61641 # Now convert it back to Unix-style (cygpath) 61642 input_path=`$CYGPATH -u "$shortmode_path"` 61643 new_path="$input_path" 61644 fi 61645 fi 61646 61647 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61648 if test "x$test_cygdrive_prefix" = x; then 61649 # As a simple fix, exclude /usr/bin since it's not a real path. 61650 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61651 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61652 # a path prefixed by /cygdrive for fixpath to work. 61653 new_path="$CYGWIN_ROOT_PATH$input_path" 61654 fi 61655 fi 61656 61657 61658 if test "x$path" != "x$new_path"; then 61659 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61660 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61661 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61662 fi 61663 61664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61665 61666 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61667 has_colon=`$ECHO $path | $GREP ^.:` 61668 new_path="$path" 61669 if test "x$has_colon" = x; then 61670 # Not in mixed or Windows style, start by that. 61671 new_path=`cmd //c echo $path` 61672 fi 61673 61674 61675 input_path="$new_path" 61676 # Check if we need to convert this using DOS-style short mode. If the path 61677 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61678 # take no chances and rewrite it. 61679 # Note: m4 eats our [], so we need to use [ and ] instead. 61680 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61681 if test "x$has_forbidden_chars" != x; then 61682 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61683 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61684 fi 61685 61686 61687 windows_path="$new_path" 61688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61689 unix_path=`$CYGPATH -u "$windows_path"` 61690 new_path="$unix_path" 61691 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61692 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61693 new_path="$unix_path" 61694 fi 61695 61696 if test "x$path" != "x$new_path"; then 61697 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61698 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61699 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61700 fi 61701 61702 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61703 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61704 61705 else 61706 # We're on a unix platform. Hooray! :) 61707 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61708 has_space=`$ECHO "$path" | $GREP " "` 61709 if test "x$has_space" != x; then 61710 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61711 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61712 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61713 fi 61714 61715 # Use eval to expand a potential ~ 61716 eval path="$path" 61717 if test ! -f "$path" && test ! -d "$path"; then 61718 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61719 fi 61720 61721 if test -d "$path"; then 61722 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61723 else 61724 dir="`$DIRNAME "$path"`" 61725 base="`$BASENAME "$path"`" 61726 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61727 fi 61728 fi 61729 fi 61730 61731 61732 # Only process if variable expands to non-empty 61733 61734 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61736 61737 # Input might be given as Windows format, start by converting to 61738 # unix format. 61739 path="$POTENTIAL_FREETYPE_LIB_PATH" 61740 new_path=`$CYGPATH -u "$path"` 61741 61742 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61743 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61744 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61745 # "foo.exe" is OK but "foo" is an error. 61746 # 61747 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61748 # It is also a way to make sure we got the proper file name for the real test later on. 61749 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61750 if test "x$test_shortpath" = x; then 61751 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61752 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61753 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61754 fi 61755 61756 # Call helper function which possibly converts this using DOS-style short mode. 61757 # If so, the updated path is stored in $new_path. 61758 61759 input_path="$new_path" 61760 # Check if we need to convert this using DOS-style short mode. If the path 61761 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61762 # take no chances and rewrite it. 61763 # Note: m4 eats our [], so we need to use [ and ] instead. 61764 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61765 if test "x$has_forbidden_chars" != x; then 61766 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61767 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61768 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61769 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61770 # Going to short mode and back again did indeed matter. Since short mode is 61771 # case insensitive, let's make it lowercase to improve readability. 61772 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61773 # Now convert it back to Unix-style (cygpath) 61774 input_path=`$CYGPATH -u "$shortmode_path"` 61775 new_path="$input_path" 61776 fi 61777 fi 61778 61779 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61780 if test "x$test_cygdrive_prefix" = x; then 61781 # As a simple fix, exclude /usr/bin since it's not a real path. 61782 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61783 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61784 # a path prefixed by /cygdrive for fixpath to work. 61785 new_path="$CYGWIN_ROOT_PATH$input_path" 61786 fi 61787 fi 61788 61789 61790 if test "x$path" != "x$new_path"; then 61791 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61792 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61793 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61794 fi 61795 61796 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61797 61798 path="$POTENTIAL_FREETYPE_LIB_PATH" 61799 has_colon=`$ECHO $path | $GREP ^.:` 61800 new_path="$path" 61801 if test "x$has_colon" = x; then 61802 # Not in mixed or Windows style, start by that. 61803 new_path=`cmd //c echo $path` 61804 fi 61805 61806 61807 input_path="$new_path" 61808 # Check if we need to convert this using DOS-style short mode. If the path 61809 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61810 # take no chances and rewrite it. 61811 # Note: m4 eats our [], so we need to use [ and ] instead. 61812 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61813 if test "x$has_forbidden_chars" != x; then 61814 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61815 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61816 fi 61817 61818 61819 windows_path="$new_path" 61820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61821 unix_path=`$CYGPATH -u "$windows_path"` 61822 new_path="$unix_path" 61823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61824 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61825 new_path="$unix_path" 61826 fi 61827 61828 if test "x$path" != "x$new_path"; then 61829 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61830 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61831 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61832 fi 61833 61834 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61835 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61836 61837 else 61838 # We're on a unix platform. Hooray! :) 61839 path="$POTENTIAL_FREETYPE_LIB_PATH" 61840 has_space=`$ECHO "$path" | $GREP " "` 61841 if test "x$has_space" != x; then 61842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61843 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61844 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61845 fi 61846 61847 # Use eval to expand a potential ~ 61848 eval path="$path" 61849 if test ! -f "$path" && test ! -d "$path"; then 61850 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61851 fi 61852 61853 if test -d "$path"; then 61854 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61855 else 61856 dir="`$DIRNAME "$path"`" 61857 base="`$BASENAME "$path"`" 61858 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61859 fi 61860 fi 61861 fi 61862 61863 61864 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61866 $as_echo_n "checking for freetype includes... " >&6; } 61867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61868 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61869 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61871 $as_echo_n "checking for freetype libraries... " >&6; } 61872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61873 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61874 fi 61875 61876 if test "x$FOUND_FREETYPE" != xyes; then 61877 61878 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61879 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 61880 METHOD="well-known location" 61881 61882 # Let's start with an optimistic view of the world :-) 61883 FOUND_FREETYPE=yes 61884 61885 # First look for the canonical freetype main include file ft2build.h. 61886 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61887 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61888 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61889 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61890 # Fail. 61891 FOUND_FREETYPE=no 61892 fi 61893 fi 61894 61895 if test "x$FOUND_FREETYPE" = xyes; then 61896 # Include file found, let's continue the sanity check. 61897 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61898 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61899 61900 # Reset to default value 61901 FREETYPE_BASE_NAME=freetype 61902 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61903 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61904 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61905 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61906 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61907 # for the .6 version explicitly. 61908 FREETYPE_BASE_NAME=freetype.6 61909 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61910 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61911 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61912 else 61913 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61914 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61915 FOUND_FREETYPE=no 61916 fi 61917 else 61918 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61919 # On Windows, we will need both .lib and .dll file. 61920 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61921 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61922 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61923 FOUND_FREETYPE=no 61924 fi 61925 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61926 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61927 # Found lib in isa dir, use that instead. 61928 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61929 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61930 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61931 fi 61932 fi 61933 fi 61934 61935 if test "x$FOUND_FREETYPE" = xyes; then 61936 61937 # Only process if variable expands to non-empty 61938 61939 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61941 61942 # Input might be given as Windows format, start by converting to 61943 # unix format. 61944 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61945 new_path=`$CYGPATH -u "$path"` 61946 61947 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61948 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61949 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61950 # "foo.exe" is OK but "foo" is an error. 61951 # 61952 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61953 # It is also a way to make sure we got the proper file name for the real test later on. 61954 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61955 if test "x$test_shortpath" = x; then 61956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61957 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61958 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61959 fi 61960 61961 # Call helper function which possibly converts this using DOS-style short mode. 61962 # If so, the updated path is stored in $new_path. 61963 61964 input_path="$new_path" 61965 # Check if we need to convert this using DOS-style short mode. If the path 61966 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61967 # take no chances and rewrite it. 61968 # Note: m4 eats our [], so we need to use [ and ] instead. 61969 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61970 if test "x$has_forbidden_chars" != x; then 61971 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61972 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61973 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61974 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61975 # Going to short mode and back again did indeed matter. Since short mode is 61976 # case insensitive, let's make it lowercase to improve readability. 61977 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61978 # Now convert it back to Unix-style (cygpath) 61979 input_path=`$CYGPATH -u "$shortmode_path"` 61980 new_path="$input_path" 61981 fi 61982 fi 61983 61984 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61985 if test "x$test_cygdrive_prefix" = x; then 61986 # As a simple fix, exclude /usr/bin since it's not a real path. 61987 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61988 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61989 # a path prefixed by /cygdrive for fixpath to work. 61990 new_path="$CYGWIN_ROOT_PATH$input_path" 61991 fi 61992 fi 61993 61994 61995 if test "x$path" != "x$new_path"; then 61996 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61998 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61999 fi 62000 62001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62002 62003 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62004 has_colon=`$ECHO $path | $GREP ^.:` 62005 new_path="$path" 62006 if test "x$has_colon" = x; then 62007 # Not in mixed or Windows style, start by that. 62008 new_path=`cmd //c echo $path` 62009 fi 62010 62011 62012 input_path="$new_path" 62013 # Check if we need to convert this using DOS-style short mode. If the path 62014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62015 # take no chances and rewrite it. 62016 # Note: m4 eats our [], so we need to use [ and ] instead. 62017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62018 if test "x$has_forbidden_chars" != x; then 62019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62020 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62021 fi 62022 62023 62024 windows_path="$new_path" 62025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62026 unix_path=`$CYGPATH -u "$windows_path"` 62027 new_path="$unix_path" 62028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62029 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62030 new_path="$unix_path" 62031 fi 62032 62033 if test "x$path" != "x$new_path"; then 62034 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62035 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62036 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62037 fi 62038 62039 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62040 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62041 62042 else 62043 # We're on a unix platform. Hooray! :) 62044 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62045 has_space=`$ECHO "$path" | $GREP " "` 62046 if test "x$has_space" != x; then 62047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62048 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62049 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62050 fi 62051 62052 # Use eval to expand a potential ~ 62053 eval path="$path" 62054 if test ! -f "$path" && test ! -d "$path"; then 62055 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62056 fi 62057 62058 if test -d "$path"; then 62059 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62060 else 62061 dir="`$DIRNAME "$path"`" 62062 base="`$BASENAME "$path"`" 62063 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62064 fi 62065 fi 62066 fi 62067 62068 62069 # Only process if variable expands to non-empty 62070 62071 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62073 62074 # Input might be given as Windows format, start by converting to 62075 # unix format. 62076 path="$POTENTIAL_FREETYPE_LIB_PATH" 62077 new_path=`$CYGPATH -u "$path"` 62078 62079 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62080 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62081 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62082 # "foo.exe" is OK but "foo" is an error. 62083 # 62084 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62085 # It is also a way to make sure we got the proper file name for the real test later on. 62086 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62087 if test "x$test_shortpath" = x; then 62088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62089 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62090 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62091 fi 62092 62093 # Call helper function which possibly converts this using DOS-style short mode. 62094 # If so, the updated path is stored in $new_path. 62095 62096 input_path="$new_path" 62097 # Check if we need to convert this using DOS-style short mode. If the path 62098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62099 # take no chances and rewrite it. 62100 # Note: m4 eats our [], so we need to use [ and ] instead. 62101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62102 if test "x$has_forbidden_chars" != x; then 62103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62104 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62105 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62106 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62107 # Going to short mode and back again did indeed matter. Since short mode is 62108 # case insensitive, let's make it lowercase to improve readability. 62109 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62110 # Now convert it back to Unix-style (cygpath) 62111 input_path=`$CYGPATH -u "$shortmode_path"` 62112 new_path="$input_path" 62113 fi 62114 fi 62115 62116 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62117 if test "x$test_cygdrive_prefix" = x; then 62118 # As a simple fix, exclude /usr/bin since it's not a real path. 62119 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62120 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62121 # a path prefixed by /cygdrive for fixpath to work. 62122 new_path="$CYGWIN_ROOT_PATH$input_path" 62123 fi 62124 fi 62125 62126 62127 if test "x$path" != "x$new_path"; then 62128 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62130 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62131 fi 62132 62133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62134 62135 path="$POTENTIAL_FREETYPE_LIB_PATH" 62136 has_colon=`$ECHO $path | $GREP ^.:` 62137 new_path="$path" 62138 if test "x$has_colon" = x; then 62139 # Not in mixed or Windows style, start by that. 62140 new_path=`cmd //c echo $path` 62141 fi 62142 62143 62144 input_path="$new_path" 62145 # Check if we need to convert this using DOS-style short mode. If the path 62146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62147 # take no chances and rewrite it. 62148 # Note: m4 eats our [], so we need to use [ and ] instead. 62149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62150 if test "x$has_forbidden_chars" != x; then 62151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62152 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62153 fi 62154 62155 62156 windows_path="$new_path" 62157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62158 unix_path=`$CYGPATH -u "$windows_path"` 62159 new_path="$unix_path" 62160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62162 new_path="$unix_path" 62163 fi 62164 62165 if test "x$path" != "x$new_path"; then 62166 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62167 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62168 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62169 fi 62170 62171 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62172 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62173 62174 else 62175 # We're on a unix platform. Hooray! :) 62176 path="$POTENTIAL_FREETYPE_LIB_PATH" 62177 has_space=`$ECHO "$path" | $GREP " "` 62178 if test "x$has_space" != x; then 62179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62180 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62181 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62182 fi 62183 62184 # Use eval to expand a potential ~ 62185 eval path="$path" 62186 if test ! -f "$path" && test ! -d "$path"; then 62187 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62188 fi 62189 62190 if test -d "$path"; then 62191 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62192 else 62193 dir="`$DIRNAME "$path"`" 62194 base="`$BASENAME "$path"`" 62195 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62196 fi 62197 fi 62198 fi 62199 62200 62201 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62203 $as_echo_n "checking for freetype includes... " >&6; } 62204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62205 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62206 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62208 $as_echo_n "checking for freetype libraries... " >&6; } 62209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62210 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62211 fi 62212 62213 fi 62214 fi 62215 fi 62216 fi 62217 fi # end check in well-known locations 62218 62219 if test "x$FOUND_FREETYPE" != xyes; then 62220 62221 # Print a helpful message on how to acquire the necessary build dependency. 62222 # freetype is the help tag: freetype, cups, alsa etc 62223 MISSING_DEPENDENCY=freetype 62224 62225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62226 cygwin_help $MISSING_DEPENDENCY 62227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62228 msys_help $MISSING_DEPENDENCY 62229 else 62230 PKGHANDLER_COMMAND= 62231 62232 case $PKGHANDLER in 62233 apt-get) 62234 apt_help $MISSING_DEPENDENCY ;; 62235 yum) 62236 yum_help $MISSING_DEPENDENCY ;; 62237 port) 62238 port_help $MISSING_DEPENDENCY ;; 62239 pkgutil) 62240 pkgutil_help $MISSING_DEPENDENCY ;; 62241 pkgadd) 62242 pkgadd_help $MISSING_DEPENDENCY ;; 62243 esac 62244 62245 if test "x$PKGHANDLER_COMMAND" != x; then 62246 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62247 fi 62248 fi 62249 62250 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 62251 fi 62252 fi # end user specified settings 62253 62254 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 62255 if test "x$FREETYPE_CFLAGS" = x; then 62256 62257 # Only process if variable expands to non-empty 62258 62259 if test "x$FREETYPE_INCLUDE_PATH" != x; then 62260 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62261 62262 # Input might be given as Windows format, start by converting to 62263 # unix format. 62264 path="$FREETYPE_INCLUDE_PATH" 62265 new_path=`$CYGPATH -u "$path"` 62266 62267 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62268 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62269 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62270 # "foo.exe" is OK but "foo" is an error. 62271 # 62272 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62273 # It is also a way to make sure we got the proper file name for the real test later on. 62274 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62275 if test "x$test_shortpath" = x; then 62276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62277 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62278 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 62279 fi 62280 62281 # Call helper function which possibly converts this using DOS-style short mode. 62282 # If so, the updated path is stored in $new_path. 62283 62284 input_path="$new_path" 62285 # Check if we need to convert this using DOS-style short mode. If the path 62286 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62287 # take no chances and rewrite it. 62288 # Note: m4 eats our [], so we need to use [ and ] instead. 62289 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62290 if test "x$has_forbidden_chars" != x; then 62291 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62292 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62293 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62294 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62295 # Going to short mode and back again did indeed matter. Since short mode is 62296 # case insensitive, let's make it lowercase to improve readability. 62297 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62298 # Now convert it back to Unix-style (cygpath) 62299 input_path=`$CYGPATH -u "$shortmode_path"` 62300 new_path="$input_path" 62301 fi 62302 fi 62303 62304 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62305 if test "x$test_cygdrive_prefix" = x; then 62306 # As a simple fix, exclude /usr/bin since it's not a real path. 62307 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62308 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62309 # a path prefixed by /cygdrive for fixpath to work. 62310 new_path="$CYGWIN_ROOT_PATH$input_path" 62311 fi 62312 fi 62313 62314 62315 if test "x$path" != "x$new_path"; then 62316 FREETYPE_INCLUDE_PATH="$new_path" 62317 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62318 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62319 fi 62320 62321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62322 62323 path="$FREETYPE_INCLUDE_PATH" 62324 has_colon=`$ECHO $path | $GREP ^.:` 62325 new_path="$path" 62326 if test "x$has_colon" = x; then 62327 # Not in mixed or Windows style, start by that. 62328 new_path=`cmd //c echo $path` 62329 fi 62330 62331 62332 input_path="$new_path" 62333 # Check if we need to convert this using DOS-style short mode. If the path 62334 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62335 # take no chances and rewrite it. 62336 # Note: m4 eats our [], so we need to use [ and ] instead. 62337 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62338 if test "x$has_forbidden_chars" != x; then 62339 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62340 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62341 fi 62342 62343 62344 windows_path="$new_path" 62345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62346 unix_path=`$CYGPATH -u "$windows_path"` 62347 new_path="$unix_path" 62348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62350 new_path="$unix_path" 62351 fi 62352 62353 if test "x$path" != "x$new_path"; then 62354 FREETYPE_INCLUDE_PATH="$new_path" 62355 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62356 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62357 fi 62358 62359 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62360 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62361 62362 else 62363 # We're on a unix platform. Hooray! :) 62364 path="$FREETYPE_INCLUDE_PATH" 62365 has_space=`$ECHO "$path" | $GREP " "` 62366 if test "x$has_space" != x; then 62367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62368 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62369 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62370 fi 62371 62372 # Use eval to expand a potential ~ 62373 eval path="$path" 62374 if test ! -f "$path" && test ! -d "$path"; then 62375 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62376 fi 62377 62378 if test -d "$path"; then 62379 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62380 else 62381 dir="`$DIRNAME "$path"`" 62382 base="`$BASENAME "$path"`" 62383 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62384 fi 62385 fi 62386 fi 62387 62388 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 62389 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 62390 else 62391 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 62392 fi 62393 fi 62394 62395 if test "x$FREETYPE_LIBS" = x; then 62396 62397 # Only process if variable expands to non-empty 62398 62399 if test "x$FREETYPE_LIB_PATH" != x; then 62400 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62401 62402 # Input might be given as Windows format, start by converting to 62403 # unix format. 62404 path="$FREETYPE_LIB_PATH" 62405 new_path=`$CYGPATH -u "$path"` 62406 62407 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62408 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62409 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62410 # "foo.exe" is OK but "foo" is an error. 62411 # 62412 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62413 # It is also a way to make sure we got the proper file name for the real test later on. 62414 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62415 if test "x$test_shortpath" = x; then 62416 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62417 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62418 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 62419 fi 62420 62421 # Call helper function which possibly converts this using DOS-style short mode. 62422 # If so, the updated path is stored in $new_path. 62423 62424 input_path="$new_path" 62425 # Check if we need to convert this using DOS-style short mode. If the path 62426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62427 # take no chances and rewrite it. 62428 # Note: m4 eats our [], so we need to use [ and ] instead. 62429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62430 if test "x$has_forbidden_chars" != x; then 62431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62432 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62433 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62434 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62435 # Going to short mode and back again did indeed matter. Since short mode is 62436 # case insensitive, let's make it lowercase to improve readability. 62437 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62438 # Now convert it back to Unix-style (cygpath) 62439 input_path=`$CYGPATH -u "$shortmode_path"` 62440 new_path="$input_path" 62441 fi 62442 fi 62443 62444 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62445 if test "x$test_cygdrive_prefix" = x; then 62446 # As a simple fix, exclude /usr/bin since it's not a real path. 62447 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62448 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62449 # a path prefixed by /cygdrive for fixpath to work. 62450 new_path="$CYGWIN_ROOT_PATH$input_path" 62451 fi 62452 fi 62453 62454 62455 if test "x$path" != "x$new_path"; then 62456 FREETYPE_LIB_PATH="$new_path" 62457 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 62458 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62459 fi 62460 62461 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62462 62463 path="$FREETYPE_LIB_PATH" 62464 has_colon=`$ECHO $path | $GREP ^.:` 62465 new_path="$path" 62466 if test "x$has_colon" = x; then 62467 # Not in mixed or Windows style, start by that. 62468 new_path=`cmd //c echo $path` 62469 fi 62470 62471 62472 input_path="$new_path" 62473 # Check if we need to convert this using DOS-style short mode. If the path 62474 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62475 # take no chances and rewrite it. 62476 # Note: m4 eats our [], so we need to use [ and ] instead. 62477 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62478 if test "x$has_forbidden_chars" != x; then 62479 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62480 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62481 fi 62482 62483 62484 windows_path="$new_path" 62485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62486 unix_path=`$CYGPATH -u "$windows_path"` 62487 new_path="$unix_path" 62488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62489 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62490 new_path="$unix_path" 62491 fi 62492 62493 if test "x$path" != "x$new_path"; then 62494 FREETYPE_LIB_PATH="$new_path" 62495 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 62496 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62497 fi 62498 62499 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62500 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62501 62502 else 62503 # We're on a unix platform. Hooray! :) 62504 path="$FREETYPE_LIB_PATH" 62505 has_space=`$ECHO "$path" | $GREP " "` 62506 if test "x$has_space" != x; then 62507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62508 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62509 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62510 fi 62511 62512 # Use eval to expand a potential ~ 62513 eval path="$path" 62514 if test ! -f "$path" && test ! -d "$path"; then 62515 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62516 fi 62517 62518 if test -d "$path"; then 62519 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62520 else 62521 dir="`$DIRNAME "$path"`" 62522 base="`$BASENAME "$path"`" 62523 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62524 fi 62525 fi 62526 fi 62527 62528 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62529 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 62530 else 62531 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 62532 fi 62533 fi 62534 62535 # Try to compile it 62536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 62537 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 62538 ac_ext=cpp 62539 ac_cpp='$CXXCPP $CPPFLAGS' 62540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 62543 62544 PREV_CXXCFLAGS="$CXXFLAGS" 62545 PREV_LIBS="$LIBS" 62546 PREV_CXX="$CXX" 62547 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 62548 LIBS="$LIBS $FREETYPE_LIBS" 62549 CXX="$FIXPATH $CXX" 62550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62551 /* end confdefs.h. */ 62552 62553 #include<ft2build.h> 62554 #include FT_FREETYPE_H 62555 int main () { 62556 FT_Init_FreeType(NULL); 62557 return 0; 62558 } 62559 62560 _ACEOF 62561 if ac_fn_cxx_try_link "$LINENO"; then : 62562 62563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62564 $as_echo "yes" >&6; } 62565 62566 else 62567 62568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62569 $as_echo "no" >&6; } 62570 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 62571 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 62572 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 62573 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 62574 62575 62576 # Print a helpful message on how to acquire the necessary build dependency. 62577 # freetype is the help tag: freetype, cups, alsa etc 62578 MISSING_DEPENDENCY=freetype 62579 62580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62581 cygwin_help $MISSING_DEPENDENCY 62582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62583 msys_help $MISSING_DEPENDENCY 62584 else 62585 PKGHANDLER_COMMAND= 62586 62587 case $PKGHANDLER in 62588 apt-get) 62589 apt_help $MISSING_DEPENDENCY ;; 62590 yum) 62591 yum_help $MISSING_DEPENDENCY ;; 62592 port) 62593 port_help $MISSING_DEPENDENCY ;; 62594 pkgutil) 62595 pkgutil_help $MISSING_DEPENDENCY ;; 62596 pkgadd) 62597 pkgadd_help $MISSING_DEPENDENCY ;; 62598 esac 62599 62600 if test "x$PKGHANDLER_COMMAND" != x; then 62601 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62602 fi 62603 fi 62604 62605 62606 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 62607 62608 62609 fi 62610 rm -f core conftest.err conftest.$ac_objext \ 62611 conftest$ac_exeext conftest.$ac_ext 62612 CXXCFLAGS="$PREV_CXXFLAGS" 62613 LIBS="$PREV_LIBS" 62614 CXX="$PREV_CXX" 62615 ac_ext=cpp 62616 ac_cpp='$CXXCPP $CPPFLAGS' 62617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 62620 62621 62622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 62623 $as_echo_n "checking if we should bundle freetype... " >&6; } 62624 if test "x$BUNDLE_FREETYPE" = xyes; then 62625 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 62626 fi 62627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 62628 $as_echo "$BUNDLE_FREETYPE" >&6; } 62629 62630 fi # end freetype needed 62631 62632 62633 62634 62635 62636 62637 62638 # Check whether --with-alsa was given. 62639 if test "${with_alsa+set}" = set; then : 62640 withval=$with_alsa; 62641 fi 62642 62643 62644 # Check whether --with-alsa-include was given. 62645 if test "${with_alsa_include+set}" = set; then : 62646 withval=$with_alsa_include; 62647 fi 62648 62649 62650 # Check whether --with-alsa-lib was given. 62651 if test "${with_alsa_lib+set}" = set; then : 62652 withval=$with_alsa_lib; 62653 fi 62654 62655 62656 if test "x$NEEDS_LIB_ALSA" = xfalse; then 62657 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 62658 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 62659 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 62660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 62661 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 62662 fi 62663 ALSA_CFLAGS= 62664 ALSA_LIBS= 62665 else 62666 ALSA_FOUND=no 62667 62668 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 62669 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 62670 fi 62671 62672 if test "x${with_alsa}" != x; then 62673 ALSA_LIBS="-L${with_alsa}/lib -lasound" 62674 ALSA_CFLAGS="-I${with_alsa}/include" 62675 ALSA_FOUND=yes 62676 fi 62677 if test "x${with_alsa_include}" != x; then 62678 ALSA_CFLAGS="-I${with_alsa_include}" 62679 ALSA_FOUND=yes 62680 fi 62681 if test "x${with_alsa_lib}" != x; then 62682 ALSA_LIBS="-L${with_alsa_lib} -lasound" 62683 ALSA_FOUND=yes 62684 fi 62685 # Do not try pkg-config if we have a sysroot set. 62686 if test "x$SYSROOT" = x; then 62687 if test "x$ALSA_FOUND" = xno; then 62688 62689 pkg_failed=no 62690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 62691 $as_echo_n "checking for ALSA... " >&6; } 62692 62693 if test -n "$ALSA_CFLAGS"; then 62694 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 62695 elif test -n "$PKG_CONFIG"; then 62696 if test -n "$PKG_CONFIG" && \ 62697 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 62698 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 62699 ac_status=$? 62700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62701 test $ac_status = 0; }; then 62702 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 62703 else 62704 pkg_failed=yes 62705 fi 62706 else 62707 pkg_failed=untried 62708 fi 62709 if test -n "$ALSA_LIBS"; then 62710 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 62711 elif test -n "$PKG_CONFIG"; then 62712 if test -n "$PKG_CONFIG" && \ 62713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 62714 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 62715 ac_status=$? 62716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62717 test $ac_status = 0; }; then 62718 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 62719 else 62720 pkg_failed=yes 62721 fi 62722 else 62723 pkg_failed=untried 62724 fi 62725 62726 62727 62728 if test $pkg_failed = yes; then 62729 62730 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 62731 _pkg_short_errors_supported=yes 62732 else 62733 _pkg_short_errors_supported=no 62734 fi 62735 if test $_pkg_short_errors_supported = yes; then 62736 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 62737 else 62738 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 62739 fi 62740 # Put the nasty error message in config.log where it belongs 62741 echo "$ALSA_PKG_ERRORS" >&5 62742 62743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62744 $as_echo "no" >&6; } 62745 ALSA_FOUND=no 62746 elif test $pkg_failed = untried; then 62747 ALSA_FOUND=no 62748 else 62749 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 62750 ALSA_LIBS=$pkg_cv_ALSA_LIBS 62751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62752 $as_echo "yes" >&6; } 62753 ALSA_FOUND=yes 62754 fi 62755 fi 62756 fi 62757 if test "x$ALSA_FOUND" = xno; then 62758 for ac_header in alsa/asoundlib.h 62759 do : 62760 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 62761 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 62762 cat >>confdefs.h <<_ACEOF 62763 #define HAVE_ALSA_ASOUNDLIB_H 1 62764 _ACEOF 62765 62766 ALSA_FOUND=yes 62767 ALSA_CFLAGS=-Iignoreme 62768 ALSA_LIBS=-lasound 62769 DEFAULT_ALSA=yes 62770 62771 else 62772 ALSA_FOUND=no 62773 62774 fi 62775 62776 done 62777 62778 fi 62779 if test "x$ALSA_FOUND" = xno; then 62780 62781 # Print a helpful message on how to acquire the necessary build dependency. 62782 # alsa is the help tag: freetype, cups, alsa etc 62783 MISSING_DEPENDENCY=alsa 62784 62785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62786 cygwin_help $MISSING_DEPENDENCY 62787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62788 msys_help $MISSING_DEPENDENCY 62789 else 62790 PKGHANDLER_COMMAND= 62791 62792 case $PKGHANDLER in 62793 apt-get) 62794 apt_help $MISSING_DEPENDENCY ;; 62795 yum) 62796 yum_help $MISSING_DEPENDENCY ;; 62797 port) 62798 port_help $MISSING_DEPENDENCY ;; 62799 pkgutil) 62800 pkgutil_help $MISSING_DEPENDENCY ;; 62801 pkgadd) 62802 pkgadd_help $MISSING_DEPENDENCY ;; 62803 esac 62804 62805 if test "x$PKGHANDLER_COMMAND" != x; then 62806 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62807 fi 62808 fi 62809 62810 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 62811 fi 62812 fi 62813 62814 62815 62816 62817 62818 62819 # Check whether --with-libffi was given. 62820 if test "${with_libffi+set}" = set; then : 62821 withval=$with_libffi; 62822 fi 62823 62824 62825 # Check whether --with-libffi-include was given. 62826 if test "${with_libffi_include+set}" = set; then : 62827 withval=$with_libffi_include; 62828 fi 62829 62830 62831 # Check whether --with-libffi-lib was given. 62832 if test "${with_libffi_lib+set}" = set; then : 62833 withval=$with_libffi_lib; 62834 fi 62835 62836 62837 if test "x$NEEDS_LIB_FFI" = xfalse; then 62838 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 62839 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 62840 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 62841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 62842 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 62843 fi 62844 LIBFFI_CFLAGS= 62845 LIBFFI_LIBS= 62846 else 62847 LIBFFI_FOUND=no 62848 62849 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 62850 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 62851 fi 62852 62853 if test "x${with_libffi}" != x; then 62854 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 62855 LIBFFI_CFLAGS="-I${with_libffi}/include" 62856 LIBFFI_FOUND=yes 62857 fi 62858 if test "x${with_libffi_include}" != x; then 62859 LIBFFI_CFLAGS="-I${with_libffi_include}" 62860 LIBFFI_FOUND=yes 62861 fi 62862 if test "x${with_libffi_lib}" != x; then 62863 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 62864 LIBFFI_FOUND=yes 62865 fi 62866 # Do not try pkg-config if we have a sysroot set. 62867 if test "x$SYSROOT" = x; then 62868 if test "x$LIBFFI_FOUND" = xno; then 62869 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 62870 62871 pkg_failed=no 62872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 62873 $as_echo_n "checking for LIBFFI... " >&6; } 62874 62875 if test -n "$LIBFFI_CFLAGS"; then 62876 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 62877 elif test -n "$PKG_CONFIG"; then 62878 if test -n "$PKG_CONFIG" && \ 62879 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 62880 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 62881 ac_status=$? 62882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62883 test $ac_status = 0; }; then 62884 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 62885 else 62886 pkg_failed=yes 62887 fi 62888 else 62889 pkg_failed=untried 62890 fi 62891 if test -n "$LIBFFI_LIBS"; then 62892 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 62893 elif test -n "$PKG_CONFIG"; then 62894 if test -n "$PKG_CONFIG" && \ 62895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 62896 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 62897 ac_status=$? 62898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62899 test $ac_status = 0; }; then 62900 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 62901 else 62902 pkg_failed=yes 62903 fi 62904 else 62905 pkg_failed=untried 62906 fi 62907 62908 62909 62910 if test $pkg_failed = yes; then 62911 62912 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 62913 _pkg_short_errors_supported=yes 62914 else 62915 _pkg_short_errors_supported=no 62916 fi 62917 if test $_pkg_short_errors_supported = yes; then 62918 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 62919 else 62920 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 62921 fi 62922 # Put the nasty error message in config.log where it belongs 62923 echo "$LIBFFI_PKG_ERRORS" >&5 62924 62925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62926 $as_echo "no" >&6; } 62927 LIBFFI_FOUND=no 62928 elif test $pkg_failed = untried; then 62929 LIBFFI_FOUND=no 62930 else 62931 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 62932 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 62933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62934 $as_echo "yes" >&6; } 62935 LIBFFI_FOUND=yes 62936 fi 62937 fi 62938 fi 62939 if test "x$LIBFFI_FOUND" = xno; then 62940 for ac_header in ffi.h 62941 do : 62942 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 62943 if test "x$ac_cv_header_ffi_h" = xyes; then : 62944 cat >>confdefs.h <<_ACEOF 62945 #define HAVE_FFI_H 1 62946 _ACEOF 62947 62948 LIBFFI_FOUND=yes 62949 LIBFFI_CFLAGS= 62950 LIBFFI_LIBS=-lffi 62951 62952 else 62953 LIBFFI_FOUND=no 62954 62955 fi 62956 62957 done 62958 62959 fi 62960 if test "x$LIBFFI_FOUND" = xno; then 62961 62962 # Print a helpful message on how to acquire the necessary build dependency. 62963 # ffi is the help tag: freetype, cups, alsa etc 62964 MISSING_DEPENDENCY=ffi 62965 62966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62967 cygwin_help $MISSING_DEPENDENCY 62968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62969 msys_help $MISSING_DEPENDENCY 62970 else 62971 PKGHANDLER_COMMAND= 62972 62973 case $PKGHANDLER in 62974 apt-get) 62975 apt_help $MISSING_DEPENDENCY ;; 62976 yum) 62977 yum_help $MISSING_DEPENDENCY ;; 62978 port) 62979 port_help $MISSING_DEPENDENCY ;; 62980 pkgutil) 62981 pkgutil_help $MISSING_DEPENDENCY ;; 62982 pkgadd) 62983 pkgadd_help $MISSING_DEPENDENCY ;; 62984 esac 62985 62986 if test "x$PKGHANDLER_COMMAND" != x; then 62987 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62988 fi 62989 fi 62990 62991 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 62992 fi 62993 62994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 62995 $as_echo_n "checking if libffi works... " >&6; } 62996 ac_ext=c 62997 ac_cpp='$CPP $CPPFLAGS' 62998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63000 ac_compiler_gnu=$ac_cv_c_compiler_gnu 63001 63002 OLD_CFLAGS="$CFLAGS" 63003 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 63004 OLD_LIBS="$LIBS" 63005 LIBS="$LIBS $LIBFFI_LIBS" 63006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63007 /* end confdefs.h. */ 63008 #include <ffi.h> 63009 int 63010 main () 63011 { 63012 63013 ffi_call(NULL, NULL, NULL, NULL); 63014 return 0; 63015 63016 ; 63017 return 0; 63018 } 63019 _ACEOF 63020 if ac_fn_c_try_link "$LINENO"; then : 63021 LIBFFI_WORKS=yes 63022 else 63023 LIBFFI_WORKS=no 63024 63025 fi 63026 rm -f core conftest.err conftest.$ac_objext \ 63027 conftest$ac_exeext conftest.$ac_ext 63028 CFLAGS="$OLD_CFLAGS" 63029 LIBS="$OLD_LIBS" 63030 ac_ext=cpp 63031 ac_cpp='$CXXCPP $CPPFLAGS' 63032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 63033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 63034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 63035 63036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 63037 $as_echo "$LIBFFI_WORKS" >&6; } 63038 63039 if test "x$LIBFFI_WORKS" = xno; then 63040 63041 # Print a helpful message on how to acquire the necessary build dependency. 63042 # ffi is the help tag: freetype, cups, alsa etc 63043 MISSING_DEPENDENCY=ffi 63044 63045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63046 cygwin_help $MISSING_DEPENDENCY 63047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63048 msys_help $MISSING_DEPENDENCY 63049 else 63050 PKGHANDLER_COMMAND= 63051 63052 case $PKGHANDLER in 63053 apt-get) 63054 apt_help $MISSING_DEPENDENCY ;; 63055 yum) 63056 yum_help $MISSING_DEPENDENCY ;; 63057 port) 63058 port_help $MISSING_DEPENDENCY ;; 63059 pkgutil) 63060 pkgutil_help $MISSING_DEPENDENCY ;; 63061 pkgadd) 63062 pkgadd_help $MISSING_DEPENDENCY ;; 63063 esac 63064 63065 if test "x$PKGHANDLER_COMMAND" != x; then 63066 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63067 fi 63068 fi 63069 63070 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 63071 fi 63072 fi 63073 63074 63075 63076 63077 63078 if [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 63079 # Extract the first word of "llvm-config", so it can be a program name with args. 63080 set dummy llvm-config; ac_word=$2 63081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 63082 $as_echo_n "checking for $ac_word... " >&6; } 63083 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 63084 $as_echo_n "(cached) " >&6 63085 else 63086 if test -n "$LLVM_CONFIG"; then 63087 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 63088 else 63089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 63090 for as_dir in $PATH 63091 do 63092 IFS=$as_save_IFS 63093 test -z "$as_dir" && as_dir=. 63094 for ac_exec_ext in '' $ac_executable_extensions; do 63095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 63096 ac_cv_prog_LLVM_CONFIG="llvm-config" 63097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 63098 break 2 63099 fi 63100 done 63101 done 63102 IFS=$as_save_IFS 63103 63104 fi 63105 fi 63106 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 63107 if test -n "$LLVM_CONFIG"; then 63108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 63109 $as_echo "$LLVM_CONFIG" >&6; } 63110 else 63111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63112 $as_echo "no" >&6; } 63113 fi 63114 63115 63116 63117 if test "x$LLVM_CONFIG" != xllvm-config; then 63118 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 63119 fi 63120 63121 llvm_components="jit mcjit engine nativecodegen native" 63122 unset LLVM_CFLAGS 63123 for flag in $("$LLVM_CONFIG" --cxxflags); do 63124 if echo "${flag}" | grep -q '^-[ID]'; then 63125 if test "${flag}" != "-D_DEBUG" ; then 63126 if test "${LLVM_CFLAGS}" != "" ; then 63127 LLVM_CFLAGS="${LLVM_CFLAGS} " 63128 fi 63129 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 63130 fi 63131 fi 63132 done 63133 llvm_version=$("${LLVM_CONFIG}" --version | $SED 's/\.//; s/svn.*//') 63134 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 63135 63136 unset LLVM_LDFLAGS 63137 for flag in $("${LLVM_CONFIG}" --ldflags); do 63138 if echo "${flag}" | grep -q '^-L'; then 63139 if test "${LLVM_LDFLAGS}" != ""; then 63140 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 63141 fi 63142 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 63143 fi 63144 done 63145 63146 unset LLVM_LIBS 63147 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 63148 if echo "${flag}" | grep -q '^-l'; then 63149 if test "${LLVM_LIBS}" != ""; then 63150 LLVM_LIBS="${LLVM_LIBS} " 63151 fi 63152 LLVM_LIBS="${LLVM_LIBS}${flag}" 63153 fi 63154 done 63155 63156 # Due to https://llvm.org/bugs/show_bug.cgi?id=16902, llvm does not 63157 # always properly detect -ltinfo 63158 LLVM_LIBS="${LLVM_LIBS} -ltinfo" 63159 63160 63161 63162 63163 fi 63164 63165 63166 63167 # Check whether --with-libjpeg was given. 63168 if test "${with_libjpeg+set}" = set; then : 63169 withval=$with_libjpeg; 63170 fi 63171 63172 63173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 63174 $as_echo_n "checking for which libjpeg to use... " >&6; } 63175 # default is bundled 63176 DEFAULT_LIBJPEG=bundled 63177 # if user didn't specify, use DEFAULT_LIBJPEG 63178 if test "x${with_libjpeg}" = "x"; then 63179 with_libjpeg=${DEFAULT_LIBJPEG} 63180 fi 63181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 63182 $as_echo "${with_libjpeg}" >&6; } 63183 63184 if test "x${with_libjpeg}" = "xbundled"; then 63185 USE_EXTERNAL_LIBJPEG=false 63186 elif test "x${with_libjpeg}" = "xsystem"; then 63187 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 63188 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 63189 63190 else 63191 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 63192 fi 63193 63194 63195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 63196 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 63197 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 63198 $as_echo_n "(cached) " >&6 63199 else 63200 ac_check_lib_save_LIBS=$LIBS 63201 LIBS="-ljpeg $LIBS" 63202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63203 /* end confdefs.h. */ 63204 63205 /* Override any GCC internal prototype to avoid an error. 63206 Use char because int might match the return type of a GCC 63207 builtin and then its argument prototype would still apply. */ 63208 #ifdef __cplusplus 63209 extern "C" 63210 #endif 63211 char jpeg_CreateDecompress (); 63212 int 63213 main () 63214 { 63215 return jpeg_CreateDecompress (); 63216 ; 63217 return 0; 63218 } 63219 _ACEOF 63220 if ac_fn_cxx_try_link "$LINENO"; then : 63221 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 63222 else 63223 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 63224 fi 63225 rm -f core conftest.err conftest.$ac_objext \ 63226 conftest$ac_exeext conftest.$ac_ext 63227 LIBS=$ac_check_lib_save_LIBS 63228 fi 63229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 63230 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 63231 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 63232 cat >>confdefs.h <<_ACEOF 63233 #define HAVE_LIBJPEG 1 63234 _ACEOF 63235 63236 LIBS="-ljpeg $LIBS" 63237 63238 else 63239 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 63240 fi 63241 63242 63243 USE_EXTERNAL_LIBJPEG=true 63244 else 63245 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 63246 fi 63247 63248 63249 63250 63251 63252 # Check whether --with-giflib was given. 63253 if test "${with_giflib+set}" = set; then : 63254 withval=$with_giflib; 63255 fi 63256 63257 63258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 63259 $as_echo_n "checking for which giflib to use... " >&6; } 63260 # default is bundled 63261 DEFAULT_GIFLIB=bundled 63262 # if user didn't specify, use DEFAULT_GIFLIB 63263 if test "x${with_giflib}" = "x"; then 63264 with_giflib=${DEFAULT_GIFLIB} 63265 fi 63266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 63267 $as_echo "${with_giflib}" >&6; } 63268 63269 if test "x${with_giflib}" = "xbundled"; then 63270 USE_EXTERNAL_LIBGIF=false 63271 elif test "x${with_giflib}" = "xsystem"; then 63272 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 63273 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 63274 63275 else 63276 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 63277 fi 63278 63279 63280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 63281 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 63282 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 63283 $as_echo_n "(cached) " >&6 63284 else 63285 ac_check_lib_save_LIBS=$LIBS 63286 LIBS="-lgif $LIBS" 63287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63288 /* end confdefs.h. */ 63289 63290 /* Override any GCC internal prototype to avoid an error. 63291 Use char because int might match the return type of a GCC 63292 builtin and then its argument prototype would still apply. */ 63293 #ifdef __cplusplus 63294 extern "C" 63295 #endif 63296 char DGifGetCode (); 63297 int 63298 main () 63299 { 63300 return DGifGetCode (); 63301 ; 63302 return 0; 63303 } 63304 _ACEOF 63305 if ac_fn_cxx_try_link "$LINENO"; then : 63306 ac_cv_lib_gif_DGifGetCode=yes 63307 else 63308 ac_cv_lib_gif_DGifGetCode=no 63309 fi 63310 rm -f core conftest.err conftest.$ac_objext \ 63311 conftest$ac_exeext conftest.$ac_ext 63312 LIBS=$ac_check_lib_save_LIBS 63313 fi 63314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 63315 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 63316 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 63317 cat >>confdefs.h <<_ACEOF 63318 #define HAVE_LIBGIF 1 63319 _ACEOF 63320 63321 LIBS="-lgif $LIBS" 63322 63323 else 63324 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 63325 fi 63326 63327 63328 USE_EXTERNAL_LIBGIF=true 63329 else 63330 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 63331 fi 63332 63333 63334 63335 63336 63337 # Check whether --with-libpng was given. 63338 if test "${with_libpng+set}" = set; then : 63339 withval=$with_libpng; 63340 fi 63341 63342 63343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 63344 $as_echo_n "checking for which libpng to use... " >&6; } 63345 63346 # default is bundled 63347 DEFAULT_LIBPNG=bundled 63348 # if user didn't specify, use DEFAULT_LIBPNG 63349 if test "x${with_libpng}" = "x"; then 63350 with_libpng=${DEFAULT_LIBPNG} 63351 fi 63352 63353 if test "x${with_libpng}" = "xbundled"; then 63354 USE_EXTERNAL_LIBPNG=false 63355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63356 $as_echo "bundled" >&6; } 63357 elif test "x${with_libpng}" = "xsystem"; then 63358 63359 pkg_failed=no 63360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 63361 $as_echo_n "checking for PNG... " >&6; } 63362 63363 if test -n "$PNG_CFLAGS"; then 63364 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 63365 elif test -n "$PKG_CONFIG"; then 63366 if test -n "$PKG_CONFIG" && \ 63367 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 63368 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 63369 ac_status=$? 63370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63371 test $ac_status = 0; }; then 63372 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 63373 else 63374 pkg_failed=yes 63375 fi 63376 else 63377 pkg_failed=untried 63378 fi 63379 if test -n "$PNG_LIBS"; then 63380 pkg_cv_PNG_LIBS="$PNG_LIBS" 63381 elif test -n "$PKG_CONFIG"; then 63382 if test -n "$PKG_CONFIG" && \ 63383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 63384 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 63385 ac_status=$? 63386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63387 test $ac_status = 0; }; then 63388 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 63389 else 63390 pkg_failed=yes 63391 fi 63392 else 63393 pkg_failed=untried 63394 fi 63395 63396 63397 63398 if test $pkg_failed = yes; then 63399 63400 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63401 _pkg_short_errors_supported=yes 63402 else 63403 _pkg_short_errors_supported=no 63404 fi 63405 if test $_pkg_short_errors_supported = yes; then 63406 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 63407 else 63408 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 63409 fi 63410 # Put the nasty error message in config.log where it belongs 63411 echo "$PNG_PKG_ERRORS" >&5 63412 63413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63414 $as_echo "no" >&6; } 63415 LIBPNG_FOUND=no 63416 elif test $pkg_failed = untried; then 63417 LIBPNG_FOUND=no 63418 else 63419 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 63420 PNG_LIBS=$pkg_cv_PNG_LIBS 63421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63422 $as_echo "yes" >&6; } 63423 LIBPNG_FOUND=yes 63424 fi 63425 if test "x${LIBPNG_FOUND}" = "xyes"; then 63426 USE_EXTERNAL_LIBPNG=true 63427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63428 $as_echo "system" >&6; } 63429 else 63430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 63431 $as_echo "system not found" >&6; } 63432 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 63433 fi 63434 else 63435 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 63436 fi 63437 63438 63439 63440 63441 63442 # Check whether --with-zlib was given. 63443 if test "${with_zlib+set}" = set; then : 63444 withval=$with_zlib; 63445 fi 63446 63447 63448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 63449 $as_echo_n "checking for compress in -lz... " >&6; } 63450 if ${ac_cv_lib_z_compress+:} false; then : 63451 $as_echo_n "(cached) " >&6 63452 else 63453 ac_check_lib_save_LIBS=$LIBS 63454 LIBS="-lz $LIBS" 63455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63456 /* end confdefs.h. */ 63457 63458 /* Override any GCC internal prototype to avoid an error. 63459 Use char because int might match the return type of a GCC 63460 builtin and then its argument prototype would still apply. */ 63461 #ifdef __cplusplus 63462 extern "C" 63463 #endif 63464 char compress (); 63465 int 63466 main () 63467 { 63468 return compress (); 63469 ; 63470 return 0; 63471 } 63472 _ACEOF 63473 if ac_fn_cxx_try_link "$LINENO"; then : 63474 ac_cv_lib_z_compress=yes 63475 else 63476 ac_cv_lib_z_compress=no 63477 fi 63478 rm -f core conftest.err conftest.$ac_objext \ 63479 conftest$ac_exeext conftest.$ac_ext 63480 LIBS=$ac_check_lib_save_LIBS 63481 fi 63482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 63483 $as_echo "$ac_cv_lib_z_compress" >&6; } 63484 if test "x$ac_cv_lib_z_compress" = xyes; then : 63485 ZLIB_FOUND=yes 63486 else 63487 ZLIB_FOUND=no 63488 fi 63489 63490 63491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 63492 $as_echo_n "checking for which zlib to use... " >&6; } 63493 63494 DEFAULT_ZLIB=system 63495 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63496 # On windows default is bundled...on others default is system 63497 DEFAULT_ZLIB=bundled 63498 fi 63499 63500 if test "x${ZLIB_FOUND}" != "xyes"; then 63501 # If we don't find any system...set default to bundled 63502 DEFAULT_ZLIB=bundled 63503 fi 63504 63505 # If user didn't specify, use DEFAULT_ZLIB 63506 if test "x${with_zlib}" = "x"; then 63507 with_zlib=${DEFAULT_ZLIB} 63508 fi 63509 63510 if test "x${with_zlib}" = "xbundled"; then 63511 USE_EXTERNAL_LIBZ=false 63512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63513 $as_echo "bundled" >&6; } 63514 elif test "x${with_zlib}" = "xsystem"; then 63515 if test "x${ZLIB_FOUND}" = "xyes"; then 63516 USE_EXTERNAL_LIBZ=true 63517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63518 $as_echo "system" >&6; } 63519 else 63520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 63521 $as_echo "system not found" >&6; } 63522 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 63523 fi 63524 else 63525 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 63526 fi 63527 63528 63529 63530 63531 63532 # Check whether --with-lcms was given. 63533 if test "${with_lcms+set}" = set; then : 63534 withval=$with_lcms; 63535 fi 63536 63537 63538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 63539 $as_echo_n "checking for which lcms to use... " >&6; } 63540 63541 DEFAULT_LCMS=bundled 63542 # If user didn't specify, use DEFAULT_LCMS 63543 if test "x${with_lcms}" = "x"; then 63544 with_lcms=${DEFAULT_LCMS} 63545 fi 63546 63547 if test "x${with_lcms}" = "xbundled"; then 63548 USE_EXTERNAL_LCMS=false 63549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63550 $as_echo "bundled" >&6; } 63551 elif test "x${with_lcms}" = "xsystem"; then 63552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63553 $as_echo "system" >&6; } 63554 63555 pkg_failed=no 63556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 63557 $as_echo_n "checking for LCMS... " >&6; } 63558 63559 if test -n "$LCMS_CFLAGS"; then 63560 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 63561 elif test -n "$PKG_CONFIG"; then 63562 if test -n "$PKG_CONFIG" && \ 63563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 63564 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 63565 ac_status=$? 63566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63567 test $ac_status = 0; }; then 63568 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 63569 else 63570 pkg_failed=yes 63571 fi 63572 else 63573 pkg_failed=untried 63574 fi 63575 if test -n "$LCMS_LIBS"; then 63576 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 63577 elif test -n "$PKG_CONFIG"; then 63578 if test -n "$PKG_CONFIG" && \ 63579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 63580 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 63581 ac_status=$? 63582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63583 test $ac_status = 0; }; then 63584 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 63585 else 63586 pkg_failed=yes 63587 fi 63588 else 63589 pkg_failed=untried 63590 fi 63591 63592 63593 63594 if test $pkg_failed = yes; then 63595 63596 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63597 _pkg_short_errors_supported=yes 63598 else 63599 _pkg_short_errors_supported=no 63600 fi 63601 if test $_pkg_short_errors_supported = yes; then 63602 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 63603 else 63604 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 63605 fi 63606 # Put the nasty error message in config.log where it belongs 63607 echo "$LCMS_PKG_ERRORS" >&5 63608 63609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63610 $as_echo "no" >&6; } 63611 LCMS_FOUND=no 63612 elif test $pkg_failed = untried; then 63613 LCMS_FOUND=no 63614 else 63615 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 63616 LCMS_LIBS=$pkg_cv_LCMS_LIBS 63617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63618 $as_echo "yes" >&6; } 63619 LCMS_FOUND=yes 63620 fi 63621 if test "x${LCMS_FOUND}" = "xyes"; then 63622 USE_EXTERNAL_LCMS=true 63623 else 63624 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 63625 fi 63626 else 63627 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 63628 fi 63629 63630 63631 63632 63633 63634 63635 63636 63637 63638 63639 63640 # Setup libm (the maths library) 63641 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 63642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 63643 $as_echo_n "checking for cos in -lm... " >&6; } 63644 if ${ac_cv_lib_m_cos+:} false; then : 63645 $as_echo_n "(cached) " >&6 63646 else 63647 ac_check_lib_save_LIBS=$LIBS 63648 LIBS="-lm $LIBS" 63649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63650 /* end confdefs.h. */ 63651 63652 /* Override any GCC internal prototype to avoid an error. 63653 Use char because int might match the return type of a GCC 63654 builtin and then its argument prototype would still apply. */ 63655 #ifdef __cplusplus 63656 extern "C" 63657 #endif 63658 char cos (); 63659 int 63660 main () 63661 { 63662 return cos (); 63663 ; 63664 return 0; 63665 } 63666 _ACEOF 63667 if ac_fn_cxx_try_link "$LINENO"; then : 63668 ac_cv_lib_m_cos=yes 63669 else 63670 ac_cv_lib_m_cos=no 63671 fi 63672 rm -f core conftest.err conftest.$ac_objext \ 63673 conftest$ac_exeext conftest.$ac_ext 63674 LIBS=$ac_check_lib_save_LIBS 63675 fi 63676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 63677 $as_echo "$ac_cv_lib_m_cos" >&6; } 63678 if test "x$ac_cv_lib_m_cos" = xyes; then : 63679 cat >>confdefs.h <<_ACEOF 63680 #define HAVE_LIBM 1 63681 _ACEOF 63682 63683 LIBS="-lm $LIBS" 63684 63685 else 63686 63687 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 63688 $as_echo "$as_me: Maths library was not found" >&6;} 63689 63690 fi 63691 63692 LIBM="-lm" 63693 else 63694 LIBM="" 63695 fi 63696 63697 63698 # Setup libdl (for dynamic library loading) 63699 save_LIBS="$LIBS" 63700 LIBS="" 63701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 63702 $as_echo_n "checking for dlopen in -ldl... " >&6; } 63703 if ${ac_cv_lib_dl_dlopen+:} false; then : 63704 $as_echo_n "(cached) " >&6 63705 else 63706 ac_check_lib_save_LIBS=$LIBS 63707 LIBS="-ldl $LIBS" 63708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63709 /* end confdefs.h. */ 63710 63711 /* Override any GCC internal prototype to avoid an error. 63712 Use char because int might match the return type of a GCC 63713 builtin and then its argument prototype would still apply. */ 63714 #ifdef __cplusplus 63715 extern "C" 63716 #endif 63717 char dlopen (); 63718 int 63719 main () 63720 { 63721 return dlopen (); 63722 ; 63723 return 0; 63724 } 63725 _ACEOF 63726 if ac_fn_cxx_try_link "$LINENO"; then : 63727 ac_cv_lib_dl_dlopen=yes 63728 else 63729 ac_cv_lib_dl_dlopen=no 63730 fi 63731 rm -f core conftest.err conftest.$ac_objext \ 63732 conftest$ac_exeext conftest.$ac_ext 63733 LIBS=$ac_check_lib_save_LIBS 63734 fi 63735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 63736 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 63737 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 63738 cat >>confdefs.h <<_ACEOF 63739 #define HAVE_LIBDL 1 63740 _ACEOF 63741 63742 LIBS="-ldl $LIBS" 63743 63744 fi 63745 63746 LIBDL="$LIBS" 63747 63748 LIBS="$save_LIBS" 63749 63750 # Deprecated libraries, keep the flags for backwards compatibility 63751 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 63752 63753 63754 # Check whether --with-dxsdk was given. 63755 if test "${with_dxsdk+set}" = set; then : 63756 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 63757 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 63758 fi 63759 63760 63761 63762 63763 # Check whether --with-dxsdk-lib was given. 63764 if test "${with_dxsdk_lib+set}" = set; then : 63765 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 63766 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 63767 fi 63768 63769 63770 63771 63772 # Check whether --with-dxsdk-include was given. 63773 if test "${with_dxsdk_include+set}" = set; then : 63774 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 63775 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 63776 fi 63777 63778 63779 fi 63780 63781 # Control if libzip can use mmap. Available for purposes of overriding. 63782 LIBZIP_CAN_USE_MMAP=true 63783 63784 63785 63786 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 63787 # Find the root of the Solaris Studio installation from the compiler path 63788 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 63789 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 63790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 63791 $as_echo_n "checking for libstlport.so.1... " >&6; } 63792 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 63793 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 63794 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 63795 fi 63796 if test -f "$STLPORT_LIB"; then 63797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 63798 $as_echo "yes, $STLPORT_LIB" >&6; } 63799 63800 # Only process if variable expands to non-empty 63801 63802 if test "x$STLPORT_LIB" != x; then 63803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63804 63805 # Input might be given as Windows format, start by converting to 63806 # unix format. 63807 path="$STLPORT_LIB" 63808 new_path=`$CYGPATH -u "$path"` 63809 63810 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63811 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63812 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63813 # "foo.exe" is OK but "foo" is an error. 63814 # 63815 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63816 # It is also a way to make sure we got the proper file name for the real test later on. 63817 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63818 if test "x$test_shortpath" = x; then 63819 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 63820 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 63821 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 63822 fi 63823 63824 # Call helper function which possibly converts this using DOS-style short mode. 63825 # If so, the updated path is stored in $new_path. 63826 63827 input_path="$new_path" 63828 # Check if we need to convert this using DOS-style short mode. If the path 63829 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63830 # take no chances and rewrite it. 63831 # Note: m4 eats our [], so we need to use [ and ] instead. 63832 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63833 if test "x$has_forbidden_chars" != x; then 63834 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63835 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63836 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63837 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63838 # Going to short mode and back again did indeed matter. Since short mode is 63839 # case insensitive, let's make it lowercase to improve readability. 63840 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63841 # Now convert it back to Unix-style (cygpath) 63842 input_path=`$CYGPATH -u "$shortmode_path"` 63843 new_path="$input_path" 63844 fi 63845 fi 63846 63847 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63848 if test "x$test_cygdrive_prefix" = x; then 63849 # As a simple fix, exclude /usr/bin since it's not a real path. 63850 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63851 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63852 # a path prefixed by /cygdrive for fixpath to work. 63853 new_path="$CYGWIN_ROOT_PATH$input_path" 63854 fi 63855 fi 63856 63857 63858 if test "x$path" != "x$new_path"; then 63859 STLPORT_LIB="$new_path" 63860 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 63861 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 63862 fi 63863 63864 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63865 63866 path="$STLPORT_LIB" 63867 has_colon=`$ECHO $path | $GREP ^.:` 63868 new_path="$path" 63869 if test "x$has_colon" = x; then 63870 # Not in mixed or Windows style, start by that. 63871 new_path=`cmd //c echo $path` 63872 fi 63873 63874 63875 input_path="$new_path" 63876 # Check if we need to convert this using DOS-style short mode. If the path 63877 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63878 # take no chances and rewrite it. 63879 # Note: m4 eats our [], so we need to use [ and ] instead. 63880 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63881 if test "x$has_forbidden_chars" != x; then 63882 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63883 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63884 fi 63885 63886 63887 windows_path="$new_path" 63888 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63889 unix_path=`$CYGPATH -u "$windows_path"` 63890 new_path="$unix_path" 63891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63892 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63893 new_path="$unix_path" 63894 fi 63895 63896 if test "x$path" != "x$new_path"; then 63897 STLPORT_LIB="$new_path" 63898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 63899 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 63900 fi 63901 63902 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63903 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63904 63905 else 63906 # We're on a unix platform. Hooray! :) 63907 path="$STLPORT_LIB" 63908 has_space=`$ECHO "$path" | $GREP " "` 63909 if test "x$has_space" != x; then 63910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 63911 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 63912 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63913 fi 63914 63915 # Use eval to expand a potential ~ 63916 eval path="$path" 63917 if test ! -f "$path" && test ! -d "$path"; then 63918 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 63919 fi 63920 63921 if test -d "$path"; then 63922 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 63923 else 63924 dir="`$DIRNAME "$path"`" 63925 base="`$BASENAME "$path"`" 63926 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 63927 fi 63928 fi 63929 fi 63930 63931 else 63932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 63933 $as_echo "no, not found at $STLPORT_LIB" >&6; } 63934 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 63935 fi 63936 63937 fi 63938 63939 63940 63941 # Check whether --with-libelf was given. 63942 if test "${with_libelf+set}" = set; then : 63943 withval=$with_libelf; 63944 fi 63945 63946 63947 # Check whether --with-libelf-include was given. 63948 if test "${with_libelf_include+set}" = set; then : 63949 withval=$with_libelf_include; 63950 fi 63951 63952 63953 # Check whether --with-libelf-lib was given. 63954 if test "${with_libelf_lib+set}" = set; then : 63955 withval=$with_libelf_lib; 63956 fi 63957 63958 63959 if test "x$NEEDS_LIB_JELFSHIM" = xfalse; then 63960 if (test "x${with_libelf}" != x && test "x${with_libelf}" != xno) || \ 63961 (test "x${with_libelf_include}" != x && test "x${with_libelf_include}" != xno) || \ 63962 (test "x${with_libelf_lib}" != x && test "x${with_libelf_lib}" != xno); then 63963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libelf not used, so --with-libelf[-*] is ignored" >&5 63964 $as_echo "$as_me: WARNING: libelf not used, so --with-libelf[-*] is ignored" >&2;} 63965 fi 63966 LIBELF_CFLAGS= 63967 LIBELF_LIBS= 63968 else 63969 LIBELF_FOUND=no 63970 63971 if test "x${with_libelf}" = xno || test "x${with_libelf_include}" = xno || test "x${with_libelf_lib}" = xno; then 63972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libelf" >&5 63973 $as_echo_n "checking for libelf... " >&6; } 63974 as_fn_error $? "Explicitly disabled build with libelf, cannot build AOT. Enable libelf build or disable AOT build: --enable-aot=no." "$LINENO" 5 63975 NEEDS_LIB_JELFSHIM="false" 63976 else 63977 63978 if test "x${with_libelf}" != x; then 63979 ELF_LIBS="-L${with_libelf}/lib -lelf" 63980 ELF_CFLAGS="-I${with_libelf}/include" 63981 LIBELF_FOUND=yes 63982 fi 63983 if test "x${with_libelf_include}" != x; then 63984 ELF_CFLAGS="-I${with_libelf_include}" 63985 LIBELF_FOUND=yes 63986 fi 63987 if test "x${with_libelf_lib}" != x; then 63988 ELF_LIBS="-L${with_libelf_lib} -lelf" 63989 LIBELF_FOUND=yes 63990 fi 63991 # Do not try pkg-config if we have a sysroot set. 63992 if test "x$SYSROOT" = x; then 63993 if test "x$LIBELF_FOUND" = xno; then 63994 # Figure out ELF_CFLAGS and ELF_LIBS 63995 63996 pkg_failed=no 63997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 63998 $as_echo_n "checking for ELF... " >&6; } 63999 64000 if test -n "$ELF_CFLAGS"; then 64001 pkg_cv_ELF_CFLAGS="$ELF_CFLAGS" 64002 elif test -n "$PKG_CONFIG"; then 64003 if test -n "$PKG_CONFIG" && \ 64004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5 64005 ($PKG_CONFIG --exists --print-errors "libelf") 2>&5 64006 ac_status=$? 64007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64008 test $ac_status = 0; }; then 64009 pkg_cv_ELF_CFLAGS=`$PKG_CONFIG --cflags "libelf" 2>/dev/null` 64010 else 64011 pkg_failed=yes 64012 fi 64013 else 64014 pkg_failed=untried 64015 fi 64016 if test -n "$ELF_LIBS"; then 64017 pkg_cv_ELF_LIBS="$ELF_LIBS" 64018 elif test -n "$PKG_CONFIG"; then 64019 if test -n "$PKG_CONFIG" && \ 64020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libelf\""; } >&5 64021 ($PKG_CONFIG --exists --print-errors "libelf") 2>&5 64022 ac_status=$? 64023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 64024 test $ac_status = 0; }; then 64025 pkg_cv_ELF_LIBS=`$PKG_CONFIG --libs "libelf" 2>/dev/null` 64026 else 64027 pkg_failed=yes 64028 fi 64029 else 64030 pkg_failed=untried 64031 fi 64032 64033 64034 64035 if test $pkg_failed = yes; then 64036 64037 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64038 _pkg_short_errors_supported=yes 64039 else 64040 _pkg_short_errors_supported=no 64041 fi 64042 if test $_pkg_short_errors_supported = yes; then 64043 ELF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libelf" 2>&1` 64044 else 64045 ELF_PKG_ERRORS=`$PKG_CONFIG --print-errors "libelf" 2>&1` 64046 fi 64047 # Put the nasty error message in config.log where it belongs 64048 echo "$ELF_PKG_ERRORS" >&5 64049 64050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64051 $as_echo "no" >&6; } 64052 LIBELF_FOUND=no 64053 elif test $pkg_failed = untried; then 64054 LIBELF_FOUND=no 64055 else 64056 ELF_CFLAGS=$pkg_cv_ELF_CFLAGS 64057 ELF_LIBS=$pkg_cv_ELF_LIBS 64058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64059 $as_echo "yes" >&6; } 64060 LIBELF_FOUND=yes 64061 fi 64062 fi 64063 fi 64064 if test "x$LIBELF_FOUND" = xno; then 64065 for ac_header in libelf.h 64066 do : 64067 ac_fn_cxx_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default" 64068 if test "x$ac_cv_header_libelf_h" = xyes; then : 64069 cat >>confdefs.h <<_ACEOF 64070 #define HAVE_LIBELF_H 1 64071 _ACEOF 64072 64073 LIBELF_FOUND=yes 64074 ELF_CFLAGS= 64075 ELF_LIBS=-lelf 64076 64077 else 64078 LIBELF_FOUND=no 64079 64080 fi 64081 64082 done 64083 64084 fi 64085 if test "x$LIBELF_FOUND" = xno; then 64086 64087 # Print a helpful message on how to acquire the necessary build dependency. 64088 # elf is the help tag: freetype, cups, alsa etc 64089 MISSING_DEPENDENCY=elf 64090 64091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64092 cygwin_help $MISSING_DEPENDENCY 64093 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64094 msys_help $MISSING_DEPENDENCY 64095 else 64096 PKGHANDLER_COMMAND= 64097 64098 case $PKGHANDLER in 64099 apt-get) 64100 apt_help $MISSING_DEPENDENCY ;; 64101 yum) 64102 yum_help $MISSING_DEPENDENCY ;; 64103 port) 64104 port_help $MISSING_DEPENDENCY ;; 64105 pkgutil) 64106 pkgutil_help $MISSING_DEPENDENCY ;; 64107 pkgadd) 64108 pkgadd_help $MISSING_DEPENDENCY ;; 64109 esac 64110 64111 if test "x$PKGHANDLER_COMMAND" != x; then 64112 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64113 fi 64114 fi 64115 64116 as_fn_error $? "libelf not found, cannot build AOT. Disable AOT build: --enable-aot=no. $HELP_MSG" "$LINENO" 5 64117 NEEDS_LIB_JELFSHIM="false" 64118 else 64119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libelf works" >&5 64120 $as_echo_n "checking if libelf works... " >&6; } 64121 ac_ext=c 64122 ac_cpp='$CPP $CPPFLAGS' 64123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64125 ac_compiler_gnu=$ac_cv_c_compiler_gnu 64126 64127 OLD_CFLAGS="$CFLAGS" 64128 CFLAGS="$CFLAGS $ELF_CFLAGS" 64129 OLD_LIBS="$LIBS" 64130 LIBS="$LIBS $ELF_LIBS" 64131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 64132 /* end confdefs.h. */ 64133 #include <libelf.h> 64134 int 64135 main () 64136 { 64137 64138 elf_version(0); 64139 return 0; 64140 64141 ; 64142 return 0; 64143 } 64144 _ACEOF 64145 if ac_fn_c_try_link "$LINENO"; then : 64146 LIBELF_WORKS=yes 64147 else 64148 LIBELF_WORKS=no 64149 64150 fi 64151 rm -f core conftest.err conftest.$ac_objext \ 64152 conftest$ac_exeext conftest.$ac_ext 64153 CFLAGS="$OLD_CFLAGS" 64154 LIBS="$OLD_LIBS" 64155 ac_ext=cpp 64156 ac_cpp='$CXXCPP $CPPFLAGS' 64157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 64158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 64159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 64160 64161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBELF_WORKS" >&5 64162 $as_echo "$LIBELF_WORKS" >&6; } 64163 64164 if test "x$LIBELF_WORKS" = xno; then 64165 64166 # Print a helpful message on how to acquire the necessary build dependency. 64167 # elf is the help tag: freetype, cups, alsa etc 64168 MISSING_DEPENDENCY=elf 64169 64170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64171 cygwin_help $MISSING_DEPENDENCY 64172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64173 msys_help $MISSING_DEPENDENCY 64174 else 64175 PKGHANDLER_COMMAND= 64176 64177 case $PKGHANDLER in 64178 apt-get) 64179 apt_help $MISSING_DEPENDENCY ;; 64180 yum) 64181 yum_help $MISSING_DEPENDENCY ;; 64182 port) 64183 port_help $MISSING_DEPENDENCY ;; 64184 pkgutil) 64185 pkgutil_help $MISSING_DEPENDENCY ;; 64186 pkgadd) 64187 pkgadd_help $MISSING_DEPENDENCY ;; 64188 esac 64189 64190 if test "x$PKGHANDLER_COMMAND" != x; then 64191 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64192 fi 64193 fi 64194 64195 as_fn_error $? "Found libelf but could not link and compile with it. Disable AOT build: --enable-aot=no. $HELP_MSG" "$LINENO" 5 64196 fi 64197 fi 64198 fi 64199 fi 64200 64201 64202 64203 64204 64205 64206 64207 64208 64209 64210 64211 64212 64213 64214 64215 64216 64217 64218 64219 ############################################################################### 64220 # 64221 # We need to do some final tweaking, when everything else is done. 64222 # 64223 ############################################################################### 64224 64225 64226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 64227 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 64228 64229 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 64230 ENABLE_INTREE_EC=yes 64231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64232 $as_echo "yes" >&6; } 64233 else 64234 ENABLE_INTREE_EC=no 64235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64236 $as_echo "no" >&6; } 64237 fi 64238 64239 64240 64241 64242 # Check whether --enable-jtreg-failure-handler was given. 64243 if test "${enable_jtreg_failure_handler+set}" = set; then : 64244 enableval=$enable_jtreg_failure_handler; 64245 fi 64246 64247 64248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 64249 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 64250 64251 if test "x$enable_jtreg_failure_handler" = "xyes"; then 64252 if test "x$JT_HOME" = "x"; then 64253 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 64254 else 64255 BUILD_FAILURE_HANDLER=true 64256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64257 $as_echo "yes, forced" >&6; } 64258 fi 64259 elif test "x$enable_jtreg_failure_handler" = "xno"; then 64260 BUILD_FAILURE_HANDLER=false 64261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64262 $as_echo "no, forced" >&6; } 64263 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 64264 || test "x$enable_jtreg_failure_handler" = "x"; then 64265 if test "x$JT_HOME" = "x"; then 64266 BUILD_FAILURE_HANDLER=false 64267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 64268 $as_echo "no, missing jtreg" >&6; } 64269 else 64270 BUILD_FAILURE_HANDLER=true 64271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 64272 $as_echo "yes, jtreg present" >&6; } 64273 fi 64274 else 64275 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 64276 fi 64277 64278 64279 64280 64281 # Check whether --enable-generate-classlist was given. 64282 if test "${enable_generate_classlist+set}" = set; then : 64283 enableval=$enable_generate_classlist; 64284 fi 64285 64286 64287 # Check if it's likely that it's possible to generate the classlist. Depending 64288 # on exact jvm configuration it could be possible anyway. 64289 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ; then 64290 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 64291 else 64292 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 64293 fi 64294 64295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 64296 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 64297 if test "x$enable_generate_classlist" = "xyes"; then 64298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64299 $as_echo "yes, forced" >&6; } 64300 ENABLE_GENERATE_CLASSLIST="true" 64301 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 64302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&5 64303 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS" >&2;} 64304 fi 64305 elif test "x$enable_generate_classlist" = "xno"; then 64306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64307 $as_echo "no, forced" >&6; } 64308 ENABLE_GENERATE_CLASSLIST="false" 64309 elif test "x$enable_generate_classlist" = "x"; then 64310 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 64311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64312 $as_echo "yes" >&6; } 64313 ENABLE_GENERATE_CLASSLIST="true" 64314 else 64315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64316 $as_echo "no" >&6; } 64317 ENABLE_GENERATE_CLASSLIST="false" 64318 fi 64319 else 64320 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 64321 fi 64322 64323 64324 64325 64326 ############################################################################### 64327 # 64328 # Configure parts of the build that only affect the build performance, 64329 # not the result. 64330 # 64331 ############################################################################### 64332 64333 64334 # How many cores do we have on this build system? 64335 64336 # Check whether --with-num-cores was given. 64337 if test "${with_num_cores+set}" = set; then : 64338 withval=$with_num_cores; 64339 fi 64340 64341 if test "x$with_num_cores" = x; then 64342 # The number of cores were not specified, try to probe them. 64343 64344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 64345 $as_echo_n "checking for number of cores... " >&6; } 64346 NUM_CORES=1 64347 FOUND_CORES=no 64348 64349 if test -f /proc/cpuinfo; then 64350 # Looks like a Linux (or cygwin) system 64351 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 64352 FOUND_CORES=yes 64353 elif test -x /usr/sbin/psrinfo; then 64354 # Looks like a Solaris system 64355 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 64356 FOUND_CORES=yes 64357 elif test -x /usr/sbin/sysctl; then 64358 # Looks like a MacOSX system 64359 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 64360 FOUND_CORES=yes 64361 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 64362 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 64363 FOUND_CORES=yes 64364 elif test -n "$NUMBER_OF_PROCESSORS"; then 64365 # On windows, look in the env 64366 NUM_CORES=$NUMBER_OF_PROCESSORS 64367 FOUND_CORES=yes 64368 fi 64369 64370 if test "x$FOUND_CORES" = xyes; then 64371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 64372 $as_echo "$NUM_CORES" >&6; } 64373 else 64374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 64375 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 64376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 64377 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 64378 fi 64379 64380 else 64381 NUM_CORES=$with_num_cores 64382 fi 64383 64384 64385 64386 # How much memory do we have on this build system? 64387 64388 # Check whether --with-memory-size was given. 64389 if test "${with_memory_size+set}" = set; then : 64390 withval=$with_memory_size; 64391 fi 64392 64393 if test "x$with_memory_size" = x; then 64394 # The memory size was not specified, try to probe it. 64395 64396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 64397 $as_echo_n "checking for memory size... " >&6; } 64398 # Default to 1024 MB 64399 MEMORY_SIZE=1024 64400 FOUND_MEM=no 64401 64402 if test -f /proc/meminfo; then 64403 # Looks like a Linux (or cygwin) system 64404 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 64405 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 64406 FOUND_MEM=yes 64407 elif test -x /usr/sbin/prtconf; then 64408 # Looks like a Solaris or AIX system 64409 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 64410 FOUND_MEM=yes 64411 elif test -x /usr/sbin/sysctl; then 64412 # Looks like a MacOSX system 64413 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 64414 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 64415 FOUND_MEM=yes 64416 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 64417 # Windows, but without cygwin 64418 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 64419 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 64420 FOUND_MEM=yes 64421 fi 64422 64423 if test "x$FOUND_MEM" = xyes; then 64424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 64425 $as_echo "$MEMORY_SIZE MB" >&6; } 64426 else 64427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 64428 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 64429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 64430 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 64431 fi 64432 64433 else 64434 MEMORY_SIZE=$with_memory_size 64435 fi 64436 64437 64438 64439 # Provide a decent default number of parallel jobs for make depending on 64440 # number of cores, amount of memory and machine architecture. 64441 64442 # Check whether --with-jobs was given. 64443 if test "${with_jobs+set}" = set; then : 64444 withval=$with_jobs; 64445 fi 64446 64447 if test "x$with_jobs" = x; then 64448 # Number of jobs was not specified, calculate. 64449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 64450 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 64451 # Approximate memory in GB. 64452 memory_gb=`expr $MEMORY_SIZE / 1024` 64453 # Pick the lowest of memory in gb and number of cores. 64454 if test "$memory_gb" -lt "$NUM_CORES"; then 64455 JOBS="$memory_gb" 64456 else 64457 JOBS="$NUM_CORES" 64458 fi 64459 if test "$JOBS" -eq "0"; then 64460 JOBS=1 64461 fi 64462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 64463 $as_echo "$JOBS" >&6; } 64464 else 64465 JOBS=$with_jobs 64466 fi 64467 64468 64469 64470 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 64471 64472 # Check whether --with-test-jobs was given. 64473 if test "${with_test_jobs+set}" = set; then : 64474 withval=$with_test_jobs; 64475 fi 64476 64477 if test "x$with_test_jobs" = x; then 64478 TEST_JOBS=0 64479 else 64480 TEST_JOBS=$with_test_jobs 64481 fi 64482 64483 64484 64485 # Setup arguments for the boot jdk (after cores and memory have been setup) 64486 64487 ############################################################################## 64488 # 64489 # Specify jvm options for anything that is run with the Boot JDK. 64490 # Not all JVM:s accept the same arguments on the command line. 64491 # 64492 64493 # Check whether --with-boot-jdk-jvmargs was given. 64494 if test "${with_boot_jdk_jvmargs+set}" = set; then : 64495 withval=$with_boot_jdk_jvmargs; 64496 fi 64497 64498 64499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 64500 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 64501 64502 # Disable special log output when a debug build is used as Boot JDK... 64503 64504 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 64505 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 64506 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 64507 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64508 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64509 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64510 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 64511 JVM_ARG_OK=true 64512 else 64513 $ECHO "Arg failed:" >&5 64514 $ECHO "$OUTPUT" >&5 64515 JVM_ARG_OK=false 64516 fi 64517 64518 64519 # Force en-US environment 64520 64521 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 64522 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 64523 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 64524 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64525 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64526 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64527 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 64528 JVM_ARG_OK=true 64529 else 64530 $ECHO "Arg failed:" >&5 64531 $ECHO "$OUTPUT" >&5 64532 JVM_ARG_OK=false 64533 fi 64534 64535 64536 # Apply user provided options. 64537 64538 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 64539 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 64540 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 64541 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64542 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64543 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64544 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 64545 JVM_ARG_OK=true 64546 else 64547 $ECHO "Arg failed:" >&5 64548 $ECHO "$OUTPUT" >&5 64549 JVM_ARG_OK=false 64550 fi 64551 64552 64553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 64554 $as_echo "$boot_jdk_jvmargs" >&6; } 64555 64556 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 64557 JAVA_FLAGS=$boot_jdk_jvmargs 64558 64559 64560 64561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 64562 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 64563 64564 # Starting amount of heap memory. 64565 64566 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 64567 $ECHO "Command: $JAVA -Xms64M -version" >&5 64568 OUTPUT=`$JAVA -Xms64M -version 2>&1` 64569 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64570 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64571 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64572 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 64573 JVM_ARG_OK=true 64574 else 64575 $ECHO "Arg failed:" >&5 64576 $ECHO "$OUTPUT" >&5 64577 JVM_ARG_OK=false 64578 fi 64579 64580 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 64581 64582 # Maximum amount of heap memory and stack size. 64583 JVM_HEAP_LIMIT_32="1024" 64584 # Running a 64 bit JVM allows for and requires a bigger heap 64585 JVM_HEAP_LIMIT_64="1600" 64586 STACK_SIZE_32=768 64587 STACK_SIZE_64=1536 64588 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 64589 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 64590 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 64591 fi 64592 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 64593 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 64594 fi 64595 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 64596 JVM_HEAP_LIMIT_32=512 64597 JVM_HEAP_LIMIT_64=512 64598 fi 64599 64600 if test "x$BOOT_JDK_BITS" = "x32"; then 64601 STACK_SIZE=$STACK_SIZE_32 64602 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 64603 else 64604 STACK_SIZE=$STACK_SIZE_64 64605 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 64606 fi 64607 64608 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 64609 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 64610 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 64611 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64612 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64613 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64614 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 64615 JVM_ARG_OK=true 64616 else 64617 $ECHO "Arg failed:" >&5 64618 $ECHO "$OUTPUT" >&5 64619 JVM_ARG_OK=false 64620 fi 64621 64622 64623 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 64624 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 64625 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 64626 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64627 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64628 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64629 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 64630 JVM_ARG_OK=true 64631 else 64632 $ECHO "Arg failed:" >&5 64633 $ECHO "$OUTPUT" >&5 64634 JVM_ARG_OK=false 64635 fi 64636 64637 64638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 64639 $as_echo "$boot_jdk_jvmargs_big" >&6; } 64640 64641 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 64642 64643 64644 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 64645 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 64646 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 64647 else 64648 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 64649 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 64650 fi 64651 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 64652 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 64653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 64654 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 64655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 64656 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 64657 64658 64659 # By default, the main javac compilations use big 64660 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 64661 64662 64663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 64664 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 64665 64666 # Use serial gc for small short lived tools if possible 64667 64668 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 64669 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 64670 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 64671 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64672 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64673 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64674 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 64675 JVM_ARG_OK=true 64676 else 64677 $ECHO "Arg failed:" >&5 64678 $ECHO "$OUTPUT" >&5 64679 JVM_ARG_OK=false 64680 fi 64681 64682 64683 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 64684 $ECHO "Command: $JAVA -Xms32M -version" >&5 64685 OUTPUT=`$JAVA -Xms32M -version 2>&1` 64686 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64687 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64688 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64689 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 64690 JVM_ARG_OK=true 64691 else 64692 $ECHO "Arg failed:" >&5 64693 $ECHO "$OUTPUT" >&5 64694 JVM_ARG_OK=false 64695 fi 64696 64697 64698 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 64699 $ECHO "Command: $JAVA -Xmx512M -version" >&5 64700 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 64701 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64702 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64703 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64704 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 64705 JVM_ARG_OK=true 64706 else 64707 $ECHO "Arg failed:" >&5 64708 $ECHO "$OUTPUT" >&5 64709 JVM_ARG_OK=false 64710 fi 64711 64712 64713 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 64714 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 64715 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 64716 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64717 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64718 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64719 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 64720 JVM_ARG_OK=true 64721 else 64722 $ECHO "Arg failed:" >&5 64723 $ECHO "$OUTPUT" >&5 64724 JVM_ARG_OK=false 64725 fi 64726 64727 64728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 64729 $as_echo "$boot_jdk_jvmargs_small" >&6; } 64730 64731 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 64732 64733 64734 JAVA_TOOL_FLAGS_SMALL="" 64735 for f in $JAVA_FLAGS_SMALL; do 64736 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 64737 done 64738 64739 64740 64741 # Setup smart javac (after cores and memory have been setup) 64742 64743 64744 # Check whether --with-sjavac-server-java was given. 64745 if test "${with_sjavac_server_java+set}" = set; then : 64746 withval=$with_sjavac_server_java; 64747 fi 64748 64749 64750 if test "x$with_sjavac_server_java" != x; then 64751 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 64752 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 64753 if test "x$FOUND_VERSION" = x; then 64754 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 64755 fi 64756 else 64757 SJAVAC_SERVER_JAVA="$JAVA" 64758 fi 64759 64760 64761 if test "$MEMORY_SIZE" -gt "3000"; then 64762 64763 $ECHO "Check if jvm arg is ok: -d64" >&5 64764 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 64765 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 64766 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64767 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64768 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64769 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 64770 JVM_ARG_OK=true 64771 else 64772 $ECHO "Arg failed:" >&5 64773 $ECHO "$OUTPUT" >&5 64774 JVM_ARG_OK=false 64775 fi 64776 64777 if test "$JVM_ARG_OK" = true; then 64778 JVM_64BIT=true 64779 JVM_ARG_OK=false 64780 fi 64781 fi 64782 64783 MX_VALUE=`expr $MEMORY_SIZE / 2` 64784 if test "$JVM_64BIT" = true; then 64785 # Set ms lower than mx since more than one instance of the server might 64786 # get launched at the same time before they figure out which instance won. 64787 MS_VALUE=512 64788 if test "$MX_VALUE" -gt "2048"; then 64789 MX_VALUE=2048 64790 fi 64791 else 64792 MS_VALUE=256 64793 if test "$MX_VALUE" -gt "1500"; then 64794 MX_VALUE=1500 64795 fi 64796 fi 64797 if test "$MX_VALUE" -lt "512"; then 64798 MX_VALUE=512 64799 fi 64800 64801 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 64802 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 64803 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 64804 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 64805 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 64806 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64807 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 64808 JVM_ARG_OK=true 64809 else 64810 $ECHO "Arg failed:" >&5 64811 $ECHO "$OUTPUT" >&5 64812 JVM_ARG_OK=false 64813 fi 64814 64815 64816 64817 # Check whether --enable-sjavac was given. 64818 if test "${enable_sjavac+set}" = set; then : 64819 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 64820 else 64821 ENABLE_SJAVAC="no" 64822 fi 64823 64824 if test "x$JVM_ARG_OK" = "xfalse"; then 64825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 64826 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 64827 ENABLE_SJAVAC="no" 64828 fi 64829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 64830 $as_echo_n "checking whether to use sjavac... " >&6; } 64831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 64832 $as_echo "$ENABLE_SJAVAC" >&6; } 64833 64834 64835 # Check whether --enable-javac-server was given. 64836 if test "${enable_javac_server+set}" = set; then : 64837 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 64838 else 64839 ENABLE_JAVAC_SERVER="yes" 64840 fi 64841 64842 if test "x$JVM_ARG_OK" = "xfalse"; then 64843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 64844 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 64845 ENABLE_JAVAC_SERVER="no" 64846 fi 64847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 64848 $as_echo_n "checking whether to use javac server... " >&6; } 64849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 64850 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 64851 64852 64853 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 64854 # When using a server javac, the small client instances do not need much 64855 # resources. 64856 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 64857 fi 64858 64859 64860 # Setup use of icecc if requested 64861 64862 # Check whether --enable-icecc was given. 64863 if test "${enable_icecc+set}" = set; then : 64864 enableval=$enable_icecc; 64865 fi 64866 64867 64868 if test "x${enable_icecc}" = "xyes"; then 64869 64870 64871 64872 # Publish this variable in the help. 64873 64874 64875 if [ -z "${ICECC_CMD+x}" ]; then 64876 # The variable is not set by user, try to locate tool using the code snippet 64877 for ac_prog in icecc 64878 do 64879 # Extract the first word of "$ac_prog", so it can be a program name with args. 64880 set dummy $ac_prog; ac_word=$2 64881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64882 $as_echo_n "checking for $ac_word... " >&6; } 64883 if ${ac_cv_path_ICECC_CMD+:} false; then : 64884 $as_echo_n "(cached) " >&6 64885 else 64886 case $ICECC_CMD in 64887 [\\/]* | ?:[\\/]*) 64888 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 64889 ;; 64890 *) 64891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64892 for as_dir in $PATH 64893 do 64894 IFS=$as_save_IFS 64895 test -z "$as_dir" && as_dir=. 64896 for ac_exec_ext in '' $ac_executable_extensions; do 64897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64898 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 64899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64900 break 2 64901 fi 64902 done 64903 done 64904 IFS=$as_save_IFS 64905 64906 ;; 64907 esac 64908 fi 64909 ICECC_CMD=$ac_cv_path_ICECC_CMD 64910 if test -n "$ICECC_CMD"; then 64911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 64912 $as_echo "$ICECC_CMD" >&6; } 64913 else 64914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64915 $as_echo "no" >&6; } 64916 fi 64917 64918 64919 test -n "$ICECC_CMD" && break 64920 done 64921 64922 else 64923 # The variable is set, but is it from the command line or the environment? 64924 64925 # Try to remove the string !ICECC_CMD! from our list. 64926 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 64927 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 64928 # If it failed, the variable was not from the command line. Ignore it, 64929 # but warn the user (except for BASH, which is always set by the calling BASH). 64930 if test "xICECC_CMD" != xBASH; then 64931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 64932 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 64933 fi 64934 # Try to locate tool using the code snippet 64935 for ac_prog in icecc 64936 do 64937 # Extract the first word of "$ac_prog", so it can be a program name with args. 64938 set dummy $ac_prog; ac_word=$2 64939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64940 $as_echo_n "checking for $ac_word... " >&6; } 64941 if ${ac_cv_path_ICECC_CMD+:} false; then : 64942 $as_echo_n "(cached) " >&6 64943 else 64944 case $ICECC_CMD in 64945 [\\/]* | ?:[\\/]*) 64946 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 64947 ;; 64948 *) 64949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64950 for as_dir in $PATH 64951 do 64952 IFS=$as_save_IFS 64953 test -z "$as_dir" && as_dir=. 64954 for ac_exec_ext in '' $ac_executable_extensions; do 64955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64956 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 64957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64958 break 2 64959 fi 64960 done 64961 done 64962 IFS=$as_save_IFS 64963 64964 ;; 64965 esac 64966 fi 64967 ICECC_CMD=$ac_cv_path_ICECC_CMD 64968 if test -n "$ICECC_CMD"; then 64969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 64970 $as_echo "$ICECC_CMD" >&6; } 64971 else 64972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64973 $as_echo "no" >&6; } 64974 fi 64975 64976 64977 test -n "$ICECC_CMD" && break 64978 done 64979 64980 else 64981 # If it succeeded, then it was overridden by the user. We will use it 64982 # for the tool. 64983 64984 # First remove it from the list of overridden variables, so we can test 64985 # for unknown variables in the end. 64986 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 64987 64988 # Check if we try to supply an empty value 64989 if test "x$ICECC_CMD" = x; then 64990 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 64991 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 64992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 64993 $as_echo_n "checking for ICECC_CMD... " >&6; } 64994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 64995 $as_echo "disabled" >&6; } 64996 else 64997 # Check if the provided tool contains a complete path. 64998 tool_specified="$ICECC_CMD" 64999 tool_basename="${tool_specified##*/}" 65000 if test "x$tool_basename" = "x$tool_specified"; then 65001 # A command without a complete path is provided, search $PATH. 65002 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 65003 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 65004 # Extract the first word of "$tool_basename", so it can be a program name with args. 65005 set dummy $tool_basename; ac_word=$2 65006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65007 $as_echo_n "checking for $ac_word... " >&6; } 65008 if ${ac_cv_path_ICECC_CMD+:} false; then : 65009 $as_echo_n "(cached) " >&6 65010 else 65011 case $ICECC_CMD in 65012 [\\/]* | ?:[\\/]*) 65013 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 65014 ;; 65015 *) 65016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65017 for as_dir in $PATH 65018 do 65019 IFS=$as_save_IFS 65020 test -z "$as_dir" && as_dir=. 65021 for ac_exec_ext in '' $ac_executable_extensions; do 65022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65023 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 65024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65025 break 2 65026 fi 65027 done 65028 done 65029 IFS=$as_save_IFS 65030 65031 ;; 65032 esac 65033 fi 65034 ICECC_CMD=$ac_cv_path_ICECC_CMD 65035 if test -n "$ICECC_CMD"; then 65036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 65037 $as_echo "$ICECC_CMD" >&6; } 65038 else 65039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65040 $as_echo "no" >&6; } 65041 fi 65042 65043 65044 if test "x$ICECC_CMD" = x; then 65045 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65046 fi 65047 else 65048 # Otherwise we believe it is a complete path. Use it as it is. 65049 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 65050 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 65051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 65052 $as_echo_n "checking for ICECC_CMD... " >&6; } 65053 if test ! -x "$tool_specified"; then 65054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65055 $as_echo "not found" >&6; } 65056 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 65057 fi 65058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65059 $as_echo "$tool_specified" >&6; } 65060 fi 65061 fi 65062 fi 65063 65064 fi 65065 65066 65067 65068 if test "x$ICECC_CMD" = x; then 65069 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 65070 fi 65071 65072 65073 old_path="$PATH" 65074 65075 # Look for icecc-create-env in some known places 65076 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 65077 65078 65079 65080 # Publish this variable in the help. 65081 65082 65083 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 65084 # The variable is not set by user, try to locate tool using the code snippet 65085 for ac_prog in icecc-create-env 65086 do 65087 # Extract the first word of "$ac_prog", so it can be a program name with args. 65088 set dummy $ac_prog; ac_word=$2 65089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65090 $as_echo_n "checking for $ac_word... " >&6; } 65091 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 65092 $as_echo_n "(cached) " >&6 65093 else 65094 case $ICECC_CREATE_ENV in 65095 [\\/]* | ?:[\\/]*) 65096 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 65097 ;; 65098 *) 65099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65100 for as_dir in $PATH 65101 do 65102 IFS=$as_save_IFS 65103 test -z "$as_dir" && as_dir=. 65104 for ac_exec_ext in '' $ac_executable_extensions; do 65105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65106 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 65107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65108 break 2 65109 fi 65110 done 65111 done 65112 IFS=$as_save_IFS 65113 65114 ;; 65115 esac 65116 fi 65117 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 65118 if test -n "$ICECC_CREATE_ENV"; then 65119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 65120 $as_echo "$ICECC_CREATE_ENV" >&6; } 65121 else 65122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65123 $as_echo "no" >&6; } 65124 fi 65125 65126 65127 test -n "$ICECC_CREATE_ENV" && break 65128 done 65129 65130 else 65131 # The variable is set, but is it from the command line or the environment? 65132 65133 # Try to remove the string !ICECC_CREATE_ENV! from our list. 65134 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 65135 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65136 # If it failed, the variable was not from the command line. Ignore it, 65137 # but warn the user (except for BASH, which is always set by the calling BASH). 65138 if test "xICECC_CREATE_ENV" != xBASH; then 65139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 65140 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 65141 fi 65142 # Try to locate tool using the code snippet 65143 for ac_prog in icecc-create-env 65144 do 65145 # Extract the first word of "$ac_prog", so it can be a program name with args. 65146 set dummy $ac_prog; ac_word=$2 65147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65148 $as_echo_n "checking for $ac_word... " >&6; } 65149 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 65150 $as_echo_n "(cached) " >&6 65151 else 65152 case $ICECC_CREATE_ENV in 65153 [\\/]* | ?:[\\/]*) 65154 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 65155 ;; 65156 *) 65157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65158 for as_dir in $PATH 65159 do 65160 IFS=$as_save_IFS 65161 test -z "$as_dir" && as_dir=. 65162 for ac_exec_ext in '' $ac_executable_extensions; do 65163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65164 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 65165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65166 break 2 65167 fi 65168 done 65169 done 65170 IFS=$as_save_IFS 65171 65172 ;; 65173 esac 65174 fi 65175 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 65176 if test -n "$ICECC_CREATE_ENV"; then 65177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 65178 $as_echo "$ICECC_CREATE_ENV" >&6; } 65179 else 65180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65181 $as_echo "no" >&6; } 65182 fi 65183 65184 65185 test -n "$ICECC_CREATE_ENV" && break 65186 done 65187 65188 else 65189 # If it succeeded, then it was overridden by the user. We will use it 65190 # for the tool. 65191 65192 # First remove it from the list of overridden variables, so we can test 65193 # for unknown variables in the end. 65194 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65195 65196 # Check if we try to supply an empty value 65197 if test "x$ICECC_CREATE_ENV" = x; then 65198 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 65199 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 65200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 65201 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 65202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65203 $as_echo "disabled" >&6; } 65204 else 65205 # Check if the provided tool contains a complete path. 65206 tool_specified="$ICECC_CREATE_ENV" 65207 tool_basename="${tool_specified##*/}" 65208 if test "x$tool_basename" = "x$tool_specified"; then 65209 # A command without a complete path is provided, search $PATH. 65210 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 65211 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 65212 # Extract the first word of "$tool_basename", so it can be a program name with args. 65213 set dummy $tool_basename; ac_word=$2 65214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65215 $as_echo_n "checking for $ac_word... " >&6; } 65216 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 65217 $as_echo_n "(cached) " >&6 65218 else 65219 case $ICECC_CREATE_ENV in 65220 [\\/]* | ?:[\\/]*) 65221 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 65222 ;; 65223 *) 65224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65225 for as_dir in $PATH 65226 do 65227 IFS=$as_save_IFS 65228 test -z "$as_dir" && as_dir=. 65229 for ac_exec_ext in '' $ac_executable_extensions; do 65230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65231 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 65232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65233 break 2 65234 fi 65235 done 65236 done 65237 IFS=$as_save_IFS 65238 65239 ;; 65240 esac 65241 fi 65242 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 65243 if test -n "$ICECC_CREATE_ENV"; then 65244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 65245 $as_echo "$ICECC_CREATE_ENV" >&6; } 65246 else 65247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65248 $as_echo "no" >&6; } 65249 fi 65250 65251 65252 if test "x$ICECC_CREATE_ENV" = x; then 65253 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65254 fi 65255 else 65256 # Otherwise we believe it is a complete path. Use it as it is. 65257 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 65258 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 65259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 65260 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 65261 if test ! -x "$tool_specified"; then 65262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65263 $as_echo "not found" >&6; } 65264 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 65265 fi 65266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65267 $as_echo "$tool_specified" >&6; } 65268 fi 65269 fi 65270 fi 65271 65272 fi 65273 65274 65275 65276 if test "x$ICECC_CREATE_ENV" = x; then 65277 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 65278 fi 65279 65280 65281 # Use icecc-create-env to create a minimal compilation environment that can 65282 # be sent to the other hosts in the icecream cluster. 65283 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 65284 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 65285 # Older versions of icecc does not have the --gcc parameter 65286 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 65287 icecc_gcc_arg="--gcc" 65288 fi 65289 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 65290 65291 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65292 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 65293 ${icecc_create_env_log} 2>&1 ) 65294 if test "$?" != "0"; then 65295 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65296 $as_echo "$as_me: icecc-create-env output:" >&6;} 65297 cat \ 65298 ${icecc_create_env_log} 65299 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65300 fi 65301 65302 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 65303 # For clang, the icecc compilerwrapper is needed. It usually resides next 65304 # to icecc-create-env. 65305 65306 65307 65308 # Publish this variable in the help. 65309 65310 65311 if [ -z "${ICECC_WRAPPER+x}" ]; then 65312 # The variable is not set by user, try to locate tool using the code snippet 65313 for ac_prog in compilerwrapper 65314 do 65315 # Extract the first word of "$ac_prog", so it can be a program name with args. 65316 set dummy $ac_prog; ac_word=$2 65317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65318 $as_echo_n "checking for $ac_word... " >&6; } 65319 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65320 $as_echo_n "(cached) " >&6 65321 else 65322 case $ICECC_WRAPPER in 65323 [\\/]* | ?:[\\/]*) 65324 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65325 ;; 65326 *) 65327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65328 for as_dir in $PATH 65329 do 65330 IFS=$as_save_IFS 65331 test -z "$as_dir" && as_dir=. 65332 for ac_exec_ext in '' $ac_executable_extensions; do 65333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65334 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65336 break 2 65337 fi 65338 done 65339 done 65340 IFS=$as_save_IFS 65341 65342 ;; 65343 esac 65344 fi 65345 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65346 if test -n "$ICECC_WRAPPER"; then 65347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65348 $as_echo "$ICECC_WRAPPER" >&6; } 65349 else 65350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65351 $as_echo "no" >&6; } 65352 fi 65353 65354 65355 test -n "$ICECC_WRAPPER" && break 65356 done 65357 65358 else 65359 # The variable is set, but is it from the command line or the environment? 65360 65361 # Try to remove the string !ICECC_WRAPPER! from our list. 65362 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 65363 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65364 # If it failed, the variable was not from the command line. Ignore it, 65365 # but warn the user (except for BASH, which is always set by the calling BASH). 65366 if test "xICECC_WRAPPER" != xBASH; then 65367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 65368 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 65369 fi 65370 # Try to locate tool using the code snippet 65371 for ac_prog in compilerwrapper 65372 do 65373 # Extract the first word of "$ac_prog", so it can be a program name with args. 65374 set dummy $ac_prog; ac_word=$2 65375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65376 $as_echo_n "checking for $ac_word... " >&6; } 65377 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65378 $as_echo_n "(cached) " >&6 65379 else 65380 case $ICECC_WRAPPER in 65381 [\\/]* | ?:[\\/]*) 65382 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65383 ;; 65384 *) 65385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65386 for as_dir in $PATH 65387 do 65388 IFS=$as_save_IFS 65389 test -z "$as_dir" && as_dir=. 65390 for ac_exec_ext in '' $ac_executable_extensions; do 65391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65392 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65394 break 2 65395 fi 65396 done 65397 done 65398 IFS=$as_save_IFS 65399 65400 ;; 65401 esac 65402 fi 65403 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65404 if test -n "$ICECC_WRAPPER"; then 65405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65406 $as_echo "$ICECC_WRAPPER" >&6; } 65407 else 65408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65409 $as_echo "no" >&6; } 65410 fi 65411 65412 65413 test -n "$ICECC_WRAPPER" && break 65414 done 65415 65416 else 65417 # If it succeeded, then it was overridden by the user. We will use it 65418 # for the tool. 65419 65420 # First remove it from the list of overridden variables, so we can test 65421 # for unknown variables in the end. 65422 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65423 65424 # Check if we try to supply an empty value 65425 if test "x$ICECC_WRAPPER" = x; then 65426 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 65427 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 65428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 65429 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 65430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65431 $as_echo "disabled" >&6; } 65432 else 65433 # Check if the provided tool contains a complete path. 65434 tool_specified="$ICECC_WRAPPER" 65435 tool_basename="${tool_specified##*/}" 65436 if test "x$tool_basename" = "x$tool_specified"; then 65437 # A command without a complete path is provided, search $PATH. 65438 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 65439 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 65440 # Extract the first word of "$tool_basename", so it can be a program name with args. 65441 set dummy $tool_basename; ac_word=$2 65442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65443 $as_echo_n "checking for $ac_word... " >&6; } 65444 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65445 $as_echo_n "(cached) " >&6 65446 else 65447 case $ICECC_WRAPPER in 65448 [\\/]* | ?:[\\/]*) 65449 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65450 ;; 65451 *) 65452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65453 for as_dir in $PATH 65454 do 65455 IFS=$as_save_IFS 65456 test -z "$as_dir" && as_dir=. 65457 for ac_exec_ext in '' $ac_executable_extensions; do 65458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65459 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65461 break 2 65462 fi 65463 done 65464 done 65465 IFS=$as_save_IFS 65466 65467 ;; 65468 esac 65469 fi 65470 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65471 if test -n "$ICECC_WRAPPER"; then 65472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65473 $as_echo "$ICECC_WRAPPER" >&6; } 65474 else 65475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65476 $as_echo "no" >&6; } 65477 fi 65478 65479 65480 if test "x$ICECC_WRAPPER" = x; then 65481 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65482 fi 65483 else 65484 # Otherwise we believe it is a complete path. Use it as it is. 65485 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 65486 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 65487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 65488 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 65489 if test ! -x "$tool_specified"; then 65490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65491 $as_echo "not found" >&6; } 65492 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 65493 fi 65494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65495 $as_echo "$tool_specified" >&6; } 65496 fi 65497 fi 65498 fi 65499 65500 fi 65501 65502 65503 65504 if test "x$ICECC_WRAPPER" = x; then 65505 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 65506 fi 65507 65508 65509 65510 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65511 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 65512 if test "$?" != "0"; then 65513 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65514 $as_echo "$as_me: icecc-create-env output:" >&6;} 65515 cat ${icecc_create_env_log} 65516 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65517 fi 65518 65519 else 65520 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 65521 fi 65522 PATH="$old_path" 65523 # The bundle with the compiler gets a name based on checksums. Parse log file 65524 # to find it. 65525 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 65526 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 65527 if test ! -f ${ICECC_ENV_BUNDLE}; then 65528 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 65529 fi 65530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 65531 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 65532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 65533 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 65534 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 65535 65536 if test "x${COMPILE_TYPE}" = "xcross"; then 65537 # If cross compiling, create a separate env package for the build compiler 65538 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 65539 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 65540 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 65541 65542 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65543 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 65544 ${icecc_create_env_log_build} 2>&1 ) 65545 if test "$?" != "0"; then 65546 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65547 $as_echo "$as_me: icecc-create-env output:" >&6;} 65548 cat \ 65549 ${icecc_create_env_log_build} 65550 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65551 fi 65552 65553 elif test "x${BUILD_CC##*/}" = "xclang"; then 65554 65555 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65556 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 65557 if test "$?" != "0"; then 65558 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65559 $as_echo "$as_me: icecc-create-env output:" >&6;} 65560 cat ${icecc_create_env_log_build} 65561 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65562 fi 65563 65564 else 65565 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 65566 fi 65567 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 65568 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 65569 if test ! -f ${ICECC_ENV_BUNDLE}; then 65570 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 65571 fi 65572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 65573 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 65574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 65575 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 65576 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 65577 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 65578 else 65579 BUILD_ICECC="${ICECC}" 65580 fi 65581 65582 65583 fi 65584 65585 65586 # Can the C/C++ compiler use precompiled headers? 65587 65588 65589 ############################################################################### 65590 # 65591 # Can the C/C++ compiler use precompiled headers? 65592 # 65593 # Check whether --enable-precompiled-headers was given. 65594 if test "${enable_precompiled_headers+set}" = set; then : 65595 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 65596 else 65597 ENABLE_PRECOMPH=yes 65598 fi 65599 65600 65601 USE_PRECOMPILED_HEADER=1 65602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 65603 $as_echo_n "checking If precompiled header is enabled... " >&6; } 65604 if test "x$ENABLE_PRECOMPH" = xno; then 65605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65606 $as_echo "no, forced" >&6; } 65607 USE_PRECOMPILED_HEADER=0 65608 elif test "x$ICECC" != "x"; then 65609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 65610 $as_echo "no, does not work effectively with icecc" >&6; } 65611 USE_PRECOMPILED_HEADER=0 65612 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 65613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 65614 $as_echo "no, does not work with Solaris Studio" >&6; } 65615 USE_PRECOMPILED_HEADER=0 65616 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 65617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 65618 $as_echo "no, does not work with xlc" >&6; } 65619 USE_PRECOMPILED_HEADER=0 65620 else 65621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65622 $as_echo "yes" >&6; } 65623 fi 65624 65625 if test "x$ENABLE_PRECOMPH" = xyes; then 65626 # Check that the compiler actually supports precomp headers. 65627 if test "x$TOOLCHAIN_TYPE" = xgcc; then 65628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 65629 $as_echo_n "checking that precompiled headers work... " >&6; } 65630 echo "int alfa();" > conftest.h 65631 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 65632 if test ! -f conftest.hpp.gch; then 65633 USE_PRECOMPILED_HEADER=0 65634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65635 $as_echo "no" >&6; } 65636 else 65637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65638 $as_echo "yes" >&6; } 65639 fi 65640 $RM conftest.h conftest.hpp.gch 65641 fi 65642 fi 65643 65644 65645 65646 65647 # Setup use of ccache, if available 65648 65649 # Check whether --enable-ccache was given. 65650 if test "${enable_ccache+set}" = set; then : 65651 enableval=$enable_ccache; 65652 fi 65653 65654 65655 CCACHE_STATUS= 65656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 65657 $as_echo_n "checking is ccache enabled... " >&6; } 65658 if test "x$enable_ccache" = xyes; then 65659 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 65660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65661 $as_echo "yes" >&6; } 65662 OLD_PATH="$PATH" 65663 if test "x$TOOLCHAIN_PATH" != x; then 65664 PATH=$TOOLCHAIN_PATH:$PATH 65665 fi 65666 65667 65668 65669 # Publish this variable in the help. 65670 65671 65672 if [ -z "${CCACHE+x}" ]; then 65673 # The variable is not set by user, try to locate tool using the code snippet 65674 for ac_prog in ccache 65675 do 65676 # Extract the first word of "$ac_prog", so it can be a program name with args. 65677 set dummy $ac_prog; ac_word=$2 65678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65679 $as_echo_n "checking for $ac_word... " >&6; } 65680 if ${ac_cv_path_CCACHE+:} false; then : 65681 $as_echo_n "(cached) " >&6 65682 else 65683 case $CCACHE in 65684 [\\/]* | ?:[\\/]*) 65685 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65686 ;; 65687 *) 65688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65689 for as_dir in $PATH 65690 do 65691 IFS=$as_save_IFS 65692 test -z "$as_dir" && as_dir=. 65693 for ac_exec_ext in '' $ac_executable_extensions; do 65694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65695 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65697 break 2 65698 fi 65699 done 65700 done 65701 IFS=$as_save_IFS 65702 65703 ;; 65704 esac 65705 fi 65706 CCACHE=$ac_cv_path_CCACHE 65707 if test -n "$CCACHE"; then 65708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65709 $as_echo "$CCACHE" >&6; } 65710 else 65711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65712 $as_echo "no" >&6; } 65713 fi 65714 65715 65716 test -n "$CCACHE" && break 65717 done 65718 65719 else 65720 # The variable is set, but is it from the command line or the environment? 65721 65722 # Try to remove the string !CCACHE! from our list. 65723 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 65724 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65725 # If it failed, the variable was not from the command line. Ignore it, 65726 # but warn the user (except for BASH, which is always set by the calling BASH). 65727 if test "xCCACHE" != xBASH; then 65728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 65729 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 65730 fi 65731 # Try to locate tool using the code snippet 65732 for ac_prog in ccache 65733 do 65734 # Extract the first word of "$ac_prog", so it can be a program name with args. 65735 set dummy $ac_prog; ac_word=$2 65736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65737 $as_echo_n "checking for $ac_word... " >&6; } 65738 if ${ac_cv_path_CCACHE+:} false; then : 65739 $as_echo_n "(cached) " >&6 65740 else 65741 case $CCACHE in 65742 [\\/]* | ?:[\\/]*) 65743 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65744 ;; 65745 *) 65746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65747 for as_dir in $PATH 65748 do 65749 IFS=$as_save_IFS 65750 test -z "$as_dir" && as_dir=. 65751 for ac_exec_ext in '' $ac_executable_extensions; do 65752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65753 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65755 break 2 65756 fi 65757 done 65758 done 65759 IFS=$as_save_IFS 65760 65761 ;; 65762 esac 65763 fi 65764 CCACHE=$ac_cv_path_CCACHE 65765 if test -n "$CCACHE"; then 65766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65767 $as_echo "$CCACHE" >&6; } 65768 else 65769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65770 $as_echo "no" >&6; } 65771 fi 65772 65773 65774 test -n "$CCACHE" && break 65775 done 65776 65777 else 65778 # If it succeeded, then it was overridden by the user. We will use it 65779 # for the tool. 65780 65781 # First remove it from the list of overridden variables, so we can test 65782 # for unknown variables in the end. 65783 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65784 65785 # Check if we try to supply an empty value 65786 if test "x$CCACHE" = x; then 65787 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 65788 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 65789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 65790 $as_echo_n "checking for CCACHE... " >&6; } 65791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65792 $as_echo "disabled" >&6; } 65793 else 65794 # Check if the provided tool contains a complete path. 65795 tool_specified="$CCACHE" 65796 tool_basename="${tool_specified##*/}" 65797 if test "x$tool_basename" = "x$tool_specified"; then 65798 # A command without a complete path is provided, search $PATH. 65799 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 65800 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 65801 # Extract the first word of "$tool_basename", so it can be a program name with args. 65802 set dummy $tool_basename; ac_word=$2 65803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65804 $as_echo_n "checking for $ac_word... " >&6; } 65805 if ${ac_cv_path_CCACHE+:} false; then : 65806 $as_echo_n "(cached) " >&6 65807 else 65808 case $CCACHE in 65809 [\\/]* | ?:[\\/]*) 65810 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65811 ;; 65812 *) 65813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65814 for as_dir in $PATH 65815 do 65816 IFS=$as_save_IFS 65817 test -z "$as_dir" && as_dir=. 65818 for ac_exec_ext in '' $ac_executable_extensions; do 65819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65820 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65822 break 2 65823 fi 65824 done 65825 done 65826 IFS=$as_save_IFS 65827 65828 ;; 65829 esac 65830 fi 65831 CCACHE=$ac_cv_path_CCACHE 65832 if test -n "$CCACHE"; then 65833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65834 $as_echo "$CCACHE" >&6; } 65835 else 65836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65837 $as_echo "no" >&6; } 65838 fi 65839 65840 65841 if test "x$CCACHE" = x; then 65842 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65843 fi 65844 else 65845 # Otherwise we believe it is a complete path. Use it as it is. 65846 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 65847 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 65848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 65849 $as_echo_n "checking for CCACHE... " >&6; } 65850 if test ! -x "$tool_specified"; then 65851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65852 $as_echo "not found" >&6; } 65853 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 65854 fi 65855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65856 $as_echo "$tool_specified" >&6; } 65857 fi 65858 fi 65859 fi 65860 65861 fi 65862 65863 65864 65865 if test "x$CCACHE" = x; then 65866 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 65867 fi 65868 65869 65870 PATH="$OLD_PATH" 65871 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 65872 CCACHE_STATUS="Active ($CCACHE_VERSION)" 65873 else 65874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65875 $as_echo "no" >&6; } 65876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 65877 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 65878 fi 65879 elif test "x$enable_ccache" = xno; then 65880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 65881 $as_echo "no, explicitly disabled" >&6; } 65882 CCACHE_STATUS="Disabled" 65883 elif test "x$enable_ccache" = x; then 65884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65885 $as_echo "no" >&6; } 65886 else 65887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 65888 $as_echo "unknown" >&6; } 65889 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 65890 fi 65891 65892 65893 65894 # Check whether --with-ccache-dir was given. 65895 if test "${with_ccache_dir+set}" = set; then : 65896 withval=$with_ccache_dir; 65897 fi 65898 65899 65900 if test "x$with_ccache_dir" != x; then 65901 # When using a non home ccache directory, assume the use is to share ccache files 65902 # with other users. Thus change the umask. 65903 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 65904 if test "x$CCACHE" = x; then 65905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 65906 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 65907 fi 65908 fi 65909 65910 if test "x$CCACHE" != x; then 65911 65912 if test "x$CCACHE" != x; then 65913 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 65914 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 65915 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 65916 if test "x$HAS_BAD_CCACHE" != "x"; then 65917 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 65918 fi 65919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 65920 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 65921 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 65922 PUSHED_FLAGS="$CXXFLAGS" 65923 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 65924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65925 /* end confdefs.h. */ 65926 65927 int 65928 main () 65929 { 65930 65931 ; 65932 return 0; 65933 } 65934 _ACEOF 65935 if ac_fn_cxx_try_compile "$LINENO"; then : 65936 CC_KNOWS_CCACHE_TRICK=yes 65937 else 65938 CC_KNOWS_CCACHE_TRICK=no 65939 fi 65940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65941 CXXFLAGS="$PUSHED_FLAGS" 65942 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 65943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65944 $as_echo "yes" >&6; } 65945 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 65946 65947 CCACHE_SLOPPINESS=pch_defines,time_macros 65948 else 65949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65950 $as_echo "no" >&6; } 65951 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 65952 fi 65953 fi 65954 65955 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 65956 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 65957 65958 if test "x$SET_CCACHE_DIR" != x; then 65959 mkdir -p $CCACHE_DIR > /dev/null 2>&1 65960 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 65961 fi 65962 fi 65963 65964 fi 65965 65966 65967 ############################################################################### 65968 # 65969 # And now the finish... 65970 # 65971 ############################################################################### 65972 65973 # Check for some common pitfalls 65974 65975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65976 file_to_test="$SRC_ROOT/LICENSE" 65977 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 65978 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 65979 fi 65980 fi 65981 65982 65983 # Did user specify any unknown variables? 65984 65985 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 65986 # Replace the separating ! with spaces before presenting for end user. 65987 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 65988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 65989 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 65990 fi 65991 65992 65993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 65994 $as_echo_n "checking if build directory is on local disk... " >&6; } 65995 65996 # df -l lists only local disks; if the given directory is not found then 65997 # a non-zero exit code is given 65998 if test "x$DF" = x; then 65999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66000 # msys does not have df; use Windows "net use" instead. 66001 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 66002 if test "x$IS_NETWORK_DISK" = x; then 66003 OUTPUT_DIR_IS_LOCAL="yes" 66004 else 66005 OUTPUT_DIR_IS_LOCAL="no" 66006 fi 66007 else 66008 # No df here, say it's local 66009 OUTPUT_DIR_IS_LOCAL="yes" 66010 fi 66011 else 66012 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 66013 OUTPUT_DIR_IS_LOCAL="yes" 66014 else 66015 OUTPUT_DIR_IS_LOCAL="no" 66016 fi 66017 fi 66018 66019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 66020 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 66021 66022 66023 66024 # Check if the user has any old-style ALT_ variables set. 66025 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 66026 66027 # Before generating output files, test if they exist. If they do, this is a reconfigure. 66028 # Since we can't properly handle the dependencies for this, warn the user about the situation 66029 if test -e $OUTPUT_ROOT/spec.gmk; then 66030 IS_RECONFIGURE=yes 66031 else 66032 IS_RECONFIGURE=no 66033 fi 66034 66035 66036 # At the end, call the custom hook. (Dummy macro if no custom sources available) 66037 66038 66039 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 66040 66041 # Keep feature lists sorted and free of duplicates 66042 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 66043 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 66044 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 66045 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 66046 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 66047 JVM_FEATURES_zeroshark="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zeroshark | $SORT -u))" 66048 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 66049 66050 # Validate features 66051 for variant in $JVM_VARIANTS; do 66052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 66053 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 66054 features_var_name=JVM_FEATURES_$variant 66055 JVM_FEATURES_TO_TEST=${!features_var_name} 66056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 66057 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 66058 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 66059 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 66060 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 66061 if test "x$INVALID_FEATURES" != x; then 66062 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 66063 fi 66064 done 66065 66066 66067 # We're messing a bit with internal autoconf variables to put the config.status 66068 # in the output directory instead of the current directory. 66069 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 66070 66071 # Create the actual output files. Now the main work of configure is done. 66072 cat >confcache <<\_ACEOF 66073 # This file is a shell script that caches the results of configure 66074 # tests run on this system so they can be shared between configure 66075 # scripts and configure runs, see configure's option --config-cache. 66076 # It is not useful on other systems. If it contains results you don't 66077 # want to keep, you may remove or edit it. 66078 # 66079 # config.status only pays attention to the cache file if you give it 66080 # the --recheck option to rerun configure. 66081 # 66082 # `ac_cv_env_foo' variables (set or unset) will be overridden when 66083 # loading this file, other *unset* `ac_cv_foo' will be assigned the 66084 # following values. 66085 66086 _ACEOF 66087 66088 # The following way of writing the cache mishandles newlines in values, 66089 # but we know of no workaround that is simple, portable, and efficient. 66090 # So, we kill variables containing newlines. 66091 # Ultrix sh set writes to stderr and can't be redirected directly, 66092 # and sets the high bit in the cache file unless we assign to the vars. 66093 ( 66094 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 66095 eval ac_val=\$$ac_var 66096 case $ac_val in #( 66097 *${as_nl}*) 66098 case $ac_var in #( 66099 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 66100 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 66101 esac 66102 case $ac_var in #( 66103 _ | IFS | as_nl) ;; #( 66104 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 66105 *) { eval $ac_var=; unset $ac_var;} ;; 66106 esac ;; 66107 esac 66108 done 66109 66110 (set) 2>&1 | 66111 case $as_nl`(ac_space=' '; set) 2>&1` in #( 66112 *${as_nl}ac_space=\ *) 66113 # `set' does not quote correctly, so add quotes: double-quote 66114 # substitution turns \\\\ into \\, and sed turns \\ into \. 66115 sed -n \ 66116 "s/'/'\\\\''/g; 66117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 66118 ;; #( 66119 *) 66120 # `set' quotes correctly as required by POSIX, so do not add quotes. 66121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 66122 ;; 66123 esac | 66124 sort 66125 ) | 66126 sed ' 66127 /^ac_cv_env_/b end 66128 t clear 66129 :clear 66130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 66131 t end 66132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 66133 :end' >>confcache 66134 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 66135 if test -w "$cache_file"; then 66136 if test "x$cache_file" != "x/dev/null"; then 66137 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 66138 $as_echo "$as_me: updating cache $cache_file" >&6;} 66139 if test ! -f "$cache_file" || test -h "$cache_file"; then 66140 cat confcache >"$cache_file" 66141 else 66142 case $cache_file in #( 66143 */* | ?:*) 66144 mv -f confcache "$cache_file"$$ && 66145 mv -f "$cache_file"$$ "$cache_file" ;; #( 66146 *) 66147 mv -f confcache "$cache_file" ;; 66148 esac 66149 fi 66150 fi 66151 else 66152 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 66153 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 66154 fi 66155 fi 66156 rm -f confcache 66157 66158 test "x$prefix" = xNONE && prefix=$ac_default_prefix 66159 # Let make expand exec_prefix. 66160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 66161 66162 # Transform confdefs.h into DEFS. 66163 # Protect against shell expansion while executing Makefile rules. 66164 # Protect against Makefile macro expansion. 66165 # 66166 # If the first sed substitution is executed (which looks for macros that 66167 # take arguments), then branch to the quote section. Otherwise, 66168 # look for a macro that doesn't take arguments. 66169 ac_script=' 66170 :mline 66171 /\\$/{ 66172 N 66173 s,\\\n,, 66174 b mline 66175 } 66176 t clear 66177 :clear 66178 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 66179 t quote 66180 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 66181 t quote 66182 b any 66183 :quote 66184 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 66185 s/\[/\\&/g 66186 s/\]/\\&/g 66187 s/\$/$$/g 66188 H 66189 :any 66190 ${ 66191 g 66192 s/^\n// 66193 s/\n/ /g 66194 p 66195 } 66196 ' 66197 DEFS=`sed -n "$ac_script" confdefs.h` 66198 66199 66200 ac_libobjs= 66201 ac_ltlibobjs= 66202 U= 66203 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 66204 # 1. Remove the extension, and $U if already installed. 66205 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 66206 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 66207 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 66208 # will be set to the directory where LIBOBJS objects are built. 66209 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 66210 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 66211 done 66212 LIBOBJS=$ac_libobjs 66213 66214 LTLIBOBJS=$ac_ltlibobjs 66215 66216 66217 66218 : "${CONFIG_STATUS=./config.status}" 66219 ac_write_fail=0 66220 ac_clean_files_save=$ac_clean_files 66221 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 66222 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 66223 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 66224 as_write_fail=0 66225 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 66226 #! $SHELL 66227 # Generated by $as_me. 66228 # Run this file to recreate the current configuration. 66229 # Compiler output produced by configure, useful for debugging 66230 # configure, is in config.log if it exists. 66231 66232 debug=false 66233 ac_cs_recheck=false 66234 ac_cs_silent=false 66235 66236 SHELL=\${CONFIG_SHELL-$SHELL} 66237 export SHELL 66238 _ASEOF 66239 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 66240 ## -------------------- ## 66241 ## M4sh Initialization. ## 66242 ## -------------------- ## 66243 66244 # Be more Bourne compatible 66245 DUALCASE=1; export DUALCASE # for MKS sh 66246 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 66247 emulate sh 66248 NULLCMD=: 66249 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 66250 # is contrary to our usage. Disable this feature. 66251 alias -g '${1+"$@"}'='"$@"' 66252 setopt NO_GLOB_SUBST 66253 else 66254 case `(set -o) 2>/dev/null` in #( 66255 *posix*) : 66256 set -o posix ;; #( 66257 *) : 66258 ;; 66259 esac 66260 fi 66261 66262 66263 as_nl=' 66264 ' 66265 export as_nl 66266 # Printing a long string crashes Solaris 7 /usr/bin/printf. 66267 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 66268 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 66269 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 66270 # Prefer a ksh shell builtin over an external printf program on Solaris, 66271 # but without wasting forks for bash or zsh. 66272 if test -z "$BASH_VERSION$ZSH_VERSION" \ 66273 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 66274 as_echo='print -r --' 66275 as_echo_n='print -rn --' 66276 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 66277 as_echo='printf %s\n' 66278 as_echo_n='printf %s' 66279 else 66280 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 66281 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 66282 as_echo_n='/usr/ucb/echo -n' 66283 else 66284 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 66285 as_echo_n_body='eval 66286 arg=$1; 66287 case $arg in #( 66288 *"$as_nl"*) 66289 expr "X$arg" : "X\\(.*\\)$as_nl"; 66290 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66291 esac; 66292 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66293 ' 66294 export as_echo_n_body 66295 as_echo_n='sh -c $as_echo_n_body as_echo' 66296 fi 66297 export as_echo_body 66298 as_echo='sh -c $as_echo_body as_echo' 66299 fi 66300 66301 # The user is always right. 66302 if test "${PATH_SEPARATOR+set}" != set; then 66303 PATH_SEPARATOR=: 66304 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 66305 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 66306 PATH_SEPARATOR=';' 66307 } 66308 fi 66309 66310 66311 # IFS 66312 # We need space, tab and new line, in precisely that order. Quoting is 66313 # there to prevent editors from complaining about space-tab. 66314 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 66315 # splitting by setting IFS to empty value.) 66316 IFS=" "" $as_nl" 66317 66318 # Find who we are. Look in the path if we contain no directory separator. 66319 as_myself= 66320 case $0 in #(( 66321 *[\\/]* ) as_myself=$0 ;; 66322 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66323 for as_dir in $PATH 66324 do 66325 IFS=$as_save_IFS 66326 test -z "$as_dir" && as_dir=. 66327 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 66328 done 66329 IFS=$as_save_IFS 66330 66331 ;; 66332 esac 66333 # We did not find ourselves, most probably we were run as `sh COMMAND' 66334 # in which case we are not to be found in the path. 66335 if test "x$as_myself" = x; then 66336 as_myself=$0 66337 fi 66338 if test ! -f "$as_myself"; then 66339 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 66340 exit 1 66341 fi 66342 66343 # Unset variables that we do not need and which cause bugs (e.g. in 66344 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 66345 # suppresses any "Segmentation fault" message there. '((' could 66346 # trigger a bug in pdksh 5.2.14. 66347 for as_var in BASH_ENV ENV MAIL MAILPATH 66348 do eval test x\${$as_var+set} = xset \ 66349 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 66350 done 66351 PS1='$ ' 66352 PS2='> ' 66353 PS4='+ ' 66354 66355 # NLS nuisances. 66356 LC_ALL=C 66357 export LC_ALL 66358 LANGUAGE=C 66359 export LANGUAGE 66360 66361 # CDPATH. 66362 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 66363 66364 66365 # as_fn_error STATUS ERROR [LINENO LOG_FD] 66366 # ---------------------------------------- 66367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 66368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 66369 # script with STATUS, using 1 if that was 0. 66370 as_fn_error () 66371 { 66372 as_status=$1; test $as_status -eq 0 && as_status=1 66373 if test "$4"; then 66374 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 66375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 66376 fi 66377 $as_echo "$as_me: error: $2" >&2 66378 as_fn_exit $as_status 66379 } # as_fn_error 66380 66381 66382 # as_fn_set_status STATUS 66383 # ----------------------- 66384 # Set $? to STATUS, without forking. 66385 as_fn_set_status () 66386 { 66387 return $1 66388 } # as_fn_set_status 66389 66390 # as_fn_exit STATUS 66391 # ----------------- 66392 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 66393 as_fn_exit () 66394 { 66395 set +e 66396 as_fn_set_status $1 66397 exit $1 66398 } # as_fn_exit 66399 66400 # as_fn_unset VAR 66401 # --------------- 66402 # Portably unset VAR. 66403 as_fn_unset () 66404 { 66405 { eval $1=; unset $1;} 66406 } 66407 as_unset=as_fn_unset 66408 # as_fn_append VAR VALUE 66409 # ---------------------- 66410 # Append the text in VALUE to the end of the definition contained in VAR. Take 66411 # advantage of any shell optimizations that allow amortized linear growth over 66412 # repeated appends, instead of the typical quadratic growth present in naive 66413 # implementations. 66414 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 66415 eval 'as_fn_append () 66416 { 66417 eval $1+=\$2 66418 }' 66419 else 66420 as_fn_append () 66421 { 66422 eval $1=\$$1\$2 66423 } 66424 fi # as_fn_append 66425 66426 # as_fn_arith ARG... 66427 # ------------------ 66428 # Perform arithmetic evaluation on the ARGs, and store the result in the 66429 # global $as_val. Take advantage of shells that can avoid forks. The arguments 66430 # must be portable across $(()) and expr. 66431 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 66432 eval 'as_fn_arith () 66433 { 66434 as_val=$(( $* )) 66435 }' 66436 else 66437 as_fn_arith () 66438 { 66439 as_val=`expr "$@" || test $? -eq 1` 66440 } 66441 fi # as_fn_arith 66442 66443 66444 if expr a : '\(a\)' >/dev/null 2>&1 && 66445 test "X`expr 00001 : '.*\(...\)'`" = X001; then 66446 as_expr=expr 66447 else 66448 as_expr=false 66449 fi 66450 66451 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 66452 as_basename=basename 66453 else 66454 as_basename=false 66455 fi 66456 66457 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 66458 as_dirname=dirname 66459 else 66460 as_dirname=false 66461 fi 66462 66463 as_me=`$as_basename -- "$0" || 66464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 66465 X"$0" : 'X\(//\)$' \| \ 66466 X"$0" : 'X\(/\)' \| . 2>/dev/null || 66467 $as_echo X/"$0" | 66468 sed '/^.*\/\([^/][^/]*\)\/*$/{ 66469 s//\1/ 66470 q 66471 } 66472 /^X\/\(\/\/\)$/{ 66473 s//\1/ 66474 q 66475 } 66476 /^X\/\(\/\).*/{ 66477 s//\1/ 66478 q 66479 } 66480 s/.*/./; q'` 66481 66482 # Avoid depending upon Character Ranges. 66483 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 66484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 66485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 66486 as_cr_digits='0123456789' 66487 as_cr_alnum=$as_cr_Letters$as_cr_digits 66488 66489 ECHO_C= ECHO_N= ECHO_T= 66490 case `echo -n x` in #((((( 66491 -n*) 66492 case `echo 'xy\c'` in 66493 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 66494 xy) ECHO_C='\c';; 66495 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 66496 ECHO_T=' ';; 66497 esac;; 66498 *) 66499 ECHO_N='-n';; 66500 esac 66501 66502 rm -f conf$$ conf$$.exe conf$$.file 66503 if test -d conf$$.dir; then 66504 rm -f conf$$.dir/conf$$.file 66505 else 66506 rm -f conf$$.dir 66507 mkdir conf$$.dir 2>/dev/null 66508 fi 66509 if (echo >conf$$.file) 2>/dev/null; then 66510 if ln -s conf$$.file conf$$ 2>/dev/null; then 66511 as_ln_s='ln -s' 66512 # ... but there are two gotchas: 66513 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 66514 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 66515 # In both cases, we have to default to `cp -pR'. 66516 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 66517 as_ln_s='cp -pR' 66518 elif ln conf$$.file conf$$ 2>/dev/null; then 66519 as_ln_s=ln 66520 else 66521 as_ln_s='cp -pR' 66522 fi 66523 else 66524 as_ln_s='cp -pR' 66525 fi 66526 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 66527 rmdir conf$$.dir 2>/dev/null 66528 66529 66530 # as_fn_mkdir_p 66531 # ------------- 66532 # Create "$as_dir" as a directory, including parents if necessary. 66533 as_fn_mkdir_p () 66534 { 66535 66536 case $as_dir in #( 66537 -*) as_dir=./$as_dir;; 66538 esac 66539 test -d "$as_dir" || eval $as_mkdir_p || { 66540 as_dirs= 66541 while :; do 66542 case $as_dir in #( 66543 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 66544 *) as_qdir=$as_dir;; 66545 esac 66546 as_dirs="'$as_qdir' $as_dirs" 66547 as_dir=`$as_dirname -- "$as_dir" || 66548 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 66549 X"$as_dir" : 'X\(//\)[^/]' \| \ 66550 X"$as_dir" : 'X\(//\)$' \| \ 66551 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 66552 $as_echo X"$as_dir" | 66553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 66554 s//\1/ 66555 q 66556 } 66557 /^X\(\/\/\)[^/].*/{ 66558 s//\1/ 66559 q 66560 } 66561 /^X\(\/\/\)$/{ 66562 s//\1/ 66563 q 66564 } 66565 /^X\(\/\).*/{ 66566 s//\1/ 66567 q 66568 } 66569 s/.*/./; q'` 66570 test -d "$as_dir" && break 66571 done 66572 test -z "$as_dirs" || eval "mkdir $as_dirs" 66573 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 66574 66575 66576 } # as_fn_mkdir_p 66577 if mkdir -p . 2>/dev/null; then 66578 as_mkdir_p='mkdir -p "$as_dir"' 66579 else 66580 test -d ./-p && rmdir ./-p 66581 as_mkdir_p=false 66582 fi 66583 66584 66585 # as_fn_executable_p FILE 66586 # ----------------------- 66587 # Test if FILE is an executable regular file. 66588 as_fn_executable_p () 66589 { 66590 test -f "$1" && test -x "$1" 66591 } # as_fn_executable_p 66592 as_test_x='test -x' 66593 as_executable_p=as_fn_executable_p 66594 66595 # Sed expression to map a string onto a valid CPP name. 66596 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 66597 66598 # Sed expression to map a string onto a valid variable name. 66599 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 66600 66601 66602 exec 6>&1 66603 ## ----------------------------------- ## 66604 ## Main body of $CONFIG_STATUS script. ## 66605 ## ----------------------------------- ## 66606 _ASEOF 66607 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 66608 66609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66610 # Save the log message, to keep $0 and so on meaningful, and to 66611 # report actual input values of CONFIG_FILES etc. instead of their 66612 # values after options handling. 66613 ac_log=" 66614 This file was extended by OpenJDK $as_me jdk9, which was 66615 generated by GNU Autoconf 2.69. Invocation command line was 66616 66617 CONFIG_FILES = $CONFIG_FILES 66618 CONFIG_HEADERS = $CONFIG_HEADERS 66619 CONFIG_LINKS = $CONFIG_LINKS 66620 CONFIG_COMMANDS = $CONFIG_COMMANDS 66621 $ $0 $@ 66622 66623 on `(hostname || uname -n) 2>/dev/null | sed 1q` 66624 " 66625 66626 _ACEOF 66627 66628 case $ac_config_files in *" 66629 "*) set x $ac_config_files; shift; ac_config_files=$*;; 66630 esac 66631 66632 66633 66634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66635 # Files that config.status was made for. 66636 config_files="$ac_config_files" 66637 66638 _ACEOF 66639 66640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66641 ac_cs_usage="\ 66642 \`$as_me' instantiates files and other configuration actions 66643 from templates according to the current configuration. Unless the files 66644 and actions are specified as TAGs, all are instantiated by default. 66645 66646 Usage: $0 [OPTION]... [TAG]... 66647 66648 -h, --help print this help, then exit 66649 -V, --version print version number and configuration settings, then exit 66650 --config print configuration, then exit 66651 -q, --quiet, --silent 66652 do not print progress messages 66653 -d, --debug don't remove temporary files 66654 --recheck update $as_me by reconfiguring in the same conditions 66655 --file=FILE[:TEMPLATE] 66656 instantiate the configuration file FILE 66657 66658 Configuration files: 66659 $config_files 66660 66661 Report bugs to <build-dev@openjdk.java.net>. 66662 OpenJDK home page: <http://openjdk.java.net>." 66663 66664 _ACEOF 66665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66666 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 66667 ac_cs_version="\\ 66668 OpenJDK config.status jdk9 66669 configured by $0, generated by GNU Autoconf 2.69, 66670 with options \\"\$ac_cs_config\\" 66671 66672 Copyright (C) 2012 Free Software Foundation, Inc. 66673 This config.status script is free software; the Free Software Foundation 66674 gives unlimited permission to copy, distribute and modify it." 66675 66676 ac_pwd='$ac_pwd' 66677 srcdir='$srcdir' 66678 AWK='$AWK' 66679 test -n "\$AWK" || AWK=awk 66680 _ACEOF 66681 66682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66683 # The default lists apply if the user does not specify any file. 66684 ac_need_defaults=: 66685 while test $# != 0 66686 do 66687 case $1 in 66688 --*=?*) 66689 ac_option=`expr "X$1" : 'X\([^=]*\)='` 66690 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 66691 ac_shift=: 66692 ;; 66693 --*=) 66694 ac_option=`expr "X$1" : 'X\([^=]*\)='` 66695 ac_optarg= 66696 ac_shift=: 66697 ;; 66698 *) 66699 ac_option=$1 66700 ac_optarg=$2 66701 ac_shift=shift 66702 ;; 66703 esac 66704 66705 case $ac_option in 66706 # Handling of the options. 66707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 66708 ac_cs_recheck=: ;; 66709 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 66710 $as_echo "$ac_cs_version"; exit ;; 66711 --config | --confi | --conf | --con | --co | --c ) 66712 $as_echo "$ac_cs_config"; exit ;; 66713 --debug | --debu | --deb | --de | --d | -d ) 66714 debug=: ;; 66715 --file | --fil | --fi | --f ) 66716 $ac_shift 66717 case $ac_optarg in 66718 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 66719 '') as_fn_error $? "missing file argument" ;; 66720 esac 66721 as_fn_append CONFIG_FILES " '$ac_optarg'" 66722 ac_need_defaults=false;; 66723 --he | --h | --help | --hel | -h ) 66724 $as_echo "$ac_cs_usage"; exit ;; 66725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 66726 | -silent | --silent | --silen | --sile | --sil | --si | --s) 66727 ac_cs_silent=: ;; 66728 66729 # This is an error. 66730 -*) as_fn_error $? "unrecognized option: \`$1' 66731 Try \`$0 --help' for more information." ;; 66732 66733 *) as_fn_append ac_config_targets " $1" 66734 ac_need_defaults=false ;; 66735 66736 esac 66737 shift 66738 done 66739 66740 ac_configure_extra_args= 66741 66742 if $ac_cs_silent; then 66743 exec 6>/dev/null 66744 ac_configure_extra_args="$ac_configure_extra_args --silent" 66745 fi 66746 66747 _ACEOF 66748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66749 if \$ac_cs_recheck; then 66750 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 66751 shift 66752 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 66753 CONFIG_SHELL='$SHELL' 66754 export CONFIG_SHELL 66755 exec "\$@" 66756 fi 66757 66758 _ACEOF 66759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66760 exec 5>>config.log 66761 { 66762 echo 66763 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 66764 ## Running $as_me. ## 66765 _ASBOX 66766 $as_echo "$ac_log" 66767 } >&5 66768 66769 _ACEOF 66770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66771 _ACEOF 66772 66773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66774 66775 # Handling of arguments. 66776 for ac_config_target in $ac_config_targets 66777 do 66778 case $ac_config_target in 66779 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 66780 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 66781 "$OUTPUT_ROOT/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 66782 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 66783 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 66784 66785 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 66786 esac 66787 done 66788 66789 66790 # If the user did not use the arguments to specify the items to instantiate, 66791 # then the envvar interface is used. Set only those that are not. 66792 # We use the long form for the default assignment because of an extremely 66793 # bizarre bug on SunOS 4.1.3. 66794 if $ac_need_defaults; then 66795 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 66796 fi 66797 66798 # Have a temporary directory for convenience. Make it in the build tree 66799 # simply because there is no reason against having it here, and in addition, 66800 # creating and moving files from /tmp can sometimes cause problems. 66801 # Hook for its removal unless debugging. 66802 # Note that there is a small window in which the directory will not be cleaned: 66803 # after its creation but before its name has been assigned to `$tmp'. 66804 $debug || 66805 { 66806 tmp= ac_tmp= 66807 trap 'exit_status=$? 66808 : "${ac_tmp:=$tmp}" 66809 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 66810 ' 0 66811 trap 'as_fn_exit 1' 1 2 13 15 66812 } 66813 # Create a (secure) tmp directory for tmp files. 66814 66815 { 66816 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 66817 test -d "$tmp" 66818 } || 66819 { 66820 tmp=./conf$$-$RANDOM 66821 (umask 077 && mkdir "$tmp") 66822 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 66823 ac_tmp=$tmp 66824 66825 # Set up the scripts for CONFIG_FILES section. 66826 # No need to generate them if there are no CONFIG_FILES. 66827 # This happens for instance with `./config.status config.h'. 66828 if test -n "$CONFIG_FILES"; then 66829 66830 66831 ac_cr=`echo X | tr X '\015'` 66832 # On cygwin, bash can eat \r inside `` if the user requested igncr. 66833 # But we know of no other shell where ac_cr would be empty at this 66834 # point, so we can use a bashism as a fallback. 66835 if test "x$ac_cr" = x; then 66836 eval ac_cr=\$\'\\r\' 66837 fi 66838 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 66839 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 66840 ac_cs_awk_cr='\\r' 66841 else 66842 ac_cs_awk_cr=$ac_cr 66843 fi 66844 66845 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 66846 _ACEOF 66847 66848 66849 { 66850 echo "cat >conf$$subs.awk <<_ACEOF" && 66851 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 66852 echo "_ACEOF" 66853 } >conf$$subs.sh || 66854 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 66855 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 66856 ac_delim='%!_!# ' 66857 for ac_last_try in false false false false false :; do 66858 . ./conf$$subs.sh || 66859 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 66860 66861 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 66862 if test $ac_delim_n = $ac_delim_num; then 66863 break 66864 elif $ac_last_try; then 66865 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 66866 else 66867 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 66868 fi 66869 done 66870 rm -f conf$$subs.sh 66871 66872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66873 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 66874 _ACEOF 66875 sed -n ' 66876 h 66877 s/^/S["/; s/!.*/"]=/ 66878 p 66879 g 66880 s/^[^!]*!// 66881 :repl 66882 t repl 66883 s/'"$ac_delim"'$// 66884 t delim 66885 :nl 66886 h 66887 s/\(.\{148\}\)..*/\1/ 66888 t more1 66889 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 66890 p 66891 n 66892 b repl 66893 :more1 66894 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 66895 p 66896 g 66897 s/.\{148\}// 66898 t nl 66899 :delim 66900 h 66901 s/\(.\{148\}\)..*/\1/ 66902 t more2 66903 s/["\\]/\\&/g; s/^/"/; s/$/"/ 66904 p 66905 b 66906 :more2 66907 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 66908 p 66909 g 66910 s/.\{148\}// 66911 t delim 66912 ' <conf$$subs.awk | sed ' 66913 /^[^""]/{ 66914 N 66915 s/\n// 66916 } 66917 ' >>$CONFIG_STATUS || ac_write_fail=1 66918 rm -f conf$$subs.awk 66919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66920 _ACAWK 66921 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 66922 for (key in S) S_is_set[key] = 1 66923 FS = "" 66924 66925 } 66926 { 66927 line = $ 0 66928 nfields = split(line, field, "@") 66929 substed = 0 66930 len = length(field[1]) 66931 for (i = 2; i < nfields; i++) { 66932 key = field[i] 66933 keylen = length(key) 66934 if (S_is_set[key]) { 66935 value = S[key] 66936 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 66937 len += length(value) + length(field[++i]) 66938 substed = 1 66939 } else 66940 len += 1 + keylen 66941 } 66942 66943 print line 66944 } 66945 66946 _ACAWK 66947 _ACEOF 66948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66949 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 66950 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 66951 else 66952 cat 66953 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 66954 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 66955 _ACEOF 66956 66957 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 66958 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 66959 # trailing colons and then remove the whole line if VPATH becomes empty 66960 # (actually we leave an empty line to preserve line numbers). 66961 if test "x$srcdir" = x.; then 66962 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 66963 h 66964 s/// 66965 s/^/:/ 66966 s/[ ]*$/:/ 66967 s/:\$(srcdir):/:/g 66968 s/:\${srcdir}:/:/g 66969 s/:@srcdir@:/:/g 66970 s/^:*// 66971 s/:*$// 66972 x 66973 s/\(=[ ]*\).*/\1/ 66974 G 66975 s/\n// 66976 s/^[^=]*=[ ]*$// 66977 }' 66978 fi 66979 66980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66981 fi # test -n "$CONFIG_FILES" 66982 66983 66984 eval set X " :F $CONFIG_FILES " 66985 shift 66986 for ac_tag 66987 do 66988 case $ac_tag in 66989 :[FHLC]) ac_mode=$ac_tag; continue;; 66990 esac 66991 case $ac_mode$ac_tag in 66992 :[FHL]*:*);; 66993 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 66994 :[FH]-) ac_tag=-:-;; 66995 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 66996 esac 66997 ac_save_IFS=$IFS 66998 IFS=: 66999 set x $ac_tag 67000 IFS=$ac_save_IFS 67001 shift 67002 ac_file=$1 67003 shift 67004 67005 case $ac_mode in 67006 :L) ac_source=$1;; 67007 :[FH]) 67008 ac_file_inputs= 67009 for ac_f 67010 do 67011 case $ac_f in 67012 -) ac_f="$ac_tmp/stdin";; 67013 *) # Look for the file first in the build tree, then in the source tree 67014 # (if the path is not absolute). The absolute path cannot be DOS-style, 67015 # because $ac_f cannot contain `:'. 67016 test -f "$ac_f" || 67017 case $ac_f in 67018 [\\/$]*) false;; 67019 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 67020 esac || 67021 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 67022 esac 67023 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 67024 as_fn_append ac_file_inputs " '$ac_f'" 67025 done 67026 67027 # Let's still pretend it is `configure' which instantiates (i.e., don't 67028 # use $as_me), people would be surprised to read: 67029 # /* config.h. Generated by config.status. */ 67030 configure_input='Generated from '` 67031 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 67032 `' by configure.' 67033 if test x"$ac_file" != x-; then 67034 configure_input="$ac_file. $configure_input" 67035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 67036 $as_echo "$as_me: creating $ac_file" >&6;} 67037 fi 67038 # Neutralize special characters interpreted by sed in replacement strings. 67039 case $configure_input in #( 67040 *\&* | *\|* | *\\* ) 67041 ac_sed_conf_input=`$as_echo "$configure_input" | 67042 sed 's/[\\\\&|]/\\\\&/g'`;; #( 67043 *) ac_sed_conf_input=$configure_input;; 67044 esac 67045 67046 case $ac_tag in 67047 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 67048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 67049 esac 67050 ;; 67051 esac 67052 67053 ac_dir=`$as_dirname -- "$ac_file" || 67054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 67055 X"$ac_file" : 'X\(//\)[^/]' \| \ 67056 X"$ac_file" : 'X\(//\)$' \| \ 67057 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 67058 $as_echo X"$ac_file" | 67059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 67060 s//\1/ 67061 q 67062 } 67063 /^X\(\/\/\)[^/].*/{ 67064 s//\1/ 67065 q 67066 } 67067 /^X\(\/\/\)$/{ 67068 s//\1/ 67069 q 67070 } 67071 /^X\(\/\).*/{ 67072 s//\1/ 67073 q 67074 } 67075 s/.*/./; q'` 67076 as_dir="$ac_dir"; as_fn_mkdir_p 67077 ac_builddir=. 67078 67079 case "$ac_dir" in 67080 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 67081 *) 67082 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 67083 # A ".." for each directory in $ac_dir_suffix. 67084 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 67085 case $ac_top_builddir_sub in 67086 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 67087 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 67088 esac ;; 67089 esac 67090 ac_abs_top_builddir=$ac_pwd 67091 ac_abs_builddir=$ac_pwd$ac_dir_suffix 67092 # for backward compatibility: 67093 ac_top_builddir=$ac_top_build_prefix 67094 67095 case $srcdir in 67096 .) # We are building in place. 67097 ac_srcdir=. 67098 ac_top_srcdir=$ac_top_builddir_sub 67099 ac_abs_top_srcdir=$ac_pwd ;; 67100 [\\/]* | ?:[\\/]* ) # Absolute name. 67101 ac_srcdir=$srcdir$ac_dir_suffix; 67102 ac_top_srcdir=$srcdir 67103 ac_abs_top_srcdir=$srcdir ;; 67104 *) # Relative name. 67105 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 67106 ac_top_srcdir=$ac_top_build_prefix$srcdir 67107 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 67108 esac 67109 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 67110 67111 67112 case $ac_mode in 67113 :F) 67114 # 67115 # CONFIG_FILE 67116 # 67117 67118 _ACEOF 67119 67120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67121 # If the template does not know about datarootdir, expand it. 67122 # FIXME: This hack should be removed a few years after 2.60. 67123 ac_datarootdir_hack=; ac_datarootdir_seen= 67124 ac_sed_dataroot=' 67125 /datarootdir/ { 67126 p 67127 q 67128 } 67129 /@datadir@/p 67130 /@docdir@/p 67131 /@infodir@/p 67132 /@localedir@/p 67133 /@mandir@/p' 67134 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 67135 *datarootdir*) ac_datarootdir_seen=yes;; 67136 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 67137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 67138 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 67139 _ACEOF 67140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67141 ac_datarootdir_hack=' 67142 s&@datadir@&$datadir&g 67143 s&@docdir@&$docdir&g 67144 s&@infodir@&$infodir&g 67145 s&@localedir@&$localedir&g 67146 s&@mandir@&$mandir&g 67147 s&\\\${datarootdir}&$datarootdir&g' ;; 67148 esac 67149 _ACEOF 67150 67151 # Neutralize VPATH when `$srcdir' = `.'. 67152 # Shell code in configure.ac might set extrasub. 67153 # FIXME: do we really want to maintain this feature? 67154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 67155 ac_sed_extra="$ac_vpsub 67156 $extrasub 67157 _ACEOF 67158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 67159 :t 67160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 67161 s|@configure_input@|$ac_sed_conf_input|;t t 67162 s&@top_builddir@&$ac_top_builddir_sub&;t t 67163 s&@top_build_prefix@&$ac_top_build_prefix&;t t 67164 s&@srcdir@&$ac_srcdir&;t t 67165 s&@abs_srcdir@&$ac_abs_srcdir&;t t 67166 s&@top_srcdir@&$ac_top_srcdir&;t t 67167 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 67168 s&@builddir@&$ac_builddir&;t t 67169 s&@abs_builddir@&$ac_abs_builddir&;t t 67170 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 67171 $ac_datarootdir_hack 67172 " 67173 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 67174 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 67175 67176 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 67177 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 67178 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 67179 "$ac_tmp/out"`; test -z "$ac_out"; } && 67180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 67181 which seems to be undefined. Please make sure it is defined" >&5 67182 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 67183 which seems to be undefined. Please make sure it is defined" >&2;} 67184 67185 rm -f "$ac_tmp/stdin" 67186 case $ac_file in 67187 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 67188 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 67189 esac \ 67190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 67191 ;; 67192 67193 67194 67195 esac 67196 67197 done # for ac_tag 67198 67199 67200 as_fn_exit 0 67201 _ACEOF 67202 ac_clean_files=$ac_clean_files_save 67203 67204 test $ac_write_fail = 0 || 67205 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 67206 67207 67208 # configure is writing to config.log, and then calls config.status. 67209 # config.status does its own redirection, appending to config.log. 67210 # Unfortunately, on DOS this fails, as config.log is still kept open 67211 # by configure, so config.status won't be able to write to it; its 67212 # output is simply discarded. So we exec the FD to /dev/null, 67213 # effectively closing config.log, so it can be properly (re)opened and 67214 # appended to by config.status. When coming back to configure, we 67215 # need to make the FD available again. 67216 if test "$no_create" != yes; then 67217 ac_cs_success=: 67218 ac_config_status_args= 67219 test "$silent" = yes && 67220 ac_config_status_args="$ac_config_status_args --quiet" 67221 exec 5>/dev/null 67222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 67223 exec 5>>config.log 67224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 67225 # would make configure fail if this is the last instruction. 67226 $ac_cs_success || as_fn_exit 1 67227 fi 67228 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 67229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 67230 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 67231 fi 67232 67233 67234 # After AC_OUTPUT, we need to do final work 67235 67236 67237 # Try to move config.log (generated by autoconf) to the configure-support directory. 67238 if test -e ./config.log; then 67239 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 67240 fi 67241 67242 # Rotate our log file (configure.log) 67243 if test -e "$OUTPUT_ROOT/configure.log.old"; then 67244 $RM -f "$OUTPUT_ROOT/configure.log.old" 67245 fi 67246 if test -e "$OUTPUT_ROOT/configure.log"; then 67247 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 67248 fi 67249 67250 # Move configure.log from current directory to the build output root 67251 if test -e ./configure.log; then 67252 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 67253 fi 67254 67255 # Make the compare script executable 67256 $CHMOD +x $OUTPUT_ROOT/compare.sh 67257 67258 67259 # Finally output some useful information to the user 67260 67261 # Finally output some useful information to the user 67262 67263 printf "\n" 67264 printf "====================================================\n" 67265 if test "x$no_create" != "xyes"; then 67266 if test "x$IS_RECONFIGURE" != "xyes"; then 67267 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 67268 else 67269 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 67270 fi 67271 else 67272 if test "x$IS_RECONFIGURE" != "xyes"; then 67273 printf "A configuration has been successfully checked but not created\n" 67274 else 67275 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 67276 fi 67277 fi 67278 if test "x$CONFIGURE_COMMAND_LINE" != x; then 67279 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 67280 else 67281 printf "using default settings.\n" 67282 fi 67283 67284 printf "\n" 67285 printf "Configuration summary:\n" 67286 printf "* Debug level: $DEBUG_LEVEL\n" 67287 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 67288 printf "* JDK variant: $JDK_VARIANT\n" 67289 printf "* JVM variants: $JVM_VARIANTS\n" 67290 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 67291 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 67292 67293 printf "\n" 67294 printf "Tools summary:\n" 67295 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 67296 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 67297 fi 67298 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 67299 if test "x$TOOLCHAIN_VERSION" != "x"; then 67300 print_version=" $TOOLCHAIN_VERSION" 67301 fi 67302 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 67303 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 67304 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 67305 67306 printf "\n" 67307 printf "Build performance summary:\n" 67308 printf "* Cores to use: $JOBS\n" 67309 printf "* Memory limit: $MEMORY_SIZE MB\n" 67310 if test "x$CCACHE_STATUS" != "x"; then 67311 printf "* ccache status: $CCACHE_STATUS\n" 67312 fi 67313 printf "\n" 67314 67315 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 67316 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 67317 printf "will result in longer build times.\n" 67318 printf "\n" 67319 fi 67320 67321 if test "x$FOUND_ALT_VARIABLES" != "x"; then 67322 printf "WARNING: You have old-style ALT_ environment variables set.\n" 67323 printf "These are not respected, and will be ignored. It is recommended\n" 67324 printf "that you clean your environment. The following variables are set:\n" 67325 printf "$FOUND_ALT_VARIABLES\n" 67326 printf "\n" 67327 fi 67328 67329 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 67330 printf "WARNING: Your build output directory is not on a local disk.\n" 67331 printf "This will severely degrade build performance!\n" 67332 printf "It is recommended that you create an output directory on a local disk,\n" 67333 printf "and run the configure script again from that directory.\n" 67334 printf "\n" 67335 fi 67336 67337 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 67338 printf "WARNING: The result of this configuration has overridden an older\n" 67339 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 67340 printf "proper build. Failure to do so might result in strange build problems.\n" 67341 printf "\n" 67342 fi 67343 67344 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 67345 printf "WARNING: The result of this configuration was not saved.\n" 67346 printf "You should run without '--no-create | -n' to create the configuration.\n" 67347 printf "\n" 67348 fi 67349 67350 67351 67352 # Locate config.log. 67353 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 67354 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 67355 elif test -e "./config.log"; then 67356 CONFIG_LOG_PATH="." 67357 fi 67358 67359 if test -e "$CONFIG_LOG_PATH/config.log"; then 67360 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 67361 if test $? -eq 0; then 67362 printf "The following warnings were produced. Repeated here for convenience:\n" 67363 # We must quote sed expression (using []) to stop m4 from eating the []. 67364 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 67365 printf "\n" 67366 fi 67367 fi 67368