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 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA_FLAGS 637 SJAVAC_SERVER_JAVA 638 JAVA_TOOL_FLAGS_SMALL 639 JAVA_FLAGS_SMALL 640 JAVA_FLAGS_BIG 641 JAVA_FLAGS 642 JOBS 643 MEMORY_SIZE 644 NUM_CORES 645 ENABLE_INTREE_EC 646 SALIB_NAME 647 HOTSPOT_MAKE_ARGS 648 MSVCP_DLL 649 MSVCR_DLL 650 LIBCXX 651 LLVM_LIBS 652 LLVM_LDFLAGS 653 LLVM_CFLAGS 654 LLVM_CONFIG 655 LIBFFI_LIBS 656 LIBFFI_CFLAGS 657 STATIC_CXX_SETTING 658 LIBDL 659 LIBM 660 LIBZIP_CAN_USE_MMAP 661 USE_EXTERNAL_LIBZ 662 USE_EXTERNAL_LIBPNG 663 PNG_LIBS 664 PNG_CFLAGS 665 USE_EXTERNAL_LCMS 666 LCMS_LIBS 667 LCMS_CFLAGS 668 USE_EXTERNAL_LIBGIF 669 USE_EXTERNAL_LIBJPEG 670 ALSA_LIBS 671 ALSA_CFLAGS 672 FREETYPE_BUNDLE_LIB_PATH 673 FREETYPE_LIBS 674 FREETYPE_CFLAGS 675 CUPS_CFLAGS 676 X_EXTRA_LIBS 677 X_LIBS 678 X_PRE_LIBS 679 X_CFLAGS 680 XMKMF 681 FIXPATH 682 GCOV_ENABLED 683 ZIP_DEBUGINFO_FILES 684 ENABLE_DEBUG_SYMBOLS 685 CFLAGS_WARNINGS_ARE_ERRORS 686 DISABLE_WARNING_PREFIX 687 WARNINGS_AS_ERRORS 688 COMPILER_SUPPORTS_TARGET_BITS_FLAG 689 ZERO_ARCHFLAG 690 LDFLAGS_TESTEXE_SUFFIX 691 LDFLAGS_TESTLIB_SUFFIX 692 LDFLAGS_TESTEXE 693 LDFLAGS_TESTLIB 694 LDFLAGS_CXX_JDK 695 LDFLAGS_JDKEXE_SUFFIX 696 LDFLAGS_JDKLIB_SUFFIX 697 LDFLAGS_JDKEXE 698 LDFLAGS_JDKLIB 699 CXXFLAGS_TESTEXE 700 CXXFLAGS_TESTLIB 701 CFLAGS_TESTEXE 702 CFLAGS_TESTLIB 703 CXXFLAGS_JDKEXE 704 CXXFLAGS_JDKLIB 705 CFLAGS_JDKEXE 706 CFLAGS_JDKLIB 707 MACOSX_VERSION_MIN 708 LEGACY_EXTRA_LDFLAGS 709 LEGACY_EXTRA_CXXFLAGS 710 LEGACY_EXTRA_CFLAGS 711 CXX_O_FLAG_NONE 712 CXX_O_FLAG_DEBUG 713 CXX_O_FLAG_NORM 714 CXX_O_FLAG_HI 715 CXX_O_FLAG_HIGHEST 716 C_O_FLAG_NONE 717 C_O_FLAG_DEBUG 718 C_O_FLAG_NORM 719 C_O_FLAG_HI 720 C_O_FLAG_HIGHEST 721 CXXFLAGS_DEBUG_OPTIONS 722 CFLAGS_DEBUG_OPTIONS 723 CXXFLAGS_DEBUG_SYMBOLS 724 CFLAGS_DEBUG_SYMBOLS 725 CXX_FLAG_DEPS 726 C_FLAG_DEPS 727 SET_SHARED_LIBRARY_MAPFILE 728 SET_SHARED_LIBRARY_NAME 729 SET_SHARED_LIBRARY_ORIGIN 730 SET_EXECUTABLE_ORIGIN 731 CXX_FLAG_REORDER 732 C_FLAG_REORDER 733 SYSROOT_LDFLAGS 734 SYSROOT_CFLAGS 735 RC_FLAGS 736 AR_OUT_OPTION 737 LD_OUT_OPTION 738 EXE_OUT_OPTION 739 CC_OUT_OPTION 740 POST_MCS_CMD 741 POST_STRIP_CMD 742 ARFLAGS 743 COMPILER_TARGET_BITS_FLAG 744 JT_HOME 745 JTREGEXE 746 USING_BROKEN_SUSE_LD 747 PACKAGE_PATH 748 LDEXECXX 749 LDEXE 750 USE_CLANG 751 HOTSPOT_LD 752 HOTSPOT_CXX 753 HOTSPOT_RC 754 HOTSPOT_MT 755 BUILD_LD 756 BUILD_CXX 757 BUILD_CC 758 ac_ct_OBJDUMP 759 OBJDUMP 760 ac_ct_OBJCOPY 761 OBJCOPY 762 ac_ct_NM 763 ac_ct_STRIP 764 MCS 765 GNM 766 NM 767 STRIP 768 MSBUILD 769 DUMPBIN 770 RC 771 MT 772 LIPO 773 ac_ct_AR 774 AR 775 AS 776 LDCXX 777 LD 778 CXXCPP 779 CPP 780 ac_ct_CXX 781 CXXFLAGS 782 CXX 783 ac_ct_PROPER_COMPILER_CXX 784 PROPER_COMPILER_CXX 785 TOOLCHAIN_PATH_CXX 786 POTENTIAL_CXX 787 OBJEXT 788 EXEEXT 789 ac_ct_CC 790 CPPFLAGS 791 LDFLAGS 792 CFLAGS 793 CC 794 ac_ct_PROPER_COMPILER_CC 795 PROPER_COMPILER_CC 796 TOOLCHAIN_PATH_CC 797 POTENTIAL_CC 798 VS_LIB 799 VS_INCLUDE 800 VS_PATH 801 CYGWIN_LINK 802 EXE_SUFFIX 803 OBJ_SUFFIX 804 STATIC_LIBRARY 805 SHARED_LIBRARY 806 STATIC_LIBRARY_SUFFIX 807 SHARED_LIBRARY_SUFFIX 808 LIBRARY_PREFIX 809 TOOLCHAIN_TYPE 810 BUILD_HOTSPOT 811 HOTSPOT_DIST 812 BUILD_OUTPUT 813 OVERRIDE_SRC_ROOT 814 ADD_SRC_ROOT 815 JDK_TOPDIR 816 NASHORN_TOPDIR 817 HOTSPOT_TOPDIR 818 JAXWS_TOPDIR 819 JAXP_TOPDIR 820 CORBA_TOPDIR 821 LANGTOOLS_TOPDIR 822 JAVAC_FLAGS 823 BOOT_JDK_SOURCETARGET 824 JARSIGNER 825 NATIVE2ASCII 826 JAR 827 JAVAH 828 JAVAC 829 JAVA 830 BOOT_JDK 831 JAVA_CHECK 832 JAVAC_CHECK 833 COOKED_BUILD_NUMBER 834 JDK_VERSION 835 COPYRIGHT_YEAR 836 MACOSX_BUNDLE_ID_BASE 837 MACOSX_BUNDLE_NAME_BASE 838 COMPANY_NAME 839 JDK_RC_PLATFORM_NAME 840 PRODUCT_SUFFIX 841 PRODUCT_NAME 842 LAUNCHER_NAME 843 MILESTONE 844 JDK_BUILD_NUMBER 845 JDK_UPDATE_VERSION 846 JDK_MICRO_VERSION 847 JDK_MINOR_VERSION 848 JDK_MAJOR_VERSION 849 USER_RELEASE_SUFFIX 850 COMPRESS_JARS 851 RMICONNECTOR_IIOP 852 UNLIMITED_CRYPTO 853 CACERTS_FILE 854 TEST_IN_BUILD 855 BUILD_HEADLESS 856 SUPPORT_HEADFUL 857 SUPPORT_HEADLESS 858 BDEPS_FTP 859 BDEPS_UNZIP 860 OS_VERSION_MICRO 861 OS_VERSION_MINOR 862 OS_VERSION_MAJOR 863 PKG_CONFIG 864 BASH_ARGS 865 CODESIGN 866 XATTR 867 DSYMUTIL 868 IS_GNU_TIME 869 TIME 870 STAT 871 HG 872 READELF 873 OTOOL 874 LDD 875 ZIP 876 UNZIP 877 FIND_DELETE 878 OUTPUT_SYNC 879 OUTPUT_SYNC_SUPPORTED 880 MAKE 881 CHECK_TOOLSDIR_MAKE 882 CHECK_TOOLSDIR_GMAKE 883 CHECK_MAKE 884 CHECK_GMAKE 885 PKGHANDLER 886 CONFIGURESUPPORT_OUTPUTDIR 887 OUTPUT_ROOT 888 CONF_NAME 889 SPEC 890 SDKROOT 891 XCODEBUILD 892 BUILD_VARIANT_RELEASE 893 DEBUG_CLASSFILES 894 FASTDEBUG 895 VARIANT 896 DEBUG_LEVEL 897 MACOSX_UNIVERSAL 898 INCLUDE_SA 899 JVM_VARIANT_CORE 900 JVM_VARIANT_ZEROSHARK 901 JVM_VARIANT_ZERO 902 JVM_VARIANT_KERNEL 903 JVM_VARIANT_MINIMAL1 904 JVM_VARIANT_CLIENT 905 JVM_VARIANT_SERVER 906 JVM_VARIANTS 907 JVM_INTERPRETER 908 JDK_VARIANT 909 SET_OPENJDK 910 CANONICAL_TOPDIR 911 ORIGINAL_TOPDIR 912 TOPDIR 913 PATH_SEP 914 ZERO_ARCHDEF 915 DEFINE_CROSS_COMPILE_ARCH 916 LP64 917 OPENJDK_TARGET_OS_EXPORT_DIR 918 OPENJDK_TARGET_CPU_JLI_CFLAGS 919 OPENJDK_TARGET_CPU_OSARCH 920 OPENJDK_TARGET_CPU_ISADIR 921 OPENJDK_TARGET_CPU_LIBDIR 922 OPENJDK_TARGET_CPU_LEGACY_LIB 923 OPENJDK_TARGET_CPU_LEGACY 924 REQUIRED_OS_VERSION 925 REQUIRED_OS_NAME 926 COMPILE_TYPE 927 OPENJDK_TARGET_CPU_ENDIAN 928 OPENJDK_TARGET_CPU_BITS 929 OPENJDK_TARGET_CPU_ARCH 930 OPENJDK_TARGET_CPU 931 OPENJDK_TARGET_OS_ENV 932 OPENJDK_TARGET_OS_TYPE 933 OPENJDK_TARGET_OS 934 OPENJDK_BUILD_CPU_ENDIAN 935 OPENJDK_BUILD_CPU_BITS 936 OPENJDK_BUILD_CPU_ARCH 937 OPENJDK_BUILD_CPU 938 OPENJDK_BUILD_OS_ENV 939 OPENJDK_BUILD_OS_TYPE 940 OPENJDK_BUILD_OS 941 OPENJDK_BUILD_AUTOCONF_NAME 942 OPENJDK_TARGET_AUTOCONF_NAME 943 target_os 944 target_vendor 945 target_cpu 946 target 947 host_os 948 host_vendor 949 host_cpu 950 host 951 build_os 952 build_vendor 953 build_cpu 954 build 955 CPIO 956 SETFILE 957 DF 958 READLINK 959 CYGPATH 960 SED 961 FGREP 962 EGREP 963 GREP 964 AWK 965 XARGS 966 WHICH 967 WC 968 UNIQ 969 UNAME 970 TR 971 TOUCH 972 TEE 973 TAR 974 TAIL 975 SORT 976 SH 977 RM 978 PRINTF 979 NAWK 980 MV 981 MKTEMP 982 MKDIR 983 LS 984 LN 985 HEAD 986 FIND 987 FILE 988 EXPR 989 ECHO 990 DIRNAME 991 DIFF 992 DATE 993 CUT 994 CP 995 COMM 996 CMP 997 CHMOD 998 CAT 999 BASH 1000 BASENAME 1001 DATE_WHEN_CONFIGURED 1002 ORIGINAL_PATH 1003 CONFIGURE_COMMAND_LINE 1004 target_alias 1005 host_alias 1006 build_alias 1007 LIBS 1008 ECHO_T 1009 ECHO_N 1010 ECHO_C 1011 DEFS 1012 mandir 1013 localedir 1014 libdir 1015 psdir 1016 pdfdir 1017 dvidir 1018 htmldir 1019 infodir 1020 docdir 1021 oldincludedir 1022 includedir 1023 localstatedir 1024 sharedstatedir 1025 sysconfdir 1026 datadir 1027 datarootdir 1028 libexecdir 1029 sbindir 1030 bindir 1031 program_transform_name 1032 prefix 1033 exec_prefix 1034 PACKAGE_URL 1035 PACKAGE_BUGREPORT 1036 PACKAGE_STRING 1037 PACKAGE_VERSION 1038 PACKAGE_TARNAME 1039 PACKAGE_NAME 1040 PATH_SEPARATOR 1041 SHELL' 1042 ac_subst_files='' 1043 ac_user_opts=' 1044 enable_option_checking 1045 with_target_bits 1046 enable_openjdk_only 1047 with_custom_make_dir 1048 with_jdk_variant 1049 with_jvm_interpreter 1050 with_jvm_variants 1051 enable_debug 1052 with_debug_level 1053 with_devkit 1054 with_sys_root 1055 with_sysroot 1056 with_tools_dir 1057 with_toolchain_path 1058 with_extra_path 1059 with_sdk_name 1060 with_conf_name 1061 with_output_sync 1062 with_builddeps_conf 1063 with_builddeps_server 1064 with_builddeps_dir 1065 with_builddeps_group 1066 enable_headful 1067 enable_hotspot_test_in_build 1068 with_cacerts_file 1069 enable_unlimited_crypto 1070 enable_rmiconnector_iiop 1071 with_milestone 1072 with_update_version 1073 with_user_release_suffix 1074 with_build_number 1075 with_copyright_year 1076 with_boot_jdk 1077 with_add_source_root 1078 with_override_source_root 1079 with_adds_and_overrides 1080 with_override_langtools 1081 with_override_corba 1082 with_override_jaxp 1083 with_override_jaxws 1084 with_override_hotspot 1085 with_override_nashorn 1086 with_override_jdk 1087 with_import_hotspot 1088 with_toolchain_type 1089 with_toolchain_version 1090 with_jtreg 1091 with_extra_cflags 1092 with_extra_cxxflags 1093 with_extra_ldflags 1094 enable_warnings_as_errors 1095 enable_debug_symbols 1096 enable_zip_debug_info 1097 enable_native_coverage 1098 with_x 1099 with_cups 1100 with_cups_include 1101 with_freetype 1102 with_freetype_include 1103 with_freetype_lib 1104 with_freetype_src 1105 enable_freetype_bundling 1106 with_alsa 1107 with_alsa_include 1108 with_alsa_lib 1109 with_libjpeg 1110 with_giflib 1111 with_lcms 1112 with_libpng 1113 with_zlib 1114 with_stdc__lib 1115 with_msvcr_dll 1116 with_msvcp_dll 1117 with_dxsdk 1118 with_dxsdk_lib 1119 with_dxsdk_include 1120 with_num_cores 1121 with_memory_size 1122 with_jobs 1123 with_boot_jdk_jvmargs 1124 with_sjavac_server_java 1125 enable_sjavac 1126 enable_precompiled_headers 1127 enable_ccache 1128 with_ccache_dir 1129 ' 1130 ac_precious_vars='build_alias 1131 host_alias 1132 target_alias 1133 BASENAME 1134 BASH 1135 CAT 1136 CHMOD 1137 CMP 1138 COMM 1139 CP 1140 CUT 1141 DATE 1142 DIFF 1143 DIRNAME 1144 ECHO 1145 EXPR 1146 FILE 1147 FIND 1148 HEAD 1149 LN 1150 LS 1151 MKDIR 1152 MKTEMP 1153 MV 1154 NAWK 1155 PRINTF 1156 RM 1157 SH 1158 SORT 1159 TAIL 1160 TAR 1161 TEE 1162 TOUCH 1163 TR 1164 UNAME 1165 UNIQ 1166 WC 1167 WHICH 1168 XARGS 1169 AWK 1170 GREP 1171 EGREP 1172 FGREP 1173 SED 1174 CYGPATH 1175 READLINK 1176 DF 1177 SETFILE 1178 CPIO 1179 UNZIP 1180 ZIP 1181 LDD 1182 OTOOL 1183 READELF 1184 HG 1185 STAT 1186 TIME 1187 DSYMUTIL 1188 XATTR 1189 CODESIGN 1190 PKG_CONFIG 1191 JAVA 1192 JAVAC 1193 JAVAH 1194 JAR 1195 NATIVE2ASCII 1196 JARSIGNER 1197 CC 1198 CFLAGS 1199 LDFLAGS 1200 LIBS 1201 CPPFLAGS 1202 CXX 1203 CXXFLAGS 1204 CCC 1205 CPP 1206 CXXCPP 1207 AS 1208 AR 1209 LIPO 1210 STRIP 1211 NM 1212 GNM 1213 MCS 1214 OBJCOPY 1215 OBJDUMP 1216 BUILD_CC 1217 BUILD_CXX 1218 BUILD_LD 1219 JTREGEXE 1220 XMKMF 1221 FREETYPE_CFLAGS 1222 FREETYPE_LIBS 1223 ALSA_CFLAGS 1224 ALSA_LIBS 1225 LCMS_CFLAGS 1226 LCMS_LIBS 1227 PNG_CFLAGS 1228 PNG_LIBS 1229 LIBFFI_CFLAGS 1230 LIBFFI_LIBS 1231 CCACHE' 1232 1233 1234 # Initialize some variables set by options. 1235 ac_init_help= 1236 ac_init_version=false 1237 ac_unrecognized_opts= 1238 ac_unrecognized_sep= 1239 # The variables have the same names as the options, with 1240 # dashes changed to underlines. 1241 cache_file=/dev/null 1242 exec_prefix=NONE 1243 no_create= 1244 no_recursion= 1245 prefix=NONE 1246 program_prefix=NONE 1247 program_suffix=NONE 1248 program_transform_name=s,x,x, 1249 silent= 1250 site= 1251 srcdir= 1252 verbose= 1253 x_includes=NONE 1254 x_libraries=NONE 1255 1256 # Installation directory options. 1257 # These are left unexpanded so users can "make install exec_prefix=/foo" 1258 # and all the variables that are supposed to be based on exec_prefix 1259 # by default will actually change. 1260 # Use braces instead of parens because sh, perl, etc. also accept them. 1261 # (The list follows the same order as the GNU Coding Standards.) 1262 bindir='${exec_prefix}/bin' 1263 sbindir='${exec_prefix}/sbin' 1264 libexecdir='${exec_prefix}/libexec' 1265 datarootdir='${prefix}/share' 1266 datadir='${datarootdir}' 1267 sysconfdir='${prefix}/etc' 1268 sharedstatedir='${prefix}/com' 1269 localstatedir='${prefix}/var' 1270 includedir='${prefix}/include' 1271 oldincludedir='/usr/include' 1272 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1273 infodir='${datarootdir}/info' 1274 htmldir='${docdir}' 1275 dvidir='${docdir}' 1276 pdfdir='${docdir}' 1277 psdir='${docdir}' 1278 libdir='${exec_prefix}/lib' 1279 localedir='${datarootdir}/locale' 1280 mandir='${datarootdir}/man' 1281 1282 ac_prev= 1283 ac_dashdash= 1284 for ac_option 1285 do 1286 # If the previous option needs an argument, assign it. 1287 if test -n "$ac_prev"; then 1288 eval $ac_prev=\$ac_option 1289 ac_prev= 1290 continue 1291 fi 1292 1293 case $ac_option in 1294 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1295 *=) ac_optarg= ;; 1296 *) ac_optarg=yes ;; 1297 esac 1298 1299 # Accept the important Cygnus configure options, so we can diagnose typos. 1300 1301 case $ac_dashdash$ac_option in 1302 --) 1303 ac_dashdash=yes ;; 1304 1305 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1306 ac_prev=bindir ;; 1307 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1308 bindir=$ac_optarg ;; 1309 1310 -build | --build | --buil | --bui | --bu) 1311 ac_prev=build_alias ;; 1312 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1313 build_alias=$ac_optarg ;; 1314 1315 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1316 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1317 ac_prev=cache_file ;; 1318 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1319 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1320 cache_file=$ac_optarg ;; 1321 1322 --config-cache | -C) 1323 cache_file=config.cache ;; 1324 1325 -datadir | --datadir | --datadi | --datad) 1326 ac_prev=datadir ;; 1327 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1328 datadir=$ac_optarg ;; 1329 1330 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1331 | --dataroo | --dataro | --datar) 1332 ac_prev=datarootdir ;; 1333 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1334 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1335 datarootdir=$ac_optarg ;; 1336 1337 -disable-* | --disable-*) 1338 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1339 # Reject names that are not valid shell variable names. 1340 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1341 as_fn_error $? "invalid feature name: $ac_useropt" 1342 ac_useropt_orig=$ac_useropt 1343 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1344 case $ac_user_opts in 1345 *" 1346 "enable_$ac_useropt" 1347 "*) ;; 1348 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1349 ac_unrecognized_sep=', ';; 1350 esac 1351 eval enable_$ac_useropt=no ;; 1352 1353 -docdir | --docdir | --docdi | --doc | --do) 1354 ac_prev=docdir ;; 1355 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1356 docdir=$ac_optarg ;; 1357 1358 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1359 ac_prev=dvidir ;; 1360 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1361 dvidir=$ac_optarg ;; 1362 1363 -enable-* | --enable-*) 1364 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1365 # Reject names that are not valid shell variable names. 1366 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1367 as_fn_error $? "invalid feature name: $ac_useropt" 1368 ac_useropt_orig=$ac_useropt 1369 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1370 case $ac_user_opts in 1371 *" 1372 "enable_$ac_useropt" 1373 "*) ;; 1374 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1375 ac_unrecognized_sep=', ';; 1376 esac 1377 eval enable_$ac_useropt=\$ac_optarg ;; 1378 1379 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1380 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1381 | --exec | --exe | --ex) 1382 ac_prev=exec_prefix ;; 1383 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1384 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1385 | --exec=* | --exe=* | --ex=*) 1386 exec_prefix=$ac_optarg ;; 1387 1388 -gas | --gas | --ga | --g) 1389 # Obsolete; use --with-gas. 1390 with_gas=yes ;; 1391 1392 -help | --help | --hel | --he | -h) 1393 ac_init_help=long ;; 1394 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1395 ac_init_help=recursive ;; 1396 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1397 ac_init_help=short ;; 1398 1399 -host | --host | --hos | --ho) 1400 ac_prev=host_alias ;; 1401 -host=* | --host=* | --hos=* | --ho=*) 1402 host_alias=$ac_optarg ;; 1403 1404 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1405 ac_prev=htmldir ;; 1406 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1407 | --ht=*) 1408 htmldir=$ac_optarg ;; 1409 1410 -includedir | --includedir | --includedi | --included | --include \ 1411 | --includ | --inclu | --incl | --inc) 1412 ac_prev=includedir ;; 1413 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1414 | --includ=* | --inclu=* | --incl=* | --inc=*) 1415 includedir=$ac_optarg ;; 1416 1417 -infodir | --infodir | --infodi | --infod | --info | --inf) 1418 ac_prev=infodir ;; 1419 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1420 infodir=$ac_optarg ;; 1421 1422 -libdir | --libdir | --libdi | --libd) 1423 ac_prev=libdir ;; 1424 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1425 libdir=$ac_optarg ;; 1426 1427 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1428 | --libexe | --libex | --libe) 1429 ac_prev=libexecdir ;; 1430 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1431 | --libexe=* | --libex=* | --libe=*) 1432 libexecdir=$ac_optarg ;; 1433 1434 -localedir | --localedir | --localedi | --localed | --locale) 1435 ac_prev=localedir ;; 1436 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1437 localedir=$ac_optarg ;; 1438 1439 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1440 | --localstate | --localstat | --localsta | --localst | --locals) 1441 ac_prev=localstatedir ;; 1442 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1443 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1444 localstatedir=$ac_optarg ;; 1445 1446 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1447 ac_prev=mandir ;; 1448 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1449 mandir=$ac_optarg ;; 1450 1451 -nfp | --nfp | --nf) 1452 # Obsolete; use --without-fp. 1453 with_fp=no ;; 1454 1455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1456 | --no-cr | --no-c | -n) 1457 no_create=yes ;; 1458 1459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1461 no_recursion=yes ;; 1462 1463 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1464 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1465 | --oldin | --oldi | --old | --ol | --o) 1466 ac_prev=oldincludedir ;; 1467 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1468 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1469 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1470 oldincludedir=$ac_optarg ;; 1471 1472 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1473 ac_prev=prefix ;; 1474 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1475 prefix=$ac_optarg ;; 1476 1477 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1478 | --program-pre | --program-pr | --program-p) 1479 ac_prev=program_prefix ;; 1480 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1481 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1482 program_prefix=$ac_optarg ;; 1483 1484 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1485 | --program-suf | --program-su | --program-s) 1486 ac_prev=program_suffix ;; 1487 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1488 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1489 program_suffix=$ac_optarg ;; 1490 1491 -program-transform-name | --program-transform-name \ 1492 | --program-transform-nam | --program-transform-na \ 1493 | --program-transform-n | --program-transform- \ 1494 | --program-transform | --program-transfor \ 1495 | --program-transfo | --program-transf \ 1496 | --program-trans | --program-tran \ 1497 | --progr-tra | --program-tr | --program-t) 1498 ac_prev=program_transform_name ;; 1499 -program-transform-name=* | --program-transform-name=* \ 1500 | --program-transform-nam=* | --program-transform-na=* \ 1501 | --program-transform-n=* | --program-transform-=* \ 1502 | --program-transform=* | --program-transfor=* \ 1503 | --program-transfo=* | --program-transf=* \ 1504 | --program-trans=* | --program-tran=* \ 1505 | --progr-tra=* | --program-tr=* | --program-t=*) 1506 program_transform_name=$ac_optarg ;; 1507 1508 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1509 ac_prev=pdfdir ;; 1510 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1511 pdfdir=$ac_optarg ;; 1512 1513 -psdir | --psdir | --psdi | --psd | --ps) 1514 ac_prev=psdir ;; 1515 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1516 psdir=$ac_optarg ;; 1517 1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1519 | -silent | --silent | --silen | --sile | --sil) 1520 silent=yes ;; 1521 1522 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1523 ac_prev=sbindir ;; 1524 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1525 | --sbi=* | --sb=*) 1526 sbindir=$ac_optarg ;; 1527 1528 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1529 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1530 | --sharedst | --shareds | --shared | --share | --shar \ 1531 | --sha | --sh) 1532 ac_prev=sharedstatedir ;; 1533 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1534 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1535 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1536 | --sha=* | --sh=*) 1537 sharedstatedir=$ac_optarg ;; 1538 1539 -site | --site | --sit) 1540 ac_prev=site ;; 1541 -site=* | --site=* | --sit=*) 1542 site=$ac_optarg ;; 1543 1544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1545 ac_prev=srcdir ;; 1546 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1547 srcdir=$ac_optarg ;; 1548 1549 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1550 | --syscon | --sysco | --sysc | --sys | --sy) 1551 ac_prev=sysconfdir ;; 1552 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1553 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1554 sysconfdir=$ac_optarg ;; 1555 1556 -target | --target | --targe | --targ | --tar | --ta | --t) 1557 ac_prev=target_alias ;; 1558 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1559 target_alias=$ac_optarg ;; 1560 1561 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1562 verbose=yes ;; 1563 1564 -version | --version | --versio | --versi | --vers | -V) 1565 ac_init_version=: ;; 1566 1567 -with-* | --with-*) 1568 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1569 # Reject names that are not valid shell variable names. 1570 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1571 as_fn_error $? "invalid package name: $ac_useropt" 1572 ac_useropt_orig=$ac_useropt 1573 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1574 case $ac_user_opts in 1575 *" 1576 "with_$ac_useropt" 1577 "*) ;; 1578 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1579 ac_unrecognized_sep=', ';; 1580 esac 1581 eval with_$ac_useropt=\$ac_optarg ;; 1582 1583 -without-* | --without-*) 1584 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1585 # Reject names that are not valid shell variable names. 1586 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1587 as_fn_error $? "invalid package name: $ac_useropt" 1588 ac_useropt_orig=$ac_useropt 1589 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1590 case $ac_user_opts in 1591 *" 1592 "with_$ac_useropt" 1593 "*) ;; 1594 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1595 ac_unrecognized_sep=', ';; 1596 esac 1597 eval with_$ac_useropt=no ;; 1598 1599 --x) 1600 # Obsolete; use --with-x. 1601 with_x=yes ;; 1602 1603 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1604 | --x-incl | --x-inc | --x-in | --x-i) 1605 ac_prev=x_includes ;; 1606 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1607 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1608 x_includes=$ac_optarg ;; 1609 1610 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1611 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1612 ac_prev=x_libraries ;; 1613 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1614 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1615 x_libraries=$ac_optarg ;; 1616 1617 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1618 Try \`$0 --help' for more information" 1619 ;; 1620 1621 *=*) 1622 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1623 # Reject names that are not valid shell variable names. 1624 case $ac_envvar in #( 1625 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1626 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1627 esac 1628 eval $ac_envvar=\$ac_optarg 1629 export $ac_envvar ;; 1630 1631 *) 1632 # FIXME: should be removed in autoconf 3.0. 1633 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1634 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1635 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1636 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1637 ;; 1638 1639 esac 1640 done 1641 1642 if test -n "$ac_prev"; then 1643 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1644 as_fn_error $? "missing argument to $ac_option" 1645 fi 1646 1647 if test -n "$ac_unrecognized_opts"; then 1648 case $enable_option_checking in 1649 no) ;; 1650 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1651 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1652 esac 1653 fi 1654 1655 # Check all directory arguments for consistency. 1656 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1657 datadir sysconfdir sharedstatedir localstatedir includedir \ 1658 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1659 libdir localedir mandir 1660 do 1661 eval ac_val=\$$ac_var 1662 # Remove trailing slashes. 1663 case $ac_val in 1664 */ ) 1665 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1666 eval $ac_var=\$ac_val;; 1667 esac 1668 # Be sure to have absolute directory names. 1669 case $ac_val in 1670 [\\/$]* | ?:[\\/]* ) continue;; 1671 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1672 esac 1673 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1674 done 1675 1676 # There might be people who depend on the old broken behavior: `$host' 1677 # used to hold the argument of --host etc. 1678 # FIXME: To remove some day. 1679 build=$build_alias 1680 host=$host_alias 1681 target=$target_alias 1682 1683 # FIXME: To remove some day. 1684 if test "x$host_alias" != x; then 1685 if test "x$build_alias" = x; then 1686 cross_compiling=maybe 1687 elif test "x$build_alias" != "x$host_alias"; then 1688 cross_compiling=yes 1689 fi 1690 fi 1691 1692 ac_tool_prefix= 1693 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1694 1695 test "$silent" = yes && exec 6>/dev/null 1696 1697 1698 ac_pwd=`pwd` && test -n "$ac_pwd" && 1699 ac_ls_di=`ls -di .` && 1700 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1701 as_fn_error $? "working directory cannot be determined" 1702 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1703 as_fn_error $? "pwd does not report name of working directory" 1704 1705 1706 # Find the source files, if location was not specified. 1707 if test -z "$srcdir"; then 1708 ac_srcdir_defaulted=yes 1709 # Try the directory containing this script, then the parent directory. 1710 ac_confdir=`$as_dirname -- "$as_myself" || 1711 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1712 X"$as_myself" : 'X\(//\)[^/]' \| \ 1713 X"$as_myself" : 'X\(//\)$' \| \ 1714 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1715 $as_echo X"$as_myself" | 1716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1717 s//\1/ 1718 q 1719 } 1720 /^X\(\/\/\)[^/].*/{ 1721 s//\1/ 1722 q 1723 } 1724 /^X\(\/\/\)$/{ 1725 s//\1/ 1726 q 1727 } 1728 /^X\(\/\).*/{ 1729 s//\1/ 1730 q 1731 } 1732 s/.*/./; q'` 1733 srcdir=$ac_confdir 1734 if test ! -r "$srcdir/$ac_unique_file"; then 1735 srcdir=.. 1736 fi 1737 else 1738 ac_srcdir_defaulted=no 1739 fi 1740 if test ! -r "$srcdir/$ac_unique_file"; then 1741 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1742 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1743 fi 1744 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1745 ac_abs_confdir=`( 1746 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1747 pwd)` 1748 # When building in place, set srcdir=. 1749 if test "$ac_abs_confdir" = "$ac_pwd"; then 1750 srcdir=. 1751 fi 1752 # Remove unnecessary trailing slashes from srcdir. 1753 # Double slashes in file names in object file debugging info 1754 # mess up M-x gdb in Emacs. 1755 case $srcdir in 1756 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1757 esac 1758 for ac_var in $ac_precious_vars; do 1759 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1760 eval ac_env_${ac_var}_value=\$${ac_var} 1761 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1762 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1763 done 1764 1765 # 1766 # Report the --help message. 1767 # 1768 if test "$ac_init_help" = "long"; then 1769 # Omit some internal or obsolete options to make the list less imposing. 1770 # This message is too long to be a string in the A/UX 3.1 sh. 1771 cat <<_ACEOF 1772 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1773 1774 Usage: $0 [OPTION]... [VAR=VALUE]... 1775 1776 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1777 VAR=VALUE. See below for descriptions of some of the useful variables. 1778 1779 Defaults for the options are specified in brackets. 1780 1781 Configuration: 1782 -h, --help display this help and exit 1783 --help=short display options specific to this package 1784 --help=recursive display the short help of all the included packages 1785 -V, --version display version information and exit 1786 -q, --quiet, --silent do not print \`checking ...' messages 1787 --cache-file=FILE cache test results in FILE [disabled] 1788 -C, --config-cache alias for \`--cache-file=config.cache' 1789 -n, --no-create do not create output files 1790 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1791 1792 Installation directories: 1793 --prefix=PREFIX install architecture-independent files in PREFIX 1794 [$ac_default_prefix] 1795 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1796 [PREFIX] 1797 1798 By default, \`make install' will install all the files in 1799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1800 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1801 for instance \`--prefix=\$HOME'. 1802 1803 For better control, use the options below. 1804 1805 Fine tuning of the installation directories: 1806 --bindir=DIR user executables [EPREFIX/bin] 1807 --sbindir=DIR system admin executables [EPREFIX/sbin] 1808 --libexecdir=DIR program executables [EPREFIX/libexec] 1809 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1810 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1811 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1812 --libdir=DIR object code libraries [EPREFIX/lib] 1813 --includedir=DIR C header files [PREFIX/include] 1814 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1815 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1816 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1817 --infodir=DIR info documentation [DATAROOTDIR/info] 1818 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1819 --mandir=DIR man documentation [DATAROOTDIR/man] 1820 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1821 --htmldir=DIR html documentation [DOCDIR] 1822 --dvidir=DIR dvi documentation [DOCDIR] 1823 --pdfdir=DIR pdf documentation [DOCDIR] 1824 --psdir=DIR ps documentation [DOCDIR] 1825 _ACEOF 1826 1827 cat <<\_ACEOF 1828 1829 X features: 1830 --x-includes=DIR X include files are in DIR 1831 --x-libraries=DIR X library files are in DIR 1832 1833 System types: 1834 --build=BUILD configure for building on BUILD [guessed] 1835 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1836 --target=TARGET configure for building compilers for TARGET [HOST] 1837 _ACEOF 1838 fi 1839 1840 if test -n "$ac_init_help"; then 1841 case $ac_init_help in 1842 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1843 esac 1844 cat <<\_ACEOF 1845 1846 Optional Features: 1847 --disable-option-checking ignore unrecognized --enable/--with options 1848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1850 --enable-openjdk-only suppress building custom source even if present 1851 [disabled] 1852 --enable-debug set the debug level to fastdebug (shorthand for 1853 --with-debug-level=fastdebug) [disabled] 1854 --disable-headful disable building headful support (graphical UI 1855 support) [enabled] 1856 --enable-hotspot-test-in-build 1857 run the Queens test after Hotspot build [disabled] 1858 --enable-unlimited-crypto 1859 Enable unlimited crypto policy [disabled] 1860 --enable-rmiconnector-iiop 1861 enable the JMX RMIConnector iiop transport 1862 [disabled] 1863 --disable-warnings-as-errors 1864 do not consider native warnings to be an error 1865 [enabled] 1866 --disable-debug-symbols disable generation of debug symbols [enabled] 1867 --disable-zip-debug-info 1868 disable zipping of debug-info files [enabled] 1869 --enable-native-coverage 1870 enable native compilation with code coverage 1871 data[disabled] 1872 --disable-freetype-bundling 1873 disable bundling of the freetype library with the 1874 build result [enabled on Windows or when using 1875 --with-freetype, disabled otherwise] 1876 --enable-sjavac use sjavac to do fast incremental compiles 1877 [disabled] 1878 --disable-precompiled-headers 1879 disable using precompiled headers when compiling C++ 1880 [enabled] 1881 --enable-ccache enable using ccache to speed up recompilations 1882 [disabled] 1883 1884 Optional Packages: 1885 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1886 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1887 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1888 support it), e.g. --with-target-bits=32 [guessed] 1889 --with-custom-make-dir Deprecated. Option is kept for backwards 1890 compatibility and is ignored 1891 --with-jdk-variant JDK variant to build (normal) [normal] 1892 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1893 --with-jvm-variants JVM variants (separated by commas) to build (server, 1894 client, minimal1, kernel, zero, zeroshark, core) 1895 [server] 1896 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1897 optimized (HotSpot build only)) [release] 1898 --with-devkit use this devkit for compilers, tools and resources 1899 --with-sys-root alias for --with-sysroot for backwards compatability 1900 --with-sysroot use this directory as sysroot 1901 --with-tools-dir alias for --with-toolchain-path for backwards 1902 compatibility 1903 --with-toolchain-path prepend these directories when searching for 1904 toolchain binaries (compilers etc) 1905 --with-extra-path prepend these directories to the default path 1906 --with-sdk-name use the platform SDK of the given name. [macosx] 1907 --with-conf-name use this as the name of the configuration [generated 1908 from important configuration options] 1909 --with-output-sync set make output sync type if supported by make. 1910 [recurse] 1911 --with-builddeps-conf use this configuration file for the builddeps 1912 --with-builddeps-server download and use build dependencies from this server 1913 url 1914 --with-builddeps-dir store downloaded build dependencies here 1915 [/localhome/builddeps] 1916 --with-builddeps-group chgrp the downloaded build dependencies to this 1917 group 1918 --with-cacerts-file specify alternative cacerts file 1919 --with-milestone Set milestone value for build [internal] 1920 --with-update-version Set update version value for build [b00] 1921 --with-user-release-suffix 1922 Add a custom string to the version string if build 1923 number is not set.[username_builddateb00] 1924 --with-build-number Set build number value for build [b00] 1925 --with-copyright-year Set copyright year value for build [current year] 1926 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1927 --with-add-source-root for each and every source directory, look in this 1928 additional source root for the same directory; if it 1929 exists and have files in it, include it in the build 1930 --with-override-source-root 1931 for each and every source directory, look in this 1932 override source root for the same directory; if it 1933 exists, use that directory instead and ignore the 1934 directory in the original source root 1935 --with-adds-and-overrides 1936 use the subdirs 'adds' and 'overrides' in the 1937 specified directory as add-source-root and 1938 override-source-root 1939 --with-override-langtools 1940 use this langtools dir for the build 1941 --with-override-corba use this corba dir for the build 1942 --with-override-jaxp use this jaxp dir for the build 1943 --with-override-jaxws use this jaxws dir for the build 1944 --with-override-hotspot use this hotspot dir for the build 1945 --with-override-nashorn use this nashorn dir for the build 1946 --with-override-jdk use this jdk dir for the build 1947 --with-import-hotspot import hotspot binaries from this jdk image or 1948 hotspot build dist dir instead of building from 1949 source 1950 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1951 to show possible values [platform dependent] 1952 --with-toolchain-version 1953 the version of the toolchain to look for, use 1954 '--help' to show possible values [platform 1955 dependent] 1956 --with-jtreg Regression Test Harness [probed] 1957 --with-extra-cflags extra flags to be used when compiling jdk c-files 1958 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1959 --with-extra-ldflags extra flags to be used when linking jdk 1960 --with-x use the X Window System 1961 --with-cups specify prefix directory for the cups package 1962 (expecting the headers under PATH/include) 1963 --with-cups-include specify directory for the cups include files 1964 --with-freetype specify prefix directory for the freetype package 1965 (expecting the libraries under PATH/lib and the 1966 headers under PATH/include) 1967 --with-freetype-include specify directory for the freetype include files 1968 --with-freetype-lib specify directory for the freetype library 1969 --with-freetype-src specify directory with freetype sources to 1970 automatically build the library (experimental, 1971 Windows-only) 1972 --with-alsa specify prefix directory for the alsa package 1973 (expecting the libraries under PATH/lib and the 1974 headers under PATH/include) 1975 --with-alsa-include specify directory for the alsa include files 1976 --with-alsa-lib specify directory for the alsa library 1977 --with-libjpeg use libjpeg from build system or OpenJDK source 1978 (system, bundled) [bundled] 1979 --with-giflib use giflib from build system or OpenJDK source 1980 (system, bundled) [bundled] 1981 --with-lcms use lcms2 from build system or OpenJDK source 1982 (system, bundled) [bundled] 1983 --with-libpng use libpng from build system or OpenJDK source 1984 (system, bundled) [bundled] 1985 --with-zlib use zlib from build system or OpenJDK source 1986 (system, bundled) [bundled] 1987 --with-stdc++lib=<static>,<dynamic>,<default> 1988 force linking of the C++ runtime on Linux to either 1989 static or dynamic, default is static with dynamic as 1990 fallback 1991 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 1992 (Windows only) [probed] 1993 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 1994 (Windows only) [probed] 1995 --with-dxsdk Deprecated. Option is kept for backwards 1996 compatibility and is ignored 1997 --with-dxsdk-lib Deprecated. Option is kept for backwards 1998 compatibility and is ignored 1999 --with-dxsdk-include Deprecated. Option is kept for backwards 2000 compatibility and is ignored 2001 --with-num-cores number of cores in the build system, e.g. 2002 --with-num-cores=8 [probed] 2003 --with-memory-size memory (in MB) available in the build system, e.g. 2004 --with-memory-size=1024 [probed] 2005 --with-jobs number of parallel jobs to let make run [calculated 2006 based on cores and memory] 2007 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2008 invocations of boot JDK, overriding the default 2009 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2010 -enableassertions" 2011 --with-sjavac-server-java 2012 use this java binary for running the sjavac 2013 background server [Boot JDK java] 2014 --with-ccache-dir where to store ccache files [~/.ccache] 2015 2016 Some influential environment variables: 2017 BASENAME Override default value for BASENAME 2018 BASH Override default value for BASH 2019 CAT Override default value for CAT 2020 CHMOD Override default value for CHMOD 2021 CMP Override default value for CMP 2022 COMM Override default value for COMM 2023 CP Override default value for CP 2024 CUT Override default value for CUT 2025 DATE Override default value for DATE 2026 DIFF Override default value for DIFF 2027 DIRNAME Override default value for DIRNAME 2028 ECHO Override default value for ECHO 2029 EXPR Override default value for EXPR 2030 FILE Override default value for FILE 2031 FIND Override default value for FIND 2032 HEAD Override default value for HEAD 2033 LN Override default value for LN 2034 LS Override default value for LS 2035 MKDIR Override default value for MKDIR 2036 MKTEMP Override default value for MKTEMP 2037 MV Override default value for MV 2038 NAWK Override default value for NAWK 2039 PRINTF Override default value for PRINTF 2040 RM Override default value for RM 2041 SH Override default value for SH 2042 SORT Override default value for SORT 2043 TAIL Override default value for TAIL 2044 TAR Override default value for TAR 2045 TEE Override default value for TEE 2046 TOUCH Override default value for TOUCH 2047 TR Override default value for TR 2048 UNAME Override default value for UNAME 2049 UNIQ Override default value for UNIQ 2050 WC Override default value for WC 2051 WHICH Override default value for WHICH 2052 XARGS Override default value for XARGS 2053 AWK Override default value for AWK 2054 GREP Override default value for GREP 2055 EGREP Override default value for EGREP 2056 FGREP Override default value for FGREP 2057 SED Override default value for SED 2058 CYGPATH Override default value for CYGPATH 2059 READLINK Override default value for READLINK 2060 DF Override default value for DF 2061 SETFILE Override default value for SETFILE 2062 CPIO Override default value for CPIO 2063 UNZIP Override default value for UNZIP 2064 ZIP Override default value for ZIP 2065 LDD Override default value for LDD 2066 OTOOL Override default value for OTOOL 2067 READELF Override default value for READELF 2068 HG Override default value for HG 2069 STAT Override default value for STAT 2070 TIME Override default value for TIME 2071 DSYMUTIL Override default value for DSYMUTIL 2072 XATTR Override default value for XATTR 2073 CODESIGN Override default value for CODESIGN 2074 PKG_CONFIG path to pkg-config utility 2075 JAVA Override default value for JAVA 2076 JAVAC Override default value for JAVAC 2077 JAVAH Override default value for JAVAH 2078 JAR Override default value for JAR 2079 NATIVE2ASCII 2080 Override default value for NATIVE2ASCII 2081 JARSIGNER Override default value for JARSIGNER 2082 CC C compiler command 2083 CFLAGS C compiler flags 2084 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2085 nonstandard directory <lib dir> 2086 LIBS libraries to pass to the linker, e.g. -l<library> 2087 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2088 you have headers in a nonstandard directory <include dir> 2089 CXX C++ compiler command 2090 CXXFLAGS C++ compiler flags 2091 CPP C preprocessor 2092 CXXCPP C++ preprocessor 2093 AS Override default value for AS 2094 AR Override default value for AR 2095 LIPO Override default value for LIPO 2096 STRIP Override default value for STRIP 2097 NM Override default value for NM 2098 GNM Override default value for GNM 2099 MCS Override default value for MCS 2100 OBJCOPY Override default value for OBJCOPY 2101 OBJDUMP Override default value for OBJDUMP 2102 BUILD_CC Override default value for BUILD_CC 2103 BUILD_CXX Override default value for BUILD_CXX 2104 BUILD_LD Override default value for BUILD_LD 2105 JTREGEXE Override default value for JTREGEXE 2106 XMKMF Path to xmkmf, Makefile generator for X Window System 2107 FREETYPE_CFLAGS 2108 C compiler flags for FREETYPE, overriding pkg-config 2109 FREETYPE_LIBS 2110 linker flags for FREETYPE, overriding pkg-config 2111 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2112 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2113 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2114 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2115 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2116 PNG_LIBS linker flags for PNG, overriding pkg-config 2117 LIBFFI_CFLAGS 2118 C compiler flags for LIBFFI, overriding pkg-config 2119 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2120 CCACHE Override default value for CCACHE 2121 2122 Use these variables to override the choices made by `configure' or to help 2123 it to find libraries and programs with nonstandard names/locations. 2124 2125 Report bugs to <build-dev@openjdk.java.net>. 2126 OpenJDK home page: <http://openjdk.java.net>. 2127 _ACEOF 2128 ac_status=$? 2129 fi 2130 2131 if test "$ac_init_help" = "recursive"; then 2132 # If there are subdirs, report their specific --help. 2133 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2134 test -d "$ac_dir" || 2135 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2136 continue 2137 ac_builddir=. 2138 2139 case "$ac_dir" in 2140 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2141 *) 2142 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2143 # A ".." for each directory in $ac_dir_suffix. 2144 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2145 case $ac_top_builddir_sub in 2146 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2147 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2148 esac ;; 2149 esac 2150 ac_abs_top_builddir=$ac_pwd 2151 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2152 # for backward compatibility: 2153 ac_top_builddir=$ac_top_build_prefix 2154 2155 case $srcdir in 2156 .) # We are building in place. 2157 ac_srcdir=. 2158 ac_top_srcdir=$ac_top_builddir_sub 2159 ac_abs_top_srcdir=$ac_pwd ;; 2160 [\\/]* | ?:[\\/]* ) # Absolute name. 2161 ac_srcdir=$srcdir$ac_dir_suffix; 2162 ac_top_srcdir=$srcdir 2163 ac_abs_top_srcdir=$srcdir ;; 2164 *) # Relative name. 2165 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2166 ac_top_srcdir=$ac_top_build_prefix$srcdir 2167 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2168 esac 2169 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2170 2171 cd "$ac_dir" || { ac_status=$?; continue; } 2172 # Check for guested configure. 2173 if test -f "$ac_srcdir/configure.gnu"; then 2174 echo && 2175 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2176 elif test -f "$ac_srcdir/configure"; then 2177 echo && 2178 $SHELL "$ac_srcdir/configure" --help=recursive 2179 else 2180 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2181 fi || ac_status=$? 2182 cd "$ac_pwd" || { ac_status=$?; break; } 2183 done 2184 fi 2185 2186 test -n "$ac_init_help" && exit $ac_status 2187 if $ac_init_version; then 2188 cat <<\_ACEOF 2189 OpenJDK configure jdk9 2190 generated by GNU Autoconf 2.69 2191 2192 Copyright (C) 2012 Free Software Foundation, Inc. 2193 This configure script is free software; the Free Software Foundation 2194 gives unlimited permission to copy, distribute and modify it. 2195 _ACEOF 2196 exit 2197 fi 2198 2199 ## ------------------------ ## 2200 ## Autoconf initialization. ## 2201 ## ------------------------ ## 2202 2203 # ac_fn_c_try_compile LINENO 2204 # -------------------------- 2205 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2206 ac_fn_c_try_compile () 2207 { 2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2209 rm -f conftest.$ac_objext 2210 if { { ac_try="$ac_compile" 2211 case "(($ac_try" in 2212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2213 *) ac_try_echo=$ac_try;; 2214 esac 2215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2216 $as_echo "$ac_try_echo"; } >&5 2217 (eval "$ac_compile") 2>conftest.err 2218 ac_status=$? 2219 if test -s conftest.err; then 2220 grep -v '^ *+' conftest.err >conftest.er1 2221 cat conftest.er1 >&5 2222 mv -f conftest.er1 conftest.err 2223 fi 2224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2225 test $ac_status = 0; } && { 2226 test -z "$ac_c_werror_flag" || 2227 test ! -s conftest.err 2228 } && test -s conftest.$ac_objext; then : 2229 ac_retval=0 2230 else 2231 $as_echo "$as_me: failed program was:" >&5 2232 sed 's/^/| /' conftest.$ac_ext >&5 2233 2234 ac_retval=1 2235 fi 2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2237 as_fn_set_status $ac_retval 2238 2239 } # ac_fn_c_try_compile 2240 2241 # ac_fn_cxx_try_compile LINENO 2242 # ---------------------------- 2243 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2244 ac_fn_cxx_try_compile () 2245 { 2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2247 rm -f conftest.$ac_objext 2248 if { { ac_try="$ac_compile" 2249 case "(($ac_try" in 2250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2251 *) ac_try_echo=$ac_try;; 2252 esac 2253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2254 $as_echo "$ac_try_echo"; } >&5 2255 (eval "$ac_compile") 2>conftest.err 2256 ac_status=$? 2257 if test -s conftest.err; then 2258 grep -v '^ *+' conftest.err >conftest.er1 2259 cat conftest.er1 >&5 2260 mv -f conftest.er1 conftest.err 2261 fi 2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2263 test $ac_status = 0; } && { 2264 test -z "$ac_cxx_werror_flag" || 2265 test ! -s conftest.err 2266 } && test -s conftest.$ac_objext; then : 2267 ac_retval=0 2268 else 2269 $as_echo "$as_me: failed program was:" >&5 2270 sed 's/^/| /' conftest.$ac_ext >&5 2271 2272 ac_retval=1 2273 fi 2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2275 as_fn_set_status $ac_retval 2276 2277 } # ac_fn_cxx_try_compile 2278 2279 # ac_fn_c_try_cpp LINENO 2280 # ---------------------- 2281 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2282 ac_fn_c_try_cpp () 2283 { 2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2285 if { { ac_try="$ac_cpp conftest.$ac_ext" 2286 case "(($ac_try" in 2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2288 *) ac_try_echo=$ac_try;; 2289 esac 2290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2291 $as_echo "$ac_try_echo"; } >&5 2292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2293 ac_status=$? 2294 if test -s conftest.err; then 2295 grep -v '^ *+' conftest.err >conftest.er1 2296 cat conftest.er1 >&5 2297 mv -f conftest.er1 conftest.err 2298 fi 2299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2300 test $ac_status = 0; } > conftest.i && { 2301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2302 test ! -s conftest.err 2303 }; then : 2304 ac_retval=0 2305 else 2306 $as_echo "$as_me: failed program was:" >&5 2307 sed 's/^/| /' conftest.$ac_ext >&5 2308 2309 ac_retval=1 2310 fi 2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2312 as_fn_set_status $ac_retval 2313 2314 } # ac_fn_c_try_cpp 2315 2316 # ac_fn_cxx_try_cpp LINENO 2317 # ------------------------ 2318 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2319 ac_fn_cxx_try_cpp () 2320 { 2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2322 if { { ac_try="$ac_cpp conftest.$ac_ext" 2323 case "(($ac_try" in 2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2325 *) ac_try_echo=$ac_try;; 2326 esac 2327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2328 $as_echo "$ac_try_echo"; } >&5 2329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2330 ac_status=$? 2331 if test -s conftest.err; then 2332 grep -v '^ *+' conftest.err >conftest.er1 2333 cat conftest.er1 >&5 2334 mv -f conftest.er1 conftest.err 2335 fi 2336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2337 test $ac_status = 0; } > conftest.i && { 2338 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2339 test ! -s conftest.err 2340 }; then : 2341 ac_retval=0 2342 else 2343 $as_echo "$as_me: failed program was:" >&5 2344 sed 's/^/| /' conftest.$ac_ext >&5 2345 2346 ac_retval=1 2347 fi 2348 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2349 as_fn_set_status $ac_retval 2350 2351 } # ac_fn_cxx_try_cpp 2352 2353 # ac_fn_c_try_link LINENO 2354 # ----------------------- 2355 # Try to link conftest.$ac_ext, and return whether this succeeded. 2356 ac_fn_c_try_link () 2357 { 2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2359 rm -f conftest.$ac_objext conftest$ac_exeext 2360 if { { ac_try="$ac_link" 2361 case "(($ac_try" in 2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2363 *) ac_try_echo=$ac_try;; 2364 esac 2365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2366 $as_echo "$ac_try_echo"; } >&5 2367 (eval "$ac_link") 2>conftest.err 2368 ac_status=$? 2369 if test -s conftest.err; then 2370 grep -v '^ *+' conftest.err >conftest.er1 2371 cat conftest.er1 >&5 2372 mv -f conftest.er1 conftest.err 2373 fi 2374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2375 test $ac_status = 0; } && { 2376 test -z "$ac_c_werror_flag" || 2377 test ! -s conftest.err 2378 } && test -s conftest$ac_exeext && { 2379 test "$cross_compiling" = yes || 2380 test -x conftest$ac_exeext 2381 }; then : 2382 ac_retval=0 2383 else 2384 $as_echo "$as_me: failed program was:" >&5 2385 sed 's/^/| /' conftest.$ac_ext >&5 2386 2387 ac_retval=1 2388 fi 2389 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2390 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2391 # interfere with the next link command; also delete a directory that is 2392 # left behind by Apple's compiler. We do this before executing the actions. 2393 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2394 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2395 as_fn_set_status $ac_retval 2396 2397 } # ac_fn_c_try_link 2398 2399 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2400 # --------------------------------------------------------- 2401 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2402 # the include files in INCLUDES and setting the cache variable VAR 2403 # accordingly. 2404 ac_fn_cxx_check_header_mongrel () 2405 { 2406 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2407 if eval \${$3+:} false; then : 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2409 $as_echo_n "checking for $2... " >&6; } 2410 if eval \${$3+:} false; then : 2411 $as_echo_n "(cached) " >&6 2412 fi 2413 eval ac_res=\$$3 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2415 $as_echo "$ac_res" >&6; } 2416 else 2417 # Is the header compilable? 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2419 $as_echo_n "checking $2 usability... " >&6; } 2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2421 /* end confdefs.h. */ 2422 $4 2423 #include <$2> 2424 _ACEOF 2425 if ac_fn_cxx_try_compile "$LINENO"; then : 2426 ac_header_compiler=yes 2427 else 2428 ac_header_compiler=no 2429 fi 2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2432 $as_echo "$ac_header_compiler" >&6; } 2433 2434 # Is the header present? 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2436 $as_echo_n "checking $2 presence... " >&6; } 2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2438 /* end confdefs.h. */ 2439 #include <$2> 2440 _ACEOF 2441 if ac_fn_cxx_try_cpp "$LINENO"; then : 2442 ac_header_preproc=yes 2443 else 2444 ac_header_preproc=no 2445 fi 2446 rm -f conftest.err conftest.i conftest.$ac_ext 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2448 $as_echo "$ac_header_preproc" >&6; } 2449 2450 # So? What about this header? 2451 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2452 yes:no: ) 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2454 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2456 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2457 ;; 2458 no:yes:* ) 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2460 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2462 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2464 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2466 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2468 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2469 ( $as_echo "## ----------------------------------------- ## 2470 ## Report this to build-dev@openjdk.java.net ## 2471 ## ----------------------------------------- ##" 2472 ) | sed "s/^/$as_me: WARNING: /" >&2 2473 ;; 2474 esac 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2476 $as_echo_n "checking for $2... " >&6; } 2477 if eval \${$3+:} false; then : 2478 $as_echo_n "(cached) " >&6 2479 else 2480 eval "$3=\$ac_header_compiler" 2481 fi 2482 eval ac_res=\$$3 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2484 $as_echo "$ac_res" >&6; } 2485 fi 2486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2487 2488 } # ac_fn_cxx_check_header_mongrel 2489 2490 # ac_fn_cxx_try_run LINENO 2491 # ------------------------ 2492 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2493 # that executables *can* be run. 2494 ac_fn_cxx_try_run () 2495 { 2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2497 if { { ac_try="$ac_link" 2498 case "(($ac_try" in 2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2500 *) ac_try_echo=$ac_try;; 2501 esac 2502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2503 $as_echo "$ac_try_echo"; } >&5 2504 (eval "$ac_link") 2>&5 2505 ac_status=$? 2506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2507 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2508 { { case "(($ac_try" in 2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2510 *) ac_try_echo=$ac_try;; 2511 esac 2512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2513 $as_echo "$ac_try_echo"; } >&5 2514 (eval "$ac_try") 2>&5 2515 ac_status=$? 2516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2517 test $ac_status = 0; }; }; then : 2518 ac_retval=0 2519 else 2520 $as_echo "$as_me: program exited with status $ac_status" >&5 2521 $as_echo "$as_me: failed program was:" >&5 2522 sed 's/^/| /' conftest.$ac_ext >&5 2523 2524 ac_retval=$ac_status 2525 fi 2526 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2528 as_fn_set_status $ac_retval 2529 2530 } # ac_fn_cxx_try_run 2531 2532 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2533 # --------------------------------------------------------- 2534 # Tests whether HEADER exists and can be compiled using the include files in 2535 # INCLUDES, setting the cache variable VAR accordingly. 2536 ac_fn_cxx_check_header_compile () 2537 { 2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2540 $as_echo_n "checking for $2... " >&6; } 2541 if eval \${$3+:} false; then : 2542 $as_echo_n "(cached) " >&6 2543 else 2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2545 /* end confdefs.h. */ 2546 $4 2547 #include <$2> 2548 _ACEOF 2549 if ac_fn_cxx_try_compile "$LINENO"; then : 2550 eval "$3=yes" 2551 else 2552 eval "$3=no" 2553 fi 2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2555 fi 2556 eval ac_res=\$$3 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2558 $as_echo "$ac_res" >&6; } 2559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2560 2561 } # ac_fn_cxx_check_header_compile 2562 2563 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2564 # ---------------------------------------------- 2565 # Tries to find the compile-time value of EXPR in a program that includes 2566 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2567 # computed 2568 ac_fn_cxx_compute_int () 2569 { 2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2571 if test "$cross_compiling" = yes; then 2572 # Depending upon the size, compute the lo and hi bounds. 2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2574 /* end confdefs.h. */ 2575 $4 2576 int 2577 main () 2578 { 2579 static int test_array [1 - 2 * !(($2) >= 0)]; 2580 test_array [0] = 0; 2581 return test_array [0]; 2582 2583 ; 2584 return 0; 2585 } 2586 _ACEOF 2587 if ac_fn_cxx_try_compile "$LINENO"; then : 2588 ac_lo=0 ac_mid=0 2589 while :; do 2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2591 /* end confdefs.h. */ 2592 $4 2593 int 2594 main () 2595 { 2596 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2597 test_array [0] = 0; 2598 return test_array [0]; 2599 2600 ; 2601 return 0; 2602 } 2603 _ACEOF 2604 if ac_fn_cxx_try_compile "$LINENO"; then : 2605 ac_hi=$ac_mid; break 2606 else 2607 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2608 if test $ac_lo -le $ac_mid; then 2609 ac_lo= ac_hi= 2610 break 2611 fi 2612 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2613 fi 2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2615 done 2616 else 2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2618 /* end confdefs.h. */ 2619 $4 2620 int 2621 main () 2622 { 2623 static int test_array [1 - 2 * !(($2) < 0)]; 2624 test_array [0] = 0; 2625 return test_array [0]; 2626 2627 ; 2628 return 0; 2629 } 2630 _ACEOF 2631 if ac_fn_cxx_try_compile "$LINENO"; then : 2632 ac_hi=-1 ac_mid=-1 2633 while :; do 2634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2635 /* end confdefs.h. */ 2636 $4 2637 int 2638 main () 2639 { 2640 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2641 test_array [0] = 0; 2642 return test_array [0]; 2643 2644 ; 2645 return 0; 2646 } 2647 _ACEOF 2648 if ac_fn_cxx_try_compile "$LINENO"; then : 2649 ac_lo=$ac_mid; break 2650 else 2651 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2652 if test $ac_mid -le $ac_hi; then 2653 ac_lo= ac_hi= 2654 break 2655 fi 2656 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2657 fi 2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2659 done 2660 else 2661 ac_lo= ac_hi= 2662 fi 2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2664 fi 2665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2666 # Binary search between lo and hi bounds. 2667 while test "x$ac_lo" != "x$ac_hi"; do 2668 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2670 /* end confdefs.h. */ 2671 $4 2672 int 2673 main () 2674 { 2675 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2676 test_array [0] = 0; 2677 return test_array [0]; 2678 2679 ; 2680 return 0; 2681 } 2682 _ACEOF 2683 if ac_fn_cxx_try_compile "$LINENO"; then : 2684 ac_hi=$ac_mid 2685 else 2686 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2687 fi 2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2689 done 2690 case $ac_lo in #(( 2691 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2692 '') ac_retval=1 ;; 2693 esac 2694 else 2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2696 /* end confdefs.h. */ 2697 $4 2698 static long int longval () { return $2; } 2699 static unsigned long int ulongval () { return $2; } 2700 #include <stdio.h> 2701 #include <stdlib.h> 2702 int 2703 main () 2704 { 2705 2706 FILE *f = fopen ("conftest.val", "w"); 2707 if (! f) 2708 return 1; 2709 if (($2) < 0) 2710 { 2711 long int i = longval (); 2712 if (i != ($2)) 2713 return 1; 2714 fprintf (f, "%ld", i); 2715 } 2716 else 2717 { 2718 unsigned long int i = ulongval (); 2719 if (i != ($2)) 2720 return 1; 2721 fprintf (f, "%lu", i); 2722 } 2723 /* Do not output a trailing newline, as this causes \r\n confusion 2724 on some platforms. */ 2725 return ferror (f) || fclose (f) != 0; 2726 2727 ; 2728 return 0; 2729 } 2730 _ACEOF 2731 if ac_fn_cxx_try_run "$LINENO"; then : 2732 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2733 else 2734 ac_retval=1 2735 fi 2736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2737 conftest.$ac_objext conftest.beam conftest.$ac_ext 2738 rm -f conftest.val 2739 2740 fi 2741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2742 as_fn_set_status $ac_retval 2743 2744 } # ac_fn_cxx_compute_int 2745 2746 # ac_fn_cxx_try_link LINENO 2747 # ------------------------- 2748 # Try to link conftest.$ac_ext, and return whether this succeeded. 2749 ac_fn_cxx_try_link () 2750 { 2751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2752 rm -f conftest.$ac_objext conftest$ac_exeext 2753 if { { ac_try="$ac_link" 2754 case "(($ac_try" in 2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2756 *) ac_try_echo=$ac_try;; 2757 esac 2758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2759 $as_echo "$ac_try_echo"; } >&5 2760 (eval "$ac_link") 2>conftest.err 2761 ac_status=$? 2762 if test -s conftest.err; then 2763 grep -v '^ *+' conftest.err >conftest.er1 2764 cat conftest.er1 >&5 2765 mv -f conftest.er1 conftest.err 2766 fi 2767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2768 test $ac_status = 0; } && { 2769 test -z "$ac_cxx_werror_flag" || 2770 test ! -s conftest.err 2771 } && test -s conftest$ac_exeext && { 2772 test "$cross_compiling" = yes || 2773 test -x conftest$ac_exeext 2774 }; then : 2775 ac_retval=0 2776 else 2777 $as_echo "$as_me: failed program was:" >&5 2778 sed 's/^/| /' conftest.$ac_ext >&5 2779 2780 ac_retval=1 2781 fi 2782 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2783 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2784 # interfere with the next link command; also delete a directory that is 2785 # left behind by Apple's compiler. We do this before executing the actions. 2786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2788 as_fn_set_status $ac_retval 2789 2790 } # ac_fn_cxx_try_link 2791 2792 # ac_fn_cxx_check_func LINENO FUNC VAR 2793 # ------------------------------------ 2794 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2795 ac_fn_cxx_check_func () 2796 { 2797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2799 $as_echo_n "checking for $2... " >&6; } 2800 if eval \${$3+:} false; then : 2801 $as_echo_n "(cached) " >&6 2802 else 2803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2804 /* end confdefs.h. */ 2805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2806 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2807 #define $2 innocuous_$2 2808 2809 /* System header to define __stub macros and hopefully few prototypes, 2810 which can conflict with char $2 (); below. 2811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2812 <limits.h> exists even on freestanding compilers. */ 2813 2814 #ifdef __STDC__ 2815 # include <limits.h> 2816 #else 2817 # include <assert.h> 2818 #endif 2819 2820 #undef $2 2821 2822 /* Override any GCC internal prototype to avoid an error. 2823 Use char because int might match the return type of a GCC 2824 builtin and then its argument prototype would still apply. */ 2825 #ifdef __cplusplus 2826 extern "C" 2827 #endif 2828 char $2 (); 2829 /* The GNU C library defines this for functions which it implements 2830 to always fail with ENOSYS. Some functions are actually named 2831 something starting with __ and the normal name is an alias. */ 2832 #if defined __stub_$2 || defined __stub___$2 2833 choke me 2834 #endif 2835 2836 int 2837 main () 2838 { 2839 return $2 (); 2840 ; 2841 return 0; 2842 } 2843 _ACEOF 2844 if ac_fn_cxx_try_link "$LINENO"; then : 2845 eval "$3=yes" 2846 else 2847 eval "$3=no" 2848 fi 2849 rm -f core conftest.err conftest.$ac_objext \ 2850 conftest$ac_exeext conftest.$ac_ext 2851 fi 2852 eval ac_res=\$$3 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2854 $as_echo "$ac_res" >&6; } 2855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2856 2857 } # ac_fn_cxx_check_func 2858 2859 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2860 # ------------------------------------------------------- 2861 # Tests whether HEADER exists and can be compiled using the include files in 2862 # INCLUDES, setting the cache variable VAR accordingly. 2863 ac_fn_c_check_header_compile () 2864 { 2865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2867 $as_echo_n "checking for $2... " >&6; } 2868 if eval \${$3+:} false; then : 2869 $as_echo_n "(cached) " >&6 2870 else 2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2872 /* end confdefs.h. */ 2873 $4 2874 #include <$2> 2875 _ACEOF 2876 if ac_fn_c_try_compile "$LINENO"; then : 2877 eval "$3=yes" 2878 else 2879 eval "$3=no" 2880 fi 2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2882 fi 2883 eval ac_res=\$$3 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2885 $as_echo "$ac_res" >&6; } 2886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2887 2888 } # ac_fn_c_check_header_compile 2889 cat >config.log <<_ACEOF 2890 This file contains any messages produced by compilers while 2891 running configure, to aid debugging if configure makes a mistake. 2892 2893 It was created by OpenJDK $as_me jdk9, which was 2894 generated by GNU Autoconf 2.69. Invocation command line was 2895 2896 $ $0 $@ 2897 2898 _ACEOF 2899 exec 5>>config.log 2900 { 2901 cat <<_ASUNAME 2902 ## --------- ## 2903 ## Platform. ## 2904 ## --------- ## 2905 2906 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2907 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2908 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2909 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2910 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2911 2912 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2913 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2914 2915 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2916 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2917 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2918 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2919 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2920 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2921 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2922 2923 _ASUNAME 2924 2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2926 for as_dir in $PATH 2927 do 2928 IFS=$as_save_IFS 2929 test -z "$as_dir" && as_dir=. 2930 $as_echo "PATH: $as_dir" 2931 done 2932 IFS=$as_save_IFS 2933 2934 } >&5 2935 2936 cat >&5 <<_ACEOF 2937 2938 2939 ## ----------- ## 2940 ## Core tests. ## 2941 ## ----------- ## 2942 2943 _ACEOF 2944 2945 2946 # Keep a trace of the command line. 2947 # Strip out --no-create and --no-recursion so they do not pile up. 2948 # Strip out --silent because we don't want to record it for future runs. 2949 # Also quote any args containing shell meta-characters. 2950 # Make two passes to allow for proper duplicate-argument suppression. 2951 ac_configure_args= 2952 ac_configure_args0= 2953 ac_configure_args1= 2954 ac_must_keep_next=false 2955 for ac_pass in 1 2 2956 do 2957 for ac_arg 2958 do 2959 case $ac_arg in 2960 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2962 | -silent | --silent | --silen | --sile | --sil) 2963 continue ;; 2964 *\'*) 2965 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2966 esac 2967 case $ac_pass in 2968 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2969 2) 2970 as_fn_append ac_configure_args1 " '$ac_arg'" 2971 if test $ac_must_keep_next = true; then 2972 ac_must_keep_next=false # Got value, back to normal. 2973 else 2974 case $ac_arg in 2975 *=* | --config-cache | -C | -disable-* | --disable-* \ 2976 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2977 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2978 | -with-* | --with-* | -without-* | --without-* | --x) 2979 case "$ac_configure_args0 " in 2980 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2981 esac 2982 ;; 2983 -* ) ac_must_keep_next=true ;; 2984 esac 2985 fi 2986 as_fn_append ac_configure_args " '$ac_arg'" 2987 ;; 2988 esac 2989 done 2990 done 2991 { ac_configure_args0=; unset ac_configure_args0;} 2992 { ac_configure_args1=; unset ac_configure_args1;} 2993 2994 # When interrupted or exit'd, cleanup temporary files, and complete 2995 # config.log. We remove comments because anyway the quotes in there 2996 # would cause problems or look ugly. 2997 # WARNING: Use '\'' to represent an apostrophe within the trap. 2998 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2999 trap 'exit_status=$? 3000 # Save into config.log some information that might help in debugging. 3001 { 3002 echo 3003 3004 $as_echo "## ---------------- ## 3005 ## Cache variables. ## 3006 ## ---------------- ##" 3007 echo 3008 # The following way of writing the cache mishandles newlines in values, 3009 ( 3010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3011 eval ac_val=\$$ac_var 3012 case $ac_val in #( 3013 *${as_nl}*) 3014 case $ac_var in #( 3015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3016 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3017 esac 3018 case $ac_var in #( 3019 _ | IFS | as_nl) ;; #( 3020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3021 *) { eval $ac_var=; unset $ac_var;} ;; 3022 esac ;; 3023 esac 3024 done 3025 (set) 2>&1 | 3026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3027 *${as_nl}ac_space=\ *) 3028 sed -n \ 3029 "s/'\''/'\''\\\\'\'''\''/g; 3030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3031 ;; #( 3032 *) 3033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3034 ;; 3035 esac | 3036 sort 3037 ) 3038 echo 3039 3040 $as_echo "## ----------------- ## 3041 ## Output variables. ## 3042 ## ----------------- ##" 3043 echo 3044 for ac_var in $ac_subst_vars 3045 do 3046 eval ac_val=\$$ac_var 3047 case $ac_val in 3048 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3049 esac 3050 $as_echo "$ac_var='\''$ac_val'\''" 3051 done | sort 3052 echo 3053 3054 if test -n "$ac_subst_files"; then 3055 $as_echo "## ------------------- ## 3056 ## File substitutions. ## 3057 ## ------------------- ##" 3058 echo 3059 for ac_var in $ac_subst_files 3060 do 3061 eval ac_val=\$$ac_var 3062 case $ac_val in 3063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3064 esac 3065 $as_echo "$ac_var='\''$ac_val'\''" 3066 done | sort 3067 echo 3068 fi 3069 3070 if test -s confdefs.h; then 3071 $as_echo "## ----------- ## 3072 ## confdefs.h. ## 3073 ## ----------- ##" 3074 echo 3075 cat confdefs.h 3076 echo 3077 fi 3078 test "$ac_signal" != 0 && 3079 $as_echo "$as_me: caught signal $ac_signal" 3080 $as_echo "$as_me: exit $exit_status" 3081 } >&5 3082 rm -f core *.core core.conftest.* && 3083 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3084 exit $exit_status 3085 ' 0 3086 for ac_signal in 1 2 13 15; do 3087 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3088 done 3089 ac_signal=0 3090 3091 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3092 rm -f -r conftest* confdefs.h 3093 3094 $as_echo "/* confdefs.h */" > confdefs.h 3095 3096 # Predefined preprocessor variables. 3097 3098 cat >>confdefs.h <<_ACEOF 3099 #define PACKAGE_NAME "$PACKAGE_NAME" 3100 _ACEOF 3101 3102 cat >>confdefs.h <<_ACEOF 3103 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3104 _ACEOF 3105 3106 cat >>confdefs.h <<_ACEOF 3107 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3108 _ACEOF 3109 3110 cat >>confdefs.h <<_ACEOF 3111 #define PACKAGE_STRING "$PACKAGE_STRING" 3112 _ACEOF 3113 3114 cat >>confdefs.h <<_ACEOF 3115 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3116 _ACEOF 3117 3118 cat >>confdefs.h <<_ACEOF 3119 #define PACKAGE_URL "$PACKAGE_URL" 3120 _ACEOF 3121 3122 3123 # Let the site file select an alternate cache file if it wants to. 3124 # Prefer an explicitly selected file to automatically selected ones. 3125 ac_site_file1=NONE 3126 ac_site_file2=NONE 3127 if test -n "$CONFIG_SITE"; then 3128 # We do not want a PATH search for config.site. 3129 case $CONFIG_SITE in #(( 3130 -*) ac_site_file1=./$CONFIG_SITE;; 3131 */*) ac_site_file1=$CONFIG_SITE;; 3132 *) ac_site_file1=./$CONFIG_SITE;; 3133 esac 3134 elif test "x$prefix" != xNONE; then 3135 ac_site_file1=$prefix/share/config.site 3136 ac_site_file2=$prefix/etc/config.site 3137 else 3138 ac_site_file1=$ac_default_prefix/share/config.site 3139 ac_site_file2=$ac_default_prefix/etc/config.site 3140 fi 3141 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3142 do 3143 test "x$ac_site_file" = xNONE && continue 3144 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3146 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3147 sed 's/^/| /' "$ac_site_file" >&5 3148 . "$ac_site_file" \ 3149 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3151 as_fn_error $? "failed to load site script $ac_site_file 3152 See \`config.log' for more details" "$LINENO" 5; } 3153 fi 3154 done 3155 3156 if test -r "$cache_file"; then 3157 # Some versions of bash will fail to source /dev/null (special files 3158 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3159 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3161 $as_echo "$as_me: loading cache $cache_file" >&6;} 3162 case $cache_file in 3163 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3164 *) . "./$cache_file";; 3165 esac 3166 fi 3167 else 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3169 $as_echo "$as_me: creating cache $cache_file" >&6;} 3170 >$cache_file 3171 fi 3172 3173 # Check that the precious variables saved in the cache have kept the same 3174 # value. 3175 ac_cache_corrupted=false 3176 for ac_var in $ac_precious_vars; do 3177 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3178 eval ac_new_set=\$ac_env_${ac_var}_set 3179 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3180 eval ac_new_val=\$ac_env_${ac_var}_value 3181 case $ac_old_set,$ac_new_set in 3182 set,) 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3184 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3185 ac_cache_corrupted=: ;; 3186 ,set) 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3188 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3189 ac_cache_corrupted=: ;; 3190 ,);; 3191 *) 3192 if test "x$ac_old_val" != "x$ac_new_val"; then 3193 # differences in whitespace do not lead to failure. 3194 ac_old_val_w=`echo x $ac_old_val` 3195 ac_new_val_w=`echo x $ac_new_val` 3196 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3198 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3199 ac_cache_corrupted=: 3200 else 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3202 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3203 eval $ac_var=\$ac_old_val 3204 fi 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3206 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3208 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3209 fi;; 3210 esac 3211 # Pass precious variables to config.status. 3212 if test "$ac_new_set" = set; then 3213 case $ac_new_val in 3214 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3215 *) ac_arg=$ac_var=$ac_new_val ;; 3216 esac 3217 case " $ac_configure_args " in 3218 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3219 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3220 esac 3221 fi 3222 done 3223 if $ac_cache_corrupted; then 3224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3227 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3228 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3229 fi 3230 ## -------------------- ## 3231 ## Main body of script. ## 3232 ## -------------------- ## 3233 3234 ac_ext=c 3235 ac_cpp='$CPP $CPPFLAGS' 3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3239 3240 3241 3242 ac_aux_dir= 3243 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3244 if test -f "$ac_dir/install-sh"; then 3245 ac_aux_dir=$ac_dir 3246 ac_install_sh="$ac_aux_dir/install-sh -c" 3247 break 3248 elif test -f "$ac_dir/install.sh"; then 3249 ac_aux_dir=$ac_dir 3250 ac_install_sh="$ac_aux_dir/install.sh -c" 3251 break 3252 elif test -f "$ac_dir/shtool"; then 3253 ac_aux_dir=$ac_dir 3254 ac_install_sh="$ac_aux_dir/shtool install -c" 3255 break 3256 fi 3257 done 3258 if test -z "$ac_aux_dir"; then 3259 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 3260 fi 3261 3262 # These three variables are undocumented and unsupported, 3263 # and are intended to be withdrawn in a future Autoconf release. 3264 # They can cause serious problems if a builder's source tree is in a directory 3265 # whose full name contains unusual characters. 3266 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3267 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3268 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3269 3270 3271 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3272 3273 # 3274 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3275 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3276 # 3277 # This code is free software; you can redistribute it and/or modify it 3278 # under the terms of the GNU General Public License version 2 only, as 3279 # published by the Free Software Foundation. Oracle designates this 3280 # particular file as subject to the "Classpath" exception as provided 3281 # by Oracle in the LICENSE file that accompanied this code. 3282 # 3283 # This code is distributed in the hope that it will be useful, but WITHOUT 3284 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3285 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3286 # version 2 for more details (a copy is included in the LICENSE file that 3287 # accompanied this code). 3288 # 3289 # You should have received a copy of the GNU General Public License version 3290 # 2 along with this work; if not, write to the Free Software Foundation, 3291 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3292 # 3293 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3294 # or visit www.oracle.com if you need additional information or have any 3295 # questions. 3296 # 3297 3298 # 3299 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3300 # 3301 # This program is free software; you can redistribute it and/or modify 3302 # it under the terms of the GNU General Public License as published by 3303 # the Free Software Foundation; either version 2 of the License, or 3304 # (at your option) any later version. 3305 # 3306 # This program is distributed in the hope that it will be useful, but 3307 # WITHOUT ANY WARRANTY; without even the implied warranty of 3308 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3309 # General Public License for more details. 3310 # 3311 # You should have received a copy of the GNU General Public License 3312 # along with this program; if not, write to the Free Software 3313 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3314 # 3315 # As a special exception to the GNU General Public License, if you 3316 # distribute this file as part of a program that contains a 3317 # configuration script generated by Autoconf, you may include it under 3318 # the same distribution terms that you use for the rest of that program. 3319 3320 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3321 # ---------------------------------- 3322 # PKG_PROG_PKG_CONFIG 3323 3324 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3325 # 3326 # Check to see whether a particular set of modules exists. Similar 3327 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3328 # 3329 # 3330 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3331 # this or PKG_CHECK_MODULES is called, or make sure to call 3332 # PKG_CHECK_EXISTS manually 3333 # -------------------------------------------------------------- 3334 3335 3336 3337 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3338 # --------------------------------------------- 3339 # _PKG_CONFIG 3340 3341 # _PKG_SHORT_ERRORS_SUPPORTED 3342 # ----------------------------- 3343 # _PKG_SHORT_ERRORS_SUPPORTED 3344 3345 3346 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3347 # [ACTION-IF-NOT-FOUND]) 3348 # 3349 # 3350 # Note that if there is a possibility the first call to 3351 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3352 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3353 # 3354 # 3355 # -------------------------------------------------------------- 3356 # PKG_CHECK_MODULES 3357 3358 3359 # Include these first... 3360 # 3361 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3362 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3363 # 3364 # This code is free software; you can redistribute it and/or modify it 3365 # under the terms of the GNU General Public License version 2 only, as 3366 # published by the Free Software Foundation. Oracle designates this 3367 # particular file as subject to the "Classpath" exception as provided 3368 # by Oracle in the LICENSE file that accompanied this code. 3369 # 3370 # This code is distributed in the hope that it will be useful, but WITHOUT 3371 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3372 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3373 # version 2 for more details (a copy is included in the LICENSE file that 3374 # accompanied this code). 3375 # 3376 # You should have received a copy of the GNU General Public License version 3377 # 2 along with this work; if not, write to the Free Software Foundation, 3378 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3379 # 3380 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3381 # or visit www.oracle.com if you need additional information or have any 3382 # questions. 3383 # 3384 3385 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3386 # If so, then append $1 to $2 \ 3387 # Also set JVM_ARG_OK to true/false depending on outcome. 3388 3389 3390 # Appends a string to a path variable, only adding the : when needed. 3391 3392 3393 # Prepends a string to a path variable, only adding the : when needed. 3394 3395 3396 # This will make sure the given variable points to a full and proper 3397 # path. This means: 3398 # 1) There will be no spaces in the path. On unix platforms, 3399 # spaces in the path will result in an error. On Windows, 3400 # the path will be rewritten using short-style to be space-free. 3401 # 2) The path will be absolute, and it will be in unix-style (on 3402 # cygwin). 3403 # $1: The name of the variable to fix 3404 3405 3406 # This will make sure the given variable points to a executable 3407 # with a full and proper path. This means: 3408 # 1) There will be no spaces in the path. On unix platforms, 3409 # spaces in the path will result in an error. On Windows, 3410 # the path will be rewritten using short-style to be space-free. 3411 # 2) The path will be absolute, and it will be in unix-style (on 3412 # cygwin). 3413 # Any arguments given to the executable is preserved. 3414 # If the input variable does not have a directory specification, then 3415 # it need to be in the PATH. 3416 # $1: The name of the variable to fix 3417 3418 3419 3420 3421 # Register a --with argument but mark it as deprecated 3422 # $1: The name of the with argument to deprecate, not including --with- 3423 3424 3425 # Register a --enable argument but mark it as deprecated 3426 # $1: The name of the with argument to deprecate, not including --enable- 3427 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3428 3429 3430 3431 3432 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3433 # $1: variable to check 3434 3435 3436 # Check that there are no unprocessed overridden variables left. 3437 # If so, they are an incorrect argument and we will exit with an error. 3438 3439 3440 # Setup a tool for the given variable. If correctly specified by the user, 3441 # use that value, otherwise search for the tool using the supplied code snippet. 3442 # $1: variable to set 3443 # $2: code snippet to call to look for the tool 3444 3445 3446 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3447 # $1: variable to set 3448 # $2: executable name (or list of names) to look for 3449 3450 3451 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3452 # $1: variable to set 3453 # $2: executable name (or list of names) to look for 3454 3455 3456 # Like BASIC_PATH_PROGS but fails if no tool was found. 3457 # $1: variable to set 3458 # $2: executable name (or list of names) to look for 3459 3460 3461 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3462 # $1: variable to set 3463 # $2: autoconf macro to call to look for the special tool 3464 3465 3466 # Setup the most fundamental tools that relies on not much else to set up, 3467 # but is used by much of the early bootstrap code. 3468 3469 3470 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3471 3472 3473 3474 3475 3476 3477 #%%% Simple tools %%% 3478 3479 # Check if we have found a usable version of make 3480 # $1: the path to a potential make binary (or empty) 3481 # $2: the description on how we found this 3482 3483 3484 3485 3486 # Goes looking for a usable version of GNU make. 3487 3488 3489 3490 3491 3492 3493 # Check if build directory is on local disk. If not possible to determine, 3494 # we prefer to claim it's local. 3495 # Argument 1: directory to test 3496 # Argument 2: what to do if it is on local disk 3497 # Argument 3: what to do otherwise (remote disk or failure) 3498 3499 3500 # Check that source files have basic read permissions set. This might 3501 # not be the case in cygwin in certain conditions. 3502 3503 3504 3505 3506 # Check for support for specific options in bash 3507 3508 3509 # 3510 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3511 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3512 # 3513 # This code is free software; you can redistribute it and/or modify it 3514 # under the terms of the GNU General Public License version 2 only, as 3515 # published by the Free Software Foundation. Oracle designates this 3516 # particular file as subject to the "Classpath" exception as provided 3517 # by Oracle in the LICENSE file that accompanied this code. 3518 # 3519 # This code is distributed in the hope that it will be useful, but WITHOUT 3520 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3521 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3522 # version 2 for more details (a copy is included in the LICENSE file that 3523 # accompanied this code). 3524 # 3525 # You should have received a copy of the GNU General Public License version 3526 # 2 along with this work; if not, write to the Free Software Foundation, 3527 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3528 # 3529 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3530 # or visit www.oracle.com if you need additional information or have any 3531 # questions. 3532 # 3533 3534 3535 3536 3537 3538 # Helper function which possibly converts a path using DOS-style short mode. 3539 # If so, the updated path is stored in $new_path. 3540 # $1: The path to check 3541 3542 3543 # Helper function which possibly converts a path using DOS-style short mode. 3544 # If so, the updated path is stored in $new_path. 3545 # $1: The path to check 3546 3547 3548 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3549 # and could probably be heavily simplified. However, all changes in this 3550 # area tend to need lot of testing in different scenarios, and in lack of 3551 # proper unit testing, cleaning this up has not been deemed worth the effort 3552 # at the moment. 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3563 3564 3565 3566 3567 # 3568 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3569 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3570 # 3571 # This code is free software; you can redistribute it and/or modify it 3572 # under the terms of the GNU General Public License version 2 only, as 3573 # published by the Free Software Foundation. Oracle designates this 3574 # particular file as subject to the "Classpath" exception as provided 3575 # by Oracle in the LICENSE file that accompanied this code. 3576 # 3577 # This code is distributed in the hope that it will be useful, but WITHOUT 3578 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3579 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3580 # version 2 for more details (a copy is included in the LICENSE file that 3581 # accompanied this code). 3582 # 3583 # You should have received a copy of the GNU General Public License version 3584 # 2 along with this work; if not, write to the Free Software Foundation, 3585 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3586 # 3587 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3588 # or visit www.oracle.com if you need additional information or have any 3589 # questions. 3590 # 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 # ... then the rest 3603 # 3604 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3605 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3606 # 3607 # This code is free software; you can redistribute it and/or modify it 3608 # under the terms of the GNU General Public License version 2 only, as 3609 # published by the Free Software Foundation. Oracle designates this 3610 # particular file as subject to the "Classpath" exception as provided 3611 # by Oracle in the LICENSE file that accompanied this code. 3612 # 3613 # This code is distributed in the hope that it will be useful, but WITHOUT 3614 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3615 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3616 # version 2 for more details (a copy is included in the LICENSE file that 3617 # accompanied this code). 3618 # 3619 # You should have received a copy of the GNU General Public License version 3620 # 2 along with this work; if not, write to the Free Software Foundation, 3621 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3622 # 3623 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3624 # or visit www.oracle.com if you need additional information or have any 3625 # questions. 3626 # 3627 3628 ######################################################################## 3629 # This file handles detection of the Boot JDK. The Boot JDK detection 3630 # process has been developed as a response to solve a complex real-world 3631 # problem. Initially, it was simple, but it has grown as platform after 3632 # platform, idiosyncracy after idiosyncracy has been supported. 3633 # 3634 # The basic idea is this: 3635 # 1) You need an acceptable *) JDK to use as a Boot JDK 3636 # 2) There are several ways to locate a JDK, that are mostly platform 3637 # dependent **) 3638 # 3) You can have multiple JDKs installed 3639 # 4) If possible, configure should try to dig out an acceptable JDK 3640 # automatically, without having to resort to command-line options 3641 # 3642 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3643 # javac) and not a JRE, etc. 3644 # 3645 # **) On Windows we typically use a well-known path. 3646 # On MacOSX we typically use the tool java_home. 3647 # On Linux we typically find javac in the $PATH, and then follow a 3648 # chain of symlinks that often ends up in a real JDK. 3649 # 3650 # This leads to the code where we check in different ways to locate a 3651 # JDK, and if one is found, check if it is acceptable. If not, we print 3652 # our reasons for rejecting it (useful when debugging non-working 3653 # configure situations) and continue checking the next one. 3654 ######################################################################## 3655 3656 # Execute the check given as argument, and verify the result 3657 # If the Boot JDK was previously found, do nothing 3658 # $1 A command line (typically autoconf macro) to execute 3659 3660 3661 # Test: Is bootjdk explicitely set by command line arguments? 3662 3663 3664 # Test: Is bootjdk available from builddeps? 3665 3666 3667 # Test: Is $JAVA_HOME set? 3668 3669 3670 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3671 3672 3673 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3674 # $1: Argument to the java_home binary (optional) 3675 3676 3677 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3678 3679 3680 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3681 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3682 # $1 = Path to directory containing jdk installations. 3683 # $2 = String to append to the found JDK directory to get the proper JDK home 3684 3685 3686 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3687 # environmental variable as base for where to look. 3688 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3689 3690 3691 # Test: Is there a JDK installed in default, well-known locations? 3692 3693 3694 # Check that a command-line tool in the Boot JDK is correct 3695 # $1 = name of variable to assign 3696 # $2 = name of binary 3697 3698 3699 ############################################################################### 3700 # 3701 # We need a Boot JDK to bootstrap the build. 3702 # 3703 3704 3705 3706 3707 3708 # 3709 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3710 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3711 # 3712 # This code is free software; you can redistribute it and/or modify it 3713 # under the terms of the GNU General Public License version 2 only, as 3714 # published by the Free Software Foundation. Oracle designates this 3715 # particular file as subject to the "Classpath" exception as provided 3716 # by Oracle in the LICENSE file that accompanied this code. 3717 # 3718 # This code is distributed in the hope that it will be useful, but WITHOUT 3719 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3720 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3721 # version 2 for more details (a copy is included in the LICENSE file that 3722 # accompanied this code). 3723 # 3724 # You should have received a copy of the GNU General Public License version 3725 # 2 along with this work; if not, write to the Free Software Foundation, 3726 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3727 # 3728 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3729 # or visit www.oracle.com if you need additional information or have any 3730 # questions. 3731 # 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 # 3753 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3754 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3755 # 3756 # This code is free software; you can redistribute it and/or modify it 3757 # under the terms of the GNU General Public License version 2 only, as 3758 # published by the Free Software Foundation. Oracle designates this 3759 # particular file as subject to the "Classpath" exception as provided 3760 # by Oracle in the LICENSE file that accompanied this code. 3761 # 3762 # This code is distributed in the hope that it will be useful, but WITHOUT 3763 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3764 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3765 # version 2 for more details (a copy is included in the LICENSE file that 3766 # accompanied this code). 3767 # 3768 # You should have received a copy of the GNU General Public License version 3769 # 2 along with this work; if not, write to the Free Software Foundation, 3770 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3771 # 3772 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3773 # or visit www.oracle.com if you need additional information or have any 3774 # questions. 3775 # 3776 3777 3778 3779 3780 3781 # Documentation on common flags used for solstudio in HIGHEST. 3782 # 3783 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3784 # done with care, there are some assumptions below that need to 3785 # be understood about the use of pointers, and IEEE behavior. 3786 # 3787 # -fns: Use non-standard floating point mode (not IEEE 754) 3788 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3789 # -fsingle: Use single precision floating point with 'float' 3790 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3791 # (Source with excessing pointer casting and data access with mixed 3792 # pointer types are not recommended) 3793 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3794 # (If you expect perfect errno behavior, do not use this) 3795 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3796 # -xrestrict: Pointer parameters to functions do not overlap 3797 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3798 # If you pass in multiple pointers to the same data, do not use this) 3799 # -xlibmil: Inline some library routines 3800 # (If you expect perfect errno behavior, do not use this) 3801 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3802 # (If you expect perfect errno behavior, do not use this) 3803 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3804 3805 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3806 # Bug? 3807 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3808 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3809 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3810 #fi 3811 3812 3813 3814 3815 3816 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3817 # [RUN-IF-FALSE]) 3818 # ------------------------------------------------------------ 3819 # Check that the c and c++ compilers support an argument 3820 3821 3822 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3823 # [RUN-IF-FALSE]) 3824 # ------------------------------------------------------------ 3825 # Check that the linker support an argument 3826 3827 3828 3829 3830 # 3831 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3832 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3833 # 3834 # This code is free software; you can redistribute it and/or modify it 3835 # under the terms of the GNU General Public License version 2 only, as 3836 # published by the Free Software Foundation. Oracle designates this 3837 # particular file as subject to the "Classpath" exception as provided 3838 # by Oracle in the LICENSE file that accompanied this code. 3839 # 3840 # This code is distributed in the hope that it will be useful, but WITHOUT 3841 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3842 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3843 # version 2 for more details (a copy is included in the LICENSE file that 3844 # accompanied this code). 3845 # 3846 # You should have received a copy of the GNU General Public License version 3847 # 2 along with this work; if not, write to the Free Software Foundation, 3848 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3849 # 3850 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3851 # or visit www.oracle.com if you need additional information or have any 3852 # questions. 3853 # 3854 3855 3856 3857 3858 3859 cygwin_help() { 3860 case $1 in 3861 unzip) 3862 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3863 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3864 ;; 3865 zip) 3866 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3867 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3868 ;; 3869 make) 3870 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3871 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3872 ;; 3873 freetype) 3874 HELP_MSG=" 3875 The freetype library can now be build during the configure process. 3876 Download the freetype sources and unpack them into an arbitrary directory: 3877 3878 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3879 tar -xzf freetype-2.5.3.tar.gz 3880 3881 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3882 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3883 builds or into '<freetype_src>/lib32' for 32-bit builds. 3884 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3885 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3886 ;; 3887 esac 3888 } 3889 3890 msys_help() { 3891 PKGHANDLER_COMMAND="" 3892 } 3893 3894 apt_help() { 3895 case $1 in 3896 devkit) 3897 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3898 openjdk) 3899 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3900 alsa) 3901 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3902 cups) 3903 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3904 freetype) 3905 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3906 pulse) 3907 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3908 x11) 3909 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3910 ccache) 3911 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3912 esac 3913 } 3914 3915 yum_help() { 3916 case $1 in 3917 devkit) 3918 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3919 openjdk) 3920 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3921 alsa) 3922 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3923 cups) 3924 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3925 freetype) 3926 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3927 pulse) 3928 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3929 x11) 3930 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 3931 ccache) 3932 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3933 esac 3934 } 3935 3936 port_help() { 3937 PKGHANDLER_COMMAND="" 3938 } 3939 3940 pkgutil_help() { 3941 PKGHANDLER_COMMAND="" 3942 } 3943 3944 pkgadd_help() { 3945 PKGHANDLER_COMMAND="" 3946 } 3947 3948 # This function will check if we're called from the "configure" wrapper while 3949 # printing --help. If so, we will print out additional information that can 3950 # only be extracted within the autoconf script, and then exit. This must be 3951 # called at the very beginning in configure.ac. 3952 3953 3954 3955 3956 3957 3958 # 3959 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3960 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3961 # 3962 # This code is free software; you can redistribute it and/or modify it 3963 # under the terms of the GNU General Public License version 2 only, as 3964 # published by the Free Software Foundation. Oracle designates this 3965 # particular file as subject to the "Classpath" exception as provided 3966 # by Oracle in the LICENSE file that accompanied this code. 3967 # 3968 # This code is distributed in the hope that it will be useful, but WITHOUT 3969 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3970 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3971 # version 2 for more details (a copy is included in the LICENSE file that 3972 # accompanied this code). 3973 # 3974 # You should have received a copy of the GNU General Public License version 3975 # 2 along with this work; if not, write to the Free Software Foundation, 3976 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3977 # 3978 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3979 # or visit www.oracle.com if you need additional information or have any 3980 # questions. 3981 # 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 ############################################################################### 3993 # 3994 # Should we build only OpenJDK even if closed sources are present? 3995 # 3996 3997 3998 3999 4000 ############################################################################### 4001 # 4002 # Setup version numbers 4003 # 4004 4005 4006 4007 4008 4009 4010 ################################################################################ 4011 # 4012 # Gcov coverage data for hotspot 4013 # 4014 4015 4016 # 4017 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4018 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4019 # 4020 # This code is free software; you can redistribute it and/or modify it 4021 # under the terms of the GNU General Public License version 2 only, as 4022 # published by the Free Software Foundation. Oracle designates this 4023 # particular file as subject to the "Classpath" exception as provided 4024 # by Oracle in the LICENSE file that accompanied this code. 4025 # 4026 # This code is distributed in the hope that it will be useful, but WITHOUT 4027 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4028 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4029 # version 2 for more details (a copy is included in the LICENSE file that 4030 # accompanied this code). 4031 # 4032 # You should have received a copy of the GNU General Public License version 4033 # 2 along with this work; if not, write to the Free Software Foundation, 4034 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4035 # 4036 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4037 # or visit www.oracle.com if you need additional information or have any 4038 # questions. 4039 # 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 # 4062 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4063 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4064 # 4065 # This code is free software; you can redistribute it and/or modify it 4066 # under the terms of the GNU General Public License version 2 only, as 4067 # published by the Free Software Foundation. Oracle designates this 4068 # particular file as subject to the "Classpath" exception as provided 4069 # by Oracle in the LICENSE file that accompanied this code. 4070 # 4071 # This code is distributed in the hope that it will be useful, but WITHOUT 4072 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4073 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4074 # version 2 for more details (a copy is included in the LICENSE file that 4075 # accompanied this code). 4076 # 4077 # You should have received a copy of the GNU General Public License version 4078 # 2 along with this work; if not, write to the Free Software Foundation, 4079 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4080 # 4081 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4082 # or visit www.oracle.com if you need additional information or have any 4083 # questions. 4084 # 4085 4086 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4087 # Converts autoconf style CPU name to OpenJDK style, into 4088 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4089 4090 4091 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4092 # Converts autoconf style OS name to OpenJDK style, into 4093 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4094 4095 4096 # Expects $host_os $host_cpu $build_os and $build_cpu 4097 # and $with_target_bits to have been setup! 4098 # 4099 # Translate the standard triplet(quadruplet) definition 4100 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4101 # OPENJDK_BUILD_OS, etc. 4102 4103 4104 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4105 # accordingly. Must be done after setting up build and target system, but before 4106 # doing anything else with these values. 4107 4108 4109 # Setup the legacy variables, for controlling the old makefiles. 4110 # 4111 4112 4113 4114 4115 #%%% Build and target systems %%% 4116 4117 4118 4119 4120 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4121 # Add -mX to various FLAGS variables. 4122 4123 4124 4125 4126 4127 4128 # 4129 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4130 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4131 # 4132 # This code is free software; you can redistribute it and/or modify it 4133 # under the terms of the GNU General Public License version 2 only, as 4134 # published by the Free Software Foundation. Oracle designates this 4135 # particular file as subject to the "Classpath" exception as provided 4136 # by Oracle in the LICENSE file that accompanied this code. 4137 # 4138 # This code is distributed in the hope that it will be useful, but WITHOUT 4139 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4140 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4141 # version 2 for more details (a copy is included in the LICENSE file that 4142 # accompanied this code). 4143 # 4144 # You should have received a copy of the GNU General Public License version 4145 # 2 along with this work; if not, write to the Free Software Foundation, 4146 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4147 # 4148 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4149 # or visit www.oracle.com if you need additional information or have any 4150 # questions. 4151 # 4152 4153 4154 4155 4156 4157 4158 4159 4160 # 4161 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4162 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4163 # 4164 # This code is free software; you can redistribute it and/or modify it 4165 # under the terms of the GNU General Public License version 2 only, as 4166 # published by the Free Software Foundation. Oracle designates this 4167 # particular file as subject to the "Classpath" exception as provided 4168 # by Oracle in the LICENSE file that accompanied this code. 4169 # 4170 # This code is distributed in the hope that it will be useful, but WITHOUT 4171 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4172 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4173 # version 2 for more details (a copy is included in the LICENSE file that 4174 # accompanied this code). 4175 # 4176 # You should have received a copy of the GNU General Public License version 4177 # 2 along with this work; if not, write to the Free Software Foundation, 4178 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4179 # 4180 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4181 # or visit www.oracle.com if you need additional information or have any 4182 # questions. 4183 # 4184 4185 ######################################################################## 4186 # This file is responsible for detecting, verifying and setting up the 4187 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4188 # proper paths to the binaries, but it will not setup any flags. 4189 # 4190 # The binaries used is determined by the toolchain type, which is the family of 4191 # compilers and related tools that are used. 4192 ######################################################################## 4193 4194 4195 # All valid toolchains, regardless of platform (used by help.m4) 4196 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4197 4198 # These toolchains are valid on different platforms 4199 VALID_TOOLCHAINS_linux="gcc clang" 4200 VALID_TOOLCHAINS_solaris="solstudio" 4201 VALID_TOOLCHAINS_macosx="gcc clang" 4202 VALID_TOOLCHAINS_aix="xlc" 4203 VALID_TOOLCHAINS_windows="microsoft" 4204 4205 # Toolchain descriptions 4206 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4207 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4208 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4209 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4210 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4211 4212 # Setup a number of variables describing how native output files are 4213 # named on this platform/toolchain. 4214 4215 4216 # Determine which toolchain type to use, and make sure it is valid for this 4217 # platform. Setup various information about the selected toolchain. 4218 4219 4220 # Before we start detecting the toolchain executables, we might need some 4221 # special setup, e.g. additional paths etc. 4222 4223 4224 # Restore path, etc 4225 4226 4227 # Check if a compiler is of the toolchain type we expect, and save the version 4228 # information from it. If the compiler does not match the expected type, 4229 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4230 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4231 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4232 # 4233 # $1 = compiler to test (CC or CXX) 4234 # $2 = human readable name of compiler (C or C++) 4235 4236 4237 # Try to locate the given C or C++ compiler in the path, or otherwise. 4238 # 4239 # $1 = compiler to test (CC or CXX) 4240 # $2 = human readable name of compiler (C or C++) 4241 # $3 = list of compiler names to search for 4242 4243 4244 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4245 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4246 # archiver (AR). Verify that the compilers are correct according to the 4247 # toolchain type. 4248 4249 4250 # Setup additional tools that is considered a part of the toolchain, but not the 4251 # core part. Many of these are highly platform-specific and do not exist, 4252 # and/or are not needed on all platforms. 4253 4254 4255 # Setup the build tools (i.e, the compiler and linker used to build programs 4256 # that should be run on the build platform, not the target platform, as a build 4257 # helper). Since the non-cross-compile case uses the normal, target compilers 4258 # for this, we can only do this after these have been setup. 4259 4260 4261 # Setup legacy variables that are still needed as alternative ways to refer to 4262 # parts of the toolchain. 4263 4264 4265 # Do some additional checks on the detected tools. 4266 4267 4268 # Setup the JTReg Regression Test Harness. 4269 4270 4271 # 4272 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4273 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4274 # 4275 # This code is free software; you can redistribute it and/or modify it 4276 # under the terms of the GNU General Public License version 2 only, as 4277 # published by the Free Software Foundation. Oracle designates this 4278 # particular file as subject to the "Classpath" exception as provided 4279 # by Oracle in the LICENSE file that accompanied this code. 4280 # 4281 # This code is distributed in the hope that it will be useful, but WITHOUT 4282 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4283 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4284 # version 2 for more details (a copy is included in the LICENSE file that 4285 # accompanied this code). 4286 # 4287 # You should have received a copy of the GNU General Public License version 4288 # 2 along with this work; if not, write to the Free Software Foundation, 4289 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4290 # 4291 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4292 # or visit www.oracle.com if you need additional information or have any 4293 # questions. 4294 # 4295 4296 ################################################################################ 4297 # The order of these defines the priority by which we try to find them. 4298 VALID_VS_VERSIONS="2013 2012 2010" 4299 4300 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4301 VS_VERSION_INTERNAL_2010=100 4302 VS_MSVCR_2010=msvcr100.dll 4303 # We don't use msvcp on Visual Studio 2010 4304 #VS_MSVCP_2010=msvcp100.dll 4305 VS_ENVVAR_2010="VS100COMNTOOLS" 4306 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4307 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4308 VS_VS_PLATFORM_NAME_2010="v100" 4309 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4310 4311 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4312 VS_VERSION_INTERNAL_2012=110 4313 VS_MSVCR_2012=msvcr110.dll 4314 VS_MSVCP_2012=msvcp110.dll 4315 VS_ENVVAR_2012="VS110COMNTOOLS" 4316 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4317 VS_SDK_INSTALLDIR_2012= 4318 VS_VS_PLATFORM_NAME_2012="v110" 4319 VS_SDK_PLATFORM_NAME_2012= 4320 4321 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4322 VS_VERSION_INTERNAL_2013=120 4323 VS_MSVCR_2013=msvcr120.dll 4324 VS_MSVCP_2013=msvcp120.dll 4325 VS_ENVVAR_2013="VS120COMNTOOLS" 4326 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4327 VS_SDK_INSTALLDIR_2013= 4328 VS_VS_PLATFORM_NAME_2013="v120" 4329 VS_SDK_PLATFORM_NAME_2013= 4330 4331 ################################################################################ 4332 4333 4334 4335 ################################################################################ 4336 4337 4338 4339 ################################################################################ 4340 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4341 # build environment and assigns it to VS_ENV_CMD 4342 4343 4344 ################################################################################ 4345 4346 4347 4348 ################################################################################ 4349 # Check if the VS env variables were setup prior to running configure. 4350 # If not, then find vcvarsall.bat and run it automatically, and integrate 4351 # the set env variables into the spec file. 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 # This line needs to be here, verbatim, after all includes and the dummy hook 4367 # definitions. It is replaced with custom functionality when building 4368 # custom sources. 4369 #CUSTOM_AUTOCONF_INCLUDE 4370 4371 # Do not change or remove the following line, it is needed for consistency checks: 4372 DATE_WHEN_GENERATED=1429267013 4373 4374 ############################################################################### 4375 # 4376 # Initialization / Boot-strapping 4377 # 4378 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4379 # thus it jumps back and forth, each time gaining something needed later on. 4380 # 4381 ############################################################################### 4382 4383 # If we are requested to print additional help, do that and then exit. 4384 # This must be the very first call. 4385 4386 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4387 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4388 $PRINTF "Which are valid to use depends on the build platform.\n" 4389 for toolchain in $VALID_TOOLCHAINS_all; do 4390 # Use indirect variable referencing 4391 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4392 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4393 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4394 done 4395 4396 # And now exit directly 4397 exit 0 4398 fi 4399 4400 4401 # Basic initialization that must happen first of all in the normal process. 4402 4403 # Save the original command line. This is passed to us by the wrapper configure script. 4404 4405 # Save the path variable before it gets changed 4406 ORIGINAL_PATH="$PATH" 4407 4408 DATE_WHEN_CONFIGURED=`LANG=C date` 4409 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4411 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4413 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4414 4415 4416 # Start with tools that do not need have cross compilation support 4417 # and can be expected to be found in the default PATH. These tools are 4418 # used by configure. Nor are these tools expected to be found in the 4419 # devkit from the builddeps server either, since they are 4420 # needed to download the devkit. 4421 4422 # First are all the simple required tools. 4423 4424 4425 4426 # Publish this variable in the help. 4427 4428 4429 if test "x$BASENAME" = x; then 4430 # The variable is not set by user, try to locate tool using the code snippet 4431 for ac_prog in basename 4432 do 4433 # Extract the first word of "$ac_prog", so it can be a program name with args. 4434 set dummy $ac_prog; ac_word=$2 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4436 $as_echo_n "checking for $ac_word... " >&6; } 4437 if ${ac_cv_path_BASENAME+:} false; then : 4438 $as_echo_n "(cached) " >&6 4439 else 4440 case $BASENAME in 4441 [\\/]* | ?:[\\/]*) 4442 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4443 ;; 4444 *) 4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4446 for as_dir in $PATH 4447 do 4448 IFS=$as_save_IFS 4449 test -z "$as_dir" && as_dir=. 4450 for ac_exec_ext in '' $ac_executable_extensions; do 4451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4452 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4454 break 2 4455 fi 4456 done 4457 done 4458 IFS=$as_save_IFS 4459 4460 ;; 4461 esac 4462 fi 4463 BASENAME=$ac_cv_path_BASENAME 4464 if test -n "$BASENAME"; then 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4466 $as_echo "$BASENAME" >&6; } 4467 else 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4469 $as_echo "no" >&6; } 4470 fi 4471 4472 4473 test -n "$BASENAME" && break 4474 done 4475 4476 else 4477 # The variable is set, but is it from the command line or the environment? 4478 4479 # Try to remove the string !BASENAME! from our list. 4480 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4481 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4482 # If it failed, the variable was not from the command line. Ignore it, 4483 # but warn the user (except for BASH, which is always set by the calling BASH). 4484 if test "xBASENAME" != xBASH; then 4485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4486 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4487 fi 4488 # Try to locate tool using the code snippet 4489 for ac_prog in basename 4490 do 4491 # Extract the first word of "$ac_prog", so it can be a program name with args. 4492 set dummy $ac_prog; ac_word=$2 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4494 $as_echo_n "checking for $ac_word... " >&6; } 4495 if ${ac_cv_path_BASENAME+:} false; then : 4496 $as_echo_n "(cached) " >&6 4497 else 4498 case $BASENAME in 4499 [\\/]* | ?:[\\/]*) 4500 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4501 ;; 4502 *) 4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4504 for as_dir in $PATH 4505 do 4506 IFS=$as_save_IFS 4507 test -z "$as_dir" && as_dir=. 4508 for ac_exec_ext in '' $ac_executable_extensions; do 4509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4510 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4512 break 2 4513 fi 4514 done 4515 done 4516 IFS=$as_save_IFS 4517 4518 ;; 4519 esac 4520 fi 4521 BASENAME=$ac_cv_path_BASENAME 4522 if test -n "$BASENAME"; then 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4524 $as_echo "$BASENAME" >&6; } 4525 else 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4527 $as_echo "no" >&6; } 4528 fi 4529 4530 4531 test -n "$BASENAME" && break 4532 done 4533 4534 else 4535 # If it succeeded, then it was overridden by the user. We will use it 4536 # for the tool. 4537 4538 # First remove it from the list of overridden variables, so we can test 4539 # for unknown variables in the end. 4540 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4541 4542 # Check if the provided tool contains a complete path. 4543 tool_specified="$BASENAME" 4544 tool_basename="${tool_specified##*/}" 4545 if test "x$tool_basename" = "x$tool_specified"; then 4546 # A command without a complete path is provided, search $PATH. 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4548 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4549 # Extract the first word of "$tool_basename", so it can be a program name with args. 4550 set dummy $tool_basename; ac_word=$2 4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4552 $as_echo_n "checking for $ac_word... " >&6; } 4553 if ${ac_cv_path_BASENAME+:} false; then : 4554 $as_echo_n "(cached) " >&6 4555 else 4556 case $BASENAME in 4557 [\\/]* | ?:[\\/]*) 4558 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4559 ;; 4560 *) 4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4562 for as_dir in $PATH 4563 do 4564 IFS=$as_save_IFS 4565 test -z "$as_dir" && as_dir=. 4566 for ac_exec_ext in '' $ac_executable_extensions; do 4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4568 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4570 break 2 4571 fi 4572 done 4573 done 4574 IFS=$as_save_IFS 4575 4576 ;; 4577 esac 4578 fi 4579 BASENAME=$ac_cv_path_BASENAME 4580 if test -n "$BASENAME"; then 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4582 $as_echo "$BASENAME" >&6; } 4583 else 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4585 $as_echo "no" >&6; } 4586 fi 4587 4588 4589 if test "x$BASENAME" = x; then 4590 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4591 fi 4592 else 4593 # Otherwise we believe it is a complete path. Use it as it is. 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4595 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4597 $as_echo_n "checking for BASENAME... " >&6; } 4598 if test ! -x "$tool_specified"; then 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4600 $as_echo "not found" >&6; } 4601 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4602 fi 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4604 $as_echo "$tool_specified" >&6; } 4605 fi 4606 fi 4607 fi 4608 4609 4610 4611 if test "x$BASENAME" = x; then 4612 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4613 fi 4614 4615 4616 4617 4618 4619 # Publish this variable in the help. 4620 4621 4622 if test "x$BASH" = x; then 4623 # The variable is not set by user, try to locate tool using the code snippet 4624 for ac_prog in bash 4625 do 4626 # Extract the first word of "$ac_prog", so it can be a program name with args. 4627 set dummy $ac_prog; ac_word=$2 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4629 $as_echo_n "checking for $ac_word... " >&6; } 4630 if ${ac_cv_path_BASH+:} false; then : 4631 $as_echo_n "(cached) " >&6 4632 else 4633 case $BASH in 4634 [\\/]* | ?:[\\/]*) 4635 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4636 ;; 4637 *) 4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4639 for as_dir in $PATH 4640 do 4641 IFS=$as_save_IFS 4642 test -z "$as_dir" && as_dir=. 4643 for ac_exec_ext in '' $ac_executable_extensions; do 4644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4645 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4647 break 2 4648 fi 4649 done 4650 done 4651 IFS=$as_save_IFS 4652 4653 ;; 4654 esac 4655 fi 4656 BASH=$ac_cv_path_BASH 4657 if test -n "$BASH"; then 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4659 $as_echo "$BASH" >&6; } 4660 else 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4662 $as_echo "no" >&6; } 4663 fi 4664 4665 4666 test -n "$BASH" && break 4667 done 4668 4669 else 4670 # The variable is set, but is it from the command line or the environment? 4671 4672 # Try to remove the string !BASH! from our list. 4673 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4674 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4675 # If it failed, the variable was not from the command line. Ignore it, 4676 # but warn the user (except for BASH, which is always set by the calling BASH). 4677 if test "xBASH" != xBASH; then 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4679 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4680 fi 4681 # Try to locate tool using the code snippet 4682 for ac_prog in bash 4683 do 4684 # Extract the first word of "$ac_prog", so it can be a program name with args. 4685 set dummy $ac_prog; ac_word=$2 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4687 $as_echo_n "checking for $ac_word... " >&6; } 4688 if ${ac_cv_path_BASH+:} false; then : 4689 $as_echo_n "(cached) " >&6 4690 else 4691 case $BASH in 4692 [\\/]* | ?:[\\/]*) 4693 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4694 ;; 4695 *) 4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4697 for as_dir in $PATH 4698 do 4699 IFS=$as_save_IFS 4700 test -z "$as_dir" && as_dir=. 4701 for ac_exec_ext in '' $ac_executable_extensions; do 4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4703 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4705 break 2 4706 fi 4707 done 4708 done 4709 IFS=$as_save_IFS 4710 4711 ;; 4712 esac 4713 fi 4714 BASH=$ac_cv_path_BASH 4715 if test -n "$BASH"; then 4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4717 $as_echo "$BASH" >&6; } 4718 else 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4720 $as_echo "no" >&6; } 4721 fi 4722 4723 4724 test -n "$BASH" && break 4725 done 4726 4727 else 4728 # If it succeeded, then it was overridden by the user. We will use it 4729 # for the tool. 4730 4731 # First remove it from the list of overridden variables, so we can test 4732 # for unknown variables in the end. 4733 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4734 4735 # Check if the provided tool contains a complete path. 4736 tool_specified="$BASH" 4737 tool_basename="${tool_specified##*/}" 4738 if test "x$tool_basename" = "x$tool_specified"; then 4739 # A command without a complete path is provided, search $PATH. 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4741 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4742 # Extract the first word of "$tool_basename", so it can be a program name with args. 4743 set dummy $tool_basename; ac_word=$2 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4745 $as_echo_n "checking for $ac_word... " >&6; } 4746 if ${ac_cv_path_BASH+:} false; then : 4747 $as_echo_n "(cached) " >&6 4748 else 4749 case $BASH in 4750 [\\/]* | ?:[\\/]*) 4751 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4752 ;; 4753 *) 4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4755 for as_dir in $PATH 4756 do 4757 IFS=$as_save_IFS 4758 test -z "$as_dir" && as_dir=. 4759 for ac_exec_ext in '' $ac_executable_extensions; do 4760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4761 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4763 break 2 4764 fi 4765 done 4766 done 4767 IFS=$as_save_IFS 4768 4769 ;; 4770 esac 4771 fi 4772 BASH=$ac_cv_path_BASH 4773 if test -n "$BASH"; then 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4775 $as_echo "$BASH" >&6; } 4776 else 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4778 $as_echo "no" >&6; } 4779 fi 4780 4781 4782 if test "x$BASH" = x; then 4783 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4784 fi 4785 else 4786 # Otherwise we believe it is a complete path. Use it as it is. 4787 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4788 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4790 $as_echo_n "checking for BASH... " >&6; } 4791 if test ! -x "$tool_specified"; then 4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4793 $as_echo "not found" >&6; } 4794 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4795 fi 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4797 $as_echo "$tool_specified" >&6; } 4798 fi 4799 fi 4800 fi 4801 4802 4803 4804 if test "x$BASH" = x; then 4805 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4806 fi 4807 4808 4809 4810 4811 4812 # Publish this variable in the help. 4813 4814 4815 if test "x$CAT" = x; then 4816 # The variable is not set by user, try to locate tool using the code snippet 4817 for ac_prog in cat 4818 do 4819 # Extract the first word of "$ac_prog", so it can be a program name with args. 4820 set dummy $ac_prog; ac_word=$2 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4822 $as_echo_n "checking for $ac_word... " >&6; } 4823 if ${ac_cv_path_CAT+:} false; then : 4824 $as_echo_n "(cached) " >&6 4825 else 4826 case $CAT in 4827 [\\/]* | ?:[\\/]*) 4828 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4829 ;; 4830 *) 4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4832 for as_dir in $PATH 4833 do 4834 IFS=$as_save_IFS 4835 test -z "$as_dir" && as_dir=. 4836 for ac_exec_ext in '' $ac_executable_extensions; do 4837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4838 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4840 break 2 4841 fi 4842 done 4843 done 4844 IFS=$as_save_IFS 4845 4846 ;; 4847 esac 4848 fi 4849 CAT=$ac_cv_path_CAT 4850 if test -n "$CAT"; then 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4852 $as_echo "$CAT" >&6; } 4853 else 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4855 $as_echo "no" >&6; } 4856 fi 4857 4858 4859 test -n "$CAT" && break 4860 done 4861 4862 else 4863 # The variable is set, but is it from the command line or the environment? 4864 4865 # Try to remove the string !CAT! from our list. 4866 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4867 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4868 # If it failed, the variable was not from the command line. Ignore it, 4869 # but warn the user (except for BASH, which is always set by the calling BASH). 4870 if test "xCAT" != xBASH; then 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4872 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4873 fi 4874 # Try to locate tool using the code snippet 4875 for ac_prog in cat 4876 do 4877 # Extract the first word of "$ac_prog", so it can be a program name with args. 4878 set dummy $ac_prog; ac_word=$2 4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4880 $as_echo_n "checking for $ac_word... " >&6; } 4881 if ${ac_cv_path_CAT+:} false; then : 4882 $as_echo_n "(cached) " >&6 4883 else 4884 case $CAT in 4885 [\\/]* | ?:[\\/]*) 4886 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4887 ;; 4888 *) 4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4890 for as_dir in $PATH 4891 do 4892 IFS=$as_save_IFS 4893 test -z "$as_dir" && as_dir=. 4894 for ac_exec_ext in '' $ac_executable_extensions; do 4895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4896 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4898 break 2 4899 fi 4900 done 4901 done 4902 IFS=$as_save_IFS 4903 4904 ;; 4905 esac 4906 fi 4907 CAT=$ac_cv_path_CAT 4908 if test -n "$CAT"; then 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4910 $as_echo "$CAT" >&6; } 4911 else 4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4913 $as_echo "no" >&6; } 4914 fi 4915 4916 4917 test -n "$CAT" && break 4918 done 4919 4920 else 4921 # If it succeeded, then it was overridden by the user. We will use it 4922 # for the tool. 4923 4924 # First remove it from the list of overridden variables, so we can test 4925 # for unknown variables in the end. 4926 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4927 4928 # Check if the provided tool contains a complete path. 4929 tool_specified="$CAT" 4930 tool_basename="${tool_specified##*/}" 4931 if test "x$tool_basename" = "x$tool_specified"; then 4932 # A command without a complete path is provided, search $PATH. 4933 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4934 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4935 # Extract the first word of "$tool_basename", so it can be a program name with args. 4936 set dummy $tool_basename; ac_word=$2 4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4938 $as_echo_n "checking for $ac_word... " >&6; } 4939 if ${ac_cv_path_CAT+:} false; then : 4940 $as_echo_n "(cached) " >&6 4941 else 4942 case $CAT in 4943 [\\/]* | ?:[\\/]*) 4944 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4945 ;; 4946 *) 4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4948 for as_dir in $PATH 4949 do 4950 IFS=$as_save_IFS 4951 test -z "$as_dir" && as_dir=. 4952 for ac_exec_ext in '' $ac_executable_extensions; do 4953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4954 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4956 break 2 4957 fi 4958 done 4959 done 4960 IFS=$as_save_IFS 4961 4962 ;; 4963 esac 4964 fi 4965 CAT=$ac_cv_path_CAT 4966 if test -n "$CAT"; then 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4968 $as_echo "$CAT" >&6; } 4969 else 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4971 $as_echo "no" >&6; } 4972 fi 4973 4974 4975 if test "x$CAT" = x; then 4976 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4977 fi 4978 else 4979 # Otherwise we believe it is a complete path. Use it as it is. 4980 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4981 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4983 $as_echo_n "checking for CAT... " >&6; } 4984 if test ! -x "$tool_specified"; then 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4986 $as_echo "not found" >&6; } 4987 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4988 fi 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4990 $as_echo "$tool_specified" >&6; } 4991 fi 4992 fi 4993 fi 4994 4995 4996 4997 if test "x$CAT" = x; then 4998 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4999 fi 5000 5001 5002 5003 5004 5005 # Publish this variable in the help. 5006 5007 5008 if test "x$CHMOD" = x; then 5009 # The variable is not set by user, try to locate tool using the code snippet 5010 for ac_prog in chmod 5011 do 5012 # Extract the first word of "$ac_prog", so it can be a program name with args. 5013 set dummy $ac_prog; ac_word=$2 5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5015 $as_echo_n "checking for $ac_word... " >&6; } 5016 if ${ac_cv_path_CHMOD+:} false; then : 5017 $as_echo_n "(cached) " >&6 5018 else 5019 case $CHMOD in 5020 [\\/]* | ?:[\\/]*) 5021 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5022 ;; 5023 *) 5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5025 for as_dir in $PATH 5026 do 5027 IFS=$as_save_IFS 5028 test -z "$as_dir" && as_dir=. 5029 for ac_exec_ext in '' $ac_executable_extensions; do 5030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5031 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5033 break 2 5034 fi 5035 done 5036 done 5037 IFS=$as_save_IFS 5038 5039 ;; 5040 esac 5041 fi 5042 CHMOD=$ac_cv_path_CHMOD 5043 if test -n "$CHMOD"; then 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5045 $as_echo "$CHMOD" >&6; } 5046 else 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5048 $as_echo "no" >&6; } 5049 fi 5050 5051 5052 test -n "$CHMOD" && break 5053 done 5054 5055 else 5056 # The variable is set, but is it from the command line or the environment? 5057 5058 # Try to remove the string !CHMOD! from our list. 5059 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5060 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5061 # If it failed, the variable was not from the command line. Ignore it, 5062 # but warn the user (except for BASH, which is always set by the calling BASH). 5063 if test "xCHMOD" != xBASH; then 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5065 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5066 fi 5067 # Try to locate tool using the code snippet 5068 for ac_prog in chmod 5069 do 5070 # Extract the first word of "$ac_prog", so it can be a program name with args. 5071 set dummy $ac_prog; ac_word=$2 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5073 $as_echo_n "checking for $ac_word... " >&6; } 5074 if ${ac_cv_path_CHMOD+:} false; then : 5075 $as_echo_n "(cached) " >&6 5076 else 5077 case $CHMOD in 5078 [\\/]* | ?:[\\/]*) 5079 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5080 ;; 5081 *) 5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5083 for as_dir in $PATH 5084 do 5085 IFS=$as_save_IFS 5086 test -z "$as_dir" && as_dir=. 5087 for ac_exec_ext in '' $ac_executable_extensions; do 5088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5089 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5091 break 2 5092 fi 5093 done 5094 done 5095 IFS=$as_save_IFS 5096 5097 ;; 5098 esac 5099 fi 5100 CHMOD=$ac_cv_path_CHMOD 5101 if test -n "$CHMOD"; then 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5103 $as_echo "$CHMOD" >&6; } 5104 else 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5106 $as_echo "no" >&6; } 5107 fi 5108 5109 5110 test -n "$CHMOD" && break 5111 done 5112 5113 else 5114 # If it succeeded, then it was overridden by the user. We will use it 5115 # for the tool. 5116 5117 # First remove it from the list of overridden variables, so we can test 5118 # for unknown variables in the end. 5119 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5120 5121 # Check if the provided tool contains a complete path. 5122 tool_specified="$CHMOD" 5123 tool_basename="${tool_specified##*/}" 5124 if test "x$tool_basename" = "x$tool_specified"; then 5125 # A command without a complete path is provided, search $PATH. 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5127 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5128 # Extract the first word of "$tool_basename", so it can be a program name with args. 5129 set dummy $tool_basename; ac_word=$2 5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5131 $as_echo_n "checking for $ac_word... " >&6; } 5132 if ${ac_cv_path_CHMOD+:} false; then : 5133 $as_echo_n "(cached) " >&6 5134 else 5135 case $CHMOD in 5136 [\\/]* | ?:[\\/]*) 5137 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5138 ;; 5139 *) 5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5141 for as_dir in $PATH 5142 do 5143 IFS=$as_save_IFS 5144 test -z "$as_dir" && as_dir=. 5145 for ac_exec_ext in '' $ac_executable_extensions; do 5146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5147 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5149 break 2 5150 fi 5151 done 5152 done 5153 IFS=$as_save_IFS 5154 5155 ;; 5156 esac 5157 fi 5158 CHMOD=$ac_cv_path_CHMOD 5159 if test -n "$CHMOD"; then 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5161 $as_echo "$CHMOD" >&6; } 5162 else 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5164 $as_echo "no" >&6; } 5165 fi 5166 5167 5168 if test "x$CHMOD" = x; then 5169 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5170 fi 5171 else 5172 # Otherwise we believe it is a complete path. Use it as it is. 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5174 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5176 $as_echo_n "checking for CHMOD... " >&6; } 5177 if test ! -x "$tool_specified"; then 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5179 $as_echo "not found" >&6; } 5180 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5181 fi 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5183 $as_echo "$tool_specified" >&6; } 5184 fi 5185 fi 5186 fi 5187 5188 5189 5190 if test "x$CHMOD" = x; then 5191 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5192 fi 5193 5194 5195 5196 5197 5198 # Publish this variable in the help. 5199 5200 5201 if test "x$CMP" = x; then 5202 # The variable is not set by user, try to locate tool using the code snippet 5203 for ac_prog in cmp 5204 do 5205 # Extract the first word of "$ac_prog", so it can be a program name with args. 5206 set dummy $ac_prog; ac_word=$2 5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5208 $as_echo_n "checking for $ac_word... " >&6; } 5209 if ${ac_cv_path_CMP+:} false; then : 5210 $as_echo_n "(cached) " >&6 5211 else 5212 case $CMP in 5213 [\\/]* | ?:[\\/]*) 5214 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5215 ;; 5216 *) 5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5218 for as_dir in $PATH 5219 do 5220 IFS=$as_save_IFS 5221 test -z "$as_dir" && as_dir=. 5222 for ac_exec_ext in '' $ac_executable_extensions; do 5223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5224 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5226 break 2 5227 fi 5228 done 5229 done 5230 IFS=$as_save_IFS 5231 5232 ;; 5233 esac 5234 fi 5235 CMP=$ac_cv_path_CMP 5236 if test -n "$CMP"; then 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5238 $as_echo "$CMP" >&6; } 5239 else 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5241 $as_echo "no" >&6; } 5242 fi 5243 5244 5245 test -n "$CMP" && break 5246 done 5247 5248 else 5249 # The variable is set, but is it from the command line or the environment? 5250 5251 # Try to remove the string !CMP! from our list. 5252 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5253 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5254 # If it failed, the variable was not from the command line. Ignore it, 5255 # but warn the user (except for BASH, which is always set by the calling BASH). 5256 if test "xCMP" != xBASH; then 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5258 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5259 fi 5260 # Try to locate tool using the code snippet 5261 for ac_prog in cmp 5262 do 5263 # Extract the first word of "$ac_prog", so it can be a program name with args. 5264 set dummy $ac_prog; ac_word=$2 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5266 $as_echo_n "checking for $ac_word... " >&6; } 5267 if ${ac_cv_path_CMP+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269 else 5270 case $CMP in 5271 [\\/]* | ?:[\\/]*) 5272 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5273 ;; 5274 *) 5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5276 for as_dir in $PATH 5277 do 5278 IFS=$as_save_IFS 5279 test -z "$as_dir" && as_dir=. 5280 for ac_exec_ext in '' $ac_executable_extensions; do 5281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5282 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5284 break 2 5285 fi 5286 done 5287 done 5288 IFS=$as_save_IFS 5289 5290 ;; 5291 esac 5292 fi 5293 CMP=$ac_cv_path_CMP 5294 if test -n "$CMP"; then 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5296 $as_echo "$CMP" >&6; } 5297 else 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5299 $as_echo "no" >&6; } 5300 fi 5301 5302 5303 test -n "$CMP" && break 5304 done 5305 5306 else 5307 # If it succeeded, then it was overridden by the user. We will use it 5308 # for the tool. 5309 5310 # First remove it from the list of overridden variables, so we can test 5311 # for unknown variables in the end. 5312 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5313 5314 # Check if the provided tool contains a complete path. 5315 tool_specified="$CMP" 5316 tool_basename="${tool_specified##*/}" 5317 if test "x$tool_basename" = "x$tool_specified"; then 5318 # A command without a complete path is provided, search $PATH. 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5320 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5321 # Extract the first word of "$tool_basename", so it can be a program name with args. 5322 set dummy $tool_basename; ac_word=$2 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5324 $as_echo_n "checking for $ac_word... " >&6; } 5325 if ${ac_cv_path_CMP+:} false; then : 5326 $as_echo_n "(cached) " >&6 5327 else 5328 case $CMP in 5329 [\\/]* | ?:[\\/]*) 5330 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5331 ;; 5332 *) 5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5334 for as_dir in $PATH 5335 do 5336 IFS=$as_save_IFS 5337 test -z "$as_dir" && as_dir=. 5338 for ac_exec_ext in '' $ac_executable_extensions; do 5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5340 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5342 break 2 5343 fi 5344 done 5345 done 5346 IFS=$as_save_IFS 5347 5348 ;; 5349 esac 5350 fi 5351 CMP=$ac_cv_path_CMP 5352 if test -n "$CMP"; then 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5354 $as_echo "$CMP" >&6; } 5355 else 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5357 $as_echo "no" >&6; } 5358 fi 5359 5360 5361 if test "x$CMP" = x; then 5362 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5363 fi 5364 else 5365 # Otherwise we believe it is a complete path. Use it as it is. 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5367 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5369 $as_echo_n "checking for CMP... " >&6; } 5370 if test ! -x "$tool_specified"; then 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5372 $as_echo "not found" >&6; } 5373 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5374 fi 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5376 $as_echo "$tool_specified" >&6; } 5377 fi 5378 fi 5379 fi 5380 5381 5382 5383 if test "x$CMP" = x; then 5384 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5385 fi 5386 5387 5388 5389 5390 5391 # Publish this variable in the help. 5392 5393 5394 if test "x$COMM" = x; then 5395 # The variable is not set by user, try to locate tool using the code snippet 5396 for ac_prog in comm 5397 do 5398 # Extract the first word of "$ac_prog", so it can be a program name with args. 5399 set dummy $ac_prog; ac_word=$2 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5401 $as_echo_n "checking for $ac_word... " >&6; } 5402 if ${ac_cv_path_COMM+:} false; then : 5403 $as_echo_n "(cached) " >&6 5404 else 5405 case $COMM in 5406 [\\/]* | ?:[\\/]*) 5407 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5408 ;; 5409 *) 5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5411 for as_dir in $PATH 5412 do 5413 IFS=$as_save_IFS 5414 test -z "$as_dir" && as_dir=. 5415 for ac_exec_ext in '' $ac_executable_extensions; do 5416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5417 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5419 break 2 5420 fi 5421 done 5422 done 5423 IFS=$as_save_IFS 5424 5425 ;; 5426 esac 5427 fi 5428 COMM=$ac_cv_path_COMM 5429 if test -n "$COMM"; then 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5431 $as_echo "$COMM" >&6; } 5432 else 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5434 $as_echo "no" >&6; } 5435 fi 5436 5437 5438 test -n "$COMM" && break 5439 done 5440 5441 else 5442 # The variable is set, but is it from the command line or the environment? 5443 5444 # Try to remove the string !COMM! from our list. 5445 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5446 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5447 # If it failed, the variable was not from the command line. Ignore it, 5448 # but warn the user (except for BASH, which is always set by the calling BASH). 5449 if test "xCOMM" != xBASH; then 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5451 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5452 fi 5453 # Try to locate tool using the code snippet 5454 for ac_prog in comm 5455 do 5456 # Extract the first word of "$ac_prog", so it can be a program name with args. 5457 set dummy $ac_prog; ac_word=$2 5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5459 $as_echo_n "checking for $ac_word... " >&6; } 5460 if ${ac_cv_path_COMM+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462 else 5463 case $COMM in 5464 [\\/]* | ?:[\\/]*) 5465 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5466 ;; 5467 *) 5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5469 for as_dir in $PATH 5470 do 5471 IFS=$as_save_IFS 5472 test -z "$as_dir" && as_dir=. 5473 for ac_exec_ext in '' $ac_executable_extensions; do 5474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5475 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5477 break 2 5478 fi 5479 done 5480 done 5481 IFS=$as_save_IFS 5482 5483 ;; 5484 esac 5485 fi 5486 COMM=$ac_cv_path_COMM 5487 if test -n "$COMM"; then 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5489 $as_echo "$COMM" >&6; } 5490 else 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5492 $as_echo "no" >&6; } 5493 fi 5494 5495 5496 test -n "$COMM" && break 5497 done 5498 5499 else 5500 # If it succeeded, then it was overridden by the user. We will use it 5501 # for the tool. 5502 5503 # First remove it from the list of overridden variables, so we can test 5504 # for unknown variables in the end. 5505 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5506 5507 # Check if the provided tool contains a complete path. 5508 tool_specified="$COMM" 5509 tool_basename="${tool_specified##*/}" 5510 if test "x$tool_basename" = "x$tool_specified"; then 5511 # A command without a complete path is provided, search $PATH. 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5513 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5514 # Extract the first word of "$tool_basename", so it can be a program name with args. 5515 set dummy $tool_basename; ac_word=$2 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5517 $as_echo_n "checking for $ac_word... " >&6; } 5518 if ${ac_cv_path_COMM+:} false; then : 5519 $as_echo_n "(cached) " >&6 5520 else 5521 case $COMM in 5522 [\\/]* | ?:[\\/]*) 5523 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5524 ;; 5525 *) 5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5527 for as_dir in $PATH 5528 do 5529 IFS=$as_save_IFS 5530 test -z "$as_dir" && as_dir=. 5531 for ac_exec_ext in '' $ac_executable_extensions; do 5532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5533 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5535 break 2 5536 fi 5537 done 5538 done 5539 IFS=$as_save_IFS 5540 5541 ;; 5542 esac 5543 fi 5544 COMM=$ac_cv_path_COMM 5545 if test -n "$COMM"; then 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5547 $as_echo "$COMM" >&6; } 5548 else 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5550 $as_echo "no" >&6; } 5551 fi 5552 5553 5554 if test "x$COMM" = x; then 5555 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5556 fi 5557 else 5558 # Otherwise we believe it is a complete path. Use it as it is. 5559 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5560 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5562 $as_echo_n "checking for COMM... " >&6; } 5563 if test ! -x "$tool_specified"; then 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5565 $as_echo "not found" >&6; } 5566 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5567 fi 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5569 $as_echo "$tool_specified" >&6; } 5570 fi 5571 fi 5572 fi 5573 5574 5575 5576 if test "x$COMM" = x; then 5577 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5578 fi 5579 5580 5581 5582 5583 5584 # Publish this variable in the help. 5585 5586 5587 if test "x$CP" = x; then 5588 # The variable is not set by user, try to locate tool using the code snippet 5589 for ac_prog in cp 5590 do 5591 # Extract the first word of "$ac_prog", so it can be a program name with args. 5592 set dummy $ac_prog; ac_word=$2 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5594 $as_echo_n "checking for $ac_word... " >&6; } 5595 if ${ac_cv_path_CP+:} false; then : 5596 $as_echo_n "(cached) " >&6 5597 else 5598 case $CP in 5599 [\\/]* | ?:[\\/]*) 5600 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5601 ;; 5602 *) 5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5604 for as_dir in $PATH 5605 do 5606 IFS=$as_save_IFS 5607 test -z "$as_dir" && as_dir=. 5608 for ac_exec_ext in '' $ac_executable_extensions; do 5609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5610 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5612 break 2 5613 fi 5614 done 5615 done 5616 IFS=$as_save_IFS 5617 5618 ;; 5619 esac 5620 fi 5621 CP=$ac_cv_path_CP 5622 if test -n "$CP"; then 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5624 $as_echo "$CP" >&6; } 5625 else 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5627 $as_echo "no" >&6; } 5628 fi 5629 5630 5631 test -n "$CP" && break 5632 done 5633 5634 else 5635 # The variable is set, but is it from the command line or the environment? 5636 5637 # Try to remove the string !CP! from our list. 5638 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5639 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5640 # If it failed, the variable was not from the command line. Ignore it, 5641 # but warn the user (except for BASH, which is always set by the calling BASH). 5642 if test "xCP" != xBASH; then 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5644 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5645 fi 5646 # Try to locate tool using the code snippet 5647 for ac_prog in cp 5648 do 5649 # Extract the first word of "$ac_prog", so it can be a program name with args. 5650 set dummy $ac_prog; ac_word=$2 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5652 $as_echo_n "checking for $ac_word... " >&6; } 5653 if ${ac_cv_path_CP+:} false; then : 5654 $as_echo_n "(cached) " >&6 5655 else 5656 case $CP in 5657 [\\/]* | ?:[\\/]*) 5658 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5659 ;; 5660 *) 5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5662 for as_dir in $PATH 5663 do 5664 IFS=$as_save_IFS 5665 test -z "$as_dir" && as_dir=. 5666 for ac_exec_ext in '' $ac_executable_extensions; do 5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5668 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5670 break 2 5671 fi 5672 done 5673 done 5674 IFS=$as_save_IFS 5675 5676 ;; 5677 esac 5678 fi 5679 CP=$ac_cv_path_CP 5680 if test -n "$CP"; then 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5682 $as_echo "$CP" >&6; } 5683 else 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5685 $as_echo "no" >&6; } 5686 fi 5687 5688 5689 test -n "$CP" && break 5690 done 5691 5692 else 5693 # If it succeeded, then it was overridden by the user. We will use it 5694 # for the tool. 5695 5696 # First remove it from the list of overridden variables, so we can test 5697 # for unknown variables in the end. 5698 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5699 5700 # Check if the provided tool contains a complete path. 5701 tool_specified="$CP" 5702 tool_basename="${tool_specified##*/}" 5703 if test "x$tool_basename" = "x$tool_specified"; then 5704 # A command without a complete path is provided, search $PATH. 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5706 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5707 # Extract the first word of "$tool_basename", so it can be a program name with args. 5708 set dummy $tool_basename; ac_word=$2 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5710 $as_echo_n "checking for $ac_word... " >&6; } 5711 if ${ac_cv_path_CP+:} false; then : 5712 $as_echo_n "(cached) " >&6 5713 else 5714 case $CP in 5715 [\\/]* | ?:[\\/]*) 5716 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5717 ;; 5718 *) 5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5720 for as_dir in $PATH 5721 do 5722 IFS=$as_save_IFS 5723 test -z "$as_dir" && as_dir=. 5724 for ac_exec_ext in '' $ac_executable_extensions; do 5725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5726 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5728 break 2 5729 fi 5730 done 5731 done 5732 IFS=$as_save_IFS 5733 5734 ;; 5735 esac 5736 fi 5737 CP=$ac_cv_path_CP 5738 if test -n "$CP"; then 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5740 $as_echo "$CP" >&6; } 5741 else 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5743 $as_echo "no" >&6; } 5744 fi 5745 5746 5747 if test "x$CP" = x; then 5748 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5749 fi 5750 else 5751 # Otherwise we believe it is a complete path. Use it as it is. 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5753 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5755 $as_echo_n "checking for CP... " >&6; } 5756 if test ! -x "$tool_specified"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5758 $as_echo "not found" >&6; } 5759 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5760 fi 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5762 $as_echo "$tool_specified" >&6; } 5763 fi 5764 fi 5765 fi 5766 5767 5768 5769 if test "x$CP" = x; then 5770 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5771 fi 5772 5773 5774 5775 5776 5777 # Publish this variable in the help. 5778 5779 5780 if test "x$CUT" = x; then 5781 # The variable is not set by user, try to locate tool using the code snippet 5782 for ac_prog in cut 5783 do 5784 # Extract the first word of "$ac_prog", so it can be a program name with args. 5785 set dummy $ac_prog; ac_word=$2 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5787 $as_echo_n "checking for $ac_word... " >&6; } 5788 if ${ac_cv_path_CUT+:} false; then : 5789 $as_echo_n "(cached) " >&6 5790 else 5791 case $CUT in 5792 [\\/]* | ?:[\\/]*) 5793 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5794 ;; 5795 *) 5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5797 for as_dir in $PATH 5798 do 5799 IFS=$as_save_IFS 5800 test -z "$as_dir" && as_dir=. 5801 for ac_exec_ext in '' $ac_executable_extensions; do 5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5803 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5805 break 2 5806 fi 5807 done 5808 done 5809 IFS=$as_save_IFS 5810 5811 ;; 5812 esac 5813 fi 5814 CUT=$ac_cv_path_CUT 5815 if test -n "$CUT"; then 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5817 $as_echo "$CUT" >&6; } 5818 else 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5820 $as_echo "no" >&6; } 5821 fi 5822 5823 5824 test -n "$CUT" && break 5825 done 5826 5827 else 5828 # The variable is set, but is it from the command line or the environment? 5829 5830 # Try to remove the string !CUT! from our list. 5831 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5832 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5833 # If it failed, the variable was not from the command line. Ignore it, 5834 # but warn the user (except for BASH, which is always set by the calling BASH). 5835 if test "xCUT" != xBASH; then 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5837 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5838 fi 5839 # Try to locate tool using the code snippet 5840 for ac_prog in cut 5841 do 5842 # Extract the first word of "$ac_prog", so it can be a program name with args. 5843 set dummy $ac_prog; ac_word=$2 5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5845 $as_echo_n "checking for $ac_word... " >&6; } 5846 if ${ac_cv_path_CUT+:} false; then : 5847 $as_echo_n "(cached) " >&6 5848 else 5849 case $CUT in 5850 [\\/]* | ?:[\\/]*) 5851 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5852 ;; 5853 *) 5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5855 for as_dir in $PATH 5856 do 5857 IFS=$as_save_IFS 5858 test -z "$as_dir" && as_dir=. 5859 for ac_exec_ext in '' $ac_executable_extensions; do 5860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5861 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5863 break 2 5864 fi 5865 done 5866 done 5867 IFS=$as_save_IFS 5868 5869 ;; 5870 esac 5871 fi 5872 CUT=$ac_cv_path_CUT 5873 if test -n "$CUT"; then 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5875 $as_echo "$CUT" >&6; } 5876 else 5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5878 $as_echo "no" >&6; } 5879 fi 5880 5881 5882 test -n "$CUT" && break 5883 done 5884 5885 else 5886 # If it succeeded, then it was overridden by the user. We will use it 5887 # for the tool. 5888 5889 # First remove it from the list of overridden variables, so we can test 5890 # for unknown variables in the end. 5891 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5892 5893 # Check if the provided tool contains a complete path. 5894 tool_specified="$CUT" 5895 tool_basename="${tool_specified##*/}" 5896 if test "x$tool_basename" = "x$tool_specified"; then 5897 # A command without a complete path is provided, search $PATH. 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5899 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5900 # Extract the first word of "$tool_basename", so it can be a program name with args. 5901 set dummy $tool_basename; ac_word=$2 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5903 $as_echo_n "checking for $ac_word... " >&6; } 5904 if ${ac_cv_path_CUT+:} false; then : 5905 $as_echo_n "(cached) " >&6 5906 else 5907 case $CUT in 5908 [\\/]* | ?:[\\/]*) 5909 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5910 ;; 5911 *) 5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5913 for as_dir in $PATH 5914 do 5915 IFS=$as_save_IFS 5916 test -z "$as_dir" && as_dir=. 5917 for ac_exec_ext in '' $ac_executable_extensions; do 5918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5919 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5921 break 2 5922 fi 5923 done 5924 done 5925 IFS=$as_save_IFS 5926 5927 ;; 5928 esac 5929 fi 5930 CUT=$ac_cv_path_CUT 5931 if test -n "$CUT"; then 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5933 $as_echo "$CUT" >&6; } 5934 else 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5936 $as_echo "no" >&6; } 5937 fi 5938 5939 5940 if test "x$CUT" = x; then 5941 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5942 fi 5943 else 5944 # Otherwise we believe it is a complete path. Use it as it is. 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5946 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5948 $as_echo_n "checking for CUT... " >&6; } 5949 if test ! -x "$tool_specified"; then 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5951 $as_echo "not found" >&6; } 5952 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5953 fi 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5955 $as_echo "$tool_specified" >&6; } 5956 fi 5957 fi 5958 fi 5959 5960 5961 5962 if test "x$CUT" = x; then 5963 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5964 fi 5965 5966 5967 5968 5969 5970 # Publish this variable in the help. 5971 5972 5973 if test "x$DATE" = x; then 5974 # The variable is not set by user, try to locate tool using the code snippet 5975 for ac_prog in date 5976 do 5977 # Extract the first word of "$ac_prog", so it can be a program name with args. 5978 set dummy $ac_prog; ac_word=$2 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5980 $as_echo_n "checking for $ac_word... " >&6; } 5981 if ${ac_cv_path_DATE+:} false; then : 5982 $as_echo_n "(cached) " >&6 5983 else 5984 case $DATE in 5985 [\\/]* | ?:[\\/]*) 5986 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5987 ;; 5988 *) 5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5990 for as_dir in $PATH 5991 do 5992 IFS=$as_save_IFS 5993 test -z "$as_dir" && as_dir=. 5994 for ac_exec_ext in '' $ac_executable_extensions; do 5995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5996 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5998 break 2 5999 fi 6000 done 6001 done 6002 IFS=$as_save_IFS 6003 6004 ;; 6005 esac 6006 fi 6007 DATE=$ac_cv_path_DATE 6008 if test -n "$DATE"; then 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6010 $as_echo "$DATE" >&6; } 6011 else 6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6013 $as_echo "no" >&6; } 6014 fi 6015 6016 6017 test -n "$DATE" && break 6018 done 6019 6020 else 6021 # The variable is set, but is it from the command line or the environment? 6022 6023 # Try to remove the string !DATE! from our list. 6024 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6025 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6026 # If it failed, the variable was not from the command line. Ignore it, 6027 # but warn the user (except for BASH, which is always set by the calling BASH). 6028 if test "xDATE" != xBASH; then 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6030 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6031 fi 6032 # Try to locate tool using the code snippet 6033 for ac_prog in date 6034 do 6035 # Extract the first word of "$ac_prog", so it can be a program name with args. 6036 set dummy $ac_prog; ac_word=$2 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6038 $as_echo_n "checking for $ac_word... " >&6; } 6039 if ${ac_cv_path_DATE+:} false; then : 6040 $as_echo_n "(cached) " >&6 6041 else 6042 case $DATE in 6043 [\\/]* | ?:[\\/]*) 6044 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6045 ;; 6046 *) 6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6048 for as_dir in $PATH 6049 do 6050 IFS=$as_save_IFS 6051 test -z "$as_dir" && as_dir=. 6052 for ac_exec_ext in '' $ac_executable_extensions; do 6053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6054 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6056 break 2 6057 fi 6058 done 6059 done 6060 IFS=$as_save_IFS 6061 6062 ;; 6063 esac 6064 fi 6065 DATE=$ac_cv_path_DATE 6066 if test -n "$DATE"; then 6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6068 $as_echo "$DATE" >&6; } 6069 else 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6071 $as_echo "no" >&6; } 6072 fi 6073 6074 6075 test -n "$DATE" && break 6076 done 6077 6078 else 6079 # If it succeeded, then it was overridden by the user. We will use it 6080 # for the tool. 6081 6082 # First remove it from the list of overridden variables, so we can test 6083 # for unknown variables in the end. 6084 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6085 6086 # Check if the provided tool contains a complete path. 6087 tool_specified="$DATE" 6088 tool_basename="${tool_specified##*/}" 6089 if test "x$tool_basename" = "x$tool_specified"; then 6090 # A command without a complete path is provided, search $PATH. 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6092 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6093 # Extract the first word of "$tool_basename", so it can be a program name with args. 6094 set dummy $tool_basename; ac_word=$2 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6096 $as_echo_n "checking for $ac_word... " >&6; } 6097 if ${ac_cv_path_DATE+:} false; then : 6098 $as_echo_n "(cached) " >&6 6099 else 6100 case $DATE in 6101 [\\/]* | ?:[\\/]*) 6102 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6103 ;; 6104 *) 6105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6106 for as_dir in $PATH 6107 do 6108 IFS=$as_save_IFS 6109 test -z "$as_dir" && as_dir=. 6110 for ac_exec_ext in '' $ac_executable_extensions; do 6111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6112 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6114 break 2 6115 fi 6116 done 6117 done 6118 IFS=$as_save_IFS 6119 6120 ;; 6121 esac 6122 fi 6123 DATE=$ac_cv_path_DATE 6124 if test -n "$DATE"; then 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6126 $as_echo "$DATE" >&6; } 6127 else 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6129 $as_echo "no" >&6; } 6130 fi 6131 6132 6133 if test "x$DATE" = x; then 6134 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6135 fi 6136 else 6137 # Otherwise we believe it is a complete path. Use it as it is. 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6139 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6141 $as_echo_n "checking for DATE... " >&6; } 6142 if test ! -x "$tool_specified"; then 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6144 $as_echo "not found" >&6; } 6145 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6146 fi 6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6148 $as_echo "$tool_specified" >&6; } 6149 fi 6150 fi 6151 fi 6152 6153 6154 6155 if test "x$DATE" = x; then 6156 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6157 fi 6158 6159 6160 6161 6162 6163 # Publish this variable in the help. 6164 6165 6166 if test "x$DIFF" = x; then 6167 # The variable is not set by user, try to locate tool using the code snippet 6168 for ac_prog in gdiff diff 6169 do 6170 # Extract the first word of "$ac_prog", so it can be a program name with args. 6171 set dummy $ac_prog; ac_word=$2 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6173 $as_echo_n "checking for $ac_word... " >&6; } 6174 if ${ac_cv_path_DIFF+:} false; then : 6175 $as_echo_n "(cached) " >&6 6176 else 6177 case $DIFF in 6178 [\\/]* | ?:[\\/]*) 6179 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6180 ;; 6181 *) 6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6183 for as_dir in $PATH 6184 do 6185 IFS=$as_save_IFS 6186 test -z "$as_dir" && as_dir=. 6187 for ac_exec_ext in '' $ac_executable_extensions; do 6188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6189 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6191 break 2 6192 fi 6193 done 6194 done 6195 IFS=$as_save_IFS 6196 6197 ;; 6198 esac 6199 fi 6200 DIFF=$ac_cv_path_DIFF 6201 if test -n "$DIFF"; then 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6203 $as_echo "$DIFF" >&6; } 6204 else 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6206 $as_echo "no" >&6; } 6207 fi 6208 6209 6210 test -n "$DIFF" && break 6211 done 6212 6213 else 6214 # The variable is set, but is it from the command line or the environment? 6215 6216 # Try to remove the string !DIFF! from our list. 6217 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6218 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6219 # If it failed, the variable was not from the command line. Ignore it, 6220 # but warn the user (except for BASH, which is always set by the calling BASH). 6221 if test "xDIFF" != xBASH; then 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6223 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6224 fi 6225 # Try to locate tool using the code snippet 6226 for ac_prog in gdiff diff 6227 do 6228 # Extract the first word of "$ac_prog", so it can be a program name with args. 6229 set dummy $ac_prog; ac_word=$2 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6231 $as_echo_n "checking for $ac_word... " >&6; } 6232 if ${ac_cv_path_DIFF+:} false; then : 6233 $as_echo_n "(cached) " >&6 6234 else 6235 case $DIFF in 6236 [\\/]* | ?:[\\/]*) 6237 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6238 ;; 6239 *) 6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6241 for as_dir in $PATH 6242 do 6243 IFS=$as_save_IFS 6244 test -z "$as_dir" && as_dir=. 6245 for ac_exec_ext in '' $ac_executable_extensions; do 6246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6247 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6249 break 2 6250 fi 6251 done 6252 done 6253 IFS=$as_save_IFS 6254 6255 ;; 6256 esac 6257 fi 6258 DIFF=$ac_cv_path_DIFF 6259 if test -n "$DIFF"; then 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6261 $as_echo "$DIFF" >&6; } 6262 else 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6264 $as_echo "no" >&6; } 6265 fi 6266 6267 6268 test -n "$DIFF" && break 6269 done 6270 6271 else 6272 # If it succeeded, then it was overridden by the user. We will use it 6273 # for the tool. 6274 6275 # First remove it from the list of overridden variables, so we can test 6276 # for unknown variables in the end. 6277 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6278 6279 # Check if the provided tool contains a complete path. 6280 tool_specified="$DIFF" 6281 tool_basename="${tool_specified##*/}" 6282 if test "x$tool_basename" = "x$tool_specified"; then 6283 # A command without a complete path is provided, search $PATH. 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6285 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6286 # Extract the first word of "$tool_basename", so it can be a program name with args. 6287 set dummy $tool_basename; ac_word=$2 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6289 $as_echo_n "checking for $ac_word... " >&6; } 6290 if ${ac_cv_path_DIFF+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292 else 6293 case $DIFF in 6294 [\\/]* | ?:[\\/]*) 6295 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6296 ;; 6297 *) 6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6299 for as_dir in $PATH 6300 do 6301 IFS=$as_save_IFS 6302 test -z "$as_dir" && as_dir=. 6303 for ac_exec_ext in '' $ac_executable_extensions; do 6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6305 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6307 break 2 6308 fi 6309 done 6310 done 6311 IFS=$as_save_IFS 6312 6313 ;; 6314 esac 6315 fi 6316 DIFF=$ac_cv_path_DIFF 6317 if test -n "$DIFF"; then 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6319 $as_echo "$DIFF" >&6; } 6320 else 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6322 $as_echo "no" >&6; } 6323 fi 6324 6325 6326 if test "x$DIFF" = x; then 6327 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6328 fi 6329 else 6330 # Otherwise we believe it is a complete path. Use it as it is. 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6332 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6334 $as_echo_n "checking for DIFF... " >&6; } 6335 if test ! -x "$tool_specified"; then 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6337 $as_echo "not found" >&6; } 6338 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6339 fi 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6341 $as_echo "$tool_specified" >&6; } 6342 fi 6343 fi 6344 fi 6345 6346 6347 6348 if test "x$DIFF" = x; then 6349 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6350 fi 6351 6352 6353 6354 6355 6356 # Publish this variable in the help. 6357 6358 6359 if test "x$DIRNAME" = x; then 6360 # The variable is not set by user, try to locate tool using the code snippet 6361 for ac_prog in dirname 6362 do 6363 # Extract the first word of "$ac_prog", so it can be a program name with args. 6364 set dummy $ac_prog; ac_word=$2 6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6366 $as_echo_n "checking for $ac_word... " >&6; } 6367 if ${ac_cv_path_DIRNAME+:} false; then : 6368 $as_echo_n "(cached) " >&6 6369 else 6370 case $DIRNAME in 6371 [\\/]* | ?:[\\/]*) 6372 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6373 ;; 6374 *) 6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6376 for as_dir in $PATH 6377 do 6378 IFS=$as_save_IFS 6379 test -z "$as_dir" && as_dir=. 6380 for ac_exec_ext in '' $ac_executable_extensions; do 6381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6382 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6384 break 2 6385 fi 6386 done 6387 done 6388 IFS=$as_save_IFS 6389 6390 ;; 6391 esac 6392 fi 6393 DIRNAME=$ac_cv_path_DIRNAME 6394 if test -n "$DIRNAME"; then 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6396 $as_echo "$DIRNAME" >&6; } 6397 else 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6399 $as_echo "no" >&6; } 6400 fi 6401 6402 6403 test -n "$DIRNAME" && break 6404 done 6405 6406 else 6407 # The variable is set, but is it from the command line or the environment? 6408 6409 # Try to remove the string !DIRNAME! from our list. 6410 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6411 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6412 # If it failed, the variable was not from the command line. Ignore it, 6413 # but warn the user (except for BASH, which is always set by the calling BASH). 6414 if test "xDIRNAME" != xBASH; then 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6416 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6417 fi 6418 # Try to locate tool using the code snippet 6419 for ac_prog in dirname 6420 do 6421 # Extract the first word of "$ac_prog", so it can be a program name with args. 6422 set dummy $ac_prog; ac_word=$2 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6424 $as_echo_n "checking for $ac_word... " >&6; } 6425 if ${ac_cv_path_DIRNAME+:} false; then : 6426 $as_echo_n "(cached) " >&6 6427 else 6428 case $DIRNAME in 6429 [\\/]* | ?:[\\/]*) 6430 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6431 ;; 6432 *) 6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6434 for as_dir in $PATH 6435 do 6436 IFS=$as_save_IFS 6437 test -z "$as_dir" && as_dir=. 6438 for ac_exec_ext in '' $ac_executable_extensions; do 6439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6440 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6442 break 2 6443 fi 6444 done 6445 done 6446 IFS=$as_save_IFS 6447 6448 ;; 6449 esac 6450 fi 6451 DIRNAME=$ac_cv_path_DIRNAME 6452 if test -n "$DIRNAME"; then 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6454 $as_echo "$DIRNAME" >&6; } 6455 else 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6457 $as_echo "no" >&6; } 6458 fi 6459 6460 6461 test -n "$DIRNAME" && break 6462 done 6463 6464 else 6465 # If it succeeded, then it was overridden by the user. We will use it 6466 # for the tool. 6467 6468 # First remove it from the list of overridden variables, so we can test 6469 # for unknown variables in the end. 6470 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6471 6472 # Check if the provided tool contains a complete path. 6473 tool_specified="$DIRNAME" 6474 tool_basename="${tool_specified##*/}" 6475 if test "x$tool_basename" = "x$tool_specified"; then 6476 # A command without a complete path is provided, search $PATH. 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6478 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6479 # Extract the first word of "$tool_basename", so it can be a program name with args. 6480 set dummy $tool_basename; ac_word=$2 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6482 $as_echo_n "checking for $ac_word... " >&6; } 6483 if ${ac_cv_path_DIRNAME+:} false; then : 6484 $as_echo_n "(cached) " >&6 6485 else 6486 case $DIRNAME in 6487 [\\/]* | ?:[\\/]*) 6488 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6489 ;; 6490 *) 6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6492 for as_dir in $PATH 6493 do 6494 IFS=$as_save_IFS 6495 test -z "$as_dir" && as_dir=. 6496 for ac_exec_ext in '' $ac_executable_extensions; do 6497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6498 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6500 break 2 6501 fi 6502 done 6503 done 6504 IFS=$as_save_IFS 6505 6506 ;; 6507 esac 6508 fi 6509 DIRNAME=$ac_cv_path_DIRNAME 6510 if test -n "$DIRNAME"; then 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6512 $as_echo "$DIRNAME" >&6; } 6513 else 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6515 $as_echo "no" >&6; } 6516 fi 6517 6518 6519 if test "x$DIRNAME" = x; then 6520 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6521 fi 6522 else 6523 # Otherwise we believe it is a complete path. Use it as it is. 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6525 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6527 $as_echo_n "checking for DIRNAME... " >&6; } 6528 if test ! -x "$tool_specified"; then 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6530 $as_echo "not found" >&6; } 6531 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6532 fi 6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6534 $as_echo "$tool_specified" >&6; } 6535 fi 6536 fi 6537 fi 6538 6539 6540 6541 if test "x$DIRNAME" = x; then 6542 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6543 fi 6544 6545 6546 6547 6548 6549 # Publish this variable in the help. 6550 6551 6552 if test "x$ECHO" = x; then 6553 # The variable is not set by user, try to locate tool using the code snippet 6554 for ac_prog in echo 6555 do 6556 # Extract the first word of "$ac_prog", so it can be a program name with args. 6557 set dummy $ac_prog; ac_word=$2 6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6559 $as_echo_n "checking for $ac_word... " >&6; } 6560 if ${ac_cv_path_ECHO+:} false; then : 6561 $as_echo_n "(cached) " >&6 6562 else 6563 case $ECHO in 6564 [\\/]* | ?:[\\/]*) 6565 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6566 ;; 6567 *) 6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6569 for as_dir in $PATH 6570 do 6571 IFS=$as_save_IFS 6572 test -z "$as_dir" && as_dir=. 6573 for ac_exec_ext in '' $ac_executable_extensions; do 6574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6575 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6577 break 2 6578 fi 6579 done 6580 done 6581 IFS=$as_save_IFS 6582 6583 ;; 6584 esac 6585 fi 6586 ECHO=$ac_cv_path_ECHO 6587 if test -n "$ECHO"; then 6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6589 $as_echo "$ECHO" >&6; } 6590 else 6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6592 $as_echo "no" >&6; } 6593 fi 6594 6595 6596 test -n "$ECHO" && break 6597 done 6598 6599 else 6600 # The variable is set, but is it from the command line or the environment? 6601 6602 # Try to remove the string !ECHO! from our list. 6603 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6604 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6605 # If it failed, the variable was not from the command line. Ignore it, 6606 # but warn the user (except for BASH, which is always set by the calling BASH). 6607 if test "xECHO" != xBASH; then 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6609 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6610 fi 6611 # Try to locate tool using the code snippet 6612 for ac_prog in echo 6613 do 6614 # Extract the first word of "$ac_prog", so it can be a program name with args. 6615 set dummy $ac_prog; ac_word=$2 6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6617 $as_echo_n "checking for $ac_word... " >&6; } 6618 if ${ac_cv_path_ECHO+:} false; then : 6619 $as_echo_n "(cached) " >&6 6620 else 6621 case $ECHO in 6622 [\\/]* | ?:[\\/]*) 6623 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6624 ;; 6625 *) 6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6627 for as_dir in $PATH 6628 do 6629 IFS=$as_save_IFS 6630 test -z "$as_dir" && as_dir=. 6631 for ac_exec_ext in '' $ac_executable_extensions; do 6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6633 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6635 break 2 6636 fi 6637 done 6638 done 6639 IFS=$as_save_IFS 6640 6641 ;; 6642 esac 6643 fi 6644 ECHO=$ac_cv_path_ECHO 6645 if test -n "$ECHO"; then 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6647 $as_echo "$ECHO" >&6; } 6648 else 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6650 $as_echo "no" >&6; } 6651 fi 6652 6653 6654 test -n "$ECHO" && break 6655 done 6656 6657 else 6658 # If it succeeded, then it was overridden by the user. We will use it 6659 # for the tool. 6660 6661 # First remove it from the list of overridden variables, so we can test 6662 # for unknown variables in the end. 6663 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6664 6665 # Check if the provided tool contains a complete path. 6666 tool_specified="$ECHO" 6667 tool_basename="${tool_specified##*/}" 6668 if test "x$tool_basename" = "x$tool_specified"; then 6669 # A command without a complete path is provided, search $PATH. 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6671 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6672 # Extract the first word of "$tool_basename", so it can be a program name with args. 6673 set dummy $tool_basename; ac_word=$2 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6675 $as_echo_n "checking for $ac_word... " >&6; } 6676 if ${ac_cv_path_ECHO+:} false; then : 6677 $as_echo_n "(cached) " >&6 6678 else 6679 case $ECHO in 6680 [\\/]* | ?:[\\/]*) 6681 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6682 ;; 6683 *) 6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6685 for as_dir in $PATH 6686 do 6687 IFS=$as_save_IFS 6688 test -z "$as_dir" && as_dir=. 6689 for ac_exec_ext in '' $ac_executable_extensions; do 6690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6691 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6693 break 2 6694 fi 6695 done 6696 done 6697 IFS=$as_save_IFS 6698 6699 ;; 6700 esac 6701 fi 6702 ECHO=$ac_cv_path_ECHO 6703 if test -n "$ECHO"; then 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6705 $as_echo "$ECHO" >&6; } 6706 else 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6708 $as_echo "no" >&6; } 6709 fi 6710 6711 6712 if test "x$ECHO" = x; then 6713 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6714 fi 6715 else 6716 # Otherwise we believe it is a complete path. Use it as it is. 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6718 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6720 $as_echo_n "checking for ECHO... " >&6; } 6721 if test ! -x "$tool_specified"; then 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6723 $as_echo "not found" >&6; } 6724 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6725 fi 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6727 $as_echo "$tool_specified" >&6; } 6728 fi 6729 fi 6730 fi 6731 6732 6733 6734 if test "x$ECHO" = x; then 6735 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6736 fi 6737 6738 6739 6740 6741 6742 # Publish this variable in the help. 6743 6744 6745 if test "x$EXPR" = x; then 6746 # The variable is not set by user, try to locate tool using the code snippet 6747 for ac_prog in expr 6748 do 6749 # Extract the first word of "$ac_prog", so it can be a program name with args. 6750 set dummy $ac_prog; ac_word=$2 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6752 $as_echo_n "checking for $ac_word... " >&6; } 6753 if ${ac_cv_path_EXPR+:} false; then : 6754 $as_echo_n "(cached) " >&6 6755 else 6756 case $EXPR in 6757 [\\/]* | ?:[\\/]*) 6758 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6759 ;; 6760 *) 6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6762 for as_dir in $PATH 6763 do 6764 IFS=$as_save_IFS 6765 test -z "$as_dir" && as_dir=. 6766 for ac_exec_ext in '' $ac_executable_extensions; do 6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6768 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6770 break 2 6771 fi 6772 done 6773 done 6774 IFS=$as_save_IFS 6775 6776 ;; 6777 esac 6778 fi 6779 EXPR=$ac_cv_path_EXPR 6780 if test -n "$EXPR"; then 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6782 $as_echo "$EXPR" >&6; } 6783 else 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6785 $as_echo "no" >&6; } 6786 fi 6787 6788 6789 test -n "$EXPR" && break 6790 done 6791 6792 else 6793 # The variable is set, but is it from the command line or the environment? 6794 6795 # Try to remove the string !EXPR! from our list. 6796 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6797 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6798 # If it failed, the variable was not from the command line. Ignore it, 6799 # but warn the user (except for BASH, which is always set by the calling BASH). 6800 if test "xEXPR" != xBASH; then 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6802 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6803 fi 6804 # Try to locate tool using the code snippet 6805 for ac_prog in expr 6806 do 6807 # Extract the first word of "$ac_prog", so it can be a program name with args. 6808 set dummy $ac_prog; ac_word=$2 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6810 $as_echo_n "checking for $ac_word... " >&6; } 6811 if ${ac_cv_path_EXPR+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813 else 6814 case $EXPR in 6815 [\\/]* | ?:[\\/]*) 6816 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6817 ;; 6818 *) 6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6820 for as_dir in $PATH 6821 do 6822 IFS=$as_save_IFS 6823 test -z "$as_dir" && as_dir=. 6824 for ac_exec_ext in '' $ac_executable_extensions; do 6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6826 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6828 break 2 6829 fi 6830 done 6831 done 6832 IFS=$as_save_IFS 6833 6834 ;; 6835 esac 6836 fi 6837 EXPR=$ac_cv_path_EXPR 6838 if test -n "$EXPR"; then 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6840 $as_echo "$EXPR" >&6; } 6841 else 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6843 $as_echo "no" >&6; } 6844 fi 6845 6846 6847 test -n "$EXPR" && break 6848 done 6849 6850 else 6851 # If it succeeded, then it was overridden by the user. We will use it 6852 # for the tool. 6853 6854 # First remove it from the list of overridden variables, so we can test 6855 # for unknown variables in the end. 6856 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6857 6858 # Check if the provided tool contains a complete path. 6859 tool_specified="$EXPR" 6860 tool_basename="${tool_specified##*/}" 6861 if test "x$tool_basename" = "x$tool_specified"; then 6862 # A command without a complete path is provided, search $PATH. 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6864 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6865 # Extract the first word of "$tool_basename", so it can be a program name with args. 6866 set dummy $tool_basename; ac_word=$2 6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6868 $as_echo_n "checking for $ac_word... " >&6; } 6869 if ${ac_cv_path_EXPR+:} false; then : 6870 $as_echo_n "(cached) " >&6 6871 else 6872 case $EXPR in 6873 [\\/]* | ?:[\\/]*) 6874 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6875 ;; 6876 *) 6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6878 for as_dir in $PATH 6879 do 6880 IFS=$as_save_IFS 6881 test -z "$as_dir" && as_dir=. 6882 for ac_exec_ext in '' $ac_executable_extensions; do 6883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6884 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6886 break 2 6887 fi 6888 done 6889 done 6890 IFS=$as_save_IFS 6891 6892 ;; 6893 esac 6894 fi 6895 EXPR=$ac_cv_path_EXPR 6896 if test -n "$EXPR"; then 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6898 $as_echo "$EXPR" >&6; } 6899 else 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6901 $as_echo "no" >&6; } 6902 fi 6903 6904 6905 if test "x$EXPR" = x; then 6906 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6907 fi 6908 else 6909 # Otherwise we believe it is a complete path. Use it as it is. 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6911 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6913 $as_echo_n "checking for EXPR... " >&6; } 6914 if test ! -x "$tool_specified"; then 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6916 $as_echo "not found" >&6; } 6917 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6918 fi 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6920 $as_echo "$tool_specified" >&6; } 6921 fi 6922 fi 6923 fi 6924 6925 6926 6927 if test "x$EXPR" = x; then 6928 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6929 fi 6930 6931 6932 6933 6934 6935 # Publish this variable in the help. 6936 6937 6938 if test "x$FILE" = x; then 6939 # The variable is not set by user, try to locate tool using the code snippet 6940 for ac_prog in file 6941 do 6942 # Extract the first word of "$ac_prog", so it can be a program name with args. 6943 set dummy $ac_prog; ac_word=$2 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6945 $as_echo_n "checking for $ac_word... " >&6; } 6946 if ${ac_cv_path_FILE+:} false; then : 6947 $as_echo_n "(cached) " >&6 6948 else 6949 case $FILE in 6950 [\\/]* | ?:[\\/]*) 6951 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6952 ;; 6953 *) 6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6955 for as_dir in $PATH 6956 do 6957 IFS=$as_save_IFS 6958 test -z "$as_dir" && as_dir=. 6959 for ac_exec_ext in '' $ac_executable_extensions; do 6960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6961 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6963 break 2 6964 fi 6965 done 6966 done 6967 IFS=$as_save_IFS 6968 6969 ;; 6970 esac 6971 fi 6972 FILE=$ac_cv_path_FILE 6973 if test -n "$FILE"; then 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6975 $as_echo "$FILE" >&6; } 6976 else 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6978 $as_echo "no" >&6; } 6979 fi 6980 6981 6982 test -n "$FILE" && break 6983 done 6984 6985 else 6986 # The variable is set, but is it from the command line or the environment? 6987 6988 # Try to remove the string !FILE! from our list. 6989 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 6990 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6991 # If it failed, the variable was not from the command line. Ignore it, 6992 # but warn the user (except for BASH, which is always set by the calling BASH). 6993 if test "xFILE" != xBASH; then 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 6995 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 6996 fi 6997 # Try to locate tool using the code snippet 6998 for ac_prog in file 6999 do 7000 # Extract the first word of "$ac_prog", so it can be a program name with args. 7001 set dummy $ac_prog; ac_word=$2 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7003 $as_echo_n "checking for $ac_word... " >&6; } 7004 if ${ac_cv_path_FILE+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006 else 7007 case $FILE in 7008 [\\/]* | ?:[\\/]*) 7009 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7010 ;; 7011 *) 7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7013 for as_dir in $PATH 7014 do 7015 IFS=$as_save_IFS 7016 test -z "$as_dir" && as_dir=. 7017 for ac_exec_ext in '' $ac_executable_extensions; do 7018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7019 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7021 break 2 7022 fi 7023 done 7024 done 7025 IFS=$as_save_IFS 7026 7027 ;; 7028 esac 7029 fi 7030 FILE=$ac_cv_path_FILE 7031 if test -n "$FILE"; then 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7033 $as_echo "$FILE" >&6; } 7034 else 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7036 $as_echo "no" >&6; } 7037 fi 7038 7039 7040 test -n "$FILE" && break 7041 done 7042 7043 else 7044 # If it succeeded, then it was overridden by the user. We will use it 7045 # for the tool. 7046 7047 # First remove it from the list of overridden variables, so we can test 7048 # for unknown variables in the end. 7049 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7050 7051 # Check if the provided tool contains a complete path. 7052 tool_specified="$FILE" 7053 tool_basename="${tool_specified##*/}" 7054 if test "x$tool_basename" = "x$tool_specified"; then 7055 # A command without a complete path is provided, search $PATH. 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7057 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7058 # Extract the first word of "$tool_basename", so it can be a program name with args. 7059 set dummy $tool_basename; ac_word=$2 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7061 $as_echo_n "checking for $ac_word... " >&6; } 7062 if ${ac_cv_path_FILE+:} false; then : 7063 $as_echo_n "(cached) " >&6 7064 else 7065 case $FILE in 7066 [\\/]* | ?:[\\/]*) 7067 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7068 ;; 7069 *) 7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7071 for as_dir in $PATH 7072 do 7073 IFS=$as_save_IFS 7074 test -z "$as_dir" && as_dir=. 7075 for ac_exec_ext in '' $ac_executable_extensions; do 7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7077 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7079 break 2 7080 fi 7081 done 7082 done 7083 IFS=$as_save_IFS 7084 7085 ;; 7086 esac 7087 fi 7088 FILE=$ac_cv_path_FILE 7089 if test -n "$FILE"; then 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7091 $as_echo "$FILE" >&6; } 7092 else 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7094 $as_echo "no" >&6; } 7095 fi 7096 7097 7098 if test "x$FILE" = x; then 7099 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7100 fi 7101 else 7102 # Otherwise we believe it is a complete path. Use it as it is. 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7104 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7106 $as_echo_n "checking for FILE... " >&6; } 7107 if test ! -x "$tool_specified"; then 7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7109 $as_echo "not found" >&6; } 7110 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7111 fi 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7113 $as_echo "$tool_specified" >&6; } 7114 fi 7115 fi 7116 fi 7117 7118 7119 7120 if test "x$FILE" = x; then 7121 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7122 fi 7123 7124 7125 7126 7127 7128 # Publish this variable in the help. 7129 7130 7131 if test "x$FIND" = x; then 7132 # The variable is not set by user, try to locate tool using the code snippet 7133 for ac_prog in find 7134 do 7135 # Extract the first word of "$ac_prog", so it can be a program name with args. 7136 set dummy $ac_prog; ac_word=$2 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7138 $as_echo_n "checking for $ac_word... " >&6; } 7139 if ${ac_cv_path_FIND+:} false; then : 7140 $as_echo_n "(cached) " >&6 7141 else 7142 case $FIND in 7143 [\\/]* | ?:[\\/]*) 7144 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7145 ;; 7146 *) 7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7148 for as_dir in $PATH 7149 do 7150 IFS=$as_save_IFS 7151 test -z "$as_dir" && as_dir=. 7152 for ac_exec_ext in '' $ac_executable_extensions; do 7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7154 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7156 break 2 7157 fi 7158 done 7159 done 7160 IFS=$as_save_IFS 7161 7162 ;; 7163 esac 7164 fi 7165 FIND=$ac_cv_path_FIND 7166 if test -n "$FIND"; then 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7168 $as_echo "$FIND" >&6; } 7169 else 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7171 $as_echo "no" >&6; } 7172 fi 7173 7174 7175 test -n "$FIND" && break 7176 done 7177 7178 else 7179 # The variable is set, but is it from the command line or the environment? 7180 7181 # Try to remove the string !FIND! from our list. 7182 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7183 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7184 # If it failed, the variable was not from the command line. Ignore it, 7185 # but warn the user (except for BASH, which is always set by the calling BASH). 7186 if test "xFIND" != xBASH; then 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7188 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7189 fi 7190 # Try to locate tool using the code snippet 7191 for ac_prog in find 7192 do 7193 # Extract the first word of "$ac_prog", so it can be a program name with args. 7194 set dummy $ac_prog; ac_word=$2 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7196 $as_echo_n "checking for $ac_word... " >&6; } 7197 if ${ac_cv_path_FIND+:} false; then : 7198 $as_echo_n "(cached) " >&6 7199 else 7200 case $FIND in 7201 [\\/]* | ?:[\\/]*) 7202 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7203 ;; 7204 *) 7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7206 for as_dir in $PATH 7207 do 7208 IFS=$as_save_IFS 7209 test -z "$as_dir" && as_dir=. 7210 for ac_exec_ext in '' $ac_executable_extensions; do 7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7212 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7214 break 2 7215 fi 7216 done 7217 done 7218 IFS=$as_save_IFS 7219 7220 ;; 7221 esac 7222 fi 7223 FIND=$ac_cv_path_FIND 7224 if test -n "$FIND"; then 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7226 $as_echo "$FIND" >&6; } 7227 else 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7229 $as_echo "no" >&6; } 7230 fi 7231 7232 7233 test -n "$FIND" && break 7234 done 7235 7236 else 7237 # If it succeeded, then it was overridden by the user. We will use it 7238 # for the tool. 7239 7240 # First remove it from the list of overridden variables, so we can test 7241 # for unknown variables in the end. 7242 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7243 7244 # Check if the provided tool contains a complete path. 7245 tool_specified="$FIND" 7246 tool_basename="${tool_specified##*/}" 7247 if test "x$tool_basename" = "x$tool_specified"; then 7248 # A command without a complete path is provided, search $PATH. 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7250 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7251 # Extract the first word of "$tool_basename", so it can be a program name with args. 7252 set dummy $tool_basename; ac_word=$2 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7254 $as_echo_n "checking for $ac_word... " >&6; } 7255 if ${ac_cv_path_FIND+:} false; then : 7256 $as_echo_n "(cached) " >&6 7257 else 7258 case $FIND in 7259 [\\/]* | ?:[\\/]*) 7260 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7261 ;; 7262 *) 7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264 for as_dir in $PATH 7265 do 7266 IFS=$as_save_IFS 7267 test -z "$as_dir" && as_dir=. 7268 for ac_exec_ext in '' $ac_executable_extensions; do 7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7270 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7272 break 2 7273 fi 7274 done 7275 done 7276 IFS=$as_save_IFS 7277 7278 ;; 7279 esac 7280 fi 7281 FIND=$ac_cv_path_FIND 7282 if test -n "$FIND"; then 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7284 $as_echo "$FIND" >&6; } 7285 else 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7287 $as_echo "no" >&6; } 7288 fi 7289 7290 7291 if test "x$FIND" = x; then 7292 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7293 fi 7294 else 7295 # Otherwise we believe it is a complete path. Use it as it is. 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7297 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7299 $as_echo_n "checking for FIND... " >&6; } 7300 if test ! -x "$tool_specified"; then 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7302 $as_echo "not found" >&6; } 7303 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7304 fi 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7306 $as_echo "$tool_specified" >&6; } 7307 fi 7308 fi 7309 fi 7310 7311 7312 7313 if test "x$FIND" = x; then 7314 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7315 fi 7316 7317 7318 7319 7320 7321 # Publish this variable in the help. 7322 7323 7324 if test "x$HEAD" = x; then 7325 # The variable is not set by user, try to locate tool using the code snippet 7326 for ac_prog in head 7327 do 7328 # Extract the first word of "$ac_prog", so it can be a program name with args. 7329 set dummy $ac_prog; ac_word=$2 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7331 $as_echo_n "checking for $ac_word... " >&6; } 7332 if ${ac_cv_path_HEAD+:} false; then : 7333 $as_echo_n "(cached) " >&6 7334 else 7335 case $HEAD in 7336 [\\/]* | ?:[\\/]*) 7337 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7338 ;; 7339 *) 7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7341 for as_dir in $PATH 7342 do 7343 IFS=$as_save_IFS 7344 test -z "$as_dir" && as_dir=. 7345 for ac_exec_ext in '' $ac_executable_extensions; do 7346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7347 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7349 break 2 7350 fi 7351 done 7352 done 7353 IFS=$as_save_IFS 7354 7355 ;; 7356 esac 7357 fi 7358 HEAD=$ac_cv_path_HEAD 7359 if test -n "$HEAD"; then 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7361 $as_echo "$HEAD" >&6; } 7362 else 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7364 $as_echo "no" >&6; } 7365 fi 7366 7367 7368 test -n "$HEAD" && break 7369 done 7370 7371 else 7372 # The variable is set, but is it from the command line or the environment? 7373 7374 # Try to remove the string !HEAD! from our list. 7375 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7376 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7377 # If it failed, the variable was not from the command line. Ignore it, 7378 # but warn the user (except for BASH, which is always set by the calling BASH). 7379 if test "xHEAD" != xBASH; then 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7381 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7382 fi 7383 # Try to locate tool using the code snippet 7384 for ac_prog in head 7385 do 7386 # Extract the first word of "$ac_prog", so it can be a program name with args. 7387 set dummy $ac_prog; ac_word=$2 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7389 $as_echo_n "checking for $ac_word... " >&6; } 7390 if ${ac_cv_path_HEAD+:} false; then : 7391 $as_echo_n "(cached) " >&6 7392 else 7393 case $HEAD in 7394 [\\/]* | ?:[\\/]*) 7395 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7396 ;; 7397 *) 7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7399 for as_dir in $PATH 7400 do 7401 IFS=$as_save_IFS 7402 test -z "$as_dir" && as_dir=. 7403 for ac_exec_ext in '' $ac_executable_extensions; do 7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7405 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7407 break 2 7408 fi 7409 done 7410 done 7411 IFS=$as_save_IFS 7412 7413 ;; 7414 esac 7415 fi 7416 HEAD=$ac_cv_path_HEAD 7417 if test -n "$HEAD"; then 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7419 $as_echo "$HEAD" >&6; } 7420 else 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7422 $as_echo "no" >&6; } 7423 fi 7424 7425 7426 test -n "$HEAD" && break 7427 done 7428 7429 else 7430 # If it succeeded, then it was overridden by the user. We will use it 7431 # for the tool. 7432 7433 # First remove it from the list of overridden variables, so we can test 7434 # for unknown variables in the end. 7435 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7436 7437 # Check if the provided tool contains a complete path. 7438 tool_specified="$HEAD" 7439 tool_basename="${tool_specified##*/}" 7440 if test "x$tool_basename" = "x$tool_specified"; then 7441 # A command without a complete path is provided, search $PATH. 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7443 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7444 # Extract the first word of "$tool_basename", so it can be a program name with args. 7445 set dummy $tool_basename; ac_word=$2 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7447 $as_echo_n "checking for $ac_word... " >&6; } 7448 if ${ac_cv_path_HEAD+:} false; then : 7449 $as_echo_n "(cached) " >&6 7450 else 7451 case $HEAD in 7452 [\\/]* | ?:[\\/]*) 7453 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7454 ;; 7455 *) 7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7457 for as_dir in $PATH 7458 do 7459 IFS=$as_save_IFS 7460 test -z "$as_dir" && as_dir=. 7461 for ac_exec_ext in '' $ac_executable_extensions; do 7462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7463 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7465 break 2 7466 fi 7467 done 7468 done 7469 IFS=$as_save_IFS 7470 7471 ;; 7472 esac 7473 fi 7474 HEAD=$ac_cv_path_HEAD 7475 if test -n "$HEAD"; then 7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7477 $as_echo "$HEAD" >&6; } 7478 else 7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7480 $as_echo "no" >&6; } 7481 fi 7482 7483 7484 if test "x$HEAD" = x; then 7485 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7486 fi 7487 else 7488 # Otherwise we believe it is a complete path. Use it as it is. 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7490 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7492 $as_echo_n "checking for HEAD... " >&6; } 7493 if test ! -x "$tool_specified"; then 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7495 $as_echo "not found" >&6; } 7496 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7497 fi 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7499 $as_echo "$tool_specified" >&6; } 7500 fi 7501 fi 7502 fi 7503 7504 7505 7506 if test "x$HEAD" = x; then 7507 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7508 fi 7509 7510 7511 7512 7513 7514 # Publish this variable in the help. 7515 7516 7517 if test "x$LN" = x; then 7518 # The variable is not set by user, try to locate tool using the code snippet 7519 for ac_prog in ln 7520 do 7521 # Extract the first word of "$ac_prog", so it can be a program name with args. 7522 set dummy $ac_prog; ac_word=$2 7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7524 $as_echo_n "checking for $ac_word... " >&6; } 7525 if ${ac_cv_path_LN+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527 else 7528 case $LN in 7529 [\\/]* | ?:[\\/]*) 7530 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7531 ;; 7532 *) 7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7534 for as_dir in $PATH 7535 do 7536 IFS=$as_save_IFS 7537 test -z "$as_dir" && as_dir=. 7538 for ac_exec_ext in '' $ac_executable_extensions; do 7539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7540 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7542 break 2 7543 fi 7544 done 7545 done 7546 IFS=$as_save_IFS 7547 7548 ;; 7549 esac 7550 fi 7551 LN=$ac_cv_path_LN 7552 if test -n "$LN"; then 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7554 $as_echo "$LN" >&6; } 7555 else 7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7557 $as_echo "no" >&6; } 7558 fi 7559 7560 7561 test -n "$LN" && break 7562 done 7563 7564 else 7565 # The variable is set, but is it from the command line or the environment? 7566 7567 # Try to remove the string !LN! from our list. 7568 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7569 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7570 # If it failed, the variable was not from the command line. Ignore it, 7571 # but warn the user (except for BASH, which is always set by the calling BASH). 7572 if test "xLN" != xBASH; then 7573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7574 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7575 fi 7576 # Try to locate tool using the code snippet 7577 for ac_prog in ln 7578 do 7579 # Extract the first word of "$ac_prog", so it can be a program name with args. 7580 set dummy $ac_prog; ac_word=$2 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7582 $as_echo_n "checking for $ac_word... " >&6; } 7583 if ${ac_cv_path_LN+:} false; then : 7584 $as_echo_n "(cached) " >&6 7585 else 7586 case $LN in 7587 [\\/]* | ?:[\\/]*) 7588 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7589 ;; 7590 *) 7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7592 for as_dir in $PATH 7593 do 7594 IFS=$as_save_IFS 7595 test -z "$as_dir" && as_dir=. 7596 for ac_exec_ext in '' $ac_executable_extensions; do 7597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7598 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7600 break 2 7601 fi 7602 done 7603 done 7604 IFS=$as_save_IFS 7605 7606 ;; 7607 esac 7608 fi 7609 LN=$ac_cv_path_LN 7610 if test -n "$LN"; then 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7612 $as_echo "$LN" >&6; } 7613 else 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7615 $as_echo "no" >&6; } 7616 fi 7617 7618 7619 test -n "$LN" && break 7620 done 7621 7622 else 7623 # If it succeeded, then it was overridden by the user. We will use it 7624 # for the tool. 7625 7626 # First remove it from the list of overridden variables, so we can test 7627 # for unknown variables in the end. 7628 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7629 7630 # Check if the provided tool contains a complete path. 7631 tool_specified="$LN" 7632 tool_basename="${tool_specified##*/}" 7633 if test "x$tool_basename" = "x$tool_specified"; then 7634 # A command without a complete path is provided, search $PATH. 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7636 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7637 # Extract the first word of "$tool_basename", so it can be a program name with args. 7638 set dummy $tool_basename; ac_word=$2 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7640 $as_echo_n "checking for $ac_word... " >&6; } 7641 if ${ac_cv_path_LN+:} false; then : 7642 $as_echo_n "(cached) " >&6 7643 else 7644 case $LN in 7645 [\\/]* | ?:[\\/]*) 7646 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7647 ;; 7648 *) 7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7650 for as_dir in $PATH 7651 do 7652 IFS=$as_save_IFS 7653 test -z "$as_dir" && as_dir=. 7654 for ac_exec_ext in '' $ac_executable_extensions; do 7655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7656 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7658 break 2 7659 fi 7660 done 7661 done 7662 IFS=$as_save_IFS 7663 7664 ;; 7665 esac 7666 fi 7667 LN=$ac_cv_path_LN 7668 if test -n "$LN"; then 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7670 $as_echo "$LN" >&6; } 7671 else 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7673 $as_echo "no" >&6; } 7674 fi 7675 7676 7677 if test "x$LN" = x; then 7678 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7679 fi 7680 else 7681 # Otherwise we believe it is a complete path. Use it as it is. 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7683 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7685 $as_echo_n "checking for LN... " >&6; } 7686 if test ! -x "$tool_specified"; then 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7688 $as_echo "not found" >&6; } 7689 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7690 fi 7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7692 $as_echo "$tool_specified" >&6; } 7693 fi 7694 fi 7695 fi 7696 7697 7698 7699 if test "x$LN" = x; then 7700 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7701 fi 7702 7703 7704 7705 7706 7707 # Publish this variable in the help. 7708 7709 7710 if test "x$LS" = x; then 7711 # The variable is not set by user, try to locate tool using the code snippet 7712 for ac_prog in ls 7713 do 7714 # Extract the first word of "$ac_prog", so it can be a program name with args. 7715 set dummy $ac_prog; ac_word=$2 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7717 $as_echo_n "checking for $ac_word... " >&6; } 7718 if ${ac_cv_path_LS+:} false; then : 7719 $as_echo_n "(cached) " >&6 7720 else 7721 case $LS in 7722 [\\/]* | ?:[\\/]*) 7723 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7724 ;; 7725 *) 7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7727 for as_dir in $PATH 7728 do 7729 IFS=$as_save_IFS 7730 test -z "$as_dir" && as_dir=. 7731 for ac_exec_ext in '' $ac_executable_extensions; do 7732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7733 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7735 break 2 7736 fi 7737 done 7738 done 7739 IFS=$as_save_IFS 7740 7741 ;; 7742 esac 7743 fi 7744 LS=$ac_cv_path_LS 7745 if test -n "$LS"; then 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7747 $as_echo "$LS" >&6; } 7748 else 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7750 $as_echo "no" >&6; } 7751 fi 7752 7753 7754 test -n "$LS" && break 7755 done 7756 7757 else 7758 # The variable is set, but is it from the command line or the environment? 7759 7760 # Try to remove the string !LS! from our list. 7761 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7762 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7763 # If it failed, the variable was not from the command line. Ignore it, 7764 # but warn the user (except for BASH, which is always set by the calling BASH). 7765 if test "xLS" != xBASH; then 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7767 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7768 fi 7769 # Try to locate tool using the code snippet 7770 for ac_prog in ls 7771 do 7772 # Extract the first word of "$ac_prog", so it can be a program name with args. 7773 set dummy $ac_prog; ac_word=$2 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7775 $as_echo_n "checking for $ac_word... " >&6; } 7776 if ${ac_cv_path_LS+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778 else 7779 case $LS in 7780 [\\/]* | ?:[\\/]*) 7781 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7782 ;; 7783 *) 7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7785 for as_dir in $PATH 7786 do 7787 IFS=$as_save_IFS 7788 test -z "$as_dir" && as_dir=. 7789 for ac_exec_ext in '' $ac_executable_extensions; do 7790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7791 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7793 break 2 7794 fi 7795 done 7796 done 7797 IFS=$as_save_IFS 7798 7799 ;; 7800 esac 7801 fi 7802 LS=$ac_cv_path_LS 7803 if test -n "$LS"; then 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7805 $as_echo "$LS" >&6; } 7806 else 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7808 $as_echo "no" >&6; } 7809 fi 7810 7811 7812 test -n "$LS" && break 7813 done 7814 7815 else 7816 # If it succeeded, then it was overridden by the user. We will use it 7817 # for the tool. 7818 7819 # First remove it from the list of overridden variables, so we can test 7820 # for unknown variables in the end. 7821 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7822 7823 # Check if the provided tool contains a complete path. 7824 tool_specified="$LS" 7825 tool_basename="${tool_specified##*/}" 7826 if test "x$tool_basename" = "x$tool_specified"; then 7827 # A command without a complete path is provided, search $PATH. 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7829 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7830 # Extract the first word of "$tool_basename", so it can be a program name with args. 7831 set dummy $tool_basename; ac_word=$2 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7833 $as_echo_n "checking for $ac_word... " >&6; } 7834 if ${ac_cv_path_LS+:} false; then : 7835 $as_echo_n "(cached) " >&6 7836 else 7837 case $LS in 7838 [\\/]* | ?:[\\/]*) 7839 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7840 ;; 7841 *) 7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7843 for as_dir in $PATH 7844 do 7845 IFS=$as_save_IFS 7846 test -z "$as_dir" && as_dir=. 7847 for ac_exec_ext in '' $ac_executable_extensions; do 7848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7849 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7851 break 2 7852 fi 7853 done 7854 done 7855 IFS=$as_save_IFS 7856 7857 ;; 7858 esac 7859 fi 7860 LS=$ac_cv_path_LS 7861 if test -n "$LS"; then 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7863 $as_echo "$LS" >&6; } 7864 else 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7866 $as_echo "no" >&6; } 7867 fi 7868 7869 7870 if test "x$LS" = x; then 7871 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7872 fi 7873 else 7874 # Otherwise we believe it is a complete path. Use it as it is. 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7876 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7878 $as_echo_n "checking for LS... " >&6; } 7879 if test ! -x "$tool_specified"; then 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7881 $as_echo "not found" >&6; } 7882 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7883 fi 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7885 $as_echo "$tool_specified" >&6; } 7886 fi 7887 fi 7888 fi 7889 7890 7891 7892 if test "x$LS" = x; then 7893 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7894 fi 7895 7896 7897 7898 7899 7900 # Publish this variable in the help. 7901 7902 7903 if test "x$MKDIR" = x; then 7904 # The variable is not set by user, try to locate tool using the code snippet 7905 for ac_prog in mkdir 7906 do 7907 # Extract the first word of "$ac_prog", so it can be a program name with args. 7908 set dummy $ac_prog; ac_word=$2 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7910 $as_echo_n "checking for $ac_word... " >&6; } 7911 if ${ac_cv_path_MKDIR+:} false; then : 7912 $as_echo_n "(cached) " >&6 7913 else 7914 case $MKDIR in 7915 [\\/]* | ?:[\\/]*) 7916 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7917 ;; 7918 *) 7919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7920 for as_dir in $PATH 7921 do 7922 IFS=$as_save_IFS 7923 test -z "$as_dir" && as_dir=. 7924 for ac_exec_ext in '' $ac_executable_extensions; do 7925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7926 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7928 break 2 7929 fi 7930 done 7931 done 7932 IFS=$as_save_IFS 7933 7934 ;; 7935 esac 7936 fi 7937 MKDIR=$ac_cv_path_MKDIR 7938 if test -n "$MKDIR"; then 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7940 $as_echo "$MKDIR" >&6; } 7941 else 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7943 $as_echo "no" >&6; } 7944 fi 7945 7946 7947 test -n "$MKDIR" && break 7948 done 7949 7950 else 7951 # The variable is set, but is it from the command line or the environment? 7952 7953 # Try to remove the string !MKDIR! from our list. 7954 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7955 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7956 # If it failed, the variable was not from the command line. Ignore it, 7957 # but warn the user (except for BASH, which is always set by the calling BASH). 7958 if test "xMKDIR" != xBASH; then 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7960 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7961 fi 7962 # Try to locate tool using the code snippet 7963 for ac_prog in mkdir 7964 do 7965 # Extract the first word of "$ac_prog", so it can be a program name with args. 7966 set dummy $ac_prog; ac_word=$2 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7968 $as_echo_n "checking for $ac_word... " >&6; } 7969 if ${ac_cv_path_MKDIR+:} false; then : 7970 $as_echo_n "(cached) " >&6 7971 else 7972 case $MKDIR in 7973 [\\/]* | ?:[\\/]*) 7974 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7975 ;; 7976 *) 7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7978 for as_dir in $PATH 7979 do 7980 IFS=$as_save_IFS 7981 test -z "$as_dir" && as_dir=. 7982 for ac_exec_ext in '' $ac_executable_extensions; do 7983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7984 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7986 break 2 7987 fi 7988 done 7989 done 7990 IFS=$as_save_IFS 7991 7992 ;; 7993 esac 7994 fi 7995 MKDIR=$ac_cv_path_MKDIR 7996 if test -n "$MKDIR"; then 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7998 $as_echo "$MKDIR" >&6; } 7999 else 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8001 $as_echo "no" >&6; } 8002 fi 8003 8004 8005 test -n "$MKDIR" && break 8006 done 8007 8008 else 8009 # If it succeeded, then it was overridden by the user. We will use it 8010 # for the tool. 8011 8012 # First remove it from the list of overridden variables, so we can test 8013 # for unknown variables in the end. 8014 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8015 8016 # Check if the provided tool contains a complete path. 8017 tool_specified="$MKDIR" 8018 tool_basename="${tool_specified##*/}" 8019 if test "x$tool_basename" = "x$tool_specified"; then 8020 # A command without a complete path is provided, search $PATH. 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8022 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8023 # Extract the first word of "$tool_basename", so it can be a program name with args. 8024 set dummy $tool_basename; ac_word=$2 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8026 $as_echo_n "checking for $ac_word... " >&6; } 8027 if ${ac_cv_path_MKDIR+:} false; then : 8028 $as_echo_n "(cached) " >&6 8029 else 8030 case $MKDIR in 8031 [\\/]* | ?:[\\/]*) 8032 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8033 ;; 8034 *) 8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8036 for as_dir in $PATH 8037 do 8038 IFS=$as_save_IFS 8039 test -z "$as_dir" && as_dir=. 8040 for ac_exec_ext in '' $ac_executable_extensions; do 8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8042 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8044 break 2 8045 fi 8046 done 8047 done 8048 IFS=$as_save_IFS 8049 8050 ;; 8051 esac 8052 fi 8053 MKDIR=$ac_cv_path_MKDIR 8054 if test -n "$MKDIR"; then 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8056 $as_echo "$MKDIR" >&6; } 8057 else 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8059 $as_echo "no" >&6; } 8060 fi 8061 8062 8063 if test "x$MKDIR" = x; then 8064 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8065 fi 8066 else 8067 # Otherwise we believe it is a complete path. Use it as it is. 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8069 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8071 $as_echo_n "checking for MKDIR... " >&6; } 8072 if test ! -x "$tool_specified"; then 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8074 $as_echo "not found" >&6; } 8075 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8076 fi 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8078 $as_echo "$tool_specified" >&6; } 8079 fi 8080 fi 8081 fi 8082 8083 8084 8085 if test "x$MKDIR" = x; then 8086 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8087 fi 8088 8089 8090 8091 8092 8093 # Publish this variable in the help. 8094 8095 8096 if test "x$MKTEMP" = x; then 8097 # The variable is not set by user, try to locate tool using the code snippet 8098 for ac_prog in mktemp 8099 do 8100 # Extract the first word of "$ac_prog", so it can be a program name with args. 8101 set dummy $ac_prog; ac_word=$2 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8103 $as_echo_n "checking for $ac_word... " >&6; } 8104 if ${ac_cv_path_MKTEMP+:} false; then : 8105 $as_echo_n "(cached) " >&6 8106 else 8107 case $MKTEMP in 8108 [\\/]* | ?:[\\/]*) 8109 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8110 ;; 8111 *) 8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8113 for as_dir in $PATH 8114 do 8115 IFS=$as_save_IFS 8116 test -z "$as_dir" && as_dir=. 8117 for ac_exec_ext in '' $ac_executable_extensions; do 8118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8119 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8121 break 2 8122 fi 8123 done 8124 done 8125 IFS=$as_save_IFS 8126 8127 ;; 8128 esac 8129 fi 8130 MKTEMP=$ac_cv_path_MKTEMP 8131 if test -n "$MKTEMP"; then 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8133 $as_echo "$MKTEMP" >&6; } 8134 else 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8136 $as_echo "no" >&6; } 8137 fi 8138 8139 8140 test -n "$MKTEMP" && break 8141 done 8142 8143 else 8144 # The variable is set, but is it from the command line or the environment? 8145 8146 # Try to remove the string !MKTEMP! from our list. 8147 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8148 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8149 # If it failed, the variable was not from the command line. Ignore it, 8150 # but warn the user (except for BASH, which is always set by the calling BASH). 8151 if test "xMKTEMP" != xBASH; then 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8153 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8154 fi 8155 # Try to locate tool using the code snippet 8156 for ac_prog in mktemp 8157 do 8158 # Extract the first word of "$ac_prog", so it can be a program name with args. 8159 set dummy $ac_prog; ac_word=$2 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8161 $as_echo_n "checking for $ac_word... " >&6; } 8162 if ${ac_cv_path_MKTEMP+:} false; then : 8163 $as_echo_n "(cached) " >&6 8164 else 8165 case $MKTEMP in 8166 [\\/]* | ?:[\\/]*) 8167 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8168 ;; 8169 *) 8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8171 for as_dir in $PATH 8172 do 8173 IFS=$as_save_IFS 8174 test -z "$as_dir" && as_dir=. 8175 for ac_exec_ext in '' $ac_executable_extensions; do 8176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8177 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8179 break 2 8180 fi 8181 done 8182 done 8183 IFS=$as_save_IFS 8184 8185 ;; 8186 esac 8187 fi 8188 MKTEMP=$ac_cv_path_MKTEMP 8189 if test -n "$MKTEMP"; then 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8191 $as_echo "$MKTEMP" >&6; } 8192 else 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8194 $as_echo "no" >&6; } 8195 fi 8196 8197 8198 test -n "$MKTEMP" && break 8199 done 8200 8201 else 8202 # If it succeeded, then it was overridden by the user. We will use it 8203 # for the tool. 8204 8205 # First remove it from the list of overridden variables, so we can test 8206 # for unknown variables in the end. 8207 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8208 8209 # Check if the provided tool contains a complete path. 8210 tool_specified="$MKTEMP" 8211 tool_basename="${tool_specified##*/}" 8212 if test "x$tool_basename" = "x$tool_specified"; then 8213 # A command without a complete path is provided, search $PATH. 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8215 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8216 # Extract the first word of "$tool_basename", so it can be a program name with args. 8217 set dummy $tool_basename; ac_word=$2 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8219 $as_echo_n "checking for $ac_word... " >&6; } 8220 if ${ac_cv_path_MKTEMP+:} false; then : 8221 $as_echo_n "(cached) " >&6 8222 else 8223 case $MKTEMP in 8224 [\\/]* | ?:[\\/]*) 8225 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8226 ;; 8227 *) 8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8229 for as_dir in $PATH 8230 do 8231 IFS=$as_save_IFS 8232 test -z "$as_dir" && as_dir=. 8233 for ac_exec_ext in '' $ac_executable_extensions; do 8234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8235 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8237 break 2 8238 fi 8239 done 8240 done 8241 IFS=$as_save_IFS 8242 8243 ;; 8244 esac 8245 fi 8246 MKTEMP=$ac_cv_path_MKTEMP 8247 if test -n "$MKTEMP"; then 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8249 $as_echo "$MKTEMP" >&6; } 8250 else 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8252 $as_echo "no" >&6; } 8253 fi 8254 8255 8256 if test "x$MKTEMP" = x; then 8257 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8258 fi 8259 else 8260 # Otherwise we believe it is a complete path. Use it as it is. 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8262 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8264 $as_echo_n "checking for MKTEMP... " >&6; } 8265 if test ! -x "$tool_specified"; then 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8267 $as_echo "not found" >&6; } 8268 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8269 fi 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8271 $as_echo "$tool_specified" >&6; } 8272 fi 8273 fi 8274 fi 8275 8276 8277 8278 if test "x$MKTEMP" = x; then 8279 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8280 fi 8281 8282 8283 8284 8285 8286 # Publish this variable in the help. 8287 8288 8289 if test "x$MV" = x; then 8290 # The variable is not set by user, try to locate tool using the code snippet 8291 for ac_prog in mv 8292 do 8293 # Extract the first word of "$ac_prog", so it can be a program name with args. 8294 set dummy $ac_prog; ac_word=$2 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8296 $as_echo_n "checking for $ac_word... " >&6; } 8297 if ${ac_cv_path_MV+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299 else 8300 case $MV in 8301 [\\/]* | ?:[\\/]*) 8302 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8303 ;; 8304 *) 8305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8306 for as_dir in $PATH 8307 do 8308 IFS=$as_save_IFS 8309 test -z "$as_dir" && as_dir=. 8310 for ac_exec_ext in '' $ac_executable_extensions; do 8311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8312 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8314 break 2 8315 fi 8316 done 8317 done 8318 IFS=$as_save_IFS 8319 8320 ;; 8321 esac 8322 fi 8323 MV=$ac_cv_path_MV 8324 if test -n "$MV"; then 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8326 $as_echo "$MV" >&6; } 8327 else 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8329 $as_echo "no" >&6; } 8330 fi 8331 8332 8333 test -n "$MV" && break 8334 done 8335 8336 else 8337 # The variable is set, but is it from the command line or the environment? 8338 8339 # Try to remove the string !MV! from our list. 8340 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8341 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8342 # If it failed, the variable was not from the command line. Ignore it, 8343 # but warn the user (except for BASH, which is always set by the calling BASH). 8344 if test "xMV" != xBASH; then 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8346 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8347 fi 8348 # Try to locate tool using the code snippet 8349 for ac_prog in mv 8350 do 8351 # Extract the first word of "$ac_prog", so it can be a program name with args. 8352 set dummy $ac_prog; ac_word=$2 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8354 $as_echo_n "checking for $ac_word... " >&6; } 8355 if ${ac_cv_path_MV+:} false; then : 8356 $as_echo_n "(cached) " >&6 8357 else 8358 case $MV in 8359 [\\/]* | ?:[\\/]*) 8360 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8361 ;; 8362 *) 8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8364 for as_dir in $PATH 8365 do 8366 IFS=$as_save_IFS 8367 test -z "$as_dir" && as_dir=. 8368 for ac_exec_ext in '' $ac_executable_extensions; do 8369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8370 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8372 break 2 8373 fi 8374 done 8375 done 8376 IFS=$as_save_IFS 8377 8378 ;; 8379 esac 8380 fi 8381 MV=$ac_cv_path_MV 8382 if test -n "$MV"; then 8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8384 $as_echo "$MV" >&6; } 8385 else 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8387 $as_echo "no" >&6; } 8388 fi 8389 8390 8391 test -n "$MV" && break 8392 done 8393 8394 else 8395 # If it succeeded, then it was overridden by the user. We will use it 8396 # for the tool. 8397 8398 # First remove it from the list of overridden variables, so we can test 8399 # for unknown variables in the end. 8400 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8401 8402 # Check if the provided tool contains a complete path. 8403 tool_specified="$MV" 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 MV=$tool_basename" >&5 8408 $as_echo "$as_me: Will search for user supplied tool MV=$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_MV+:} false; then : 8414 $as_echo_n "(cached) " >&6 8415 else 8416 case $MV in 8417 [\\/]* | ?:[\\/]*) 8418 ac_cv_path_MV="$MV" # 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_MV="$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 MV=$ac_cv_path_MV 8440 if test -n "$MV"; then 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8442 $as_echo "$MV" >&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$MV" = 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 MV=$tool_specified" >&5 8455 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8457 $as_echo_n "checking for MV... " >&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 MV=$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 8470 8471 if test "x$MV" = x; then 8472 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8473 fi 8474 8475 8476 8477 8478 8479 # Publish this variable in the help. 8480 8481 8482 if test "x$NAWK" = x; then 8483 # The variable is not set by user, try to locate tool using the code snippet 8484 for ac_prog in nawk gawk awk 8485 do 8486 # Extract the first word of "$ac_prog", so it can be a program name with args. 8487 set dummy $ac_prog; ac_word=$2 8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8489 $as_echo_n "checking for $ac_word... " >&6; } 8490 if ${ac_cv_path_NAWK+:} false; then : 8491 $as_echo_n "(cached) " >&6 8492 else 8493 case $NAWK in 8494 [\\/]* | ?:[\\/]*) 8495 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8496 ;; 8497 *) 8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8499 for as_dir in $PATH 8500 do 8501 IFS=$as_save_IFS 8502 test -z "$as_dir" && as_dir=. 8503 for ac_exec_ext in '' $ac_executable_extensions; do 8504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8505 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8507 break 2 8508 fi 8509 done 8510 done 8511 IFS=$as_save_IFS 8512 8513 ;; 8514 esac 8515 fi 8516 NAWK=$ac_cv_path_NAWK 8517 if test -n "$NAWK"; then 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8519 $as_echo "$NAWK" >&6; } 8520 else 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8522 $as_echo "no" >&6; } 8523 fi 8524 8525 8526 test -n "$NAWK" && break 8527 done 8528 8529 else 8530 # The variable is set, but is it from the command line or the environment? 8531 8532 # Try to remove the string !NAWK! from our list. 8533 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8534 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8535 # If it failed, the variable was not from the command line. Ignore it, 8536 # but warn the user (except for BASH, which is always set by the calling BASH). 8537 if test "xNAWK" != xBASH; then 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8539 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8540 fi 8541 # Try to locate tool using the code snippet 8542 for ac_prog in nawk gawk awk 8543 do 8544 # Extract the first word of "$ac_prog", so it can be a program name with args. 8545 set dummy $ac_prog; ac_word=$2 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8547 $as_echo_n "checking for $ac_word... " >&6; } 8548 if ${ac_cv_path_NAWK+:} false; then : 8549 $as_echo_n "(cached) " >&6 8550 else 8551 case $NAWK in 8552 [\\/]* | ?:[\\/]*) 8553 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8554 ;; 8555 *) 8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8557 for as_dir in $PATH 8558 do 8559 IFS=$as_save_IFS 8560 test -z "$as_dir" && as_dir=. 8561 for ac_exec_ext in '' $ac_executable_extensions; do 8562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8563 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8565 break 2 8566 fi 8567 done 8568 done 8569 IFS=$as_save_IFS 8570 8571 ;; 8572 esac 8573 fi 8574 NAWK=$ac_cv_path_NAWK 8575 if test -n "$NAWK"; then 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8577 $as_echo "$NAWK" >&6; } 8578 else 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8580 $as_echo "no" >&6; } 8581 fi 8582 8583 8584 test -n "$NAWK" && break 8585 done 8586 8587 else 8588 # If it succeeded, then it was overridden by the user. We will use it 8589 # for the tool. 8590 8591 # First remove it from the list of overridden variables, so we can test 8592 # for unknown variables in the end. 8593 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8594 8595 # Check if the provided tool contains a complete path. 8596 tool_specified="$NAWK" 8597 tool_basename="${tool_specified##*/}" 8598 if test "x$tool_basename" = "x$tool_specified"; then 8599 # A command without a complete path is provided, search $PATH. 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8601 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8602 # Extract the first word of "$tool_basename", so it can be a program name with args. 8603 set dummy $tool_basename; ac_word=$2 8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8605 $as_echo_n "checking for $ac_word... " >&6; } 8606 if ${ac_cv_path_NAWK+:} false; then : 8607 $as_echo_n "(cached) " >&6 8608 else 8609 case $NAWK in 8610 [\\/]* | ?:[\\/]*) 8611 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8612 ;; 8613 *) 8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8615 for as_dir in $PATH 8616 do 8617 IFS=$as_save_IFS 8618 test -z "$as_dir" && as_dir=. 8619 for ac_exec_ext in '' $ac_executable_extensions; do 8620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8621 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8623 break 2 8624 fi 8625 done 8626 done 8627 IFS=$as_save_IFS 8628 8629 ;; 8630 esac 8631 fi 8632 NAWK=$ac_cv_path_NAWK 8633 if test -n "$NAWK"; then 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8635 $as_echo "$NAWK" >&6; } 8636 else 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8638 $as_echo "no" >&6; } 8639 fi 8640 8641 8642 if test "x$NAWK" = x; then 8643 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8644 fi 8645 else 8646 # Otherwise we believe it is a complete path. Use it as it is. 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8648 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8650 $as_echo_n "checking for NAWK... " >&6; } 8651 if test ! -x "$tool_specified"; then 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8653 $as_echo "not found" >&6; } 8654 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8655 fi 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8657 $as_echo "$tool_specified" >&6; } 8658 fi 8659 fi 8660 fi 8661 8662 8663 8664 if test "x$NAWK" = x; then 8665 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8666 fi 8667 8668 8669 8670 8671 8672 # Publish this variable in the help. 8673 8674 8675 if test "x$PRINTF" = x; then 8676 # The variable is not set by user, try to locate tool using the code snippet 8677 for ac_prog in printf 8678 do 8679 # Extract the first word of "$ac_prog", so it can be a program name with args. 8680 set dummy $ac_prog; ac_word=$2 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8682 $as_echo_n "checking for $ac_word... " >&6; } 8683 if ${ac_cv_path_PRINTF+:} false; then : 8684 $as_echo_n "(cached) " >&6 8685 else 8686 case $PRINTF in 8687 [\\/]* | ?:[\\/]*) 8688 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8689 ;; 8690 *) 8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8692 for as_dir in $PATH 8693 do 8694 IFS=$as_save_IFS 8695 test -z "$as_dir" && as_dir=. 8696 for ac_exec_ext in '' $ac_executable_extensions; do 8697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8698 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8700 break 2 8701 fi 8702 done 8703 done 8704 IFS=$as_save_IFS 8705 8706 ;; 8707 esac 8708 fi 8709 PRINTF=$ac_cv_path_PRINTF 8710 if test -n "$PRINTF"; then 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8712 $as_echo "$PRINTF" >&6; } 8713 else 8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8715 $as_echo "no" >&6; } 8716 fi 8717 8718 8719 test -n "$PRINTF" && break 8720 done 8721 8722 else 8723 # The variable is set, but is it from the command line or the environment? 8724 8725 # Try to remove the string !PRINTF! from our list. 8726 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8727 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8728 # If it failed, the variable was not from the command line. Ignore it, 8729 # but warn the user (except for BASH, which is always set by the calling BASH). 8730 if test "xPRINTF" != xBASH; then 8731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8732 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8733 fi 8734 # Try to locate tool using the code snippet 8735 for ac_prog in printf 8736 do 8737 # Extract the first word of "$ac_prog", so it can be a program name with args. 8738 set dummy $ac_prog; ac_word=$2 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8740 $as_echo_n "checking for $ac_word... " >&6; } 8741 if ${ac_cv_path_PRINTF+:} false; then : 8742 $as_echo_n "(cached) " >&6 8743 else 8744 case $PRINTF in 8745 [\\/]* | ?:[\\/]*) 8746 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8747 ;; 8748 *) 8749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8750 for as_dir in $PATH 8751 do 8752 IFS=$as_save_IFS 8753 test -z "$as_dir" && as_dir=. 8754 for ac_exec_ext in '' $ac_executable_extensions; do 8755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8756 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8758 break 2 8759 fi 8760 done 8761 done 8762 IFS=$as_save_IFS 8763 8764 ;; 8765 esac 8766 fi 8767 PRINTF=$ac_cv_path_PRINTF 8768 if test -n "$PRINTF"; then 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8770 $as_echo "$PRINTF" >&6; } 8771 else 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8773 $as_echo "no" >&6; } 8774 fi 8775 8776 8777 test -n "$PRINTF" && break 8778 done 8779 8780 else 8781 # If it succeeded, then it was overridden by the user. We will use it 8782 # for the tool. 8783 8784 # First remove it from the list of overridden variables, so we can test 8785 # for unknown variables in the end. 8786 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8787 8788 # Check if the provided tool contains a complete path. 8789 tool_specified="$PRINTF" 8790 tool_basename="${tool_specified##*/}" 8791 if test "x$tool_basename" = "x$tool_specified"; then 8792 # A command without a complete path is provided, search $PATH. 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8794 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8795 # Extract the first word of "$tool_basename", so it can be a program name with args. 8796 set dummy $tool_basename; ac_word=$2 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8798 $as_echo_n "checking for $ac_word... " >&6; } 8799 if ${ac_cv_path_PRINTF+:} false; then : 8800 $as_echo_n "(cached) " >&6 8801 else 8802 case $PRINTF in 8803 [\\/]* | ?:[\\/]*) 8804 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8805 ;; 8806 *) 8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8808 for as_dir in $PATH 8809 do 8810 IFS=$as_save_IFS 8811 test -z "$as_dir" && as_dir=. 8812 for ac_exec_ext in '' $ac_executable_extensions; do 8813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8814 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8816 break 2 8817 fi 8818 done 8819 done 8820 IFS=$as_save_IFS 8821 8822 ;; 8823 esac 8824 fi 8825 PRINTF=$ac_cv_path_PRINTF 8826 if test -n "$PRINTF"; then 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8828 $as_echo "$PRINTF" >&6; } 8829 else 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8831 $as_echo "no" >&6; } 8832 fi 8833 8834 8835 if test "x$PRINTF" = x; then 8836 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8837 fi 8838 else 8839 # Otherwise we believe it is a complete path. Use it as it is. 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8841 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8843 $as_echo_n "checking for PRINTF... " >&6; } 8844 if test ! -x "$tool_specified"; then 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8846 $as_echo "not found" >&6; } 8847 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8848 fi 8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8850 $as_echo "$tool_specified" >&6; } 8851 fi 8852 fi 8853 fi 8854 8855 8856 8857 if test "x$PRINTF" = x; then 8858 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8859 fi 8860 8861 8862 8863 8864 8865 # Publish this variable in the help. 8866 8867 8868 if test "x$RM" = x; then 8869 # The variable is not set by user, try to locate tool using the code snippet 8870 for ac_prog in rm 8871 do 8872 # Extract the first word of "$ac_prog", so it can be a program name with args. 8873 set dummy $ac_prog; ac_word=$2 8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8875 $as_echo_n "checking for $ac_word... " >&6; } 8876 if ${ac_cv_path_RM+:} false; then : 8877 $as_echo_n "(cached) " >&6 8878 else 8879 case $RM in 8880 [\\/]* | ?:[\\/]*) 8881 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8882 ;; 8883 *) 8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8885 for as_dir in $PATH 8886 do 8887 IFS=$as_save_IFS 8888 test -z "$as_dir" && as_dir=. 8889 for ac_exec_ext in '' $ac_executable_extensions; do 8890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8891 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8893 break 2 8894 fi 8895 done 8896 done 8897 IFS=$as_save_IFS 8898 8899 ;; 8900 esac 8901 fi 8902 RM=$ac_cv_path_RM 8903 if test -n "$RM"; then 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8905 $as_echo "$RM" >&6; } 8906 else 8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8908 $as_echo "no" >&6; } 8909 fi 8910 8911 8912 test -n "$RM" && break 8913 done 8914 8915 else 8916 # The variable is set, but is it from the command line or the environment? 8917 8918 # Try to remove the string !RM! from our list. 8919 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8920 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8921 # If it failed, the variable was not from the command line. Ignore it, 8922 # but warn the user (except for BASH, which is always set by the calling BASH). 8923 if test "xRM" != xBASH; then 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8925 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8926 fi 8927 # Try to locate tool using the code snippet 8928 for ac_prog in rm 8929 do 8930 # Extract the first word of "$ac_prog", so it can be a program name with args. 8931 set dummy $ac_prog; ac_word=$2 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8933 $as_echo_n "checking for $ac_word... " >&6; } 8934 if ${ac_cv_path_RM+:} false; then : 8935 $as_echo_n "(cached) " >&6 8936 else 8937 case $RM in 8938 [\\/]* | ?:[\\/]*) 8939 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8940 ;; 8941 *) 8942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8943 for as_dir in $PATH 8944 do 8945 IFS=$as_save_IFS 8946 test -z "$as_dir" && as_dir=. 8947 for ac_exec_ext in '' $ac_executable_extensions; do 8948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8949 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8951 break 2 8952 fi 8953 done 8954 done 8955 IFS=$as_save_IFS 8956 8957 ;; 8958 esac 8959 fi 8960 RM=$ac_cv_path_RM 8961 if test -n "$RM"; then 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8963 $as_echo "$RM" >&6; } 8964 else 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8966 $as_echo "no" >&6; } 8967 fi 8968 8969 8970 test -n "$RM" && break 8971 done 8972 8973 else 8974 # If it succeeded, then it was overridden by the user. We will use it 8975 # for the tool. 8976 8977 # First remove it from the list of overridden variables, so we can test 8978 # for unknown variables in the end. 8979 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8980 8981 # Check if the provided tool contains a complete path. 8982 tool_specified="$RM" 8983 tool_basename="${tool_specified##*/}" 8984 if test "x$tool_basename" = "x$tool_specified"; then 8985 # A command without a complete path is provided, search $PATH. 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 8987 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 8988 # Extract the first word of "$tool_basename", so it can be a program name with args. 8989 set dummy $tool_basename; ac_word=$2 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8991 $as_echo_n "checking for $ac_word... " >&6; } 8992 if ${ac_cv_path_RM+:} false; then : 8993 $as_echo_n "(cached) " >&6 8994 else 8995 case $RM in 8996 [\\/]* | ?:[\\/]*) 8997 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8998 ;; 8999 *) 9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9001 for as_dir in $PATH 9002 do 9003 IFS=$as_save_IFS 9004 test -z "$as_dir" && as_dir=. 9005 for ac_exec_ext in '' $ac_executable_extensions; do 9006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9007 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9009 break 2 9010 fi 9011 done 9012 done 9013 IFS=$as_save_IFS 9014 9015 ;; 9016 esac 9017 fi 9018 RM=$ac_cv_path_RM 9019 if test -n "$RM"; then 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9021 $as_echo "$RM" >&6; } 9022 else 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9024 $as_echo "no" >&6; } 9025 fi 9026 9027 9028 if test "x$RM" = x; then 9029 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9030 fi 9031 else 9032 # Otherwise we believe it is a complete path. Use it as it is. 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9034 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9036 $as_echo_n "checking for RM... " >&6; } 9037 if test ! -x "$tool_specified"; then 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9039 $as_echo "not found" >&6; } 9040 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9041 fi 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9043 $as_echo "$tool_specified" >&6; } 9044 fi 9045 fi 9046 fi 9047 9048 9049 9050 if test "x$RM" = x; then 9051 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9052 fi 9053 9054 9055 9056 9057 9058 # Publish this variable in the help. 9059 9060 9061 if test "x$SH" = x; then 9062 # The variable is not set by user, try to locate tool using the code snippet 9063 for ac_prog in sh 9064 do 9065 # Extract the first word of "$ac_prog", so it can be a program name with args. 9066 set dummy $ac_prog; ac_word=$2 9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9068 $as_echo_n "checking for $ac_word... " >&6; } 9069 if ${ac_cv_path_SH+:} false; then : 9070 $as_echo_n "(cached) " >&6 9071 else 9072 case $SH in 9073 [\\/]* | ?:[\\/]*) 9074 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9075 ;; 9076 *) 9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9078 for as_dir in $PATH 9079 do 9080 IFS=$as_save_IFS 9081 test -z "$as_dir" && as_dir=. 9082 for ac_exec_ext in '' $ac_executable_extensions; do 9083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9084 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9086 break 2 9087 fi 9088 done 9089 done 9090 IFS=$as_save_IFS 9091 9092 ;; 9093 esac 9094 fi 9095 SH=$ac_cv_path_SH 9096 if test -n "$SH"; then 9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9098 $as_echo "$SH" >&6; } 9099 else 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9101 $as_echo "no" >&6; } 9102 fi 9103 9104 9105 test -n "$SH" && break 9106 done 9107 9108 else 9109 # The variable is set, but is it from the command line or the environment? 9110 9111 # Try to remove the string !SH! from our list. 9112 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9113 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9114 # If it failed, the variable was not from the command line. Ignore it, 9115 # but warn the user (except for BASH, which is always set by the calling BASH). 9116 if test "xSH" != xBASH; then 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9118 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9119 fi 9120 # Try to locate tool using the code snippet 9121 for ac_prog in sh 9122 do 9123 # Extract the first word of "$ac_prog", so it can be a program name with args. 9124 set dummy $ac_prog; ac_word=$2 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9126 $as_echo_n "checking for $ac_word... " >&6; } 9127 if ${ac_cv_path_SH+:} false; then : 9128 $as_echo_n "(cached) " >&6 9129 else 9130 case $SH in 9131 [\\/]* | ?:[\\/]*) 9132 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9133 ;; 9134 *) 9135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9136 for as_dir in $PATH 9137 do 9138 IFS=$as_save_IFS 9139 test -z "$as_dir" && as_dir=. 9140 for ac_exec_ext in '' $ac_executable_extensions; do 9141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9142 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9144 break 2 9145 fi 9146 done 9147 done 9148 IFS=$as_save_IFS 9149 9150 ;; 9151 esac 9152 fi 9153 SH=$ac_cv_path_SH 9154 if test -n "$SH"; then 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9156 $as_echo "$SH" >&6; } 9157 else 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9159 $as_echo "no" >&6; } 9160 fi 9161 9162 9163 test -n "$SH" && break 9164 done 9165 9166 else 9167 # If it succeeded, then it was overridden by the user. We will use it 9168 # for the tool. 9169 9170 # First remove it from the list of overridden variables, so we can test 9171 # for unknown variables in the end. 9172 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9173 9174 # Check if the provided tool contains a complete path. 9175 tool_specified="$SH" 9176 tool_basename="${tool_specified##*/}" 9177 if test "x$tool_basename" = "x$tool_specified"; then 9178 # A command without a complete path is provided, search $PATH. 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9180 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9181 # Extract the first word of "$tool_basename", so it can be a program name with args. 9182 set dummy $tool_basename; ac_word=$2 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9184 $as_echo_n "checking for $ac_word... " >&6; } 9185 if ${ac_cv_path_SH+:} false; then : 9186 $as_echo_n "(cached) " >&6 9187 else 9188 case $SH in 9189 [\\/]* | ?:[\\/]*) 9190 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9191 ;; 9192 *) 9193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9194 for as_dir in $PATH 9195 do 9196 IFS=$as_save_IFS 9197 test -z "$as_dir" && as_dir=. 9198 for ac_exec_ext in '' $ac_executable_extensions; do 9199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9200 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9202 break 2 9203 fi 9204 done 9205 done 9206 IFS=$as_save_IFS 9207 9208 ;; 9209 esac 9210 fi 9211 SH=$ac_cv_path_SH 9212 if test -n "$SH"; then 9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9214 $as_echo "$SH" >&6; } 9215 else 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9217 $as_echo "no" >&6; } 9218 fi 9219 9220 9221 if test "x$SH" = x; then 9222 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9223 fi 9224 else 9225 # Otherwise we believe it is a complete path. Use it as it is. 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9227 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9229 $as_echo_n "checking for SH... " >&6; } 9230 if test ! -x "$tool_specified"; then 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9232 $as_echo "not found" >&6; } 9233 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9234 fi 9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9236 $as_echo "$tool_specified" >&6; } 9237 fi 9238 fi 9239 fi 9240 9241 9242 9243 if test "x$SH" = x; then 9244 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9245 fi 9246 9247 9248 9249 9250 9251 # Publish this variable in the help. 9252 9253 9254 if test "x$SORT" = x; then 9255 # The variable is not set by user, try to locate tool using the code snippet 9256 for ac_prog in sort 9257 do 9258 # Extract the first word of "$ac_prog", so it can be a program name with args. 9259 set dummy $ac_prog; ac_word=$2 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9261 $as_echo_n "checking for $ac_word... " >&6; } 9262 if ${ac_cv_path_SORT+:} false; then : 9263 $as_echo_n "(cached) " >&6 9264 else 9265 case $SORT in 9266 [\\/]* | ?:[\\/]*) 9267 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9268 ;; 9269 *) 9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9271 for as_dir in $PATH 9272 do 9273 IFS=$as_save_IFS 9274 test -z "$as_dir" && as_dir=. 9275 for ac_exec_ext in '' $ac_executable_extensions; do 9276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9277 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9279 break 2 9280 fi 9281 done 9282 done 9283 IFS=$as_save_IFS 9284 9285 ;; 9286 esac 9287 fi 9288 SORT=$ac_cv_path_SORT 9289 if test -n "$SORT"; then 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9291 $as_echo "$SORT" >&6; } 9292 else 9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9294 $as_echo "no" >&6; } 9295 fi 9296 9297 9298 test -n "$SORT" && break 9299 done 9300 9301 else 9302 # The variable is set, but is it from the command line or the environment? 9303 9304 # Try to remove the string !SORT! from our list. 9305 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9306 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9307 # If it failed, the variable was not from the command line. Ignore it, 9308 # but warn the user (except for BASH, which is always set by the calling BASH). 9309 if test "xSORT" != xBASH; then 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9311 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9312 fi 9313 # Try to locate tool using the code snippet 9314 for ac_prog in sort 9315 do 9316 # Extract the first word of "$ac_prog", so it can be a program name with args. 9317 set dummy $ac_prog; ac_word=$2 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9319 $as_echo_n "checking for $ac_word... " >&6; } 9320 if ${ac_cv_path_SORT+:} false; then : 9321 $as_echo_n "(cached) " >&6 9322 else 9323 case $SORT in 9324 [\\/]* | ?:[\\/]*) 9325 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9326 ;; 9327 *) 9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9329 for as_dir in $PATH 9330 do 9331 IFS=$as_save_IFS 9332 test -z "$as_dir" && as_dir=. 9333 for ac_exec_ext in '' $ac_executable_extensions; do 9334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9335 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9337 break 2 9338 fi 9339 done 9340 done 9341 IFS=$as_save_IFS 9342 9343 ;; 9344 esac 9345 fi 9346 SORT=$ac_cv_path_SORT 9347 if test -n "$SORT"; then 9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9349 $as_echo "$SORT" >&6; } 9350 else 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9352 $as_echo "no" >&6; } 9353 fi 9354 9355 9356 test -n "$SORT" && break 9357 done 9358 9359 else 9360 # If it succeeded, then it was overridden by the user. We will use it 9361 # for the tool. 9362 9363 # First remove it from the list of overridden variables, so we can test 9364 # for unknown variables in the end. 9365 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9366 9367 # Check if the provided tool contains a complete path. 9368 tool_specified="$SORT" 9369 tool_basename="${tool_specified##*/}" 9370 if test "x$tool_basename" = "x$tool_specified"; then 9371 # A command without a complete path is provided, search $PATH. 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9373 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9374 # Extract the first word of "$tool_basename", so it can be a program name with args. 9375 set dummy $tool_basename; ac_word=$2 9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9377 $as_echo_n "checking for $ac_word... " >&6; } 9378 if ${ac_cv_path_SORT+:} false; then : 9379 $as_echo_n "(cached) " >&6 9380 else 9381 case $SORT in 9382 [\\/]* | ?:[\\/]*) 9383 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9384 ;; 9385 *) 9386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9387 for as_dir in $PATH 9388 do 9389 IFS=$as_save_IFS 9390 test -z "$as_dir" && as_dir=. 9391 for ac_exec_ext in '' $ac_executable_extensions; do 9392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9393 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9395 break 2 9396 fi 9397 done 9398 done 9399 IFS=$as_save_IFS 9400 9401 ;; 9402 esac 9403 fi 9404 SORT=$ac_cv_path_SORT 9405 if test -n "$SORT"; then 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9407 $as_echo "$SORT" >&6; } 9408 else 9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9410 $as_echo "no" >&6; } 9411 fi 9412 9413 9414 if test "x$SORT" = x; then 9415 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9416 fi 9417 else 9418 # Otherwise we believe it is a complete path. Use it as it is. 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9420 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9422 $as_echo_n "checking for SORT... " >&6; } 9423 if test ! -x "$tool_specified"; then 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9425 $as_echo "not found" >&6; } 9426 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9427 fi 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9429 $as_echo "$tool_specified" >&6; } 9430 fi 9431 fi 9432 fi 9433 9434 9435 9436 if test "x$SORT" = x; then 9437 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9438 fi 9439 9440 9441 9442 9443 9444 # Publish this variable in the help. 9445 9446 9447 if test "x$TAIL" = x; then 9448 # The variable is not set by user, try to locate tool using the code snippet 9449 for ac_prog in tail 9450 do 9451 # Extract the first word of "$ac_prog", so it can be a program name with args. 9452 set dummy $ac_prog; ac_word=$2 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9454 $as_echo_n "checking for $ac_word... " >&6; } 9455 if ${ac_cv_path_TAIL+:} false; then : 9456 $as_echo_n "(cached) " >&6 9457 else 9458 case $TAIL in 9459 [\\/]* | ?:[\\/]*) 9460 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9461 ;; 9462 *) 9463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9464 for as_dir in $PATH 9465 do 9466 IFS=$as_save_IFS 9467 test -z "$as_dir" && as_dir=. 9468 for ac_exec_ext in '' $ac_executable_extensions; do 9469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9470 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9472 break 2 9473 fi 9474 done 9475 done 9476 IFS=$as_save_IFS 9477 9478 ;; 9479 esac 9480 fi 9481 TAIL=$ac_cv_path_TAIL 9482 if test -n "$TAIL"; then 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9484 $as_echo "$TAIL" >&6; } 9485 else 9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9487 $as_echo "no" >&6; } 9488 fi 9489 9490 9491 test -n "$TAIL" && break 9492 done 9493 9494 else 9495 # The variable is set, but is it from the command line or the environment? 9496 9497 # Try to remove the string !TAIL! from our list. 9498 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9499 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9500 # If it failed, the variable was not from the command line. Ignore it, 9501 # but warn the user (except for BASH, which is always set by the calling BASH). 9502 if test "xTAIL" != xBASH; then 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9504 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9505 fi 9506 # Try to locate tool using the code snippet 9507 for ac_prog in tail 9508 do 9509 # Extract the first word of "$ac_prog", so it can be a program name with args. 9510 set dummy $ac_prog; ac_word=$2 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9512 $as_echo_n "checking for $ac_word... " >&6; } 9513 if ${ac_cv_path_TAIL+:} false; then : 9514 $as_echo_n "(cached) " >&6 9515 else 9516 case $TAIL in 9517 [\\/]* | ?:[\\/]*) 9518 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9519 ;; 9520 *) 9521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9522 for as_dir in $PATH 9523 do 9524 IFS=$as_save_IFS 9525 test -z "$as_dir" && as_dir=. 9526 for ac_exec_ext in '' $ac_executable_extensions; do 9527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9528 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9530 break 2 9531 fi 9532 done 9533 done 9534 IFS=$as_save_IFS 9535 9536 ;; 9537 esac 9538 fi 9539 TAIL=$ac_cv_path_TAIL 9540 if test -n "$TAIL"; then 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9542 $as_echo "$TAIL" >&6; } 9543 else 9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9545 $as_echo "no" >&6; } 9546 fi 9547 9548 9549 test -n "$TAIL" && break 9550 done 9551 9552 else 9553 # If it succeeded, then it was overridden by the user. We will use it 9554 # for the tool. 9555 9556 # First remove it from the list of overridden variables, so we can test 9557 # for unknown variables in the end. 9558 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9559 9560 # Check if the provided tool contains a complete path. 9561 tool_specified="$TAIL" 9562 tool_basename="${tool_specified##*/}" 9563 if test "x$tool_basename" = "x$tool_specified"; then 9564 # A command without a complete path is provided, search $PATH. 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9566 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9567 # Extract the first word of "$tool_basename", so it can be a program name with args. 9568 set dummy $tool_basename; ac_word=$2 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9570 $as_echo_n "checking for $ac_word... " >&6; } 9571 if ${ac_cv_path_TAIL+:} false; then : 9572 $as_echo_n "(cached) " >&6 9573 else 9574 case $TAIL in 9575 [\\/]* | ?:[\\/]*) 9576 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9577 ;; 9578 *) 9579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9580 for as_dir in $PATH 9581 do 9582 IFS=$as_save_IFS 9583 test -z "$as_dir" && as_dir=. 9584 for ac_exec_ext in '' $ac_executable_extensions; do 9585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9586 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9588 break 2 9589 fi 9590 done 9591 done 9592 IFS=$as_save_IFS 9593 9594 ;; 9595 esac 9596 fi 9597 TAIL=$ac_cv_path_TAIL 9598 if test -n "$TAIL"; then 9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9600 $as_echo "$TAIL" >&6; } 9601 else 9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9603 $as_echo "no" >&6; } 9604 fi 9605 9606 9607 if test "x$TAIL" = x; then 9608 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9609 fi 9610 else 9611 # Otherwise we believe it is a complete path. Use it as it is. 9612 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9613 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9615 $as_echo_n "checking for TAIL... " >&6; } 9616 if test ! -x "$tool_specified"; then 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9618 $as_echo "not found" >&6; } 9619 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9620 fi 9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9622 $as_echo "$tool_specified" >&6; } 9623 fi 9624 fi 9625 fi 9626 9627 9628 9629 if test "x$TAIL" = x; then 9630 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9631 fi 9632 9633 9634 9635 9636 9637 # Publish this variable in the help. 9638 9639 9640 if test "x$TAR" = x; then 9641 # The variable is not set by user, try to locate tool using the code snippet 9642 for ac_prog in tar 9643 do 9644 # Extract the first word of "$ac_prog", so it can be a program name with args. 9645 set dummy $ac_prog; ac_word=$2 9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9647 $as_echo_n "checking for $ac_word... " >&6; } 9648 if ${ac_cv_path_TAR+:} false; then : 9649 $as_echo_n "(cached) " >&6 9650 else 9651 case $TAR in 9652 [\\/]* | ?:[\\/]*) 9653 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9654 ;; 9655 *) 9656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9657 for as_dir in $PATH 9658 do 9659 IFS=$as_save_IFS 9660 test -z "$as_dir" && as_dir=. 9661 for ac_exec_ext in '' $ac_executable_extensions; do 9662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9663 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9665 break 2 9666 fi 9667 done 9668 done 9669 IFS=$as_save_IFS 9670 9671 ;; 9672 esac 9673 fi 9674 TAR=$ac_cv_path_TAR 9675 if test -n "$TAR"; then 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9677 $as_echo "$TAR" >&6; } 9678 else 9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9680 $as_echo "no" >&6; } 9681 fi 9682 9683 9684 test -n "$TAR" && break 9685 done 9686 9687 else 9688 # The variable is set, but is it from the command line or the environment? 9689 9690 # Try to remove the string !TAR! from our list. 9691 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9692 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9693 # If it failed, the variable was not from the command line. Ignore it, 9694 # but warn the user (except for BASH, which is always set by the calling BASH). 9695 if test "xTAR" != xBASH; then 9696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9697 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9698 fi 9699 # Try to locate tool using the code snippet 9700 for ac_prog in tar 9701 do 9702 # Extract the first word of "$ac_prog", so it can be a program name with args. 9703 set dummy $ac_prog; ac_word=$2 9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9705 $as_echo_n "checking for $ac_word... " >&6; } 9706 if ${ac_cv_path_TAR+:} false; then : 9707 $as_echo_n "(cached) " >&6 9708 else 9709 case $TAR in 9710 [\\/]* | ?:[\\/]*) 9711 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9712 ;; 9713 *) 9714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9715 for as_dir in $PATH 9716 do 9717 IFS=$as_save_IFS 9718 test -z "$as_dir" && as_dir=. 9719 for ac_exec_ext in '' $ac_executable_extensions; do 9720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9721 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9723 break 2 9724 fi 9725 done 9726 done 9727 IFS=$as_save_IFS 9728 9729 ;; 9730 esac 9731 fi 9732 TAR=$ac_cv_path_TAR 9733 if test -n "$TAR"; then 9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9735 $as_echo "$TAR" >&6; } 9736 else 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9738 $as_echo "no" >&6; } 9739 fi 9740 9741 9742 test -n "$TAR" && break 9743 done 9744 9745 else 9746 # If it succeeded, then it was overridden by the user. We will use it 9747 # for the tool. 9748 9749 # First remove it from the list of overridden variables, so we can test 9750 # for unknown variables in the end. 9751 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9752 9753 # Check if the provided tool contains a complete path. 9754 tool_specified="$TAR" 9755 tool_basename="${tool_specified##*/}" 9756 if test "x$tool_basename" = "x$tool_specified"; then 9757 # A command without a complete path is provided, search $PATH. 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9759 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9760 # Extract the first word of "$tool_basename", so it can be a program name with args. 9761 set dummy $tool_basename; ac_word=$2 9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9763 $as_echo_n "checking for $ac_word... " >&6; } 9764 if ${ac_cv_path_TAR+:} false; then : 9765 $as_echo_n "(cached) " >&6 9766 else 9767 case $TAR in 9768 [\\/]* | ?:[\\/]*) 9769 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9770 ;; 9771 *) 9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9773 for as_dir in $PATH 9774 do 9775 IFS=$as_save_IFS 9776 test -z "$as_dir" && as_dir=. 9777 for ac_exec_ext in '' $ac_executable_extensions; do 9778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9779 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9781 break 2 9782 fi 9783 done 9784 done 9785 IFS=$as_save_IFS 9786 9787 ;; 9788 esac 9789 fi 9790 TAR=$ac_cv_path_TAR 9791 if test -n "$TAR"; then 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9793 $as_echo "$TAR" >&6; } 9794 else 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9796 $as_echo "no" >&6; } 9797 fi 9798 9799 9800 if test "x$TAR" = x; then 9801 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9802 fi 9803 else 9804 # Otherwise we believe it is a complete path. Use it as it is. 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9806 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9808 $as_echo_n "checking for TAR... " >&6; } 9809 if test ! -x "$tool_specified"; then 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9811 $as_echo "not found" >&6; } 9812 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9813 fi 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9815 $as_echo "$tool_specified" >&6; } 9816 fi 9817 fi 9818 fi 9819 9820 9821 9822 if test "x$TAR" = x; then 9823 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9824 fi 9825 9826 9827 9828 9829 9830 # Publish this variable in the help. 9831 9832 9833 if test "x$TEE" = x; then 9834 # The variable is not set by user, try to locate tool using the code snippet 9835 for ac_prog in tee 9836 do 9837 # Extract the first word of "$ac_prog", so it can be a program name with args. 9838 set dummy $ac_prog; 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_TEE+:} false; then : 9842 $as_echo_n "(cached) " >&6 9843 else 9844 case $TEE in 9845 [\\/]* | ?:[\\/]*) 9846 ac_cv_path_TEE="$TEE" # 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_TEE="$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 TEE=$ac_cv_path_TEE 9868 if test -n "$TEE"; then 9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9870 $as_echo "$TEE" >&6; } 9871 else 9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9873 $as_echo "no" >&6; } 9874 fi 9875 9876 9877 test -n "$TEE" && break 9878 done 9879 9880 else 9881 # The variable is set, but is it from the command line or the environment? 9882 9883 # Try to remove the string !TEE! from our list. 9884 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9885 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9886 # If it failed, the variable was not from the command line. Ignore it, 9887 # but warn the user (except for BASH, which is always set by the calling BASH). 9888 if test "xTEE" != xBASH; then 9889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9890 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9891 fi 9892 # Try to locate tool using the code snippet 9893 for ac_prog in tee 9894 do 9895 # Extract the first word of "$ac_prog", so it can be a program name with args. 9896 set dummy $ac_prog; ac_word=$2 9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9898 $as_echo_n "checking for $ac_word... " >&6; } 9899 if ${ac_cv_path_TEE+:} false; then : 9900 $as_echo_n "(cached) " >&6 9901 else 9902 case $TEE in 9903 [\\/]* | ?:[\\/]*) 9904 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9905 ;; 9906 *) 9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9908 for as_dir in $PATH 9909 do 9910 IFS=$as_save_IFS 9911 test -z "$as_dir" && as_dir=. 9912 for ac_exec_ext in '' $ac_executable_extensions; do 9913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9914 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9916 break 2 9917 fi 9918 done 9919 done 9920 IFS=$as_save_IFS 9921 9922 ;; 9923 esac 9924 fi 9925 TEE=$ac_cv_path_TEE 9926 if test -n "$TEE"; then 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9928 $as_echo "$TEE" >&6; } 9929 else 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9931 $as_echo "no" >&6; } 9932 fi 9933 9934 9935 test -n "$TEE" && break 9936 done 9937 9938 else 9939 # If it succeeded, then it was overridden by the user. We will use it 9940 # for the tool. 9941 9942 # First remove it from the list of overridden variables, so we can test 9943 # for unknown variables in the end. 9944 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9945 9946 # Check if the provided tool contains a complete path. 9947 tool_specified="$TEE" 9948 tool_basename="${tool_specified##*/}" 9949 if test "x$tool_basename" = "x$tool_specified"; then 9950 # A command without a complete path is provided, search $PATH. 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9952 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9953 # Extract the first word of "$tool_basename", so it can be a program name with args. 9954 set dummy $tool_basename; ac_word=$2 9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9956 $as_echo_n "checking for $ac_word... " >&6; } 9957 if ${ac_cv_path_TEE+:} false; then : 9958 $as_echo_n "(cached) " >&6 9959 else 9960 case $TEE in 9961 [\\/]* | ?:[\\/]*) 9962 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9963 ;; 9964 *) 9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9966 for as_dir in $PATH 9967 do 9968 IFS=$as_save_IFS 9969 test -z "$as_dir" && as_dir=. 9970 for ac_exec_ext in '' $ac_executable_extensions; do 9971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9972 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9974 break 2 9975 fi 9976 done 9977 done 9978 IFS=$as_save_IFS 9979 9980 ;; 9981 esac 9982 fi 9983 TEE=$ac_cv_path_TEE 9984 if test -n "$TEE"; then 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9986 $as_echo "$TEE" >&6; } 9987 else 9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9989 $as_echo "no" >&6; } 9990 fi 9991 9992 9993 if test "x$TEE" = x; then 9994 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9995 fi 9996 else 9997 # Otherwise we believe it is a complete path. Use it as it is. 9998 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 9999 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10001 $as_echo_n "checking for TEE... " >&6; } 10002 if test ! -x "$tool_specified"; then 10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10004 $as_echo "not found" >&6; } 10005 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10006 fi 10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10008 $as_echo "$tool_specified" >&6; } 10009 fi 10010 fi 10011 fi 10012 10013 10014 10015 if test "x$TEE" = x; then 10016 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10017 fi 10018 10019 10020 10021 10022 10023 # Publish this variable in the help. 10024 10025 10026 if test "x$TOUCH" = x; then 10027 # The variable is not set by user, try to locate tool using the code snippet 10028 for ac_prog in touch 10029 do 10030 # Extract the first word of "$ac_prog", so it can be a program name with args. 10031 set dummy $ac_prog; ac_word=$2 10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10033 $as_echo_n "checking for $ac_word... " >&6; } 10034 if ${ac_cv_path_TOUCH+:} false; then : 10035 $as_echo_n "(cached) " >&6 10036 else 10037 case $TOUCH in 10038 [\\/]* | ?:[\\/]*) 10039 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10040 ;; 10041 *) 10042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10043 for as_dir in $PATH 10044 do 10045 IFS=$as_save_IFS 10046 test -z "$as_dir" && as_dir=. 10047 for ac_exec_ext in '' $ac_executable_extensions; do 10048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10049 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10051 break 2 10052 fi 10053 done 10054 done 10055 IFS=$as_save_IFS 10056 10057 ;; 10058 esac 10059 fi 10060 TOUCH=$ac_cv_path_TOUCH 10061 if test -n "$TOUCH"; then 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10063 $as_echo "$TOUCH" >&6; } 10064 else 10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10066 $as_echo "no" >&6; } 10067 fi 10068 10069 10070 test -n "$TOUCH" && break 10071 done 10072 10073 else 10074 # The variable is set, but is it from the command line or the environment? 10075 10076 # Try to remove the string !TOUCH! from our list. 10077 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10078 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10079 # If it failed, the variable was not from the command line. Ignore it, 10080 # but warn the user (except for BASH, which is always set by the calling BASH). 10081 if test "xTOUCH" != xBASH; then 10082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10083 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10084 fi 10085 # Try to locate tool using the code snippet 10086 for ac_prog in touch 10087 do 10088 # Extract the first word of "$ac_prog", so it can be a program name with args. 10089 set dummy $ac_prog; ac_word=$2 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10091 $as_echo_n "checking for $ac_word... " >&6; } 10092 if ${ac_cv_path_TOUCH+:} false; then : 10093 $as_echo_n "(cached) " >&6 10094 else 10095 case $TOUCH in 10096 [\\/]* | ?:[\\/]*) 10097 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10098 ;; 10099 *) 10100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10101 for as_dir in $PATH 10102 do 10103 IFS=$as_save_IFS 10104 test -z "$as_dir" && as_dir=. 10105 for ac_exec_ext in '' $ac_executable_extensions; do 10106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10107 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10109 break 2 10110 fi 10111 done 10112 done 10113 IFS=$as_save_IFS 10114 10115 ;; 10116 esac 10117 fi 10118 TOUCH=$ac_cv_path_TOUCH 10119 if test -n "$TOUCH"; then 10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10121 $as_echo "$TOUCH" >&6; } 10122 else 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10124 $as_echo "no" >&6; } 10125 fi 10126 10127 10128 test -n "$TOUCH" && break 10129 done 10130 10131 else 10132 # If it succeeded, then it was overridden by the user. We will use it 10133 # for the tool. 10134 10135 # First remove it from the list of overridden variables, so we can test 10136 # for unknown variables in the end. 10137 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10138 10139 # Check if the provided tool contains a complete path. 10140 tool_specified="$TOUCH" 10141 tool_basename="${tool_specified##*/}" 10142 if test "x$tool_basename" = "x$tool_specified"; then 10143 # A command without a complete path is provided, search $PATH. 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10145 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10146 # Extract the first word of "$tool_basename", so it can be a program name with args. 10147 set dummy $tool_basename; ac_word=$2 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10149 $as_echo_n "checking for $ac_word... " >&6; } 10150 if ${ac_cv_path_TOUCH+:} false; then : 10151 $as_echo_n "(cached) " >&6 10152 else 10153 case $TOUCH in 10154 [\\/]* | ?:[\\/]*) 10155 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10156 ;; 10157 *) 10158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10159 for as_dir in $PATH 10160 do 10161 IFS=$as_save_IFS 10162 test -z "$as_dir" && as_dir=. 10163 for ac_exec_ext in '' $ac_executable_extensions; do 10164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10165 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10167 break 2 10168 fi 10169 done 10170 done 10171 IFS=$as_save_IFS 10172 10173 ;; 10174 esac 10175 fi 10176 TOUCH=$ac_cv_path_TOUCH 10177 if test -n "$TOUCH"; then 10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10179 $as_echo "$TOUCH" >&6; } 10180 else 10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10182 $as_echo "no" >&6; } 10183 fi 10184 10185 10186 if test "x$TOUCH" = x; then 10187 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10188 fi 10189 else 10190 # Otherwise we believe it is a complete path. Use it as it is. 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10192 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10194 $as_echo_n "checking for TOUCH... " >&6; } 10195 if test ! -x "$tool_specified"; then 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10197 $as_echo "not found" >&6; } 10198 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10199 fi 10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10201 $as_echo "$tool_specified" >&6; } 10202 fi 10203 fi 10204 fi 10205 10206 10207 10208 if test "x$TOUCH" = x; then 10209 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10210 fi 10211 10212 10213 10214 10215 10216 # Publish this variable in the help. 10217 10218 10219 if test "x$TR" = x; then 10220 # The variable is not set by user, try to locate tool using the code snippet 10221 for ac_prog in tr 10222 do 10223 # Extract the first word of "$ac_prog", so it can be a program name with args. 10224 set dummy $ac_prog; ac_word=$2 10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10226 $as_echo_n "checking for $ac_word... " >&6; } 10227 if ${ac_cv_path_TR+:} false; then : 10228 $as_echo_n "(cached) " >&6 10229 else 10230 case $TR in 10231 [\\/]* | ?:[\\/]*) 10232 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10233 ;; 10234 *) 10235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10236 for as_dir in $PATH 10237 do 10238 IFS=$as_save_IFS 10239 test -z "$as_dir" && as_dir=. 10240 for ac_exec_ext in '' $ac_executable_extensions; do 10241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10242 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10244 break 2 10245 fi 10246 done 10247 done 10248 IFS=$as_save_IFS 10249 10250 ;; 10251 esac 10252 fi 10253 TR=$ac_cv_path_TR 10254 if test -n "$TR"; then 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10256 $as_echo "$TR" >&6; } 10257 else 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10259 $as_echo "no" >&6; } 10260 fi 10261 10262 10263 test -n "$TR" && break 10264 done 10265 10266 else 10267 # The variable is set, but is it from the command line or the environment? 10268 10269 # Try to remove the string !TR! from our list. 10270 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10271 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10272 # If it failed, the variable was not from the command line. Ignore it, 10273 # but warn the user (except for BASH, which is always set by the calling BASH). 10274 if test "xTR" != xBASH; then 10275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10276 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10277 fi 10278 # Try to locate tool using the code snippet 10279 for ac_prog in tr 10280 do 10281 # Extract the first word of "$ac_prog", so it can be a program name with args. 10282 set dummy $ac_prog; ac_word=$2 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10284 $as_echo_n "checking for $ac_word... " >&6; } 10285 if ${ac_cv_path_TR+:} false; then : 10286 $as_echo_n "(cached) " >&6 10287 else 10288 case $TR in 10289 [\\/]* | ?:[\\/]*) 10290 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10291 ;; 10292 *) 10293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10294 for as_dir in $PATH 10295 do 10296 IFS=$as_save_IFS 10297 test -z "$as_dir" && as_dir=. 10298 for ac_exec_ext in '' $ac_executable_extensions; do 10299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10300 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10302 break 2 10303 fi 10304 done 10305 done 10306 IFS=$as_save_IFS 10307 10308 ;; 10309 esac 10310 fi 10311 TR=$ac_cv_path_TR 10312 if test -n "$TR"; then 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10314 $as_echo "$TR" >&6; } 10315 else 10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10317 $as_echo "no" >&6; } 10318 fi 10319 10320 10321 test -n "$TR" && break 10322 done 10323 10324 else 10325 # If it succeeded, then it was overridden by the user. We will use it 10326 # for the tool. 10327 10328 # First remove it from the list of overridden variables, so we can test 10329 # for unknown variables in the end. 10330 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10331 10332 # Check if the provided tool contains a complete path. 10333 tool_specified="$TR" 10334 tool_basename="${tool_specified##*/}" 10335 if test "x$tool_basename" = "x$tool_specified"; then 10336 # A command without a complete path is provided, search $PATH. 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10338 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10339 # Extract the first word of "$tool_basename", so it can be a program name with args. 10340 set dummy $tool_basename; ac_word=$2 10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10342 $as_echo_n "checking for $ac_word... " >&6; } 10343 if ${ac_cv_path_TR+:} false; then : 10344 $as_echo_n "(cached) " >&6 10345 else 10346 case $TR in 10347 [\\/]* | ?:[\\/]*) 10348 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10349 ;; 10350 *) 10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10352 for as_dir in $PATH 10353 do 10354 IFS=$as_save_IFS 10355 test -z "$as_dir" && as_dir=. 10356 for ac_exec_ext in '' $ac_executable_extensions; do 10357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10358 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10360 break 2 10361 fi 10362 done 10363 done 10364 IFS=$as_save_IFS 10365 10366 ;; 10367 esac 10368 fi 10369 TR=$ac_cv_path_TR 10370 if test -n "$TR"; then 10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10372 $as_echo "$TR" >&6; } 10373 else 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10375 $as_echo "no" >&6; } 10376 fi 10377 10378 10379 if test "x$TR" = x; then 10380 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10381 fi 10382 else 10383 # Otherwise we believe it is a complete path. Use it as it is. 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10385 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10387 $as_echo_n "checking for TR... " >&6; } 10388 if test ! -x "$tool_specified"; then 10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10390 $as_echo "not found" >&6; } 10391 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10392 fi 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10394 $as_echo "$tool_specified" >&6; } 10395 fi 10396 fi 10397 fi 10398 10399 10400 10401 if test "x$TR" = x; then 10402 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10403 fi 10404 10405 10406 10407 10408 10409 # Publish this variable in the help. 10410 10411 10412 if test "x$UNAME" = x; then 10413 # The variable is not set by user, try to locate tool using the code snippet 10414 for ac_prog in uname 10415 do 10416 # Extract the first word of "$ac_prog", so it can be a program name with args. 10417 set dummy $ac_prog; ac_word=$2 10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10419 $as_echo_n "checking for $ac_word... " >&6; } 10420 if ${ac_cv_path_UNAME+:} false; then : 10421 $as_echo_n "(cached) " >&6 10422 else 10423 case $UNAME in 10424 [\\/]* | ?:[\\/]*) 10425 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10426 ;; 10427 *) 10428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10429 for as_dir in $PATH 10430 do 10431 IFS=$as_save_IFS 10432 test -z "$as_dir" && as_dir=. 10433 for ac_exec_ext in '' $ac_executable_extensions; do 10434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10435 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10437 break 2 10438 fi 10439 done 10440 done 10441 IFS=$as_save_IFS 10442 10443 ;; 10444 esac 10445 fi 10446 UNAME=$ac_cv_path_UNAME 10447 if test -n "$UNAME"; then 10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10449 $as_echo "$UNAME" >&6; } 10450 else 10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10452 $as_echo "no" >&6; } 10453 fi 10454 10455 10456 test -n "$UNAME" && break 10457 done 10458 10459 else 10460 # The variable is set, but is it from the command line or the environment? 10461 10462 # Try to remove the string !UNAME! from our list. 10463 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10464 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10465 # If it failed, the variable was not from the command line. Ignore it, 10466 # but warn the user (except for BASH, which is always set by the calling BASH). 10467 if test "xUNAME" != xBASH; then 10468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10469 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10470 fi 10471 # Try to locate tool using the code snippet 10472 for ac_prog in uname 10473 do 10474 # Extract the first word of "$ac_prog", so it can be a program name with args. 10475 set dummy $ac_prog; ac_word=$2 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10477 $as_echo_n "checking for $ac_word... " >&6; } 10478 if ${ac_cv_path_UNAME+:} false; then : 10479 $as_echo_n "(cached) " >&6 10480 else 10481 case $UNAME in 10482 [\\/]* | ?:[\\/]*) 10483 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10484 ;; 10485 *) 10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10487 for as_dir in $PATH 10488 do 10489 IFS=$as_save_IFS 10490 test -z "$as_dir" && as_dir=. 10491 for ac_exec_ext in '' $ac_executable_extensions; do 10492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10493 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10495 break 2 10496 fi 10497 done 10498 done 10499 IFS=$as_save_IFS 10500 10501 ;; 10502 esac 10503 fi 10504 UNAME=$ac_cv_path_UNAME 10505 if test -n "$UNAME"; then 10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10507 $as_echo "$UNAME" >&6; } 10508 else 10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10510 $as_echo "no" >&6; } 10511 fi 10512 10513 10514 test -n "$UNAME" && break 10515 done 10516 10517 else 10518 # If it succeeded, then it was overridden by the user. We will use it 10519 # for the tool. 10520 10521 # First remove it from the list of overridden variables, so we can test 10522 # for unknown variables in the end. 10523 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10524 10525 # Check if the provided tool contains a complete path. 10526 tool_specified="$UNAME" 10527 tool_basename="${tool_specified##*/}" 10528 if test "x$tool_basename" = "x$tool_specified"; then 10529 # A command without a complete path is provided, search $PATH. 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10531 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10532 # Extract the first word of "$tool_basename", so it can be a program name with args. 10533 set dummy $tool_basename; ac_word=$2 10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10535 $as_echo_n "checking for $ac_word... " >&6; } 10536 if ${ac_cv_path_UNAME+:} false; then : 10537 $as_echo_n "(cached) " >&6 10538 else 10539 case $UNAME in 10540 [\\/]* | ?:[\\/]*) 10541 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10542 ;; 10543 *) 10544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10545 for as_dir in $PATH 10546 do 10547 IFS=$as_save_IFS 10548 test -z "$as_dir" && as_dir=. 10549 for ac_exec_ext in '' $ac_executable_extensions; do 10550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10551 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10553 break 2 10554 fi 10555 done 10556 done 10557 IFS=$as_save_IFS 10558 10559 ;; 10560 esac 10561 fi 10562 UNAME=$ac_cv_path_UNAME 10563 if test -n "$UNAME"; then 10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10565 $as_echo "$UNAME" >&6; } 10566 else 10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10568 $as_echo "no" >&6; } 10569 fi 10570 10571 10572 if test "x$UNAME" = x; then 10573 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10574 fi 10575 else 10576 # Otherwise we believe it is a complete path. Use it as it is. 10577 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10578 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10580 $as_echo_n "checking for UNAME... " >&6; } 10581 if test ! -x "$tool_specified"; then 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10583 $as_echo "not found" >&6; } 10584 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10585 fi 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10587 $as_echo "$tool_specified" >&6; } 10588 fi 10589 fi 10590 fi 10591 10592 10593 10594 if test "x$UNAME" = x; then 10595 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10596 fi 10597 10598 10599 10600 10601 10602 # Publish this variable in the help. 10603 10604 10605 if test "x$UNIQ" = x; then 10606 # The variable is not set by user, try to locate tool using the code snippet 10607 for ac_prog in uniq 10608 do 10609 # Extract the first word of "$ac_prog", so it can be a program name with args. 10610 set dummy $ac_prog; ac_word=$2 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10612 $as_echo_n "checking for $ac_word... " >&6; } 10613 if ${ac_cv_path_UNIQ+:} false; then : 10614 $as_echo_n "(cached) " >&6 10615 else 10616 case $UNIQ in 10617 [\\/]* | ?:[\\/]*) 10618 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10619 ;; 10620 *) 10621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10622 for as_dir in $PATH 10623 do 10624 IFS=$as_save_IFS 10625 test -z "$as_dir" && as_dir=. 10626 for ac_exec_ext in '' $ac_executable_extensions; do 10627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10628 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10630 break 2 10631 fi 10632 done 10633 done 10634 IFS=$as_save_IFS 10635 10636 ;; 10637 esac 10638 fi 10639 UNIQ=$ac_cv_path_UNIQ 10640 if test -n "$UNIQ"; then 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10642 $as_echo "$UNIQ" >&6; } 10643 else 10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10645 $as_echo "no" >&6; } 10646 fi 10647 10648 10649 test -n "$UNIQ" && break 10650 done 10651 10652 else 10653 # The variable is set, but is it from the command line or the environment? 10654 10655 # Try to remove the string !UNIQ! from our list. 10656 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10657 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10658 # If it failed, the variable was not from the command line. Ignore it, 10659 # but warn the user (except for BASH, which is always set by the calling BASH). 10660 if test "xUNIQ" != xBASH; then 10661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10662 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10663 fi 10664 # Try to locate tool using the code snippet 10665 for ac_prog in uniq 10666 do 10667 # Extract the first word of "$ac_prog", so it can be a program name with args. 10668 set dummy $ac_prog; ac_word=$2 10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10670 $as_echo_n "checking for $ac_word... " >&6; } 10671 if ${ac_cv_path_UNIQ+:} false; then : 10672 $as_echo_n "(cached) " >&6 10673 else 10674 case $UNIQ in 10675 [\\/]* | ?:[\\/]*) 10676 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10677 ;; 10678 *) 10679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10680 for as_dir in $PATH 10681 do 10682 IFS=$as_save_IFS 10683 test -z "$as_dir" && as_dir=. 10684 for ac_exec_ext in '' $ac_executable_extensions; do 10685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10686 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10688 break 2 10689 fi 10690 done 10691 done 10692 IFS=$as_save_IFS 10693 10694 ;; 10695 esac 10696 fi 10697 UNIQ=$ac_cv_path_UNIQ 10698 if test -n "$UNIQ"; then 10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10700 $as_echo "$UNIQ" >&6; } 10701 else 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10703 $as_echo "no" >&6; } 10704 fi 10705 10706 10707 test -n "$UNIQ" && break 10708 done 10709 10710 else 10711 # If it succeeded, then it was overridden by the user. We will use it 10712 # for the tool. 10713 10714 # First remove it from the list of overridden variables, so we can test 10715 # for unknown variables in the end. 10716 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10717 10718 # Check if the provided tool contains a complete path. 10719 tool_specified="$UNIQ" 10720 tool_basename="${tool_specified##*/}" 10721 if test "x$tool_basename" = "x$tool_specified"; then 10722 # A command without a complete path is provided, search $PATH. 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10724 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10725 # Extract the first word of "$tool_basename", so it can be a program name with args. 10726 set dummy $tool_basename; ac_word=$2 10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10728 $as_echo_n "checking for $ac_word... " >&6; } 10729 if ${ac_cv_path_UNIQ+:} false; then : 10730 $as_echo_n "(cached) " >&6 10731 else 10732 case $UNIQ in 10733 [\\/]* | ?:[\\/]*) 10734 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10735 ;; 10736 *) 10737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10738 for as_dir in $PATH 10739 do 10740 IFS=$as_save_IFS 10741 test -z "$as_dir" && as_dir=. 10742 for ac_exec_ext in '' $ac_executable_extensions; do 10743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10744 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10746 break 2 10747 fi 10748 done 10749 done 10750 IFS=$as_save_IFS 10751 10752 ;; 10753 esac 10754 fi 10755 UNIQ=$ac_cv_path_UNIQ 10756 if test -n "$UNIQ"; then 10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10758 $as_echo "$UNIQ" >&6; } 10759 else 10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10761 $as_echo "no" >&6; } 10762 fi 10763 10764 10765 if test "x$UNIQ" = x; then 10766 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10767 fi 10768 else 10769 # Otherwise we believe it is a complete path. Use it as it is. 10770 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10771 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10773 $as_echo_n "checking for UNIQ... " >&6; } 10774 if test ! -x "$tool_specified"; then 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10776 $as_echo "not found" >&6; } 10777 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10778 fi 10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10780 $as_echo "$tool_specified" >&6; } 10781 fi 10782 fi 10783 fi 10784 10785 10786 10787 if test "x$UNIQ" = x; then 10788 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10789 fi 10790 10791 10792 10793 10794 10795 # Publish this variable in the help. 10796 10797 10798 if test "x$WC" = x; then 10799 # The variable is not set by user, try to locate tool using the code snippet 10800 for ac_prog in wc 10801 do 10802 # Extract the first word of "$ac_prog", so it can be a program name with args. 10803 set dummy $ac_prog; ac_word=$2 10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10805 $as_echo_n "checking for $ac_word... " >&6; } 10806 if ${ac_cv_path_WC+:} false; then : 10807 $as_echo_n "(cached) " >&6 10808 else 10809 case $WC in 10810 [\\/]* | ?:[\\/]*) 10811 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10812 ;; 10813 *) 10814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10815 for as_dir in $PATH 10816 do 10817 IFS=$as_save_IFS 10818 test -z "$as_dir" && as_dir=. 10819 for ac_exec_ext in '' $ac_executable_extensions; do 10820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10821 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10823 break 2 10824 fi 10825 done 10826 done 10827 IFS=$as_save_IFS 10828 10829 ;; 10830 esac 10831 fi 10832 WC=$ac_cv_path_WC 10833 if test -n "$WC"; then 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10835 $as_echo "$WC" >&6; } 10836 else 10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10838 $as_echo "no" >&6; } 10839 fi 10840 10841 10842 test -n "$WC" && break 10843 done 10844 10845 else 10846 # The variable is set, but is it from the command line or the environment? 10847 10848 # Try to remove the string !WC! from our list. 10849 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10850 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10851 # If it failed, the variable was not from the command line. Ignore it, 10852 # but warn the user (except for BASH, which is always set by the calling BASH). 10853 if test "xWC" != xBASH; then 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10855 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10856 fi 10857 # Try to locate tool using the code snippet 10858 for ac_prog in wc 10859 do 10860 # Extract the first word of "$ac_prog", so it can be a program name with args. 10861 set dummy $ac_prog; ac_word=$2 10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10863 $as_echo_n "checking for $ac_word... " >&6; } 10864 if ${ac_cv_path_WC+:} false; then : 10865 $as_echo_n "(cached) " >&6 10866 else 10867 case $WC in 10868 [\\/]* | ?:[\\/]*) 10869 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10870 ;; 10871 *) 10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10873 for as_dir in $PATH 10874 do 10875 IFS=$as_save_IFS 10876 test -z "$as_dir" && as_dir=. 10877 for ac_exec_ext in '' $ac_executable_extensions; do 10878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10879 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10881 break 2 10882 fi 10883 done 10884 done 10885 IFS=$as_save_IFS 10886 10887 ;; 10888 esac 10889 fi 10890 WC=$ac_cv_path_WC 10891 if test -n "$WC"; then 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10893 $as_echo "$WC" >&6; } 10894 else 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10896 $as_echo "no" >&6; } 10897 fi 10898 10899 10900 test -n "$WC" && break 10901 done 10902 10903 else 10904 # If it succeeded, then it was overridden by the user. We will use it 10905 # for the tool. 10906 10907 # First remove it from the list of overridden variables, so we can test 10908 # for unknown variables in the end. 10909 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10910 10911 # Check if the provided tool contains a complete path. 10912 tool_specified="$WC" 10913 tool_basename="${tool_specified##*/}" 10914 if test "x$tool_basename" = "x$tool_specified"; then 10915 # A command without a complete path is provided, search $PATH. 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10917 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10918 # Extract the first word of "$tool_basename", so it can be a program name with args. 10919 set dummy $tool_basename; ac_word=$2 10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10921 $as_echo_n "checking for $ac_word... " >&6; } 10922 if ${ac_cv_path_WC+:} false; then : 10923 $as_echo_n "(cached) " >&6 10924 else 10925 case $WC in 10926 [\\/]* | ?:[\\/]*) 10927 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10928 ;; 10929 *) 10930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10931 for as_dir in $PATH 10932 do 10933 IFS=$as_save_IFS 10934 test -z "$as_dir" && as_dir=. 10935 for ac_exec_ext in '' $ac_executable_extensions; do 10936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10937 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10939 break 2 10940 fi 10941 done 10942 done 10943 IFS=$as_save_IFS 10944 10945 ;; 10946 esac 10947 fi 10948 WC=$ac_cv_path_WC 10949 if test -n "$WC"; then 10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10951 $as_echo "$WC" >&6; } 10952 else 10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10954 $as_echo "no" >&6; } 10955 fi 10956 10957 10958 if test "x$WC" = x; then 10959 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10960 fi 10961 else 10962 # Otherwise we believe it is a complete path. Use it as it is. 10963 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10964 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10966 $as_echo_n "checking for WC... " >&6; } 10967 if test ! -x "$tool_specified"; then 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10969 $as_echo "not found" >&6; } 10970 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10971 fi 10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10973 $as_echo "$tool_specified" >&6; } 10974 fi 10975 fi 10976 fi 10977 10978 10979 10980 if test "x$WC" = x; then 10981 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 10982 fi 10983 10984 10985 10986 10987 10988 # Publish this variable in the help. 10989 10990 10991 if test "x$WHICH" = x; then 10992 # The variable is not set by user, try to locate tool using the code snippet 10993 for ac_prog in which 10994 do 10995 # Extract the first word of "$ac_prog", so it can be a program name with args. 10996 set dummy $ac_prog; ac_word=$2 10997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10998 $as_echo_n "checking for $ac_word... " >&6; } 10999 if ${ac_cv_path_WHICH+:} false; then : 11000 $as_echo_n "(cached) " >&6 11001 else 11002 case $WHICH in 11003 [\\/]* | ?:[\\/]*) 11004 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11005 ;; 11006 *) 11007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11008 for as_dir in $PATH 11009 do 11010 IFS=$as_save_IFS 11011 test -z "$as_dir" && as_dir=. 11012 for ac_exec_ext in '' $ac_executable_extensions; do 11013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11014 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11016 break 2 11017 fi 11018 done 11019 done 11020 IFS=$as_save_IFS 11021 11022 ;; 11023 esac 11024 fi 11025 WHICH=$ac_cv_path_WHICH 11026 if test -n "$WHICH"; then 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11028 $as_echo "$WHICH" >&6; } 11029 else 11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11031 $as_echo "no" >&6; } 11032 fi 11033 11034 11035 test -n "$WHICH" && break 11036 done 11037 11038 else 11039 # The variable is set, but is it from the command line or the environment? 11040 11041 # Try to remove the string !WHICH! from our list. 11042 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11043 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11044 # If it failed, the variable was not from the command line. Ignore it, 11045 # but warn the user (except for BASH, which is always set by the calling BASH). 11046 if test "xWHICH" != xBASH; then 11047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11048 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11049 fi 11050 # Try to locate tool using the code snippet 11051 for ac_prog in which 11052 do 11053 # Extract the first word of "$ac_prog", so it can be a program name with args. 11054 set dummy $ac_prog; ac_word=$2 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11056 $as_echo_n "checking for $ac_word... " >&6; } 11057 if ${ac_cv_path_WHICH+:} false; then : 11058 $as_echo_n "(cached) " >&6 11059 else 11060 case $WHICH in 11061 [\\/]* | ?:[\\/]*) 11062 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11063 ;; 11064 *) 11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11066 for as_dir in $PATH 11067 do 11068 IFS=$as_save_IFS 11069 test -z "$as_dir" && as_dir=. 11070 for ac_exec_ext in '' $ac_executable_extensions; do 11071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11072 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11074 break 2 11075 fi 11076 done 11077 done 11078 IFS=$as_save_IFS 11079 11080 ;; 11081 esac 11082 fi 11083 WHICH=$ac_cv_path_WHICH 11084 if test -n "$WHICH"; then 11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11086 $as_echo "$WHICH" >&6; } 11087 else 11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11089 $as_echo "no" >&6; } 11090 fi 11091 11092 11093 test -n "$WHICH" && break 11094 done 11095 11096 else 11097 # If it succeeded, then it was overridden by the user. We will use it 11098 # for the tool. 11099 11100 # First remove it from the list of overridden variables, so we can test 11101 # for unknown variables in the end. 11102 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11103 11104 # Check if the provided tool contains a complete path. 11105 tool_specified="$WHICH" 11106 tool_basename="${tool_specified##*/}" 11107 if test "x$tool_basename" = "x$tool_specified"; then 11108 # A command without a complete path is provided, search $PATH. 11109 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11110 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11111 # Extract the first word of "$tool_basename", so it can be a program name with args. 11112 set dummy $tool_basename; ac_word=$2 11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11114 $as_echo_n "checking for $ac_word... " >&6; } 11115 if ${ac_cv_path_WHICH+:} false; then : 11116 $as_echo_n "(cached) " >&6 11117 else 11118 case $WHICH in 11119 [\\/]* | ?:[\\/]*) 11120 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11121 ;; 11122 *) 11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11124 for as_dir in $PATH 11125 do 11126 IFS=$as_save_IFS 11127 test -z "$as_dir" && as_dir=. 11128 for ac_exec_ext in '' $ac_executable_extensions; do 11129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11130 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11132 break 2 11133 fi 11134 done 11135 done 11136 IFS=$as_save_IFS 11137 11138 ;; 11139 esac 11140 fi 11141 WHICH=$ac_cv_path_WHICH 11142 if test -n "$WHICH"; then 11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11144 $as_echo "$WHICH" >&6; } 11145 else 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11147 $as_echo "no" >&6; } 11148 fi 11149 11150 11151 if test "x$WHICH" = x; then 11152 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11153 fi 11154 else 11155 # Otherwise we believe it is a complete path. Use it as it is. 11156 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11157 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11159 $as_echo_n "checking for WHICH... " >&6; } 11160 if test ! -x "$tool_specified"; then 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11162 $as_echo "not found" >&6; } 11163 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11164 fi 11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11166 $as_echo "$tool_specified" >&6; } 11167 fi 11168 fi 11169 fi 11170 11171 11172 11173 if test "x$WHICH" = x; then 11174 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11175 fi 11176 11177 11178 11179 11180 11181 # Publish this variable in the help. 11182 11183 11184 if test "x$XARGS" = x; then 11185 # The variable is not set by user, try to locate tool using the code snippet 11186 for ac_prog in xargs 11187 do 11188 # Extract the first word of "$ac_prog", so it can be a program name with args. 11189 set dummy $ac_prog; ac_word=$2 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11191 $as_echo_n "checking for $ac_word... " >&6; } 11192 if ${ac_cv_path_XARGS+:} false; then : 11193 $as_echo_n "(cached) " >&6 11194 else 11195 case $XARGS in 11196 [\\/]* | ?:[\\/]*) 11197 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11198 ;; 11199 *) 11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11201 for as_dir in $PATH 11202 do 11203 IFS=$as_save_IFS 11204 test -z "$as_dir" && as_dir=. 11205 for ac_exec_ext in '' $ac_executable_extensions; do 11206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11207 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11209 break 2 11210 fi 11211 done 11212 done 11213 IFS=$as_save_IFS 11214 11215 ;; 11216 esac 11217 fi 11218 XARGS=$ac_cv_path_XARGS 11219 if test -n "$XARGS"; then 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11221 $as_echo "$XARGS" >&6; } 11222 else 11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11224 $as_echo "no" >&6; } 11225 fi 11226 11227 11228 test -n "$XARGS" && break 11229 done 11230 11231 else 11232 # The variable is set, but is it from the command line or the environment? 11233 11234 # Try to remove the string !XARGS! from our list. 11235 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11236 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11237 # If it failed, the variable was not from the command line. Ignore it, 11238 # but warn the user (except for BASH, which is always set by the calling BASH). 11239 if test "xXARGS" != xBASH; then 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11241 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11242 fi 11243 # Try to locate tool using the code snippet 11244 for ac_prog in xargs 11245 do 11246 # Extract the first word of "$ac_prog", so it can be a program name with args. 11247 set dummy $ac_prog; ac_word=$2 11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11249 $as_echo_n "checking for $ac_word... " >&6; } 11250 if ${ac_cv_path_XARGS+:} false; then : 11251 $as_echo_n "(cached) " >&6 11252 else 11253 case $XARGS in 11254 [\\/]* | ?:[\\/]*) 11255 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11256 ;; 11257 *) 11258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11259 for as_dir in $PATH 11260 do 11261 IFS=$as_save_IFS 11262 test -z "$as_dir" && as_dir=. 11263 for ac_exec_ext in '' $ac_executable_extensions; do 11264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11265 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11267 break 2 11268 fi 11269 done 11270 done 11271 IFS=$as_save_IFS 11272 11273 ;; 11274 esac 11275 fi 11276 XARGS=$ac_cv_path_XARGS 11277 if test -n "$XARGS"; then 11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11279 $as_echo "$XARGS" >&6; } 11280 else 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11282 $as_echo "no" >&6; } 11283 fi 11284 11285 11286 test -n "$XARGS" && break 11287 done 11288 11289 else 11290 # If it succeeded, then it was overridden by the user. We will use it 11291 # for the tool. 11292 11293 # First remove it from the list of overridden variables, so we can test 11294 # for unknown variables in the end. 11295 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11296 11297 # Check if the provided tool contains a complete path. 11298 tool_specified="$XARGS" 11299 tool_basename="${tool_specified##*/}" 11300 if test "x$tool_basename" = "x$tool_specified"; then 11301 # A command without a complete path is provided, search $PATH. 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11303 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11304 # Extract the first word of "$tool_basename", so it can be a program name with args. 11305 set dummy $tool_basename; ac_word=$2 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11307 $as_echo_n "checking for $ac_word... " >&6; } 11308 if ${ac_cv_path_XARGS+:} false; then : 11309 $as_echo_n "(cached) " >&6 11310 else 11311 case $XARGS in 11312 [\\/]* | ?:[\\/]*) 11313 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11314 ;; 11315 *) 11316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11317 for as_dir in $PATH 11318 do 11319 IFS=$as_save_IFS 11320 test -z "$as_dir" && as_dir=. 11321 for ac_exec_ext in '' $ac_executable_extensions; do 11322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11323 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11325 break 2 11326 fi 11327 done 11328 done 11329 IFS=$as_save_IFS 11330 11331 ;; 11332 esac 11333 fi 11334 XARGS=$ac_cv_path_XARGS 11335 if test -n "$XARGS"; then 11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11337 $as_echo "$XARGS" >&6; } 11338 else 11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11340 $as_echo "no" >&6; } 11341 fi 11342 11343 11344 if test "x$XARGS" = x; then 11345 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11346 fi 11347 else 11348 # Otherwise we believe it is a complete path. Use it as it is. 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11350 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11352 $as_echo_n "checking for XARGS... " >&6; } 11353 if test ! -x "$tool_specified"; then 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11355 $as_echo "not found" >&6; } 11356 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11357 fi 11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11359 $as_echo "$tool_specified" >&6; } 11360 fi 11361 fi 11362 fi 11363 11364 11365 11366 if test "x$XARGS" = x; then 11367 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11368 fi 11369 11370 11371 11372 # Then required tools that require some special treatment. 11373 11374 11375 # Publish this variable in the help. 11376 11377 11378 if test "x$AWK" = x; then 11379 # The variable is not set by user, try to locate tool using the code snippet 11380 for ac_prog in gawk mawk nawk awk 11381 do 11382 # Extract the first word of "$ac_prog", so it can be a program name with args. 11383 set dummy $ac_prog; ac_word=$2 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11385 $as_echo_n "checking for $ac_word... " >&6; } 11386 if ${ac_cv_prog_AWK+:} false; then : 11387 $as_echo_n "(cached) " >&6 11388 else 11389 if test -n "$AWK"; then 11390 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11391 else 11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11393 for as_dir in $PATH 11394 do 11395 IFS=$as_save_IFS 11396 test -z "$as_dir" && as_dir=. 11397 for ac_exec_ext in '' $ac_executable_extensions; do 11398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11399 ac_cv_prog_AWK="$ac_prog" 11400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11401 break 2 11402 fi 11403 done 11404 done 11405 IFS=$as_save_IFS 11406 11407 fi 11408 fi 11409 AWK=$ac_cv_prog_AWK 11410 if test -n "$AWK"; then 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11412 $as_echo "$AWK" >&6; } 11413 else 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11415 $as_echo "no" >&6; } 11416 fi 11417 11418 11419 test -n "$AWK" && break 11420 done 11421 11422 else 11423 # The variable is set, but is it from the command line or the environment? 11424 11425 # Try to remove the string !AWK! from our list. 11426 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11427 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11428 # If it failed, the variable was not from the command line. Ignore it, 11429 # but warn the user (except for BASH, which is always set by the calling BASH). 11430 if test "xAWK" != xBASH; then 11431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11432 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11433 fi 11434 # Try to locate tool using the code snippet 11435 for ac_prog in gawk mawk nawk awk 11436 do 11437 # Extract the first word of "$ac_prog", so it can be a program name with args. 11438 set dummy $ac_prog; ac_word=$2 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11440 $as_echo_n "checking for $ac_word... " >&6; } 11441 if ${ac_cv_prog_AWK+:} false; then : 11442 $as_echo_n "(cached) " >&6 11443 else 11444 if test -n "$AWK"; then 11445 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11446 else 11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11448 for as_dir in $PATH 11449 do 11450 IFS=$as_save_IFS 11451 test -z "$as_dir" && as_dir=. 11452 for ac_exec_ext in '' $ac_executable_extensions; do 11453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11454 ac_cv_prog_AWK="$ac_prog" 11455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11456 break 2 11457 fi 11458 done 11459 done 11460 IFS=$as_save_IFS 11461 11462 fi 11463 fi 11464 AWK=$ac_cv_prog_AWK 11465 if test -n "$AWK"; then 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11467 $as_echo "$AWK" >&6; } 11468 else 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11470 $as_echo "no" >&6; } 11471 fi 11472 11473 11474 test -n "$AWK" && break 11475 done 11476 11477 else 11478 # If it succeeded, then it was overridden by the user. We will use it 11479 # for the tool. 11480 11481 # First remove it from the list of overridden variables, so we can test 11482 # for unknown variables in the end. 11483 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11484 11485 # Check if the provided tool contains a complete path. 11486 tool_specified="$AWK" 11487 tool_basename="${tool_specified##*/}" 11488 if test "x$tool_basename" = "x$tool_specified"; then 11489 # A command without a complete path is provided, search $PATH. 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11491 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11492 # Extract the first word of "$tool_basename", so it can be a program name with args. 11493 set dummy $tool_basename; ac_word=$2 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11495 $as_echo_n "checking for $ac_word... " >&6; } 11496 if ${ac_cv_path_AWK+:} false; then : 11497 $as_echo_n "(cached) " >&6 11498 else 11499 case $AWK in 11500 [\\/]* | ?:[\\/]*) 11501 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11502 ;; 11503 *) 11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11505 for as_dir in $PATH 11506 do 11507 IFS=$as_save_IFS 11508 test -z "$as_dir" && as_dir=. 11509 for ac_exec_ext in '' $ac_executable_extensions; do 11510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11511 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11513 break 2 11514 fi 11515 done 11516 done 11517 IFS=$as_save_IFS 11518 11519 ;; 11520 esac 11521 fi 11522 AWK=$ac_cv_path_AWK 11523 if test -n "$AWK"; then 11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11525 $as_echo "$AWK" >&6; } 11526 else 11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11528 $as_echo "no" >&6; } 11529 fi 11530 11531 11532 if test "x$AWK" = x; then 11533 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11534 fi 11535 else 11536 # Otherwise we believe it is a complete path. Use it as it is. 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11538 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11540 $as_echo_n "checking for AWK... " >&6; } 11541 if test ! -x "$tool_specified"; then 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11543 $as_echo "not found" >&6; } 11544 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11545 fi 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11547 $as_echo "$tool_specified" >&6; } 11548 fi 11549 fi 11550 fi 11551 11552 11553 if test "x$AWK" = x; then 11554 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11555 fi 11556 11557 11558 11559 11560 # Publish this variable in the help. 11561 11562 11563 if test "x$GREP" = x; then 11564 # The variable is not set by user, try to locate tool using the code snippet 11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11566 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11567 if ${ac_cv_path_GREP+:} false; then : 11568 $as_echo_n "(cached) " >&6 11569 else 11570 if test -z "$GREP"; then 11571 ac_path_GREP_found=false 11572 # Loop through the user's path and test for each of PROGNAME-LIST 11573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11574 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11575 do 11576 IFS=$as_save_IFS 11577 test -z "$as_dir" && as_dir=. 11578 for ac_prog in grep ggrep; do 11579 for ac_exec_ext in '' $ac_executable_extensions; do 11580 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11581 as_fn_executable_p "$ac_path_GREP" || continue 11582 # Check for GNU ac_path_GREP and select it if it is found. 11583 # Check for GNU $ac_path_GREP 11584 case `"$ac_path_GREP" --version 2>&1` in 11585 *GNU*) 11586 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11587 *) 11588 ac_count=0 11589 $as_echo_n 0123456789 >"conftest.in" 11590 while : 11591 do 11592 cat "conftest.in" "conftest.in" >"conftest.tmp" 11593 mv "conftest.tmp" "conftest.in" 11594 cp "conftest.in" "conftest.nl" 11595 $as_echo 'GREP' >> "conftest.nl" 11596 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11597 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11598 as_fn_arith $ac_count + 1 && ac_count=$as_val 11599 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11600 # Best one so far, save it but keep looking for a better one 11601 ac_cv_path_GREP="$ac_path_GREP" 11602 ac_path_GREP_max=$ac_count 11603 fi 11604 # 10*(2^10) chars as input seems more than enough 11605 test $ac_count -gt 10 && break 11606 done 11607 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11608 esac 11609 11610 $ac_path_GREP_found && break 3 11611 done 11612 done 11613 done 11614 IFS=$as_save_IFS 11615 if test -z "$ac_cv_path_GREP"; then 11616 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11617 fi 11618 else 11619 ac_cv_path_GREP=$GREP 11620 fi 11621 11622 fi 11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11624 $as_echo "$ac_cv_path_GREP" >&6; } 11625 GREP="$ac_cv_path_GREP" 11626 11627 11628 else 11629 # The variable is set, but is it from the command line or the environment? 11630 11631 # Try to remove the string !GREP! from our list. 11632 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11633 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11634 # If it failed, the variable was not from the command line. Ignore it, 11635 # but warn the user (except for BASH, which is always set by the calling BASH). 11636 if test "xGREP" != xBASH; then 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11638 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11639 fi 11640 # Try to locate tool using the code snippet 11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11642 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11643 if ${ac_cv_path_GREP+:} false; then : 11644 $as_echo_n "(cached) " >&6 11645 else 11646 if test -z "$GREP"; then 11647 ac_path_GREP_found=false 11648 # Loop through the user's path and test for each of PROGNAME-LIST 11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11650 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11651 do 11652 IFS=$as_save_IFS 11653 test -z "$as_dir" && as_dir=. 11654 for ac_prog in grep ggrep; do 11655 for ac_exec_ext in '' $ac_executable_extensions; do 11656 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11657 as_fn_executable_p "$ac_path_GREP" || continue 11658 # Check for GNU ac_path_GREP and select it if it is found. 11659 # Check for GNU $ac_path_GREP 11660 case `"$ac_path_GREP" --version 2>&1` in 11661 *GNU*) 11662 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11663 *) 11664 ac_count=0 11665 $as_echo_n 0123456789 >"conftest.in" 11666 while : 11667 do 11668 cat "conftest.in" "conftest.in" >"conftest.tmp" 11669 mv "conftest.tmp" "conftest.in" 11670 cp "conftest.in" "conftest.nl" 11671 $as_echo 'GREP' >> "conftest.nl" 11672 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11674 as_fn_arith $ac_count + 1 && ac_count=$as_val 11675 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11676 # Best one so far, save it but keep looking for a better one 11677 ac_cv_path_GREP="$ac_path_GREP" 11678 ac_path_GREP_max=$ac_count 11679 fi 11680 # 10*(2^10) chars as input seems more than enough 11681 test $ac_count -gt 10 && break 11682 done 11683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11684 esac 11685 11686 $ac_path_GREP_found && break 3 11687 done 11688 done 11689 done 11690 IFS=$as_save_IFS 11691 if test -z "$ac_cv_path_GREP"; then 11692 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11693 fi 11694 else 11695 ac_cv_path_GREP=$GREP 11696 fi 11697 11698 fi 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11700 $as_echo "$ac_cv_path_GREP" >&6; } 11701 GREP="$ac_cv_path_GREP" 11702 11703 11704 else 11705 # If it succeeded, then it was overridden by the user. We will use it 11706 # for the tool. 11707 11708 # First remove it from the list of overridden variables, so we can test 11709 # for unknown variables in the end. 11710 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11711 11712 # Check if the provided tool contains a complete path. 11713 tool_specified="$GREP" 11714 tool_basename="${tool_specified##*/}" 11715 if test "x$tool_basename" = "x$tool_specified"; then 11716 # A command without a complete path is provided, search $PATH. 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11718 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11719 # Extract the first word of "$tool_basename", so it can be a program name with args. 11720 set dummy $tool_basename; ac_word=$2 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11722 $as_echo_n "checking for $ac_word... " >&6; } 11723 if ${ac_cv_path_GREP+:} false; then : 11724 $as_echo_n "(cached) " >&6 11725 else 11726 case $GREP in 11727 [\\/]* | ?:[\\/]*) 11728 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11729 ;; 11730 *) 11731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11732 for as_dir in $PATH 11733 do 11734 IFS=$as_save_IFS 11735 test -z "$as_dir" && as_dir=. 11736 for ac_exec_ext in '' $ac_executable_extensions; do 11737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11738 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11740 break 2 11741 fi 11742 done 11743 done 11744 IFS=$as_save_IFS 11745 11746 ;; 11747 esac 11748 fi 11749 GREP=$ac_cv_path_GREP 11750 if test -n "$GREP"; then 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11752 $as_echo "$GREP" >&6; } 11753 else 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11755 $as_echo "no" >&6; } 11756 fi 11757 11758 11759 if test "x$GREP" = x; then 11760 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11761 fi 11762 else 11763 # Otherwise we believe it is a complete path. Use it as it is. 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11765 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11767 $as_echo_n "checking for GREP... " >&6; } 11768 if test ! -x "$tool_specified"; then 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11770 $as_echo "not found" >&6; } 11771 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11772 fi 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11774 $as_echo "$tool_specified" >&6; } 11775 fi 11776 fi 11777 fi 11778 11779 11780 if test "x$GREP" = x; then 11781 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11782 fi 11783 11784 11785 11786 11787 # Publish this variable in the help. 11788 11789 11790 if test "x$EGREP" = x; then 11791 # The variable is not set by user, try to locate tool using the code snippet 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11793 $as_echo_n "checking for egrep... " >&6; } 11794 if ${ac_cv_path_EGREP+:} false; then : 11795 $as_echo_n "(cached) " >&6 11796 else 11797 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11798 then ac_cv_path_EGREP="$GREP -E" 11799 else 11800 if test -z "$EGREP"; then 11801 ac_path_EGREP_found=false 11802 # Loop through the user's path and test for each of PROGNAME-LIST 11803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11804 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11805 do 11806 IFS=$as_save_IFS 11807 test -z "$as_dir" && as_dir=. 11808 for ac_prog in egrep; do 11809 for ac_exec_ext in '' $ac_executable_extensions; do 11810 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11811 as_fn_executable_p "$ac_path_EGREP" || continue 11812 # Check for GNU ac_path_EGREP and select it if it is found. 11813 # Check for GNU $ac_path_EGREP 11814 case `"$ac_path_EGREP" --version 2>&1` in 11815 *GNU*) 11816 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11817 *) 11818 ac_count=0 11819 $as_echo_n 0123456789 >"conftest.in" 11820 while : 11821 do 11822 cat "conftest.in" "conftest.in" >"conftest.tmp" 11823 mv "conftest.tmp" "conftest.in" 11824 cp "conftest.in" "conftest.nl" 11825 $as_echo 'EGREP' >> "conftest.nl" 11826 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11828 as_fn_arith $ac_count + 1 && ac_count=$as_val 11829 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11830 # Best one so far, save it but keep looking for a better one 11831 ac_cv_path_EGREP="$ac_path_EGREP" 11832 ac_path_EGREP_max=$ac_count 11833 fi 11834 # 10*(2^10) chars as input seems more than enough 11835 test $ac_count -gt 10 && break 11836 done 11837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11838 esac 11839 11840 $ac_path_EGREP_found && break 3 11841 done 11842 done 11843 done 11844 IFS=$as_save_IFS 11845 if test -z "$ac_cv_path_EGREP"; then 11846 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11847 fi 11848 else 11849 ac_cv_path_EGREP=$EGREP 11850 fi 11851 11852 fi 11853 fi 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11855 $as_echo "$ac_cv_path_EGREP" >&6; } 11856 EGREP="$ac_cv_path_EGREP" 11857 11858 11859 else 11860 # The variable is set, but is it from the command line or the environment? 11861 11862 # Try to remove the string !EGREP! from our list. 11863 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11864 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11865 # If it failed, the variable was not from the command line. Ignore it, 11866 # but warn the user (except for BASH, which is always set by the calling BASH). 11867 if test "xEGREP" != xBASH; then 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11869 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11870 fi 11871 # Try to locate tool using the code snippet 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11873 $as_echo_n "checking for egrep... " >&6; } 11874 if ${ac_cv_path_EGREP+:} false; then : 11875 $as_echo_n "(cached) " >&6 11876 else 11877 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11878 then ac_cv_path_EGREP="$GREP -E" 11879 else 11880 if test -z "$EGREP"; then 11881 ac_path_EGREP_found=false 11882 # Loop through the user's path and test for each of PROGNAME-LIST 11883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11884 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11885 do 11886 IFS=$as_save_IFS 11887 test -z "$as_dir" && as_dir=. 11888 for ac_prog in egrep; do 11889 for ac_exec_ext in '' $ac_executable_extensions; do 11890 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11891 as_fn_executable_p "$ac_path_EGREP" || continue 11892 # Check for GNU ac_path_EGREP and select it if it is found. 11893 # Check for GNU $ac_path_EGREP 11894 case `"$ac_path_EGREP" --version 2>&1` in 11895 *GNU*) 11896 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11897 *) 11898 ac_count=0 11899 $as_echo_n 0123456789 >"conftest.in" 11900 while : 11901 do 11902 cat "conftest.in" "conftest.in" >"conftest.tmp" 11903 mv "conftest.tmp" "conftest.in" 11904 cp "conftest.in" "conftest.nl" 11905 $as_echo 'EGREP' >> "conftest.nl" 11906 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11908 as_fn_arith $ac_count + 1 && ac_count=$as_val 11909 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11910 # Best one so far, save it but keep looking for a better one 11911 ac_cv_path_EGREP="$ac_path_EGREP" 11912 ac_path_EGREP_max=$ac_count 11913 fi 11914 # 10*(2^10) chars as input seems more than enough 11915 test $ac_count -gt 10 && break 11916 done 11917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11918 esac 11919 11920 $ac_path_EGREP_found && break 3 11921 done 11922 done 11923 done 11924 IFS=$as_save_IFS 11925 if test -z "$ac_cv_path_EGREP"; then 11926 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11927 fi 11928 else 11929 ac_cv_path_EGREP=$EGREP 11930 fi 11931 11932 fi 11933 fi 11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11935 $as_echo "$ac_cv_path_EGREP" >&6; } 11936 EGREP="$ac_cv_path_EGREP" 11937 11938 11939 else 11940 # If it succeeded, then it was overridden by the user. We will use it 11941 # for the tool. 11942 11943 # First remove it from the list of overridden variables, so we can test 11944 # for unknown variables in the end. 11945 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11946 11947 # Check if the provided tool contains a complete path. 11948 tool_specified="$EGREP" 11949 tool_basename="${tool_specified##*/}" 11950 if test "x$tool_basename" = "x$tool_specified"; then 11951 # A command without a complete path is provided, search $PATH. 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11953 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11954 # Extract the first word of "$tool_basename", so it can be a program name with args. 11955 set dummy $tool_basename; ac_word=$2 11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11957 $as_echo_n "checking for $ac_word... " >&6; } 11958 if ${ac_cv_path_EGREP+:} false; then : 11959 $as_echo_n "(cached) " >&6 11960 else 11961 case $EGREP in 11962 [\\/]* | ?:[\\/]*) 11963 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11964 ;; 11965 *) 11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11967 for as_dir in $PATH 11968 do 11969 IFS=$as_save_IFS 11970 test -z "$as_dir" && as_dir=. 11971 for ac_exec_ext in '' $ac_executable_extensions; do 11972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11973 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11975 break 2 11976 fi 11977 done 11978 done 11979 IFS=$as_save_IFS 11980 11981 ;; 11982 esac 11983 fi 11984 EGREP=$ac_cv_path_EGREP 11985 if test -n "$EGREP"; then 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 11987 $as_echo "$EGREP" >&6; } 11988 else 11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11990 $as_echo "no" >&6; } 11991 fi 11992 11993 11994 if test "x$EGREP" = x; then 11995 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11996 fi 11997 else 11998 # Otherwise we believe it is a complete path. Use it as it is. 11999 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12000 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12002 $as_echo_n "checking for EGREP... " >&6; } 12003 if test ! -x "$tool_specified"; then 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12005 $as_echo "not found" >&6; } 12006 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12007 fi 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12009 $as_echo "$tool_specified" >&6; } 12010 fi 12011 fi 12012 fi 12013 12014 12015 if test "x$EGREP" = x; then 12016 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12017 fi 12018 12019 12020 12021 12022 # Publish this variable in the help. 12023 12024 12025 if test "x$FGREP" = x; then 12026 # The variable is not set by user, try to locate tool using the code snippet 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12028 $as_echo_n "checking for fgrep... " >&6; } 12029 if ${ac_cv_path_FGREP+:} false; then : 12030 $as_echo_n "(cached) " >&6 12031 else 12032 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12033 then ac_cv_path_FGREP="$GREP -F" 12034 else 12035 if test -z "$FGREP"; then 12036 ac_path_FGREP_found=false 12037 # Loop through the user's path and test for each of PROGNAME-LIST 12038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12039 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12040 do 12041 IFS=$as_save_IFS 12042 test -z "$as_dir" && as_dir=. 12043 for ac_prog in fgrep; do 12044 for ac_exec_ext in '' $ac_executable_extensions; do 12045 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12046 as_fn_executable_p "$ac_path_FGREP" || continue 12047 # Check for GNU ac_path_FGREP and select it if it is found. 12048 # Check for GNU $ac_path_FGREP 12049 case `"$ac_path_FGREP" --version 2>&1` in 12050 *GNU*) 12051 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12052 *) 12053 ac_count=0 12054 $as_echo_n 0123456789 >"conftest.in" 12055 while : 12056 do 12057 cat "conftest.in" "conftest.in" >"conftest.tmp" 12058 mv "conftest.tmp" "conftest.in" 12059 cp "conftest.in" "conftest.nl" 12060 $as_echo 'FGREP' >> "conftest.nl" 12061 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12062 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12063 as_fn_arith $ac_count + 1 && ac_count=$as_val 12064 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12065 # Best one so far, save it but keep looking for a better one 12066 ac_cv_path_FGREP="$ac_path_FGREP" 12067 ac_path_FGREP_max=$ac_count 12068 fi 12069 # 10*(2^10) chars as input seems more than enough 12070 test $ac_count -gt 10 && break 12071 done 12072 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12073 esac 12074 12075 $ac_path_FGREP_found && break 3 12076 done 12077 done 12078 done 12079 IFS=$as_save_IFS 12080 if test -z "$ac_cv_path_FGREP"; then 12081 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12082 fi 12083 else 12084 ac_cv_path_FGREP=$FGREP 12085 fi 12086 12087 fi 12088 fi 12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12090 $as_echo "$ac_cv_path_FGREP" >&6; } 12091 FGREP="$ac_cv_path_FGREP" 12092 12093 12094 else 12095 # The variable is set, but is it from the command line or the environment? 12096 12097 # Try to remove the string !FGREP! from our list. 12098 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12099 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12100 # If it failed, the variable was not from the command line. Ignore it, 12101 # but warn the user (except for BASH, which is always set by the calling BASH). 12102 if test "xFGREP" != xBASH; then 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12104 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12105 fi 12106 # Try to locate tool using the code snippet 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12108 $as_echo_n "checking for fgrep... " >&6; } 12109 if ${ac_cv_path_FGREP+:} false; then : 12110 $as_echo_n "(cached) " >&6 12111 else 12112 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12113 then ac_cv_path_FGREP="$GREP -F" 12114 else 12115 if test -z "$FGREP"; then 12116 ac_path_FGREP_found=false 12117 # Loop through the user's path and test for each of PROGNAME-LIST 12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12120 do 12121 IFS=$as_save_IFS 12122 test -z "$as_dir" && as_dir=. 12123 for ac_prog in fgrep; do 12124 for ac_exec_ext in '' $ac_executable_extensions; do 12125 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12126 as_fn_executable_p "$ac_path_FGREP" || continue 12127 # Check for GNU ac_path_FGREP and select it if it is found. 12128 # Check for GNU $ac_path_FGREP 12129 case `"$ac_path_FGREP" --version 2>&1` in 12130 *GNU*) 12131 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12132 *) 12133 ac_count=0 12134 $as_echo_n 0123456789 >"conftest.in" 12135 while : 12136 do 12137 cat "conftest.in" "conftest.in" >"conftest.tmp" 12138 mv "conftest.tmp" "conftest.in" 12139 cp "conftest.in" "conftest.nl" 12140 $as_echo 'FGREP' >> "conftest.nl" 12141 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12143 as_fn_arith $ac_count + 1 && ac_count=$as_val 12144 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12145 # Best one so far, save it but keep looking for a better one 12146 ac_cv_path_FGREP="$ac_path_FGREP" 12147 ac_path_FGREP_max=$ac_count 12148 fi 12149 # 10*(2^10) chars as input seems more than enough 12150 test $ac_count -gt 10 && break 12151 done 12152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12153 esac 12154 12155 $ac_path_FGREP_found && break 3 12156 done 12157 done 12158 done 12159 IFS=$as_save_IFS 12160 if test -z "$ac_cv_path_FGREP"; then 12161 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12162 fi 12163 else 12164 ac_cv_path_FGREP=$FGREP 12165 fi 12166 12167 fi 12168 fi 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12170 $as_echo "$ac_cv_path_FGREP" >&6; } 12171 FGREP="$ac_cv_path_FGREP" 12172 12173 12174 else 12175 # If it succeeded, then it was overridden by the user. We will use it 12176 # for the tool. 12177 12178 # First remove it from the list of overridden variables, so we can test 12179 # for unknown variables in the end. 12180 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12181 12182 # Check if the provided tool contains a complete path. 12183 tool_specified="$FGREP" 12184 tool_basename="${tool_specified##*/}" 12185 if test "x$tool_basename" = "x$tool_specified"; then 12186 # A command without a complete path is provided, search $PATH. 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12188 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12189 # Extract the first word of "$tool_basename", so it can be a program name with args. 12190 set dummy $tool_basename; ac_word=$2 12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12192 $as_echo_n "checking for $ac_word... " >&6; } 12193 if ${ac_cv_path_FGREP+:} false; then : 12194 $as_echo_n "(cached) " >&6 12195 else 12196 case $FGREP in 12197 [\\/]* | ?:[\\/]*) 12198 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12199 ;; 12200 *) 12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12202 for as_dir in $PATH 12203 do 12204 IFS=$as_save_IFS 12205 test -z "$as_dir" && as_dir=. 12206 for ac_exec_ext in '' $ac_executable_extensions; do 12207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12208 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12210 break 2 12211 fi 12212 done 12213 done 12214 IFS=$as_save_IFS 12215 12216 ;; 12217 esac 12218 fi 12219 FGREP=$ac_cv_path_FGREP 12220 if test -n "$FGREP"; then 12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12222 $as_echo "$FGREP" >&6; } 12223 else 12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12225 $as_echo "no" >&6; } 12226 fi 12227 12228 12229 if test "x$FGREP" = x; then 12230 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12231 fi 12232 else 12233 # Otherwise we believe it is a complete path. Use it as it is. 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12235 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12237 $as_echo_n "checking for FGREP... " >&6; } 12238 if test ! -x "$tool_specified"; then 12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12240 $as_echo "not found" >&6; } 12241 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12242 fi 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12244 $as_echo "$tool_specified" >&6; } 12245 fi 12246 fi 12247 fi 12248 12249 12250 if test "x$FGREP" = x; then 12251 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12252 fi 12253 12254 12255 12256 12257 # Publish this variable in the help. 12258 12259 12260 if test "x$SED" = x; then 12261 # The variable is not set by user, try to locate tool using the code snippet 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12263 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12264 if ${ac_cv_path_SED+:} false; then : 12265 $as_echo_n "(cached) " >&6 12266 else 12267 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12268 for ac_i in 1 2 3 4 5 6 7; do 12269 ac_script="$ac_script$as_nl$ac_script" 12270 done 12271 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12272 { ac_script=; unset ac_script;} 12273 if test -z "$SED"; then 12274 ac_path_SED_found=false 12275 # Loop through the user's path and test for each of PROGNAME-LIST 12276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12277 for as_dir in $PATH 12278 do 12279 IFS=$as_save_IFS 12280 test -z "$as_dir" && as_dir=. 12281 for ac_prog in sed gsed; do 12282 for ac_exec_ext in '' $ac_executable_extensions; do 12283 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12284 as_fn_executable_p "$ac_path_SED" || continue 12285 # Check for GNU ac_path_SED and select it if it is found. 12286 # Check for GNU $ac_path_SED 12287 case `"$ac_path_SED" --version 2>&1` in 12288 *GNU*) 12289 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12290 *) 12291 ac_count=0 12292 $as_echo_n 0123456789 >"conftest.in" 12293 while : 12294 do 12295 cat "conftest.in" "conftest.in" >"conftest.tmp" 12296 mv "conftest.tmp" "conftest.in" 12297 cp "conftest.in" "conftest.nl" 12298 $as_echo '' >> "conftest.nl" 12299 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12301 as_fn_arith $ac_count + 1 && ac_count=$as_val 12302 if test $ac_count -gt ${ac_path_SED_max-0}; then 12303 # Best one so far, save it but keep looking for a better one 12304 ac_cv_path_SED="$ac_path_SED" 12305 ac_path_SED_max=$ac_count 12306 fi 12307 # 10*(2^10) chars as input seems more than enough 12308 test $ac_count -gt 10 && break 12309 done 12310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12311 esac 12312 12313 $ac_path_SED_found && break 3 12314 done 12315 done 12316 done 12317 IFS=$as_save_IFS 12318 if test -z "$ac_cv_path_SED"; then 12319 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12320 fi 12321 else 12322 ac_cv_path_SED=$SED 12323 fi 12324 12325 fi 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12327 $as_echo "$ac_cv_path_SED" >&6; } 12328 SED="$ac_cv_path_SED" 12329 rm -f conftest.sed 12330 12331 else 12332 # The variable is set, but is it from the command line or the environment? 12333 12334 # Try to remove the string !SED! from our list. 12335 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12336 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12337 # If it failed, the variable was not from the command line. Ignore it, 12338 # but warn the user (except for BASH, which is always set by the calling BASH). 12339 if test "xSED" != xBASH; then 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12341 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12342 fi 12343 # Try to locate tool using the code snippet 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12345 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12346 if ${ac_cv_path_SED+:} false; then : 12347 $as_echo_n "(cached) " >&6 12348 else 12349 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12350 for ac_i in 1 2 3 4 5 6 7; do 12351 ac_script="$ac_script$as_nl$ac_script" 12352 done 12353 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12354 { ac_script=; unset ac_script;} 12355 if test -z "$SED"; then 12356 ac_path_SED_found=false 12357 # Loop through the user's path and test for each of PROGNAME-LIST 12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12359 for as_dir in $PATH 12360 do 12361 IFS=$as_save_IFS 12362 test -z "$as_dir" && as_dir=. 12363 for ac_prog in sed gsed; do 12364 for ac_exec_ext in '' $ac_executable_extensions; do 12365 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12366 as_fn_executable_p "$ac_path_SED" || continue 12367 # Check for GNU ac_path_SED and select it if it is found. 12368 # Check for GNU $ac_path_SED 12369 case `"$ac_path_SED" --version 2>&1` in 12370 *GNU*) 12371 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12372 *) 12373 ac_count=0 12374 $as_echo_n 0123456789 >"conftest.in" 12375 while : 12376 do 12377 cat "conftest.in" "conftest.in" >"conftest.tmp" 12378 mv "conftest.tmp" "conftest.in" 12379 cp "conftest.in" "conftest.nl" 12380 $as_echo '' >> "conftest.nl" 12381 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12383 as_fn_arith $ac_count + 1 && ac_count=$as_val 12384 if test $ac_count -gt ${ac_path_SED_max-0}; then 12385 # Best one so far, save it but keep looking for a better one 12386 ac_cv_path_SED="$ac_path_SED" 12387 ac_path_SED_max=$ac_count 12388 fi 12389 # 10*(2^10) chars as input seems more than enough 12390 test $ac_count -gt 10 && break 12391 done 12392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12393 esac 12394 12395 $ac_path_SED_found && break 3 12396 done 12397 done 12398 done 12399 IFS=$as_save_IFS 12400 if test -z "$ac_cv_path_SED"; then 12401 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12402 fi 12403 else 12404 ac_cv_path_SED=$SED 12405 fi 12406 12407 fi 12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12409 $as_echo "$ac_cv_path_SED" >&6; } 12410 SED="$ac_cv_path_SED" 12411 rm -f conftest.sed 12412 12413 else 12414 # If it succeeded, then it was overridden by the user. We will use it 12415 # for the tool. 12416 12417 # First remove it from the list of overridden variables, so we can test 12418 # for unknown variables in the end. 12419 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12420 12421 # Check if the provided tool contains a complete path. 12422 tool_specified="$SED" 12423 tool_basename="${tool_specified##*/}" 12424 if test "x$tool_basename" = "x$tool_specified"; then 12425 # A command without a complete path is provided, search $PATH. 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12427 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12428 # Extract the first word of "$tool_basename", so it can be a program name with args. 12429 set dummy $tool_basename; ac_word=$2 12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12431 $as_echo_n "checking for $ac_word... " >&6; } 12432 if ${ac_cv_path_SED+:} false; then : 12433 $as_echo_n "(cached) " >&6 12434 else 12435 case $SED in 12436 [\\/]* | ?:[\\/]*) 12437 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12438 ;; 12439 *) 12440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12441 for as_dir in $PATH 12442 do 12443 IFS=$as_save_IFS 12444 test -z "$as_dir" && as_dir=. 12445 for ac_exec_ext in '' $ac_executable_extensions; do 12446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12447 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12449 break 2 12450 fi 12451 done 12452 done 12453 IFS=$as_save_IFS 12454 12455 ;; 12456 esac 12457 fi 12458 SED=$ac_cv_path_SED 12459 if test -n "$SED"; then 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12461 $as_echo "$SED" >&6; } 12462 else 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12464 $as_echo "no" >&6; } 12465 fi 12466 12467 12468 if test "x$SED" = x; then 12469 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12470 fi 12471 else 12472 # Otherwise we believe it is a complete path. Use it as it is. 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12474 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12476 $as_echo_n "checking for SED... " >&6; } 12477 if test ! -x "$tool_specified"; then 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12479 $as_echo "not found" >&6; } 12480 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12481 fi 12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12483 $as_echo "$tool_specified" >&6; } 12484 fi 12485 fi 12486 fi 12487 12488 12489 if test "x$SED" = x; then 12490 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12491 fi 12492 12493 12494 12495 # Always force rm. 12496 RM="$RM -f" 12497 12498 # pwd behaves differently on various platforms and some don't support the -L flag. 12499 # Always use the bash builtin pwd to get uniform behavior. 12500 THEPWDCMD=pwd 12501 12502 # These are not required on all platforms 12503 12504 12505 # Publish this variable in the help. 12506 12507 12508 if test "x$CYGPATH" = x; then 12509 # The variable is not set by user, try to locate tool using the code snippet 12510 for ac_prog in cygpath 12511 do 12512 # Extract the first word of "$ac_prog", so it can be a program name with args. 12513 set dummy $ac_prog; ac_word=$2 12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12515 $as_echo_n "checking for $ac_word... " >&6; } 12516 if ${ac_cv_path_CYGPATH+:} false; then : 12517 $as_echo_n "(cached) " >&6 12518 else 12519 case $CYGPATH in 12520 [\\/]* | ?:[\\/]*) 12521 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12522 ;; 12523 *) 12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12525 for as_dir in $PATH 12526 do 12527 IFS=$as_save_IFS 12528 test -z "$as_dir" && as_dir=. 12529 for ac_exec_ext in '' $ac_executable_extensions; do 12530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12531 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12533 break 2 12534 fi 12535 done 12536 done 12537 IFS=$as_save_IFS 12538 12539 ;; 12540 esac 12541 fi 12542 CYGPATH=$ac_cv_path_CYGPATH 12543 if test -n "$CYGPATH"; then 12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12545 $as_echo "$CYGPATH" >&6; } 12546 else 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12548 $as_echo "no" >&6; } 12549 fi 12550 12551 12552 test -n "$CYGPATH" && break 12553 done 12554 12555 else 12556 # The variable is set, but is it from the command line or the environment? 12557 12558 # Try to remove the string !CYGPATH! from our list. 12559 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12560 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12561 # If it failed, the variable was not from the command line. Ignore it, 12562 # but warn the user (except for BASH, which is always set by the calling BASH). 12563 if test "xCYGPATH" != xBASH; then 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12565 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12566 fi 12567 # Try to locate tool using the code snippet 12568 for ac_prog in cygpath 12569 do 12570 # Extract the first word of "$ac_prog", so it can be a program name with args. 12571 set dummy $ac_prog; ac_word=$2 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12573 $as_echo_n "checking for $ac_word... " >&6; } 12574 if ${ac_cv_path_CYGPATH+:} false; then : 12575 $as_echo_n "(cached) " >&6 12576 else 12577 case $CYGPATH in 12578 [\\/]* | ?:[\\/]*) 12579 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12580 ;; 12581 *) 12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12583 for as_dir in $PATH 12584 do 12585 IFS=$as_save_IFS 12586 test -z "$as_dir" && as_dir=. 12587 for ac_exec_ext in '' $ac_executable_extensions; do 12588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12589 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12591 break 2 12592 fi 12593 done 12594 done 12595 IFS=$as_save_IFS 12596 12597 ;; 12598 esac 12599 fi 12600 CYGPATH=$ac_cv_path_CYGPATH 12601 if test -n "$CYGPATH"; then 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12603 $as_echo "$CYGPATH" >&6; } 12604 else 12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12606 $as_echo "no" >&6; } 12607 fi 12608 12609 12610 test -n "$CYGPATH" && break 12611 done 12612 12613 else 12614 # If it succeeded, then it was overridden by the user. We will use it 12615 # for the tool. 12616 12617 # First remove it from the list of overridden variables, so we can test 12618 # for unknown variables in the end. 12619 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12620 12621 # Check if the provided tool contains a complete path. 12622 tool_specified="$CYGPATH" 12623 tool_basename="${tool_specified##*/}" 12624 if test "x$tool_basename" = "x$tool_specified"; then 12625 # A command without a complete path is provided, search $PATH. 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12627 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12628 # Extract the first word of "$tool_basename", so it can be a program name with args. 12629 set dummy $tool_basename; ac_word=$2 12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12631 $as_echo_n "checking for $ac_word... " >&6; } 12632 if ${ac_cv_path_CYGPATH+:} false; then : 12633 $as_echo_n "(cached) " >&6 12634 else 12635 case $CYGPATH in 12636 [\\/]* | ?:[\\/]*) 12637 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12638 ;; 12639 *) 12640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12641 for as_dir in $PATH 12642 do 12643 IFS=$as_save_IFS 12644 test -z "$as_dir" && as_dir=. 12645 for ac_exec_ext in '' $ac_executable_extensions; do 12646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12647 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12649 break 2 12650 fi 12651 done 12652 done 12653 IFS=$as_save_IFS 12654 12655 ;; 12656 esac 12657 fi 12658 CYGPATH=$ac_cv_path_CYGPATH 12659 if test -n "$CYGPATH"; then 12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12661 $as_echo "$CYGPATH" >&6; } 12662 else 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12664 $as_echo "no" >&6; } 12665 fi 12666 12667 12668 if test "x$CYGPATH" = x; then 12669 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12670 fi 12671 else 12672 # Otherwise we believe it is a complete path. Use it as it is. 12673 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12674 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12676 $as_echo_n "checking for CYGPATH... " >&6; } 12677 if test ! -x "$tool_specified"; then 12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12679 $as_echo "not found" >&6; } 12680 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12681 fi 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12683 $as_echo "$tool_specified" >&6; } 12684 fi 12685 fi 12686 fi 12687 12688 12689 12690 12691 # Publish this variable in the help. 12692 12693 12694 if test "x$READLINK" = x; then 12695 # The variable is not set by user, try to locate tool using the code snippet 12696 for ac_prog in greadlink readlink 12697 do 12698 # Extract the first word of "$ac_prog", so it can be a program name with args. 12699 set dummy $ac_prog; ac_word=$2 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12701 $as_echo_n "checking for $ac_word... " >&6; } 12702 if ${ac_cv_path_READLINK+:} false; then : 12703 $as_echo_n "(cached) " >&6 12704 else 12705 case $READLINK in 12706 [\\/]* | ?:[\\/]*) 12707 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12708 ;; 12709 *) 12710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12711 for as_dir in $PATH 12712 do 12713 IFS=$as_save_IFS 12714 test -z "$as_dir" && as_dir=. 12715 for ac_exec_ext in '' $ac_executable_extensions; do 12716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12717 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12719 break 2 12720 fi 12721 done 12722 done 12723 IFS=$as_save_IFS 12724 12725 ;; 12726 esac 12727 fi 12728 READLINK=$ac_cv_path_READLINK 12729 if test -n "$READLINK"; then 12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12731 $as_echo "$READLINK" >&6; } 12732 else 12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12734 $as_echo "no" >&6; } 12735 fi 12736 12737 12738 test -n "$READLINK" && break 12739 done 12740 12741 else 12742 # The variable is set, but is it from the command line or the environment? 12743 12744 # Try to remove the string !READLINK! from our list. 12745 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12746 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12747 # If it failed, the variable was not from the command line. Ignore it, 12748 # but warn the user (except for BASH, which is always set by the calling BASH). 12749 if test "xREADLINK" != xBASH; then 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12751 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12752 fi 12753 # Try to locate tool using the code snippet 12754 for ac_prog in greadlink readlink 12755 do 12756 # Extract the first word of "$ac_prog", so it can be a program name with args. 12757 set dummy $ac_prog; ac_word=$2 12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12759 $as_echo_n "checking for $ac_word... " >&6; } 12760 if ${ac_cv_path_READLINK+:} false; then : 12761 $as_echo_n "(cached) " >&6 12762 else 12763 case $READLINK in 12764 [\\/]* | ?:[\\/]*) 12765 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12766 ;; 12767 *) 12768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12769 for as_dir in $PATH 12770 do 12771 IFS=$as_save_IFS 12772 test -z "$as_dir" && as_dir=. 12773 for ac_exec_ext in '' $ac_executable_extensions; do 12774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12775 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12777 break 2 12778 fi 12779 done 12780 done 12781 IFS=$as_save_IFS 12782 12783 ;; 12784 esac 12785 fi 12786 READLINK=$ac_cv_path_READLINK 12787 if test -n "$READLINK"; then 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12789 $as_echo "$READLINK" >&6; } 12790 else 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12792 $as_echo "no" >&6; } 12793 fi 12794 12795 12796 test -n "$READLINK" && break 12797 done 12798 12799 else 12800 # If it succeeded, then it was overridden by the user. We will use it 12801 # for the tool. 12802 12803 # First remove it from the list of overridden variables, so we can test 12804 # for unknown variables in the end. 12805 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12806 12807 # Check if the provided tool contains a complete path. 12808 tool_specified="$READLINK" 12809 tool_basename="${tool_specified##*/}" 12810 if test "x$tool_basename" = "x$tool_specified"; then 12811 # A command without a complete path is provided, search $PATH. 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12813 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12814 # Extract the first word of "$tool_basename", so it can be a program name with args. 12815 set dummy $tool_basename; ac_word=$2 12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12817 $as_echo_n "checking for $ac_word... " >&6; } 12818 if ${ac_cv_path_READLINK+:} false; then : 12819 $as_echo_n "(cached) " >&6 12820 else 12821 case $READLINK in 12822 [\\/]* | ?:[\\/]*) 12823 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12824 ;; 12825 *) 12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12827 for as_dir in $PATH 12828 do 12829 IFS=$as_save_IFS 12830 test -z "$as_dir" && as_dir=. 12831 for ac_exec_ext in '' $ac_executable_extensions; do 12832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12833 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12835 break 2 12836 fi 12837 done 12838 done 12839 IFS=$as_save_IFS 12840 12841 ;; 12842 esac 12843 fi 12844 READLINK=$ac_cv_path_READLINK 12845 if test -n "$READLINK"; then 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12847 $as_echo "$READLINK" >&6; } 12848 else 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12850 $as_echo "no" >&6; } 12851 fi 12852 12853 12854 if test "x$READLINK" = x; then 12855 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12856 fi 12857 else 12858 # Otherwise we believe it is a complete path. Use it as it is. 12859 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12860 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12862 $as_echo_n "checking for READLINK... " >&6; } 12863 if test ! -x "$tool_specified"; then 12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12865 $as_echo "not found" >&6; } 12866 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12867 fi 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12869 $as_echo "$tool_specified" >&6; } 12870 fi 12871 fi 12872 fi 12873 12874 12875 12876 12877 # Publish this variable in the help. 12878 12879 12880 if test "x$DF" = x; then 12881 # The variable is not set by user, try to locate tool using the code snippet 12882 for ac_prog in df 12883 do 12884 # Extract the first word of "$ac_prog", so it can be a program name with args. 12885 set dummy $ac_prog; ac_word=$2 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12887 $as_echo_n "checking for $ac_word... " >&6; } 12888 if ${ac_cv_path_DF+:} false; then : 12889 $as_echo_n "(cached) " >&6 12890 else 12891 case $DF in 12892 [\\/]* | ?:[\\/]*) 12893 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12894 ;; 12895 *) 12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12897 for as_dir in $PATH 12898 do 12899 IFS=$as_save_IFS 12900 test -z "$as_dir" && as_dir=. 12901 for ac_exec_ext in '' $ac_executable_extensions; do 12902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12903 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12905 break 2 12906 fi 12907 done 12908 done 12909 IFS=$as_save_IFS 12910 12911 ;; 12912 esac 12913 fi 12914 DF=$ac_cv_path_DF 12915 if test -n "$DF"; then 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12917 $as_echo "$DF" >&6; } 12918 else 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12920 $as_echo "no" >&6; } 12921 fi 12922 12923 12924 test -n "$DF" && break 12925 done 12926 12927 else 12928 # The variable is set, but is it from the command line or the environment? 12929 12930 # Try to remove the string !DF! from our list. 12931 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12932 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12933 # If it failed, the variable was not from the command line. Ignore it, 12934 # but warn the user (except for BASH, which is always set by the calling BASH). 12935 if test "xDF" != xBASH; then 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12937 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12938 fi 12939 # Try to locate tool using the code snippet 12940 for ac_prog in df 12941 do 12942 # Extract the first word of "$ac_prog", so it can be a program name with args. 12943 set dummy $ac_prog; ac_word=$2 12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12945 $as_echo_n "checking for $ac_word... " >&6; } 12946 if ${ac_cv_path_DF+:} false; then : 12947 $as_echo_n "(cached) " >&6 12948 else 12949 case $DF in 12950 [\\/]* | ?:[\\/]*) 12951 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12952 ;; 12953 *) 12954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12955 for as_dir in $PATH 12956 do 12957 IFS=$as_save_IFS 12958 test -z "$as_dir" && as_dir=. 12959 for ac_exec_ext in '' $ac_executable_extensions; do 12960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12961 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12963 break 2 12964 fi 12965 done 12966 done 12967 IFS=$as_save_IFS 12968 12969 ;; 12970 esac 12971 fi 12972 DF=$ac_cv_path_DF 12973 if test -n "$DF"; then 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12975 $as_echo "$DF" >&6; } 12976 else 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12978 $as_echo "no" >&6; } 12979 fi 12980 12981 12982 test -n "$DF" && break 12983 done 12984 12985 else 12986 # If it succeeded, then it was overridden by the user. We will use it 12987 # for the tool. 12988 12989 # First remove it from the list of overridden variables, so we can test 12990 # for unknown variables in the end. 12991 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12992 12993 # Check if the provided tool contains a complete path. 12994 tool_specified="$DF" 12995 tool_basename="${tool_specified##*/}" 12996 if test "x$tool_basename" = "x$tool_specified"; then 12997 # A command without a complete path is provided, search $PATH. 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 12999 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13000 # Extract the first word of "$tool_basename", so it can be a program name with args. 13001 set dummy $tool_basename; ac_word=$2 13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13003 $as_echo_n "checking for $ac_word... " >&6; } 13004 if ${ac_cv_path_DF+:} false; then : 13005 $as_echo_n "(cached) " >&6 13006 else 13007 case $DF in 13008 [\\/]* | ?:[\\/]*) 13009 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13010 ;; 13011 *) 13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13013 for as_dir in $PATH 13014 do 13015 IFS=$as_save_IFS 13016 test -z "$as_dir" && as_dir=. 13017 for ac_exec_ext in '' $ac_executable_extensions; do 13018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13019 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13021 break 2 13022 fi 13023 done 13024 done 13025 IFS=$as_save_IFS 13026 13027 ;; 13028 esac 13029 fi 13030 DF=$ac_cv_path_DF 13031 if test -n "$DF"; then 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13033 $as_echo "$DF" >&6; } 13034 else 13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13036 $as_echo "no" >&6; } 13037 fi 13038 13039 13040 if test "x$DF" = x; then 13041 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13042 fi 13043 else 13044 # Otherwise we believe it is a complete path. Use it as it is. 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13046 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13048 $as_echo_n "checking for DF... " >&6; } 13049 if test ! -x "$tool_specified"; then 13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13051 $as_echo "not found" >&6; } 13052 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13053 fi 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13055 $as_echo "$tool_specified" >&6; } 13056 fi 13057 fi 13058 fi 13059 13060 13061 13062 13063 # Publish this variable in the help. 13064 13065 13066 if test "x$SETFILE" = x; then 13067 # The variable is not set by user, try to locate tool using the code snippet 13068 for ac_prog in SetFile 13069 do 13070 # Extract the first word of "$ac_prog", so it can be a program name with args. 13071 set dummy $ac_prog; ac_word=$2 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13073 $as_echo_n "checking for $ac_word... " >&6; } 13074 if ${ac_cv_path_SETFILE+:} false; then : 13075 $as_echo_n "(cached) " >&6 13076 else 13077 case $SETFILE in 13078 [\\/]* | ?:[\\/]*) 13079 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13080 ;; 13081 *) 13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13083 for as_dir in $PATH 13084 do 13085 IFS=$as_save_IFS 13086 test -z "$as_dir" && as_dir=. 13087 for ac_exec_ext in '' $ac_executable_extensions; do 13088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13089 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13091 break 2 13092 fi 13093 done 13094 done 13095 IFS=$as_save_IFS 13096 13097 ;; 13098 esac 13099 fi 13100 SETFILE=$ac_cv_path_SETFILE 13101 if test -n "$SETFILE"; then 13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13103 $as_echo "$SETFILE" >&6; } 13104 else 13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13106 $as_echo "no" >&6; } 13107 fi 13108 13109 13110 test -n "$SETFILE" && break 13111 done 13112 13113 else 13114 # The variable is set, but is it from the command line or the environment? 13115 13116 # Try to remove the string !SETFILE! from our list. 13117 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13118 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13119 # If it failed, the variable was not from the command line. Ignore it, 13120 # but warn the user (except for BASH, which is always set by the calling BASH). 13121 if test "xSETFILE" != xBASH; then 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13123 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13124 fi 13125 # Try to locate tool using the code snippet 13126 for ac_prog in SetFile 13127 do 13128 # Extract the first word of "$ac_prog", so it can be a program name with args. 13129 set dummy $ac_prog; ac_word=$2 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13131 $as_echo_n "checking for $ac_word... " >&6; } 13132 if ${ac_cv_path_SETFILE+:} false; then : 13133 $as_echo_n "(cached) " >&6 13134 else 13135 case $SETFILE in 13136 [\\/]* | ?:[\\/]*) 13137 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13138 ;; 13139 *) 13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13141 for as_dir in $PATH 13142 do 13143 IFS=$as_save_IFS 13144 test -z "$as_dir" && as_dir=. 13145 for ac_exec_ext in '' $ac_executable_extensions; do 13146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13147 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13149 break 2 13150 fi 13151 done 13152 done 13153 IFS=$as_save_IFS 13154 13155 ;; 13156 esac 13157 fi 13158 SETFILE=$ac_cv_path_SETFILE 13159 if test -n "$SETFILE"; then 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13161 $as_echo "$SETFILE" >&6; } 13162 else 13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13164 $as_echo "no" >&6; } 13165 fi 13166 13167 13168 test -n "$SETFILE" && break 13169 done 13170 13171 else 13172 # If it succeeded, then it was overridden by the user. We will use it 13173 # for the tool. 13174 13175 # First remove it from the list of overridden variables, so we can test 13176 # for unknown variables in the end. 13177 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13178 13179 # Check if the provided tool contains a complete path. 13180 tool_specified="$SETFILE" 13181 tool_basename="${tool_specified##*/}" 13182 if test "x$tool_basename" = "x$tool_specified"; then 13183 # A command without a complete path is provided, search $PATH. 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13185 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13186 # Extract the first word of "$tool_basename", so it can be a program name with args. 13187 set dummy $tool_basename; ac_word=$2 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13189 $as_echo_n "checking for $ac_word... " >&6; } 13190 if ${ac_cv_path_SETFILE+:} false; then : 13191 $as_echo_n "(cached) " >&6 13192 else 13193 case $SETFILE in 13194 [\\/]* | ?:[\\/]*) 13195 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13196 ;; 13197 *) 13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13199 for as_dir in $PATH 13200 do 13201 IFS=$as_save_IFS 13202 test -z "$as_dir" && as_dir=. 13203 for ac_exec_ext in '' $ac_executable_extensions; do 13204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13205 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13207 break 2 13208 fi 13209 done 13210 done 13211 IFS=$as_save_IFS 13212 13213 ;; 13214 esac 13215 fi 13216 SETFILE=$ac_cv_path_SETFILE 13217 if test -n "$SETFILE"; then 13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13219 $as_echo "$SETFILE" >&6; } 13220 else 13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13222 $as_echo "no" >&6; } 13223 fi 13224 13225 13226 if test "x$SETFILE" = x; then 13227 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13228 fi 13229 else 13230 # Otherwise we believe it is a complete path. Use it as it is. 13231 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13232 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13234 $as_echo_n "checking for SETFILE... " >&6; } 13235 if test ! -x "$tool_specified"; then 13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13237 $as_echo "not found" >&6; } 13238 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13239 fi 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13241 $as_echo "$tool_specified" >&6; } 13242 fi 13243 fi 13244 fi 13245 13246 13247 13248 13249 # Publish this variable in the help. 13250 13251 13252 if test "x$CPIO" = x; then 13253 # The variable is not set by user, try to locate tool using the code snippet 13254 for ac_prog in cpio bsdcpio 13255 do 13256 # Extract the first word of "$ac_prog", so it can be a program name with args. 13257 set dummy $ac_prog; ac_word=$2 13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13259 $as_echo_n "checking for $ac_word... " >&6; } 13260 if ${ac_cv_path_CPIO+:} false; then : 13261 $as_echo_n "(cached) " >&6 13262 else 13263 case $CPIO in 13264 [\\/]* | ?:[\\/]*) 13265 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13266 ;; 13267 *) 13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13269 for as_dir in $PATH 13270 do 13271 IFS=$as_save_IFS 13272 test -z "$as_dir" && as_dir=. 13273 for ac_exec_ext in '' $ac_executable_extensions; do 13274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13275 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13277 break 2 13278 fi 13279 done 13280 done 13281 IFS=$as_save_IFS 13282 13283 ;; 13284 esac 13285 fi 13286 CPIO=$ac_cv_path_CPIO 13287 if test -n "$CPIO"; then 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13289 $as_echo "$CPIO" >&6; } 13290 else 13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13292 $as_echo "no" >&6; } 13293 fi 13294 13295 13296 test -n "$CPIO" && break 13297 done 13298 13299 else 13300 # The variable is set, but is it from the command line or the environment? 13301 13302 # Try to remove the string !CPIO! from our list. 13303 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13304 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13305 # If it failed, the variable was not from the command line. Ignore it, 13306 # but warn the user (except for BASH, which is always set by the calling BASH). 13307 if test "xCPIO" != xBASH; then 13308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13309 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13310 fi 13311 # Try to locate tool using the code snippet 13312 for ac_prog in cpio bsdcpio 13313 do 13314 # Extract the first word of "$ac_prog", so it can be a program name with args. 13315 set dummy $ac_prog; ac_word=$2 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13317 $as_echo_n "checking for $ac_word... " >&6; } 13318 if ${ac_cv_path_CPIO+:} false; then : 13319 $as_echo_n "(cached) " >&6 13320 else 13321 case $CPIO in 13322 [\\/]* | ?:[\\/]*) 13323 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13324 ;; 13325 *) 13326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13327 for as_dir in $PATH 13328 do 13329 IFS=$as_save_IFS 13330 test -z "$as_dir" && as_dir=. 13331 for ac_exec_ext in '' $ac_executable_extensions; do 13332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13333 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13335 break 2 13336 fi 13337 done 13338 done 13339 IFS=$as_save_IFS 13340 13341 ;; 13342 esac 13343 fi 13344 CPIO=$ac_cv_path_CPIO 13345 if test -n "$CPIO"; then 13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13347 $as_echo "$CPIO" >&6; } 13348 else 13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13350 $as_echo "no" >&6; } 13351 fi 13352 13353 13354 test -n "$CPIO" && break 13355 done 13356 13357 else 13358 # If it succeeded, then it was overridden by the user. We will use it 13359 # for the tool. 13360 13361 # First remove it from the list of overridden variables, so we can test 13362 # for unknown variables in the end. 13363 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13364 13365 # Check if the provided tool contains a complete path. 13366 tool_specified="$CPIO" 13367 tool_basename="${tool_specified##*/}" 13368 if test "x$tool_basename" = "x$tool_specified"; then 13369 # A command without a complete path is provided, search $PATH. 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13371 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13372 # Extract the first word of "$tool_basename", so it can be a program name with args. 13373 set dummy $tool_basename; ac_word=$2 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13375 $as_echo_n "checking for $ac_word... " >&6; } 13376 if ${ac_cv_path_CPIO+:} false; then : 13377 $as_echo_n "(cached) " >&6 13378 else 13379 case $CPIO in 13380 [\\/]* | ?:[\\/]*) 13381 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13382 ;; 13383 *) 13384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13385 for as_dir in $PATH 13386 do 13387 IFS=$as_save_IFS 13388 test -z "$as_dir" && as_dir=. 13389 for ac_exec_ext in '' $ac_executable_extensions; do 13390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13391 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13393 break 2 13394 fi 13395 done 13396 done 13397 IFS=$as_save_IFS 13398 13399 ;; 13400 esac 13401 fi 13402 CPIO=$ac_cv_path_CPIO 13403 if test -n "$CPIO"; then 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13405 $as_echo "$CPIO" >&6; } 13406 else 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13408 $as_echo "no" >&6; } 13409 fi 13410 13411 13412 if test "x$CPIO" = x; then 13413 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13414 fi 13415 else 13416 # Otherwise we believe it is a complete path. Use it as it is. 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13418 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13420 $as_echo_n "checking for CPIO... " >&6; } 13421 if test ! -x "$tool_specified"; then 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13423 $as_echo "not found" >&6; } 13424 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13425 fi 13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13427 $as_echo "$tool_specified" >&6; } 13428 fi 13429 fi 13430 fi 13431 13432 13433 13434 13435 # Now we can determine OpenJDK build and target platforms. This is required to 13436 # have early on. 13437 # Make sure we can run config.sub. 13438 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13439 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13440 13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13442 $as_echo_n "checking build system type... " >&6; } 13443 if ${ac_cv_build+:} false; then : 13444 $as_echo_n "(cached) " >&6 13445 else 13446 ac_build_alias=$build_alias 13447 test "x$ac_build_alias" = x && 13448 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13449 test "x$ac_build_alias" = x && 13450 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13451 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13453 13454 fi 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13456 $as_echo "$ac_cv_build" >&6; } 13457 case $ac_cv_build in 13458 *-*-*) ;; 13459 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13460 esac 13461 build=$ac_cv_build 13462 ac_save_IFS=$IFS; IFS='-' 13463 set x $ac_cv_build 13464 shift 13465 build_cpu=$1 13466 build_vendor=$2 13467 shift; shift 13468 # Remember, the first character of IFS is used to create $*, 13469 # except with old shells: 13470 build_os=$* 13471 IFS=$ac_save_IFS 13472 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13473 13474 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13476 $as_echo_n "checking host system type... " >&6; } 13477 if ${ac_cv_host+:} false; then : 13478 $as_echo_n "(cached) " >&6 13479 else 13480 if test "x$host_alias" = x; then 13481 ac_cv_host=$ac_cv_build 13482 else 13483 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13485 fi 13486 13487 fi 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13489 $as_echo "$ac_cv_host" >&6; } 13490 case $ac_cv_host in 13491 *-*-*) ;; 13492 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13493 esac 13494 host=$ac_cv_host 13495 ac_save_IFS=$IFS; IFS='-' 13496 set x $ac_cv_host 13497 shift 13498 host_cpu=$1 13499 host_vendor=$2 13500 shift; shift 13501 # Remember, the first character of IFS is used to create $*, 13502 # except with old shells: 13503 host_os=$* 13504 IFS=$ac_save_IFS 13505 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13506 13507 13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13509 $as_echo_n "checking target system type... " >&6; } 13510 if ${ac_cv_target+:} false; then : 13511 $as_echo_n "(cached) " >&6 13512 else 13513 if test "x$target_alias" = x; then 13514 ac_cv_target=$ac_cv_host 13515 else 13516 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13517 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13518 fi 13519 13520 fi 13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13522 $as_echo "$ac_cv_target" >&6; } 13523 case $ac_cv_target in 13524 *-*-*) ;; 13525 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13526 esac 13527 target=$ac_cv_target 13528 ac_save_IFS=$IFS; IFS='-' 13529 set x $ac_cv_target 13530 shift 13531 target_cpu=$1 13532 target_vendor=$2 13533 shift; shift 13534 # Remember, the first character of IFS is used to create $*, 13535 # except with old shells: 13536 target_os=$* 13537 IFS=$ac_save_IFS 13538 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13539 13540 13541 # The aliases save the names the user supplied, while $host etc. 13542 # will get canonicalized. 13543 test -n "$target_alias" && 13544 test "$program_prefix$program_suffix$program_transform_name" = \ 13545 NONENONEs,x,x, && 13546 program_prefix=${target_alias}- 13547 13548 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13549 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13550 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13551 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13552 # to use the configure naming style. 13553 13554 13555 13556 13557 13558 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13559 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13560 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13561 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13562 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13563 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13564 13565 13566 13567 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13568 13569 case "$build_os" in 13570 *linux*) 13571 VAR_OS=linux 13572 VAR_OS_TYPE=unix 13573 ;; 13574 *solaris*) 13575 VAR_OS=solaris 13576 VAR_OS_TYPE=unix 13577 ;; 13578 *darwin*) 13579 VAR_OS=macosx 13580 VAR_OS_TYPE=unix 13581 ;; 13582 *bsd*) 13583 VAR_OS=bsd 13584 VAR_OS_TYPE=unix 13585 ;; 13586 *cygwin*) 13587 VAR_OS=windows 13588 VAR_OS_ENV=windows.cygwin 13589 ;; 13590 *mingw*) 13591 VAR_OS=windows 13592 VAR_OS_ENV=windows.msys 13593 ;; 13594 *aix*) 13595 VAR_OS=aix 13596 VAR_OS_TYPE=unix 13597 ;; 13598 *) 13599 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13600 ;; 13601 esac 13602 13603 13604 # First argument is the cpu name from the trip/quad 13605 case "$build_cpu" in 13606 x86_64) 13607 VAR_CPU=x86_64 13608 VAR_CPU_ARCH=x86 13609 VAR_CPU_BITS=64 13610 VAR_CPU_ENDIAN=little 13611 ;; 13612 i?86) 13613 VAR_CPU=x86 13614 VAR_CPU_ARCH=x86 13615 VAR_CPU_BITS=32 13616 VAR_CPU_ENDIAN=little 13617 ;; 13618 arm*) 13619 VAR_CPU=arm 13620 VAR_CPU_ARCH=arm 13621 VAR_CPU_BITS=32 13622 VAR_CPU_ENDIAN=little 13623 ;; 13624 aarch64) 13625 VAR_CPU=aarch64 13626 VAR_CPU_ARCH=aarch64 13627 VAR_CPU_BITS=64 13628 VAR_CPU_ENDIAN=little 13629 ;; 13630 powerpc) 13631 VAR_CPU=ppc 13632 VAR_CPU_ARCH=ppc 13633 VAR_CPU_BITS=32 13634 VAR_CPU_ENDIAN=big 13635 ;; 13636 powerpc64) 13637 VAR_CPU=ppc64 13638 VAR_CPU_ARCH=ppc 13639 VAR_CPU_BITS=64 13640 VAR_CPU_ENDIAN=big 13641 ;; 13642 powerpc64le) 13643 VAR_CPU=ppc64 13644 VAR_CPU_ARCH=ppc 13645 VAR_CPU_BITS=64 13646 VAR_CPU_ENDIAN=little 13647 ;; 13648 s390) 13649 VAR_CPU=s390 13650 VAR_CPU_ARCH=s390 13651 VAR_CPU_BITS=32 13652 VAR_CPU_ENDIAN=big 13653 ;; 13654 s390x) 13655 VAR_CPU=s390x 13656 VAR_CPU_ARCH=s390 13657 VAR_CPU_BITS=64 13658 VAR_CPU_ENDIAN=big 13659 ;; 13660 sparc) 13661 VAR_CPU=sparc 13662 VAR_CPU_ARCH=sparc 13663 VAR_CPU_BITS=32 13664 VAR_CPU_ENDIAN=big 13665 ;; 13666 sparcv9|sparc64) 13667 VAR_CPU=sparcv9 13668 VAR_CPU_ARCH=sparc 13669 VAR_CPU_BITS=64 13670 VAR_CPU_ENDIAN=big 13671 ;; 13672 *) 13673 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13674 ;; 13675 esac 13676 13677 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13678 OPENJDK_BUILD_OS="$VAR_OS" 13679 if test "x$VAR_OS_TYPE" != x; then 13680 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 13681 else 13682 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 13683 fi 13684 if test "x$VAR_OS_ENV" != x; then 13685 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13686 else 13687 OPENJDK_BUILD_OS_ENV="$VAR_OS" 13688 fi 13689 OPENJDK_BUILD_CPU="$VAR_CPU" 13690 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13691 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13692 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13693 13694 13695 13696 13697 13698 13699 13700 13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13702 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13704 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13705 13706 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13707 13708 case "$host_os" in 13709 *linux*) 13710 VAR_OS=linux 13711 VAR_OS_TYPE=unix 13712 ;; 13713 *solaris*) 13714 VAR_OS=solaris 13715 VAR_OS_TYPE=unix 13716 ;; 13717 *darwin*) 13718 VAR_OS=macosx 13719 VAR_OS_TYPE=unix 13720 ;; 13721 *bsd*) 13722 VAR_OS=bsd 13723 VAR_OS_TYPE=unix 13724 ;; 13725 *cygwin*) 13726 VAR_OS=windows 13727 VAR_OS_ENV=windows.cygwin 13728 ;; 13729 *mingw*) 13730 VAR_OS=windows 13731 VAR_OS_ENV=windows.msys 13732 ;; 13733 *aix*) 13734 VAR_OS=aix 13735 VAR_OS_TYPE=unix 13736 ;; 13737 *) 13738 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13739 ;; 13740 esac 13741 13742 13743 # First argument is the cpu name from the trip/quad 13744 case "$host_cpu" in 13745 x86_64) 13746 VAR_CPU=x86_64 13747 VAR_CPU_ARCH=x86 13748 VAR_CPU_BITS=64 13749 VAR_CPU_ENDIAN=little 13750 ;; 13751 i?86) 13752 VAR_CPU=x86 13753 VAR_CPU_ARCH=x86 13754 VAR_CPU_BITS=32 13755 VAR_CPU_ENDIAN=little 13756 ;; 13757 arm*) 13758 VAR_CPU=arm 13759 VAR_CPU_ARCH=arm 13760 VAR_CPU_BITS=32 13761 VAR_CPU_ENDIAN=little 13762 ;; 13763 aarch64) 13764 VAR_CPU=aarch64 13765 VAR_CPU_ARCH=aarch64 13766 VAR_CPU_BITS=64 13767 VAR_CPU_ENDIAN=little 13768 ;; 13769 powerpc) 13770 VAR_CPU=ppc 13771 VAR_CPU_ARCH=ppc 13772 VAR_CPU_BITS=32 13773 VAR_CPU_ENDIAN=big 13774 ;; 13775 powerpc64) 13776 VAR_CPU=ppc64 13777 VAR_CPU_ARCH=ppc 13778 VAR_CPU_BITS=64 13779 VAR_CPU_ENDIAN=big 13780 ;; 13781 powerpc64le) 13782 VAR_CPU=ppc64 13783 VAR_CPU_ARCH=ppc 13784 VAR_CPU_BITS=64 13785 VAR_CPU_ENDIAN=little 13786 ;; 13787 s390) 13788 VAR_CPU=s390 13789 VAR_CPU_ARCH=s390 13790 VAR_CPU_BITS=32 13791 VAR_CPU_ENDIAN=big 13792 ;; 13793 s390x) 13794 VAR_CPU=s390x 13795 VAR_CPU_ARCH=s390 13796 VAR_CPU_BITS=64 13797 VAR_CPU_ENDIAN=big 13798 ;; 13799 sparc) 13800 VAR_CPU=sparc 13801 VAR_CPU_ARCH=sparc 13802 VAR_CPU_BITS=32 13803 VAR_CPU_ENDIAN=big 13804 ;; 13805 sparcv9|sparc64) 13806 VAR_CPU=sparcv9 13807 VAR_CPU_ARCH=sparc 13808 VAR_CPU_BITS=64 13809 VAR_CPU_ENDIAN=big 13810 ;; 13811 *) 13812 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13813 ;; 13814 esac 13815 13816 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13817 OPENJDK_TARGET_OS="$VAR_OS" 13818 if test "x$VAR_OS_TYPE" != x; then 13819 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 13820 else 13821 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 13822 fi 13823 if test "x$VAR_OS_ENV" != x; then 13824 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13825 else 13826 OPENJDK_TARGET_OS_ENV="$VAR_OS" 13827 fi 13828 OPENJDK_TARGET_CPU="$VAR_CPU" 13829 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13830 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13831 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13832 13833 13834 13835 13836 13837 13838 13839 13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13841 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13843 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13844 13845 13846 13847 # Check whether --with-target-bits was given. 13848 if test "${with_target_bits+set}" = set; then : 13849 withval=$with_target_bits; 13850 fi 13851 13852 13853 # We have three types of compiles: 13854 # native == normal compilation, target system == build system 13855 # cross == traditional cross compilation, target system != build system; special toolchain needed 13856 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13857 # 13858 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13859 # We're doing a proper cross-compilation 13860 COMPILE_TYPE="cross" 13861 else 13862 COMPILE_TYPE="native" 13863 fi 13864 13865 if test "x$with_target_bits" != x; then 13866 if test "x$COMPILE_TYPE" = "xcross"; then 13867 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13868 fi 13869 13870 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13871 # A reduced build is requested 13872 COMPILE_TYPE="reduced" 13873 OPENJDK_TARGET_CPU_BITS=32 13874 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13875 OPENJDK_TARGET_CPU=x86 13876 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13877 OPENJDK_TARGET_CPU=sparc 13878 else 13879 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13880 fi 13881 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13882 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 13883 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13885 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13886 else 13887 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13888 fi 13889 fi 13890 13891 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13893 $as_echo_n "checking compilation type... " >&6; } 13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13895 $as_echo "$COMPILE_TYPE" >&6; } 13896 13897 13898 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13899 REQUIRED_OS_NAME=SunOS 13900 REQUIRED_OS_VERSION=5.10 13901 fi 13902 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13903 REQUIRED_OS_NAME=Linux 13904 REQUIRED_OS_VERSION=2.6 13905 fi 13906 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13907 REQUIRED_OS_NAME=Windows 13908 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13909 REQUIRED_OS_VERSION=5.2 13910 else 13911 REQUIRED_OS_VERSION=5.1 13912 fi 13913 fi 13914 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13915 REQUIRED_OS_NAME=Darwin 13916 REQUIRED_OS_VERSION=11.2 13917 fi 13918 13919 13920 13921 13922 13923 # Also store the legacy naming of the cpu. 13924 # Ie i586 and amd64 instead of x86 and x86_64 13925 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13926 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13927 OPENJDK_TARGET_CPU_LEGACY="i586" 13928 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13929 # On all platforms except MacOSX replace x86_64 with amd64. 13930 OPENJDK_TARGET_CPU_LEGACY="amd64" 13931 fi 13932 13933 13934 # And the second legacy naming of the cpu. 13935 # Ie i386 and amd64 instead of x86 and x86_64. 13936 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13937 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13938 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13939 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13940 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13941 fi 13942 13943 13944 # This is the name of the cpu (but using i386 and amd64 instead of 13945 # x86 and x86_64, respectively), preceeded by a /, to be used when 13946 # locating libraries. On macosx, it's empty, though. 13947 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13948 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13949 OPENJDK_TARGET_CPU_LIBDIR="" 13950 fi 13951 13952 13953 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13954 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13955 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13956 OPENJDK_TARGET_CPU_ISADIR="" 13957 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13958 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13959 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13960 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13961 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13962 fi 13963 fi 13964 13965 13966 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13967 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13968 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13969 # On linux only, we replace x86 with i386. 13970 OPENJDK_TARGET_CPU_OSARCH="i386" 13971 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13972 # On all platforms except macosx, we replace x86_64 with amd64. 13973 OPENJDK_TARGET_CPU_OSARCH="amd64" 13974 fi 13975 13976 13977 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13978 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13979 OPENJDK_TARGET_CPU_JLI="i386" 13980 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13981 # On all platforms except macosx, we replace x86_64 with amd64. 13982 OPENJDK_TARGET_CPU_JLI="amd64" 13983 fi 13984 # Now setup the -D flags for building libjli. 13985 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13986 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13987 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13988 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13989 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13990 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13991 fi 13992 fi 13993 13994 13995 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13996 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13997 else 13998 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 13999 fi 14000 14001 14002 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14003 A_LP64="LP64:=" 14004 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 14005 # unpack200.exe 14006 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 14007 ADD_LP64="-D_LP64=1" 14008 fi 14009 fi 14010 LP64=$A_LP64 14011 14012 14013 if test "x$COMPILE_TYPE" = "xcross"; then 14014 # FIXME: ... or should this include reduced builds..? 14015 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 14016 else 14017 DEFINE_CROSS_COMPILE_ARCH="" 14018 fi 14019 14020 14021 # ZERO_ARCHDEF is used to enable architecture-specific code 14022 case "${OPENJDK_TARGET_CPU}" in 14023 ppc) ZERO_ARCHDEF=PPC32 ;; 14024 ppc64) ZERO_ARCHDEF=PPC64 ;; 14025 s390*) ZERO_ARCHDEF=S390 ;; 14026 sparc*) ZERO_ARCHDEF=SPARC ;; 14027 x86_64*) ZERO_ARCHDEF=AMD64 ;; 14028 x86) ZERO_ARCHDEF=IA32 ;; 14029 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 14030 esac 14031 14032 14033 14034 14035 # Continue setting up basic stuff. Most remaining code require fundamental tools. 14036 14037 # Save the current directory this script was started from 14038 CURDIR="$PWD" 14039 14040 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14041 PATH_SEP=";" 14042 14043 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 14044 if test $SRC_ROOT_LENGTH -gt 100; then 14045 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 14046 fi 14047 14048 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14050 $as_echo_n "checking cygwin release... " >&6; } 14051 CYGWIN_VERSION=`$UNAME -r` 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14053 $as_echo "$CYGWIN_VERSION" >&6; } 14054 WINDOWS_ENV_VENDOR='cygwin' 14055 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14056 14057 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 14058 if test "x$CYGWIN_VERSION_OK" = x; then 14059 { $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 14060 $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;} 14061 as_fn_error $? "Cannot continue" "$LINENO" 5 14062 fi 14063 if test "x$CYGPATH" = x; then 14064 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14065 fi 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14067 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14068 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14069 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 14070 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14071 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14073 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14074 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14075 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14076 if test "x$test_cygdrive_prefix" = x; then 14077 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14078 fi 14079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14081 $as_echo_n "checking msys release... " >&6; } 14082 MSYS_VERSION=`$UNAME -r` 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14084 $as_echo "$MSYS_VERSION" >&6; } 14085 14086 WINDOWS_ENV_VENDOR='msys' 14087 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14088 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14090 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14091 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14092 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14093 14094 windows_path="$MSYS_ROOT_PATH" 14095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14096 unix_path=`$CYGPATH -u "$windows_path"` 14097 MSYS_ROOT_PATH="$unix_path" 14098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14099 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14100 MSYS_ROOT_PATH="$unix_path" 14101 fi 14102 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14104 $as_echo "$MSYS_ROOT_PATH" >&6; } 14105 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14106 else 14107 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14108 fi 14109 14110 # Test if windows or unix (cygwin/msys) find is first in path. 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14112 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14113 FIND_BINARY_OUTPUT=`find --version 2>&1` 14114 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14116 $as_echo "unix style" >&6; } 14117 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14119 $as_echo "Windows" >&6; } 14120 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14121 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14122 { $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 14123 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14124 as_fn_error $? "Cannot continue" "$LINENO" 5 14125 else 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14127 $as_echo "unknown" >&6; } 14128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14129 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14130 fi 14131 14132 else 14133 PATH_SEP=":" 14134 fi 14135 14136 14137 # We get the top-level directory from the supporting wrappers. 14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14139 $as_echo_n "checking for top-level directory... " >&6; } 14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14141 $as_echo "$TOPDIR" >&6; } 14142 14143 14144 # Save the original version of TOPDIR for string comparisons 14145 ORIGINAL_TOPDIR="$TOPDIR" 14146 14147 14148 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14149 14150 # Only process if variable expands to non-empty 14151 14152 if test "x$CURDIR" != x; then 14153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14154 14155 # Input might be given as Windows format, start by converting to 14156 # unix format. 14157 path="$CURDIR" 14158 new_path=`$CYGPATH -u "$path"` 14159 14160 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14161 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14162 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14163 # "foo.exe" is OK but "foo" is an error. 14164 # 14165 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14166 # It is also a way to make sure we got the proper file name for the real test later on. 14167 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14168 if test "x$test_shortpath" = x; then 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14170 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14171 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14172 fi 14173 14174 # Call helper function which possibly converts this using DOS-style short mode. 14175 # If so, the updated path is stored in $new_path. 14176 14177 input_path="$new_path" 14178 # Check if we need to convert this using DOS-style short mode. If the path 14179 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14180 # take no chances and rewrite it. 14181 # Note: m4 eats our [], so we need to use [ and ] instead. 14182 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14183 if test "x$has_forbidden_chars" != x; then 14184 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14185 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14186 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14187 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14188 # Going to short mode and back again did indeed matter. Since short mode is 14189 # case insensitive, let's make it lowercase to improve readability. 14190 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14191 # Now convert it back to Unix-stile (cygpath) 14192 input_path=`$CYGPATH -u "$shortmode_path"` 14193 new_path="$input_path" 14194 fi 14195 fi 14196 14197 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14198 if test "x$test_cygdrive_prefix" = x; then 14199 # As a simple fix, exclude /usr/bin since it's not a real path. 14200 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14201 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14202 # a path prefixed by /cygdrive for fixpath to work. 14203 new_path="$CYGWIN_ROOT_PATH$input_path" 14204 fi 14205 fi 14206 14207 14208 if test "x$path" != "x$new_path"; then 14209 CURDIR="$new_path" 14210 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14211 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14212 fi 14213 14214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14215 14216 path="$CURDIR" 14217 has_colon=`$ECHO $path | $GREP ^.:` 14218 new_path="$path" 14219 if test "x$has_colon" = x; then 14220 # Not in mixed or Windows style, start by that. 14221 new_path=`cmd //c echo $path` 14222 fi 14223 14224 14225 input_path="$new_path" 14226 # Check if we need to convert this using DOS-style short mode. If the path 14227 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14228 # take no chances and rewrite it. 14229 # Note: m4 eats our [], so we need to use [ and ] instead. 14230 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14231 if test "x$has_forbidden_chars" != x; then 14232 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14233 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14234 fi 14235 14236 14237 windows_path="$new_path" 14238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14239 unix_path=`$CYGPATH -u "$windows_path"` 14240 new_path="$unix_path" 14241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14242 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14243 new_path="$unix_path" 14244 fi 14245 14246 if test "x$path" != "x$new_path"; then 14247 CURDIR="$new_path" 14248 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14249 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14250 fi 14251 14252 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14253 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14254 14255 else 14256 # We're on a unix platform. Hooray! :) 14257 path="$CURDIR" 14258 has_space=`$ECHO "$path" | $GREP " "` 14259 if test "x$has_space" != x; then 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14261 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14262 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14263 fi 14264 14265 # Use eval to expand a potential ~ 14266 eval path="$path" 14267 if test ! -f "$path" && test ! -d "$path"; then 14268 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14269 fi 14270 14271 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14272 fi 14273 fi 14274 14275 14276 # Only process if variable expands to non-empty 14277 14278 if test "x$TOPDIR" != x; then 14279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14280 14281 # Input might be given as Windows format, start by converting to 14282 # unix format. 14283 path="$TOPDIR" 14284 new_path=`$CYGPATH -u "$path"` 14285 14286 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14287 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14288 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14289 # "foo.exe" is OK but "foo" is an error. 14290 # 14291 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14292 # It is also a way to make sure we got the proper file name for the real test later on. 14293 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14294 if test "x$test_shortpath" = x; then 14295 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14296 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14297 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14298 fi 14299 14300 # Call helper function which possibly converts this using DOS-style short mode. 14301 # If so, the updated path is stored in $new_path. 14302 14303 input_path="$new_path" 14304 # Check if we need to convert this using DOS-style short mode. If the path 14305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14306 # take no chances and rewrite it. 14307 # Note: m4 eats our [], so we need to use [ and ] instead. 14308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14309 if test "x$has_forbidden_chars" != x; then 14310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14311 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14312 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14313 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14314 # Going to short mode and back again did indeed matter. Since short mode is 14315 # case insensitive, let's make it lowercase to improve readability. 14316 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14317 # Now convert it back to Unix-stile (cygpath) 14318 input_path=`$CYGPATH -u "$shortmode_path"` 14319 new_path="$input_path" 14320 fi 14321 fi 14322 14323 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14324 if test "x$test_cygdrive_prefix" = x; then 14325 # As a simple fix, exclude /usr/bin since it's not a real path. 14326 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14327 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14328 # a path prefixed by /cygdrive for fixpath to work. 14329 new_path="$CYGWIN_ROOT_PATH$input_path" 14330 fi 14331 fi 14332 14333 14334 if test "x$path" != "x$new_path"; then 14335 TOPDIR="$new_path" 14336 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14337 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14338 fi 14339 14340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14341 14342 path="$TOPDIR" 14343 has_colon=`$ECHO $path | $GREP ^.:` 14344 new_path="$path" 14345 if test "x$has_colon" = x; then 14346 # Not in mixed or Windows style, start by that. 14347 new_path=`cmd //c echo $path` 14348 fi 14349 14350 14351 input_path="$new_path" 14352 # Check if we need to convert this using DOS-style short mode. If the path 14353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14354 # take no chances and rewrite it. 14355 # Note: m4 eats our [], so we need to use [ and ] instead. 14356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14357 if test "x$has_forbidden_chars" != x; then 14358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14359 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14360 fi 14361 14362 14363 windows_path="$new_path" 14364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14365 unix_path=`$CYGPATH -u "$windows_path"` 14366 new_path="$unix_path" 14367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14368 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14369 new_path="$unix_path" 14370 fi 14371 14372 if test "x$path" != "x$new_path"; then 14373 TOPDIR="$new_path" 14374 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14375 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14376 fi 14377 14378 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14379 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14380 14381 else 14382 # We're on a unix platform. Hooray! :) 14383 path="$TOPDIR" 14384 has_space=`$ECHO "$path" | $GREP " "` 14385 if test "x$has_space" != x; then 14386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14387 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14388 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14389 fi 14390 14391 # Use eval to expand a potential ~ 14392 eval path="$path" 14393 if test ! -f "$path" && test ! -d "$path"; then 14394 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14395 fi 14396 14397 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14398 fi 14399 fi 14400 14401 # SRC_ROOT is a traditional alias for TOPDIR. 14402 SRC_ROOT=$TOPDIR 14403 14404 # Calculate a canonical version of TOPDIR for string comparisons 14405 CANONICAL_TOPDIR=$TOPDIR 14406 14407 if test "x$OPENJDK_BUILD_OS" != xwindows; then 14408 # Follow a chain of symbolic links. Use readlink 14409 # where it exists, else fall back to horribly 14410 # complicated shell code. 14411 if test "x$READLINK_TESTED" != yes; then 14412 # On MacOSX there is a readlink tool with a different 14413 # purpose than the GNU readlink tool. Check the found readlink. 14414 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 14415 if test "x$ISGNU" = x; then 14416 # A readlink that we do not know how to use. 14417 # Are there other non-GNU readlinks out there? 14418 READLINK_TESTED=yes 14419 READLINK= 14420 fi 14421 fi 14422 14423 if test "x$READLINK" != x; then 14424 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 14425 else 14426 # Save the current directory for restoring afterwards 14427 STARTDIR=$PWD 14428 COUNTER=0 14429 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 14430 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 14431 cd $sym_link_dir 14432 # Use -P flag to resolve symlinks in directories. 14433 cd `$THEPWDCMD -P` 14434 sym_link_dir=`$THEPWDCMD -P` 14435 # Resolve file symlinks 14436 while test $COUNTER -lt 20; do 14437 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 14438 if test "x$ISLINK" == x; then 14439 # This is not a symbolic link! We are done! 14440 break 14441 fi 14442 # Again resolve directory symlinks since the target of the just found 14443 # link could be in a different directory 14444 cd `$DIRNAME $ISLINK` 14445 sym_link_dir=`$THEPWDCMD -P` 14446 sym_link_file=`$BASENAME $ISLINK` 14447 let COUNTER=COUNTER+1 14448 done 14449 cd $STARTDIR 14450 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 14451 fi 14452 fi 14453 14454 14455 14456 # Locate the directory of this script. 14457 AUTOCONF_DIR=$TOPDIR/common/autoconf 14458 14459 14460 # Check if it's a pure open build or if custom sources are to be used. 14461 14462 # Check whether --enable-openjdk-only was given. 14463 if test "${enable_openjdk_only+set}" = set; then : 14464 enableval=$enable_openjdk_only; 14465 else 14466 enable_openjdk_only="no" 14467 fi 14468 14469 14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14471 $as_echo_n "checking for presence of closed sources... " >&6; } 14472 if test -d "$SRC_ROOT/jdk/src/closed"; then 14473 CLOSED_SOURCE_PRESENT=yes 14474 else 14475 CLOSED_SOURCE_PRESENT=no 14476 fi 14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14478 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14479 14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14481 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14482 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14484 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14485 14486 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14487 OPENJDK=true 14488 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14490 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14491 fi 14492 else 14493 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14494 OPENJDK=true 14495 else 14496 OPENJDK=false 14497 fi 14498 fi 14499 14500 if test "x$OPENJDK" = "xtrue"; then 14501 SET_OPENJDK="OPENJDK=true" 14502 fi 14503 14504 14505 14506 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14507 # the IncludeCustomExtension macro. 14508 14509 14510 # Check whether --with-custom-make-dir was given. 14511 if test "${with_custom_make_dir+set}" = set; then : 14512 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 14513 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14514 fi 14515 14516 14517 14518 14519 # These are needed to be able to create a configuration name (and thus the output directory) 14520 14521 ############################################################################### 14522 # 14523 # Check which variant of the JDK that we want to build. 14524 # Currently we have: 14525 # normal: standard edition 14526 # but the custom make system may add other variants 14527 # 14528 # Effectively the JDK variant gives a name to a specific set of 14529 # modules to compile into the JDK. In the future, these modules 14530 # might even be Jigsaw modules. 14531 # 14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14533 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14534 14535 # Check whether --with-jdk-variant was given. 14536 if test "${with_jdk_variant+set}" = set; then : 14537 withval=$with_jdk_variant; 14538 fi 14539 14540 14541 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14542 JDK_VARIANT="normal" 14543 else 14544 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14545 fi 14546 14547 14548 14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14550 $as_echo "$JDK_VARIANT" >&6; } 14551 14552 14553 ############################################################################### 14554 # 14555 # Check which interpreter of the JVM we want to build. 14556 # Currently we have: 14557 # template: Template interpreter (the default) 14558 # cpp : C++ interpreter 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14560 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14561 14562 # Check whether --with-jvm-interpreter was given. 14563 if test "${with_jvm_interpreter+set}" = set; then : 14564 withval=$with_jvm_interpreter; 14565 fi 14566 14567 14568 if test "x$with_jvm_interpreter" = x; then 14569 with_jvm_interpreter="template" 14570 fi 14571 14572 JVM_INTERPRETER="$with_jvm_interpreter" 14573 14574 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14575 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14576 fi 14577 14578 14579 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14581 $as_echo "$with_jvm_interpreter" >&6; } 14582 14583 14584 14585 ############################################################################### 14586 # 14587 # Check which variants of the JVM that we want to build. 14588 # Currently we have: 14589 # server: normal interpreter and a tiered C1/C2 compiler 14590 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14591 # minimal1: reduced form of client with optional VM services and features stripped out 14592 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14593 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14594 # zero: no machine code interpreter, no compiler 14595 # zeroshark: zero interpreter and shark/llvm compiler backend 14596 # core: interpreter only, no compiler (only works on some platforms) 14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14598 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14599 14600 # Check whether --with-jvm-variants was given. 14601 if test "${with_jvm_variants+set}" = set; then : 14602 withval=$with_jvm_variants; 14603 fi 14604 14605 14606 if test "x$with_jvm_variants" = x; then 14607 with_jvm_variants="server" 14608 fi 14609 14610 JVM_VARIANTS=",$with_jvm_variants," 14611 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'` 14612 14613 if test "x$TEST_VARIANTS" != "x,"; then 14614 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14615 fi 14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14617 $as_echo "$with_jvm_variants" >&6; } 14618 14619 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14620 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14621 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14622 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14623 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14624 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14625 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14626 14627 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14628 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14629 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14630 fi 14631 fi 14632 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14633 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14634 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14635 fi 14636 fi 14637 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14638 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14639 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14640 fi 14641 fi 14642 14643 # Replace the commas with AND for use in the build directory name. 14644 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14645 COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'` 14646 if test "x$COUNT_VARIANTS" != "x,1"; then 14647 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14648 else 14649 BUILDING_MULTIPLE_JVM_VARIANTS=no 14650 fi 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 INCLUDE_SA=true 14662 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14663 INCLUDE_SA=false 14664 fi 14665 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14666 INCLUDE_SA=false 14667 fi 14668 if test "x$OPENJDK_TARGET_OS" = xaix ; then 14669 INCLUDE_SA=false 14670 fi 14671 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 14672 INCLUDE_SA=false 14673 fi 14674 14675 14676 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14677 MACOSX_UNIVERSAL="true" 14678 fi 14679 14680 14681 14682 14683 ############################################################################### 14684 # 14685 # Set the debug level 14686 # release: no debug information, all optimizations, no asserts. 14687 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14688 # fastdebug: debug information (-g), all optimizations, all asserts 14689 # slowdebug: debug information (-g), no optimizations, all asserts 14690 # 14691 DEBUG_LEVEL="release" 14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14693 $as_echo_n "checking which debug level to use... " >&6; } 14694 # Check whether --enable-debug was given. 14695 if test "${enable_debug+set}" = set; then : 14696 enableval=$enable_debug; 14697 ENABLE_DEBUG="${enableval}" 14698 DEBUG_LEVEL="fastdebug" 14699 14700 else 14701 ENABLE_DEBUG="no" 14702 fi 14703 14704 14705 14706 # Check whether --with-debug-level was given. 14707 if test "${with_debug_level+set}" = set; then : 14708 withval=$with_debug_level; 14709 DEBUG_LEVEL="${withval}" 14710 if test "x$ENABLE_DEBUG" = xyes; then 14711 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14712 fi 14713 14714 fi 14715 14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14717 $as_echo "$DEBUG_LEVEL" >&6; } 14718 14719 if test "x$DEBUG_LEVEL" != xrelease && \ 14720 test "x$DEBUG_LEVEL" != xoptimized && \ 14721 test "x$DEBUG_LEVEL" != xfastdebug && \ 14722 test "x$DEBUG_LEVEL" != xslowdebug; then 14723 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14724 fi 14725 14726 14727 ############################################################################### 14728 # 14729 # Setup legacy vars/targets and new vars to deal with different debug levels. 14730 # 14731 14732 case $DEBUG_LEVEL in 14733 release ) 14734 VARIANT="OPT" 14735 FASTDEBUG="false" 14736 DEBUG_CLASSFILES="false" 14737 BUILD_VARIANT_RELEASE="" 14738 HOTSPOT_DEBUG_LEVEL="product" 14739 HOTSPOT_EXPORT="product" 14740 ;; 14741 fastdebug ) 14742 VARIANT="DBG" 14743 FASTDEBUG="true" 14744 DEBUG_CLASSFILES="true" 14745 BUILD_VARIANT_RELEASE="-fastdebug" 14746 HOTSPOT_DEBUG_LEVEL="fastdebug" 14747 HOTSPOT_EXPORT="fastdebug" 14748 ;; 14749 slowdebug ) 14750 VARIANT="DBG" 14751 FASTDEBUG="false" 14752 DEBUG_CLASSFILES="true" 14753 BUILD_VARIANT_RELEASE="-debug" 14754 HOTSPOT_DEBUG_LEVEL="debug" 14755 HOTSPOT_EXPORT="debug" 14756 ;; 14757 optimized ) 14758 VARIANT="OPT" 14759 FASTDEBUG="false" 14760 DEBUG_CLASSFILES="false" 14761 BUILD_VARIANT_RELEASE="-optimized" 14762 HOTSPOT_DEBUG_LEVEL="optimized" 14763 HOTSPOT_EXPORT="optimized" 14764 ;; 14765 esac 14766 14767 # The debug level 'optimized' is a little special because it is currently only 14768 # applicable to the HotSpot build where it means to build a completely 14769 # optimized version of the VM without any debugging code (like for the 14770 # 'release' debug level which is called 'product' in the HotSpot build) but 14771 # with the exception that it can contain additional code which is otherwise 14772 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14773 # test new and/or experimental features which are not intended for customer 14774 # shipment. Because these new features need to be tested and benchmarked in 14775 # real world scenarios, we want to build the containing JDK at the 'release' 14776 # debug level. 14777 if test "x$DEBUG_LEVEL" = xoptimized; then 14778 DEBUG_LEVEL="release" 14779 fi 14780 14781 ##### 14782 # Generate the legacy makefile targets for hotspot. 14783 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14784 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14785 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14786 # But until then ... 14787 HOTSPOT_TARGET="" 14788 14789 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14790 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14791 fi 14792 14793 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14794 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14795 fi 14796 14797 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14798 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14799 fi 14800 14801 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14802 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14803 fi 14804 14805 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14806 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14807 fi 14808 14809 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14810 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14811 fi 14812 14813 if test "x$JVM_VARIANT_CORE" = xtrue; then 14814 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14815 fi 14816 14817 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14818 14819 # On Macosx universal binaries are produced, but they only contain 14820 # 64 bit intel. This invalidates control of which jvms are built 14821 # from configure, but only server is valid anyway. Fix this 14822 # when hotspot makefiles are rewritten. 14823 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14824 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14825 fi 14826 14827 ##### 14828 14829 14830 14831 14832 14833 14834 14835 14836 # With basic setup done, call the custom early hook. 14837 14838 14839 # Check if we have devkits, extra paths or sysroot set. 14840 14841 14842 # Check whether --with-devkit was given. 14843 if test "${with_devkit+set}" = set; then : 14844 withval=$with_devkit; 14845 14846 # Only process if variable expands to non-empty 14847 14848 if test "x$with_devkit" != x; then 14849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14850 14851 # Input might be given as Windows format, start by converting to 14852 # unix format. 14853 path="$with_devkit" 14854 new_path=`$CYGPATH -u "$path"` 14855 14856 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14857 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14858 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14859 # "foo.exe" is OK but "foo" is an error. 14860 # 14861 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14862 # It is also a way to make sure we got the proper file name for the real test later on. 14863 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14864 if test "x$test_shortpath" = x; then 14865 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14866 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14867 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14868 fi 14869 14870 # Call helper function which possibly converts this using DOS-style short mode. 14871 # If so, the updated path is stored in $new_path. 14872 14873 input_path="$new_path" 14874 # Check if we need to convert this using DOS-style short mode. If the path 14875 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14876 # take no chances and rewrite it. 14877 # Note: m4 eats our [], so we need to use [ and ] instead. 14878 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14879 if test "x$has_forbidden_chars" != x; then 14880 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14881 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14882 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14883 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14884 # Going to short mode and back again did indeed matter. Since short mode is 14885 # case insensitive, let's make it lowercase to improve readability. 14886 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14887 # Now convert it back to Unix-stile (cygpath) 14888 input_path=`$CYGPATH -u "$shortmode_path"` 14889 new_path="$input_path" 14890 fi 14891 fi 14892 14893 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14894 if test "x$test_cygdrive_prefix" = x; then 14895 # As a simple fix, exclude /usr/bin since it's not a real path. 14896 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14897 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14898 # a path prefixed by /cygdrive for fixpath to work. 14899 new_path="$CYGWIN_ROOT_PATH$input_path" 14900 fi 14901 fi 14902 14903 14904 if test "x$path" != "x$new_path"; then 14905 with_devkit="$new_path" 14906 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14907 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14908 fi 14909 14910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14911 14912 path="$with_devkit" 14913 has_colon=`$ECHO $path | $GREP ^.:` 14914 new_path="$path" 14915 if test "x$has_colon" = x; then 14916 # Not in mixed or Windows style, start by that. 14917 new_path=`cmd //c echo $path` 14918 fi 14919 14920 14921 input_path="$new_path" 14922 # Check if we need to convert this using DOS-style short mode. If the path 14923 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14924 # take no chances and rewrite it. 14925 # Note: m4 eats our [], so we need to use [ and ] instead. 14926 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14927 if test "x$has_forbidden_chars" != x; then 14928 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14929 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14930 fi 14931 14932 14933 windows_path="$new_path" 14934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14935 unix_path=`$CYGPATH -u "$windows_path"` 14936 new_path="$unix_path" 14937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14938 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14939 new_path="$unix_path" 14940 fi 14941 14942 if test "x$path" != "x$new_path"; then 14943 with_devkit="$new_path" 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14945 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14946 fi 14947 14948 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14949 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14950 14951 else 14952 # We're on a unix platform. Hooray! :) 14953 path="$with_devkit" 14954 has_space=`$ECHO "$path" | $GREP " "` 14955 if test "x$has_space" != x; then 14956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14957 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14958 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14959 fi 14960 14961 # Use eval to expand a potential ~ 14962 eval path="$path" 14963 if test ! -f "$path" && test ! -d "$path"; then 14964 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14965 fi 14966 14967 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14968 fi 14969 fi 14970 14971 DEVKIT_ROOT="$with_devkit" 14972 # Check for a meta data info file in the root of the devkit 14973 if test -f "$DEVKIT_ROOT/devkit.info"; then 14974 # This potentially sets the following: 14975 # DEVKIT_NAME: A descriptive name of the devkit 14976 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14977 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14978 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14979 . $DEVKIT_ROOT/devkit.info 14980 fi 14981 14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14983 $as_echo_n "checking for devkit... " >&6; } 14984 if test "x$DEVKIT_NAME" != x; then 14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14986 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14987 else 14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14989 $as_echo "$DEVKIT_ROOT" >&6; } 14990 fi 14991 14992 if test "x$DEVKIT_EXTRA_PATH" != x; then 14993 14994 if test "x$DEVKIT_EXTRA_PATH" != x; then 14995 if test "x$EXTRA_PATH" = x; then 14996 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14997 else 14998 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14999 fi 15000 fi 15001 15002 fi 15003 15004 # Fallback default of just /bin if DEVKIT_PATH is not defined 15005 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 15006 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 15007 fi 15008 15009 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 15010 if test "x$TOOLCHAIN_PATH" = x; then 15011 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 15012 else 15013 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 15014 fi 15015 fi 15016 15017 15018 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 15019 # places for backwards compatiblity. 15020 if test "x$DEVKIT_SYSROOT" != x; then 15021 SYSROOT="$DEVKIT_SYSROOT" 15022 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 15023 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 15024 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 15025 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 15026 fi 15027 15028 15029 fi 15030 15031 15032 # You can force the sysroot if the sysroot encoded into the compiler tools 15033 # is not correct. 15034 15035 # Check whether --with-sys-root was given. 15036 if test "${with_sys_root+set}" = set; then : 15037 withval=$with_sys_root; SYSROOT=$with_sys_root 15038 15039 fi 15040 15041 15042 15043 # Check whether --with-sysroot was given. 15044 if test "${with_sysroot+set}" = set; then : 15045 withval=$with_sysroot; SYSROOT=$with_sysroot 15046 15047 fi 15048 15049 15050 15051 # Check whether --with-tools-dir was given. 15052 if test "${with_tools_dir+set}" = set; then : 15053 withval=$with_tools_dir; 15054 if test "x$with_tools_dir" != x; then 15055 if test "x$TOOLCHAIN_PATH" = x; then 15056 TOOLCHAIN_PATH="$with_tools_dir" 15057 else 15058 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 15059 fi 15060 fi 15061 15062 15063 fi 15064 15065 15066 15067 # Check whether --with-toolchain-path was given. 15068 if test "${with_toolchain_path+set}" = set; then : 15069 withval=$with_toolchain_path; 15070 if test "x$with_toolchain_path" != x; then 15071 if test "x$TOOLCHAIN_PATH" = x; then 15072 TOOLCHAIN_PATH="$with_toolchain_path" 15073 else 15074 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 15075 fi 15076 fi 15077 15078 15079 fi 15080 15081 15082 15083 # Check whether --with-extra-path was given. 15084 if test "${with_extra_path+set}" = set; then : 15085 withval=$with_extra_path; 15086 if test "x$with_extra_path" != x; then 15087 if test "x$EXTRA_PATH" = x; then 15088 EXTRA_PATH="$with_extra_path" 15089 else 15090 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 15091 fi 15092 fi 15093 15094 15095 fi 15096 15097 15098 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 15099 # detect if Xcode is installed by running xcodebuild -version 15100 # if no Xcode installed, xcodebuild exits with 1 15101 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 15102 if /usr/bin/xcodebuild -version >/dev/null 2>&1; then 15103 # We need to use xcodebuild in the toolchain dir provided by the user, this will 15104 # fall back on the stub binary in /usr/bin/xcodebuild 15105 # Extract the first word of "xcodebuild", so it can be a program name with args. 15106 set dummy xcodebuild; ac_word=$2 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15108 $as_echo_n "checking for $ac_word... " >&6; } 15109 if ${ac_cv_path_XCODEBUILD+:} false; then : 15110 $as_echo_n "(cached) " >&6 15111 else 15112 case $XCODEBUILD in 15113 [\\/]* | ?:[\\/]*) 15114 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 15115 ;; 15116 *) 15117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15118 for as_dir in $TOOLCHAIN_PATH 15119 do 15120 IFS=$as_save_IFS 15121 test -z "$as_dir" && as_dir=. 15122 for ac_exec_ext in '' $ac_executable_extensions; do 15123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15124 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 15125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15126 break 2 15127 fi 15128 done 15129 done 15130 IFS=$as_save_IFS 15131 15132 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 15133 ;; 15134 esac 15135 fi 15136 XCODEBUILD=$ac_cv_path_XCODEBUILD 15137 if test -n "$XCODEBUILD"; then 15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 15139 $as_echo "$XCODEBUILD" >&6; } 15140 else 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15142 $as_echo "no" >&6; } 15143 fi 15144 15145 15146 else 15147 # this should result in SYSROOT being empty, unless --with-sysroot is provided 15148 # when only the command line tools are installed there are no SDKs, so headers 15149 # are copied into the system frameworks 15150 XCODEBUILD= 15151 15152 fi 15153 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 15155 $as_echo_n "checking for sdk name... " >&6; } 15156 15157 # Check whether --with-sdk-name was given. 15158 if test "${with_sdk_name+set}" = set; then : 15159 withval=$with_sdk_name; SDKNAME=$with_sdk_name 15160 15161 fi 15162 15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 15164 $as_echo "$SDKNAME" >&6; } 15165 15166 # if toolchain path is specified then don't rely on system headers, they may not compile 15167 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 15168 test -z "$TOOLCHAIN_PATH" && \ 15169 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 15170 15171 if test -z "$SYSROOT"; then 15172 if test -n "$XCODEBUILD"; then 15173 # if we don't have system headers, use default SDK name (last resort) 15174 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15175 SDKNAME=${SDKNAME:-macosx} 15176 fi 15177 15178 if test -n "$SDKNAME"; then 15179 # Call xcodebuild to determine SYSROOT 15180 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 15181 fi 15182 else 15183 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15184 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 15185 fi 15186 fi 15187 else 15188 # warn user if --with-sdk-name was also set 15189 if test -n "$with_sdk_name"; then 15190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 15191 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 15192 fi 15193 fi 15194 15195 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 15196 # If no system framework headers, then SYSROOT must be set, or we won't build 15197 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 15198 fi 15199 15200 # Perform a basic sanity test 15201 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 15202 if test -z "$SYSROOT"; then 15203 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 15204 else 15205 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 15206 fi 15207 fi 15208 15209 # set SDKROOT too, Xcode tools will pick it up 15210 SDKROOT=$SYSROOT 15211 15212 fi 15213 15214 # Prepend the extra path to the global path 15215 15216 if test "x$EXTRA_PATH" != x; then 15217 if test "x$PATH" = x; then 15218 PATH="$EXTRA_PATH" 15219 else 15220 PATH="$EXTRA_PATH:$PATH" 15221 fi 15222 fi 15223 15224 15225 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15226 # Add extra search paths on solaris for utilities like ar and as etc... 15227 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15228 fi 15229 15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15231 $as_echo_n "checking for sysroot... " >&6; } 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15233 $as_echo "$SYSROOT" >&6; } 15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15235 $as_echo_n "checking for toolchain path... " >&6; } 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15237 $as_echo "$TOOLCHAIN_PATH" >&6; } 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15239 $as_echo_n "checking for extra path... " >&6; } 15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15241 $as_echo "$EXTRA_PATH" >&6; } 15242 15243 15244 # To properly create a configuration name, we need to have the OpenJDK target 15245 # and options (variants and debug level) parsed. 15246 15247 15248 15249 # Check whether --with-conf-name was given. 15250 if test "${with_conf_name+set}" = set; then : 15251 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15252 fi 15253 15254 15255 # Test from where we are running configure, in or outside of src root. 15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15257 $as_echo_n "checking where to store configuration... " >&6; } 15258 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15259 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15260 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15261 # We are running configure from the src root. 15262 # Create a default ./build/target-variant-debuglevel output root. 15263 if test "x${CONF_NAME}" = x; then 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15265 $as_echo "in default location" >&6; } 15266 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15267 else 15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15269 $as_echo "in build directory with custom name" >&6; } 15270 fi 15271 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15272 $MKDIR -p "$OUTPUT_ROOT" 15273 if test ! -d "$OUTPUT_ROOT"; then 15274 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15275 fi 15276 else 15277 # We are running configure from outside of the src dir. 15278 # Then use the current directory as output dir! 15279 # If configuration is situated in normal build directory, just use the build 15280 # directory name as configuration name, otherwise use the complete path. 15281 if test "x${CONF_NAME}" = x; then 15282 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15283 fi 15284 OUTPUT_ROOT="$CURDIR" 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15286 $as_echo "in current directory" >&6; } 15287 15288 # WARNING: This might be a bad thing to do. You need to be sure you want to 15289 # have a configuration in this directory. Do some sanity checks! 15290 15291 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15292 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15293 # other files 15294 files_present=`$LS $OUTPUT_ROOT` 15295 # Configure has already touched config.log and confdefs.h in the current dir when this check 15296 # is performed. 15297 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 15298 | $TR -d '\n'` 15299 if test "x$filtered_files" != x; then 15300 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15301 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15303 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15304 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15305 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15306 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15307 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15308 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15309 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15310 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15311 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15312 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15313 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15314 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15315 fi 15316 fi 15317 fi 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15319 $as_echo_n "checking what configuration name to use... " >&6; } 15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15321 $as_echo "$CONF_NAME" >&6; } 15322 15323 15324 # Only process if variable expands to non-empty 15325 15326 if test "x$OUTPUT_ROOT" != x; then 15327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15328 15329 # Input might be given as Windows format, start by converting to 15330 # unix format. 15331 path="$OUTPUT_ROOT" 15332 new_path=`$CYGPATH -u "$path"` 15333 15334 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15335 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15336 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15337 # "foo.exe" is OK but "foo" is an error. 15338 # 15339 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15340 # It is also a way to make sure we got the proper file name for the real test later on. 15341 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15342 if test "x$test_shortpath" = x; then 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15344 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15345 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15346 fi 15347 15348 # Call helper function which possibly converts this using DOS-style short mode. 15349 # If so, the updated path is stored in $new_path. 15350 15351 input_path="$new_path" 15352 # Check if we need to convert this using DOS-style short mode. If the path 15353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15354 # take no chances and rewrite it. 15355 # Note: m4 eats our [], so we need to use [ and ] instead. 15356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15357 if test "x$has_forbidden_chars" != x; then 15358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15359 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15360 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15361 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15362 # Going to short mode and back again did indeed matter. Since short mode is 15363 # case insensitive, let's make it lowercase to improve readability. 15364 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15365 # Now convert it back to Unix-stile (cygpath) 15366 input_path=`$CYGPATH -u "$shortmode_path"` 15367 new_path="$input_path" 15368 fi 15369 fi 15370 15371 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15372 if test "x$test_cygdrive_prefix" = x; then 15373 # As a simple fix, exclude /usr/bin since it's not a real path. 15374 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15375 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15376 # a path prefixed by /cygdrive for fixpath to work. 15377 new_path="$CYGWIN_ROOT_PATH$input_path" 15378 fi 15379 fi 15380 15381 15382 if test "x$path" != "x$new_path"; then 15383 OUTPUT_ROOT="$new_path" 15384 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15385 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15386 fi 15387 15388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15389 15390 path="$OUTPUT_ROOT" 15391 has_colon=`$ECHO $path | $GREP ^.:` 15392 new_path="$path" 15393 if test "x$has_colon" = x; then 15394 # Not in mixed or Windows style, start by that. 15395 new_path=`cmd //c echo $path` 15396 fi 15397 15398 15399 input_path="$new_path" 15400 # Check if we need to convert this using DOS-style short mode. If the path 15401 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15402 # take no chances and rewrite it. 15403 # Note: m4 eats our [], so we need to use [ and ] instead. 15404 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15405 if test "x$has_forbidden_chars" != x; then 15406 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15407 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15408 fi 15409 15410 15411 windows_path="$new_path" 15412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15413 unix_path=`$CYGPATH -u "$windows_path"` 15414 new_path="$unix_path" 15415 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15416 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15417 new_path="$unix_path" 15418 fi 15419 15420 if test "x$path" != "x$new_path"; then 15421 OUTPUT_ROOT="$new_path" 15422 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15423 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15424 fi 15425 15426 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15427 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15428 15429 else 15430 # We're on a unix platform. Hooray! :) 15431 path="$OUTPUT_ROOT" 15432 has_space=`$ECHO "$path" | $GREP " "` 15433 if test "x$has_space" != x; then 15434 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15435 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15436 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15437 fi 15438 15439 # Use eval to expand a potential ~ 15440 eval path="$path" 15441 if test ! -f "$path" && test ! -d "$path"; then 15442 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15443 fi 15444 15445 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15446 fi 15447 fi 15448 15449 15450 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 15451 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 15452 15453 SPEC=$OUTPUT_ROOT/spec.gmk 15454 15455 CONF_NAME=$CONF_NAME 15456 15457 OUTPUT_ROOT=$OUTPUT_ROOT 15458 15459 15460 15461 # The spec.gmk file contains all variables for the make system. 15462 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15463 15464 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15465 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15466 15467 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15468 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15469 15470 # The compare.sh is used to compare the build output to other builds. 15471 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15472 15473 # The generated Makefile knows where the spec.gmk is and where the source is. 15474 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15475 # which will look for generated configurations 15476 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15477 15478 15479 15480 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15481 15482 for ac_prog in apt-get yum port pkgutil pkgadd 15483 do 15484 # Extract the first word of "$ac_prog", so it can be a program name with args. 15485 set dummy $ac_prog; ac_word=$2 15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15487 $as_echo_n "checking for $ac_word... " >&6; } 15488 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15489 $as_echo_n "(cached) " >&6 15490 else 15491 if test -n "$PKGHANDLER"; then 15492 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15493 else 15494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15495 for as_dir in $PATH 15496 do 15497 IFS=$as_save_IFS 15498 test -z "$as_dir" && as_dir=. 15499 for ac_exec_ext in '' $ac_executable_extensions; do 15500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15501 ac_cv_prog_PKGHANDLER="$ac_prog" 15502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15503 break 2 15504 fi 15505 done 15506 done 15507 IFS=$as_save_IFS 15508 15509 fi 15510 fi 15511 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15512 if test -n "$PKGHANDLER"; then 15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15514 $as_echo "$PKGHANDLER" >&6; } 15515 else 15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15517 $as_echo "no" >&6; } 15518 fi 15519 15520 15521 test -n "$PKGHANDLER" && break 15522 done 15523 15524 15525 15526 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15527 15528 15529 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15530 if test "x$MAKE" != x; then 15531 # User has supplied a make, test it. 15532 if test ! -f "$MAKE"; then 15533 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15534 fi 15535 15536 MAKE_CANDIDATE=""$MAKE"" 15537 DESCRIPTION="user supplied MAKE=$MAKE" 15538 15539 # On Cygwin, we require a newer version of make than on other platforms 15540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15541 MAKE_VERSION_EXPR="-e 4\." 15542 MAKE_REQUIRED_VERSION="4.0" 15543 else 15544 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 15545 MAKE_REQUIRED_VERSION="3.81" 15546 fi 15547 15548 if test "x$MAKE_CANDIDATE" != x; then 15549 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15550 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15551 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15552 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15553 if test "x$IS_GNU_MAKE" = x; then 15554 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15555 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15556 else 15557 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 15558 if test "x$IS_MODERN_MAKE" = x; then 15559 { $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 15560 $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;} 15561 else 15562 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15564 MAKE_EXPECTED_ENV='cygwin' 15565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15566 MAKE_EXPECTED_ENV='msys' 15567 else 15568 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15569 fi 15570 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15571 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15572 else 15573 # Not relevant for non-Windows 15574 IS_MAKE_CORRECT_ENV=true 15575 fi 15576 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15577 { $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 15578 $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;} 15579 else 15580 FOUND_MAKE=$MAKE_CANDIDATE 15581 15582 # Only process if variable expands to non-empty 15583 15584 if test "x$FOUND_MAKE" != x; then 15585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15586 15587 # First separate the path from the arguments. This will split at the first 15588 # space. 15589 complete="$FOUND_MAKE" 15590 path="${complete%% *}" 15591 tmp="$complete EOL" 15592 arguments="${tmp#* }" 15593 15594 # Input might be given as Windows format, start by converting to 15595 # unix format. 15596 new_path=`$CYGPATH -u "$path"` 15597 15598 # Now try to locate executable using which 15599 new_path=`$WHICH "$new_path" 2> /dev/null` 15600 # bat and cmd files are not always considered executable in cygwin causing which 15601 # to not find them 15602 if test "x$new_path" = x \ 15603 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15604 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15605 new_path=`$CYGPATH -u "$path"` 15606 fi 15607 if test "x$new_path" = x; then 15608 # Oops. Which didn't find the executable. 15609 # The splitting of arguments from the executable at a space might have been incorrect, 15610 # since paths with space are more likely in Windows. Give it another try with the whole 15611 # argument. 15612 path="$complete" 15613 arguments="EOL" 15614 new_path=`$CYGPATH -u "$path"` 15615 new_path=`$WHICH "$new_path" 2> /dev/null` 15616 # bat and cmd files are not always considered executable in cygwin causing which 15617 # to not find them 15618 if test "x$new_path" = x \ 15619 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15620 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15621 new_path=`$CYGPATH -u "$path"` 15622 fi 15623 if test "x$new_path" = x; then 15624 # It's still not found. Now this is an unrecoverable error. 15625 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15626 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15627 has_space=`$ECHO "$complete" | $GREP " "` 15628 if test "x$has_space" != x; then 15629 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15630 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15631 fi 15632 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15633 fi 15634 fi 15635 15636 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15637 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15638 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15639 # "foo.exe" is OK but "foo" is an error. 15640 # 15641 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15642 # It is also a way to make sure we got the proper file name for the real test later on. 15643 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15644 if test "x$test_shortpath" = x; then 15645 # Short path failed, file does not exist as specified. 15646 # Try adding .exe or .cmd 15647 if test -f "${new_path}.exe"; then 15648 input_to_shortpath="${new_path}.exe" 15649 elif test -f "${new_path}.cmd"; then 15650 input_to_shortpath="${new_path}.cmd" 15651 else 15652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15653 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15654 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15655 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15656 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15657 fi 15658 else 15659 input_to_shortpath="$new_path" 15660 fi 15661 15662 # Call helper function which possibly converts this using DOS-style short mode. 15663 # If so, the updated path is stored in $new_path. 15664 new_path="$input_to_shortpath" 15665 15666 input_path="$input_to_shortpath" 15667 # Check if we need to convert this using DOS-style short mode. If the path 15668 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15669 # take no chances and rewrite it. 15670 # Note: m4 eats our [], so we need to use [ and ] instead. 15671 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15672 if test "x$has_forbidden_chars" != x; then 15673 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15674 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15675 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15676 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15677 # Going to short mode and back again did indeed matter. Since short mode is 15678 # case insensitive, let's make it lowercase to improve readability. 15679 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15680 # Now convert it back to Unix-stile (cygpath) 15681 input_path=`$CYGPATH -u "$shortmode_path"` 15682 new_path="$input_path" 15683 fi 15684 fi 15685 15686 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15687 if test "x$test_cygdrive_prefix" = x; then 15688 # As a simple fix, exclude /usr/bin since it's not a real path. 15689 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15690 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15691 # a path prefixed by /cygdrive for fixpath to work. 15692 new_path="$CYGWIN_ROOT_PATH$input_path" 15693 fi 15694 fi 15695 15696 # remove trailing .exe if any 15697 new_path="${new_path/%.exe/}" 15698 15699 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15700 15701 # First separate the path from the arguments. This will split at the first 15702 # space. 15703 complete="$FOUND_MAKE" 15704 path="${complete%% *}" 15705 tmp="$complete EOL" 15706 arguments="${tmp#* }" 15707 15708 # Input might be given as Windows format, start by converting to 15709 # unix format. 15710 new_path="$path" 15711 15712 windows_path="$new_path" 15713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15714 unix_path=`$CYGPATH -u "$windows_path"` 15715 new_path="$unix_path" 15716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15717 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15718 new_path="$unix_path" 15719 fi 15720 15721 15722 # Now try to locate executable using which 15723 new_path=`$WHICH "$new_path" 2> /dev/null` 15724 15725 if test "x$new_path" = x; then 15726 # Oops. Which didn't find the executable. 15727 # The splitting of arguments from the executable at a space might have been incorrect, 15728 # since paths with space are more likely in Windows. Give it another try with the whole 15729 # argument. 15730 path="$complete" 15731 arguments="EOL" 15732 new_path="$path" 15733 15734 windows_path="$new_path" 15735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15736 unix_path=`$CYGPATH -u "$windows_path"` 15737 new_path="$unix_path" 15738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15740 new_path="$unix_path" 15741 fi 15742 15743 15744 new_path=`$WHICH "$new_path" 2> /dev/null` 15745 # bat and cmd files are not always considered executable in MSYS causing which 15746 # to not find them 15747 if test "x$new_path" = x \ 15748 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15749 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15750 new_path="$path" 15751 15752 windows_path="$new_path" 15753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15754 unix_path=`$CYGPATH -u "$windows_path"` 15755 new_path="$unix_path" 15756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15757 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15758 new_path="$unix_path" 15759 fi 15760 15761 fi 15762 15763 if test "x$new_path" = x; then 15764 # It's still not found. Now this is an unrecoverable error. 15765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15766 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15767 has_space=`$ECHO "$complete" | $GREP " "` 15768 if test "x$has_space" != x; then 15769 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15770 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15771 fi 15772 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15773 fi 15774 fi 15775 15776 # Now new_path has a complete unix path to the binary 15777 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15778 # Keep paths in /bin as-is, but remove trailing .exe if any 15779 new_path="${new_path/%.exe/}" 15780 # Do not save /bin paths to all_fixpath_prefixes! 15781 else 15782 # Not in mixed or Windows style, start by that. 15783 new_path=`cmd //c echo $new_path` 15784 15785 input_path="$new_path" 15786 # Check if we need to convert this using DOS-style short mode. If the path 15787 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15788 # take no chances and rewrite it. 15789 # Note: m4 eats our [], so we need to use [ and ] instead. 15790 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15791 if test "x$has_forbidden_chars" != x; then 15792 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15793 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15794 fi 15795 15796 # Output is in $new_path 15797 15798 windows_path="$new_path" 15799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15800 unix_path=`$CYGPATH -u "$windows_path"` 15801 new_path="$unix_path" 15802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15804 new_path="$unix_path" 15805 fi 15806 15807 # remove trailing .exe if any 15808 new_path="${new_path/%.exe/}" 15809 15810 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15811 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15812 fi 15813 15814 else 15815 # We're on a unix platform. Hooray! :) 15816 # First separate the path from the arguments. This will split at the first 15817 # space. 15818 complete="$FOUND_MAKE" 15819 path="${complete%% *}" 15820 tmp="$complete EOL" 15821 arguments="${tmp#* }" 15822 15823 # Cannot rely on the command "which" here since it doesn't always work. 15824 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15825 if test -z "$is_absolute_path"; then 15826 # Path to executable is not absolute. Find it. 15827 IFS_save="$IFS" 15828 IFS=: 15829 for p in $PATH; do 15830 if test -f "$p/$path" && test -x "$p/$path"; then 15831 new_path="$p/$path" 15832 break 15833 fi 15834 done 15835 IFS="$IFS_save" 15836 else 15837 # This is an absolute path, we can use it without further modifications. 15838 new_path="$path" 15839 fi 15840 15841 if test "x$new_path" = x; then 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15843 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15844 has_space=`$ECHO "$complete" | $GREP " "` 15845 if test "x$has_space" != x; then 15846 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15847 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15848 fi 15849 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15850 fi 15851 fi 15852 15853 # Now join together the path and the arguments once again 15854 if test "x$arguments" != xEOL; then 15855 new_complete="$new_path ${arguments% *}" 15856 else 15857 new_complete="$new_path" 15858 fi 15859 15860 if test "x$complete" != "x$new_complete"; then 15861 FOUND_MAKE="$new_complete" 15862 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15863 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15864 fi 15865 fi 15866 15867 fi 15868 fi 15869 fi 15870 fi 15871 15872 if test "x$FOUND_MAKE" = x; then 15873 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 15874 fi 15875 else 15876 # Try our hardest to locate a correct version of GNU make 15877 for ac_prog in gmake 15878 do 15879 # Extract the first word of "$ac_prog", so it can be a program name with args. 15880 set dummy $ac_prog; ac_word=$2 15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15882 $as_echo_n "checking for $ac_word... " >&6; } 15883 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15884 $as_echo_n "(cached) " >&6 15885 else 15886 case $CHECK_GMAKE in 15887 [\\/]* | ?:[\\/]*) 15888 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15889 ;; 15890 *) 15891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15892 for as_dir in $PATH 15893 do 15894 IFS=$as_save_IFS 15895 test -z "$as_dir" && as_dir=. 15896 for ac_exec_ext in '' $ac_executable_extensions; do 15897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15898 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15900 break 2 15901 fi 15902 done 15903 done 15904 IFS=$as_save_IFS 15905 15906 ;; 15907 esac 15908 fi 15909 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15910 if test -n "$CHECK_GMAKE"; then 15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15912 $as_echo "$CHECK_GMAKE" >&6; } 15913 else 15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15915 $as_echo "no" >&6; } 15916 fi 15917 15918 15919 test -n "$CHECK_GMAKE" && break 15920 done 15921 15922 15923 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15924 DESCRIPTION="gmake in PATH" 15925 15926 # On Cygwin, we require a newer version of make than on other platforms 15927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15928 MAKE_VERSION_EXPR="-e 4\." 15929 MAKE_REQUIRED_VERSION="4.0" 15930 else 15931 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 15932 MAKE_REQUIRED_VERSION="3.81" 15933 fi 15934 15935 if test "x$MAKE_CANDIDATE" != x; then 15936 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15937 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15938 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15939 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15940 if test "x$IS_GNU_MAKE" = x; then 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15942 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15943 else 15944 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 15945 if test "x$IS_MODERN_MAKE" = x; then 15946 { $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 15947 $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;} 15948 else 15949 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15951 MAKE_EXPECTED_ENV='cygwin' 15952 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15953 MAKE_EXPECTED_ENV='msys' 15954 else 15955 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15956 fi 15957 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15958 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15959 else 15960 # Not relevant for non-Windows 15961 IS_MAKE_CORRECT_ENV=true 15962 fi 15963 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15964 { $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 15965 $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;} 15966 else 15967 FOUND_MAKE=$MAKE_CANDIDATE 15968 15969 # Only process if variable expands to non-empty 15970 15971 if test "x$FOUND_MAKE" != x; then 15972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15973 15974 # First separate the path from the arguments. This will split at the first 15975 # space. 15976 complete="$FOUND_MAKE" 15977 path="${complete%% *}" 15978 tmp="$complete EOL" 15979 arguments="${tmp#* }" 15980 15981 # Input might be given as Windows format, start by converting to 15982 # unix format. 15983 new_path=`$CYGPATH -u "$path"` 15984 15985 # Now try to locate executable using which 15986 new_path=`$WHICH "$new_path" 2> /dev/null` 15987 # bat and cmd files are not always considered executable in cygwin causing which 15988 # to not find them 15989 if test "x$new_path" = x \ 15990 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15991 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15992 new_path=`$CYGPATH -u "$path"` 15993 fi 15994 if test "x$new_path" = x; then 15995 # Oops. Which didn't find the executable. 15996 # The splitting of arguments from the executable at a space might have been incorrect, 15997 # since paths with space are more likely in Windows. Give it another try with the whole 15998 # argument. 15999 path="$complete" 16000 arguments="EOL" 16001 new_path=`$CYGPATH -u "$path"` 16002 new_path=`$WHICH "$new_path" 2> /dev/null` 16003 # bat and cmd files are not always considered executable in cygwin causing which 16004 # to not find them 16005 if test "x$new_path" = x \ 16006 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16007 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16008 new_path=`$CYGPATH -u "$path"` 16009 fi 16010 if test "x$new_path" = x; then 16011 # It's still not found. Now this is an unrecoverable error. 16012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16013 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16014 has_space=`$ECHO "$complete" | $GREP " "` 16015 if test "x$has_space" != x; then 16016 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16017 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16018 fi 16019 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16020 fi 16021 fi 16022 16023 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16024 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16025 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16026 # "foo.exe" is OK but "foo" is an error. 16027 # 16028 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16029 # It is also a way to make sure we got the proper file name for the real test later on. 16030 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16031 if test "x$test_shortpath" = x; then 16032 # Short path failed, file does not exist as specified. 16033 # Try adding .exe or .cmd 16034 if test -f "${new_path}.exe"; then 16035 input_to_shortpath="${new_path}.exe" 16036 elif test -f "${new_path}.cmd"; then 16037 input_to_shortpath="${new_path}.cmd" 16038 else 16039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16040 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16041 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16042 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16043 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16044 fi 16045 else 16046 input_to_shortpath="$new_path" 16047 fi 16048 16049 # Call helper function which possibly converts this using DOS-style short mode. 16050 # If so, the updated path is stored in $new_path. 16051 new_path="$input_to_shortpath" 16052 16053 input_path="$input_to_shortpath" 16054 # Check if we need to convert this using DOS-style short mode. If the path 16055 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16056 # take no chances and rewrite it. 16057 # Note: m4 eats our [], so we need to use [ and ] instead. 16058 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16059 if test "x$has_forbidden_chars" != x; then 16060 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16061 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16062 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16063 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16064 # Going to short mode and back again did indeed matter. Since short mode is 16065 # case insensitive, let's make it lowercase to improve readability. 16066 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16067 # Now convert it back to Unix-stile (cygpath) 16068 input_path=`$CYGPATH -u "$shortmode_path"` 16069 new_path="$input_path" 16070 fi 16071 fi 16072 16073 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16074 if test "x$test_cygdrive_prefix" = x; then 16075 # As a simple fix, exclude /usr/bin since it's not a real path. 16076 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16077 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16078 # a path prefixed by /cygdrive for fixpath to work. 16079 new_path="$CYGWIN_ROOT_PATH$input_path" 16080 fi 16081 fi 16082 16083 # remove trailing .exe if any 16084 new_path="${new_path/%.exe/}" 16085 16086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16087 16088 # First separate the path from the arguments. This will split at the first 16089 # space. 16090 complete="$FOUND_MAKE" 16091 path="${complete%% *}" 16092 tmp="$complete EOL" 16093 arguments="${tmp#* }" 16094 16095 # Input might be given as Windows format, start by converting to 16096 # unix format. 16097 new_path="$path" 16098 16099 windows_path="$new_path" 16100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16101 unix_path=`$CYGPATH -u "$windows_path"` 16102 new_path="$unix_path" 16103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16105 new_path="$unix_path" 16106 fi 16107 16108 16109 # Now try to locate executable using which 16110 new_path=`$WHICH "$new_path" 2> /dev/null` 16111 16112 if test "x$new_path" = x; then 16113 # Oops. Which didn't find the executable. 16114 # The splitting of arguments from the executable at a space might have been incorrect, 16115 # since paths with space are more likely in Windows. Give it another try with the whole 16116 # argument. 16117 path="$complete" 16118 arguments="EOL" 16119 new_path="$path" 16120 16121 windows_path="$new_path" 16122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16123 unix_path=`$CYGPATH -u "$windows_path"` 16124 new_path="$unix_path" 16125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16126 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16127 new_path="$unix_path" 16128 fi 16129 16130 16131 new_path=`$WHICH "$new_path" 2> /dev/null` 16132 # bat and cmd files are not always considered executable in MSYS causing which 16133 # to not find them 16134 if test "x$new_path" = x \ 16135 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16136 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16137 new_path="$path" 16138 16139 windows_path="$new_path" 16140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16141 unix_path=`$CYGPATH -u "$windows_path"` 16142 new_path="$unix_path" 16143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16144 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16145 new_path="$unix_path" 16146 fi 16147 16148 fi 16149 16150 if test "x$new_path" = x; then 16151 # It's still not found. Now this is an unrecoverable error. 16152 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16153 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16154 has_space=`$ECHO "$complete" | $GREP " "` 16155 if test "x$has_space" != x; then 16156 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16157 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16158 fi 16159 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16160 fi 16161 fi 16162 16163 # Now new_path has a complete unix path to the binary 16164 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16165 # Keep paths in /bin as-is, but remove trailing .exe if any 16166 new_path="${new_path/%.exe/}" 16167 # Do not save /bin paths to all_fixpath_prefixes! 16168 else 16169 # Not in mixed or Windows style, start by that. 16170 new_path=`cmd //c echo $new_path` 16171 16172 input_path="$new_path" 16173 # Check if we need to convert this using DOS-style short mode. If the path 16174 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16175 # take no chances and rewrite it. 16176 # Note: m4 eats our [], so we need to use [ and ] instead. 16177 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16178 if test "x$has_forbidden_chars" != x; then 16179 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16180 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16181 fi 16182 16183 # Output is in $new_path 16184 16185 windows_path="$new_path" 16186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16187 unix_path=`$CYGPATH -u "$windows_path"` 16188 new_path="$unix_path" 16189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16190 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16191 new_path="$unix_path" 16192 fi 16193 16194 # remove trailing .exe if any 16195 new_path="${new_path/%.exe/}" 16196 16197 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16198 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16199 fi 16200 16201 else 16202 # We're on a unix platform. Hooray! :) 16203 # First separate the path from the arguments. This will split at the first 16204 # space. 16205 complete="$FOUND_MAKE" 16206 path="${complete%% *}" 16207 tmp="$complete EOL" 16208 arguments="${tmp#* }" 16209 16210 # Cannot rely on the command "which" here since it doesn't always work. 16211 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16212 if test -z "$is_absolute_path"; then 16213 # Path to executable is not absolute. Find it. 16214 IFS_save="$IFS" 16215 IFS=: 16216 for p in $PATH; do 16217 if test -f "$p/$path" && test -x "$p/$path"; then 16218 new_path="$p/$path" 16219 break 16220 fi 16221 done 16222 IFS="$IFS_save" 16223 else 16224 # This is an absolute path, we can use it without further modifications. 16225 new_path="$path" 16226 fi 16227 16228 if test "x$new_path" = x; then 16229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16230 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16231 has_space=`$ECHO "$complete" | $GREP " "` 16232 if test "x$has_space" != x; then 16233 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16234 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16235 fi 16236 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16237 fi 16238 fi 16239 16240 # Now join together the path and the arguments once again 16241 if test "x$arguments" != xEOL; then 16242 new_complete="$new_path ${arguments% *}" 16243 else 16244 new_complete="$new_path" 16245 fi 16246 16247 if test "x$complete" != "x$new_complete"; then 16248 FOUND_MAKE="$new_complete" 16249 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16250 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16251 fi 16252 fi 16253 16254 fi 16255 fi 16256 fi 16257 fi 16258 16259 16260 if test "x$FOUND_MAKE" = x; then 16261 for ac_prog in make 16262 do 16263 # Extract the first word of "$ac_prog", so it can be a program name with args. 16264 set dummy $ac_prog; ac_word=$2 16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16266 $as_echo_n "checking for $ac_word... " >&6; } 16267 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16268 $as_echo_n "(cached) " >&6 16269 else 16270 case $CHECK_MAKE in 16271 [\\/]* | ?:[\\/]*) 16272 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16273 ;; 16274 *) 16275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16276 for as_dir in $PATH 16277 do 16278 IFS=$as_save_IFS 16279 test -z "$as_dir" && as_dir=. 16280 for ac_exec_ext in '' $ac_executable_extensions; do 16281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16282 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16284 break 2 16285 fi 16286 done 16287 done 16288 IFS=$as_save_IFS 16289 16290 ;; 16291 esac 16292 fi 16293 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16294 if test -n "$CHECK_MAKE"; then 16295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16296 $as_echo "$CHECK_MAKE" >&6; } 16297 else 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16299 $as_echo "no" >&6; } 16300 fi 16301 16302 16303 test -n "$CHECK_MAKE" && break 16304 done 16305 16306 16307 MAKE_CANDIDATE=""$CHECK_MAKE"" 16308 DESCRIPTION="make in PATH" 16309 16310 # On Cygwin, we require a newer version of make than on other platforms 16311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16312 MAKE_VERSION_EXPR="-e 4\." 16313 MAKE_REQUIRED_VERSION="4.0" 16314 else 16315 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 16316 MAKE_REQUIRED_VERSION="3.81" 16317 fi 16318 16319 if test "x$MAKE_CANDIDATE" != x; then 16320 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16321 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16322 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16323 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16324 if test "x$IS_GNU_MAKE" = x; then 16325 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16326 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16327 else 16328 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 16329 if test "x$IS_MODERN_MAKE" = x; then 16330 { $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 16331 $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;} 16332 else 16333 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16335 MAKE_EXPECTED_ENV='cygwin' 16336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16337 MAKE_EXPECTED_ENV='msys' 16338 else 16339 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16340 fi 16341 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16342 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16343 else 16344 # Not relevant for non-Windows 16345 IS_MAKE_CORRECT_ENV=true 16346 fi 16347 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16348 { $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 16349 $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;} 16350 else 16351 FOUND_MAKE=$MAKE_CANDIDATE 16352 16353 # Only process if variable expands to non-empty 16354 16355 if test "x$FOUND_MAKE" != x; then 16356 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16357 16358 # First separate the path from the arguments. This will split at the first 16359 # space. 16360 complete="$FOUND_MAKE" 16361 path="${complete%% *}" 16362 tmp="$complete EOL" 16363 arguments="${tmp#* }" 16364 16365 # Input might be given as Windows format, start by converting to 16366 # unix format. 16367 new_path=`$CYGPATH -u "$path"` 16368 16369 # Now try to locate executable using which 16370 new_path=`$WHICH "$new_path" 2> /dev/null` 16371 # bat and cmd files are not always considered executable in cygwin causing which 16372 # to not find them 16373 if test "x$new_path" = x \ 16374 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16375 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16376 new_path=`$CYGPATH -u "$path"` 16377 fi 16378 if test "x$new_path" = x; then 16379 # Oops. Which didn't find the executable. 16380 # The splitting of arguments from the executable at a space might have been incorrect, 16381 # since paths with space are more likely in Windows. Give it another try with the whole 16382 # argument. 16383 path="$complete" 16384 arguments="EOL" 16385 new_path=`$CYGPATH -u "$path"` 16386 new_path=`$WHICH "$new_path" 2> /dev/null` 16387 # bat and cmd files are not always considered executable in cygwin causing which 16388 # to not find them 16389 if test "x$new_path" = x \ 16390 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16391 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16392 new_path=`$CYGPATH -u "$path"` 16393 fi 16394 if test "x$new_path" = x; then 16395 # It's still not found. Now this is an unrecoverable error. 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16397 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16398 has_space=`$ECHO "$complete" | $GREP " "` 16399 if test "x$has_space" != x; then 16400 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16401 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16402 fi 16403 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16404 fi 16405 fi 16406 16407 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16408 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16409 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16410 # "foo.exe" is OK but "foo" is an error. 16411 # 16412 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16413 # It is also a way to make sure we got the proper file name for the real test later on. 16414 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16415 if test "x$test_shortpath" = x; then 16416 # Short path failed, file does not exist as specified. 16417 # Try adding .exe or .cmd 16418 if test -f "${new_path}.exe"; then 16419 input_to_shortpath="${new_path}.exe" 16420 elif test -f "${new_path}.cmd"; then 16421 input_to_shortpath="${new_path}.cmd" 16422 else 16423 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16424 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16425 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16426 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16427 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16428 fi 16429 else 16430 input_to_shortpath="$new_path" 16431 fi 16432 16433 # Call helper function which possibly converts this using DOS-style short mode. 16434 # If so, the updated path is stored in $new_path. 16435 new_path="$input_to_shortpath" 16436 16437 input_path="$input_to_shortpath" 16438 # Check if we need to convert this using DOS-style short mode. If the path 16439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16440 # take no chances and rewrite it. 16441 # Note: m4 eats our [], so we need to use [ and ] instead. 16442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16443 if test "x$has_forbidden_chars" != x; then 16444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16445 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16446 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16447 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16448 # Going to short mode and back again did indeed matter. Since short mode is 16449 # case insensitive, let's make it lowercase to improve readability. 16450 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16451 # Now convert it back to Unix-stile (cygpath) 16452 input_path=`$CYGPATH -u "$shortmode_path"` 16453 new_path="$input_path" 16454 fi 16455 fi 16456 16457 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16458 if test "x$test_cygdrive_prefix" = x; then 16459 # As a simple fix, exclude /usr/bin since it's not a real path. 16460 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16461 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16462 # a path prefixed by /cygdrive for fixpath to work. 16463 new_path="$CYGWIN_ROOT_PATH$input_path" 16464 fi 16465 fi 16466 16467 # remove trailing .exe if any 16468 new_path="${new_path/%.exe/}" 16469 16470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16471 16472 # First separate the path from the arguments. This will split at the first 16473 # space. 16474 complete="$FOUND_MAKE" 16475 path="${complete%% *}" 16476 tmp="$complete EOL" 16477 arguments="${tmp#* }" 16478 16479 # Input might be given as Windows format, start by converting to 16480 # unix format. 16481 new_path="$path" 16482 16483 windows_path="$new_path" 16484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16485 unix_path=`$CYGPATH -u "$windows_path"` 16486 new_path="$unix_path" 16487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16489 new_path="$unix_path" 16490 fi 16491 16492 16493 # Now try to locate executable using which 16494 new_path=`$WHICH "$new_path" 2> /dev/null` 16495 16496 if test "x$new_path" = x; then 16497 # Oops. Which didn't find the executable. 16498 # The splitting of arguments from the executable at a space might have been incorrect, 16499 # since paths with space are more likely in Windows. Give it another try with the whole 16500 # argument. 16501 path="$complete" 16502 arguments="EOL" 16503 new_path="$path" 16504 16505 windows_path="$new_path" 16506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16507 unix_path=`$CYGPATH -u "$windows_path"` 16508 new_path="$unix_path" 16509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16510 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16511 new_path="$unix_path" 16512 fi 16513 16514 16515 new_path=`$WHICH "$new_path" 2> /dev/null` 16516 # bat and cmd files are not always considered executable in MSYS causing which 16517 # to not find them 16518 if test "x$new_path" = x \ 16519 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16520 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16521 new_path="$path" 16522 16523 windows_path="$new_path" 16524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16525 unix_path=`$CYGPATH -u "$windows_path"` 16526 new_path="$unix_path" 16527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16528 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16529 new_path="$unix_path" 16530 fi 16531 16532 fi 16533 16534 if test "x$new_path" = x; then 16535 # It's still not found. Now this is an unrecoverable error. 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16537 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16538 has_space=`$ECHO "$complete" | $GREP " "` 16539 if test "x$has_space" != x; then 16540 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16541 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16542 fi 16543 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16544 fi 16545 fi 16546 16547 # Now new_path has a complete unix path to the binary 16548 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16549 # Keep paths in /bin as-is, but remove trailing .exe if any 16550 new_path="${new_path/%.exe/}" 16551 # Do not save /bin paths to all_fixpath_prefixes! 16552 else 16553 # Not in mixed or Windows style, start by that. 16554 new_path=`cmd //c echo $new_path` 16555 16556 input_path="$new_path" 16557 # Check if we need to convert this using DOS-style short mode. If the path 16558 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16559 # take no chances and rewrite it. 16560 # Note: m4 eats our [], so we need to use [ and ] instead. 16561 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16562 if test "x$has_forbidden_chars" != x; then 16563 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16564 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16565 fi 16566 16567 # Output is in $new_path 16568 16569 windows_path="$new_path" 16570 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16571 unix_path=`$CYGPATH -u "$windows_path"` 16572 new_path="$unix_path" 16573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16574 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16575 new_path="$unix_path" 16576 fi 16577 16578 # remove trailing .exe if any 16579 new_path="${new_path/%.exe/}" 16580 16581 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16582 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16583 fi 16584 16585 else 16586 # We're on a unix platform. Hooray! :) 16587 # First separate the path from the arguments. This will split at the first 16588 # space. 16589 complete="$FOUND_MAKE" 16590 path="${complete%% *}" 16591 tmp="$complete EOL" 16592 arguments="${tmp#* }" 16593 16594 # Cannot rely on the command "which" here since it doesn't always work. 16595 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16596 if test -z "$is_absolute_path"; then 16597 # Path to executable is not absolute. Find it. 16598 IFS_save="$IFS" 16599 IFS=: 16600 for p in $PATH; do 16601 if test -f "$p/$path" && test -x "$p/$path"; then 16602 new_path="$p/$path" 16603 break 16604 fi 16605 done 16606 IFS="$IFS_save" 16607 else 16608 # This is an absolute path, we can use it without further modifications. 16609 new_path="$path" 16610 fi 16611 16612 if test "x$new_path" = x; then 16613 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16614 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16615 has_space=`$ECHO "$complete" | $GREP " "` 16616 if test "x$has_space" != x; then 16617 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16618 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16619 fi 16620 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16621 fi 16622 fi 16623 16624 # Now join together the path and the arguments once again 16625 if test "x$arguments" != xEOL; then 16626 new_complete="$new_path ${arguments% *}" 16627 else 16628 new_complete="$new_path" 16629 fi 16630 16631 if test "x$complete" != "x$new_complete"; then 16632 FOUND_MAKE="$new_complete" 16633 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16634 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16635 fi 16636 fi 16637 16638 fi 16639 fi 16640 fi 16641 fi 16642 16643 fi 16644 16645 if test "x$FOUND_MAKE" = x; then 16646 if test "x$TOOLCHAIN_PATH" != x; then 16647 # We have a toolchain path, check that as well before giving up. 16648 OLD_PATH=$PATH 16649 PATH=$TOOLCHAIN_PATH:$PATH 16650 for ac_prog in gmake 16651 do 16652 # Extract the first word of "$ac_prog", so it can be a program name with args. 16653 set dummy $ac_prog; ac_word=$2 16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16655 $as_echo_n "checking for $ac_word... " >&6; } 16656 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16657 $as_echo_n "(cached) " >&6 16658 else 16659 case $CHECK_TOOLSDIR_GMAKE in 16660 [\\/]* | ?:[\\/]*) 16661 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16662 ;; 16663 *) 16664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16665 for as_dir in $PATH 16666 do 16667 IFS=$as_save_IFS 16668 test -z "$as_dir" && as_dir=. 16669 for ac_exec_ext in '' $ac_executable_extensions; do 16670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16671 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16673 break 2 16674 fi 16675 done 16676 done 16677 IFS=$as_save_IFS 16678 16679 ;; 16680 esac 16681 fi 16682 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16683 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16685 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16686 else 16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16688 $as_echo "no" >&6; } 16689 fi 16690 16691 16692 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16693 done 16694 16695 16696 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16697 DESCRIPTION="gmake in tools-dir" 16698 16699 # On Cygwin, we require a newer version of make than on other platforms 16700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16701 MAKE_VERSION_EXPR="-e 4\." 16702 MAKE_REQUIRED_VERSION="4.0" 16703 else 16704 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 16705 MAKE_REQUIRED_VERSION="3.81" 16706 fi 16707 16708 if test "x$MAKE_CANDIDATE" != x; then 16709 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16710 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16711 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16712 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16713 if test "x$IS_GNU_MAKE" = x; then 16714 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16715 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16716 else 16717 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 16718 if test "x$IS_MODERN_MAKE" = x; then 16719 { $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 16720 $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;} 16721 else 16722 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16724 MAKE_EXPECTED_ENV='cygwin' 16725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16726 MAKE_EXPECTED_ENV='msys' 16727 else 16728 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16729 fi 16730 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16731 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16732 else 16733 # Not relevant for non-Windows 16734 IS_MAKE_CORRECT_ENV=true 16735 fi 16736 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16737 { $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 16738 $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;} 16739 else 16740 FOUND_MAKE=$MAKE_CANDIDATE 16741 16742 # Only process if variable expands to non-empty 16743 16744 if test "x$FOUND_MAKE" != x; then 16745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16746 16747 # First separate the path from the arguments. This will split at the first 16748 # space. 16749 complete="$FOUND_MAKE" 16750 path="${complete%% *}" 16751 tmp="$complete EOL" 16752 arguments="${tmp#* }" 16753 16754 # Input might be given as Windows format, start by converting to 16755 # unix format. 16756 new_path=`$CYGPATH -u "$path"` 16757 16758 # Now try to locate executable using which 16759 new_path=`$WHICH "$new_path" 2> /dev/null` 16760 # bat and cmd files are not always considered executable in cygwin causing which 16761 # to not find them 16762 if test "x$new_path" = x \ 16763 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16764 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16765 new_path=`$CYGPATH -u "$path"` 16766 fi 16767 if test "x$new_path" = x; then 16768 # Oops. Which didn't find the executable. 16769 # The splitting of arguments from the executable at a space might have been incorrect, 16770 # since paths with space are more likely in Windows. Give it another try with the whole 16771 # argument. 16772 path="$complete" 16773 arguments="EOL" 16774 new_path=`$CYGPATH -u "$path"` 16775 new_path=`$WHICH "$new_path" 2> /dev/null` 16776 # bat and cmd files are not always considered executable in cygwin causing which 16777 # to not find them 16778 if test "x$new_path" = x \ 16779 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16780 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16781 new_path=`$CYGPATH -u "$path"` 16782 fi 16783 if test "x$new_path" = x; then 16784 # It's still not found. Now this is an unrecoverable error. 16785 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16786 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16787 has_space=`$ECHO "$complete" | $GREP " "` 16788 if test "x$has_space" != x; then 16789 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16790 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16791 fi 16792 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16793 fi 16794 fi 16795 16796 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16797 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16798 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16799 # "foo.exe" is OK but "foo" is an error. 16800 # 16801 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16802 # It is also a way to make sure we got the proper file name for the real test later on. 16803 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16804 if test "x$test_shortpath" = x; then 16805 # Short path failed, file does not exist as specified. 16806 # Try adding .exe or .cmd 16807 if test -f "${new_path}.exe"; then 16808 input_to_shortpath="${new_path}.exe" 16809 elif test -f "${new_path}.cmd"; then 16810 input_to_shortpath="${new_path}.cmd" 16811 else 16812 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16813 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16814 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16815 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16816 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16817 fi 16818 else 16819 input_to_shortpath="$new_path" 16820 fi 16821 16822 # Call helper function which possibly converts this using DOS-style short mode. 16823 # If so, the updated path is stored in $new_path. 16824 new_path="$input_to_shortpath" 16825 16826 input_path="$input_to_shortpath" 16827 # Check if we need to convert this using DOS-style short mode. If the path 16828 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16829 # take no chances and rewrite it. 16830 # Note: m4 eats our [], so we need to use [ and ] instead. 16831 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16832 if test "x$has_forbidden_chars" != x; then 16833 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16834 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16835 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16836 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16837 # Going to short mode and back again did indeed matter. Since short mode is 16838 # case insensitive, let's make it lowercase to improve readability. 16839 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16840 # Now convert it back to Unix-stile (cygpath) 16841 input_path=`$CYGPATH -u "$shortmode_path"` 16842 new_path="$input_path" 16843 fi 16844 fi 16845 16846 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16847 if test "x$test_cygdrive_prefix" = x; then 16848 # As a simple fix, exclude /usr/bin since it's not a real path. 16849 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16850 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16851 # a path prefixed by /cygdrive for fixpath to work. 16852 new_path="$CYGWIN_ROOT_PATH$input_path" 16853 fi 16854 fi 16855 16856 # remove trailing .exe if any 16857 new_path="${new_path/%.exe/}" 16858 16859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16860 16861 # First separate the path from the arguments. This will split at the first 16862 # space. 16863 complete="$FOUND_MAKE" 16864 path="${complete%% *}" 16865 tmp="$complete EOL" 16866 arguments="${tmp#* }" 16867 16868 # Input might be given as Windows format, start by converting to 16869 # unix format. 16870 new_path="$path" 16871 16872 windows_path="$new_path" 16873 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16874 unix_path=`$CYGPATH -u "$windows_path"` 16875 new_path="$unix_path" 16876 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16877 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16878 new_path="$unix_path" 16879 fi 16880 16881 16882 # Now try to locate executable using which 16883 new_path=`$WHICH "$new_path" 2> /dev/null` 16884 16885 if test "x$new_path" = x; then 16886 # Oops. Which didn't find the executable. 16887 # The splitting of arguments from the executable at a space might have been incorrect, 16888 # since paths with space are more likely in Windows. Give it another try with the whole 16889 # argument. 16890 path="$complete" 16891 arguments="EOL" 16892 new_path="$path" 16893 16894 windows_path="$new_path" 16895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16896 unix_path=`$CYGPATH -u "$windows_path"` 16897 new_path="$unix_path" 16898 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16899 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16900 new_path="$unix_path" 16901 fi 16902 16903 16904 new_path=`$WHICH "$new_path" 2> /dev/null` 16905 # bat and cmd files are not always considered executable in MSYS causing which 16906 # to not find them 16907 if test "x$new_path" = x \ 16908 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16909 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16910 new_path="$path" 16911 16912 windows_path="$new_path" 16913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16914 unix_path=`$CYGPATH -u "$windows_path"` 16915 new_path="$unix_path" 16916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16917 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16918 new_path="$unix_path" 16919 fi 16920 16921 fi 16922 16923 if test "x$new_path" = x; then 16924 # It's still not found. Now this is an unrecoverable error. 16925 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16926 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16927 has_space=`$ECHO "$complete" | $GREP " "` 16928 if test "x$has_space" != x; then 16929 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16930 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16931 fi 16932 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16933 fi 16934 fi 16935 16936 # Now new_path has a complete unix path to the binary 16937 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16938 # Keep paths in /bin as-is, but remove trailing .exe if any 16939 new_path="${new_path/%.exe/}" 16940 # Do not save /bin paths to all_fixpath_prefixes! 16941 else 16942 # Not in mixed or Windows style, start by that. 16943 new_path=`cmd //c echo $new_path` 16944 16945 input_path="$new_path" 16946 # Check if we need to convert this using DOS-style short mode. If the path 16947 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16948 # take no chances and rewrite it. 16949 # Note: m4 eats our [], so we need to use [ and ] instead. 16950 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16951 if test "x$has_forbidden_chars" != x; then 16952 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16953 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16954 fi 16955 16956 # Output is in $new_path 16957 16958 windows_path="$new_path" 16959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16960 unix_path=`$CYGPATH -u "$windows_path"` 16961 new_path="$unix_path" 16962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16963 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16964 new_path="$unix_path" 16965 fi 16966 16967 # remove trailing .exe if any 16968 new_path="${new_path/%.exe/}" 16969 16970 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16971 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16972 fi 16973 16974 else 16975 # We're on a unix platform. Hooray! :) 16976 # First separate the path from the arguments. This will split at the first 16977 # space. 16978 complete="$FOUND_MAKE" 16979 path="${complete%% *}" 16980 tmp="$complete EOL" 16981 arguments="${tmp#* }" 16982 16983 # Cannot rely on the command "which" here since it doesn't always work. 16984 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16985 if test -z "$is_absolute_path"; then 16986 # Path to executable is not absolute. Find it. 16987 IFS_save="$IFS" 16988 IFS=: 16989 for p in $PATH; do 16990 if test -f "$p/$path" && test -x "$p/$path"; then 16991 new_path="$p/$path" 16992 break 16993 fi 16994 done 16995 IFS="$IFS_save" 16996 else 16997 # This is an absolute path, we can use it without further modifications. 16998 new_path="$path" 16999 fi 17000 17001 if test "x$new_path" = x; then 17002 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17003 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17004 has_space=`$ECHO "$complete" | $GREP " "` 17005 if test "x$has_space" != x; then 17006 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17007 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17008 fi 17009 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17010 fi 17011 fi 17012 17013 # Now join together the path and the arguments once again 17014 if test "x$arguments" != xEOL; then 17015 new_complete="$new_path ${arguments% *}" 17016 else 17017 new_complete="$new_path" 17018 fi 17019 17020 if test "x$complete" != "x$new_complete"; then 17021 FOUND_MAKE="$new_complete" 17022 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17023 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17024 fi 17025 fi 17026 17027 fi 17028 fi 17029 fi 17030 fi 17031 17032 if test "x$FOUND_MAKE" = x; then 17033 for ac_prog in make 17034 do 17035 # Extract the first word of "$ac_prog", so it can be a program name with args. 17036 set dummy $ac_prog; ac_word=$2 17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17038 $as_echo_n "checking for $ac_word... " >&6; } 17039 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 17040 $as_echo_n "(cached) " >&6 17041 else 17042 case $CHECK_TOOLSDIR_MAKE in 17043 [\\/]* | ?:[\\/]*) 17044 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 17045 ;; 17046 *) 17047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17048 for as_dir in $PATH 17049 do 17050 IFS=$as_save_IFS 17051 test -z "$as_dir" && as_dir=. 17052 for ac_exec_ext in '' $ac_executable_extensions; do 17053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17054 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 17055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17056 break 2 17057 fi 17058 done 17059 done 17060 IFS=$as_save_IFS 17061 17062 ;; 17063 esac 17064 fi 17065 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 17066 if test -n "$CHECK_TOOLSDIR_MAKE"; then 17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 17068 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 17069 else 17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17071 $as_echo "no" >&6; } 17072 fi 17073 17074 17075 test -n "$CHECK_TOOLSDIR_MAKE" && break 17076 done 17077 17078 17079 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 17080 DESCRIPTION="make in tools-dir" 17081 17082 # On Cygwin, we require a newer version of make than on other platforms 17083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17084 MAKE_VERSION_EXPR="-e 4\." 17085 MAKE_REQUIRED_VERSION="4.0" 17086 else 17087 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17088 MAKE_REQUIRED_VERSION="3.81" 17089 fi 17090 17091 if test "x$MAKE_CANDIDATE" != x; then 17092 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17093 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17094 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17095 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17096 if test "x$IS_GNU_MAKE" = x; then 17097 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17098 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17099 else 17100 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17101 if test "x$IS_MODERN_MAKE" = x; then 17102 { $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 17103 $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;} 17104 else 17105 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17107 MAKE_EXPECTED_ENV='cygwin' 17108 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17109 MAKE_EXPECTED_ENV='msys' 17110 else 17111 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17112 fi 17113 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17114 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17115 else 17116 # Not relevant for non-Windows 17117 IS_MAKE_CORRECT_ENV=true 17118 fi 17119 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17120 { $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 17121 $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;} 17122 else 17123 FOUND_MAKE=$MAKE_CANDIDATE 17124 17125 # Only process if variable expands to non-empty 17126 17127 if test "x$FOUND_MAKE" != x; then 17128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17129 17130 # First separate the path from the arguments. This will split at the first 17131 # space. 17132 complete="$FOUND_MAKE" 17133 path="${complete%% *}" 17134 tmp="$complete EOL" 17135 arguments="${tmp#* }" 17136 17137 # Input might be given as Windows format, start by converting to 17138 # unix format. 17139 new_path=`$CYGPATH -u "$path"` 17140 17141 # Now try to locate executable using which 17142 new_path=`$WHICH "$new_path" 2> /dev/null` 17143 # bat and cmd files are not always considered executable in cygwin causing which 17144 # to not find them 17145 if test "x$new_path" = x \ 17146 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17147 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17148 new_path=`$CYGPATH -u "$path"` 17149 fi 17150 if test "x$new_path" = x; then 17151 # Oops. Which didn't find the executable. 17152 # The splitting of arguments from the executable at a space might have been incorrect, 17153 # since paths with space are more likely in Windows. Give it another try with the whole 17154 # argument. 17155 path="$complete" 17156 arguments="EOL" 17157 new_path=`$CYGPATH -u "$path"` 17158 new_path=`$WHICH "$new_path" 2> /dev/null` 17159 # bat and cmd files are not always considered executable in cygwin causing which 17160 # to not find them 17161 if test "x$new_path" = x \ 17162 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17163 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17164 new_path=`$CYGPATH -u "$path"` 17165 fi 17166 if test "x$new_path" = x; then 17167 # It's still not found. Now this is an unrecoverable error. 17168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17169 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17170 has_space=`$ECHO "$complete" | $GREP " "` 17171 if test "x$has_space" != x; then 17172 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17173 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17174 fi 17175 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17176 fi 17177 fi 17178 17179 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17180 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17181 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17182 # "foo.exe" is OK but "foo" is an error. 17183 # 17184 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17185 # It is also a way to make sure we got the proper file name for the real test later on. 17186 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17187 if test "x$test_shortpath" = x; then 17188 # Short path failed, file does not exist as specified. 17189 # Try adding .exe or .cmd 17190 if test -f "${new_path}.exe"; then 17191 input_to_shortpath="${new_path}.exe" 17192 elif test -f "${new_path}.cmd"; then 17193 input_to_shortpath="${new_path}.cmd" 17194 else 17195 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17196 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17197 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17198 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17199 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17200 fi 17201 else 17202 input_to_shortpath="$new_path" 17203 fi 17204 17205 # Call helper function which possibly converts this using DOS-style short mode. 17206 # If so, the updated path is stored in $new_path. 17207 new_path="$input_to_shortpath" 17208 17209 input_path="$input_to_shortpath" 17210 # Check if we need to convert this using DOS-style short mode. If the path 17211 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17212 # take no chances and rewrite it. 17213 # Note: m4 eats our [], so we need to use [ and ] instead. 17214 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17215 if test "x$has_forbidden_chars" != x; then 17216 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17217 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17218 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17219 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17220 # Going to short mode and back again did indeed matter. Since short mode is 17221 # case insensitive, let's make it lowercase to improve readability. 17222 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17223 # Now convert it back to Unix-stile (cygpath) 17224 input_path=`$CYGPATH -u "$shortmode_path"` 17225 new_path="$input_path" 17226 fi 17227 fi 17228 17229 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17230 if test "x$test_cygdrive_prefix" = x; then 17231 # As a simple fix, exclude /usr/bin since it's not a real path. 17232 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17233 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17234 # a path prefixed by /cygdrive for fixpath to work. 17235 new_path="$CYGWIN_ROOT_PATH$input_path" 17236 fi 17237 fi 17238 17239 # remove trailing .exe if any 17240 new_path="${new_path/%.exe/}" 17241 17242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17243 17244 # First separate the path from the arguments. This will split at the first 17245 # space. 17246 complete="$FOUND_MAKE" 17247 path="${complete%% *}" 17248 tmp="$complete EOL" 17249 arguments="${tmp#* }" 17250 17251 # Input might be given as Windows format, start by converting to 17252 # unix format. 17253 new_path="$path" 17254 17255 windows_path="$new_path" 17256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17257 unix_path=`$CYGPATH -u "$windows_path"` 17258 new_path="$unix_path" 17259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17261 new_path="$unix_path" 17262 fi 17263 17264 17265 # Now try to locate executable using which 17266 new_path=`$WHICH "$new_path" 2> /dev/null` 17267 17268 if test "x$new_path" = x; then 17269 # Oops. Which didn't find the executable. 17270 # The splitting of arguments from the executable at a space might have been incorrect, 17271 # since paths with space are more likely in Windows. Give it another try with the whole 17272 # argument. 17273 path="$complete" 17274 arguments="EOL" 17275 new_path="$path" 17276 17277 windows_path="$new_path" 17278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17279 unix_path=`$CYGPATH -u "$windows_path"` 17280 new_path="$unix_path" 17281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17282 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17283 new_path="$unix_path" 17284 fi 17285 17286 17287 new_path=`$WHICH "$new_path" 2> /dev/null` 17288 # bat and cmd files are not always considered executable in MSYS causing which 17289 # to not find them 17290 if test "x$new_path" = x \ 17291 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17292 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17293 new_path="$path" 17294 17295 windows_path="$new_path" 17296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17297 unix_path=`$CYGPATH -u "$windows_path"` 17298 new_path="$unix_path" 17299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17300 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17301 new_path="$unix_path" 17302 fi 17303 17304 fi 17305 17306 if test "x$new_path" = x; then 17307 # It's still not found. Now this is an unrecoverable error. 17308 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17309 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17310 has_space=`$ECHO "$complete" | $GREP " "` 17311 if test "x$has_space" != x; then 17312 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17313 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17314 fi 17315 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17316 fi 17317 fi 17318 17319 # Now new_path has a complete unix path to the binary 17320 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17321 # Keep paths in /bin as-is, but remove trailing .exe if any 17322 new_path="${new_path/%.exe/}" 17323 # Do not save /bin paths to all_fixpath_prefixes! 17324 else 17325 # Not in mixed or Windows style, start by that. 17326 new_path=`cmd //c echo $new_path` 17327 17328 input_path="$new_path" 17329 # Check if we need to convert this using DOS-style short mode. If the path 17330 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17331 # take no chances and rewrite it. 17332 # Note: m4 eats our [], so we need to use [ and ] instead. 17333 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17334 if test "x$has_forbidden_chars" != x; then 17335 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17336 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17337 fi 17338 17339 # Output is in $new_path 17340 17341 windows_path="$new_path" 17342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17343 unix_path=`$CYGPATH -u "$windows_path"` 17344 new_path="$unix_path" 17345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17347 new_path="$unix_path" 17348 fi 17349 17350 # remove trailing .exe if any 17351 new_path="${new_path/%.exe/}" 17352 17353 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17354 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17355 fi 17356 17357 else 17358 # We're on a unix platform. Hooray! :) 17359 # First separate the path from the arguments. This will split at the first 17360 # space. 17361 complete="$FOUND_MAKE" 17362 path="${complete%% *}" 17363 tmp="$complete EOL" 17364 arguments="${tmp#* }" 17365 17366 # Cannot rely on the command "which" here since it doesn't always work. 17367 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17368 if test -z "$is_absolute_path"; then 17369 # Path to executable is not absolute. Find it. 17370 IFS_save="$IFS" 17371 IFS=: 17372 for p in $PATH; do 17373 if test -f "$p/$path" && test -x "$p/$path"; then 17374 new_path="$p/$path" 17375 break 17376 fi 17377 done 17378 IFS="$IFS_save" 17379 else 17380 # This is an absolute path, we can use it without further modifications. 17381 new_path="$path" 17382 fi 17383 17384 if test "x$new_path" = x; then 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17386 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17387 has_space=`$ECHO "$complete" | $GREP " "` 17388 if test "x$has_space" != x; then 17389 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17390 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17391 fi 17392 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17393 fi 17394 fi 17395 17396 # Now join together the path and the arguments once again 17397 if test "x$arguments" != xEOL; then 17398 new_complete="$new_path ${arguments% *}" 17399 else 17400 new_complete="$new_path" 17401 fi 17402 17403 if test "x$complete" != "x$new_complete"; then 17404 FOUND_MAKE="$new_complete" 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17406 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17407 fi 17408 fi 17409 17410 fi 17411 fi 17412 fi 17413 fi 17414 17415 fi 17416 PATH=$OLD_PATH 17417 fi 17418 fi 17419 17420 if test "x$FOUND_MAKE" = x; then 17421 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 17422 fi 17423 fi 17424 17425 MAKE=$FOUND_MAKE 17426 17427 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17428 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17429 17430 17431 # Check if make supports the output sync option and if so, setup using it. 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 17433 $as_echo_n "checking if make --output-sync is supported... " >&6; } 17434 if $MAKE --version -O > /dev/null 2>&1; then 17435 OUTPUT_SYNC_SUPPORTED=true 17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17437 $as_echo "yes" >&6; } 17438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 17439 $as_echo_n "checking for output-sync value... " >&6; } 17440 17441 # Check whether --with-output-sync was given. 17442 if test "${with_output_sync+set}" = set; then : 17443 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 17444 fi 17445 17446 if test "x$OUTPUT_SYNC" = "x"; then 17447 OUTPUT_SYNC=none 17448 fi 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 17450 $as_echo "$OUTPUT_SYNC" >&6; } 17451 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 17452 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 17453 fi 17454 else 17455 OUTPUT_SYNC_SUPPORTED=false 17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17457 $as_echo "no" >&6; } 17458 fi 17459 17460 17461 17462 17463 17464 17465 # Test if find supports -delete 17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17467 $as_echo_n "checking if find supports -delete... " >&6; } 17468 FIND_DELETE="-delete" 17469 17470 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17471 17472 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17473 17474 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17475 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17476 # No, it does not. 17477 rm $DELETEDIR/TestIfFindSupportsDelete 17478 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 17479 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 17480 FIND_DELETE="-print | xargs rm" 17481 else 17482 FIND_DELETE="-exec rm \{\} \+" 17483 fi 17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17485 $as_echo "no" >&6; } 17486 else 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17488 $as_echo "yes" >&6; } 17489 fi 17490 rmdir $DELETEDIR 17491 17492 17493 17494 # These tools might not be installed by default, 17495 # need hint on how to install them. 17496 17497 17498 17499 # Publish this variable in the help. 17500 17501 17502 if test "x$UNZIP" = x; then 17503 # The variable is not set by user, try to locate tool using the code snippet 17504 for ac_prog in unzip 17505 do 17506 # Extract the first word of "$ac_prog", so it can be a program name with args. 17507 set dummy $ac_prog; ac_word=$2 17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17509 $as_echo_n "checking for $ac_word... " >&6; } 17510 if ${ac_cv_path_UNZIP+:} false; then : 17511 $as_echo_n "(cached) " >&6 17512 else 17513 case $UNZIP in 17514 [\\/]* | ?:[\\/]*) 17515 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17516 ;; 17517 *) 17518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17519 for as_dir in $PATH 17520 do 17521 IFS=$as_save_IFS 17522 test -z "$as_dir" && as_dir=. 17523 for ac_exec_ext in '' $ac_executable_extensions; do 17524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17525 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17527 break 2 17528 fi 17529 done 17530 done 17531 IFS=$as_save_IFS 17532 17533 ;; 17534 esac 17535 fi 17536 UNZIP=$ac_cv_path_UNZIP 17537 if test -n "$UNZIP"; then 17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17539 $as_echo "$UNZIP" >&6; } 17540 else 17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17542 $as_echo "no" >&6; } 17543 fi 17544 17545 17546 test -n "$UNZIP" && break 17547 done 17548 17549 else 17550 # The variable is set, but is it from the command line or the environment? 17551 17552 # Try to remove the string !UNZIP! from our list. 17553 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17554 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17555 # If it failed, the variable was not from the command line. Ignore it, 17556 # but warn the user (except for BASH, which is always set by the calling BASH). 17557 if test "xUNZIP" != xBASH; then 17558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17559 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17560 fi 17561 # Try to locate tool using the code snippet 17562 for ac_prog in unzip 17563 do 17564 # Extract the first word of "$ac_prog", so it can be a program name with args. 17565 set dummy $ac_prog; ac_word=$2 17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17567 $as_echo_n "checking for $ac_word... " >&6; } 17568 if ${ac_cv_path_UNZIP+:} false; then : 17569 $as_echo_n "(cached) " >&6 17570 else 17571 case $UNZIP in 17572 [\\/]* | ?:[\\/]*) 17573 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17574 ;; 17575 *) 17576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17577 for as_dir in $PATH 17578 do 17579 IFS=$as_save_IFS 17580 test -z "$as_dir" && as_dir=. 17581 for ac_exec_ext in '' $ac_executable_extensions; do 17582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17583 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17585 break 2 17586 fi 17587 done 17588 done 17589 IFS=$as_save_IFS 17590 17591 ;; 17592 esac 17593 fi 17594 UNZIP=$ac_cv_path_UNZIP 17595 if test -n "$UNZIP"; then 17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17597 $as_echo "$UNZIP" >&6; } 17598 else 17599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17600 $as_echo "no" >&6; } 17601 fi 17602 17603 17604 test -n "$UNZIP" && break 17605 done 17606 17607 else 17608 # If it succeeded, then it was overridden by the user. We will use it 17609 # for the tool. 17610 17611 # First remove it from the list of overridden variables, so we can test 17612 # for unknown variables in the end. 17613 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17614 17615 # Check if the provided tool contains a complete path. 17616 tool_specified="$UNZIP" 17617 tool_basename="${tool_specified##*/}" 17618 if test "x$tool_basename" = "x$tool_specified"; then 17619 # A command without a complete path is provided, search $PATH. 17620 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17621 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17622 # Extract the first word of "$tool_basename", so it can be a program name with args. 17623 set dummy $tool_basename; ac_word=$2 17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17625 $as_echo_n "checking for $ac_word... " >&6; } 17626 if ${ac_cv_path_UNZIP+:} false; then : 17627 $as_echo_n "(cached) " >&6 17628 else 17629 case $UNZIP in 17630 [\\/]* | ?:[\\/]*) 17631 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17632 ;; 17633 *) 17634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17635 for as_dir in $PATH 17636 do 17637 IFS=$as_save_IFS 17638 test -z "$as_dir" && as_dir=. 17639 for ac_exec_ext in '' $ac_executable_extensions; do 17640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17641 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17643 break 2 17644 fi 17645 done 17646 done 17647 IFS=$as_save_IFS 17648 17649 ;; 17650 esac 17651 fi 17652 UNZIP=$ac_cv_path_UNZIP 17653 if test -n "$UNZIP"; then 17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17655 $as_echo "$UNZIP" >&6; } 17656 else 17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17658 $as_echo "no" >&6; } 17659 fi 17660 17661 17662 if test "x$UNZIP" = x; then 17663 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17664 fi 17665 else 17666 # Otherwise we believe it is a complete path. Use it as it is. 17667 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17668 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17670 $as_echo_n "checking for UNZIP... " >&6; } 17671 if test ! -x "$tool_specified"; then 17672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17673 $as_echo "not found" >&6; } 17674 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17675 fi 17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17677 $as_echo "$tool_specified" >&6; } 17678 fi 17679 fi 17680 fi 17681 17682 17683 17684 if test "x$UNZIP" = x; then 17685 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17686 fi 17687 17688 17689 17690 17691 17692 # Publish this variable in the help. 17693 17694 17695 if test "x$ZIP" = x; then 17696 # The variable is not set by user, try to locate tool using the code snippet 17697 for ac_prog in zip 17698 do 17699 # Extract the first word of "$ac_prog", so it can be a program name with args. 17700 set dummy $ac_prog; ac_word=$2 17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17702 $as_echo_n "checking for $ac_word... " >&6; } 17703 if ${ac_cv_path_ZIP+:} false; then : 17704 $as_echo_n "(cached) " >&6 17705 else 17706 case $ZIP in 17707 [\\/]* | ?:[\\/]*) 17708 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17709 ;; 17710 *) 17711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17712 for as_dir in $PATH 17713 do 17714 IFS=$as_save_IFS 17715 test -z "$as_dir" && as_dir=. 17716 for ac_exec_ext in '' $ac_executable_extensions; do 17717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17718 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17720 break 2 17721 fi 17722 done 17723 done 17724 IFS=$as_save_IFS 17725 17726 ;; 17727 esac 17728 fi 17729 ZIP=$ac_cv_path_ZIP 17730 if test -n "$ZIP"; then 17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17732 $as_echo "$ZIP" >&6; } 17733 else 17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17735 $as_echo "no" >&6; } 17736 fi 17737 17738 17739 test -n "$ZIP" && break 17740 done 17741 17742 else 17743 # The variable is set, but is it from the command line or the environment? 17744 17745 # Try to remove the string !ZIP! from our list. 17746 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17747 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17748 # If it failed, the variable was not from the command line. Ignore it, 17749 # but warn the user (except for BASH, which is always set by the calling BASH). 17750 if test "xZIP" != xBASH; then 17751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17752 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17753 fi 17754 # Try to locate tool using the code snippet 17755 for ac_prog in zip 17756 do 17757 # Extract the first word of "$ac_prog", so it can be a program name with args. 17758 set dummy $ac_prog; ac_word=$2 17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17760 $as_echo_n "checking for $ac_word... " >&6; } 17761 if ${ac_cv_path_ZIP+:} false; then : 17762 $as_echo_n "(cached) " >&6 17763 else 17764 case $ZIP in 17765 [\\/]* | ?:[\\/]*) 17766 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17767 ;; 17768 *) 17769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17770 for as_dir in $PATH 17771 do 17772 IFS=$as_save_IFS 17773 test -z "$as_dir" && as_dir=. 17774 for ac_exec_ext in '' $ac_executable_extensions; do 17775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17776 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17778 break 2 17779 fi 17780 done 17781 done 17782 IFS=$as_save_IFS 17783 17784 ;; 17785 esac 17786 fi 17787 ZIP=$ac_cv_path_ZIP 17788 if test -n "$ZIP"; then 17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17790 $as_echo "$ZIP" >&6; } 17791 else 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17793 $as_echo "no" >&6; } 17794 fi 17795 17796 17797 test -n "$ZIP" && break 17798 done 17799 17800 else 17801 # If it succeeded, then it was overridden by the user. We will use it 17802 # for the tool. 17803 17804 # First remove it from the list of overridden variables, so we can test 17805 # for unknown variables in the end. 17806 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17807 17808 # Check if the provided tool contains a complete path. 17809 tool_specified="$ZIP" 17810 tool_basename="${tool_specified##*/}" 17811 if test "x$tool_basename" = "x$tool_specified"; then 17812 # A command without a complete path is provided, search $PATH. 17813 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17814 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17815 # Extract the first word of "$tool_basename", so it can be a program name with args. 17816 set dummy $tool_basename; ac_word=$2 17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17818 $as_echo_n "checking for $ac_word... " >&6; } 17819 if ${ac_cv_path_ZIP+:} false; then : 17820 $as_echo_n "(cached) " >&6 17821 else 17822 case $ZIP in 17823 [\\/]* | ?:[\\/]*) 17824 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17825 ;; 17826 *) 17827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17828 for as_dir in $PATH 17829 do 17830 IFS=$as_save_IFS 17831 test -z "$as_dir" && as_dir=. 17832 for ac_exec_ext in '' $ac_executable_extensions; do 17833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17834 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17836 break 2 17837 fi 17838 done 17839 done 17840 IFS=$as_save_IFS 17841 17842 ;; 17843 esac 17844 fi 17845 ZIP=$ac_cv_path_ZIP 17846 if test -n "$ZIP"; then 17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17848 $as_echo "$ZIP" >&6; } 17849 else 17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17851 $as_echo "no" >&6; } 17852 fi 17853 17854 17855 if test "x$ZIP" = x; then 17856 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17857 fi 17858 else 17859 # Otherwise we believe it is a complete path. Use it as it is. 17860 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17861 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17863 $as_echo_n "checking for ZIP... " >&6; } 17864 if test ! -x "$tool_specified"; then 17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17866 $as_echo "not found" >&6; } 17867 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17868 fi 17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17870 $as_echo "$tool_specified" >&6; } 17871 fi 17872 fi 17873 fi 17874 17875 17876 17877 if test "x$ZIP" = x; then 17878 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17879 fi 17880 17881 17882 17883 # Non-required basic tools 17884 17885 17886 17887 # Publish this variable in the help. 17888 17889 17890 if test "x$LDD" = x; then 17891 # The variable is not set by user, try to locate tool using the code snippet 17892 for ac_prog in ldd 17893 do 17894 # Extract the first word of "$ac_prog", so it can be a program name with args. 17895 set dummy $ac_prog; ac_word=$2 17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17897 $as_echo_n "checking for $ac_word... " >&6; } 17898 if ${ac_cv_path_LDD+:} false; then : 17899 $as_echo_n "(cached) " >&6 17900 else 17901 case $LDD in 17902 [\\/]* | ?:[\\/]*) 17903 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17904 ;; 17905 *) 17906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17907 for as_dir in $PATH 17908 do 17909 IFS=$as_save_IFS 17910 test -z "$as_dir" && as_dir=. 17911 for ac_exec_ext in '' $ac_executable_extensions; do 17912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17913 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17915 break 2 17916 fi 17917 done 17918 done 17919 IFS=$as_save_IFS 17920 17921 ;; 17922 esac 17923 fi 17924 LDD=$ac_cv_path_LDD 17925 if test -n "$LDD"; then 17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17927 $as_echo "$LDD" >&6; } 17928 else 17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17930 $as_echo "no" >&6; } 17931 fi 17932 17933 17934 test -n "$LDD" && break 17935 done 17936 17937 else 17938 # The variable is set, but is it from the command line or the environment? 17939 17940 # Try to remove the string !LDD! from our list. 17941 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17942 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17943 # If it failed, the variable was not from the command line. Ignore it, 17944 # but warn the user (except for BASH, which is always set by the calling BASH). 17945 if test "xLDD" != xBASH; then 17946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17947 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17948 fi 17949 # Try to locate tool using the code snippet 17950 for ac_prog in ldd 17951 do 17952 # Extract the first word of "$ac_prog", so it can be a program name with args. 17953 set dummy $ac_prog; ac_word=$2 17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17955 $as_echo_n "checking for $ac_word... " >&6; } 17956 if ${ac_cv_path_LDD+:} false; then : 17957 $as_echo_n "(cached) " >&6 17958 else 17959 case $LDD in 17960 [\\/]* | ?:[\\/]*) 17961 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17962 ;; 17963 *) 17964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17965 for as_dir in $PATH 17966 do 17967 IFS=$as_save_IFS 17968 test -z "$as_dir" && as_dir=. 17969 for ac_exec_ext in '' $ac_executable_extensions; do 17970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17971 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17973 break 2 17974 fi 17975 done 17976 done 17977 IFS=$as_save_IFS 17978 17979 ;; 17980 esac 17981 fi 17982 LDD=$ac_cv_path_LDD 17983 if test -n "$LDD"; then 17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17985 $as_echo "$LDD" >&6; } 17986 else 17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17988 $as_echo "no" >&6; } 17989 fi 17990 17991 17992 test -n "$LDD" && break 17993 done 17994 17995 else 17996 # If it succeeded, then it was overridden by the user. We will use it 17997 # for the tool. 17998 17999 # First remove it from the list of overridden variables, so we can test 18000 # for unknown variables in the end. 18001 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18002 18003 # Check if the provided tool contains a complete path. 18004 tool_specified="$LDD" 18005 tool_basename="${tool_specified##*/}" 18006 if test "x$tool_basename" = "x$tool_specified"; then 18007 # A command without a complete path is provided, search $PATH. 18008 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 18009 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 18010 # Extract the first word of "$tool_basename", so it can be a program name with args. 18011 set dummy $tool_basename; ac_word=$2 18012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18013 $as_echo_n "checking for $ac_word... " >&6; } 18014 if ${ac_cv_path_LDD+:} false; then : 18015 $as_echo_n "(cached) " >&6 18016 else 18017 case $LDD in 18018 [\\/]* | ?:[\\/]*) 18019 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 18020 ;; 18021 *) 18022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18023 for as_dir in $PATH 18024 do 18025 IFS=$as_save_IFS 18026 test -z "$as_dir" && as_dir=. 18027 for ac_exec_ext in '' $ac_executable_extensions; do 18028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18029 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 18030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18031 break 2 18032 fi 18033 done 18034 done 18035 IFS=$as_save_IFS 18036 18037 ;; 18038 esac 18039 fi 18040 LDD=$ac_cv_path_LDD 18041 if test -n "$LDD"; then 18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 18043 $as_echo "$LDD" >&6; } 18044 else 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18046 $as_echo "no" >&6; } 18047 fi 18048 18049 18050 if test "x$LDD" = x; then 18051 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18052 fi 18053 else 18054 # Otherwise we believe it is a complete path. Use it as it is. 18055 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 18056 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 18058 $as_echo_n "checking for LDD... " >&6; } 18059 if test ! -x "$tool_specified"; then 18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18061 $as_echo "not found" >&6; } 18062 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 18063 fi 18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18065 $as_echo "$tool_specified" >&6; } 18066 fi 18067 fi 18068 fi 18069 18070 18071 if test "x$LDD" = "x"; then 18072 # List shared lib dependencies is used for 18073 # debug output and checking for forbidden dependencies. 18074 # We can build without it. 18075 LDD="true" 18076 fi 18077 18078 18079 # Publish this variable in the help. 18080 18081 18082 if test "x$OTOOL" = x; then 18083 # The variable is not set by user, try to locate tool using the code snippet 18084 for ac_prog in otool 18085 do 18086 # Extract the first word of "$ac_prog", so it can be a program name with args. 18087 set dummy $ac_prog; ac_word=$2 18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18089 $as_echo_n "checking for $ac_word... " >&6; } 18090 if ${ac_cv_path_OTOOL+:} false; then : 18091 $as_echo_n "(cached) " >&6 18092 else 18093 case $OTOOL in 18094 [\\/]* | ?:[\\/]*) 18095 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18096 ;; 18097 *) 18098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18099 for as_dir in $PATH 18100 do 18101 IFS=$as_save_IFS 18102 test -z "$as_dir" && as_dir=. 18103 for ac_exec_ext in '' $ac_executable_extensions; do 18104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18105 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18107 break 2 18108 fi 18109 done 18110 done 18111 IFS=$as_save_IFS 18112 18113 ;; 18114 esac 18115 fi 18116 OTOOL=$ac_cv_path_OTOOL 18117 if test -n "$OTOOL"; then 18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18119 $as_echo "$OTOOL" >&6; } 18120 else 18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18122 $as_echo "no" >&6; } 18123 fi 18124 18125 18126 test -n "$OTOOL" && break 18127 done 18128 18129 else 18130 # The variable is set, but is it from the command line or the environment? 18131 18132 # Try to remove the string !OTOOL! from our list. 18133 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 18134 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18135 # If it failed, the variable was not from the command line. Ignore it, 18136 # but warn the user (except for BASH, which is always set by the calling BASH). 18137 if test "xOTOOL" != xBASH; then 18138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 18139 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 18140 fi 18141 # Try to locate tool using the code snippet 18142 for ac_prog in otool 18143 do 18144 # Extract the first word of "$ac_prog", so it can be a program name with args. 18145 set dummy $ac_prog; ac_word=$2 18146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18147 $as_echo_n "checking for $ac_word... " >&6; } 18148 if ${ac_cv_path_OTOOL+:} false; then : 18149 $as_echo_n "(cached) " >&6 18150 else 18151 case $OTOOL in 18152 [\\/]* | ?:[\\/]*) 18153 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18154 ;; 18155 *) 18156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18157 for as_dir in $PATH 18158 do 18159 IFS=$as_save_IFS 18160 test -z "$as_dir" && as_dir=. 18161 for ac_exec_ext in '' $ac_executable_extensions; do 18162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18163 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18165 break 2 18166 fi 18167 done 18168 done 18169 IFS=$as_save_IFS 18170 18171 ;; 18172 esac 18173 fi 18174 OTOOL=$ac_cv_path_OTOOL 18175 if test -n "$OTOOL"; then 18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18177 $as_echo "$OTOOL" >&6; } 18178 else 18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18180 $as_echo "no" >&6; } 18181 fi 18182 18183 18184 test -n "$OTOOL" && break 18185 done 18186 18187 else 18188 # If it succeeded, then it was overridden by the user. We will use it 18189 # for the tool. 18190 18191 # First remove it from the list of overridden variables, so we can test 18192 # for unknown variables in the end. 18193 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18194 18195 # Check if the provided tool contains a complete path. 18196 tool_specified="$OTOOL" 18197 tool_basename="${tool_specified##*/}" 18198 if test "x$tool_basename" = "x$tool_specified"; then 18199 # A command without a complete path is provided, search $PATH. 18200 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 18201 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 18202 # Extract the first word of "$tool_basename", so it can be a program name with args. 18203 set dummy $tool_basename; ac_word=$2 18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18205 $as_echo_n "checking for $ac_word... " >&6; } 18206 if ${ac_cv_path_OTOOL+:} false; then : 18207 $as_echo_n "(cached) " >&6 18208 else 18209 case $OTOOL in 18210 [\\/]* | ?:[\\/]*) 18211 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18212 ;; 18213 *) 18214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18215 for as_dir in $PATH 18216 do 18217 IFS=$as_save_IFS 18218 test -z "$as_dir" && as_dir=. 18219 for ac_exec_ext in '' $ac_executable_extensions; do 18220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18221 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18223 break 2 18224 fi 18225 done 18226 done 18227 IFS=$as_save_IFS 18228 18229 ;; 18230 esac 18231 fi 18232 OTOOL=$ac_cv_path_OTOOL 18233 if test -n "$OTOOL"; then 18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18235 $as_echo "$OTOOL" >&6; } 18236 else 18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18238 $as_echo "no" >&6; } 18239 fi 18240 18241 18242 if test "x$OTOOL" = x; then 18243 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18244 fi 18245 else 18246 # Otherwise we believe it is a complete path. Use it as it is. 18247 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 18248 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 18250 $as_echo_n "checking for OTOOL... " >&6; } 18251 if test ! -x "$tool_specified"; then 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18253 $as_echo "not found" >&6; } 18254 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 18255 fi 18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18257 $as_echo "$tool_specified" >&6; } 18258 fi 18259 fi 18260 fi 18261 18262 18263 if test "x$OTOOL" = "x"; then 18264 OTOOL="true" 18265 fi 18266 18267 18268 # Publish this variable in the help. 18269 18270 18271 if test "x$READELF" = x; then 18272 # The variable is not set by user, try to locate tool using the code snippet 18273 for ac_prog in greadelf readelf 18274 do 18275 # Extract the first word of "$ac_prog", so it can be a program name with args. 18276 set dummy $ac_prog; ac_word=$2 18277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18278 $as_echo_n "checking for $ac_word... " >&6; } 18279 if ${ac_cv_path_READELF+:} false; then : 18280 $as_echo_n "(cached) " >&6 18281 else 18282 case $READELF in 18283 [\\/]* | ?:[\\/]*) 18284 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18285 ;; 18286 *) 18287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18288 for as_dir in $PATH 18289 do 18290 IFS=$as_save_IFS 18291 test -z "$as_dir" && as_dir=. 18292 for ac_exec_ext in '' $ac_executable_extensions; do 18293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18294 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18296 break 2 18297 fi 18298 done 18299 done 18300 IFS=$as_save_IFS 18301 18302 ;; 18303 esac 18304 fi 18305 READELF=$ac_cv_path_READELF 18306 if test -n "$READELF"; then 18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18308 $as_echo "$READELF" >&6; } 18309 else 18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18311 $as_echo "no" >&6; } 18312 fi 18313 18314 18315 test -n "$READELF" && break 18316 done 18317 18318 else 18319 # The variable is set, but is it from the command line or the environment? 18320 18321 # Try to remove the string !READELF! from our list. 18322 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 18323 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18324 # If it failed, the variable was not from the command line. Ignore it, 18325 # but warn the user (except for BASH, which is always set by the calling BASH). 18326 if test "xREADELF" != xBASH; then 18327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 18328 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 18329 fi 18330 # Try to locate tool using the code snippet 18331 for ac_prog in greadelf readelf 18332 do 18333 # Extract the first word of "$ac_prog", so it can be a program name with args. 18334 set dummy $ac_prog; ac_word=$2 18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18336 $as_echo_n "checking for $ac_word... " >&6; } 18337 if ${ac_cv_path_READELF+:} false; then : 18338 $as_echo_n "(cached) " >&6 18339 else 18340 case $READELF in 18341 [\\/]* | ?:[\\/]*) 18342 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18343 ;; 18344 *) 18345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18346 for as_dir in $PATH 18347 do 18348 IFS=$as_save_IFS 18349 test -z "$as_dir" && as_dir=. 18350 for ac_exec_ext in '' $ac_executable_extensions; do 18351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18352 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18354 break 2 18355 fi 18356 done 18357 done 18358 IFS=$as_save_IFS 18359 18360 ;; 18361 esac 18362 fi 18363 READELF=$ac_cv_path_READELF 18364 if test -n "$READELF"; then 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18366 $as_echo "$READELF" >&6; } 18367 else 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18369 $as_echo "no" >&6; } 18370 fi 18371 18372 18373 test -n "$READELF" && break 18374 done 18375 18376 else 18377 # If it succeeded, then it was overridden by the user. We will use it 18378 # for the tool. 18379 18380 # First remove it from the list of overridden variables, so we can test 18381 # for unknown variables in the end. 18382 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18383 18384 # Check if the provided tool contains a complete path. 18385 tool_specified="$READELF" 18386 tool_basename="${tool_specified##*/}" 18387 if test "x$tool_basename" = "x$tool_specified"; then 18388 # A command without a complete path is provided, search $PATH. 18389 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 18390 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 18391 # Extract the first word of "$tool_basename", so it can be a program name with args. 18392 set dummy $tool_basename; ac_word=$2 18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18394 $as_echo_n "checking for $ac_word... " >&6; } 18395 if ${ac_cv_path_READELF+:} false; then : 18396 $as_echo_n "(cached) " >&6 18397 else 18398 case $READELF in 18399 [\\/]* | ?:[\\/]*) 18400 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18401 ;; 18402 *) 18403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18404 for as_dir in $PATH 18405 do 18406 IFS=$as_save_IFS 18407 test -z "$as_dir" && as_dir=. 18408 for ac_exec_ext in '' $ac_executable_extensions; do 18409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18410 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18412 break 2 18413 fi 18414 done 18415 done 18416 IFS=$as_save_IFS 18417 18418 ;; 18419 esac 18420 fi 18421 READELF=$ac_cv_path_READELF 18422 if test -n "$READELF"; then 18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18424 $as_echo "$READELF" >&6; } 18425 else 18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18427 $as_echo "no" >&6; } 18428 fi 18429 18430 18431 if test "x$READELF" = x; then 18432 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18433 fi 18434 else 18435 # Otherwise we believe it is a complete path. Use it as it is. 18436 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18437 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18439 $as_echo_n "checking for READELF... " >&6; } 18440 if test ! -x "$tool_specified"; then 18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18442 $as_echo "not found" >&6; } 18443 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18444 fi 18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18446 $as_echo "$tool_specified" >&6; } 18447 fi 18448 fi 18449 fi 18450 18451 18452 18453 18454 # Publish this variable in the help. 18455 18456 18457 if test "x$HG" = x; then 18458 # The variable is not set by user, try to locate tool using the code snippet 18459 for ac_prog in hg 18460 do 18461 # Extract the first word of "$ac_prog", so it can be a program name with args. 18462 set dummy $ac_prog; ac_word=$2 18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18464 $as_echo_n "checking for $ac_word... " >&6; } 18465 if ${ac_cv_path_HG+:} false; then : 18466 $as_echo_n "(cached) " >&6 18467 else 18468 case $HG in 18469 [\\/]* | ?:[\\/]*) 18470 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18471 ;; 18472 *) 18473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18474 for as_dir in $PATH 18475 do 18476 IFS=$as_save_IFS 18477 test -z "$as_dir" && as_dir=. 18478 for ac_exec_ext in '' $ac_executable_extensions; do 18479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18480 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18482 break 2 18483 fi 18484 done 18485 done 18486 IFS=$as_save_IFS 18487 18488 ;; 18489 esac 18490 fi 18491 HG=$ac_cv_path_HG 18492 if test -n "$HG"; then 18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18494 $as_echo "$HG" >&6; } 18495 else 18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18497 $as_echo "no" >&6; } 18498 fi 18499 18500 18501 test -n "$HG" && break 18502 done 18503 18504 else 18505 # The variable is set, but is it from the command line or the environment? 18506 18507 # Try to remove the string !HG! from our list. 18508 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18509 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18510 # If it failed, the variable was not from the command line. Ignore it, 18511 # but warn the user (except for BASH, which is always set by the calling BASH). 18512 if test "xHG" != xBASH; then 18513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18514 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18515 fi 18516 # Try to locate tool using the code snippet 18517 for ac_prog in hg 18518 do 18519 # Extract the first word of "$ac_prog", so it can be a program name with args. 18520 set dummy $ac_prog; ac_word=$2 18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18522 $as_echo_n "checking for $ac_word... " >&6; } 18523 if ${ac_cv_path_HG+:} false; then : 18524 $as_echo_n "(cached) " >&6 18525 else 18526 case $HG in 18527 [\\/]* | ?:[\\/]*) 18528 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18529 ;; 18530 *) 18531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18532 for as_dir in $PATH 18533 do 18534 IFS=$as_save_IFS 18535 test -z "$as_dir" && as_dir=. 18536 for ac_exec_ext in '' $ac_executable_extensions; do 18537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18538 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18540 break 2 18541 fi 18542 done 18543 done 18544 IFS=$as_save_IFS 18545 18546 ;; 18547 esac 18548 fi 18549 HG=$ac_cv_path_HG 18550 if test -n "$HG"; then 18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18552 $as_echo "$HG" >&6; } 18553 else 18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18555 $as_echo "no" >&6; } 18556 fi 18557 18558 18559 test -n "$HG" && break 18560 done 18561 18562 else 18563 # If it succeeded, then it was overridden by the user. We will use it 18564 # for the tool. 18565 18566 # First remove it from the list of overridden variables, so we can test 18567 # for unknown variables in the end. 18568 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18569 18570 # Check if the provided tool contains a complete path. 18571 tool_specified="$HG" 18572 tool_basename="${tool_specified##*/}" 18573 if test "x$tool_basename" = "x$tool_specified"; then 18574 # A command without a complete path is provided, search $PATH. 18575 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18576 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18577 # Extract the first word of "$tool_basename", so it can be a program name with args. 18578 set dummy $tool_basename; ac_word=$2 18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18580 $as_echo_n "checking for $ac_word... " >&6; } 18581 if ${ac_cv_path_HG+:} false; then : 18582 $as_echo_n "(cached) " >&6 18583 else 18584 case $HG in 18585 [\\/]* | ?:[\\/]*) 18586 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18587 ;; 18588 *) 18589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18590 for as_dir in $PATH 18591 do 18592 IFS=$as_save_IFS 18593 test -z "$as_dir" && as_dir=. 18594 for ac_exec_ext in '' $ac_executable_extensions; do 18595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18596 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18598 break 2 18599 fi 18600 done 18601 done 18602 IFS=$as_save_IFS 18603 18604 ;; 18605 esac 18606 fi 18607 HG=$ac_cv_path_HG 18608 if test -n "$HG"; then 18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18610 $as_echo "$HG" >&6; } 18611 else 18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18613 $as_echo "no" >&6; } 18614 fi 18615 18616 18617 if test "x$HG" = x; then 18618 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18619 fi 18620 else 18621 # Otherwise we believe it is a complete path. Use it as it is. 18622 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18623 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18625 $as_echo_n "checking for HG... " >&6; } 18626 if test ! -x "$tool_specified"; then 18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18628 $as_echo "not found" >&6; } 18629 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18630 fi 18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18632 $as_echo "$tool_specified" >&6; } 18633 fi 18634 fi 18635 fi 18636 18637 18638 18639 18640 # Publish this variable in the help. 18641 18642 18643 if test "x$STAT" = x; then 18644 # The variable is not set by user, try to locate tool using the code snippet 18645 for ac_prog in stat 18646 do 18647 # Extract the first word of "$ac_prog", so it can be a program name with args. 18648 set dummy $ac_prog; ac_word=$2 18649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18650 $as_echo_n "checking for $ac_word... " >&6; } 18651 if ${ac_cv_path_STAT+:} false; then : 18652 $as_echo_n "(cached) " >&6 18653 else 18654 case $STAT in 18655 [\\/]* | ?:[\\/]*) 18656 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18657 ;; 18658 *) 18659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18660 for as_dir in $PATH 18661 do 18662 IFS=$as_save_IFS 18663 test -z "$as_dir" && as_dir=. 18664 for ac_exec_ext in '' $ac_executable_extensions; do 18665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18666 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18668 break 2 18669 fi 18670 done 18671 done 18672 IFS=$as_save_IFS 18673 18674 ;; 18675 esac 18676 fi 18677 STAT=$ac_cv_path_STAT 18678 if test -n "$STAT"; then 18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18680 $as_echo "$STAT" >&6; } 18681 else 18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18683 $as_echo "no" >&6; } 18684 fi 18685 18686 18687 test -n "$STAT" && break 18688 done 18689 18690 else 18691 # The variable is set, but is it from the command line or the environment? 18692 18693 # Try to remove the string !STAT! from our list. 18694 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18695 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18696 # If it failed, the variable was not from the command line. Ignore it, 18697 # but warn the user (except for BASH, which is always set by the calling BASH). 18698 if test "xSTAT" != xBASH; then 18699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18700 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18701 fi 18702 # Try to locate tool using the code snippet 18703 for ac_prog in stat 18704 do 18705 # Extract the first word of "$ac_prog", so it can be a program name with args. 18706 set dummy $ac_prog; ac_word=$2 18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18708 $as_echo_n "checking for $ac_word... " >&6; } 18709 if ${ac_cv_path_STAT+:} false; then : 18710 $as_echo_n "(cached) " >&6 18711 else 18712 case $STAT in 18713 [\\/]* | ?:[\\/]*) 18714 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18715 ;; 18716 *) 18717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18718 for as_dir in $PATH 18719 do 18720 IFS=$as_save_IFS 18721 test -z "$as_dir" && as_dir=. 18722 for ac_exec_ext in '' $ac_executable_extensions; do 18723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18724 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18726 break 2 18727 fi 18728 done 18729 done 18730 IFS=$as_save_IFS 18731 18732 ;; 18733 esac 18734 fi 18735 STAT=$ac_cv_path_STAT 18736 if test -n "$STAT"; then 18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18738 $as_echo "$STAT" >&6; } 18739 else 18740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18741 $as_echo "no" >&6; } 18742 fi 18743 18744 18745 test -n "$STAT" && break 18746 done 18747 18748 else 18749 # If it succeeded, then it was overridden by the user. We will use it 18750 # for the tool. 18751 18752 # First remove it from the list of overridden variables, so we can test 18753 # for unknown variables in the end. 18754 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18755 18756 # Check if the provided tool contains a complete path. 18757 tool_specified="$STAT" 18758 tool_basename="${tool_specified##*/}" 18759 if test "x$tool_basename" = "x$tool_specified"; then 18760 # A command without a complete path is provided, search $PATH. 18761 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18762 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18763 # Extract the first word of "$tool_basename", so it can be a program name with args. 18764 set dummy $tool_basename; ac_word=$2 18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18766 $as_echo_n "checking for $ac_word... " >&6; } 18767 if ${ac_cv_path_STAT+:} false; then : 18768 $as_echo_n "(cached) " >&6 18769 else 18770 case $STAT in 18771 [\\/]* | ?:[\\/]*) 18772 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18773 ;; 18774 *) 18775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18776 for as_dir in $PATH 18777 do 18778 IFS=$as_save_IFS 18779 test -z "$as_dir" && as_dir=. 18780 for ac_exec_ext in '' $ac_executable_extensions; do 18781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18782 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18784 break 2 18785 fi 18786 done 18787 done 18788 IFS=$as_save_IFS 18789 18790 ;; 18791 esac 18792 fi 18793 STAT=$ac_cv_path_STAT 18794 if test -n "$STAT"; then 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18796 $as_echo "$STAT" >&6; } 18797 else 18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18799 $as_echo "no" >&6; } 18800 fi 18801 18802 18803 if test "x$STAT" = x; then 18804 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18805 fi 18806 else 18807 # Otherwise we believe it is a complete path. Use it as it is. 18808 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18809 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18811 $as_echo_n "checking for STAT... " >&6; } 18812 if test ! -x "$tool_specified"; then 18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18814 $as_echo "not found" >&6; } 18815 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18816 fi 18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18818 $as_echo "$tool_specified" >&6; } 18819 fi 18820 fi 18821 fi 18822 18823 18824 18825 18826 # Publish this variable in the help. 18827 18828 18829 if test "x$TIME" = x; then 18830 # The variable is not set by user, try to locate tool using the code snippet 18831 for ac_prog in time 18832 do 18833 # Extract the first word of "$ac_prog", so it can be a program name with args. 18834 set dummy $ac_prog; ac_word=$2 18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18836 $as_echo_n "checking for $ac_word... " >&6; } 18837 if ${ac_cv_path_TIME+:} false; then : 18838 $as_echo_n "(cached) " >&6 18839 else 18840 case $TIME in 18841 [\\/]* | ?:[\\/]*) 18842 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18843 ;; 18844 *) 18845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18846 for as_dir in $PATH 18847 do 18848 IFS=$as_save_IFS 18849 test -z "$as_dir" && as_dir=. 18850 for ac_exec_ext in '' $ac_executable_extensions; do 18851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18852 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18854 break 2 18855 fi 18856 done 18857 done 18858 IFS=$as_save_IFS 18859 18860 ;; 18861 esac 18862 fi 18863 TIME=$ac_cv_path_TIME 18864 if test -n "$TIME"; then 18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18866 $as_echo "$TIME" >&6; } 18867 else 18868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18869 $as_echo "no" >&6; } 18870 fi 18871 18872 18873 test -n "$TIME" && break 18874 done 18875 18876 else 18877 # The variable is set, but is it from the command line or the environment? 18878 18879 # Try to remove the string !TIME! from our list. 18880 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18881 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18882 # If it failed, the variable was not from the command line. Ignore it, 18883 # but warn the user (except for BASH, which is always set by the calling BASH). 18884 if test "xTIME" != xBASH; then 18885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18886 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18887 fi 18888 # Try to locate tool using the code snippet 18889 for ac_prog in time 18890 do 18891 # Extract the first word of "$ac_prog", so it can be a program name with args. 18892 set dummy $ac_prog; ac_word=$2 18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18894 $as_echo_n "checking for $ac_word... " >&6; } 18895 if ${ac_cv_path_TIME+:} false; then : 18896 $as_echo_n "(cached) " >&6 18897 else 18898 case $TIME in 18899 [\\/]* | ?:[\\/]*) 18900 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18901 ;; 18902 *) 18903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18904 for as_dir in $PATH 18905 do 18906 IFS=$as_save_IFS 18907 test -z "$as_dir" && as_dir=. 18908 for ac_exec_ext in '' $ac_executable_extensions; do 18909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18910 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18912 break 2 18913 fi 18914 done 18915 done 18916 IFS=$as_save_IFS 18917 18918 ;; 18919 esac 18920 fi 18921 TIME=$ac_cv_path_TIME 18922 if test -n "$TIME"; then 18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18924 $as_echo "$TIME" >&6; } 18925 else 18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18927 $as_echo "no" >&6; } 18928 fi 18929 18930 18931 test -n "$TIME" && break 18932 done 18933 18934 else 18935 # If it succeeded, then it was overridden by the user. We will use it 18936 # for the tool. 18937 18938 # First remove it from the list of overridden variables, so we can test 18939 # for unknown variables in the end. 18940 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18941 18942 # Check if the provided tool contains a complete path. 18943 tool_specified="$TIME" 18944 tool_basename="${tool_specified##*/}" 18945 if test "x$tool_basename" = "x$tool_specified"; then 18946 # A command without a complete path is provided, search $PATH. 18947 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18948 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18949 # Extract the first word of "$tool_basename", so it can be a program name with args. 18950 set dummy $tool_basename; ac_word=$2 18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18952 $as_echo_n "checking for $ac_word... " >&6; } 18953 if ${ac_cv_path_TIME+:} false; then : 18954 $as_echo_n "(cached) " >&6 18955 else 18956 case $TIME in 18957 [\\/]* | ?:[\\/]*) 18958 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18959 ;; 18960 *) 18961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18962 for as_dir in $PATH 18963 do 18964 IFS=$as_save_IFS 18965 test -z "$as_dir" && as_dir=. 18966 for ac_exec_ext in '' $ac_executable_extensions; do 18967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18968 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18970 break 2 18971 fi 18972 done 18973 done 18974 IFS=$as_save_IFS 18975 18976 ;; 18977 esac 18978 fi 18979 TIME=$ac_cv_path_TIME 18980 if test -n "$TIME"; then 18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18982 $as_echo "$TIME" >&6; } 18983 else 18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18985 $as_echo "no" >&6; } 18986 fi 18987 18988 18989 if test "x$TIME" = x; then 18990 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18991 fi 18992 else 18993 # Otherwise we believe it is a complete path. Use it as it is. 18994 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18995 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18997 $as_echo_n "checking for TIME... " >&6; } 18998 if test ! -x "$tool_specified"; then 18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19000 $as_echo "not found" >&6; } 19001 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 19002 fi 19003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19004 $as_echo "$tool_specified" >&6; } 19005 fi 19006 fi 19007 fi 19008 19009 19010 # Check if it's GNU time 19011 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 19012 if test "x$IS_GNU_TIME" != x; then 19013 IS_GNU_TIME=yes 19014 else 19015 IS_GNU_TIME=no 19016 fi 19017 19018 19019 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 19020 19021 19022 19023 # Publish this variable in the help. 19024 19025 19026 if test "x$DSYMUTIL" = x; then 19027 # The variable is not set by user, try to locate tool using the code snippet 19028 for ac_prog in dsymutil 19029 do 19030 # Extract the first word of "$ac_prog", so it can be a program name with args. 19031 set dummy $ac_prog; ac_word=$2 19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19033 $as_echo_n "checking for $ac_word... " >&6; } 19034 if ${ac_cv_path_DSYMUTIL+:} false; then : 19035 $as_echo_n "(cached) " >&6 19036 else 19037 case $DSYMUTIL in 19038 [\\/]* | ?:[\\/]*) 19039 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19040 ;; 19041 *) 19042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19043 for as_dir in $PATH 19044 do 19045 IFS=$as_save_IFS 19046 test -z "$as_dir" && as_dir=. 19047 for ac_exec_ext in '' $ac_executable_extensions; do 19048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19049 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19051 break 2 19052 fi 19053 done 19054 done 19055 IFS=$as_save_IFS 19056 19057 ;; 19058 esac 19059 fi 19060 DSYMUTIL=$ac_cv_path_DSYMUTIL 19061 if test -n "$DSYMUTIL"; then 19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19063 $as_echo "$DSYMUTIL" >&6; } 19064 else 19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19066 $as_echo "no" >&6; } 19067 fi 19068 19069 19070 test -n "$DSYMUTIL" && break 19071 done 19072 19073 else 19074 # The variable is set, but is it from the command line or the environment? 19075 19076 # Try to remove the string !DSYMUTIL! from our list. 19077 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 19078 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19079 # If it failed, the variable was not from the command line. Ignore it, 19080 # but warn the user (except for BASH, which is always set by the calling BASH). 19081 if test "xDSYMUTIL" != xBASH; then 19082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 19083 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 19084 fi 19085 # Try to locate tool using the code snippet 19086 for ac_prog in dsymutil 19087 do 19088 # Extract the first word of "$ac_prog", so it can be a program name with args. 19089 set dummy $ac_prog; ac_word=$2 19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19091 $as_echo_n "checking for $ac_word... " >&6; } 19092 if ${ac_cv_path_DSYMUTIL+:} false; then : 19093 $as_echo_n "(cached) " >&6 19094 else 19095 case $DSYMUTIL in 19096 [\\/]* | ?:[\\/]*) 19097 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19098 ;; 19099 *) 19100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19101 for as_dir in $PATH 19102 do 19103 IFS=$as_save_IFS 19104 test -z "$as_dir" && as_dir=. 19105 for ac_exec_ext in '' $ac_executable_extensions; do 19106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19107 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19109 break 2 19110 fi 19111 done 19112 done 19113 IFS=$as_save_IFS 19114 19115 ;; 19116 esac 19117 fi 19118 DSYMUTIL=$ac_cv_path_DSYMUTIL 19119 if test -n "$DSYMUTIL"; then 19120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19121 $as_echo "$DSYMUTIL" >&6; } 19122 else 19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19124 $as_echo "no" >&6; } 19125 fi 19126 19127 19128 test -n "$DSYMUTIL" && break 19129 done 19130 19131 else 19132 # If it succeeded, then it was overridden by the user. We will use it 19133 # for the tool. 19134 19135 # First remove it from the list of overridden variables, so we can test 19136 # for unknown variables in the end. 19137 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19138 19139 # Check if the provided tool contains a complete path. 19140 tool_specified="$DSYMUTIL" 19141 tool_basename="${tool_specified##*/}" 19142 if test "x$tool_basename" = "x$tool_specified"; then 19143 # A command without a complete path is provided, search $PATH. 19144 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 19145 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 19146 # Extract the first word of "$tool_basename", so it can be a program name with args. 19147 set dummy $tool_basename; ac_word=$2 19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19149 $as_echo_n "checking for $ac_word... " >&6; } 19150 if ${ac_cv_path_DSYMUTIL+:} false; then : 19151 $as_echo_n "(cached) " >&6 19152 else 19153 case $DSYMUTIL in 19154 [\\/]* | ?:[\\/]*) 19155 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19156 ;; 19157 *) 19158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19159 for as_dir in $PATH 19160 do 19161 IFS=$as_save_IFS 19162 test -z "$as_dir" && as_dir=. 19163 for ac_exec_ext in '' $ac_executable_extensions; do 19164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19165 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19167 break 2 19168 fi 19169 done 19170 done 19171 IFS=$as_save_IFS 19172 19173 ;; 19174 esac 19175 fi 19176 DSYMUTIL=$ac_cv_path_DSYMUTIL 19177 if test -n "$DSYMUTIL"; then 19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19179 $as_echo "$DSYMUTIL" >&6; } 19180 else 19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19182 $as_echo "no" >&6; } 19183 fi 19184 19185 19186 if test "x$DSYMUTIL" = x; then 19187 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19188 fi 19189 else 19190 # Otherwise we believe it is a complete path. Use it as it is. 19191 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 19192 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 19194 $as_echo_n "checking for DSYMUTIL... " >&6; } 19195 if test ! -x "$tool_specified"; then 19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19197 $as_echo "not found" >&6; } 19198 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 19199 fi 19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19201 $as_echo "$tool_specified" >&6; } 19202 fi 19203 fi 19204 fi 19205 19206 19207 19208 if test "x$DSYMUTIL" = x; then 19209 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19210 fi 19211 19212 19213 19214 19215 19216 # Publish this variable in the help. 19217 19218 19219 if test "x$XATTR" = x; then 19220 # The variable is not set by user, try to locate tool using the code snippet 19221 for ac_prog in xattr 19222 do 19223 # Extract the first word of "$ac_prog", so it can be a program name with args. 19224 set dummy $ac_prog; ac_word=$2 19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19226 $as_echo_n "checking for $ac_word... " >&6; } 19227 if ${ac_cv_path_XATTR+:} false; then : 19228 $as_echo_n "(cached) " >&6 19229 else 19230 case $XATTR in 19231 [\\/]* | ?:[\\/]*) 19232 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19233 ;; 19234 *) 19235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19236 for as_dir in $PATH 19237 do 19238 IFS=$as_save_IFS 19239 test -z "$as_dir" && as_dir=. 19240 for ac_exec_ext in '' $ac_executable_extensions; do 19241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19242 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19244 break 2 19245 fi 19246 done 19247 done 19248 IFS=$as_save_IFS 19249 19250 ;; 19251 esac 19252 fi 19253 XATTR=$ac_cv_path_XATTR 19254 if test -n "$XATTR"; then 19255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19256 $as_echo "$XATTR" >&6; } 19257 else 19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19259 $as_echo "no" >&6; } 19260 fi 19261 19262 19263 test -n "$XATTR" && break 19264 done 19265 19266 else 19267 # The variable is set, but is it from the command line or the environment? 19268 19269 # Try to remove the string !XATTR! from our list. 19270 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19271 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19272 # If it failed, the variable was not from the command line. Ignore it, 19273 # but warn the user (except for BASH, which is always set by the calling BASH). 19274 if test "xXATTR" != xBASH; then 19275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19276 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19277 fi 19278 # Try to locate tool using the code snippet 19279 for ac_prog in xattr 19280 do 19281 # Extract the first word of "$ac_prog", so it can be a program name with args. 19282 set dummy $ac_prog; ac_word=$2 19283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19284 $as_echo_n "checking for $ac_word... " >&6; } 19285 if ${ac_cv_path_XATTR+:} false; then : 19286 $as_echo_n "(cached) " >&6 19287 else 19288 case $XATTR in 19289 [\\/]* | ?:[\\/]*) 19290 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19291 ;; 19292 *) 19293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19294 for as_dir in $PATH 19295 do 19296 IFS=$as_save_IFS 19297 test -z "$as_dir" && as_dir=. 19298 for ac_exec_ext in '' $ac_executable_extensions; do 19299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19300 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19302 break 2 19303 fi 19304 done 19305 done 19306 IFS=$as_save_IFS 19307 19308 ;; 19309 esac 19310 fi 19311 XATTR=$ac_cv_path_XATTR 19312 if test -n "$XATTR"; then 19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19314 $as_echo "$XATTR" >&6; } 19315 else 19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19317 $as_echo "no" >&6; } 19318 fi 19319 19320 19321 test -n "$XATTR" && break 19322 done 19323 19324 else 19325 # If it succeeded, then it was overridden by the user. We will use it 19326 # for the tool. 19327 19328 # First remove it from the list of overridden variables, so we can test 19329 # for unknown variables in the end. 19330 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19331 19332 # Check if the provided tool contains a complete path. 19333 tool_specified="$XATTR" 19334 tool_basename="${tool_specified##*/}" 19335 if test "x$tool_basename" = "x$tool_specified"; then 19336 # A command without a complete path is provided, search $PATH. 19337 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19338 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19339 # Extract the first word of "$tool_basename", so it can be a program name with args. 19340 set dummy $tool_basename; ac_word=$2 19341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19342 $as_echo_n "checking for $ac_word... " >&6; } 19343 if ${ac_cv_path_XATTR+:} false; then : 19344 $as_echo_n "(cached) " >&6 19345 else 19346 case $XATTR in 19347 [\\/]* | ?:[\\/]*) 19348 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19349 ;; 19350 *) 19351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19352 for as_dir in $PATH 19353 do 19354 IFS=$as_save_IFS 19355 test -z "$as_dir" && as_dir=. 19356 for ac_exec_ext in '' $ac_executable_extensions; do 19357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19358 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19360 break 2 19361 fi 19362 done 19363 done 19364 IFS=$as_save_IFS 19365 19366 ;; 19367 esac 19368 fi 19369 XATTR=$ac_cv_path_XATTR 19370 if test -n "$XATTR"; then 19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19372 $as_echo "$XATTR" >&6; } 19373 else 19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19375 $as_echo "no" >&6; } 19376 fi 19377 19378 19379 if test "x$XATTR" = x; then 19380 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19381 fi 19382 else 19383 # Otherwise we believe it is a complete path. Use it as it is. 19384 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19385 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19387 $as_echo_n "checking for XATTR... " >&6; } 19388 if test ! -x "$tool_specified"; then 19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19390 $as_echo "not found" >&6; } 19391 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19392 fi 19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19394 $as_echo "$tool_specified" >&6; } 19395 fi 19396 fi 19397 fi 19398 19399 19400 19401 if test "x$XATTR" = x; then 19402 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19403 fi 19404 19405 19406 19407 19408 # Publish this variable in the help. 19409 19410 19411 if test "x$CODESIGN" = x; then 19412 # The variable is not set by user, try to locate tool using the code snippet 19413 for ac_prog in codesign 19414 do 19415 # Extract the first word of "$ac_prog", so it can be a program name with args. 19416 set dummy $ac_prog; ac_word=$2 19417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19418 $as_echo_n "checking for $ac_word... " >&6; } 19419 if ${ac_cv_path_CODESIGN+:} false; then : 19420 $as_echo_n "(cached) " >&6 19421 else 19422 case $CODESIGN in 19423 [\\/]* | ?:[\\/]*) 19424 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19425 ;; 19426 *) 19427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19428 for as_dir in $PATH 19429 do 19430 IFS=$as_save_IFS 19431 test -z "$as_dir" && as_dir=. 19432 for ac_exec_ext in '' $ac_executable_extensions; do 19433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19434 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19436 break 2 19437 fi 19438 done 19439 done 19440 IFS=$as_save_IFS 19441 19442 ;; 19443 esac 19444 fi 19445 CODESIGN=$ac_cv_path_CODESIGN 19446 if test -n "$CODESIGN"; then 19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19448 $as_echo "$CODESIGN" >&6; } 19449 else 19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19451 $as_echo "no" >&6; } 19452 fi 19453 19454 19455 test -n "$CODESIGN" && break 19456 done 19457 19458 else 19459 # The variable is set, but is it from the command line or the environment? 19460 19461 # Try to remove the string !CODESIGN! from our list. 19462 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19463 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19464 # If it failed, the variable was not from the command line. Ignore it, 19465 # but warn the user (except for BASH, which is always set by the calling BASH). 19466 if test "xCODESIGN" != xBASH; then 19467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19468 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19469 fi 19470 # Try to locate tool using the code snippet 19471 for ac_prog in codesign 19472 do 19473 # Extract the first word of "$ac_prog", so it can be a program name with args. 19474 set dummy $ac_prog; ac_word=$2 19475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19476 $as_echo_n "checking for $ac_word... " >&6; } 19477 if ${ac_cv_path_CODESIGN+:} false; then : 19478 $as_echo_n "(cached) " >&6 19479 else 19480 case $CODESIGN in 19481 [\\/]* | ?:[\\/]*) 19482 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19483 ;; 19484 *) 19485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19486 for as_dir in $PATH 19487 do 19488 IFS=$as_save_IFS 19489 test -z "$as_dir" && as_dir=. 19490 for ac_exec_ext in '' $ac_executable_extensions; do 19491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19492 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19494 break 2 19495 fi 19496 done 19497 done 19498 IFS=$as_save_IFS 19499 19500 ;; 19501 esac 19502 fi 19503 CODESIGN=$ac_cv_path_CODESIGN 19504 if test -n "$CODESIGN"; then 19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19506 $as_echo "$CODESIGN" >&6; } 19507 else 19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19509 $as_echo "no" >&6; } 19510 fi 19511 19512 19513 test -n "$CODESIGN" && break 19514 done 19515 19516 else 19517 # If it succeeded, then it was overridden by the user. We will use it 19518 # for the tool. 19519 19520 # First remove it from the list of overridden variables, so we can test 19521 # for unknown variables in the end. 19522 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19523 19524 # Check if the provided tool contains a complete path. 19525 tool_specified="$CODESIGN" 19526 tool_basename="${tool_specified##*/}" 19527 if test "x$tool_basename" = "x$tool_specified"; then 19528 # A command without a complete path is provided, search $PATH. 19529 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19530 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19531 # Extract the first word of "$tool_basename", so it can be a program name with args. 19532 set dummy $tool_basename; ac_word=$2 19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19534 $as_echo_n "checking for $ac_word... " >&6; } 19535 if ${ac_cv_path_CODESIGN+:} false; then : 19536 $as_echo_n "(cached) " >&6 19537 else 19538 case $CODESIGN in 19539 [\\/]* | ?:[\\/]*) 19540 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19541 ;; 19542 *) 19543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19544 for as_dir in $PATH 19545 do 19546 IFS=$as_save_IFS 19547 test -z "$as_dir" && as_dir=. 19548 for ac_exec_ext in '' $ac_executable_extensions; do 19549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19550 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19552 break 2 19553 fi 19554 done 19555 done 19556 IFS=$as_save_IFS 19557 19558 ;; 19559 esac 19560 fi 19561 CODESIGN=$ac_cv_path_CODESIGN 19562 if test -n "$CODESIGN"; then 19563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19564 $as_echo "$CODESIGN" >&6; } 19565 else 19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19567 $as_echo "no" >&6; } 19568 fi 19569 19570 19571 if test "x$CODESIGN" = x; then 19572 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19573 fi 19574 else 19575 # Otherwise we believe it is a complete path. Use it as it is. 19576 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19577 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19579 $as_echo_n "checking for CODESIGN... " >&6; } 19580 if test ! -x "$tool_specified"; then 19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19582 $as_echo "not found" >&6; } 19583 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19584 fi 19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19586 $as_echo "$tool_specified" >&6; } 19587 fi 19588 fi 19589 fi 19590 19591 19592 if test "x$CODESIGN" != "x"; then 19593 # Verify that the openjdk_codesign certificate is present 19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19595 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19596 rm -f codesign-testfile 19597 touch codesign-testfile 19598 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19599 rm -f codesign-testfile 19600 if test "x$CODESIGN" = x; then 19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19602 $as_echo "no" >&6; } 19603 else 19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19605 $as_echo "yes" >&6; } 19606 fi 19607 fi 19608 fi 19609 19610 19611 # Test if bash supports pipefail. 19612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 19613 $as_echo_n "checking if bash supports pipefail... " >&6; } 19614 if ${BASH} -c 'set -o pipefail'; then 19615 BASH_ARGS="$BASH_ARGS -o pipefail" 19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19617 $as_echo "yes" >&6; } 19618 else 19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19620 $as_echo "no" >&6; } 19621 fi 19622 19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 19624 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 19625 if ${BASH} -e -c 'true'; then 19626 BASH_ARGS="$BASH_ARGS -e" 19627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19628 $as_echo "yes" >&6; } 19629 else 19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19631 $as_echo "no" >&6; } 19632 fi 19633 19634 19635 19636 19637 # Check if pkg-config is available. 19638 19639 19640 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19641 if test -n "$ac_tool_prefix"; then 19642 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19643 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19645 $as_echo_n "checking for $ac_word... " >&6; } 19646 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19647 $as_echo_n "(cached) " >&6 19648 else 19649 case $PKG_CONFIG in 19650 [\\/]* | ?:[\\/]*) 19651 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19652 ;; 19653 *) 19654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19655 for as_dir in $PATH 19656 do 19657 IFS=$as_save_IFS 19658 test -z "$as_dir" && as_dir=. 19659 for ac_exec_ext in '' $ac_executable_extensions; do 19660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19661 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19663 break 2 19664 fi 19665 done 19666 done 19667 IFS=$as_save_IFS 19668 19669 ;; 19670 esac 19671 fi 19672 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19673 if test -n "$PKG_CONFIG"; then 19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19675 $as_echo "$PKG_CONFIG" >&6; } 19676 else 19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19678 $as_echo "no" >&6; } 19679 fi 19680 19681 19682 fi 19683 if test -z "$ac_cv_path_PKG_CONFIG"; then 19684 ac_pt_PKG_CONFIG=$PKG_CONFIG 19685 # Extract the first word of "pkg-config", so it can be a program name with args. 19686 set dummy pkg-config; ac_word=$2 19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19688 $as_echo_n "checking for $ac_word... " >&6; } 19689 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19690 $as_echo_n "(cached) " >&6 19691 else 19692 case $ac_pt_PKG_CONFIG in 19693 [\\/]* | ?:[\\/]*) 19694 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19695 ;; 19696 *) 19697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19698 for as_dir in $PATH 19699 do 19700 IFS=$as_save_IFS 19701 test -z "$as_dir" && as_dir=. 19702 for ac_exec_ext in '' $ac_executable_extensions; do 19703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19704 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19706 break 2 19707 fi 19708 done 19709 done 19710 IFS=$as_save_IFS 19711 19712 ;; 19713 esac 19714 fi 19715 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19716 if test -n "$ac_pt_PKG_CONFIG"; then 19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19718 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19719 else 19720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19721 $as_echo "no" >&6; } 19722 fi 19723 19724 if test "x$ac_pt_PKG_CONFIG" = x; then 19725 PKG_CONFIG="" 19726 else 19727 case $cross_compiling:$ac_tool_warned in 19728 yes:) 19729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19731 ac_tool_warned=yes ;; 19732 esac 19733 PKG_CONFIG=$ac_pt_PKG_CONFIG 19734 fi 19735 else 19736 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19737 fi 19738 19739 fi 19740 if test -n "$PKG_CONFIG"; then 19741 _pkg_min_version=0.9.0 19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19743 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19744 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19746 $as_echo "yes" >&6; } 19747 else 19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19749 $as_echo "no" >&6; } 19750 PKG_CONFIG="" 19751 fi 19752 19753 fi 19754 19755 # After basic tools have been setup, we can check build os specific details. 19756 19757 ############################################################################### 19758 19759 # Note that this is the build platform OS version! 19760 19761 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19762 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19763 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19764 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19765 19766 19767 19768 19769 19770 # Setup builddeps, for automatic downloading of tools we need. 19771 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19772 # boot-jdk setup, but we need to have basic tools setup first. 19773 19774 19775 # Check whether --with-builddeps-conf was given. 19776 if test "${with_builddeps_conf+set}" = set; then : 19777 withval=$with_builddeps_conf; 19778 fi 19779 19780 19781 19782 # Check whether --with-builddeps-server was given. 19783 if test "${with_builddeps_server+set}" = set; then : 19784 withval=$with_builddeps_server; 19785 fi 19786 19787 19788 19789 # Check whether --with-builddeps-dir was given. 19790 if test "${with_builddeps_dir+set}" = set; then : 19791 withval=$with_builddeps_dir; 19792 else 19793 with_builddeps_dir=/localhome/builddeps 19794 fi 19795 19796 19797 19798 # Check whether --with-builddeps-group was given. 19799 if test "${with_builddeps_group+set}" = set; then : 19800 withval=$with_builddeps_group; 19801 fi 19802 19803 19804 19805 19806 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19807 if test "x$with_builddeps_conf" != x; then 19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19809 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19810 builddepsfile=$with_builddeps_conf 19811 if test -s $builddepsfile; then 19812 . $builddepsfile 19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19814 $as_echo "loaded!" >&6; } 19815 else 19816 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19817 fi 19818 else 19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19820 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19821 builddepsfile=`mktemp` 19822 touch $builddepsfile 19823 # Put all found confs into a single file. 19824 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19825 # Source the file to acquire the variables 19826 if test -s $builddepsfile; then 19827 . $builddepsfile 19828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19829 $as_echo "found at least one!" >&6; } 19830 else 19831 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19832 fi 19833 fi 19834 # Create build and target names that use _ instead of "-" and ".". 19835 # This is necessary to use them in variable names. 19836 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19837 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19838 # Extract rewrite information for build and target 19839 eval rewritten_build=\${REWRITE_${build_var}} 19840 if test "x$rewritten_build" = x; then 19841 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19842 echo Build stays the same $rewritten_build 19843 else 19844 echo Rewriting build for builddeps into $rewritten_build 19845 fi 19846 eval rewritten_target=\${REWRITE_${target_var}} 19847 if test "x$rewritten_target" = x; then 19848 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19849 echo Target stays the same $rewritten_target 19850 else 19851 echo Rewriting target for builddeps into $rewritten_target 19852 fi 19853 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19854 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19855 fi 19856 for ac_prog in 7z unzip 19857 do 19858 # Extract the first word of "$ac_prog", so it can be a program name with args. 19859 set dummy $ac_prog; ac_word=$2 19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19861 $as_echo_n "checking for $ac_word... " >&6; } 19862 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19863 $as_echo_n "(cached) " >&6 19864 else 19865 if test -n "$BDEPS_UNZIP"; then 19866 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19867 else 19868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19869 for as_dir in $PATH 19870 do 19871 IFS=$as_save_IFS 19872 test -z "$as_dir" && as_dir=. 19873 for ac_exec_ext in '' $ac_executable_extensions; do 19874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19875 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19877 break 2 19878 fi 19879 done 19880 done 19881 IFS=$as_save_IFS 19882 19883 fi 19884 fi 19885 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19886 if test -n "$BDEPS_UNZIP"; then 19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19888 $as_echo "$BDEPS_UNZIP" >&6; } 19889 else 19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19891 $as_echo "no" >&6; } 19892 fi 19893 19894 19895 test -n "$BDEPS_UNZIP" && break 19896 done 19897 19898 if test "x$BDEPS_UNZIP" = x7z; then 19899 BDEPS_UNZIP="7z x" 19900 fi 19901 19902 for ac_prog in wget lftp ftp 19903 do 19904 # Extract the first word of "$ac_prog", so it can be a program name with args. 19905 set dummy $ac_prog; ac_word=$2 19906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19907 $as_echo_n "checking for $ac_word... " >&6; } 19908 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19909 $as_echo_n "(cached) " >&6 19910 else 19911 if test -n "$BDEPS_FTP"; then 19912 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19913 else 19914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19915 for as_dir in $PATH 19916 do 19917 IFS=$as_save_IFS 19918 test -z "$as_dir" && as_dir=. 19919 for ac_exec_ext in '' $ac_executable_extensions; do 19920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19921 ac_cv_prog_BDEPS_FTP="$ac_prog" 19922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19923 break 2 19924 fi 19925 done 19926 done 19927 IFS=$as_save_IFS 19928 19929 fi 19930 fi 19931 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19932 if test -n "$BDEPS_FTP"; then 19933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19934 $as_echo "$BDEPS_FTP" >&6; } 19935 else 19936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19937 $as_echo "no" >&6; } 19938 fi 19939 19940 19941 test -n "$BDEPS_FTP" && break 19942 done 19943 19944 19945 19946 ############################################################################### 19947 # 19948 # Determine OpenJDK variants, options and version numbers. 19949 # 19950 ############################################################################### 19951 19952 # We need build & target for this. 19953 19954 19955 ############################################################################### 19956 # 19957 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19958 # We always build headless support. 19959 # 19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19961 $as_echo_n "checking headful support... " >&6; } 19962 # Check whether --enable-headful was given. 19963 if test "${enable_headful+set}" = set; then : 19964 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19965 else 19966 SUPPORT_HEADFUL=yes 19967 fi 19968 19969 19970 SUPPORT_HEADLESS=yes 19971 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19972 19973 if test "x$SUPPORT_HEADFUL" = xyes; then 19974 # We are building both headful and headless. 19975 headful_msg="include support for both headful and headless" 19976 fi 19977 19978 if test "x$SUPPORT_HEADFUL" = xno; then 19979 # Thus we are building headless only. 19980 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19981 headful_msg="headless only" 19982 fi 19983 19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19985 $as_echo "$headful_msg" >&6; } 19986 19987 19988 19989 19990 19991 # Control wether Hotspot runs Queens test after build. 19992 # Check whether --enable-hotspot-test-in-build was given. 19993 if test "${enable_hotspot_test_in_build+set}" = set; then : 19994 enableval=$enable_hotspot_test_in_build; 19995 else 19996 enable_hotspot_test_in_build=no 19997 fi 19998 19999 if test "x$enable_hotspot_test_in_build" = "xyes"; then 20000 TEST_IN_BUILD=true 20001 else 20002 TEST_IN_BUILD=false 20003 fi 20004 20005 20006 ############################################################################### 20007 # 20008 # Choose cacerts source file 20009 # 20010 20011 # Check whether --with-cacerts-file was given. 20012 if test "${with_cacerts_file+set}" = set; then : 20013 withval=$with_cacerts_file; 20014 fi 20015 20016 if test "x$with_cacerts_file" != x; then 20017 CACERTS_FILE=$with_cacerts_file 20018 fi 20019 20020 20021 ############################################################################### 20022 # 20023 # Enable or disable unlimited crypto 20024 # 20025 # Check whether --enable-unlimited-crypto was given. 20026 if test "${enable_unlimited_crypto+set}" = set; then : 20027 enableval=$enable_unlimited_crypto; 20028 else 20029 enable_unlimited_crypto=no 20030 fi 20031 20032 if test "x$enable_unlimited_crypto" = "xyes"; then 20033 UNLIMITED_CRYPTO=true 20034 else 20035 UNLIMITED_CRYPTO=false 20036 fi 20037 20038 20039 ############################################################################### 20040 # 20041 # Enable or disable the elliptic curve crypto implementation 20042 # 20043 20044 20045 ############################################################################### 20046 # 20047 # --enable-rmiconnector-iiop 20048 # 20049 # Check whether --enable-rmiconnector-iiop was given. 20050 if test "${enable_rmiconnector_iiop+set}" = set; then : 20051 enableval=$enable_rmiconnector_iiop; 20052 fi 20053 20054 if test "x$enable_rmiconnector_iiop" = "xyes"; then 20055 RMICONNECTOR_IIOP=true 20056 else 20057 RMICONNECTOR_IIOP=false 20058 fi 20059 20060 20061 ############################################################################### 20062 # 20063 # Compress jars 20064 # 20065 COMPRESS_JARS=false 20066 20067 20068 20069 20070 # Source the version numbers 20071 . $AUTOCONF_DIR/version-numbers 20072 20073 # Get the settings from parameters 20074 20075 # Check whether --with-milestone was given. 20076 if test "${with_milestone+set}" = set; then : 20077 withval=$with_milestone; 20078 fi 20079 20080 if test "x$with_milestone" = xyes; then 20081 as_fn_error $? "Milestone must have a value" "$LINENO" 5 20082 elif test "x$with_milestone" != x; then 20083 MILESTONE="$with_milestone" 20084 fi 20085 if test "x$MILESTONE" = x; then 20086 MILESTONE=internal 20087 fi 20088 20089 20090 # Check whether --with-update-version was given. 20091 if test "${with_update_version+set}" = set; then : 20092 withval=$with_update_version; 20093 fi 20094 20095 if test "x$with_update_version" = xyes; then 20096 as_fn_error $? "Update version must have a value" "$LINENO" 5 20097 elif test "x$with_update_version" != x; then 20098 JDK_UPDATE_VERSION="$with_update_version" 20099 # On macosx 10.7, it's not possible to set --with-update-version=0X due 20100 # to a bug in expr (which reduces it to just X). To work around this, we 20101 # always add a 0 to one digit update versions. 20102 if test "${#JDK_UPDATE_VERSION}" = "1"; then 20103 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 20104 fi 20105 fi 20106 20107 20108 # Check whether --with-user-release-suffix was given. 20109 if test "${with_user_release_suffix+set}" = set; then : 20110 withval=$with_user_release_suffix; 20111 fi 20112 20113 if test "x$with_user_release_suffix" = xyes; then 20114 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 20115 elif test "x$with_user_release_suffix" != x; then 20116 USER_RELEASE_SUFFIX="$with_user_release_suffix" 20117 fi 20118 20119 20120 # Check whether --with-build-number was given. 20121 if test "${with_build_number+set}" = set; then : 20122 withval=$with_build_number; 20123 fi 20124 20125 if test "x$with_build_number" = xyes; then 20126 as_fn_error $? "Build number must have a value" "$LINENO" 5 20127 elif test "x$with_build_number" != x; then 20128 JDK_BUILD_NUMBER="$with_build_number" 20129 fi 20130 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 20131 if test "x$JDK_BUILD_NUMBER" = x; then 20132 JDK_BUILD_NUMBER=b00 20133 if test "x$USER_RELEASE_SUFFIX" = x; then 20134 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 20135 # Avoid [:alnum:] since it depends on the locale. 20136 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 20137 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20138 fi 20139 fi 20140 20141 # Now set the JDK version, milestone, build number etc. 20142 20143 20144 20145 20146 20147 20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 20158 # Check whether --with-copyright-year was given. 20159 if test "${with_copyright_year+set}" = set; then : 20160 withval=$with_copyright_year; 20161 fi 20162 20163 if test "x$with_copyright_year" = xyes; then 20164 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 20165 elif test "x$with_copyright_year" != x; then 20166 COPYRIGHT_YEAR="$with_copyright_year" 20167 else 20168 COPYRIGHT_YEAR=`date +'%Y'` 20169 fi 20170 20171 20172 if test "x$JDK_UPDATE_VERSION" != x; then 20173 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20174 else 20175 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20176 fi 20177 20178 20179 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20180 20181 20182 20183 ############################################################################### 20184 # 20185 # Setup BootJDK, used to bootstrap the build. 20186 # 20187 ############################################################################### 20188 20189 20190 BOOT_JDK_FOUND=no 20191 20192 # Check whether --with-boot-jdk was given. 20193 if test "${with_boot_jdk+set}" = set; then : 20194 withval=$with_boot_jdk; 20195 fi 20196 20197 20198 # We look for the Boot JDK through various means, going from more certain to 20199 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20200 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20201 # must check if this is indeed valid; otherwise we'll continue looking. 20202 20203 # Test: Is bootjdk explicitely set by command line arguments? 20204 20205 if test "x$BOOT_JDK_FOUND" = xno; then 20206 # Now execute the test 20207 20208 if test "x$with_boot_jdk" != x; then 20209 BOOT_JDK=$with_boot_jdk 20210 BOOT_JDK_FOUND=maybe 20211 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20212 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20213 fi 20214 20215 20216 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20217 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20218 # Do we have a bin/java? 20219 if test ! -x "$BOOT_JDK/bin/java"; then 20220 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20221 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20222 BOOT_JDK_FOUND=no 20223 else 20224 # Do we have a bin/javac? 20225 if test ! -x "$BOOT_JDK/bin/javac"; then 20226 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20227 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20228 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20229 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20230 BOOT_JDK_FOUND=no 20231 else 20232 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20233 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20234 20235 # Extra M4 quote needed to protect [] in grep expression. 20236 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20237 if test "x$FOUND_CORRECT_VERSION" = x; then 20238 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20239 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20240 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20241 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20242 BOOT_JDK_FOUND=no 20243 else 20244 # We're done! :-) 20245 BOOT_JDK_FOUND=yes 20246 20247 # Only process if variable expands to non-empty 20248 20249 if test "x$BOOT_JDK" != x; then 20250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20251 20252 # Input might be given as Windows format, start by converting to 20253 # unix format. 20254 path="$BOOT_JDK" 20255 new_path=`$CYGPATH -u "$path"` 20256 20257 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20258 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20259 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20260 # "foo.exe" is OK but "foo" is an error. 20261 # 20262 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20263 # It is also a way to make sure we got the proper file name for the real test later on. 20264 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20265 if test "x$test_shortpath" = x; then 20266 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20267 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20268 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20269 fi 20270 20271 # Call helper function which possibly converts this using DOS-style short mode. 20272 # If so, the updated path is stored in $new_path. 20273 20274 input_path="$new_path" 20275 # Check if we need to convert this using DOS-style short mode. If the path 20276 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20277 # take no chances and rewrite it. 20278 # Note: m4 eats our [], so we need to use [ and ] instead. 20279 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20280 if test "x$has_forbidden_chars" != x; then 20281 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20282 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20283 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20284 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20285 # Going to short mode and back again did indeed matter. Since short mode is 20286 # case insensitive, let's make it lowercase to improve readability. 20287 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20288 # Now convert it back to Unix-stile (cygpath) 20289 input_path=`$CYGPATH -u "$shortmode_path"` 20290 new_path="$input_path" 20291 fi 20292 fi 20293 20294 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20295 if test "x$test_cygdrive_prefix" = x; then 20296 # As a simple fix, exclude /usr/bin since it's not a real path. 20297 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20298 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20299 # a path prefixed by /cygdrive for fixpath to work. 20300 new_path="$CYGWIN_ROOT_PATH$input_path" 20301 fi 20302 fi 20303 20304 20305 if test "x$path" != "x$new_path"; then 20306 BOOT_JDK="$new_path" 20307 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20308 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20309 fi 20310 20311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20312 20313 path="$BOOT_JDK" 20314 has_colon=`$ECHO $path | $GREP ^.:` 20315 new_path="$path" 20316 if test "x$has_colon" = x; then 20317 # Not in mixed or Windows style, start by that. 20318 new_path=`cmd //c echo $path` 20319 fi 20320 20321 20322 input_path="$new_path" 20323 # Check if we need to convert this using DOS-style short mode. If the path 20324 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20325 # take no chances and rewrite it. 20326 # Note: m4 eats our [], so we need to use [ and ] instead. 20327 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20328 if test "x$has_forbidden_chars" != x; then 20329 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20330 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20331 fi 20332 20333 20334 windows_path="$new_path" 20335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20336 unix_path=`$CYGPATH -u "$windows_path"` 20337 new_path="$unix_path" 20338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20339 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20340 new_path="$unix_path" 20341 fi 20342 20343 if test "x$path" != "x$new_path"; then 20344 BOOT_JDK="$new_path" 20345 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20346 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20347 fi 20348 20349 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20350 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20351 20352 else 20353 # We're on a unix platform. Hooray! :) 20354 path="$BOOT_JDK" 20355 has_space=`$ECHO "$path" | $GREP " "` 20356 if test "x$has_space" != x; then 20357 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20358 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20359 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20360 fi 20361 20362 # Use eval to expand a potential ~ 20363 eval path="$path" 20364 if test ! -f "$path" && test ! -d "$path"; then 20365 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20366 fi 20367 20368 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20369 fi 20370 fi 20371 20372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20373 $as_echo_n "checking for Boot JDK... " >&6; } 20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20375 $as_echo "$BOOT_JDK" >&6; } 20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20377 $as_echo_n "checking Boot JDK version... " >&6; } 20378 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20380 $as_echo "$BOOT_JDK_VERSION" >&6; } 20381 fi # end check jdk version 20382 fi # end check javac 20383 fi # end check java 20384 fi # end check boot jdk found 20385 fi 20386 20387 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20388 # Having specified an argument which is incorrect will produce an instant failure; 20389 # we should not go on looking 20390 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20391 fi 20392 20393 # Test: Is bootjdk available from builddeps? 20394 20395 if test "x$BOOT_JDK_FOUND" = xno; then 20396 # Now execute the test 20397 20398 20399 20400 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20401 # Source the builddeps file again, to make sure it uses the latest variables! 20402 . $builddepsfile 20403 # Look for a target and build machine specific resource! 20404 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20405 if test "x$resource" = x; then 20406 # Ok, lets instead look for a target specific resource 20407 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20408 fi 20409 if test "x$resource" = x; then 20410 # Ok, lets instead look for a build specific resource 20411 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20412 fi 20413 if test "x$resource" = x; then 20414 # Ok, lets instead look for a generic resource 20415 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20416 resource=${builddep_bootjdk} 20417 fi 20418 if test "x$resource" != x; then 20419 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20420 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20421 # If the resource in the builddeps.conf file is an existing directory, 20422 # for example /java/linux/cups 20423 if test -d ${resource}; then 20424 depdir=${resource} 20425 else 20426 20427 # bootjdk is for example mymodule 20428 # $resource is for example libs/general/libmymod_1_2_3.zip 20429 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20430 # $with_builddeps_dir is for example /localhome/builddeps 20431 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20432 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20433 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20434 filename=`basename $resource` 20435 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20436 filebase=${filename%%.*} 20437 extension=${filename#*.} 20438 installdir=$with_builddeps_dir/$filebase 20439 if test ! -f $installdir/$filename.unpacked; then 20440 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20441 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20442 if test ! -d $installdir; then 20443 mkdir -p $installdir 20444 fi 20445 if test ! -d $installdir; then 20446 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20447 fi 20448 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20449 touch $tmpfile 20450 if test ! -f $tmpfile; then 20451 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20452 fi 20453 20454 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20455 # $tmpfile is the local file name for the downloaded file. 20456 VALID_TOOL=no 20457 if test "x$BDEPS_FTP" = xwget; then 20458 VALID_TOOL=yes 20459 wget -O $tmpfile $with_builddeps_server/$resource 20460 fi 20461 if test "x$BDEPS_FTP" = xlftp; then 20462 VALID_TOOL=yes 20463 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20464 fi 20465 if test "x$BDEPS_FTP" = xftp; then 20466 VALID_TOOL=yes 20467 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20468 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20469 FTPUSERPWD=${FTPSERVER%%@*} 20470 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20471 FTPUSER=${userpwd%%:*} 20472 FTPPWD=${userpwd#*@} 20473 FTPSERVER=${FTPSERVER#*@} 20474 else 20475 FTPUSER=ftp 20476 FTPPWD=ftp 20477 fi 20478 # the "pass" command does not work on some 20479 # ftp clients (read ftp.exe) but if it works, 20480 # passive mode is better! 20481 ( \ 20482 echo "user $FTPUSER $FTPPWD" ; \ 20483 echo "pass" ; \ 20484 echo "bin" ; \ 20485 echo "get $FTPPATH $tmpfile" ; \ 20486 ) | ftp -in $FTPSERVER 20487 fi 20488 if test "x$VALID_TOOL" != xyes; then 20489 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20490 fi 20491 20492 mv $tmpfile $installdir/$filename 20493 if test ! -s $installdir/$filename; then 20494 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20495 fi 20496 case "$extension" in 20497 zip) echo "Unzipping $installdir/$filename..." 20498 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20499 ;; 20500 tar.gz) echo "Untaring $installdir/$filename..." 20501 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20502 ;; 20503 tgz) echo "Untaring $installdir/$filename..." 20504 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20505 ;; 20506 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20507 ;; 20508 esac 20509 fi 20510 if test -f $installdir/$filename.unpacked; then 20511 depdir=$installdir 20512 fi 20513 20514 fi 20515 # Source the builddeps file again, because in the previous command, the depdir 20516 # was updated to point at the current build dependency install directory. 20517 . $builddepsfile 20518 # Now extract variables from the builddeps.conf files. 20519 theroot=${builddep_bootjdk_ROOT} 20520 thecflags=${builddep_bootjdk_CFLAGS} 20521 thelibs=${builddep_bootjdk_LIBS} 20522 if test "x$depdir" = x; then 20523 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20524 fi 20525 BOOT_JDK=$depdir 20526 if test "x$theroot" != x; then 20527 BOOT_JDK="$theroot" 20528 fi 20529 if test "x$thecflags" != x; then 20530 BOOT_JDK_CFLAGS="$thecflags" 20531 fi 20532 if test "x$thelibs" != x; then 20533 BOOT_JDK_LIBS="$thelibs" 20534 fi 20535 BOOT_JDK_FOUND=maybe 20536 else BOOT_JDK_FOUND=no 20537 20538 fi 20539 else BOOT_JDK_FOUND=no 20540 20541 fi 20542 20543 20544 20545 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20546 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20547 # Do we have a bin/java? 20548 if test ! -x "$BOOT_JDK/bin/java"; then 20549 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20550 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20551 BOOT_JDK_FOUND=no 20552 else 20553 # Do we have a bin/javac? 20554 if test ! -x "$BOOT_JDK/bin/javac"; then 20555 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20556 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20557 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20558 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20559 BOOT_JDK_FOUND=no 20560 else 20561 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20562 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20563 20564 # Extra M4 quote needed to protect [] in grep expression. 20565 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20566 if test "x$FOUND_CORRECT_VERSION" = x; then 20567 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20568 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20569 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20570 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20571 BOOT_JDK_FOUND=no 20572 else 20573 # We're done! :-) 20574 BOOT_JDK_FOUND=yes 20575 20576 # Only process if variable expands to non-empty 20577 20578 if test "x$BOOT_JDK" != x; then 20579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20580 20581 # Input might be given as Windows format, start by converting to 20582 # unix format. 20583 path="$BOOT_JDK" 20584 new_path=`$CYGPATH -u "$path"` 20585 20586 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20587 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20588 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20589 # "foo.exe" is OK but "foo" is an error. 20590 # 20591 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20592 # It is also a way to make sure we got the proper file name for the real test later on. 20593 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20594 if test "x$test_shortpath" = x; then 20595 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20596 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20597 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20598 fi 20599 20600 # Call helper function which possibly converts this using DOS-style short mode. 20601 # If so, the updated path is stored in $new_path. 20602 20603 input_path="$new_path" 20604 # Check if we need to convert this using DOS-style short mode. If the path 20605 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20606 # take no chances and rewrite it. 20607 # Note: m4 eats our [], so we need to use [ and ] instead. 20608 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20609 if test "x$has_forbidden_chars" != x; then 20610 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20611 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20612 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20613 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20614 # Going to short mode and back again did indeed matter. Since short mode is 20615 # case insensitive, let's make it lowercase to improve readability. 20616 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20617 # Now convert it back to Unix-stile (cygpath) 20618 input_path=`$CYGPATH -u "$shortmode_path"` 20619 new_path="$input_path" 20620 fi 20621 fi 20622 20623 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20624 if test "x$test_cygdrive_prefix" = x; then 20625 # As a simple fix, exclude /usr/bin since it's not a real path. 20626 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20627 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20628 # a path prefixed by /cygdrive for fixpath to work. 20629 new_path="$CYGWIN_ROOT_PATH$input_path" 20630 fi 20631 fi 20632 20633 20634 if test "x$path" != "x$new_path"; then 20635 BOOT_JDK="$new_path" 20636 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20637 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20638 fi 20639 20640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20641 20642 path="$BOOT_JDK" 20643 has_colon=`$ECHO $path | $GREP ^.:` 20644 new_path="$path" 20645 if test "x$has_colon" = x; then 20646 # Not in mixed or Windows style, start by that. 20647 new_path=`cmd //c echo $path` 20648 fi 20649 20650 20651 input_path="$new_path" 20652 # Check if we need to convert this using DOS-style short mode. If the path 20653 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20654 # take no chances and rewrite it. 20655 # Note: m4 eats our [], so we need to use [ and ] instead. 20656 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20657 if test "x$has_forbidden_chars" != x; then 20658 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20659 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20660 fi 20661 20662 20663 windows_path="$new_path" 20664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20665 unix_path=`$CYGPATH -u "$windows_path"` 20666 new_path="$unix_path" 20667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20668 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20669 new_path="$unix_path" 20670 fi 20671 20672 if test "x$path" != "x$new_path"; then 20673 BOOT_JDK="$new_path" 20674 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20675 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20676 fi 20677 20678 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20679 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20680 20681 else 20682 # We're on a unix platform. Hooray! :) 20683 path="$BOOT_JDK" 20684 has_space=`$ECHO "$path" | $GREP " "` 20685 if test "x$has_space" != x; then 20686 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20687 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20688 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20689 fi 20690 20691 # Use eval to expand a potential ~ 20692 eval path="$path" 20693 if test ! -f "$path" && test ! -d "$path"; then 20694 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20695 fi 20696 20697 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20698 fi 20699 fi 20700 20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20702 $as_echo_n "checking for Boot JDK... " >&6; } 20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20704 $as_echo "$BOOT_JDK" >&6; } 20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20706 $as_echo_n "checking Boot JDK version... " >&6; } 20707 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20709 $as_echo "$BOOT_JDK_VERSION" >&6; } 20710 fi # end check jdk version 20711 fi # end check javac 20712 fi # end check java 20713 fi # end check boot jdk found 20714 fi 20715 20716 20717 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20718 20719 if test "x$BOOT_JDK_FOUND" = xno; then 20720 # Now execute the test 20721 20722 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20723 # First check at user selected default 20724 20725 if test "x$BOOT_JDK_FOUND" = xno; then 20726 # Now execute the test 20727 20728 if test -x /usr/libexec/java_home; then 20729 BOOT_JDK=`/usr/libexec/java_home ` 20730 BOOT_JDK_FOUND=maybe 20731 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20732 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20733 fi 20734 20735 20736 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20737 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20738 # Do we have a bin/java? 20739 if test ! -x "$BOOT_JDK/bin/java"; then 20740 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20741 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20742 BOOT_JDK_FOUND=no 20743 else 20744 # Do we have a bin/javac? 20745 if test ! -x "$BOOT_JDK/bin/javac"; then 20746 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20747 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20748 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20749 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20750 BOOT_JDK_FOUND=no 20751 else 20752 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20753 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20754 20755 # Extra M4 quote needed to protect [] in grep expression. 20756 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20757 if test "x$FOUND_CORRECT_VERSION" = x; then 20758 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20759 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20760 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20761 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20762 BOOT_JDK_FOUND=no 20763 else 20764 # We're done! :-) 20765 BOOT_JDK_FOUND=yes 20766 20767 # Only process if variable expands to non-empty 20768 20769 if test "x$BOOT_JDK" != x; then 20770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20771 20772 # Input might be given as Windows format, start by converting to 20773 # unix format. 20774 path="$BOOT_JDK" 20775 new_path=`$CYGPATH -u "$path"` 20776 20777 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20778 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20779 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20780 # "foo.exe" is OK but "foo" is an error. 20781 # 20782 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20783 # It is also a way to make sure we got the proper file name for the real test later on. 20784 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20785 if test "x$test_shortpath" = x; then 20786 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20787 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20788 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20789 fi 20790 20791 # Call helper function which possibly converts this using DOS-style short mode. 20792 # If so, the updated path is stored in $new_path. 20793 20794 input_path="$new_path" 20795 # Check if we need to convert this using DOS-style short mode. If the path 20796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20797 # take no chances and rewrite it. 20798 # Note: m4 eats our [], so we need to use [ and ] instead. 20799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20800 if test "x$has_forbidden_chars" != x; then 20801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20802 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20803 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20804 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20805 # Going to short mode and back again did indeed matter. Since short mode is 20806 # case insensitive, let's make it lowercase to improve readability. 20807 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20808 # Now convert it back to Unix-stile (cygpath) 20809 input_path=`$CYGPATH -u "$shortmode_path"` 20810 new_path="$input_path" 20811 fi 20812 fi 20813 20814 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20815 if test "x$test_cygdrive_prefix" = x; then 20816 # As a simple fix, exclude /usr/bin since it's not a real path. 20817 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20818 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20819 # a path prefixed by /cygdrive for fixpath to work. 20820 new_path="$CYGWIN_ROOT_PATH$input_path" 20821 fi 20822 fi 20823 20824 20825 if test "x$path" != "x$new_path"; then 20826 BOOT_JDK="$new_path" 20827 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20828 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20829 fi 20830 20831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20832 20833 path="$BOOT_JDK" 20834 has_colon=`$ECHO $path | $GREP ^.:` 20835 new_path="$path" 20836 if test "x$has_colon" = x; then 20837 # Not in mixed or Windows style, start by that. 20838 new_path=`cmd //c echo $path` 20839 fi 20840 20841 20842 input_path="$new_path" 20843 # Check if we need to convert this using DOS-style short mode. If the path 20844 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20845 # take no chances and rewrite it. 20846 # Note: m4 eats our [], so we need to use [ and ] instead. 20847 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20848 if test "x$has_forbidden_chars" != x; then 20849 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20850 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20851 fi 20852 20853 20854 windows_path="$new_path" 20855 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20856 unix_path=`$CYGPATH -u "$windows_path"` 20857 new_path="$unix_path" 20858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20859 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20860 new_path="$unix_path" 20861 fi 20862 20863 if test "x$path" != "x$new_path"; then 20864 BOOT_JDK="$new_path" 20865 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20866 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20867 fi 20868 20869 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20870 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20871 20872 else 20873 # We're on a unix platform. Hooray! :) 20874 path="$BOOT_JDK" 20875 has_space=`$ECHO "$path" | $GREP " "` 20876 if test "x$has_space" != x; then 20877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20878 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20879 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20880 fi 20881 20882 # Use eval to expand a potential ~ 20883 eval path="$path" 20884 if test ! -f "$path" && test ! -d "$path"; then 20885 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20886 fi 20887 20888 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20889 fi 20890 fi 20891 20892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20893 $as_echo_n "checking for Boot JDK... " >&6; } 20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20895 $as_echo "$BOOT_JDK" >&6; } 20896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20897 $as_echo_n "checking Boot JDK version... " >&6; } 20898 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20900 $as_echo "$BOOT_JDK_VERSION" >&6; } 20901 fi # end check jdk version 20902 fi # end check javac 20903 fi # end check java 20904 fi # end check boot jdk found 20905 fi 20906 20907 # If that did not work out (e.g. too old), try explicit versions instead 20908 20909 if test "x$BOOT_JDK_FOUND" = xno; then 20910 # Now execute the test 20911 20912 if test -x /usr/libexec/java_home; then 20913 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20914 BOOT_JDK_FOUND=maybe 20915 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20916 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20917 fi 20918 20919 20920 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20921 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20922 # Do we have a bin/java? 20923 if test ! -x "$BOOT_JDK/bin/java"; then 20924 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20925 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20926 BOOT_JDK_FOUND=no 20927 else 20928 # Do we have a bin/javac? 20929 if test ! -x "$BOOT_JDK/bin/javac"; then 20930 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20931 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20932 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20933 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20934 BOOT_JDK_FOUND=no 20935 else 20936 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20937 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20938 20939 # Extra M4 quote needed to protect [] in grep expression. 20940 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20941 if test "x$FOUND_CORRECT_VERSION" = x; then 20942 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20943 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20944 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20945 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20946 BOOT_JDK_FOUND=no 20947 else 20948 # We're done! :-) 20949 BOOT_JDK_FOUND=yes 20950 20951 # Only process if variable expands to non-empty 20952 20953 if test "x$BOOT_JDK" != x; then 20954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20955 20956 # Input might be given as Windows format, start by converting to 20957 # unix format. 20958 path="$BOOT_JDK" 20959 new_path=`$CYGPATH -u "$path"` 20960 20961 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20962 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20963 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20964 # "foo.exe" is OK but "foo" is an error. 20965 # 20966 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20967 # It is also a way to make sure we got the proper file name for the real test later on. 20968 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20969 if test "x$test_shortpath" = x; then 20970 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20971 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20972 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20973 fi 20974 20975 # Call helper function which possibly converts this using DOS-style short mode. 20976 # If so, the updated path is stored in $new_path. 20977 20978 input_path="$new_path" 20979 # Check if we need to convert this using DOS-style short mode. If the path 20980 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20981 # take no chances and rewrite it. 20982 # Note: m4 eats our [], so we need to use [ and ] instead. 20983 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20984 if test "x$has_forbidden_chars" != x; then 20985 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20986 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20987 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20988 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20989 # Going to short mode and back again did indeed matter. Since short mode is 20990 # case insensitive, let's make it lowercase to improve readability. 20991 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20992 # Now convert it back to Unix-stile (cygpath) 20993 input_path=`$CYGPATH -u "$shortmode_path"` 20994 new_path="$input_path" 20995 fi 20996 fi 20997 20998 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20999 if test "x$test_cygdrive_prefix" = x; then 21000 # As a simple fix, exclude /usr/bin since it's not a real path. 21001 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21002 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21003 # a path prefixed by /cygdrive for fixpath to work. 21004 new_path="$CYGWIN_ROOT_PATH$input_path" 21005 fi 21006 fi 21007 21008 21009 if test "x$path" != "x$new_path"; then 21010 BOOT_JDK="$new_path" 21011 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21012 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21013 fi 21014 21015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21016 21017 path="$BOOT_JDK" 21018 has_colon=`$ECHO $path | $GREP ^.:` 21019 new_path="$path" 21020 if test "x$has_colon" = x; then 21021 # Not in mixed or Windows style, start by that. 21022 new_path=`cmd //c echo $path` 21023 fi 21024 21025 21026 input_path="$new_path" 21027 # Check if we need to convert this using DOS-style short mode. If the path 21028 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21029 # take no chances and rewrite it. 21030 # Note: m4 eats our [], so we need to use [ and ] instead. 21031 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21032 if test "x$has_forbidden_chars" != x; then 21033 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21034 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21035 fi 21036 21037 21038 windows_path="$new_path" 21039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21040 unix_path=`$CYGPATH -u "$windows_path"` 21041 new_path="$unix_path" 21042 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21043 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21044 new_path="$unix_path" 21045 fi 21046 21047 if test "x$path" != "x$new_path"; then 21048 BOOT_JDK="$new_path" 21049 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21050 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21051 fi 21052 21053 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21054 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21055 21056 else 21057 # We're on a unix platform. Hooray! :) 21058 path="$BOOT_JDK" 21059 has_space=`$ECHO "$path" | $GREP " "` 21060 if test "x$has_space" != x; then 21061 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21062 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21063 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21064 fi 21065 21066 # Use eval to expand a potential ~ 21067 eval path="$path" 21068 if test ! -f "$path" && test ! -d "$path"; then 21069 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21070 fi 21071 21072 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21073 fi 21074 fi 21075 21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21077 $as_echo_n "checking for Boot JDK... " >&6; } 21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21079 $as_echo "$BOOT_JDK" >&6; } 21080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21081 $as_echo_n "checking Boot JDK version... " >&6; } 21082 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21084 $as_echo "$BOOT_JDK_VERSION" >&6; } 21085 fi # end check jdk version 21086 fi # end check javac 21087 fi # end check java 21088 fi # end check boot jdk found 21089 fi 21090 21091 21092 if test "x$BOOT_JDK_FOUND" = xno; then 21093 # Now execute the test 21094 21095 if test -x /usr/libexec/java_home; then 21096 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 21097 BOOT_JDK_FOUND=maybe 21098 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 21099 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 21100 fi 21101 21102 21103 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21104 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21105 # Do we have a bin/java? 21106 if test ! -x "$BOOT_JDK/bin/java"; then 21107 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21108 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21109 BOOT_JDK_FOUND=no 21110 else 21111 # Do we have a bin/javac? 21112 if test ! -x "$BOOT_JDK/bin/javac"; then 21113 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21114 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21115 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21116 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21117 BOOT_JDK_FOUND=no 21118 else 21119 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21120 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21121 21122 # Extra M4 quote needed to protect [] in grep expression. 21123 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21124 if test "x$FOUND_CORRECT_VERSION" = x; then 21125 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21126 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21127 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21128 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21129 BOOT_JDK_FOUND=no 21130 else 21131 # We're done! :-) 21132 BOOT_JDK_FOUND=yes 21133 21134 # Only process if variable expands to non-empty 21135 21136 if test "x$BOOT_JDK" != x; then 21137 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21138 21139 # Input might be given as Windows format, start by converting to 21140 # unix format. 21141 path="$BOOT_JDK" 21142 new_path=`$CYGPATH -u "$path"` 21143 21144 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21145 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21146 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21147 # "foo.exe" is OK but "foo" is an error. 21148 # 21149 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21150 # It is also a way to make sure we got the proper file name for the real test later on. 21151 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21152 if test "x$test_shortpath" = x; then 21153 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21154 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21155 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21156 fi 21157 21158 # Call helper function which possibly converts this using DOS-style short mode. 21159 # If so, the updated path is stored in $new_path. 21160 21161 input_path="$new_path" 21162 # Check if we need to convert this using DOS-style short mode. If the path 21163 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21164 # take no chances and rewrite it. 21165 # Note: m4 eats our [], so we need to use [ and ] instead. 21166 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21167 if test "x$has_forbidden_chars" != x; then 21168 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21169 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21170 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21171 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21172 # Going to short mode and back again did indeed matter. Since short mode is 21173 # case insensitive, let's make it lowercase to improve readability. 21174 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21175 # Now convert it back to Unix-stile (cygpath) 21176 input_path=`$CYGPATH -u "$shortmode_path"` 21177 new_path="$input_path" 21178 fi 21179 fi 21180 21181 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21182 if test "x$test_cygdrive_prefix" = x; then 21183 # As a simple fix, exclude /usr/bin since it's not a real path. 21184 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21185 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21186 # a path prefixed by /cygdrive for fixpath to work. 21187 new_path="$CYGWIN_ROOT_PATH$input_path" 21188 fi 21189 fi 21190 21191 21192 if test "x$path" != "x$new_path"; then 21193 BOOT_JDK="$new_path" 21194 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21195 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21196 fi 21197 21198 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21199 21200 path="$BOOT_JDK" 21201 has_colon=`$ECHO $path | $GREP ^.:` 21202 new_path="$path" 21203 if test "x$has_colon" = x; then 21204 # Not in mixed or Windows style, start by that. 21205 new_path=`cmd //c echo $path` 21206 fi 21207 21208 21209 input_path="$new_path" 21210 # Check if we need to convert this using DOS-style short mode. If the path 21211 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21212 # take no chances and rewrite it. 21213 # Note: m4 eats our [], so we need to use [ and ] instead. 21214 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21215 if test "x$has_forbidden_chars" != x; then 21216 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21217 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21218 fi 21219 21220 21221 windows_path="$new_path" 21222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21223 unix_path=`$CYGPATH -u "$windows_path"` 21224 new_path="$unix_path" 21225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21226 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21227 new_path="$unix_path" 21228 fi 21229 21230 if test "x$path" != "x$new_path"; then 21231 BOOT_JDK="$new_path" 21232 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21233 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21234 fi 21235 21236 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21237 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21238 21239 else 21240 # We're on a unix platform. Hooray! :) 21241 path="$BOOT_JDK" 21242 has_space=`$ECHO "$path" | $GREP " "` 21243 if test "x$has_space" != x; then 21244 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21245 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21246 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21247 fi 21248 21249 # Use eval to expand a potential ~ 21250 eval path="$path" 21251 if test ! -f "$path" && test ! -d "$path"; then 21252 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21253 fi 21254 21255 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21256 fi 21257 fi 21258 21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21260 $as_echo_n "checking for Boot JDK... " >&6; } 21261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21262 $as_echo "$BOOT_JDK" >&6; } 21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21264 $as_echo_n "checking Boot JDK version... " >&6; } 21265 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21267 $as_echo "$BOOT_JDK_VERSION" >&6; } 21268 fi # end check jdk version 21269 fi # end check javac 21270 fi # end check java 21271 fi # end check boot jdk found 21272 fi 21273 21274 21275 if test "x$BOOT_JDK_FOUND" = xno; then 21276 # Now execute the test 21277 21278 if test -x /usr/libexec/java_home; then 21279 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 21280 BOOT_JDK_FOUND=maybe 21281 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 21282 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 21283 fi 21284 21285 21286 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21287 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21288 # Do we have a bin/java? 21289 if test ! -x "$BOOT_JDK/bin/java"; then 21290 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21291 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21292 BOOT_JDK_FOUND=no 21293 else 21294 # Do we have a bin/javac? 21295 if test ! -x "$BOOT_JDK/bin/javac"; then 21296 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21297 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21298 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21299 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21300 BOOT_JDK_FOUND=no 21301 else 21302 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21303 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21304 21305 # Extra M4 quote needed to protect [] in grep expression. 21306 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21307 if test "x$FOUND_CORRECT_VERSION" = x; then 21308 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21309 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21310 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21311 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21312 BOOT_JDK_FOUND=no 21313 else 21314 # We're done! :-) 21315 BOOT_JDK_FOUND=yes 21316 21317 # Only process if variable expands to non-empty 21318 21319 if test "x$BOOT_JDK" != x; then 21320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21321 21322 # Input might be given as Windows format, start by converting to 21323 # unix format. 21324 path="$BOOT_JDK" 21325 new_path=`$CYGPATH -u "$path"` 21326 21327 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21328 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21329 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21330 # "foo.exe" is OK but "foo" is an error. 21331 # 21332 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21333 # It is also a way to make sure we got the proper file name for the real test later on. 21334 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21335 if test "x$test_shortpath" = x; then 21336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21337 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21338 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21339 fi 21340 21341 # Call helper function which possibly converts this using DOS-style short mode. 21342 # If so, the updated path is stored in $new_path. 21343 21344 input_path="$new_path" 21345 # Check if we need to convert this using DOS-style short mode. If the path 21346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21347 # take no chances and rewrite it. 21348 # Note: m4 eats our [], so we need to use [ and ] instead. 21349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21350 if test "x$has_forbidden_chars" != x; then 21351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21352 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21353 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21354 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21355 # Going to short mode and back again did indeed matter. Since short mode is 21356 # case insensitive, let's make it lowercase to improve readability. 21357 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21358 # Now convert it back to Unix-stile (cygpath) 21359 input_path=`$CYGPATH -u "$shortmode_path"` 21360 new_path="$input_path" 21361 fi 21362 fi 21363 21364 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21365 if test "x$test_cygdrive_prefix" = x; then 21366 # As a simple fix, exclude /usr/bin since it's not a real path. 21367 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21368 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21369 # a path prefixed by /cygdrive for fixpath to work. 21370 new_path="$CYGWIN_ROOT_PATH$input_path" 21371 fi 21372 fi 21373 21374 21375 if test "x$path" != "x$new_path"; then 21376 BOOT_JDK="$new_path" 21377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21378 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21379 fi 21380 21381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21382 21383 path="$BOOT_JDK" 21384 has_colon=`$ECHO $path | $GREP ^.:` 21385 new_path="$path" 21386 if test "x$has_colon" = x; then 21387 # Not in mixed or Windows style, start by that. 21388 new_path=`cmd //c echo $path` 21389 fi 21390 21391 21392 input_path="$new_path" 21393 # Check if we need to convert this using DOS-style short mode. If the path 21394 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21395 # take no chances and rewrite it. 21396 # Note: m4 eats our [], so we need to use [ and ] instead. 21397 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21398 if test "x$has_forbidden_chars" != x; then 21399 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21400 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21401 fi 21402 21403 21404 windows_path="$new_path" 21405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21406 unix_path=`$CYGPATH -u "$windows_path"` 21407 new_path="$unix_path" 21408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21410 new_path="$unix_path" 21411 fi 21412 21413 if test "x$path" != "x$new_path"; then 21414 BOOT_JDK="$new_path" 21415 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21416 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21417 fi 21418 21419 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21420 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21421 21422 else 21423 # We're on a unix platform. Hooray! :) 21424 path="$BOOT_JDK" 21425 has_space=`$ECHO "$path" | $GREP " "` 21426 if test "x$has_space" != x; then 21427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21428 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21429 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21430 fi 21431 21432 # Use eval to expand a potential ~ 21433 eval path="$path" 21434 if test ! -f "$path" && test ! -d "$path"; then 21435 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21436 fi 21437 21438 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21439 fi 21440 fi 21441 21442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21443 $as_echo_n "checking for Boot JDK... " >&6; } 21444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21445 $as_echo "$BOOT_JDK" >&6; } 21446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21447 $as_echo_n "checking Boot JDK version... " >&6; } 21448 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21450 $as_echo "$BOOT_JDK_VERSION" >&6; } 21451 fi # end check jdk version 21452 fi # end check javac 21453 fi # end check java 21454 fi # end check boot jdk found 21455 fi 21456 21457 fi 21458 21459 21460 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21461 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21462 # Do we have a bin/java? 21463 if test ! -x "$BOOT_JDK/bin/java"; then 21464 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21465 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21466 BOOT_JDK_FOUND=no 21467 else 21468 # Do we have a bin/javac? 21469 if test ! -x "$BOOT_JDK/bin/javac"; then 21470 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21472 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21473 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21474 BOOT_JDK_FOUND=no 21475 else 21476 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21477 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21478 21479 # Extra M4 quote needed to protect [] in grep expression. 21480 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21481 if test "x$FOUND_CORRECT_VERSION" = x; then 21482 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21483 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21484 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21485 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21486 BOOT_JDK_FOUND=no 21487 else 21488 # We're done! :-) 21489 BOOT_JDK_FOUND=yes 21490 21491 # Only process if variable expands to non-empty 21492 21493 if test "x$BOOT_JDK" != x; then 21494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21495 21496 # Input might be given as Windows format, start by converting to 21497 # unix format. 21498 path="$BOOT_JDK" 21499 new_path=`$CYGPATH -u "$path"` 21500 21501 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21502 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21503 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21504 # "foo.exe" is OK but "foo" is an error. 21505 # 21506 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21507 # It is also a way to make sure we got the proper file name for the real test later on. 21508 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21509 if test "x$test_shortpath" = x; then 21510 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21511 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21512 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21513 fi 21514 21515 # Call helper function which possibly converts this using DOS-style short mode. 21516 # If so, the updated path is stored in $new_path. 21517 21518 input_path="$new_path" 21519 # Check if we need to convert this using DOS-style short mode. If the path 21520 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21521 # take no chances and rewrite it. 21522 # Note: m4 eats our [], so we need to use [ and ] instead. 21523 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21524 if test "x$has_forbidden_chars" != x; then 21525 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21526 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21527 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21528 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21529 # Going to short mode and back again did indeed matter. Since short mode is 21530 # case insensitive, let's make it lowercase to improve readability. 21531 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21532 # Now convert it back to Unix-stile (cygpath) 21533 input_path=`$CYGPATH -u "$shortmode_path"` 21534 new_path="$input_path" 21535 fi 21536 fi 21537 21538 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21539 if test "x$test_cygdrive_prefix" = x; then 21540 # As a simple fix, exclude /usr/bin since it's not a real path. 21541 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21542 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21543 # a path prefixed by /cygdrive for fixpath to work. 21544 new_path="$CYGWIN_ROOT_PATH$input_path" 21545 fi 21546 fi 21547 21548 21549 if test "x$path" != "x$new_path"; then 21550 BOOT_JDK="$new_path" 21551 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21552 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21553 fi 21554 21555 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21556 21557 path="$BOOT_JDK" 21558 has_colon=`$ECHO $path | $GREP ^.:` 21559 new_path="$path" 21560 if test "x$has_colon" = x; then 21561 # Not in mixed or Windows style, start by that. 21562 new_path=`cmd //c echo $path` 21563 fi 21564 21565 21566 input_path="$new_path" 21567 # Check if we need to convert this using DOS-style short mode. If the path 21568 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21569 # take no chances and rewrite it. 21570 # Note: m4 eats our [], so we need to use [ and ] instead. 21571 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21572 if test "x$has_forbidden_chars" != x; then 21573 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21574 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21575 fi 21576 21577 21578 windows_path="$new_path" 21579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21580 unix_path=`$CYGPATH -u "$windows_path"` 21581 new_path="$unix_path" 21582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21583 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21584 new_path="$unix_path" 21585 fi 21586 21587 if test "x$path" != "x$new_path"; then 21588 BOOT_JDK="$new_path" 21589 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21590 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21591 fi 21592 21593 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21594 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21595 21596 else 21597 # We're on a unix platform. Hooray! :) 21598 path="$BOOT_JDK" 21599 has_space=`$ECHO "$path" | $GREP " "` 21600 if test "x$has_space" != x; then 21601 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21602 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21603 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21604 fi 21605 21606 # Use eval to expand a potential ~ 21607 eval path="$path" 21608 if test ! -f "$path" && test ! -d "$path"; then 21609 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21610 fi 21611 21612 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21613 fi 21614 fi 21615 21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21617 $as_echo_n "checking for Boot JDK... " >&6; } 21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21619 $as_echo "$BOOT_JDK" >&6; } 21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21621 $as_echo_n "checking Boot JDK version... " >&6; } 21622 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21624 $as_echo "$BOOT_JDK_VERSION" >&6; } 21625 fi # end check jdk version 21626 fi # end check javac 21627 fi # end check java 21628 fi # end check boot jdk found 21629 fi 21630 21631 21632 # Test: Is $JAVA_HOME set? 21633 21634 if test "x$BOOT_JDK_FOUND" = xno; then 21635 # Now execute the test 21636 21637 if test "x$JAVA_HOME" != x; then 21638 JAVA_HOME_PROCESSED="$JAVA_HOME" 21639 21640 # Only process if variable expands to non-empty 21641 21642 if test "x$JAVA_HOME_PROCESSED" != x; then 21643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21644 21645 # Input might be given as Windows format, start by converting to 21646 # unix format. 21647 path="$JAVA_HOME_PROCESSED" 21648 new_path=`$CYGPATH -u "$path"` 21649 21650 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21651 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21652 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21653 # "foo.exe" is OK but "foo" is an error. 21654 # 21655 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21656 # It is also a way to make sure we got the proper file name for the real test later on. 21657 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21658 if test "x$test_shortpath" = x; then 21659 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21660 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21661 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21662 fi 21663 21664 # Call helper function which possibly converts this using DOS-style short mode. 21665 # If so, the updated path is stored in $new_path. 21666 21667 input_path="$new_path" 21668 # Check if we need to convert this using DOS-style short mode. If the path 21669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21670 # take no chances and rewrite it. 21671 # Note: m4 eats our [], so we need to use [ and ] instead. 21672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21673 if test "x$has_forbidden_chars" != x; then 21674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21675 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21676 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21677 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21678 # Going to short mode and back again did indeed matter. Since short mode is 21679 # case insensitive, let's make it lowercase to improve readability. 21680 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21681 # Now convert it back to Unix-stile (cygpath) 21682 input_path=`$CYGPATH -u "$shortmode_path"` 21683 new_path="$input_path" 21684 fi 21685 fi 21686 21687 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21688 if test "x$test_cygdrive_prefix" = x; then 21689 # As a simple fix, exclude /usr/bin since it's not a real path. 21690 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21691 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21692 # a path prefixed by /cygdrive for fixpath to work. 21693 new_path="$CYGWIN_ROOT_PATH$input_path" 21694 fi 21695 fi 21696 21697 21698 if test "x$path" != "x$new_path"; then 21699 JAVA_HOME_PROCESSED="$new_path" 21700 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21701 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21702 fi 21703 21704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21705 21706 path="$JAVA_HOME_PROCESSED" 21707 has_colon=`$ECHO $path | $GREP ^.:` 21708 new_path="$path" 21709 if test "x$has_colon" = x; then 21710 # Not in mixed or Windows style, start by that. 21711 new_path=`cmd //c echo $path` 21712 fi 21713 21714 21715 input_path="$new_path" 21716 # Check if we need to convert this using DOS-style short mode. If the path 21717 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21718 # take no chances and rewrite it. 21719 # Note: m4 eats our [], so we need to use [ and ] instead. 21720 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21721 if test "x$has_forbidden_chars" != x; then 21722 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21723 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21724 fi 21725 21726 21727 windows_path="$new_path" 21728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21729 unix_path=`$CYGPATH -u "$windows_path"` 21730 new_path="$unix_path" 21731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21732 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21733 new_path="$unix_path" 21734 fi 21735 21736 if test "x$path" != "x$new_path"; then 21737 JAVA_HOME_PROCESSED="$new_path" 21738 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21739 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21740 fi 21741 21742 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21743 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21744 21745 else 21746 # We're on a unix platform. Hooray! :) 21747 path="$JAVA_HOME_PROCESSED" 21748 has_space=`$ECHO "$path" | $GREP " "` 21749 if test "x$has_space" != x; then 21750 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21751 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21752 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21753 fi 21754 21755 # Use eval to expand a potential ~ 21756 eval path="$path" 21757 if test ! -f "$path" && test ! -d "$path"; then 21758 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21759 fi 21760 21761 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21762 fi 21763 fi 21764 21765 if test ! -d "$JAVA_HOME_PROCESSED"; then 21766 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21767 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21768 else 21769 # Aha, the user has set a JAVA_HOME 21770 # let us use that as the Boot JDK. 21771 BOOT_JDK="$JAVA_HOME_PROCESSED" 21772 BOOT_JDK_FOUND=maybe 21773 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21774 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21775 fi 21776 fi 21777 21778 21779 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21780 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21781 # Do we have a bin/java? 21782 if test ! -x "$BOOT_JDK/bin/java"; then 21783 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21784 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21785 BOOT_JDK_FOUND=no 21786 else 21787 # Do we have a bin/javac? 21788 if test ! -x "$BOOT_JDK/bin/javac"; then 21789 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21790 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21791 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21792 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21793 BOOT_JDK_FOUND=no 21794 else 21795 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21796 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21797 21798 # Extra M4 quote needed to protect [] in grep expression. 21799 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21800 if test "x$FOUND_CORRECT_VERSION" = x; then 21801 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21803 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21804 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21805 BOOT_JDK_FOUND=no 21806 else 21807 # We're done! :-) 21808 BOOT_JDK_FOUND=yes 21809 21810 # Only process if variable expands to non-empty 21811 21812 if test "x$BOOT_JDK" != x; then 21813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21814 21815 # Input might be given as Windows format, start by converting to 21816 # unix format. 21817 path="$BOOT_JDK" 21818 new_path=`$CYGPATH -u "$path"` 21819 21820 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21821 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21822 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21823 # "foo.exe" is OK but "foo" is an error. 21824 # 21825 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21826 # It is also a way to make sure we got the proper file name for the real test later on. 21827 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21828 if test "x$test_shortpath" = x; then 21829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21830 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21831 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21832 fi 21833 21834 # Call helper function which possibly converts this using DOS-style short mode. 21835 # If so, the updated path is stored in $new_path. 21836 21837 input_path="$new_path" 21838 # Check if we need to convert this using DOS-style short mode. If the path 21839 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21840 # take no chances and rewrite it. 21841 # Note: m4 eats our [], so we need to use [ and ] instead. 21842 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21843 if test "x$has_forbidden_chars" != x; then 21844 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21845 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21846 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21847 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21848 # Going to short mode and back again did indeed matter. Since short mode is 21849 # case insensitive, let's make it lowercase to improve readability. 21850 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21851 # Now convert it back to Unix-stile (cygpath) 21852 input_path=`$CYGPATH -u "$shortmode_path"` 21853 new_path="$input_path" 21854 fi 21855 fi 21856 21857 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21858 if test "x$test_cygdrive_prefix" = x; then 21859 # As a simple fix, exclude /usr/bin since it's not a real path. 21860 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21861 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21862 # a path prefixed by /cygdrive for fixpath to work. 21863 new_path="$CYGWIN_ROOT_PATH$input_path" 21864 fi 21865 fi 21866 21867 21868 if test "x$path" != "x$new_path"; then 21869 BOOT_JDK="$new_path" 21870 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21871 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21872 fi 21873 21874 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21875 21876 path="$BOOT_JDK" 21877 has_colon=`$ECHO $path | $GREP ^.:` 21878 new_path="$path" 21879 if test "x$has_colon" = x; then 21880 # Not in mixed or Windows style, start by that. 21881 new_path=`cmd //c echo $path` 21882 fi 21883 21884 21885 input_path="$new_path" 21886 # Check if we need to convert this using DOS-style short mode. If the path 21887 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21888 # take no chances and rewrite it. 21889 # Note: m4 eats our [], so we need to use [ and ] instead. 21890 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21891 if test "x$has_forbidden_chars" != x; then 21892 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21893 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21894 fi 21895 21896 21897 windows_path="$new_path" 21898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21899 unix_path=`$CYGPATH -u "$windows_path"` 21900 new_path="$unix_path" 21901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21902 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21903 new_path="$unix_path" 21904 fi 21905 21906 if test "x$path" != "x$new_path"; then 21907 BOOT_JDK="$new_path" 21908 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21909 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21910 fi 21911 21912 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21913 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21914 21915 else 21916 # We're on a unix platform. Hooray! :) 21917 path="$BOOT_JDK" 21918 has_space=`$ECHO "$path" | $GREP " "` 21919 if test "x$has_space" != x; then 21920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21921 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21922 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21923 fi 21924 21925 # Use eval to expand a potential ~ 21926 eval path="$path" 21927 if test ! -f "$path" && test ! -d "$path"; then 21928 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21929 fi 21930 21931 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21932 fi 21933 fi 21934 21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21936 $as_echo_n "checking for Boot JDK... " >&6; } 21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21938 $as_echo "$BOOT_JDK" >&6; } 21939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21940 $as_echo_n "checking Boot JDK version... " >&6; } 21941 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21943 $as_echo "$BOOT_JDK_VERSION" >&6; } 21944 fi # end check jdk version 21945 fi # end check javac 21946 fi # end check java 21947 fi # end check boot jdk found 21948 fi 21949 21950 21951 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21952 21953 if test "x$BOOT_JDK_FOUND" = xno; then 21954 # Now execute the test 21955 21956 # Extract the first word of "javac", so it can be a program name with args. 21957 set dummy javac; ac_word=$2 21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21959 $as_echo_n "checking for $ac_word... " >&6; } 21960 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21961 $as_echo_n "(cached) " >&6 21962 else 21963 case $JAVAC_CHECK in 21964 [\\/]* | ?:[\\/]*) 21965 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21966 ;; 21967 *) 21968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21969 for as_dir in $PATH 21970 do 21971 IFS=$as_save_IFS 21972 test -z "$as_dir" && as_dir=. 21973 for ac_exec_ext in '' $ac_executable_extensions; do 21974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21975 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21977 break 2 21978 fi 21979 done 21980 done 21981 IFS=$as_save_IFS 21982 21983 ;; 21984 esac 21985 fi 21986 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21987 if test -n "$JAVAC_CHECK"; then 21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21989 $as_echo "$JAVAC_CHECK" >&6; } 21990 else 21991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21992 $as_echo "no" >&6; } 21993 fi 21994 21995 21996 # Extract the first word of "java", so it can be a program name with args. 21997 set dummy java; ac_word=$2 21998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21999 $as_echo_n "checking for $ac_word... " >&6; } 22000 if ${ac_cv_path_JAVA_CHECK+:} false; then : 22001 $as_echo_n "(cached) " >&6 22002 else 22003 case $JAVA_CHECK in 22004 [\\/]* | ?:[\\/]*) 22005 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 22006 ;; 22007 *) 22008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22009 for as_dir in $PATH 22010 do 22011 IFS=$as_save_IFS 22012 test -z "$as_dir" && as_dir=. 22013 for ac_exec_ext in '' $ac_executable_extensions; do 22014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22015 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 22016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22017 break 2 22018 fi 22019 done 22020 done 22021 IFS=$as_save_IFS 22022 22023 ;; 22024 esac 22025 fi 22026 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 22027 if test -n "$JAVA_CHECK"; then 22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 22029 $as_echo "$JAVA_CHECK" >&6; } 22030 else 22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22032 $as_echo "no" >&6; } 22033 fi 22034 22035 22036 BINARY="$JAVAC_CHECK" 22037 if test "x$JAVAC_CHECK" = x; then 22038 BINARY="$JAVA_CHECK" 22039 fi 22040 if test "x$BINARY" != x; then 22041 # So there is a java(c) binary, it might be part of a JDK. 22042 # Lets find the JDK/JRE directory by following symbolic links. 22043 # Linux/GNU systems often have links from /usr/bin/java to 22044 # /etc/alternatives/java to the real JDK binary. 22045 22046 if test "x$OPENJDK_BUILD_OS" != xwindows; then 22047 # Follow a chain of symbolic links. Use readlink 22048 # where it exists, else fall back to horribly 22049 # complicated shell code. 22050 if test "x$READLINK_TESTED" != yes; then 22051 # On MacOSX there is a readlink tool with a different 22052 # purpose than the GNU readlink tool. Check the found readlink. 22053 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 22054 if test "x$ISGNU" = x; then 22055 # A readlink that we do not know how to use. 22056 # Are there other non-GNU readlinks out there? 22057 READLINK_TESTED=yes 22058 READLINK= 22059 fi 22060 fi 22061 22062 if test "x$READLINK" != x; then 22063 BINARY=`$READLINK -f $BINARY` 22064 else 22065 # Save the current directory for restoring afterwards 22066 STARTDIR=$PWD 22067 COUNTER=0 22068 sym_link_dir=`$DIRNAME $BINARY` 22069 sym_link_file=`$BASENAME $BINARY` 22070 cd $sym_link_dir 22071 # Use -P flag to resolve symlinks in directories. 22072 cd `$THEPWDCMD -P` 22073 sym_link_dir=`$THEPWDCMD -P` 22074 # Resolve file symlinks 22075 while test $COUNTER -lt 20; do 22076 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 22077 if test "x$ISLINK" == x; then 22078 # This is not a symbolic link! We are done! 22079 break 22080 fi 22081 # Again resolve directory symlinks since the target of the just found 22082 # link could be in a different directory 22083 cd `$DIRNAME $ISLINK` 22084 sym_link_dir=`$THEPWDCMD -P` 22085 sym_link_file=`$BASENAME $ISLINK` 22086 let COUNTER=COUNTER+1 22087 done 22088 cd $STARTDIR 22089 BINARY=$sym_link_dir/$sym_link_file 22090 fi 22091 fi 22092 22093 BOOT_JDK=`dirname "$BINARY"` 22094 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 22095 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 22096 # Looks like we found ourselves an JDK 22097 BOOT_JDK_FOUND=maybe 22098 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 22099 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 22100 fi 22101 fi 22102 22103 22104 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22105 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22106 # Do we have a bin/java? 22107 if test ! -x "$BOOT_JDK/bin/java"; then 22108 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22109 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22110 BOOT_JDK_FOUND=no 22111 else 22112 # Do we have a bin/javac? 22113 if test ! -x "$BOOT_JDK/bin/javac"; then 22114 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22115 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22116 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22117 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22118 BOOT_JDK_FOUND=no 22119 else 22120 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22121 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22122 22123 # Extra M4 quote needed to protect [] in grep expression. 22124 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22125 if test "x$FOUND_CORRECT_VERSION" = x; then 22126 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22127 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22128 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22129 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22130 BOOT_JDK_FOUND=no 22131 else 22132 # We're done! :-) 22133 BOOT_JDK_FOUND=yes 22134 22135 # Only process if variable expands to non-empty 22136 22137 if test "x$BOOT_JDK" != x; then 22138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22139 22140 # Input might be given as Windows format, start by converting to 22141 # unix format. 22142 path="$BOOT_JDK" 22143 new_path=`$CYGPATH -u "$path"` 22144 22145 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22146 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22147 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22148 # "foo.exe" is OK but "foo" is an error. 22149 # 22150 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22151 # It is also a way to make sure we got the proper file name for the real test later on. 22152 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22153 if test "x$test_shortpath" = x; then 22154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22155 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22156 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22157 fi 22158 22159 # Call helper function which possibly converts this using DOS-style short mode. 22160 # If so, the updated path is stored in $new_path. 22161 22162 input_path="$new_path" 22163 # Check if we need to convert this using DOS-style short mode. If the path 22164 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22165 # take no chances and rewrite it. 22166 # Note: m4 eats our [], so we need to use [ and ] instead. 22167 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22168 if test "x$has_forbidden_chars" != x; then 22169 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22170 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22171 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22172 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22173 # Going to short mode and back again did indeed matter. Since short mode is 22174 # case insensitive, let's make it lowercase to improve readability. 22175 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22176 # Now convert it back to Unix-stile (cygpath) 22177 input_path=`$CYGPATH -u "$shortmode_path"` 22178 new_path="$input_path" 22179 fi 22180 fi 22181 22182 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22183 if test "x$test_cygdrive_prefix" = x; then 22184 # As a simple fix, exclude /usr/bin since it's not a real path. 22185 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22186 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22187 # a path prefixed by /cygdrive for fixpath to work. 22188 new_path="$CYGWIN_ROOT_PATH$input_path" 22189 fi 22190 fi 22191 22192 22193 if test "x$path" != "x$new_path"; then 22194 BOOT_JDK="$new_path" 22195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22196 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22197 fi 22198 22199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22200 22201 path="$BOOT_JDK" 22202 has_colon=`$ECHO $path | $GREP ^.:` 22203 new_path="$path" 22204 if test "x$has_colon" = x; then 22205 # Not in mixed or Windows style, start by that. 22206 new_path=`cmd //c echo $path` 22207 fi 22208 22209 22210 input_path="$new_path" 22211 # Check if we need to convert this using DOS-style short mode. If the path 22212 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22213 # take no chances and rewrite it. 22214 # Note: m4 eats our [], so we need to use [ and ] instead. 22215 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22216 if test "x$has_forbidden_chars" != x; then 22217 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22218 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22219 fi 22220 22221 22222 windows_path="$new_path" 22223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22224 unix_path=`$CYGPATH -u "$windows_path"` 22225 new_path="$unix_path" 22226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22227 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22228 new_path="$unix_path" 22229 fi 22230 22231 if test "x$path" != "x$new_path"; then 22232 BOOT_JDK="$new_path" 22233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22234 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22235 fi 22236 22237 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22238 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22239 22240 else 22241 # We're on a unix platform. Hooray! :) 22242 path="$BOOT_JDK" 22243 has_space=`$ECHO "$path" | $GREP " "` 22244 if test "x$has_space" != x; then 22245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22246 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22247 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22248 fi 22249 22250 # Use eval to expand a potential ~ 22251 eval path="$path" 22252 if test ! -f "$path" && test ! -d "$path"; then 22253 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22254 fi 22255 22256 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22257 fi 22258 fi 22259 22260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22261 $as_echo_n "checking for Boot JDK... " >&6; } 22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22263 $as_echo "$BOOT_JDK" >&6; } 22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22265 $as_echo_n "checking Boot JDK version... " >&6; } 22266 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22268 $as_echo "$BOOT_JDK_VERSION" >&6; } 22269 fi # end check jdk version 22270 fi # end check javac 22271 fi # end check java 22272 fi # end check boot jdk found 22273 fi 22274 22275 22276 # Test: Is there a JDK installed in default, well-known locations? 22277 22278 if test "x$BOOT_JDK_FOUND" = xno; then 22279 # Now execute the test 22280 22281 if test "x$OPENJDK_TARGET_OS" = xwindows; then 22282 22283 if test "x$BOOT_JDK_FOUND" = xno; then 22284 # Now execute the test 22285 22286 if test "x$ProgramW6432" != x; then 22287 VIRTUAL_DIR="$ProgramW6432/Java" 22288 22289 windows_path="$VIRTUAL_DIR" 22290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22291 unix_path=`$CYGPATH -u "$windows_path"` 22292 VIRTUAL_DIR="$unix_path" 22293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22294 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22295 VIRTUAL_DIR="$unix_path" 22296 fi 22297 22298 22299 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22300 BOOT_JDK_SUFFIX="" 22301 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22302 if test "x$ALL_JDKS_FOUND" != x; then 22303 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22304 22305 if test "x$BOOT_JDK_FOUND" = xno; then 22306 # Now execute the test 22307 22308 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22309 if test -d "$BOOT_JDK"; then 22310 BOOT_JDK_FOUND=maybe 22311 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22312 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22313 fi 22314 22315 22316 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22317 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22318 # Do we have a bin/java? 22319 if test ! -x "$BOOT_JDK/bin/java"; then 22320 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22321 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22322 BOOT_JDK_FOUND=no 22323 else 22324 # Do we have a bin/javac? 22325 if test ! -x "$BOOT_JDK/bin/javac"; then 22326 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22327 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22328 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22329 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22330 BOOT_JDK_FOUND=no 22331 else 22332 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22333 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22334 22335 # Extra M4 quote needed to protect [] in grep expression. 22336 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22337 if test "x$FOUND_CORRECT_VERSION" = x; then 22338 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22339 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22340 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22341 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22342 BOOT_JDK_FOUND=no 22343 else 22344 # We're done! :-) 22345 BOOT_JDK_FOUND=yes 22346 22347 # Only process if variable expands to non-empty 22348 22349 if test "x$BOOT_JDK" != x; then 22350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22351 22352 # Input might be given as Windows format, start by converting to 22353 # unix format. 22354 path="$BOOT_JDK" 22355 new_path=`$CYGPATH -u "$path"` 22356 22357 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22358 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22359 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22360 # "foo.exe" is OK but "foo" is an error. 22361 # 22362 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22363 # It is also a way to make sure we got the proper file name for the real test later on. 22364 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22365 if test "x$test_shortpath" = x; then 22366 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22367 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22368 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22369 fi 22370 22371 # Call helper function which possibly converts this using DOS-style short mode. 22372 # If so, the updated path is stored in $new_path. 22373 22374 input_path="$new_path" 22375 # Check if we need to convert this using DOS-style short mode. If the path 22376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22377 # take no chances and rewrite it. 22378 # Note: m4 eats our [], so we need to use [ and ] instead. 22379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22380 if test "x$has_forbidden_chars" != x; then 22381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22382 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22383 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22384 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22385 # Going to short mode and back again did indeed matter. Since short mode is 22386 # case insensitive, let's make it lowercase to improve readability. 22387 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22388 # Now convert it back to Unix-stile (cygpath) 22389 input_path=`$CYGPATH -u "$shortmode_path"` 22390 new_path="$input_path" 22391 fi 22392 fi 22393 22394 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22395 if test "x$test_cygdrive_prefix" = x; then 22396 # As a simple fix, exclude /usr/bin since it's not a real path. 22397 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22398 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22399 # a path prefixed by /cygdrive for fixpath to work. 22400 new_path="$CYGWIN_ROOT_PATH$input_path" 22401 fi 22402 fi 22403 22404 22405 if test "x$path" != "x$new_path"; then 22406 BOOT_JDK="$new_path" 22407 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22408 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22409 fi 22410 22411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22412 22413 path="$BOOT_JDK" 22414 has_colon=`$ECHO $path | $GREP ^.:` 22415 new_path="$path" 22416 if test "x$has_colon" = x; then 22417 # Not in mixed or Windows style, start by that. 22418 new_path=`cmd //c echo $path` 22419 fi 22420 22421 22422 input_path="$new_path" 22423 # Check if we need to convert this using DOS-style short mode. If the path 22424 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22425 # take no chances and rewrite it. 22426 # Note: m4 eats our [], so we need to use [ and ] instead. 22427 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22428 if test "x$has_forbidden_chars" != x; then 22429 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22430 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22431 fi 22432 22433 22434 windows_path="$new_path" 22435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22436 unix_path=`$CYGPATH -u "$windows_path"` 22437 new_path="$unix_path" 22438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22439 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22440 new_path="$unix_path" 22441 fi 22442 22443 if test "x$path" != "x$new_path"; then 22444 BOOT_JDK="$new_path" 22445 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22446 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22447 fi 22448 22449 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22450 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22451 22452 else 22453 # We're on a unix platform. Hooray! :) 22454 path="$BOOT_JDK" 22455 has_space=`$ECHO "$path" | $GREP " "` 22456 if test "x$has_space" != x; then 22457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22458 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22459 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22460 fi 22461 22462 # Use eval to expand a potential ~ 22463 eval path="$path" 22464 if test ! -f "$path" && test ! -d "$path"; then 22465 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22466 fi 22467 22468 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22469 fi 22470 fi 22471 22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22473 $as_echo_n "checking for Boot JDK... " >&6; } 22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22475 $as_echo "$BOOT_JDK" >&6; } 22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22477 $as_echo_n "checking Boot JDK version... " >&6; } 22478 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22480 $as_echo "$BOOT_JDK_VERSION" >&6; } 22481 fi # end check jdk version 22482 fi # end check javac 22483 fi # end check java 22484 fi # end check boot jdk found 22485 fi 22486 22487 done 22488 fi 22489 22490 fi 22491 22492 22493 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22494 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22495 # Do we have a bin/java? 22496 if test ! -x "$BOOT_JDK/bin/java"; then 22497 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22498 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22499 BOOT_JDK_FOUND=no 22500 else 22501 # Do we have a bin/javac? 22502 if test ! -x "$BOOT_JDK/bin/javac"; then 22503 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22504 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22505 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22506 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22507 BOOT_JDK_FOUND=no 22508 else 22509 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22510 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22511 22512 # Extra M4 quote needed to protect [] in grep expression. 22513 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22514 if test "x$FOUND_CORRECT_VERSION" = x; then 22515 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22516 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22517 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22518 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22519 BOOT_JDK_FOUND=no 22520 else 22521 # We're done! :-) 22522 BOOT_JDK_FOUND=yes 22523 22524 # Only process if variable expands to non-empty 22525 22526 if test "x$BOOT_JDK" != x; then 22527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22528 22529 # Input might be given as Windows format, start by converting to 22530 # unix format. 22531 path="$BOOT_JDK" 22532 new_path=`$CYGPATH -u "$path"` 22533 22534 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22535 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22536 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22537 # "foo.exe" is OK but "foo" is an error. 22538 # 22539 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22540 # It is also a way to make sure we got the proper file name for the real test later on. 22541 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22542 if test "x$test_shortpath" = x; then 22543 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22544 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22545 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22546 fi 22547 22548 # Call helper function which possibly converts this using DOS-style short mode. 22549 # If so, the updated path is stored in $new_path. 22550 22551 input_path="$new_path" 22552 # Check if we need to convert this using DOS-style short mode. If the path 22553 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22554 # take no chances and rewrite it. 22555 # Note: m4 eats our [], so we need to use [ and ] instead. 22556 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22557 if test "x$has_forbidden_chars" != x; then 22558 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22559 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22560 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22561 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22562 # Going to short mode and back again did indeed matter. Since short mode is 22563 # case insensitive, let's make it lowercase to improve readability. 22564 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22565 # Now convert it back to Unix-stile (cygpath) 22566 input_path=`$CYGPATH -u "$shortmode_path"` 22567 new_path="$input_path" 22568 fi 22569 fi 22570 22571 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22572 if test "x$test_cygdrive_prefix" = x; then 22573 # As a simple fix, exclude /usr/bin since it's not a real path. 22574 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22575 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22576 # a path prefixed by /cygdrive for fixpath to work. 22577 new_path="$CYGWIN_ROOT_PATH$input_path" 22578 fi 22579 fi 22580 22581 22582 if test "x$path" != "x$new_path"; then 22583 BOOT_JDK="$new_path" 22584 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22585 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22586 fi 22587 22588 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22589 22590 path="$BOOT_JDK" 22591 has_colon=`$ECHO $path | $GREP ^.:` 22592 new_path="$path" 22593 if test "x$has_colon" = x; then 22594 # Not in mixed or Windows style, start by that. 22595 new_path=`cmd //c echo $path` 22596 fi 22597 22598 22599 input_path="$new_path" 22600 # Check if we need to convert this using DOS-style short mode. If the path 22601 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22602 # take no chances and rewrite it. 22603 # Note: m4 eats our [], so we need to use [ and ] instead. 22604 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22605 if test "x$has_forbidden_chars" != x; then 22606 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22607 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22608 fi 22609 22610 22611 windows_path="$new_path" 22612 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22613 unix_path=`$CYGPATH -u "$windows_path"` 22614 new_path="$unix_path" 22615 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22616 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22617 new_path="$unix_path" 22618 fi 22619 22620 if test "x$path" != "x$new_path"; then 22621 BOOT_JDK="$new_path" 22622 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22623 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22624 fi 22625 22626 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22627 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22628 22629 else 22630 # We're on a unix platform. Hooray! :) 22631 path="$BOOT_JDK" 22632 has_space=`$ECHO "$path" | $GREP " "` 22633 if test "x$has_space" != x; then 22634 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22635 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22636 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22637 fi 22638 22639 # Use eval to expand a potential ~ 22640 eval path="$path" 22641 if test ! -f "$path" && test ! -d "$path"; then 22642 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22643 fi 22644 22645 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22646 fi 22647 fi 22648 22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22650 $as_echo_n "checking for Boot JDK... " >&6; } 22651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22652 $as_echo "$BOOT_JDK" >&6; } 22653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22654 $as_echo_n "checking Boot JDK version... " >&6; } 22655 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22657 $as_echo "$BOOT_JDK_VERSION" >&6; } 22658 fi # end check jdk version 22659 fi # end check javac 22660 fi # end check java 22661 fi # end check boot jdk found 22662 fi 22663 22664 22665 if test "x$BOOT_JDK_FOUND" = xno; then 22666 # Now execute the test 22667 22668 if test "x$PROGRAMW6432" != x; then 22669 VIRTUAL_DIR="$PROGRAMW6432/Java" 22670 22671 windows_path="$VIRTUAL_DIR" 22672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22673 unix_path=`$CYGPATH -u "$windows_path"` 22674 VIRTUAL_DIR="$unix_path" 22675 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22676 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22677 VIRTUAL_DIR="$unix_path" 22678 fi 22679 22680 22681 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22682 BOOT_JDK_SUFFIX="" 22683 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22684 if test "x$ALL_JDKS_FOUND" != x; then 22685 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22686 22687 if test "x$BOOT_JDK_FOUND" = xno; then 22688 # Now execute the test 22689 22690 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22691 if test -d "$BOOT_JDK"; then 22692 BOOT_JDK_FOUND=maybe 22693 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22694 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22695 fi 22696 22697 22698 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22699 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22700 # Do we have a bin/java? 22701 if test ! -x "$BOOT_JDK/bin/java"; then 22702 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22703 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22704 BOOT_JDK_FOUND=no 22705 else 22706 # Do we have a bin/javac? 22707 if test ! -x "$BOOT_JDK/bin/javac"; then 22708 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22709 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22710 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22711 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22712 BOOT_JDK_FOUND=no 22713 else 22714 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22715 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22716 22717 # Extra M4 quote needed to protect [] in grep expression. 22718 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22719 if test "x$FOUND_CORRECT_VERSION" = x; then 22720 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22721 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22722 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22723 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22724 BOOT_JDK_FOUND=no 22725 else 22726 # We're done! :-) 22727 BOOT_JDK_FOUND=yes 22728 22729 # Only process if variable expands to non-empty 22730 22731 if test "x$BOOT_JDK" != x; then 22732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22733 22734 # Input might be given as Windows format, start by converting to 22735 # unix format. 22736 path="$BOOT_JDK" 22737 new_path=`$CYGPATH -u "$path"` 22738 22739 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22740 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22741 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22742 # "foo.exe" is OK but "foo" is an error. 22743 # 22744 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22745 # It is also a way to make sure we got the proper file name for the real test later on. 22746 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22747 if test "x$test_shortpath" = x; then 22748 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22749 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22750 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22751 fi 22752 22753 # Call helper function which possibly converts this using DOS-style short mode. 22754 # If so, the updated path is stored in $new_path. 22755 22756 input_path="$new_path" 22757 # Check if we need to convert this using DOS-style short mode. If the path 22758 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22759 # take no chances and rewrite it. 22760 # Note: m4 eats our [], so we need to use [ and ] instead. 22761 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22762 if test "x$has_forbidden_chars" != x; then 22763 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22764 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22765 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22766 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22767 # Going to short mode and back again did indeed matter. Since short mode is 22768 # case insensitive, let's make it lowercase to improve readability. 22769 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22770 # Now convert it back to Unix-stile (cygpath) 22771 input_path=`$CYGPATH -u "$shortmode_path"` 22772 new_path="$input_path" 22773 fi 22774 fi 22775 22776 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22777 if test "x$test_cygdrive_prefix" = x; then 22778 # As a simple fix, exclude /usr/bin since it's not a real path. 22779 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22780 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22781 # a path prefixed by /cygdrive for fixpath to work. 22782 new_path="$CYGWIN_ROOT_PATH$input_path" 22783 fi 22784 fi 22785 22786 22787 if test "x$path" != "x$new_path"; then 22788 BOOT_JDK="$new_path" 22789 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22790 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22791 fi 22792 22793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22794 22795 path="$BOOT_JDK" 22796 has_colon=`$ECHO $path | $GREP ^.:` 22797 new_path="$path" 22798 if test "x$has_colon" = x; then 22799 # Not in mixed or Windows style, start by that. 22800 new_path=`cmd //c echo $path` 22801 fi 22802 22803 22804 input_path="$new_path" 22805 # Check if we need to convert this using DOS-style short mode. If the path 22806 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22807 # take no chances and rewrite it. 22808 # Note: m4 eats our [], so we need to use [ and ] instead. 22809 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22810 if test "x$has_forbidden_chars" != x; then 22811 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22812 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22813 fi 22814 22815 22816 windows_path="$new_path" 22817 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22818 unix_path=`$CYGPATH -u "$windows_path"` 22819 new_path="$unix_path" 22820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22821 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22822 new_path="$unix_path" 22823 fi 22824 22825 if test "x$path" != "x$new_path"; then 22826 BOOT_JDK="$new_path" 22827 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22828 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22829 fi 22830 22831 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22832 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22833 22834 else 22835 # We're on a unix platform. Hooray! :) 22836 path="$BOOT_JDK" 22837 has_space=`$ECHO "$path" | $GREP " "` 22838 if test "x$has_space" != x; then 22839 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22840 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22841 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22842 fi 22843 22844 # Use eval to expand a potential ~ 22845 eval path="$path" 22846 if test ! -f "$path" && test ! -d "$path"; then 22847 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22848 fi 22849 22850 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22851 fi 22852 fi 22853 22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22855 $as_echo_n "checking for Boot JDK... " >&6; } 22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22857 $as_echo "$BOOT_JDK" >&6; } 22858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22859 $as_echo_n "checking Boot JDK version... " >&6; } 22860 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22862 $as_echo "$BOOT_JDK_VERSION" >&6; } 22863 fi # end check jdk version 22864 fi # end check javac 22865 fi # end check java 22866 fi # end check boot jdk found 22867 fi 22868 22869 done 22870 fi 22871 22872 fi 22873 22874 22875 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22876 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22877 # Do we have a bin/java? 22878 if test ! -x "$BOOT_JDK/bin/java"; then 22879 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22880 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22881 BOOT_JDK_FOUND=no 22882 else 22883 # Do we have a bin/javac? 22884 if test ! -x "$BOOT_JDK/bin/javac"; then 22885 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22886 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22887 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22888 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22889 BOOT_JDK_FOUND=no 22890 else 22891 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22892 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22893 22894 # Extra M4 quote needed to protect [] in grep expression. 22895 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22896 if test "x$FOUND_CORRECT_VERSION" = x; then 22897 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22898 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22899 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22900 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22901 BOOT_JDK_FOUND=no 22902 else 22903 # We're done! :-) 22904 BOOT_JDK_FOUND=yes 22905 22906 # Only process if variable expands to non-empty 22907 22908 if test "x$BOOT_JDK" != x; then 22909 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22910 22911 # Input might be given as Windows format, start by converting to 22912 # unix format. 22913 path="$BOOT_JDK" 22914 new_path=`$CYGPATH -u "$path"` 22915 22916 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22917 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22918 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22919 # "foo.exe" is OK but "foo" is an error. 22920 # 22921 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22922 # It is also a way to make sure we got the proper file name for the real test later on. 22923 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22924 if test "x$test_shortpath" = x; then 22925 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22926 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22927 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22928 fi 22929 22930 # Call helper function which possibly converts this using DOS-style short mode. 22931 # If so, the updated path is stored in $new_path. 22932 22933 input_path="$new_path" 22934 # Check if we need to convert this using DOS-style short mode. If the path 22935 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22936 # take no chances and rewrite it. 22937 # Note: m4 eats our [], so we need to use [ and ] instead. 22938 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22939 if test "x$has_forbidden_chars" != x; then 22940 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22941 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22942 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22943 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22944 # Going to short mode and back again did indeed matter. Since short mode is 22945 # case insensitive, let's make it lowercase to improve readability. 22946 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22947 # Now convert it back to Unix-stile (cygpath) 22948 input_path=`$CYGPATH -u "$shortmode_path"` 22949 new_path="$input_path" 22950 fi 22951 fi 22952 22953 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22954 if test "x$test_cygdrive_prefix" = x; then 22955 # As a simple fix, exclude /usr/bin since it's not a real path. 22956 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22957 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22958 # a path prefixed by /cygdrive for fixpath to work. 22959 new_path="$CYGWIN_ROOT_PATH$input_path" 22960 fi 22961 fi 22962 22963 22964 if test "x$path" != "x$new_path"; then 22965 BOOT_JDK="$new_path" 22966 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22967 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22968 fi 22969 22970 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22971 22972 path="$BOOT_JDK" 22973 has_colon=`$ECHO $path | $GREP ^.:` 22974 new_path="$path" 22975 if test "x$has_colon" = x; then 22976 # Not in mixed or Windows style, start by that. 22977 new_path=`cmd //c echo $path` 22978 fi 22979 22980 22981 input_path="$new_path" 22982 # Check if we need to convert this using DOS-style short mode. If the path 22983 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22984 # take no chances and rewrite it. 22985 # Note: m4 eats our [], so we need to use [ and ] instead. 22986 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22987 if test "x$has_forbidden_chars" != x; then 22988 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22989 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22990 fi 22991 22992 22993 windows_path="$new_path" 22994 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22995 unix_path=`$CYGPATH -u "$windows_path"` 22996 new_path="$unix_path" 22997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22998 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22999 new_path="$unix_path" 23000 fi 23001 23002 if test "x$path" != "x$new_path"; then 23003 BOOT_JDK="$new_path" 23004 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23005 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23006 fi 23007 23008 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23009 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23010 23011 else 23012 # We're on a unix platform. Hooray! :) 23013 path="$BOOT_JDK" 23014 has_space=`$ECHO "$path" | $GREP " "` 23015 if test "x$has_space" != x; then 23016 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23017 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23018 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23019 fi 23020 23021 # Use eval to expand a potential ~ 23022 eval path="$path" 23023 if test ! -f "$path" && test ! -d "$path"; then 23024 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23025 fi 23026 23027 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23028 fi 23029 fi 23030 23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23032 $as_echo_n "checking for Boot JDK... " >&6; } 23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23034 $as_echo "$BOOT_JDK" >&6; } 23035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23036 $as_echo_n "checking Boot JDK version... " >&6; } 23037 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23039 $as_echo "$BOOT_JDK_VERSION" >&6; } 23040 fi # end check jdk version 23041 fi # end check javac 23042 fi # end check java 23043 fi # end check boot jdk found 23044 fi 23045 23046 23047 if test "x$BOOT_JDK_FOUND" = xno; then 23048 # Now execute the test 23049 23050 if test "x$PROGRAMFILES" != x; then 23051 VIRTUAL_DIR="$PROGRAMFILES/Java" 23052 23053 windows_path="$VIRTUAL_DIR" 23054 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23055 unix_path=`$CYGPATH -u "$windows_path"` 23056 VIRTUAL_DIR="$unix_path" 23057 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23058 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23059 VIRTUAL_DIR="$unix_path" 23060 fi 23061 23062 23063 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23064 BOOT_JDK_SUFFIX="" 23065 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23066 if test "x$ALL_JDKS_FOUND" != x; then 23067 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23068 23069 if test "x$BOOT_JDK_FOUND" = xno; then 23070 # Now execute the test 23071 23072 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23073 if test -d "$BOOT_JDK"; then 23074 BOOT_JDK_FOUND=maybe 23075 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23076 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23077 fi 23078 23079 23080 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23081 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23082 # Do we have a bin/java? 23083 if test ! -x "$BOOT_JDK/bin/java"; then 23084 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23085 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23086 BOOT_JDK_FOUND=no 23087 else 23088 # Do we have a bin/javac? 23089 if test ! -x "$BOOT_JDK/bin/javac"; then 23090 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23091 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23092 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23093 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23094 BOOT_JDK_FOUND=no 23095 else 23096 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23097 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23098 23099 # Extra M4 quote needed to protect [] in grep expression. 23100 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23101 if test "x$FOUND_CORRECT_VERSION" = x; then 23102 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23103 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23104 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23105 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23106 BOOT_JDK_FOUND=no 23107 else 23108 # We're done! :-) 23109 BOOT_JDK_FOUND=yes 23110 23111 # Only process if variable expands to non-empty 23112 23113 if test "x$BOOT_JDK" != x; then 23114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23115 23116 # Input might be given as Windows format, start by converting to 23117 # unix format. 23118 path="$BOOT_JDK" 23119 new_path=`$CYGPATH -u "$path"` 23120 23121 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23122 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23123 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23124 # "foo.exe" is OK but "foo" is an error. 23125 # 23126 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23127 # It is also a way to make sure we got the proper file name for the real test later on. 23128 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23129 if test "x$test_shortpath" = x; then 23130 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23131 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23132 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23133 fi 23134 23135 # Call helper function which possibly converts this using DOS-style short mode. 23136 # If so, the updated path is stored in $new_path. 23137 23138 input_path="$new_path" 23139 # Check if we need to convert this using DOS-style short mode. If the path 23140 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23141 # take no chances and rewrite it. 23142 # Note: m4 eats our [], so we need to use [ and ] instead. 23143 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23144 if test "x$has_forbidden_chars" != x; then 23145 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23146 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23147 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23148 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23149 # Going to short mode and back again did indeed matter. Since short mode is 23150 # case insensitive, let's make it lowercase to improve readability. 23151 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23152 # Now convert it back to Unix-stile (cygpath) 23153 input_path=`$CYGPATH -u "$shortmode_path"` 23154 new_path="$input_path" 23155 fi 23156 fi 23157 23158 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23159 if test "x$test_cygdrive_prefix" = x; then 23160 # As a simple fix, exclude /usr/bin since it's not a real path. 23161 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23162 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23163 # a path prefixed by /cygdrive for fixpath to work. 23164 new_path="$CYGWIN_ROOT_PATH$input_path" 23165 fi 23166 fi 23167 23168 23169 if test "x$path" != "x$new_path"; then 23170 BOOT_JDK="$new_path" 23171 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23172 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23173 fi 23174 23175 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23176 23177 path="$BOOT_JDK" 23178 has_colon=`$ECHO $path | $GREP ^.:` 23179 new_path="$path" 23180 if test "x$has_colon" = x; then 23181 # Not in mixed or Windows style, start by that. 23182 new_path=`cmd //c echo $path` 23183 fi 23184 23185 23186 input_path="$new_path" 23187 # Check if we need to convert this using DOS-style short mode. If the path 23188 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23189 # take no chances and rewrite it. 23190 # Note: m4 eats our [], so we need to use [ and ] instead. 23191 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23192 if test "x$has_forbidden_chars" != x; then 23193 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23194 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23195 fi 23196 23197 23198 windows_path="$new_path" 23199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23200 unix_path=`$CYGPATH -u "$windows_path"` 23201 new_path="$unix_path" 23202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23203 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23204 new_path="$unix_path" 23205 fi 23206 23207 if test "x$path" != "x$new_path"; then 23208 BOOT_JDK="$new_path" 23209 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23210 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23211 fi 23212 23213 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23214 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23215 23216 else 23217 # We're on a unix platform. Hooray! :) 23218 path="$BOOT_JDK" 23219 has_space=`$ECHO "$path" | $GREP " "` 23220 if test "x$has_space" != x; then 23221 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23222 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23223 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23224 fi 23225 23226 # Use eval to expand a potential ~ 23227 eval path="$path" 23228 if test ! -f "$path" && test ! -d "$path"; then 23229 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23230 fi 23231 23232 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23233 fi 23234 fi 23235 23236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23237 $as_echo_n "checking for Boot JDK... " >&6; } 23238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23239 $as_echo "$BOOT_JDK" >&6; } 23240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23241 $as_echo_n "checking Boot JDK version... " >&6; } 23242 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23244 $as_echo "$BOOT_JDK_VERSION" >&6; } 23245 fi # end check jdk version 23246 fi # end check javac 23247 fi # end check java 23248 fi # end check boot jdk found 23249 fi 23250 23251 done 23252 fi 23253 23254 fi 23255 23256 23257 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23258 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23259 # Do we have a bin/java? 23260 if test ! -x "$BOOT_JDK/bin/java"; then 23261 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23262 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23263 BOOT_JDK_FOUND=no 23264 else 23265 # Do we have a bin/javac? 23266 if test ! -x "$BOOT_JDK/bin/javac"; then 23267 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23268 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23269 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23270 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23271 BOOT_JDK_FOUND=no 23272 else 23273 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23274 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23275 23276 # Extra M4 quote needed to protect [] in grep expression. 23277 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23278 if test "x$FOUND_CORRECT_VERSION" = x; then 23279 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23280 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23281 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23282 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23283 BOOT_JDK_FOUND=no 23284 else 23285 # We're done! :-) 23286 BOOT_JDK_FOUND=yes 23287 23288 # Only process if variable expands to non-empty 23289 23290 if test "x$BOOT_JDK" != x; then 23291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23292 23293 # Input might be given as Windows format, start by converting to 23294 # unix format. 23295 path="$BOOT_JDK" 23296 new_path=`$CYGPATH -u "$path"` 23297 23298 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23299 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23300 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23301 # "foo.exe" is OK but "foo" is an error. 23302 # 23303 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23304 # It is also a way to make sure we got the proper file name for the real test later on. 23305 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23306 if test "x$test_shortpath" = x; then 23307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23308 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23309 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23310 fi 23311 23312 # Call helper function which possibly converts this using DOS-style short mode. 23313 # If so, the updated path is stored in $new_path. 23314 23315 input_path="$new_path" 23316 # Check if we need to convert this using DOS-style short mode. If the path 23317 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23318 # take no chances and rewrite it. 23319 # Note: m4 eats our [], so we need to use [ and ] instead. 23320 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23321 if test "x$has_forbidden_chars" != x; then 23322 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23323 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23324 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23325 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23326 # Going to short mode and back again did indeed matter. Since short mode is 23327 # case insensitive, let's make it lowercase to improve readability. 23328 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23329 # Now convert it back to Unix-stile (cygpath) 23330 input_path=`$CYGPATH -u "$shortmode_path"` 23331 new_path="$input_path" 23332 fi 23333 fi 23334 23335 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23336 if test "x$test_cygdrive_prefix" = x; then 23337 # As a simple fix, exclude /usr/bin since it's not a real path. 23338 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23339 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23340 # a path prefixed by /cygdrive for fixpath to work. 23341 new_path="$CYGWIN_ROOT_PATH$input_path" 23342 fi 23343 fi 23344 23345 23346 if test "x$path" != "x$new_path"; then 23347 BOOT_JDK="$new_path" 23348 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23349 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23350 fi 23351 23352 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23353 23354 path="$BOOT_JDK" 23355 has_colon=`$ECHO $path | $GREP ^.:` 23356 new_path="$path" 23357 if test "x$has_colon" = x; then 23358 # Not in mixed or Windows style, start by that. 23359 new_path=`cmd //c echo $path` 23360 fi 23361 23362 23363 input_path="$new_path" 23364 # Check if we need to convert this using DOS-style short mode. If the path 23365 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23366 # take no chances and rewrite it. 23367 # Note: m4 eats our [], so we need to use [ and ] instead. 23368 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23369 if test "x$has_forbidden_chars" != x; then 23370 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23371 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23372 fi 23373 23374 23375 windows_path="$new_path" 23376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23377 unix_path=`$CYGPATH -u "$windows_path"` 23378 new_path="$unix_path" 23379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23381 new_path="$unix_path" 23382 fi 23383 23384 if test "x$path" != "x$new_path"; then 23385 BOOT_JDK="$new_path" 23386 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23387 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23388 fi 23389 23390 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23391 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23392 23393 else 23394 # We're on a unix platform. Hooray! :) 23395 path="$BOOT_JDK" 23396 has_space=`$ECHO "$path" | $GREP " "` 23397 if test "x$has_space" != x; then 23398 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23399 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23400 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23401 fi 23402 23403 # Use eval to expand a potential ~ 23404 eval path="$path" 23405 if test ! -f "$path" && test ! -d "$path"; then 23406 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23407 fi 23408 23409 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23410 fi 23411 fi 23412 23413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23414 $as_echo_n "checking for Boot JDK... " >&6; } 23415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23416 $as_echo "$BOOT_JDK" >&6; } 23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23418 $as_echo_n "checking Boot JDK version... " >&6; } 23419 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23421 $as_echo "$BOOT_JDK_VERSION" >&6; } 23422 fi # end check jdk version 23423 fi # end check javac 23424 fi # end check java 23425 fi # end check boot jdk found 23426 fi 23427 23428 23429 if test "x$BOOT_JDK_FOUND" = xno; then 23430 # Now execute the test 23431 23432 if test "x$ProgramFiles" != x; then 23433 VIRTUAL_DIR="$ProgramFiles/Java" 23434 23435 windows_path="$VIRTUAL_DIR" 23436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23437 unix_path=`$CYGPATH -u "$windows_path"` 23438 VIRTUAL_DIR="$unix_path" 23439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23440 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23441 VIRTUAL_DIR="$unix_path" 23442 fi 23443 23444 23445 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23446 BOOT_JDK_SUFFIX="" 23447 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23448 if test "x$ALL_JDKS_FOUND" != x; then 23449 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23450 23451 if test "x$BOOT_JDK_FOUND" = xno; then 23452 # Now execute the test 23453 23454 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23455 if test -d "$BOOT_JDK"; then 23456 BOOT_JDK_FOUND=maybe 23457 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23458 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23459 fi 23460 23461 23462 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23463 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23464 # Do we have a bin/java? 23465 if test ! -x "$BOOT_JDK/bin/java"; then 23466 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23467 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23468 BOOT_JDK_FOUND=no 23469 else 23470 # Do we have a bin/javac? 23471 if test ! -x "$BOOT_JDK/bin/javac"; then 23472 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23473 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23474 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23475 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23476 BOOT_JDK_FOUND=no 23477 else 23478 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23479 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23480 23481 # Extra M4 quote needed to protect [] in grep expression. 23482 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23483 if test "x$FOUND_CORRECT_VERSION" = x; then 23484 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23485 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23486 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23487 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23488 BOOT_JDK_FOUND=no 23489 else 23490 # We're done! :-) 23491 BOOT_JDK_FOUND=yes 23492 23493 # Only process if variable expands to non-empty 23494 23495 if test "x$BOOT_JDK" != x; then 23496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23497 23498 # Input might be given as Windows format, start by converting to 23499 # unix format. 23500 path="$BOOT_JDK" 23501 new_path=`$CYGPATH -u "$path"` 23502 23503 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23504 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23505 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23506 # "foo.exe" is OK but "foo" is an error. 23507 # 23508 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23509 # It is also a way to make sure we got the proper file name for the real test later on. 23510 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23511 if test "x$test_shortpath" = x; then 23512 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23513 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23514 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23515 fi 23516 23517 # Call helper function which possibly converts this using DOS-style short mode. 23518 # If so, the updated path is stored in $new_path. 23519 23520 input_path="$new_path" 23521 # Check if we need to convert this using DOS-style short mode. If the path 23522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23523 # take no chances and rewrite it. 23524 # Note: m4 eats our [], so we need to use [ and ] instead. 23525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23526 if test "x$has_forbidden_chars" != x; then 23527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23528 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23529 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23530 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23531 # Going to short mode and back again did indeed matter. Since short mode is 23532 # case insensitive, let's make it lowercase to improve readability. 23533 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23534 # Now convert it back to Unix-stile (cygpath) 23535 input_path=`$CYGPATH -u "$shortmode_path"` 23536 new_path="$input_path" 23537 fi 23538 fi 23539 23540 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23541 if test "x$test_cygdrive_prefix" = x; then 23542 # As a simple fix, exclude /usr/bin since it's not a real path. 23543 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23544 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23545 # a path prefixed by /cygdrive for fixpath to work. 23546 new_path="$CYGWIN_ROOT_PATH$input_path" 23547 fi 23548 fi 23549 23550 23551 if test "x$path" != "x$new_path"; then 23552 BOOT_JDK="$new_path" 23553 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23554 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23555 fi 23556 23557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23558 23559 path="$BOOT_JDK" 23560 has_colon=`$ECHO $path | $GREP ^.:` 23561 new_path="$path" 23562 if test "x$has_colon" = x; then 23563 # Not in mixed or Windows style, start by that. 23564 new_path=`cmd //c echo $path` 23565 fi 23566 23567 23568 input_path="$new_path" 23569 # Check if we need to convert this using DOS-style short mode. If the path 23570 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23571 # take no chances and rewrite it. 23572 # Note: m4 eats our [], so we need to use [ and ] instead. 23573 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23574 if test "x$has_forbidden_chars" != x; then 23575 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23576 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23577 fi 23578 23579 23580 windows_path="$new_path" 23581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23582 unix_path=`$CYGPATH -u "$windows_path"` 23583 new_path="$unix_path" 23584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23585 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23586 new_path="$unix_path" 23587 fi 23588 23589 if test "x$path" != "x$new_path"; then 23590 BOOT_JDK="$new_path" 23591 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23592 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23593 fi 23594 23595 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23596 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23597 23598 else 23599 # We're on a unix platform. Hooray! :) 23600 path="$BOOT_JDK" 23601 has_space=`$ECHO "$path" | $GREP " "` 23602 if test "x$has_space" != x; then 23603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23604 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23605 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23606 fi 23607 23608 # Use eval to expand a potential ~ 23609 eval path="$path" 23610 if test ! -f "$path" && test ! -d "$path"; then 23611 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23612 fi 23613 23614 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23615 fi 23616 fi 23617 23618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23619 $as_echo_n "checking for Boot JDK... " >&6; } 23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23621 $as_echo "$BOOT_JDK" >&6; } 23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23623 $as_echo_n "checking Boot JDK version... " >&6; } 23624 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23626 $as_echo "$BOOT_JDK_VERSION" >&6; } 23627 fi # end check jdk version 23628 fi # end check javac 23629 fi # end check java 23630 fi # end check boot jdk found 23631 fi 23632 23633 done 23634 fi 23635 23636 fi 23637 23638 23639 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23640 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23641 # Do we have a bin/java? 23642 if test ! -x "$BOOT_JDK/bin/java"; then 23643 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23645 BOOT_JDK_FOUND=no 23646 else 23647 # Do we have a bin/javac? 23648 if test ! -x "$BOOT_JDK/bin/javac"; then 23649 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23650 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23651 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23652 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23653 BOOT_JDK_FOUND=no 23654 else 23655 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23656 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23657 23658 # Extra M4 quote needed to protect [] in grep expression. 23659 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23660 if test "x$FOUND_CORRECT_VERSION" = x; then 23661 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23662 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23663 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23664 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23665 BOOT_JDK_FOUND=no 23666 else 23667 # We're done! :-) 23668 BOOT_JDK_FOUND=yes 23669 23670 # Only process if variable expands to non-empty 23671 23672 if test "x$BOOT_JDK" != x; then 23673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23674 23675 # Input might be given as Windows format, start by converting to 23676 # unix format. 23677 path="$BOOT_JDK" 23678 new_path=`$CYGPATH -u "$path"` 23679 23680 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23681 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23682 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23683 # "foo.exe" is OK but "foo" is an error. 23684 # 23685 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23686 # It is also a way to make sure we got the proper file name for the real test later on. 23687 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23688 if test "x$test_shortpath" = x; then 23689 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23690 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23691 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23692 fi 23693 23694 # Call helper function which possibly converts this using DOS-style short mode. 23695 # If so, the updated path is stored in $new_path. 23696 23697 input_path="$new_path" 23698 # Check if we need to convert this using DOS-style short mode. If the path 23699 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23700 # take no chances and rewrite it. 23701 # Note: m4 eats our [], so we need to use [ and ] instead. 23702 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23703 if test "x$has_forbidden_chars" != x; then 23704 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23705 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23706 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23707 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23708 # Going to short mode and back again did indeed matter. Since short mode is 23709 # case insensitive, let's make it lowercase to improve readability. 23710 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23711 # Now convert it back to Unix-stile (cygpath) 23712 input_path=`$CYGPATH -u "$shortmode_path"` 23713 new_path="$input_path" 23714 fi 23715 fi 23716 23717 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23718 if test "x$test_cygdrive_prefix" = x; then 23719 # As a simple fix, exclude /usr/bin since it's not a real path. 23720 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23721 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23722 # a path prefixed by /cygdrive for fixpath to work. 23723 new_path="$CYGWIN_ROOT_PATH$input_path" 23724 fi 23725 fi 23726 23727 23728 if test "x$path" != "x$new_path"; then 23729 BOOT_JDK="$new_path" 23730 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23731 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23732 fi 23733 23734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23735 23736 path="$BOOT_JDK" 23737 has_colon=`$ECHO $path | $GREP ^.:` 23738 new_path="$path" 23739 if test "x$has_colon" = x; then 23740 # Not in mixed or Windows style, start by that. 23741 new_path=`cmd //c echo $path` 23742 fi 23743 23744 23745 input_path="$new_path" 23746 # Check if we need to convert this using DOS-style short mode. If the path 23747 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23748 # take no chances and rewrite it. 23749 # Note: m4 eats our [], so we need to use [ and ] instead. 23750 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23751 if test "x$has_forbidden_chars" != x; then 23752 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23753 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23754 fi 23755 23756 23757 windows_path="$new_path" 23758 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23759 unix_path=`$CYGPATH -u "$windows_path"` 23760 new_path="$unix_path" 23761 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23762 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23763 new_path="$unix_path" 23764 fi 23765 23766 if test "x$path" != "x$new_path"; then 23767 BOOT_JDK="$new_path" 23768 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23769 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23770 fi 23771 23772 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23773 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23774 23775 else 23776 # We're on a unix platform. Hooray! :) 23777 path="$BOOT_JDK" 23778 has_space=`$ECHO "$path" | $GREP " "` 23779 if test "x$has_space" != x; then 23780 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23781 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23782 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23783 fi 23784 23785 # Use eval to expand a potential ~ 23786 eval path="$path" 23787 if test ! -f "$path" && test ! -d "$path"; then 23788 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23789 fi 23790 23791 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23792 fi 23793 fi 23794 23795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23796 $as_echo_n "checking for Boot JDK... " >&6; } 23797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23798 $as_echo "$BOOT_JDK" >&6; } 23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23800 $as_echo_n "checking Boot JDK version... " >&6; } 23801 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23803 $as_echo "$BOOT_JDK_VERSION" >&6; } 23804 fi # end check jdk version 23805 fi # end check javac 23806 fi # end check java 23807 fi # end check boot jdk found 23808 fi 23809 23810 23811 if test "x$BOOT_JDK_FOUND" = xno; then 23812 # Now execute the test 23813 23814 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23815 BOOT_JDK_SUFFIX="" 23816 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23817 if test "x$ALL_JDKS_FOUND" != x; then 23818 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23819 23820 if test "x$BOOT_JDK_FOUND" = xno; then 23821 # Now execute the test 23822 23823 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23824 if test -d "$BOOT_JDK"; then 23825 BOOT_JDK_FOUND=maybe 23826 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23827 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23828 fi 23829 23830 23831 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23832 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23833 # Do we have a bin/java? 23834 if test ! -x "$BOOT_JDK/bin/java"; then 23835 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23836 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23837 BOOT_JDK_FOUND=no 23838 else 23839 # Do we have a bin/javac? 23840 if test ! -x "$BOOT_JDK/bin/javac"; then 23841 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23842 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23843 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23844 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23845 BOOT_JDK_FOUND=no 23846 else 23847 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23848 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23849 23850 # Extra M4 quote needed to protect [] in grep expression. 23851 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23852 if test "x$FOUND_CORRECT_VERSION" = x; then 23853 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23854 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23855 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23856 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23857 BOOT_JDK_FOUND=no 23858 else 23859 # We're done! :-) 23860 BOOT_JDK_FOUND=yes 23861 23862 # Only process if variable expands to non-empty 23863 23864 if test "x$BOOT_JDK" != x; then 23865 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23866 23867 # Input might be given as Windows format, start by converting to 23868 # unix format. 23869 path="$BOOT_JDK" 23870 new_path=`$CYGPATH -u "$path"` 23871 23872 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23873 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23874 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23875 # "foo.exe" is OK but "foo" is an error. 23876 # 23877 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23878 # It is also a way to make sure we got the proper file name for the real test later on. 23879 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23880 if test "x$test_shortpath" = x; then 23881 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23882 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23883 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23884 fi 23885 23886 # Call helper function which possibly converts this using DOS-style short mode. 23887 # If so, the updated path is stored in $new_path. 23888 23889 input_path="$new_path" 23890 # Check if we need to convert this using DOS-style short mode. If the path 23891 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23892 # take no chances and rewrite it. 23893 # Note: m4 eats our [], so we need to use [ and ] instead. 23894 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23895 if test "x$has_forbidden_chars" != x; then 23896 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23897 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23898 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23899 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23900 # Going to short mode and back again did indeed matter. Since short mode is 23901 # case insensitive, let's make it lowercase to improve readability. 23902 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23903 # Now convert it back to Unix-stile (cygpath) 23904 input_path=`$CYGPATH -u "$shortmode_path"` 23905 new_path="$input_path" 23906 fi 23907 fi 23908 23909 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23910 if test "x$test_cygdrive_prefix" = x; then 23911 # As a simple fix, exclude /usr/bin since it's not a real path. 23912 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23913 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23914 # a path prefixed by /cygdrive for fixpath to work. 23915 new_path="$CYGWIN_ROOT_PATH$input_path" 23916 fi 23917 fi 23918 23919 23920 if test "x$path" != "x$new_path"; then 23921 BOOT_JDK="$new_path" 23922 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23923 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23924 fi 23925 23926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23927 23928 path="$BOOT_JDK" 23929 has_colon=`$ECHO $path | $GREP ^.:` 23930 new_path="$path" 23931 if test "x$has_colon" = x; then 23932 # Not in mixed or Windows style, start by that. 23933 new_path=`cmd //c echo $path` 23934 fi 23935 23936 23937 input_path="$new_path" 23938 # Check if we need to convert this using DOS-style short mode. If the path 23939 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23940 # take no chances and rewrite it. 23941 # Note: m4 eats our [], so we need to use [ and ] instead. 23942 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23943 if test "x$has_forbidden_chars" != x; then 23944 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23945 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23946 fi 23947 23948 23949 windows_path="$new_path" 23950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23951 unix_path=`$CYGPATH -u "$windows_path"` 23952 new_path="$unix_path" 23953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23954 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23955 new_path="$unix_path" 23956 fi 23957 23958 if test "x$path" != "x$new_path"; then 23959 BOOT_JDK="$new_path" 23960 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23961 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23962 fi 23963 23964 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23965 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23966 23967 else 23968 # We're on a unix platform. Hooray! :) 23969 path="$BOOT_JDK" 23970 has_space=`$ECHO "$path" | $GREP " "` 23971 if test "x$has_space" != x; then 23972 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23973 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23974 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23975 fi 23976 23977 # Use eval to expand a potential ~ 23978 eval path="$path" 23979 if test ! -f "$path" && test ! -d "$path"; then 23980 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23981 fi 23982 23983 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23984 fi 23985 fi 23986 23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23988 $as_echo_n "checking for Boot JDK... " >&6; } 23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23990 $as_echo "$BOOT_JDK" >&6; } 23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23992 $as_echo_n "checking Boot JDK version... " >&6; } 23993 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23995 $as_echo "$BOOT_JDK_VERSION" >&6; } 23996 fi # end check jdk version 23997 fi # end check javac 23998 fi # end check java 23999 fi # end check boot jdk found 24000 fi 24001 24002 done 24003 fi 24004 24005 24006 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24007 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24008 # Do we have a bin/java? 24009 if test ! -x "$BOOT_JDK/bin/java"; then 24010 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24011 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24012 BOOT_JDK_FOUND=no 24013 else 24014 # Do we have a bin/javac? 24015 if test ! -x "$BOOT_JDK/bin/javac"; then 24016 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24017 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24018 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24019 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24020 BOOT_JDK_FOUND=no 24021 else 24022 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24023 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24024 24025 # Extra M4 quote needed to protect [] in grep expression. 24026 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24027 if test "x$FOUND_CORRECT_VERSION" = x; then 24028 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24029 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24030 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24031 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24032 BOOT_JDK_FOUND=no 24033 else 24034 # We're done! :-) 24035 BOOT_JDK_FOUND=yes 24036 24037 # Only process if variable expands to non-empty 24038 24039 if test "x$BOOT_JDK" != x; then 24040 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24041 24042 # Input might be given as Windows format, start by converting to 24043 # unix format. 24044 path="$BOOT_JDK" 24045 new_path=`$CYGPATH -u "$path"` 24046 24047 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24048 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24049 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24050 # "foo.exe" is OK but "foo" is an error. 24051 # 24052 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24053 # It is also a way to make sure we got the proper file name for the real test later on. 24054 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24055 if test "x$test_shortpath" = x; then 24056 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24057 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24058 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24059 fi 24060 24061 # Call helper function which possibly converts this using DOS-style short mode. 24062 # If so, the updated path is stored in $new_path. 24063 24064 input_path="$new_path" 24065 # Check if we need to convert this using DOS-style short mode. If the path 24066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24067 # take no chances and rewrite it. 24068 # Note: m4 eats our [], so we need to use [ and ] instead. 24069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24070 if test "x$has_forbidden_chars" != x; then 24071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24072 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24073 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24074 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24075 # Going to short mode and back again did indeed matter. Since short mode is 24076 # case insensitive, let's make it lowercase to improve readability. 24077 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24078 # Now convert it back to Unix-stile (cygpath) 24079 input_path=`$CYGPATH -u "$shortmode_path"` 24080 new_path="$input_path" 24081 fi 24082 fi 24083 24084 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24085 if test "x$test_cygdrive_prefix" = x; then 24086 # As a simple fix, exclude /usr/bin since it's not a real path. 24087 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24088 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24089 # a path prefixed by /cygdrive for fixpath to work. 24090 new_path="$CYGWIN_ROOT_PATH$input_path" 24091 fi 24092 fi 24093 24094 24095 if test "x$path" != "x$new_path"; then 24096 BOOT_JDK="$new_path" 24097 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24098 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24099 fi 24100 24101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24102 24103 path="$BOOT_JDK" 24104 has_colon=`$ECHO $path | $GREP ^.:` 24105 new_path="$path" 24106 if test "x$has_colon" = x; then 24107 # Not in mixed or Windows style, start by that. 24108 new_path=`cmd //c echo $path` 24109 fi 24110 24111 24112 input_path="$new_path" 24113 # Check if we need to convert this using DOS-style short mode. If the path 24114 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24115 # take no chances and rewrite it. 24116 # Note: m4 eats our [], so we need to use [ and ] instead. 24117 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24118 if test "x$has_forbidden_chars" != x; then 24119 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24120 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24121 fi 24122 24123 24124 windows_path="$new_path" 24125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24126 unix_path=`$CYGPATH -u "$windows_path"` 24127 new_path="$unix_path" 24128 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24129 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24130 new_path="$unix_path" 24131 fi 24132 24133 if test "x$path" != "x$new_path"; then 24134 BOOT_JDK="$new_path" 24135 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24136 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24137 fi 24138 24139 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24140 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24141 24142 else 24143 # We're on a unix platform. Hooray! :) 24144 path="$BOOT_JDK" 24145 has_space=`$ECHO "$path" | $GREP " "` 24146 if test "x$has_space" != x; then 24147 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24148 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24149 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24150 fi 24151 24152 # Use eval to expand a potential ~ 24153 eval path="$path" 24154 if test ! -f "$path" && test ! -d "$path"; then 24155 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24156 fi 24157 24158 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24159 fi 24160 fi 24161 24162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24163 $as_echo_n "checking for Boot JDK... " >&6; } 24164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24165 $as_echo "$BOOT_JDK" >&6; } 24166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24167 $as_echo_n "checking Boot JDK version... " >&6; } 24168 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24170 $as_echo "$BOOT_JDK_VERSION" >&6; } 24171 fi # end check jdk version 24172 fi # end check javac 24173 fi # end check java 24174 fi # end check boot jdk found 24175 fi 24176 24177 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 24178 24179 if test "x$BOOT_JDK_FOUND" = xno; then 24180 # Now execute the test 24181 24182 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 24183 BOOT_JDK_SUFFIX="/Contents/Home" 24184 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24185 if test "x$ALL_JDKS_FOUND" != x; then 24186 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24187 24188 if test "x$BOOT_JDK_FOUND" = xno; then 24189 # Now execute the test 24190 24191 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24192 if test -d "$BOOT_JDK"; then 24193 BOOT_JDK_FOUND=maybe 24194 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24195 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24196 fi 24197 24198 24199 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24200 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24201 # Do we have a bin/java? 24202 if test ! -x "$BOOT_JDK/bin/java"; then 24203 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24204 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24205 BOOT_JDK_FOUND=no 24206 else 24207 # Do we have a bin/javac? 24208 if test ! -x "$BOOT_JDK/bin/javac"; then 24209 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24210 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24211 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24212 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24213 BOOT_JDK_FOUND=no 24214 else 24215 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24216 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24217 24218 # Extra M4 quote needed to protect [] in grep expression. 24219 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24220 if test "x$FOUND_CORRECT_VERSION" = x; then 24221 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24222 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24223 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24224 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24225 BOOT_JDK_FOUND=no 24226 else 24227 # We're done! :-) 24228 BOOT_JDK_FOUND=yes 24229 24230 # Only process if variable expands to non-empty 24231 24232 if test "x$BOOT_JDK" != x; then 24233 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24234 24235 # Input might be given as Windows format, start by converting to 24236 # unix format. 24237 path="$BOOT_JDK" 24238 new_path=`$CYGPATH -u "$path"` 24239 24240 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24241 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24242 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24243 # "foo.exe" is OK but "foo" is an error. 24244 # 24245 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24246 # It is also a way to make sure we got the proper file name for the real test later on. 24247 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24248 if test "x$test_shortpath" = x; then 24249 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24250 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24251 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24252 fi 24253 24254 # Call helper function which possibly converts this using DOS-style short mode. 24255 # If so, the updated path is stored in $new_path. 24256 24257 input_path="$new_path" 24258 # Check if we need to convert this using DOS-style short mode. If the path 24259 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24260 # take no chances and rewrite it. 24261 # Note: m4 eats our [], so we need to use [ and ] instead. 24262 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24263 if test "x$has_forbidden_chars" != x; then 24264 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24265 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24266 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24267 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24268 # Going to short mode and back again did indeed matter. Since short mode is 24269 # case insensitive, let's make it lowercase to improve readability. 24270 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24271 # Now convert it back to Unix-stile (cygpath) 24272 input_path=`$CYGPATH -u "$shortmode_path"` 24273 new_path="$input_path" 24274 fi 24275 fi 24276 24277 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24278 if test "x$test_cygdrive_prefix" = x; then 24279 # As a simple fix, exclude /usr/bin since it's not a real path. 24280 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24281 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24282 # a path prefixed by /cygdrive for fixpath to work. 24283 new_path="$CYGWIN_ROOT_PATH$input_path" 24284 fi 24285 fi 24286 24287 24288 if test "x$path" != "x$new_path"; then 24289 BOOT_JDK="$new_path" 24290 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24291 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24292 fi 24293 24294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24295 24296 path="$BOOT_JDK" 24297 has_colon=`$ECHO $path | $GREP ^.:` 24298 new_path="$path" 24299 if test "x$has_colon" = x; then 24300 # Not in mixed or Windows style, start by that. 24301 new_path=`cmd //c echo $path` 24302 fi 24303 24304 24305 input_path="$new_path" 24306 # Check if we need to convert this using DOS-style short mode. If the path 24307 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24308 # take no chances and rewrite it. 24309 # Note: m4 eats our [], so we need to use [ and ] instead. 24310 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24311 if test "x$has_forbidden_chars" != x; then 24312 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24313 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24314 fi 24315 24316 24317 windows_path="$new_path" 24318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24319 unix_path=`$CYGPATH -u "$windows_path"` 24320 new_path="$unix_path" 24321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24322 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24323 new_path="$unix_path" 24324 fi 24325 24326 if test "x$path" != "x$new_path"; then 24327 BOOT_JDK="$new_path" 24328 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24329 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24330 fi 24331 24332 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24333 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24334 24335 else 24336 # We're on a unix platform. Hooray! :) 24337 path="$BOOT_JDK" 24338 has_space=`$ECHO "$path" | $GREP " "` 24339 if test "x$has_space" != x; then 24340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24341 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24342 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24343 fi 24344 24345 # Use eval to expand a potential ~ 24346 eval path="$path" 24347 if test ! -f "$path" && test ! -d "$path"; then 24348 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24349 fi 24350 24351 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24352 fi 24353 fi 24354 24355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24356 $as_echo_n "checking for Boot JDK... " >&6; } 24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24358 $as_echo "$BOOT_JDK" >&6; } 24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24360 $as_echo_n "checking Boot JDK version... " >&6; } 24361 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24363 $as_echo "$BOOT_JDK_VERSION" >&6; } 24364 fi # end check jdk version 24365 fi # end check javac 24366 fi # end check java 24367 fi # end check boot jdk found 24368 fi 24369 24370 done 24371 fi 24372 24373 24374 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24375 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24376 # Do we have a bin/java? 24377 if test ! -x "$BOOT_JDK/bin/java"; then 24378 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24379 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24380 BOOT_JDK_FOUND=no 24381 else 24382 # Do we have a bin/javac? 24383 if test ! -x "$BOOT_JDK/bin/javac"; then 24384 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24385 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24386 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24387 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24388 BOOT_JDK_FOUND=no 24389 else 24390 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24391 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24392 24393 # Extra M4 quote needed to protect [] in grep expression. 24394 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24395 if test "x$FOUND_CORRECT_VERSION" = x; then 24396 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24397 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24398 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24399 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24400 BOOT_JDK_FOUND=no 24401 else 24402 # We're done! :-) 24403 BOOT_JDK_FOUND=yes 24404 24405 # Only process if variable expands to non-empty 24406 24407 if test "x$BOOT_JDK" != x; then 24408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24409 24410 # Input might be given as Windows format, start by converting to 24411 # unix format. 24412 path="$BOOT_JDK" 24413 new_path=`$CYGPATH -u "$path"` 24414 24415 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24416 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24417 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24418 # "foo.exe" is OK but "foo" is an error. 24419 # 24420 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24421 # It is also a way to make sure we got the proper file name for the real test later on. 24422 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24423 if test "x$test_shortpath" = x; then 24424 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24425 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24426 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24427 fi 24428 24429 # Call helper function which possibly converts this using DOS-style short mode. 24430 # If so, the updated path is stored in $new_path. 24431 24432 input_path="$new_path" 24433 # Check if we need to convert this using DOS-style short mode. If the path 24434 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24435 # take no chances and rewrite it. 24436 # Note: m4 eats our [], so we need to use [ and ] instead. 24437 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24438 if test "x$has_forbidden_chars" != x; then 24439 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24440 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24441 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24442 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24443 # Going to short mode and back again did indeed matter. Since short mode is 24444 # case insensitive, let's make it lowercase to improve readability. 24445 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24446 # Now convert it back to Unix-stile (cygpath) 24447 input_path=`$CYGPATH -u "$shortmode_path"` 24448 new_path="$input_path" 24449 fi 24450 fi 24451 24452 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24453 if test "x$test_cygdrive_prefix" = x; then 24454 # As a simple fix, exclude /usr/bin since it's not a real path. 24455 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24456 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24457 # a path prefixed by /cygdrive for fixpath to work. 24458 new_path="$CYGWIN_ROOT_PATH$input_path" 24459 fi 24460 fi 24461 24462 24463 if test "x$path" != "x$new_path"; then 24464 BOOT_JDK="$new_path" 24465 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24466 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24467 fi 24468 24469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24470 24471 path="$BOOT_JDK" 24472 has_colon=`$ECHO $path | $GREP ^.:` 24473 new_path="$path" 24474 if test "x$has_colon" = x; then 24475 # Not in mixed or Windows style, start by that. 24476 new_path=`cmd //c echo $path` 24477 fi 24478 24479 24480 input_path="$new_path" 24481 # Check if we need to convert this using DOS-style short mode. If the path 24482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24483 # take no chances and rewrite it. 24484 # Note: m4 eats our [], so we need to use [ and ] instead. 24485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24486 if test "x$has_forbidden_chars" != x; then 24487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24488 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24489 fi 24490 24491 24492 windows_path="$new_path" 24493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24494 unix_path=`$CYGPATH -u "$windows_path"` 24495 new_path="$unix_path" 24496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24497 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24498 new_path="$unix_path" 24499 fi 24500 24501 if test "x$path" != "x$new_path"; then 24502 BOOT_JDK="$new_path" 24503 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24504 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24505 fi 24506 24507 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24508 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24509 24510 else 24511 # We're on a unix platform. Hooray! :) 24512 path="$BOOT_JDK" 24513 has_space=`$ECHO "$path" | $GREP " "` 24514 if test "x$has_space" != x; then 24515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24516 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24517 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24518 fi 24519 24520 # Use eval to expand a potential ~ 24521 eval path="$path" 24522 if test ! -f "$path" && test ! -d "$path"; then 24523 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24524 fi 24525 24526 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24527 fi 24528 fi 24529 24530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24531 $as_echo_n "checking for Boot JDK... " >&6; } 24532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24533 $as_echo "$BOOT_JDK" >&6; } 24534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24535 $as_echo_n "checking Boot JDK version... " >&6; } 24536 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24538 $as_echo "$BOOT_JDK_VERSION" >&6; } 24539 fi # end check jdk version 24540 fi # end check javac 24541 fi # end check java 24542 fi # end check boot jdk found 24543 fi 24544 24545 24546 if test "x$BOOT_JDK_FOUND" = xno; then 24547 # Now execute the test 24548 24549 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24550 BOOT_JDK_SUFFIX="/Contents/Home" 24551 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24552 if test "x$ALL_JDKS_FOUND" != x; then 24553 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24554 24555 if test "x$BOOT_JDK_FOUND" = xno; then 24556 # Now execute the test 24557 24558 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24559 if test -d "$BOOT_JDK"; then 24560 BOOT_JDK_FOUND=maybe 24561 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24562 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24563 fi 24564 24565 24566 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24567 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24568 # Do we have a bin/java? 24569 if test ! -x "$BOOT_JDK/bin/java"; then 24570 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24571 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24572 BOOT_JDK_FOUND=no 24573 else 24574 # Do we have a bin/javac? 24575 if test ! -x "$BOOT_JDK/bin/javac"; then 24576 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24577 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24578 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24579 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24580 BOOT_JDK_FOUND=no 24581 else 24582 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24583 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24584 24585 # Extra M4 quote needed to protect [] in grep expression. 24586 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24587 if test "x$FOUND_CORRECT_VERSION" = x; then 24588 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24589 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24590 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24591 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24592 BOOT_JDK_FOUND=no 24593 else 24594 # We're done! :-) 24595 BOOT_JDK_FOUND=yes 24596 24597 # Only process if variable expands to non-empty 24598 24599 if test "x$BOOT_JDK" != x; then 24600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24601 24602 # Input might be given as Windows format, start by converting to 24603 # unix format. 24604 path="$BOOT_JDK" 24605 new_path=`$CYGPATH -u "$path"` 24606 24607 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24608 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24609 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24610 # "foo.exe" is OK but "foo" is an error. 24611 # 24612 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24613 # It is also a way to make sure we got the proper file name for the real test later on. 24614 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24615 if test "x$test_shortpath" = x; then 24616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24617 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24618 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24619 fi 24620 24621 # Call helper function which possibly converts this using DOS-style short mode. 24622 # If so, the updated path is stored in $new_path. 24623 24624 input_path="$new_path" 24625 # Check if we need to convert this using DOS-style short mode. If the path 24626 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24627 # take no chances and rewrite it. 24628 # Note: m4 eats our [], so we need to use [ and ] instead. 24629 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24630 if test "x$has_forbidden_chars" != x; then 24631 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24632 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24633 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24634 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24635 # Going to short mode and back again did indeed matter. Since short mode is 24636 # case insensitive, let's make it lowercase to improve readability. 24637 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24638 # Now convert it back to Unix-stile (cygpath) 24639 input_path=`$CYGPATH -u "$shortmode_path"` 24640 new_path="$input_path" 24641 fi 24642 fi 24643 24644 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24645 if test "x$test_cygdrive_prefix" = x; then 24646 # As a simple fix, exclude /usr/bin since it's not a real path. 24647 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24648 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24649 # a path prefixed by /cygdrive for fixpath to work. 24650 new_path="$CYGWIN_ROOT_PATH$input_path" 24651 fi 24652 fi 24653 24654 24655 if test "x$path" != "x$new_path"; then 24656 BOOT_JDK="$new_path" 24657 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24658 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24659 fi 24660 24661 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24662 24663 path="$BOOT_JDK" 24664 has_colon=`$ECHO $path | $GREP ^.:` 24665 new_path="$path" 24666 if test "x$has_colon" = x; then 24667 # Not in mixed or Windows style, start by that. 24668 new_path=`cmd //c echo $path` 24669 fi 24670 24671 24672 input_path="$new_path" 24673 # Check if we need to convert this using DOS-style short mode. If the path 24674 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24675 # take no chances and rewrite it. 24676 # Note: m4 eats our [], so we need to use [ and ] instead. 24677 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24678 if test "x$has_forbidden_chars" != x; then 24679 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24680 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24681 fi 24682 24683 24684 windows_path="$new_path" 24685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24686 unix_path=`$CYGPATH -u "$windows_path"` 24687 new_path="$unix_path" 24688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24689 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24690 new_path="$unix_path" 24691 fi 24692 24693 if test "x$path" != "x$new_path"; then 24694 BOOT_JDK="$new_path" 24695 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24696 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24697 fi 24698 24699 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24700 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24701 24702 else 24703 # We're on a unix platform. Hooray! :) 24704 path="$BOOT_JDK" 24705 has_space=`$ECHO "$path" | $GREP " "` 24706 if test "x$has_space" != x; then 24707 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24708 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24709 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24710 fi 24711 24712 # Use eval to expand a potential ~ 24713 eval path="$path" 24714 if test ! -f "$path" && test ! -d "$path"; then 24715 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24716 fi 24717 24718 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24719 fi 24720 fi 24721 24722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24723 $as_echo_n "checking for Boot JDK... " >&6; } 24724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24725 $as_echo "$BOOT_JDK" >&6; } 24726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24727 $as_echo_n "checking Boot JDK version... " >&6; } 24728 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24730 $as_echo "$BOOT_JDK_VERSION" >&6; } 24731 fi # end check jdk version 24732 fi # end check javac 24733 fi # end check java 24734 fi # end check boot jdk found 24735 fi 24736 24737 done 24738 fi 24739 24740 24741 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24742 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24743 # Do we have a bin/java? 24744 if test ! -x "$BOOT_JDK/bin/java"; then 24745 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24746 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24747 BOOT_JDK_FOUND=no 24748 else 24749 # Do we have a bin/javac? 24750 if test ! -x "$BOOT_JDK/bin/javac"; then 24751 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24752 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24753 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24754 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24755 BOOT_JDK_FOUND=no 24756 else 24757 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24758 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24759 24760 # Extra M4 quote needed to protect [] in grep expression. 24761 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24762 if test "x$FOUND_CORRECT_VERSION" = x; then 24763 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24764 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24765 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24766 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24767 BOOT_JDK_FOUND=no 24768 else 24769 # We're done! :-) 24770 BOOT_JDK_FOUND=yes 24771 24772 # Only process if variable expands to non-empty 24773 24774 if test "x$BOOT_JDK" != x; then 24775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24776 24777 # Input might be given as Windows format, start by converting to 24778 # unix format. 24779 path="$BOOT_JDK" 24780 new_path=`$CYGPATH -u "$path"` 24781 24782 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24783 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24784 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24785 # "foo.exe" is OK but "foo" is an error. 24786 # 24787 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24788 # It is also a way to make sure we got the proper file name for the real test later on. 24789 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24790 if test "x$test_shortpath" = x; then 24791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24792 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24793 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24794 fi 24795 24796 # Call helper function which possibly converts this using DOS-style short mode. 24797 # If so, the updated path is stored in $new_path. 24798 24799 input_path="$new_path" 24800 # Check if we need to convert this using DOS-style short mode. If the path 24801 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24802 # take no chances and rewrite it. 24803 # Note: m4 eats our [], so we need to use [ and ] instead. 24804 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24805 if test "x$has_forbidden_chars" != x; then 24806 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24807 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24808 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24809 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24810 # Going to short mode and back again did indeed matter. Since short mode is 24811 # case insensitive, let's make it lowercase to improve readability. 24812 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24813 # Now convert it back to Unix-stile (cygpath) 24814 input_path=`$CYGPATH -u "$shortmode_path"` 24815 new_path="$input_path" 24816 fi 24817 fi 24818 24819 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24820 if test "x$test_cygdrive_prefix" = x; then 24821 # As a simple fix, exclude /usr/bin since it's not a real path. 24822 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24823 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24824 # a path prefixed by /cygdrive for fixpath to work. 24825 new_path="$CYGWIN_ROOT_PATH$input_path" 24826 fi 24827 fi 24828 24829 24830 if test "x$path" != "x$new_path"; then 24831 BOOT_JDK="$new_path" 24832 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24833 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24834 fi 24835 24836 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24837 24838 path="$BOOT_JDK" 24839 has_colon=`$ECHO $path | $GREP ^.:` 24840 new_path="$path" 24841 if test "x$has_colon" = x; then 24842 # Not in mixed or Windows style, start by that. 24843 new_path=`cmd //c echo $path` 24844 fi 24845 24846 24847 input_path="$new_path" 24848 # Check if we need to convert this using DOS-style short mode. If the path 24849 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24850 # take no chances and rewrite it. 24851 # Note: m4 eats our [], so we need to use [ and ] instead. 24852 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24853 if test "x$has_forbidden_chars" != x; then 24854 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24855 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24856 fi 24857 24858 24859 windows_path="$new_path" 24860 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24861 unix_path=`$CYGPATH -u "$windows_path"` 24862 new_path="$unix_path" 24863 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24864 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24865 new_path="$unix_path" 24866 fi 24867 24868 if test "x$path" != "x$new_path"; then 24869 BOOT_JDK="$new_path" 24870 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24871 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24872 fi 24873 24874 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24875 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24876 24877 else 24878 # We're on a unix platform. Hooray! :) 24879 path="$BOOT_JDK" 24880 has_space=`$ECHO "$path" | $GREP " "` 24881 if test "x$has_space" != x; then 24882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24883 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24884 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24885 fi 24886 24887 # Use eval to expand a potential ~ 24888 eval path="$path" 24889 if test ! -f "$path" && test ! -d "$path"; then 24890 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24891 fi 24892 24893 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24894 fi 24895 fi 24896 24897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24898 $as_echo_n "checking for Boot JDK... " >&6; } 24899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24900 $as_echo "$BOOT_JDK" >&6; } 24901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24902 $as_echo_n "checking Boot JDK version... " >&6; } 24903 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24905 $as_echo "$BOOT_JDK_VERSION" >&6; } 24906 fi # end check jdk version 24907 fi # end check javac 24908 fi # end check java 24909 fi # end check boot jdk found 24910 fi 24911 24912 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24913 24914 if test "x$BOOT_JDK_FOUND" = xno; then 24915 # Now execute the test 24916 24917 BOOT_JDK_PREFIX="/usr/lib/jvm" 24918 BOOT_JDK_SUFFIX="" 24919 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24920 if test "x$ALL_JDKS_FOUND" != x; then 24921 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24922 24923 if test "x$BOOT_JDK_FOUND" = xno; then 24924 # Now execute the test 24925 24926 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24927 if test -d "$BOOT_JDK"; then 24928 BOOT_JDK_FOUND=maybe 24929 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24930 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24931 fi 24932 24933 24934 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24935 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24936 # Do we have a bin/java? 24937 if test ! -x "$BOOT_JDK/bin/java"; then 24938 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24939 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24940 BOOT_JDK_FOUND=no 24941 else 24942 # Do we have a bin/javac? 24943 if test ! -x "$BOOT_JDK/bin/javac"; then 24944 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24945 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24946 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24947 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24948 BOOT_JDK_FOUND=no 24949 else 24950 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24951 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24952 24953 # Extra M4 quote needed to protect [] in grep expression. 24954 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24955 if test "x$FOUND_CORRECT_VERSION" = x; then 24956 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24957 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24958 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24959 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24960 BOOT_JDK_FOUND=no 24961 else 24962 # We're done! :-) 24963 BOOT_JDK_FOUND=yes 24964 24965 # Only process if variable expands to non-empty 24966 24967 if test "x$BOOT_JDK" != x; then 24968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24969 24970 # Input might be given as Windows format, start by converting to 24971 # unix format. 24972 path="$BOOT_JDK" 24973 new_path=`$CYGPATH -u "$path"` 24974 24975 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24976 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24977 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24978 # "foo.exe" is OK but "foo" is an error. 24979 # 24980 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24981 # It is also a way to make sure we got the proper file name for the real test later on. 24982 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24983 if test "x$test_shortpath" = 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 $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24987 fi 24988 24989 # Call helper function which possibly converts this using DOS-style short mode. 24990 # If so, the updated path is stored in $new_path. 24991 24992 input_path="$new_path" 24993 # Check if we need to convert this using DOS-style short mode. If the path 24994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24995 # take no chances and rewrite it. 24996 # Note: m4 eats our [], so we need to use [ and ] instead. 24997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24998 if test "x$has_forbidden_chars" != x; then 24999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25000 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25001 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25002 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25003 # Going to short mode and back again did indeed matter. Since short mode is 25004 # case insensitive, let's make it lowercase to improve readability. 25005 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25006 # Now convert it back to Unix-stile (cygpath) 25007 input_path=`$CYGPATH -u "$shortmode_path"` 25008 new_path="$input_path" 25009 fi 25010 fi 25011 25012 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25013 if test "x$test_cygdrive_prefix" = x; then 25014 # As a simple fix, exclude /usr/bin since it's not a real path. 25015 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25016 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25017 # a path prefixed by /cygdrive for fixpath to work. 25018 new_path="$CYGWIN_ROOT_PATH$input_path" 25019 fi 25020 fi 25021 25022 25023 if test "x$path" != "x$new_path"; then 25024 BOOT_JDK="$new_path" 25025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25026 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25027 fi 25028 25029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25030 25031 path="$BOOT_JDK" 25032 has_colon=`$ECHO $path | $GREP ^.:` 25033 new_path="$path" 25034 if test "x$has_colon" = x; then 25035 # Not in mixed or Windows style, start by that. 25036 new_path=`cmd //c echo $path` 25037 fi 25038 25039 25040 input_path="$new_path" 25041 # Check if we need to convert this using DOS-style short mode. If the path 25042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25043 # take no chances and rewrite it. 25044 # Note: m4 eats our [], so we need to use [ and ] instead. 25045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25046 if test "x$has_forbidden_chars" != x; then 25047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25048 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25049 fi 25050 25051 25052 windows_path="$new_path" 25053 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25054 unix_path=`$CYGPATH -u "$windows_path"` 25055 new_path="$unix_path" 25056 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25057 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25058 new_path="$unix_path" 25059 fi 25060 25061 if test "x$path" != "x$new_path"; then 25062 BOOT_JDK="$new_path" 25063 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25064 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25065 fi 25066 25067 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25068 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25069 25070 else 25071 # We're on a unix platform. Hooray! :) 25072 path="$BOOT_JDK" 25073 has_space=`$ECHO "$path" | $GREP " "` 25074 if test "x$has_space" != x; then 25075 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25076 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25077 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25078 fi 25079 25080 # Use eval to expand a potential ~ 25081 eval path="$path" 25082 if test ! -f "$path" && test ! -d "$path"; then 25083 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25084 fi 25085 25086 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25087 fi 25088 fi 25089 25090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25091 $as_echo_n "checking for Boot JDK... " >&6; } 25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25093 $as_echo "$BOOT_JDK" >&6; } 25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25095 $as_echo_n "checking Boot JDK version... " >&6; } 25096 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25098 $as_echo "$BOOT_JDK_VERSION" >&6; } 25099 fi # end check jdk version 25100 fi # end check javac 25101 fi # end check java 25102 fi # end check boot jdk found 25103 fi 25104 25105 done 25106 fi 25107 25108 25109 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25110 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25111 # Do we have a bin/java? 25112 if test ! -x "$BOOT_JDK/bin/java"; then 25113 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25114 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25115 BOOT_JDK_FOUND=no 25116 else 25117 # Do we have a bin/javac? 25118 if test ! -x "$BOOT_JDK/bin/javac"; then 25119 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25120 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25121 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25122 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25123 BOOT_JDK_FOUND=no 25124 else 25125 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25126 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25127 25128 # Extra M4 quote needed to protect [] in grep expression. 25129 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25130 if test "x$FOUND_CORRECT_VERSION" = x; then 25131 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25132 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25133 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25134 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25135 BOOT_JDK_FOUND=no 25136 else 25137 # We're done! :-) 25138 BOOT_JDK_FOUND=yes 25139 25140 # Only process if variable expands to non-empty 25141 25142 if test "x$BOOT_JDK" != x; then 25143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25144 25145 # Input might be given as Windows format, start by converting to 25146 # unix format. 25147 path="$BOOT_JDK" 25148 new_path=`$CYGPATH -u "$path"` 25149 25150 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25151 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25152 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25153 # "foo.exe" is OK but "foo" is an error. 25154 # 25155 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25156 # It is also a way to make sure we got the proper file name for the real test later on. 25157 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25158 if test "x$test_shortpath" = x; then 25159 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25160 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25161 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25162 fi 25163 25164 # Call helper function which possibly converts this using DOS-style short mode. 25165 # If so, the updated path is stored in $new_path. 25166 25167 input_path="$new_path" 25168 # Check if we need to convert this using DOS-style short mode. If the path 25169 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25170 # take no chances and rewrite it. 25171 # Note: m4 eats our [], so we need to use [ and ] instead. 25172 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25173 if test "x$has_forbidden_chars" != x; then 25174 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25175 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25176 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25177 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25178 # Going to short mode and back again did indeed matter. Since short mode is 25179 # case insensitive, let's make it lowercase to improve readability. 25180 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25181 # Now convert it back to Unix-stile (cygpath) 25182 input_path=`$CYGPATH -u "$shortmode_path"` 25183 new_path="$input_path" 25184 fi 25185 fi 25186 25187 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25188 if test "x$test_cygdrive_prefix" = x; then 25189 # As a simple fix, exclude /usr/bin since it's not a real path. 25190 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25191 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25192 # a path prefixed by /cygdrive for fixpath to work. 25193 new_path="$CYGWIN_ROOT_PATH$input_path" 25194 fi 25195 fi 25196 25197 25198 if test "x$path" != "x$new_path"; then 25199 BOOT_JDK="$new_path" 25200 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25201 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25202 fi 25203 25204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25205 25206 path="$BOOT_JDK" 25207 has_colon=`$ECHO $path | $GREP ^.:` 25208 new_path="$path" 25209 if test "x$has_colon" = x; then 25210 # Not in mixed or Windows style, start by that. 25211 new_path=`cmd //c echo $path` 25212 fi 25213 25214 25215 input_path="$new_path" 25216 # Check if we need to convert this using DOS-style short mode. If the path 25217 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25218 # take no chances and rewrite it. 25219 # Note: m4 eats our [], so we need to use [ and ] instead. 25220 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25221 if test "x$has_forbidden_chars" != x; then 25222 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25223 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25224 fi 25225 25226 25227 windows_path="$new_path" 25228 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25229 unix_path=`$CYGPATH -u "$windows_path"` 25230 new_path="$unix_path" 25231 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25232 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25233 new_path="$unix_path" 25234 fi 25235 25236 if test "x$path" != "x$new_path"; then 25237 BOOT_JDK="$new_path" 25238 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25239 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25240 fi 25241 25242 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25243 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25244 25245 else 25246 # We're on a unix platform. Hooray! :) 25247 path="$BOOT_JDK" 25248 has_space=`$ECHO "$path" | $GREP " "` 25249 if test "x$has_space" != x; then 25250 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25251 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25252 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25253 fi 25254 25255 # Use eval to expand a potential ~ 25256 eval path="$path" 25257 if test ! -f "$path" && test ! -d "$path"; then 25258 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25259 fi 25260 25261 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25262 fi 25263 fi 25264 25265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25266 $as_echo_n "checking for Boot JDK... " >&6; } 25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25268 $as_echo "$BOOT_JDK" >&6; } 25269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25270 $as_echo_n "checking Boot JDK version... " >&6; } 25271 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25273 $as_echo "$BOOT_JDK_VERSION" >&6; } 25274 fi # end check jdk version 25275 fi # end check javac 25276 fi # end check java 25277 fi # end check boot jdk found 25278 fi 25279 25280 fi 25281 25282 25283 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25284 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25285 # Do we have a bin/java? 25286 if test ! -x "$BOOT_JDK/bin/java"; then 25287 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25288 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25289 BOOT_JDK_FOUND=no 25290 else 25291 # Do we have a bin/javac? 25292 if test ! -x "$BOOT_JDK/bin/javac"; then 25293 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25294 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25295 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25296 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25297 BOOT_JDK_FOUND=no 25298 else 25299 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25300 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25301 25302 # Extra M4 quote needed to protect [] in grep expression. 25303 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25304 if test "x$FOUND_CORRECT_VERSION" = x; then 25305 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25306 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25307 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25308 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25309 BOOT_JDK_FOUND=no 25310 else 25311 # We're done! :-) 25312 BOOT_JDK_FOUND=yes 25313 25314 # Only process if variable expands to non-empty 25315 25316 if test "x$BOOT_JDK" != x; then 25317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25318 25319 # Input might be given as Windows format, start by converting to 25320 # unix format. 25321 path="$BOOT_JDK" 25322 new_path=`$CYGPATH -u "$path"` 25323 25324 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25325 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25326 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25327 # "foo.exe" is OK but "foo" is an error. 25328 # 25329 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25330 # It is also a way to make sure we got the proper file name for the real test later on. 25331 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25332 if test "x$test_shortpath" = x; then 25333 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25334 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25335 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25336 fi 25337 25338 # Call helper function which possibly converts this using DOS-style short mode. 25339 # If so, the updated path is stored in $new_path. 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 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25350 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25351 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25352 # Going to short mode and back again did indeed matter. Since short mode is 25353 # case insensitive, let's make it lowercase to improve readability. 25354 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25355 # Now convert it back to Unix-stile (cygpath) 25356 input_path=`$CYGPATH -u "$shortmode_path"` 25357 new_path="$input_path" 25358 fi 25359 fi 25360 25361 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25362 if test "x$test_cygdrive_prefix" = x; then 25363 # As a simple fix, exclude /usr/bin since it's not a real path. 25364 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25365 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25366 # a path prefixed by /cygdrive for fixpath to work. 25367 new_path="$CYGWIN_ROOT_PATH$input_path" 25368 fi 25369 fi 25370 25371 25372 if test "x$path" != "x$new_path"; then 25373 BOOT_JDK="$new_path" 25374 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25375 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25376 fi 25377 25378 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25379 25380 path="$BOOT_JDK" 25381 has_colon=`$ECHO $path | $GREP ^.:` 25382 new_path="$path" 25383 if test "x$has_colon" = x; then 25384 # Not in mixed or Windows style, start by that. 25385 new_path=`cmd //c echo $path` 25386 fi 25387 25388 25389 input_path="$new_path" 25390 # Check if we need to convert this using DOS-style short mode. If the path 25391 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25392 # take no chances and rewrite it. 25393 # Note: m4 eats our [], so we need to use [ and ] instead. 25394 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25395 if test "x$has_forbidden_chars" != x; then 25396 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25397 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25398 fi 25399 25400 25401 windows_path="$new_path" 25402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25403 unix_path=`$CYGPATH -u "$windows_path"` 25404 new_path="$unix_path" 25405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25406 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25407 new_path="$unix_path" 25408 fi 25409 25410 if test "x$path" != "x$new_path"; then 25411 BOOT_JDK="$new_path" 25412 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25413 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25414 fi 25415 25416 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25417 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25418 25419 else 25420 # We're on a unix platform. Hooray! :) 25421 path="$BOOT_JDK" 25422 has_space=`$ECHO "$path" | $GREP " "` 25423 if test "x$has_space" != x; then 25424 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25425 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25426 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25427 fi 25428 25429 # Use eval to expand a potential ~ 25430 eval path="$path" 25431 if test ! -f "$path" && test ! -d "$path"; then 25432 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25433 fi 25434 25435 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25436 fi 25437 fi 25438 25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25440 $as_echo_n "checking for Boot JDK... " >&6; } 25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25442 $as_echo "$BOOT_JDK" >&6; } 25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25444 $as_echo_n "checking Boot JDK version... " >&6; } 25445 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25447 $as_echo "$BOOT_JDK_VERSION" >&6; } 25448 fi # end check jdk version 25449 fi # end check javac 25450 fi # end check java 25451 fi # end check boot jdk found 25452 fi 25453 25454 25455 # If we haven't found anything yet, we've truly lost. Give up. 25456 if test "x$BOOT_JDK_FOUND" = xno; then 25457 25458 # Print a helpful message on how to acquire the necessary build dependency. 25459 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25460 MISSING_DEPENDENCY=openjdk 25461 25462 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25463 cygwin_help $MISSING_DEPENDENCY 25464 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25465 msys_help $MISSING_DEPENDENCY 25466 else 25467 PKGHANDLER_COMMAND= 25468 25469 case $PKGHANDLER in 25470 apt-get) 25471 apt_help $MISSING_DEPENDENCY ;; 25472 yum) 25473 yum_help $MISSING_DEPENDENCY ;; 25474 port) 25475 port_help $MISSING_DEPENDENCY ;; 25476 pkgutil) 25477 pkgutil_help $MISSING_DEPENDENCY ;; 25478 pkgadd) 25479 pkgadd_help $MISSING_DEPENDENCY ;; 25480 esac 25481 25482 if test "x$PKGHANDLER_COMMAND" != x; then 25483 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25484 fi 25485 fi 25486 25487 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25488 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25489 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25490 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25491 as_fn_error $? "Cannot continue" "$LINENO" 5 25492 fi 25493 25494 25495 25496 # Setup tools from the Boot JDK. 25497 25498 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25499 25500 # Publish this variable in the help. 25501 25502 25503 if test "x$JAVA" = x; then 25504 # The variable is not set by user, try to locate tool using the code snippet 25505 25506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25507 $as_echo_n "checking for java in Boot JDK... " >&6; } 25508 JAVA=$BOOT_JDK/bin/java 25509 if test ! -x $JAVA; then 25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25511 $as_echo "not found" >&6; } 25512 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25513 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25514 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25515 fi 25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25517 $as_echo "ok" >&6; } 25518 25519 25520 else 25521 # The variable is set, but is it from the command line or the environment? 25522 25523 # Try to remove the string !JAVA! from our list. 25524 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25525 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25526 # If it failed, the variable was not from the command line. Ignore it, 25527 # but warn the user (except for BASH, which is always set by the calling BASH). 25528 if test "xJAVA" != xBASH; then 25529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25530 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25531 fi 25532 # Try to locate tool using the code snippet 25533 25534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25535 $as_echo_n "checking for java in Boot JDK... " >&6; } 25536 JAVA=$BOOT_JDK/bin/java 25537 if test ! -x $JAVA; then 25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25539 $as_echo "not found" >&6; } 25540 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25541 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25542 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25543 fi 25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25545 $as_echo "ok" >&6; } 25546 25547 25548 else 25549 # If it succeeded, then it was overridden by the user. We will use it 25550 # for the tool. 25551 25552 # First remove it from the list of overridden variables, so we can test 25553 # for unknown variables in the end. 25554 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25555 25556 # Check if the provided tool contains a complete path. 25557 tool_specified="$JAVA" 25558 tool_basename="${tool_specified##*/}" 25559 if test "x$tool_basename" = "x$tool_specified"; then 25560 # A command without a complete path is provided, search $PATH. 25561 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25562 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25563 # Extract the first word of "$tool_basename", so it can be a program name with args. 25564 set dummy $tool_basename; ac_word=$2 25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25566 $as_echo_n "checking for $ac_word... " >&6; } 25567 if ${ac_cv_path_JAVA+:} false; then : 25568 $as_echo_n "(cached) " >&6 25569 else 25570 case $JAVA in 25571 [\\/]* | ?:[\\/]*) 25572 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25573 ;; 25574 *) 25575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25576 for as_dir in $PATH 25577 do 25578 IFS=$as_save_IFS 25579 test -z "$as_dir" && as_dir=. 25580 for ac_exec_ext in '' $ac_executable_extensions; do 25581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25582 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25584 break 2 25585 fi 25586 done 25587 done 25588 IFS=$as_save_IFS 25589 25590 ;; 25591 esac 25592 fi 25593 JAVA=$ac_cv_path_JAVA 25594 if test -n "$JAVA"; then 25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25596 $as_echo "$JAVA" >&6; } 25597 else 25598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25599 $as_echo "no" >&6; } 25600 fi 25601 25602 25603 if test "x$JAVA" = x; then 25604 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25605 fi 25606 else 25607 # Otherwise we believe it is a complete path. Use it as it is. 25608 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25609 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25611 $as_echo_n "checking for JAVA... " >&6; } 25612 if test ! -x "$tool_specified"; then 25613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25614 $as_echo "not found" >&6; } 25615 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25616 fi 25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25618 $as_echo "$tool_specified" >&6; } 25619 fi 25620 fi 25621 fi 25622 25623 25624 25625 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25626 25627 # Publish this variable in the help. 25628 25629 25630 if test "x$JAVAC" = x; then 25631 # The variable is not set by user, try to locate tool using the code snippet 25632 25633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25634 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25635 JAVAC=$BOOT_JDK/bin/javac 25636 if test ! -x $JAVAC; then 25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25638 $as_echo "not found" >&6; } 25639 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25640 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25641 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25642 fi 25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25644 $as_echo "ok" >&6; } 25645 25646 25647 else 25648 # The variable is set, but is it from the command line or the environment? 25649 25650 # Try to remove the string !JAVAC! from our list. 25651 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25652 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25653 # If it failed, the variable was not from the command line. Ignore it, 25654 # but warn the user (except for BASH, which is always set by the calling BASH). 25655 if test "xJAVAC" != xBASH; then 25656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25657 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25658 fi 25659 # Try to locate tool using the code snippet 25660 25661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25662 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25663 JAVAC=$BOOT_JDK/bin/javac 25664 if test ! -x $JAVAC; then 25665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25666 $as_echo "not found" >&6; } 25667 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25668 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25669 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25670 fi 25671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25672 $as_echo "ok" >&6; } 25673 25674 25675 else 25676 # If it succeeded, then it was overridden by the user. We will use it 25677 # for the tool. 25678 25679 # First remove it from the list of overridden variables, so we can test 25680 # for unknown variables in the end. 25681 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25682 25683 # Check if the provided tool contains a complete path. 25684 tool_specified="$JAVAC" 25685 tool_basename="${tool_specified##*/}" 25686 if test "x$tool_basename" = "x$tool_specified"; then 25687 # A command without a complete path is provided, search $PATH. 25688 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25689 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25690 # Extract the first word of "$tool_basename", so it can be a program name with args. 25691 set dummy $tool_basename; ac_word=$2 25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25693 $as_echo_n "checking for $ac_word... " >&6; } 25694 if ${ac_cv_path_JAVAC+:} false; then : 25695 $as_echo_n "(cached) " >&6 25696 else 25697 case $JAVAC in 25698 [\\/]* | ?:[\\/]*) 25699 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25700 ;; 25701 *) 25702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25703 for as_dir in $PATH 25704 do 25705 IFS=$as_save_IFS 25706 test -z "$as_dir" && as_dir=. 25707 for ac_exec_ext in '' $ac_executable_extensions; do 25708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25709 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25711 break 2 25712 fi 25713 done 25714 done 25715 IFS=$as_save_IFS 25716 25717 ;; 25718 esac 25719 fi 25720 JAVAC=$ac_cv_path_JAVAC 25721 if test -n "$JAVAC"; then 25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25723 $as_echo "$JAVAC" >&6; } 25724 else 25725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25726 $as_echo "no" >&6; } 25727 fi 25728 25729 25730 if test "x$JAVAC" = x; then 25731 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25732 fi 25733 else 25734 # Otherwise we believe it is a complete path. Use it as it is. 25735 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25736 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25738 $as_echo_n "checking for JAVAC... " >&6; } 25739 if test ! -x "$tool_specified"; then 25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25741 $as_echo "not found" >&6; } 25742 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25743 fi 25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25745 $as_echo "$tool_specified" >&6; } 25746 fi 25747 fi 25748 fi 25749 25750 25751 25752 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25753 25754 # Publish this variable in the help. 25755 25756 25757 if test "x$JAVAH" = x; then 25758 # The variable is not set by user, try to locate tool using the code snippet 25759 25760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25761 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25762 JAVAH=$BOOT_JDK/bin/javah 25763 if test ! -x $JAVAH; then 25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25765 $as_echo "not found" >&6; } 25766 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25767 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25768 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25769 fi 25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25771 $as_echo "ok" >&6; } 25772 25773 25774 else 25775 # The variable is set, but is it from the command line or the environment? 25776 25777 # Try to remove the string !JAVAH! from our list. 25778 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25779 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25780 # If it failed, the variable was not from the command line. Ignore it, 25781 # but warn the user (except for BASH, which is always set by the calling BASH). 25782 if test "xJAVAH" != xBASH; then 25783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25784 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25785 fi 25786 # Try to locate tool using the code snippet 25787 25788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25789 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25790 JAVAH=$BOOT_JDK/bin/javah 25791 if test ! -x $JAVAH; then 25792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25793 $as_echo "not found" >&6; } 25794 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25795 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25796 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25797 fi 25798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25799 $as_echo "ok" >&6; } 25800 25801 25802 else 25803 # If it succeeded, then it was overridden by the user. We will use it 25804 # for the tool. 25805 25806 # First remove it from the list of overridden variables, so we can test 25807 # for unknown variables in the end. 25808 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25809 25810 # Check if the provided tool contains a complete path. 25811 tool_specified="$JAVAH" 25812 tool_basename="${tool_specified##*/}" 25813 if test "x$tool_basename" = "x$tool_specified"; then 25814 # A command without a complete path is provided, search $PATH. 25815 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25816 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25817 # Extract the first word of "$tool_basename", so it can be a program name with args. 25818 set dummy $tool_basename; ac_word=$2 25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25820 $as_echo_n "checking for $ac_word... " >&6; } 25821 if ${ac_cv_path_JAVAH+:} false; then : 25822 $as_echo_n "(cached) " >&6 25823 else 25824 case $JAVAH in 25825 [\\/]* | ?:[\\/]*) 25826 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25827 ;; 25828 *) 25829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25830 for as_dir in $PATH 25831 do 25832 IFS=$as_save_IFS 25833 test -z "$as_dir" && as_dir=. 25834 for ac_exec_ext in '' $ac_executable_extensions; do 25835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25836 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25838 break 2 25839 fi 25840 done 25841 done 25842 IFS=$as_save_IFS 25843 25844 ;; 25845 esac 25846 fi 25847 JAVAH=$ac_cv_path_JAVAH 25848 if test -n "$JAVAH"; then 25849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25850 $as_echo "$JAVAH" >&6; } 25851 else 25852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25853 $as_echo "no" >&6; } 25854 fi 25855 25856 25857 if test "x$JAVAH" = x; then 25858 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25859 fi 25860 else 25861 # Otherwise we believe it is a complete path. Use it as it is. 25862 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25863 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25865 $as_echo_n "checking for JAVAH... " >&6; } 25866 if test ! -x "$tool_specified"; then 25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25868 $as_echo "not found" >&6; } 25869 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25870 fi 25871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25872 $as_echo "$tool_specified" >&6; } 25873 fi 25874 fi 25875 fi 25876 25877 25878 25879 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25880 25881 # Publish this variable in the help. 25882 25883 25884 if test "x$JAR" = x; then 25885 # The variable is not set by user, try to locate tool using the code snippet 25886 25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25888 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25889 JAR=$BOOT_JDK/bin/jar 25890 if test ! -x $JAR; then 25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25892 $as_echo "not found" >&6; } 25893 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25894 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25895 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25896 fi 25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25898 $as_echo "ok" >&6; } 25899 25900 25901 else 25902 # The variable is set, but is it from the command line or the environment? 25903 25904 # Try to remove the string !JAR! from our list. 25905 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25906 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25907 # If it failed, the variable was not from the command line. Ignore it, 25908 # but warn the user (except for BASH, which is always set by the calling BASH). 25909 if test "xJAR" != xBASH; then 25910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25911 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25912 fi 25913 # Try to locate tool using the code snippet 25914 25915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25916 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25917 JAR=$BOOT_JDK/bin/jar 25918 if test ! -x $JAR; then 25919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25920 $as_echo "not found" >&6; } 25921 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25922 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25923 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25924 fi 25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25926 $as_echo "ok" >&6; } 25927 25928 25929 else 25930 # If it succeeded, then it was overridden by the user. We will use it 25931 # for the tool. 25932 25933 # First remove it from the list of overridden variables, so we can test 25934 # for unknown variables in the end. 25935 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25936 25937 # Check if the provided tool contains a complete path. 25938 tool_specified="$JAR" 25939 tool_basename="${tool_specified##*/}" 25940 if test "x$tool_basename" = "x$tool_specified"; then 25941 # A command without a complete path is provided, search $PATH. 25942 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 25943 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 25944 # Extract the first word of "$tool_basename", so it can be a program name with args. 25945 set dummy $tool_basename; ac_word=$2 25946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25947 $as_echo_n "checking for $ac_word... " >&6; } 25948 if ${ac_cv_path_JAR+:} false; then : 25949 $as_echo_n "(cached) " >&6 25950 else 25951 case $JAR in 25952 [\\/]* | ?:[\\/]*) 25953 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 25954 ;; 25955 *) 25956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25957 for as_dir in $PATH 25958 do 25959 IFS=$as_save_IFS 25960 test -z "$as_dir" && as_dir=. 25961 for ac_exec_ext in '' $ac_executable_extensions; do 25962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25963 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 25964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25965 break 2 25966 fi 25967 done 25968 done 25969 IFS=$as_save_IFS 25970 25971 ;; 25972 esac 25973 fi 25974 JAR=$ac_cv_path_JAR 25975 if test -n "$JAR"; then 25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 25977 $as_echo "$JAR" >&6; } 25978 else 25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25980 $as_echo "no" >&6; } 25981 fi 25982 25983 25984 if test "x$JAR" = x; then 25985 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25986 fi 25987 else 25988 # Otherwise we believe it is a complete path. Use it as it is. 25989 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 25990 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 25991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 25992 $as_echo_n "checking for JAR... " >&6; } 25993 if test ! -x "$tool_specified"; then 25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25995 $as_echo "not found" >&6; } 25996 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 25997 fi 25998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25999 $as_echo "$tool_specified" >&6; } 26000 fi 26001 fi 26002 fi 26003 26004 26005 26006 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26007 26008 # Publish this variable in the help. 26009 26010 26011 if test "x$NATIVE2ASCII" = x; then 26012 # The variable is not set by user, try to locate tool using the code snippet 26013 26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 26015 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 26016 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 26017 if test ! -x $NATIVE2ASCII; then 26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26019 $as_echo "not found" >&6; } 26020 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26021 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26022 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 26023 fi 26024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26025 $as_echo "ok" >&6; } 26026 26027 26028 else 26029 # The variable is set, but is it from the command line or the environment? 26030 26031 # Try to remove the string !NATIVE2ASCII! from our list. 26032 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 26033 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26034 # If it failed, the variable was not from the command line. Ignore it, 26035 # but warn the user (except for BASH, which is always set by the calling BASH). 26036 if test "xNATIVE2ASCII" != xBASH; then 26037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 26038 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 26039 fi 26040 # Try to locate tool using the code snippet 26041 26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 26043 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 26044 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 26045 if test ! -x $NATIVE2ASCII; then 26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26047 $as_echo "not found" >&6; } 26048 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26049 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26050 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 26051 fi 26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26053 $as_echo "ok" >&6; } 26054 26055 26056 else 26057 # If it succeeded, then it was overridden by the user. We will use it 26058 # for the tool. 26059 26060 # First remove it from the list of overridden variables, so we can test 26061 # for unknown variables in the end. 26062 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26063 26064 # Check if the provided tool contains a complete path. 26065 tool_specified="$NATIVE2ASCII" 26066 tool_basename="${tool_specified##*/}" 26067 if test "x$tool_basename" = "x$tool_specified"; then 26068 # A command without a complete path is provided, search $PATH. 26069 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 26070 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 26071 # Extract the first word of "$tool_basename", so it can be a program name with args. 26072 set dummy $tool_basename; ac_word=$2 26073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26074 $as_echo_n "checking for $ac_word... " >&6; } 26075 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 26076 $as_echo_n "(cached) " >&6 26077 else 26078 case $NATIVE2ASCII in 26079 [\\/]* | ?:[\\/]*) 26080 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 26081 ;; 26082 *) 26083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26084 for as_dir in $PATH 26085 do 26086 IFS=$as_save_IFS 26087 test -z "$as_dir" && as_dir=. 26088 for ac_exec_ext in '' $ac_executable_extensions; do 26089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26090 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 26091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26092 break 2 26093 fi 26094 done 26095 done 26096 IFS=$as_save_IFS 26097 26098 ;; 26099 esac 26100 fi 26101 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 26102 if test -n "$NATIVE2ASCII"; then 26103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 26104 $as_echo "$NATIVE2ASCII" >&6; } 26105 else 26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26107 $as_echo "no" >&6; } 26108 fi 26109 26110 26111 if test "x$NATIVE2ASCII" = x; then 26112 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26113 fi 26114 else 26115 # Otherwise we believe it is a complete path. Use it as it is. 26116 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 26117 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 26119 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 26120 if test ! -x "$tool_specified"; then 26121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26122 $as_echo "not found" >&6; } 26123 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 26124 fi 26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26126 $as_echo "$tool_specified" >&6; } 26127 fi 26128 fi 26129 fi 26130 26131 26132 26133 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26134 26135 # Publish this variable in the help. 26136 26137 26138 if test "x$JARSIGNER" = x; then 26139 # The variable is not set by user, try to locate tool using the code snippet 26140 26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26142 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26143 JARSIGNER=$BOOT_JDK/bin/jarsigner 26144 if test ! -x $JARSIGNER; then 26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26146 $as_echo "not found" >&6; } 26147 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26148 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26149 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26150 fi 26151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26152 $as_echo "ok" >&6; } 26153 26154 26155 else 26156 # The variable is set, but is it from the command line or the environment? 26157 26158 # Try to remove the string !JARSIGNER! from our list. 26159 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 26160 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26161 # If it failed, the variable was not from the command line. Ignore it, 26162 # but warn the user (except for BASH, which is always set by the calling BASH). 26163 if test "xJARSIGNER" != xBASH; then 26164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 26165 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 26166 fi 26167 # Try to locate tool using the code snippet 26168 26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26170 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26171 JARSIGNER=$BOOT_JDK/bin/jarsigner 26172 if test ! -x $JARSIGNER; then 26173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26174 $as_echo "not found" >&6; } 26175 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26176 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26177 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26178 fi 26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26180 $as_echo "ok" >&6; } 26181 26182 26183 else 26184 # If it succeeded, then it was overridden by the user. We will use it 26185 # for the tool. 26186 26187 # First remove it from the list of overridden variables, so we can test 26188 # for unknown variables in the end. 26189 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26190 26191 # Check if the provided tool contains a complete path. 26192 tool_specified="$JARSIGNER" 26193 tool_basename="${tool_specified##*/}" 26194 if test "x$tool_basename" = "x$tool_specified"; then 26195 # A command without a complete path is provided, search $PATH. 26196 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 26197 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 26198 # Extract the first word of "$tool_basename", so it can be a program name with args. 26199 set dummy $tool_basename; ac_word=$2 26200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26201 $as_echo_n "checking for $ac_word... " >&6; } 26202 if ${ac_cv_path_JARSIGNER+:} false; then : 26203 $as_echo_n "(cached) " >&6 26204 else 26205 case $JARSIGNER in 26206 [\\/]* | ?:[\\/]*) 26207 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 26208 ;; 26209 *) 26210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26211 for as_dir in $PATH 26212 do 26213 IFS=$as_save_IFS 26214 test -z "$as_dir" && as_dir=. 26215 for ac_exec_ext in '' $ac_executable_extensions; do 26216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26217 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 26218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26219 break 2 26220 fi 26221 done 26222 done 26223 IFS=$as_save_IFS 26224 26225 ;; 26226 esac 26227 fi 26228 JARSIGNER=$ac_cv_path_JARSIGNER 26229 if test -n "$JARSIGNER"; then 26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 26231 $as_echo "$JARSIGNER" >&6; } 26232 else 26233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26234 $as_echo "no" >&6; } 26235 fi 26236 26237 26238 if test "x$JARSIGNER" = x; then 26239 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26240 fi 26241 else 26242 # Otherwise we believe it is a complete path. Use it as it is. 26243 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 26244 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 26246 $as_echo_n "checking for JARSIGNER... " >&6; } 26247 if test ! -x "$tool_specified"; then 26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26249 $as_echo "not found" >&6; } 26250 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 26251 fi 26252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26253 $as_echo "$tool_specified" >&6; } 26254 fi 26255 fi 26256 fi 26257 26258 26259 26260 # Finally, set some other options... 26261 26262 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 26263 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 26264 26265 26266 26267 26268 ############################################################################### 26269 # 26270 # Configure the sources to use. We can add or override individual directories. 26271 # 26272 ############################################################################### 26273 26274 26275 # Where are the sources. Any of these can be overridden 26276 # using --with-override-corba and the likes. 26277 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26278 CORBA_TOPDIR="$SRC_ROOT/corba" 26279 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26280 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26281 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26282 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26283 JDK_TOPDIR="$SRC_ROOT/jdk" 26284 26285 26286 26287 26288 26289 26290 26291 26292 26293 26294 ############################################################################### 26295 # 26296 # Pickup additional source for a component from outside of the source root 26297 # or override source for a component. 26298 # 26299 26300 # Check whether --with-add-source-root was given. 26301 if test "${with_add_source_root+set}" = set; then : 26302 withval=$with_add_source_root; 26303 fi 26304 26305 26306 26307 # Check whether --with-override-source-root was given. 26308 if test "${with_override_source_root+set}" = set; then : 26309 withval=$with_override_source_root; 26310 fi 26311 26312 26313 26314 # Check whether --with-adds-and-overrides was given. 26315 if test "${with_adds_and_overrides+set}" = set; then : 26316 withval=$with_adds_and_overrides; 26317 fi 26318 26319 26320 if test "x$with_adds_and_overrides" != x; then 26321 with_add_source_root="$with_adds_and_overrides/adds" 26322 with_override_source_root="$with_adds_and_overrides/overrides" 26323 fi 26324 26325 if test "x$with_add_source_root" != x; then 26326 if ! test -d $with_add_source_root; then 26327 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26328 fi 26329 CURDIR="$PWD" 26330 cd "$with_add_source_root" 26331 ADD_SRC_ROOT="`pwd`" 26332 cd "$CURDIR" 26333 # Verify that the addon source root does not have any root makefiles. 26334 # If it does, then it is usually an error, prevent this. 26335 if test -f $with_add_source_root/langtools/make/Makefile; then 26336 as_fn_error $? "Your add source root seems to contain a full langtools repo! An add source root should only contain additional sources." "$LINENO" 5 26337 fi 26338 if test -f $with_add_source_root/corba/make/Makefile; then 26339 as_fn_error $? "Your add source root seems to contain a full corba repo! An add source root should only contain additional sources." "$LINENO" 5 26340 fi 26341 if test -f $with_add_source_root/jaxp/make/Makefile; then 26342 as_fn_error $? "Your add source root seems to contain a full jaxp repo! An add source root should only contain additional sources." "$LINENO" 5 26343 fi 26344 if test -f $with_add_source_root/jaxws/make/Makefile; then 26345 as_fn_error $? "Your add source root seems to contain a full jaxws repo! An add source root should only contain additional sources." "$LINENO" 5 26346 fi 26347 if test -f $with_add_source_root/hotspot/make/Makefile; then 26348 as_fn_error $? "Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources." "$LINENO" 5 26349 fi 26350 if test -f $with_add_source_root/nashorn/make/Makefile; then 26351 as_fn_error $? "Your add source root seems to contain a full nashorn repo! An add source root should only contain additional sources." "$LINENO" 5 26352 fi 26353 if test -f $with_add_source_root/jdk/make/Makefile; then 26354 as_fn_error $? "Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources." "$LINENO" 5 26355 fi 26356 fi 26357 26358 26359 if test "x$with_override_source_root" != x; then 26360 if ! test -d $with_override_source_root; then 26361 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26362 fi 26363 CURDIR="$PWD" 26364 cd "$with_override_source_root" 26365 OVERRIDE_SRC_ROOT="`pwd`" 26366 cd "$CURDIR" 26367 if test -f $with_override_source_root/langtools/make/Makefile; then 26368 as_fn_error $? "Your override source root seems to contain a full langtools repo! An override source root should only contain sources that override." "$LINENO" 5 26369 fi 26370 if test -f $with_override_source_root/corba/make/Makefile; then 26371 as_fn_error $? "Your override source root seems to contain a full corba repo! An override source root should only contain sources that override." "$LINENO" 5 26372 fi 26373 if test -f $with_override_source_root/jaxp/make/Makefile; then 26374 as_fn_error $? "Your override source root seems to contain a full jaxp repo! An override source root should only contain sources that override." "$LINENO" 5 26375 fi 26376 if test -f $with_override_source_root/jaxws/make/Makefile; then 26377 as_fn_error $? "Your override source root seems to contain a full jaxws repo! An override source root should only contain sources that override." "$LINENO" 5 26378 fi 26379 if test -f $with_override_source_root/hotspot/make/Makefile; then 26380 as_fn_error $? "Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override." "$LINENO" 5 26381 fi 26382 if test -f $with_override_source_root/nashorn/make/Makefile; then 26383 as_fn_error $? "Your override source root seems to contain a full nashorn repo! An override source root should only contain sources that override." "$LINENO" 5 26384 fi 26385 if test -f $with_override_source_root/jdk/make/Makefile; then 26386 as_fn_error $? "Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override." "$LINENO" 5 26387 fi 26388 fi 26389 26390 26391 ############################################################################### 26392 # 26393 # Override a repo completely, this is used for example when you have 3 small 26394 # development sandboxes of the langtools sources and want to avoid having 3 full 26395 # OpenJDK sources checked out on disk. 26396 # 26397 # Assuming that the 3 langtools sandboxes are located here: 26398 # /home/fredrik/sandbox1/langtools 26399 # /home/fredrik/sandbox2/langtools 26400 # /home/fredrik/sandbox3/langtools 26401 # 26402 # From the source root you create build subdirs manually: 26403 # mkdir -p build1 build2 build3 26404 # in each build directory run: 26405 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26406 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26407 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26408 # 26409 26410 26411 # Check whether --with-override-langtools was given. 26412 if test "${with_override_langtools+set}" = set; then : 26413 withval=$with_override_langtools; 26414 fi 26415 26416 26417 26418 # Check whether --with-override-corba was given. 26419 if test "${with_override_corba+set}" = set; then : 26420 withval=$with_override_corba; 26421 fi 26422 26423 26424 26425 # Check whether --with-override-jaxp was given. 26426 if test "${with_override_jaxp+set}" = set; then : 26427 withval=$with_override_jaxp; 26428 fi 26429 26430 26431 26432 # Check whether --with-override-jaxws was given. 26433 if test "${with_override_jaxws+set}" = set; then : 26434 withval=$with_override_jaxws; 26435 fi 26436 26437 26438 26439 # Check whether --with-override-hotspot was given. 26440 if test "${with_override_hotspot+set}" = set; then : 26441 withval=$with_override_hotspot; 26442 fi 26443 26444 26445 26446 # Check whether --with-override-nashorn was given. 26447 if test "${with_override_nashorn+set}" = set; then : 26448 withval=$with_override_nashorn; 26449 fi 26450 26451 26452 26453 # Check whether --with-override-jdk was given. 26454 if test "${with_override_jdk+set}" = set; then : 26455 withval=$with_override_jdk; 26456 fi 26457 26458 26459 if test "x$with_override_langtools" != x; then 26460 CURDIR="$PWD" 26461 cd "$with_override_langtools" 26462 LANGTOOLS_TOPDIR="`pwd`" 26463 cd "$CURDIR" 26464 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26465 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26466 fi 26467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26468 $as_echo_n "checking if langtools should be overridden... " >&6; } 26469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26470 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26471 fi 26472 if test "x$with_override_corba" != x; then 26473 CURDIR="$PWD" 26474 cd "$with_override_corba" 26475 CORBA_TOPDIR="`pwd`" 26476 cd "$CURDIR" 26477 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26478 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26479 fi 26480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26481 $as_echo_n "checking if corba should be overridden... " >&6; } 26482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26483 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26484 fi 26485 if test "x$with_override_jaxp" != x; then 26486 CURDIR="$PWD" 26487 cd "$with_override_jaxp" 26488 JAXP_TOPDIR="`pwd`" 26489 cd "$CURDIR" 26490 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26491 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26492 fi 26493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26494 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26496 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26497 fi 26498 if test "x$with_override_jaxws" != x; then 26499 CURDIR="$PWD" 26500 cd "$with_override_jaxws" 26501 JAXWS_TOPDIR="`pwd`" 26502 cd "$CURDIR" 26503 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26504 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26505 fi 26506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26507 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26509 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26510 fi 26511 if test "x$with_override_hotspot" != x; then 26512 CURDIR="$PWD" 26513 cd "$with_override_hotspot" 26514 HOTSPOT_TOPDIR="`pwd`" 26515 cd "$CURDIR" 26516 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26517 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26518 fi 26519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26520 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26522 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26523 fi 26524 if test "x$with_override_nashorn" != x; then 26525 CURDIR="$PWD" 26526 cd "$with_override_nashorn" 26527 NASHORN_TOPDIR="`pwd`" 26528 cd "$CURDIR" 26529 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26530 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26531 fi 26532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26533 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26535 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26536 fi 26537 if test "x$with_override_jdk" != x; then 26538 CURDIR="$PWD" 26539 cd "$with_override_jdk" 26540 JDK_TOPDIR="`pwd`" 26541 cd "$CURDIR" 26542 if ! test -f $JDK_TOPDIR/make/Makefile; then 26543 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26544 fi 26545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26546 $as_echo_n "checking if JDK should be overridden... " >&6; } 26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26548 $as_echo "yes with $JDK_TOPDIR" >&6; } 26549 fi 26550 26551 26552 BUILD_OUTPUT="$OUTPUT_ROOT" 26553 26554 26555 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26556 BUILD_HOTSPOT=true 26557 26558 26559 26560 # Check whether --with-import-hotspot was given. 26561 if test "${with_import_hotspot+set}" = set; then : 26562 withval=$with_import_hotspot; 26563 fi 26564 26565 if test "x$with_import_hotspot" != x; then 26566 CURDIR="$PWD" 26567 cd "$with_import_hotspot" 26568 HOTSPOT_DIST="`pwd`" 26569 cd "$CURDIR" 26570 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26571 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26572 fi 26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26574 $as_echo_n "checking if hotspot should be imported... " >&6; } 26575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26576 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26577 BUILD_HOTSPOT=false 26578 fi 26579 26580 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26581 26582 26583 ############################################################################### 26584 # 26585 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26586 # native code. 26587 # 26588 ############################################################################### 26589 26590 # First determine the toolchain type (compiler family) 26591 26592 26593 # Check whether --with-toolchain-type was given. 26594 if test "${with_toolchain_type+set}" = set; then : 26595 withval=$with_toolchain_type; 26596 fi 26597 26598 26599 # Use indirect variable referencing 26600 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26601 VALID_TOOLCHAINS=${!toolchain_var_name} 26602 26603 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26604 if test -n "$XCODEBUILD"; then 26605 # On Mac OS X, default toolchain to clang after Xcode 5 26606 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 26607 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26608 if test $? -ne 0; then 26609 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26610 fi 26611 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26612 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26613 $CUT -f 1 -d .` 26614 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26615 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26616 if test $XCODE_MAJOR_VERSION -ge 5; then 26617 DEFAULT_TOOLCHAIN="clang" 26618 else 26619 DEFAULT_TOOLCHAIN="gcc" 26620 fi 26621 else 26622 # If Xcode is not installed, but the command line tools are 26623 # then we can't run xcodebuild. On these systems we should 26624 # default to clang 26625 DEFAULT_TOOLCHAIN="clang" 26626 fi 26627 else 26628 # First toolchain type in the list is the default 26629 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26630 fi 26631 26632 if test "x$with_toolchain_type" = xlist; then 26633 # List all toolchains 26634 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26635 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26636 for toolchain in $VALID_TOOLCHAINS; do 26637 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26638 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26639 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26640 done 26641 26642 exit 0 26643 elif test "x$with_toolchain_type" != x; then 26644 # User override; check that it is valid 26645 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26646 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26647 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26648 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26649 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26650 as_fn_error $? "Cannot continue." "$LINENO" 5 26651 fi 26652 TOOLCHAIN_TYPE=$with_toolchain_type 26653 else 26654 # No flag given, use default 26655 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26656 fi 26657 26658 26659 TOOLCHAIN_CC_BINARY_clang="clang" 26660 TOOLCHAIN_CC_BINARY_gcc="gcc" 26661 TOOLCHAIN_CC_BINARY_microsoft="cl" 26662 TOOLCHAIN_CC_BINARY_solstudio="cc" 26663 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26664 26665 TOOLCHAIN_CXX_BINARY_clang="clang++" 26666 TOOLCHAIN_CXX_BINARY_gcc="g++" 26667 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26668 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26669 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26670 26671 # Use indirect variable referencing 26672 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26673 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26674 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26675 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26676 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26677 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26678 26679 26680 # Define filename patterns 26681 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26682 LIBRARY_PREFIX= 26683 SHARED_LIBRARY_SUFFIX='.dll' 26684 STATIC_LIBRARY_SUFFIX='.lib' 26685 SHARED_LIBRARY='$1.dll' 26686 STATIC_LIBRARY='$1.lib' 26687 OBJ_SUFFIX='.obj' 26688 EXE_SUFFIX='.exe' 26689 else 26690 LIBRARY_PREFIX=lib 26691 SHARED_LIBRARY_SUFFIX='.so' 26692 STATIC_LIBRARY_SUFFIX='.a' 26693 SHARED_LIBRARY='lib$1.so' 26694 STATIC_LIBRARY='lib$1.a' 26695 OBJ_SUFFIX='.o' 26696 EXE_SUFFIX='' 26697 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26698 SHARED_LIBRARY='lib$1.dylib' 26699 SHARED_LIBRARY_SUFFIX='.dylib' 26700 fi 26701 fi 26702 26703 26704 26705 26706 26707 26708 26709 26710 26711 26712 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26713 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26714 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26715 else 26716 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26717 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26718 fi 26719 26720 26721 # Then detect the actual binaries needed 26722 26723 # FIXME: Is this needed? 26724 ac_ext=cpp 26725 ac_cpp='$CXXCPP $CPPFLAGS' 26726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26729 26730 26731 # Store the CFLAGS etc passed to the configure script. 26732 ORG_CFLAGS="$CFLAGS" 26733 ORG_CXXFLAGS="$CXXFLAGS" 26734 26735 # On Windows, we need to detect the visual studio installation first. 26736 # This will change the PATH, but we need to keep that new PATH even 26737 # after toolchain detection is done, since the compiler (on x86) uses 26738 # it for DLL resolution in runtime. 26739 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26740 26741 # Store path to cygwin link.exe to help excluding it when searching for 26742 # VS linker. This must be done before changing the PATH when looking for VS. 26743 # Extract the first word of "link", so it can be a program name with args. 26744 set dummy link; ac_word=$2 26745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26746 $as_echo_n "checking for $ac_word... " >&6; } 26747 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26748 $as_echo_n "(cached) " >&6 26749 else 26750 case $CYGWIN_LINK in 26751 [\\/]* | ?:[\\/]*) 26752 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26753 ;; 26754 *) 26755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26756 for as_dir in $PATH 26757 do 26758 IFS=$as_save_IFS 26759 test -z "$as_dir" && as_dir=. 26760 for ac_exec_ext in '' $ac_executable_extensions; do 26761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26762 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26764 break 2 26765 fi 26766 done 26767 done 26768 IFS=$as_save_IFS 26769 26770 ;; 26771 esac 26772 fi 26773 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26774 if test -n "$CYGWIN_LINK"; then 26775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26776 $as_echo "$CYGWIN_LINK" >&6; } 26777 else 26778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26779 $as_echo "no" >&6; } 26780 fi 26781 26782 26783 if test "x$CYGWIN_LINK" != x; then 26784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26785 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26786 "$CYGWIN_LINK" --version > /dev/null 26787 if test $? -eq 0 ; then 26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26789 $as_echo "yes" >&6; } 26790 else 26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26792 $as_echo "no" >&6; } 26793 # This might be the VS linker. Don't exclude it later on. 26794 CYGWIN_LINK="" 26795 fi 26796 fi 26797 26798 # First-hand choice is to locate and run the vsvars bat file. 26799 26800 26801 # Check whether --with-toolchain-version was given. 26802 if test "${with_toolchain_version+set}" = set; then : 26803 withval=$with_toolchain_version; 26804 fi 26805 26806 26807 if test "x$with_toolchain_version" = xlist; then 26808 # List all toolchains 26809 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 26810 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 26811 for version in $VALID_VS_VERSIONS; do 26812 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 26813 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 26814 done 26815 26816 exit 0 26817 elif test "x$with_toolchain_version" != x; then 26818 # User override; check that it is valid 26819 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 26820 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 26821 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 26822 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 26823 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 26824 as_fn_error $? "Cannot continue." "$LINENO" 5 26825 fi 26826 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 26827 else 26828 # No flag given, use default 26829 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 26830 fi 26831 26832 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 26833 26834 VS_VERSION="$VS_VERSION" 26835 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 26836 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 26837 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 26838 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 26839 26840 # When using --with-tools-dir, assume it points to the correct and default 26841 # version of Visual Studio or that --with-toolchain-version was also set. 26842 if test "x$with_tools_dir" != x; then 26843 26844 if test "x$VS_ENV_CMD" = x; then 26845 VS_VERSION="${VS_VERSION}" 26846 VS_BASE="$with_tools_dir/../.." 26847 METHOD="--with-tools-dir" 26848 26849 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26850 VCVARSFILE="vc/bin/vcvars32.bat" 26851 else 26852 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26853 fi 26854 26855 26856 windows_path="$VS_BASE" 26857 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26858 unix_path=`$CYGPATH -u "$windows_path"` 26859 VS_BASE="$unix_path" 26860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26861 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26862 VS_BASE="$unix_path" 26863 fi 26864 26865 if test -d "$VS_BASE"; then 26866 if test -f "$VS_BASE/$VCVARSFILE"; then 26867 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26868 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26869 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26870 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26871 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26872 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26873 else 26874 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26875 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26876 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26877 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26878 fi 26879 fi 26880 fi 26881 26882 26883 if test "x$VS_ENV_CMD" = x; then 26884 VS_VERSION="${VS_VERSION}" 26885 VS_BASE="$with_tools_dir/../../.." 26886 METHOD="--with-tools-dir" 26887 26888 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26889 VCVARSFILE="vc/bin/vcvars32.bat" 26890 else 26891 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26892 fi 26893 26894 26895 windows_path="$VS_BASE" 26896 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26897 unix_path=`$CYGPATH -u "$windows_path"` 26898 VS_BASE="$unix_path" 26899 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26900 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26901 VS_BASE="$unix_path" 26902 fi 26903 26904 if test -d "$VS_BASE"; then 26905 if test -f "$VS_BASE/$VCVARSFILE"; then 26906 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26907 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26908 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26909 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26910 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26911 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26912 else 26913 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26914 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26915 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26916 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26917 fi 26918 fi 26919 fi 26920 26921 if test "x$VS_ENV_CMD" = x; then 26922 # Having specified an argument which is incorrect will produce an instant failure; 26923 # we should not go on looking 26924 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 26925 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 26926 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 26927 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 26928 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 26929 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 26930 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26931 fi 26932 fi 26933 26934 VS_ENV_CMD="" 26935 VS_ENV_ARGS="" 26936 26937 if test "x$VS_COMNTOOLS" != x; then 26938 26939 if test "x$VS_ENV_CMD" = x; then 26940 VS_VERSION="${VS_VERSION}" 26941 VS_BASE="$VS_COMNTOOLS/../.." 26942 METHOD="$VS_COMNTOOLS_VAR variable" 26943 26944 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26945 VCVARSFILE="vc/bin/vcvars32.bat" 26946 else 26947 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26948 fi 26949 26950 26951 windows_path="$VS_BASE" 26952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26953 unix_path=`$CYGPATH -u "$windows_path"` 26954 VS_BASE="$unix_path" 26955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26956 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26957 VS_BASE="$unix_path" 26958 fi 26959 26960 if test -d "$VS_BASE"; then 26961 if test -f "$VS_BASE/$VCVARSFILE"; then 26962 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26963 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26964 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26965 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26966 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26967 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26968 else 26969 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26970 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26971 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26972 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26973 fi 26974 fi 26975 fi 26976 26977 fi 26978 if test "x$PROGRAMFILES" != x; then 26979 26980 if test "x$VS_ENV_CMD" = x; then 26981 VS_VERSION="${VS_VERSION}" 26982 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 26983 METHOD="well-known name" 26984 26985 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26986 VCVARSFILE="vc/bin/vcvars32.bat" 26987 else 26988 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26989 fi 26990 26991 26992 windows_path="$VS_BASE" 26993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26994 unix_path=`$CYGPATH -u "$windows_path"` 26995 VS_BASE="$unix_path" 26996 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26997 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26998 VS_BASE="$unix_path" 26999 fi 27000 27001 if test -d "$VS_BASE"; then 27002 if test -f "$VS_BASE/$VCVARSFILE"; then 27003 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27004 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27005 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27006 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27007 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27008 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27009 else 27010 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27011 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27012 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27013 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27014 fi 27015 fi 27016 fi 27017 27018 fi 27019 # Work around the insanely named ProgramFiles(x86) env variable 27020 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 27021 if test "x$PROGRAMFILES_X86" != x; then 27022 27023 if test "x$VS_ENV_CMD" = x; then 27024 VS_VERSION="${VS_VERSION}" 27025 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 27026 METHOD="well-known name" 27027 27028 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27029 VCVARSFILE="vc/bin/vcvars32.bat" 27030 else 27031 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27032 fi 27033 27034 27035 windows_path="$VS_BASE" 27036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27037 unix_path=`$CYGPATH -u "$windows_path"` 27038 VS_BASE="$unix_path" 27039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27041 VS_BASE="$unix_path" 27042 fi 27043 27044 if test -d "$VS_BASE"; then 27045 if test -f "$VS_BASE/$VCVARSFILE"; then 27046 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27047 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27048 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27049 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27050 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27051 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27052 else 27053 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27054 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27055 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27056 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27057 fi 27058 fi 27059 fi 27060 27061 fi 27062 27063 if test "x$VS_ENV_CMD" = x; then 27064 VS_VERSION="${VS_VERSION}" 27065 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 27066 METHOD="well-known name" 27067 27068 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27069 VCVARSFILE="vc/bin/vcvars32.bat" 27070 else 27071 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27072 fi 27073 27074 27075 windows_path="$VS_BASE" 27076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27077 unix_path=`$CYGPATH -u "$windows_path"` 27078 VS_BASE="$unix_path" 27079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27080 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27081 VS_BASE="$unix_path" 27082 fi 27083 27084 if test -d "$VS_BASE"; then 27085 if test -f "$VS_BASE/$VCVARSFILE"; then 27086 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27087 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27088 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27089 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27090 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27091 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27092 else 27093 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27094 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27095 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27096 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27097 fi 27098 fi 27099 fi 27100 27101 27102 if test "x$VS_ENV_CMD" = x; then 27103 VS_VERSION="${VS_VERSION}" 27104 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 27105 METHOD="well-known name" 27106 27107 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27108 VCVARSFILE="vc/bin/vcvars32.bat" 27109 else 27110 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27111 fi 27112 27113 27114 windows_path="$VS_BASE" 27115 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27116 unix_path=`$CYGPATH -u "$windows_path"` 27117 VS_BASE="$unix_path" 27118 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27119 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27120 VS_BASE="$unix_path" 27121 fi 27122 27123 if test -d "$VS_BASE"; then 27124 if test -f "$VS_BASE/$VCVARSFILE"; then 27125 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27126 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27127 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27128 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27129 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27130 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27131 else 27132 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27133 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27134 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27135 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27136 fi 27137 fi 27138 fi 27139 27140 27141 if test "x$SDK_INSTALL_DIR" != x; then 27142 if test "x$ProgramW6432" != x; then 27143 27144 if test "x$VS_ENV_CMD" = x; then 27145 VS_VERSION="${VS_VERSION}" 27146 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 27147 METHOD="well-known name" 27148 27149 windows_path="$WIN_SDK_BASE" 27150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27151 unix_path=`$CYGPATH -u "$windows_path"` 27152 WIN_SDK_BASE="$unix_path" 27153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27154 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27155 WIN_SDK_BASE="$unix_path" 27156 fi 27157 27158 if test -d "$WIN_SDK_BASE"; then 27159 # There have been cases of partial or broken SDK installations. A missing 27160 # lib dir is not going to work. 27161 if test ! -d "$WIN_SDK_BASE/lib"; then 27162 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27163 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27164 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27165 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27166 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27167 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27168 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27169 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27170 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27171 VS_ENV_ARGS="/x86" 27172 else 27173 VS_ENV_ARGS="/x64" 27174 fi 27175 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27176 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27177 # TODO: improve detection for other versions of SDK 27178 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27179 else 27180 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27181 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27182 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27183 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27184 fi 27185 fi 27186 fi 27187 27188 fi 27189 if test "x$PROGRAMW6432" != x; then 27190 27191 if test "x$VS_ENV_CMD" = x; then 27192 VS_VERSION="${VS_VERSION}" 27193 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 27194 METHOD="well-known name" 27195 27196 windows_path="$WIN_SDK_BASE" 27197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27198 unix_path=`$CYGPATH -u "$windows_path"` 27199 WIN_SDK_BASE="$unix_path" 27200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27201 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27202 WIN_SDK_BASE="$unix_path" 27203 fi 27204 27205 if test -d "$WIN_SDK_BASE"; then 27206 # There have been cases of partial or broken SDK installations. A missing 27207 # lib dir is not going to work. 27208 if test ! -d "$WIN_SDK_BASE/lib"; then 27209 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27210 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27211 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27212 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27213 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27214 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27215 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27216 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27217 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27218 VS_ENV_ARGS="/x86" 27219 else 27220 VS_ENV_ARGS="/x64" 27221 fi 27222 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27223 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27224 # TODO: improve detection for other versions of SDK 27225 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27226 else 27227 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27228 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27229 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27230 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27231 fi 27232 fi 27233 fi 27234 27235 fi 27236 if test "x$PROGRAMFILES" != x; then 27237 27238 if test "x$VS_ENV_CMD" = x; then 27239 VS_VERSION="${VS_VERSION}" 27240 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 27241 METHOD="well-known name" 27242 27243 windows_path="$WIN_SDK_BASE" 27244 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27245 unix_path=`$CYGPATH -u "$windows_path"` 27246 WIN_SDK_BASE="$unix_path" 27247 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27248 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27249 WIN_SDK_BASE="$unix_path" 27250 fi 27251 27252 if test -d "$WIN_SDK_BASE"; then 27253 # There have been cases of partial or broken SDK installations. A missing 27254 # lib dir is not going to work. 27255 if test ! -d "$WIN_SDK_BASE/lib"; then 27256 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27257 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27258 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27259 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27260 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27261 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27262 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27263 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27264 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27265 VS_ENV_ARGS="/x86" 27266 else 27267 VS_ENV_ARGS="/x64" 27268 fi 27269 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27270 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27271 # TODO: improve detection for other versions of SDK 27272 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27273 else 27274 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27275 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27276 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27277 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27278 fi 27279 fi 27280 fi 27281 27282 fi 27283 27284 if test "x$VS_ENV_CMD" = x; then 27285 VS_VERSION="${VS_VERSION}" 27286 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 27287 METHOD="well-known name" 27288 27289 windows_path="$WIN_SDK_BASE" 27290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27291 unix_path=`$CYGPATH -u "$windows_path"` 27292 WIN_SDK_BASE="$unix_path" 27293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27294 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27295 WIN_SDK_BASE="$unix_path" 27296 fi 27297 27298 if test -d "$WIN_SDK_BASE"; then 27299 # There have been cases of partial or broken SDK installations. A missing 27300 # lib dir is not going to work. 27301 if test ! -d "$WIN_SDK_BASE/lib"; then 27302 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27303 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27304 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27305 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27306 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27307 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27308 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27309 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27310 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27311 VS_ENV_ARGS="/x86" 27312 else 27313 VS_ENV_ARGS="/x64" 27314 fi 27315 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27316 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27317 # TODO: improve detection for other versions of SDK 27318 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27319 else 27320 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27321 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27322 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27323 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27324 fi 27325 fi 27326 fi 27327 27328 27329 if test "x$VS_ENV_CMD" = x; then 27330 VS_VERSION="${VS_VERSION}" 27331 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 27332 METHOD="well-known name" 27333 27334 windows_path="$WIN_SDK_BASE" 27335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27336 unix_path=`$CYGPATH -u "$windows_path"` 27337 WIN_SDK_BASE="$unix_path" 27338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27339 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27340 WIN_SDK_BASE="$unix_path" 27341 fi 27342 27343 if test -d "$WIN_SDK_BASE"; then 27344 # There have been cases of partial or broken SDK installations. A missing 27345 # lib dir is not going to work. 27346 if test ! -d "$WIN_SDK_BASE/lib"; then 27347 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27348 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27349 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27350 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27351 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27352 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27353 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27354 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27355 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27356 VS_ENV_ARGS="/x86" 27357 else 27358 VS_ENV_ARGS="/x64" 27359 fi 27360 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27361 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27362 # TODO: improve detection for other versions of SDK 27363 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27364 else 27365 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27366 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27367 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27368 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27369 fi 27370 fi 27371 fi 27372 27373 fi 27374 27375 if test "x$VS_ENV_CMD" != x; then 27376 TOOLCHAIN_VERSION=$VS_VERSION 27377 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 27378 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 27379 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 27380 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 27381 # The rest of the variables are already evaled while probing 27382 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 27383 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 27384 break 27385 fi 27386 done 27387 27388 27389 if test "x$VS_ENV_CMD" != x; then 27390 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 27391 27392 # Only process if variable expands to non-empty 27393 27394 if test "x$VS_ENV_CMD" != x; then 27395 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27396 27397 # First separate the path from the arguments. This will split at the first 27398 # space. 27399 complete="$VS_ENV_CMD" 27400 path="${complete%% *}" 27401 tmp="$complete EOL" 27402 arguments="${tmp#* }" 27403 27404 # Input might be given as Windows format, start by converting to 27405 # unix format. 27406 new_path=`$CYGPATH -u "$path"` 27407 27408 # Now try to locate executable using which 27409 new_path=`$WHICH "$new_path" 2> /dev/null` 27410 # bat and cmd files are not always considered executable in cygwin causing which 27411 # to not find them 27412 if test "x$new_path" = x \ 27413 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27414 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27415 new_path=`$CYGPATH -u "$path"` 27416 fi 27417 if test "x$new_path" = x; then 27418 # Oops. Which didn't find the executable. 27419 # The splitting of arguments from the executable at a space might have been incorrect, 27420 # since paths with space are more likely in Windows. Give it another try with the whole 27421 # argument. 27422 path="$complete" 27423 arguments="EOL" 27424 new_path=`$CYGPATH -u "$path"` 27425 new_path=`$WHICH "$new_path" 2> /dev/null` 27426 # bat and cmd files are not always considered executable in cygwin causing which 27427 # to not find them 27428 if test "x$new_path" = x \ 27429 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27430 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27431 new_path=`$CYGPATH -u "$path"` 27432 fi 27433 if test "x$new_path" = x; then 27434 # It's still not found. Now this is an unrecoverable error. 27435 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27436 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27437 has_space=`$ECHO "$complete" | $GREP " "` 27438 if test "x$has_space" != x; then 27439 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27440 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27441 fi 27442 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27443 fi 27444 fi 27445 27446 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27447 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27448 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27449 # "foo.exe" is OK but "foo" is an error. 27450 # 27451 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27452 # It is also a way to make sure we got the proper file name for the real test later on. 27453 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27454 if test "x$test_shortpath" = x; then 27455 # Short path failed, file does not exist as specified. 27456 # Try adding .exe or .cmd 27457 if test -f "${new_path}.exe"; then 27458 input_to_shortpath="${new_path}.exe" 27459 elif test -f "${new_path}.cmd"; then 27460 input_to_shortpath="${new_path}.cmd" 27461 else 27462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27463 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27464 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27465 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27466 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27467 fi 27468 else 27469 input_to_shortpath="$new_path" 27470 fi 27471 27472 # Call helper function which possibly converts this using DOS-style short mode. 27473 # If so, the updated path is stored in $new_path. 27474 new_path="$input_to_shortpath" 27475 27476 input_path="$input_to_shortpath" 27477 # Check if we need to convert this using DOS-style short mode. If the path 27478 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27479 # take no chances and rewrite it. 27480 # Note: m4 eats our [], so we need to use [ and ] instead. 27481 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27482 if test "x$has_forbidden_chars" != x; then 27483 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27484 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27485 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27486 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27487 # Going to short mode and back again did indeed matter. Since short mode is 27488 # case insensitive, let's make it lowercase to improve readability. 27489 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27490 # Now convert it back to Unix-stile (cygpath) 27491 input_path=`$CYGPATH -u "$shortmode_path"` 27492 new_path="$input_path" 27493 fi 27494 fi 27495 27496 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27497 if test "x$test_cygdrive_prefix" = x; then 27498 # As a simple fix, exclude /usr/bin since it's not a real path. 27499 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27500 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27501 # a path prefixed by /cygdrive for fixpath to work. 27502 new_path="$CYGWIN_ROOT_PATH$input_path" 27503 fi 27504 fi 27505 27506 # remove trailing .exe if any 27507 new_path="${new_path/%.exe/}" 27508 27509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27510 27511 # First separate the path from the arguments. This will split at the first 27512 # space. 27513 complete="$VS_ENV_CMD" 27514 path="${complete%% *}" 27515 tmp="$complete EOL" 27516 arguments="${tmp#* }" 27517 27518 # Input might be given as Windows format, start by converting to 27519 # unix format. 27520 new_path="$path" 27521 27522 windows_path="$new_path" 27523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27524 unix_path=`$CYGPATH -u "$windows_path"` 27525 new_path="$unix_path" 27526 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27527 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27528 new_path="$unix_path" 27529 fi 27530 27531 27532 # Now try to locate executable using which 27533 new_path=`$WHICH "$new_path" 2> /dev/null` 27534 27535 if test "x$new_path" = x; then 27536 # Oops. Which didn't find the executable. 27537 # The splitting of arguments from the executable at a space might have been incorrect, 27538 # since paths with space are more likely in Windows. Give it another try with the whole 27539 # argument. 27540 path="$complete" 27541 arguments="EOL" 27542 new_path="$path" 27543 27544 windows_path="$new_path" 27545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27546 unix_path=`$CYGPATH -u "$windows_path"` 27547 new_path="$unix_path" 27548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27549 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27550 new_path="$unix_path" 27551 fi 27552 27553 27554 new_path=`$WHICH "$new_path" 2> /dev/null` 27555 # bat and cmd files are not always considered executable in MSYS causing which 27556 # to not find them 27557 if test "x$new_path" = x \ 27558 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27559 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27560 new_path="$path" 27561 27562 windows_path="$new_path" 27563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27564 unix_path=`$CYGPATH -u "$windows_path"` 27565 new_path="$unix_path" 27566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27567 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27568 new_path="$unix_path" 27569 fi 27570 27571 fi 27572 27573 if test "x$new_path" = x; then 27574 # It's still not found. Now this is an unrecoverable error. 27575 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27576 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27577 has_space=`$ECHO "$complete" | $GREP " "` 27578 if test "x$has_space" != x; then 27579 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27580 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27581 fi 27582 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27583 fi 27584 fi 27585 27586 # Now new_path has a complete unix path to the binary 27587 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27588 # Keep paths in /bin as-is, but remove trailing .exe if any 27589 new_path="${new_path/%.exe/}" 27590 # Do not save /bin paths to all_fixpath_prefixes! 27591 else 27592 # Not in mixed or Windows style, start by that. 27593 new_path=`cmd //c echo $new_path` 27594 27595 input_path="$new_path" 27596 # Check if we need to convert this using DOS-style short mode. If the path 27597 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27598 # take no chances and rewrite it. 27599 # Note: m4 eats our [], so we need to use [ and ] instead. 27600 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27601 if test "x$has_forbidden_chars" != x; then 27602 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27603 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27604 fi 27605 27606 # Output is in $new_path 27607 27608 windows_path="$new_path" 27609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27610 unix_path=`$CYGPATH -u "$windows_path"` 27611 new_path="$unix_path" 27612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27613 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27614 new_path="$unix_path" 27615 fi 27616 27617 # remove trailing .exe if any 27618 new_path="${new_path/%.exe/}" 27619 27620 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27621 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27622 fi 27623 27624 else 27625 # We're on a unix platform. Hooray! :) 27626 # First separate the path from the arguments. This will split at the first 27627 # space. 27628 complete="$VS_ENV_CMD" 27629 path="${complete%% *}" 27630 tmp="$complete EOL" 27631 arguments="${tmp#* }" 27632 27633 # Cannot rely on the command "which" here since it doesn't always work. 27634 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27635 if test -z "$is_absolute_path"; then 27636 # Path to executable is not absolute. Find it. 27637 IFS_save="$IFS" 27638 IFS=: 27639 for p in $PATH; do 27640 if test -f "$p/$path" && test -x "$p/$path"; then 27641 new_path="$p/$path" 27642 break 27643 fi 27644 done 27645 IFS="$IFS_save" 27646 else 27647 # This is an absolute path, we can use it without further modifications. 27648 new_path="$path" 27649 fi 27650 27651 if test "x$new_path" = x; then 27652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27653 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27654 has_space=`$ECHO "$complete" | $GREP " "` 27655 if test "x$has_space" != x; then 27656 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27657 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27658 fi 27659 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27660 fi 27661 fi 27662 27663 # Now join together the path and the arguments once again 27664 if test "x$arguments" != xEOL; then 27665 new_complete="$new_path ${arguments% *}" 27666 else 27667 new_complete="$new_path" 27668 fi 27669 27670 if test "x$complete" != "x$new_complete"; then 27671 VS_ENV_CMD="$new_complete" 27672 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27673 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27674 fi 27675 fi 27676 27677 27678 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27679 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27680 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27681 27682 # We need to create a couple of temporary files. 27683 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 27684 $MKDIR -p $VS_ENV_TMP_DIR 27685 27686 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 27687 # Instead create a shell script which will set the relevant variables when run. 27688 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 27689 27690 unix_path="$WINPATH_VS_ENV_CMD" 27691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27692 windows_path=`$CYGPATH -m "$unix_path"` 27693 WINPATH_VS_ENV_CMD="$windows_path" 27694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27695 windows_path=`cmd //c echo $unix_path` 27696 WINPATH_VS_ENV_CMD="$windows_path" 27697 fi 27698 27699 WINPATH_BASH="$BASH" 27700 27701 unix_path="$WINPATH_BASH" 27702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27703 windows_path=`$CYGPATH -m "$unix_path"` 27704 WINPATH_BASH="$windows_path" 27705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27706 windows_path=`cmd //c echo $unix_path` 27707 WINPATH_BASH="$windows_path" 27708 fi 27709 27710 27711 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 27712 # script (executable by bash) that will setup the important variables. 27713 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 27714 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 27715 # This will end up something like: 27716 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 27717 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 27718 # These will end up something like: 27719 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 27720 # The trailing space for everyone except PATH is no typo, but is needed due 27721 # to trailing \ in the Windows paths. These will be stripped later. 27722 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27723 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27724 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27725 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27726 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27727 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27728 27729 # Now execute the newly created bat file. 27730 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 27731 # Change directory so we don't need to mess with Windows paths in redirects. 27732 cd $VS_ENV_TMP_DIR 27733 cmd /c extract-vs-env.bat | $CAT 27734 cd $CURDIR 27735 27736 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 27737 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27738 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27739 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27740 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27741 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27742 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27743 as_fn_error $? "Cannot continue" "$LINENO" 5 27744 fi 27745 27746 # Now set all paths and other env variables. This will allow the rest of 27747 # the configure script to find and run the compiler in the proper way. 27748 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27749 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27750 . $VS_ENV_TMP_DIR/set-vs-env.sh 27751 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 27752 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 27753 else 27754 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27755 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27756 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27757 fi 27758 27759 # At this point, we should have correct variables in the environment, or we can't continue. 27760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27761 $as_echo_n "checking for Visual Studio variables... " >&6; } 27762 27763 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27764 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 27765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27766 $as_echo "present but broken" >&6; } 27767 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27768 else 27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27770 $as_echo "ok" >&6; } 27771 # Remove any trailing "\" ";" and " " from the variables. 27772 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 27773 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 27774 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 27775 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 27776 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 27777 # Remove any paths containing # (typically F#) as that messes up make. This 27778 # is needed if visual studio was installed with F# support. 27779 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 27780 27781 27782 27783 27784 27785 # Convert VS_INCLUDE into SYSROOT_CFLAGS 27786 OLDIFS="$IFS" 27787 IFS=";" 27788 for i in $VS_INCLUDE; do 27789 ipath=$i 27790 # Only process non-empty elements 27791 if test "x$ipath" != x; then 27792 IFS="$OLDIFS" 27793 # Check that directory exists before calling fixup_path 27794 testpath=$ipath 27795 27796 windows_path="$testpath" 27797 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27798 unix_path=`$CYGPATH -u "$windows_path"` 27799 testpath="$unix_path" 27800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27801 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27802 testpath="$unix_path" 27803 fi 27804 27805 if test -d "$testpath"; then 27806 27807 # Only process if variable expands to non-empty 27808 27809 if test "x$ipath" != x; then 27810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27811 27812 # Input might be given as Windows format, start by converting to 27813 # unix format. 27814 path="$ipath" 27815 new_path=`$CYGPATH -u "$path"` 27816 27817 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27818 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27819 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27820 # "foo.exe" is OK but "foo" is an error. 27821 # 27822 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27823 # It is also a way to make sure we got the proper file name for the real test later on. 27824 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27825 if test "x$test_shortpath" = x; then 27826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 27827 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 27828 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 27829 fi 27830 27831 # Call helper function which possibly converts this using DOS-style short mode. 27832 # If so, the updated path is stored in $new_path. 27833 27834 input_path="$new_path" 27835 # Check if we need to convert this using DOS-style short mode. If the path 27836 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27837 # take no chances and rewrite it. 27838 # Note: m4 eats our [], so we need to use [ and ] instead. 27839 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27840 if test "x$has_forbidden_chars" != x; then 27841 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27842 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27843 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27844 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27845 # Going to short mode and back again did indeed matter. Since short mode is 27846 # case insensitive, let's make it lowercase to improve readability. 27847 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27848 # Now convert it back to Unix-stile (cygpath) 27849 input_path=`$CYGPATH -u "$shortmode_path"` 27850 new_path="$input_path" 27851 fi 27852 fi 27853 27854 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27855 if test "x$test_cygdrive_prefix" = x; then 27856 # As a simple fix, exclude /usr/bin since it's not a real path. 27857 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27858 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27859 # a path prefixed by /cygdrive for fixpath to work. 27860 new_path="$CYGWIN_ROOT_PATH$input_path" 27861 fi 27862 fi 27863 27864 27865 if test "x$path" != "x$new_path"; then 27866 ipath="$new_path" 27867 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 27868 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 27869 fi 27870 27871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27872 27873 path="$ipath" 27874 has_colon=`$ECHO $path | $GREP ^.:` 27875 new_path="$path" 27876 if test "x$has_colon" = x; then 27877 # Not in mixed or Windows style, start by that. 27878 new_path=`cmd //c echo $path` 27879 fi 27880 27881 27882 input_path="$new_path" 27883 # Check if we need to convert this using DOS-style short mode. If the path 27884 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27885 # take no chances and rewrite it. 27886 # Note: m4 eats our [], so we need to use [ and ] instead. 27887 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27888 if test "x$has_forbidden_chars" != x; then 27889 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27890 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27891 fi 27892 27893 27894 windows_path="$new_path" 27895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27896 unix_path=`$CYGPATH -u "$windows_path"` 27897 new_path="$unix_path" 27898 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27899 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27900 new_path="$unix_path" 27901 fi 27902 27903 if test "x$path" != "x$new_path"; then 27904 ipath="$new_path" 27905 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 27906 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 27907 fi 27908 27909 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27910 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27911 27912 else 27913 # We're on a unix platform. Hooray! :) 27914 path="$ipath" 27915 has_space=`$ECHO "$path" | $GREP " "` 27916 if test "x$has_space" != x; then 27917 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 27918 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 27919 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27920 fi 27921 27922 # Use eval to expand a potential ~ 27923 eval path="$path" 27924 if test ! -f "$path" && test ! -d "$path"; then 27925 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 27926 fi 27927 27928 ipath="`cd "$path"; $THEPWDCMD -L`" 27929 fi 27930 fi 27931 27932 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 27933 fi 27934 IFS=";" 27935 fi 27936 done 27937 # Convert VS_LIB into SYSROOT_LDFLAGS 27938 for i in $VS_LIB; do 27939 libpath=$i 27940 # Only process non-empty elements 27941 if test "x$libpath" != x; then 27942 IFS="$OLDIFS" 27943 # Check that directory exists before calling fixup_path 27944 testpath=$libpath 27945 27946 windows_path="$testpath" 27947 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27948 unix_path=`$CYGPATH -u "$windows_path"` 27949 testpath="$unix_path" 27950 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27951 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27952 testpath="$unix_path" 27953 fi 27954 27955 if test -d "$testpath"; then 27956 27957 # Only process if variable expands to non-empty 27958 27959 if test "x$libpath" != x; then 27960 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27961 27962 # Input might be given as Windows format, start by converting to 27963 # unix format. 27964 path="$libpath" 27965 new_path=`$CYGPATH -u "$path"` 27966 27967 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27968 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27969 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27970 # "foo.exe" is OK but "foo" is an error. 27971 # 27972 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27973 # It is also a way to make sure we got the proper file name for the real test later on. 27974 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27975 if test "x$test_shortpath" = x; then 27976 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 27977 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 27978 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 27979 fi 27980 27981 # Call helper function which possibly converts this using DOS-style short mode. 27982 # If so, the updated path is stored in $new_path. 27983 27984 input_path="$new_path" 27985 # Check if we need to convert this using DOS-style short mode. If the path 27986 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27987 # take no chances and rewrite it. 27988 # Note: m4 eats our [], so we need to use [ and ] instead. 27989 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27990 if test "x$has_forbidden_chars" != x; then 27991 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27992 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27993 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27994 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27995 # Going to short mode and back again did indeed matter. Since short mode is 27996 # case insensitive, let's make it lowercase to improve readability. 27997 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27998 # Now convert it back to Unix-stile (cygpath) 27999 input_path=`$CYGPATH -u "$shortmode_path"` 28000 new_path="$input_path" 28001 fi 28002 fi 28003 28004 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28005 if test "x$test_cygdrive_prefix" = x; then 28006 # As a simple fix, exclude /usr/bin since it's not a real path. 28007 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28008 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28009 # a path prefixed by /cygdrive for fixpath to work. 28010 new_path="$CYGWIN_ROOT_PATH$input_path" 28011 fi 28012 fi 28013 28014 28015 if test "x$path" != "x$new_path"; then 28016 libpath="$new_path" 28017 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 28018 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 28019 fi 28020 28021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28022 28023 path="$libpath" 28024 has_colon=`$ECHO $path | $GREP ^.:` 28025 new_path="$path" 28026 if test "x$has_colon" = x; then 28027 # Not in mixed or Windows style, start by that. 28028 new_path=`cmd //c echo $path` 28029 fi 28030 28031 28032 input_path="$new_path" 28033 # Check if we need to convert this using DOS-style short mode. If the path 28034 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28035 # take no chances and rewrite it. 28036 # Note: m4 eats our [], so we need to use [ and ] instead. 28037 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28038 if test "x$has_forbidden_chars" != x; then 28039 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28040 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28041 fi 28042 28043 28044 windows_path="$new_path" 28045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28046 unix_path=`$CYGPATH -u "$windows_path"` 28047 new_path="$unix_path" 28048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28049 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28050 new_path="$unix_path" 28051 fi 28052 28053 if test "x$path" != "x$new_path"; then 28054 libpath="$new_path" 28055 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 28056 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 28057 fi 28058 28059 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28060 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28061 28062 else 28063 # We're on a unix platform. Hooray! :) 28064 path="$libpath" 28065 has_space=`$ECHO "$path" | $GREP " "` 28066 if test "x$has_space" != x; then 28067 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 28068 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 28069 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28070 fi 28071 28072 # Use eval to expand a potential ~ 28073 eval path="$path" 28074 if test ! -f "$path" && test ! -d "$path"; then 28075 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 28076 fi 28077 28078 libpath="`cd "$path"; $THEPWDCMD -L`" 28079 fi 28080 fi 28081 28082 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 28083 fi 28084 IFS=";" 28085 fi 28086 done 28087 IFS="$OLDIFS" 28088 fi 28089 else 28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28091 $as_echo "not found" >&6; } 28092 28093 if test "x$VS_ENV_CMD" = x; then 28094 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 28095 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 28096 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 28097 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 28098 else 28099 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 28100 $as_echo "$as_me: Running the extraction script failed." >&6;} 28101 fi 28102 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 28103 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 28104 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 28105 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 28106 as_fn_error $? "Cannot continue" "$LINENO" 5 28107 fi 28108 28109 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 28110 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 28111 PATH="$VS_PATH" 28112 # The microsoft toolchain also requires INCLUDE and LIB to be set. 28113 export INCLUDE="$VS_INCLUDE" 28114 export LIB="$VS_LIB" 28115 fi 28116 28117 # autoconf magic only relies on PATH, so update it if tools dir is specified 28118 OLD_PATH="$PATH" 28119 28120 # For solaris we really need solaris tools, and not the GNU equivalent. 28121 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 28122 # so add that to path before starting to probe. 28123 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 28124 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 28125 PATH="/usr/ccs/bin:$PATH" 28126 fi 28127 28128 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 28129 # override all other locations. 28130 if test "x$TOOLCHAIN_PATH" != x; then 28131 PATH=$TOOLCHAIN_PATH:$PATH 28132 fi 28133 28134 28135 # 28136 # Setup the compilers (CC and CXX) 28137 # 28138 28139 COMPILER_NAME=C 28140 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 28141 28142 if test "x$CC" != x; then 28143 # User has supplied compiler name already, always let that override. 28144 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 28145 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 28146 if test "x`basename $CC`" = "x$CC"; then 28147 # A command without a complete path is provided, search $PATH. 28148 28149 for ac_prog in $CC 28150 do 28151 # Extract the first word of "$ac_prog", so it can be a program name with args. 28152 set dummy $ac_prog; ac_word=$2 28153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28154 $as_echo_n "checking for $ac_word... " >&6; } 28155 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 28156 $as_echo_n "(cached) " >&6 28157 else 28158 case $POTENTIAL_CC in 28159 [\\/]* | ?:[\\/]*) 28160 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 28161 ;; 28162 *) 28163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28164 for as_dir in $PATH 28165 do 28166 IFS=$as_save_IFS 28167 test -z "$as_dir" && as_dir=. 28168 for ac_exec_ext in '' $ac_executable_extensions; do 28169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28170 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 28171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28172 break 2 28173 fi 28174 done 28175 done 28176 IFS=$as_save_IFS 28177 28178 ;; 28179 esac 28180 fi 28181 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 28182 if test -n "$POTENTIAL_CC"; then 28183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 28184 $as_echo "$POTENTIAL_CC" >&6; } 28185 else 28186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28187 $as_echo "no" >&6; } 28188 fi 28189 28190 28191 test -n "$POTENTIAL_CC" && break 28192 done 28193 28194 if test "x$POTENTIAL_CC" != x; then 28195 CC=$POTENTIAL_CC 28196 else 28197 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 28198 fi 28199 else 28200 # Otherwise it might already be a complete path 28201 if test ! -x "$CC"; then 28202 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 28203 fi 28204 fi 28205 else 28206 # No user supplied value. Locate compiler ourselves. 28207 28208 # If we are cross compiling, assume cross compilation tools follows the 28209 # cross compilation standard where they are prefixed with the autoconf 28210 # standard name for the target. For example the binary 28211 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 28212 # If we are not cross compiling, then the default compiler name will be 28213 # used. 28214 28215 CC= 28216 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 28217 # before checking the rest of the PATH. 28218 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 28219 # step, this should not be necessary. 28220 if test -n "$TOOLCHAIN_PATH"; then 28221 PATH_save="$PATH" 28222 PATH="$TOOLCHAIN_PATH" 28223 for ac_prog in $SEARCH_LIST 28224 do 28225 # Extract the first word of "$ac_prog", so it can be a program name with args. 28226 set dummy $ac_prog; ac_word=$2 28227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28228 $as_echo_n "checking for $ac_word... " >&6; } 28229 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 28230 $as_echo_n "(cached) " >&6 28231 else 28232 case $TOOLCHAIN_PATH_CC in 28233 [\\/]* | ?:[\\/]*) 28234 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 28235 ;; 28236 *) 28237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28238 for as_dir in $PATH 28239 do 28240 IFS=$as_save_IFS 28241 test -z "$as_dir" && as_dir=. 28242 for ac_exec_ext in '' $ac_executable_extensions; do 28243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28244 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 28245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28246 break 2 28247 fi 28248 done 28249 done 28250 IFS=$as_save_IFS 28251 28252 ;; 28253 esac 28254 fi 28255 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 28256 if test -n "$TOOLCHAIN_PATH_CC"; then 28257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 28258 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 28259 else 28260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28261 $as_echo "no" >&6; } 28262 fi 28263 28264 28265 test -n "$TOOLCHAIN_PATH_CC" && break 28266 done 28267 28268 CC=$TOOLCHAIN_PATH_CC 28269 PATH="$PATH_save" 28270 fi 28271 28272 # AC_PATH_PROGS can't be run multiple times with the same variable, 28273 # so create a new name for this run. 28274 if test "x$CC" = x; then 28275 for ac_prog in $SEARCH_LIST 28276 do 28277 # Extract the first word of "$ac_prog", so it can be a program name with args. 28278 set dummy $ac_prog; ac_word=$2 28279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28280 $as_echo_n "checking for $ac_word... " >&6; } 28281 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 28282 $as_echo_n "(cached) " >&6 28283 else 28284 case $POTENTIAL_CC in 28285 [\\/]* | ?:[\\/]*) 28286 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 28287 ;; 28288 *) 28289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28290 for as_dir in $PATH 28291 do 28292 IFS=$as_save_IFS 28293 test -z "$as_dir" && as_dir=. 28294 for ac_exec_ext in '' $ac_executable_extensions; do 28295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28296 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 28297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28298 break 2 28299 fi 28300 done 28301 done 28302 IFS=$as_save_IFS 28303 28304 ;; 28305 esac 28306 fi 28307 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 28308 if test -n "$POTENTIAL_CC"; then 28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 28310 $as_echo "$POTENTIAL_CC" >&6; } 28311 else 28312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28313 $as_echo "no" >&6; } 28314 fi 28315 28316 28317 test -n "$POTENTIAL_CC" && break 28318 done 28319 28320 CC=$POTENTIAL_CC 28321 fi 28322 28323 if test "x$CC" = x; then 28324 28325 # Print a helpful message on how to acquire the necessary build dependency. 28326 # devkit is the help tag: freetype, cups, pulse, alsa etc 28327 MISSING_DEPENDENCY=devkit 28328 28329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28330 cygwin_help $MISSING_DEPENDENCY 28331 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28332 msys_help $MISSING_DEPENDENCY 28333 else 28334 PKGHANDLER_COMMAND= 28335 28336 case $PKGHANDLER in 28337 apt-get) 28338 apt_help $MISSING_DEPENDENCY ;; 28339 yum) 28340 yum_help $MISSING_DEPENDENCY ;; 28341 port) 28342 port_help $MISSING_DEPENDENCY ;; 28343 pkgutil) 28344 pkgutil_help $MISSING_DEPENDENCY ;; 28345 pkgadd) 28346 pkgadd_help $MISSING_DEPENDENCY ;; 28347 esac 28348 28349 if test "x$PKGHANDLER_COMMAND" != x; then 28350 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28351 fi 28352 fi 28353 28354 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 28355 fi 28356 fi 28357 28358 # Now we have a compiler binary in CC. Make sure it's okay. 28359 28360 # Only process if variable expands to non-empty 28361 28362 if test "x$CC" != x; then 28363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28364 28365 # First separate the path from the arguments. This will split at the first 28366 # space. 28367 complete="$CC" 28368 path="${complete%% *}" 28369 tmp="$complete EOL" 28370 arguments="${tmp#* }" 28371 28372 # Input might be given as Windows format, start by converting to 28373 # unix format. 28374 new_path=`$CYGPATH -u "$path"` 28375 28376 # Now try to locate executable using which 28377 new_path=`$WHICH "$new_path" 2> /dev/null` 28378 # bat and cmd files are not always considered executable in cygwin causing which 28379 # to not find them 28380 if test "x$new_path" = x \ 28381 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28382 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28383 new_path=`$CYGPATH -u "$path"` 28384 fi 28385 if test "x$new_path" = x; then 28386 # Oops. Which didn't find the executable. 28387 # The splitting of arguments from the executable at a space might have been incorrect, 28388 # since paths with space are more likely in Windows. Give it another try with the whole 28389 # argument. 28390 path="$complete" 28391 arguments="EOL" 28392 new_path=`$CYGPATH -u "$path"` 28393 new_path=`$WHICH "$new_path" 2> /dev/null` 28394 # bat and cmd files are not always considered executable in cygwin causing which 28395 # to not find them 28396 if test "x$new_path" = x \ 28397 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28398 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28399 new_path=`$CYGPATH -u "$path"` 28400 fi 28401 if test "x$new_path" = x; then 28402 # It's still not found. Now this is an unrecoverable error. 28403 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28404 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28405 has_space=`$ECHO "$complete" | $GREP " "` 28406 if test "x$has_space" != x; then 28407 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28408 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28409 fi 28410 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28411 fi 28412 fi 28413 28414 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28415 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28416 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28417 # "foo.exe" is OK but "foo" is an error. 28418 # 28419 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28420 # It is also a way to make sure we got the proper file name for the real test later on. 28421 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28422 if test "x$test_shortpath" = x; then 28423 # Short path failed, file does not exist as specified. 28424 # Try adding .exe or .cmd 28425 if test -f "${new_path}.exe"; then 28426 input_to_shortpath="${new_path}.exe" 28427 elif test -f "${new_path}.cmd"; then 28428 input_to_shortpath="${new_path}.cmd" 28429 else 28430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 28431 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 28432 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28433 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28434 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28435 fi 28436 else 28437 input_to_shortpath="$new_path" 28438 fi 28439 28440 # Call helper function which possibly converts this using DOS-style short mode. 28441 # If so, the updated path is stored in $new_path. 28442 new_path="$input_to_shortpath" 28443 28444 input_path="$input_to_shortpath" 28445 # Check if we need to convert this using DOS-style short mode. If the path 28446 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28447 # take no chances and rewrite it. 28448 # Note: m4 eats our [], so we need to use [ and ] instead. 28449 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28450 if test "x$has_forbidden_chars" != x; then 28451 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28452 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28453 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28454 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28455 # Going to short mode and back again did indeed matter. Since short mode is 28456 # case insensitive, let's make it lowercase to improve readability. 28457 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28458 # Now convert it back to Unix-stile (cygpath) 28459 input_path=`$CYGPATH -u "$shortmode_path"` 28460 new_path="$input_path" 28461 fi 28462 fi 28463 28464 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28465 if test "x$test_cygdrive_prefix" = x; then 28466 # As a simple fix, exclude /usr/bin since it's not a real path. 28467 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28468 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28469 # a path prefixed by /cygdrive for fixpath to work. 28470 new_path="$CYGWIN_ROOT_PATH$input_path" 28471 fi 28472 fi 28473 28474 # remove trailing .exe if any 28475 new_path="${new_path/%.exe/}" 28476 28477 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28478 28479 # First separate the path from the arguments. This will split at the first 28480 # space. 28481 complete="$CC" 28482 path="${complete%% *}" 28483 tmp="$complete EOL" 28484 arguments="${tmp#* }" 28485 28486 # Input might be given as Windows format, start by converting to 28487 # unix format. 28488 new_path="$path" 28489 28490 windows_path="$new_path" 28491 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28492 unix_path=`$CYGPATH -u "$windows_path"` 28493 new_path="$unix_path" 28494 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28495 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28496 new_path="$unix_path" 28497 fi 28498 28499 28500 # Now try to locate executable using which 28501 new_path=`$WHICH "$new_path" 2> /dev/null` 28502 28503 if test "x$new_path" = x; then 28504 # Oops. Which didn't find the executable. 28505 # The splitting of arguments from the executable at a space might have been incorrect, 28506 # since paths with space are more likely in Windows. Give it another try with the whole 28507 # argument. 28508 path="$complete" 28509 arguments="EOL" 28510 new_path="$path" 28511 28512 windows_path="$new_path" 28513 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28514 unix_path=`$CYGPATH -u "$windows_path"` 28515 new_path="$unix_path" 28516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28517 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28518 new_path="$unix_path" 28519 fi 28520 28521 28522 new_path=`$WHICH "$new_path" 2> /dev/null` 28523 # bat and cmd files are not always considered executable in MSYS causing which 28524 # to not find them 28525 if test "x$new_path" = x \ 28526 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28527 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28528 new_path="$path" 28529 28530 windows_path="$new_path" 28531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28532 unix_path=`$CYGPATH -u "$windows_path"` 28533 new_path="$unix_path" 28534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28535 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28536 new_path="$unix_path" 28537 fi 28538 28539 fi 28540 28541 if test "x$new_path" = x; then 28542 # It's still not found. Now this is an unrecoverable error. 28543 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28544 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28545 has_space=`$ECHO "$complete" | $GREP " "` 28546 if test "x$has_space" != x; then 28547 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28548 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28549 fi 28550 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28551 fi 28552 fi 28553 28554 # Now new_path has a complete unix path to the binary 28555 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28556 # Keep paths in /bin as-is, but remove trailing .exe if any 28557 new_path="${new_path/%.exe/}" 28558 # Do not save /bin paths to all_fixpath_prefixes! 28559 else 28560 # Not in mixed or Windows style, start by that. 28561 new_path=`cmd //c echo $new_path` 28562 28563 input_path="$new_path" 28564 # Check if we need to convert this using DOS-style short mode. If the path 28565 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28566 # take no chances and rewrite it. 28567 # Note: m4 eats our [], so we need to use [ and ] instead. 28568 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28569 if test "x$has_forbidden_chars" != x; then 28570 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28571 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28572 fi 28573 28574 # Output is in $new_path 28575 28576 windows_path="$new_path" 28577 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28578 unix_path=`$CYGPATH -u "$windows_path"` 28579 new_path="$unix_path" 28580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28581 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28582 new_path="$unix_path" 28583 fi 28584 28585 # remove trailing .exe if any 28586 new_path="${new_path/%.exe/}" 28587 28588 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28589 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28590 fi 28591 28592 else 28593 # We're on a unix platform. Hooray! :) 28594 # First separate the path from the arguments. This will split at the first 28595 # space. 28596 complete="$CC" 28597 path="${complete%% *}" 28598 tmp="$complete EOL" 28599 arguments="${tmp#* }" 28600 28601 # Cannot rely on the command "which" here since it doesn't always work. 28602 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28603 if test -z "$is_absolute_path"; then 28604 # Path to executable is not absolute. Find it. 28605 IFS_save="$IFS" 28606 IFS=: 28607 for p in $PATH; do 28608 if test -f "$p/$path" && test -x "$p/$path"; then 28609 new_path="$p/$path" 28610 break 28611 fi 28612 done 28613 IFS="$IFS_save" 28614 else 28615 # This is an absolute path, we can use it without further modifications. 28616 new_path="$path" 28617 fi 28618 28619 if test "x$new_path" = x; then 28620 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28621 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28622 has_space=`$ECHO "$complete" | $GREP " "` 28623 if test "x$has_space" != x; then 28624 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28625 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28626 fi 28627 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28628 fi 28629 fi 28630 28631 # Now join together the path and the arguments once again 28632 if test "x$arguments" != xEOL; then 28633 new_complete="$new_path ${arguments% *}" 28634 else 28635 new_complete="$new_path" 28636 fi 28637 28638 if test "x$complete" != "x$new_complete"; then 28639 CC="$new_complete" 28640 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 28641 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 28642 fi 28643 fi 28644 28645 TEST_COMPILER="$CC" 28646 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 28647 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 28648 if test "x$OPENJDK_BUILD_OS" != xaix; then 28649 # FIXME: This test should not be needed anymore; we don't do that for any platform. 28650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 28651 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 28652 28653 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28654 # Follow a chain of symbolic links. Use readlink 28655 # where it exists, else fall back to horribly 28656 # complicated shell code. 28657 if test "x$READLINK_TESTED" != yes; then 28658 # On MacOSX there is a readlink tool with a different 28659 # purpose than the GNU readlink tool. Check the found readlink. 28660 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28661 if test "x$ISGNU" = x; then 28662 # A readlink that we do not know how to use. 28663 # Are there other non-GNU readlinks out there? 28664 READLINK_TESTED=yes 28665 READLINK= 28666 fi 28667 fi 28668 28669 if test "x$READLINK" != x; then 28670 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28671 else 28672 # Save the current directory for restoring afterwards 28673 STARTDIR=$PWD 28674 COUNTER=0 28675 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28676 sym_link_file=`$BASENAME $TEST_COMPILER` 28677 cd $sym_link_dir 28678 # Use -P flag to resolve symlinks in directories. 28679 cd `$THEPWDCMD -P` 28680 sym_link_dir=`$THEPWDCMD -P` 28681 # Resolve file symlinks 28682 while test $COUNTER -lt 20; do 28683 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28684 if test "x$ISLINK" == x; then 28685 # This is not a symbolic link! We are done! 28686 break 28687 fi 28688 # Again resolve directory symlinks since the target of the just found 28689 # link could be in a different directory 28690 cd `$DIRNAME $ISLINK` 28691 sym_link_dir=`$THEPWDCMD -P` 28692 sym_link_file=`$BASENAME $ISLINK` 28693 let COUNTER=COUNTER+1 28694 done 28695 cd $STARTDIR 28696 TEST_COMPILER=$sym_link_dir/$sym_link_file 28697 fi 28698 fi 28699 28700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28701 $as_echo "$TEST_COMPILER" >&6; } 28702 fi 28703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 28704 $as_echo_n "checking if CC is disguised ccache... " >&6; } 28705 28706 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28707 if test "x$COMPILER_BASENAME" = "xccache"; then 28708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28709 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28710 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28711 # We want to control ccache invocation ourselves, so ignore this cc and try 28712 # searching again. 28713 28714 # Remove the path to the fake ccache cc from the PATH 28715 RETRY_COMPILER_SAVED_PATH="$PATH" 28716 COMPILER_DIRNAME=`$DIRNAME $CC` 28717 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28718 28719 # Try again looking for our compiler 28720 if test -n "$ac_tool_prefix"; then 28721 for ac_prog in $TOOLCHAIN_CC_BINARY 28722 do 28723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28726 $as_echo_n "checking for $ac_word... " >&6; } 28727 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 28728 $as_echo_n "(cached) " >&6 28729 else 28730 if test -n "$PROPER_COMPILER_CC"; then 28731 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 28732 else 28733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28734 for as_dir in $PATH 28735 do 28736 IFS=$as_save_IFS 28737 test -z "$as_dir" && as_dir=. 28738 for ac_exec_ext in '' $ac_executable_extensions; do 28739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28740 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 28741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28742 break 2 28743 fi 28744 done 28745 done 28746 IFS=$as_save_IFS 28747 28748 fi 28749 fi 28750 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 28751 if test -n "$PROPER_COMPILER_CC"; then 28752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28753 $as_echo "$PROPER_COMPILER_CC" >&6; } 28754 else 28755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28756 $as_echo "no" >&6; } 28757 fi 28758 28759 28760 test -n "$PROPER_COMPILER_CC" && break 28761 done 28762 fi 28763 if test -z "$PROPER_COMPILER_CC"; then 28764 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 28765 for ac_prog in $TOOLCHAIN_CC_BINARY 28766 do 28767 # Extract the first word of "$ac_prog", so it can be a program name with args. 28768 set dummy $ac_prog; ac_word=$2 28769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28770 $as_echo_n "checking for $ac_word... " >&6; } 28771 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 28772 $as_echo_n "(cached) " >&6 28773 else 28774 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28775 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 28776 else 28777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28778 for as_dir in $PATH 28779 do 28780 IFS=$as_save_IFS 28781 test -z "$as_dir" && as_dir=. 28782 for ac_exec_ext in '' $ac_executable_extensions; do 28783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28784 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 28785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28786 break 2 28787 fi 28788 done 28789 done 28790 IFS=$as_save_IFS 28791 28792 fi 28793 fi 28794 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 28795 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28797 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28798 else 28799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28800 $as_echo "no" >&6; } 28801 fi 28802 28803 28804 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28805 done 28806 28807 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28808 PROPER_COMPILER_CC="" 28809 else 28810 case $cross_compiling:$ac_tool_warned in 28811 yes:) 28812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28814 ac_tool_warned=yes ;; 28815 esac 28816 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28817 fi 28818 fi 28819 28820 28821 # Only process if variable expands to non-empty 28822 28823 if test "x$PROPER_COMPILER_CC" != x; then 28824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28825 28826 # First separate the path from the arguments. This will split at the first 28827 # space. 28828 complete="$PROPER_COMPILER_CC" 28829 path="${complete%% *}" 28830 tmp="$complete EOL" 28831 arguments="${tmp#* }" 28832 28833 # Input might be given as Windows format, start by converting to 28834 # unix format. 28835 new_path=`$CYGPATH -u "$path"` 28836 28837 # Now try to locate executable using which 28838 new_path=`$WHICH "$new_path" 2> /dev/null` 28839 # bat and cmd files are not always considered executable in cygwin causing which 28840 # to not find them 28841 if test "x$new_path" = x \ 28842 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28843 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28844 new_path=`$CYGPATH -u "$path"` 28845 fi 28846 if test "x$new_path" = x; then 28847 # Oops. Which didn't find the executable. 28848 # The splitting of arguments from the executable at a space might have been incorrect, 28849 # since paths with space are more likely in Windows. Give it another try with the whole 28850 # argument. 28851 path="$complete" 28852 arguments="EOL" 28853 new_path=`$CYGPATH -u "$path"` 28854 new_path=`$WHICH "$new_path" 2> /dev/null` 28855 # bat and cmd files are not always considered executable in cygwin causing which 28856 # to not find them 28857 if test "x$new_path" = x \ 28858 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28859 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28860 new_path=`$CYGPATH -u "$path"` 28861 fi 28862 if test "x$new_path" = x; then 28863 # It's still not found. Now this is an unrecoverable error. 28864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28865 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28866 has_space=`$ECHO "$complete" | $GREP " "` 28867 if test "x$has_space" != x; then 28868 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28869 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28870 fi 28871 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28872 fi 28873 fi 28874 28875 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28876 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28877 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28878 # "foo.exe" is OK but "foo" is an error. 28879 # 28880 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28881 # It is also a way to make sure we got the proper file name for the real test later on. 28882 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28883 if test "x$test_shortpath" = x; then 28884 # Short path failed, file does not exist as specified. 28885 # Try adding .exe or .cmd 28886 if test -f "${new_path}.exe"; then 28887 input_to_shortpath="${new_path}.exe" 28888 elif test -f "${new_path}.cmd"; then 28889 input_to_shortpath="${new_path}.cmd" 28890 else 28891 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28892 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28893 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28894 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28895 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28896 fi 28897 else 28898 input_to_shortpath="$new_path" 28899 fi 28900 28901 # Call helper function which possibly converts this using DOS-style short mode. 28902 # If so, the updated path is stored in $new_path. 28903 new_path="$input_to_shortpath" 28904 28905 input_path="$input_to_shortpath" 28906 # Check if we need to convert this using DOS-style short mode. If the path 28907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28908 # take no chances and rewrite it. 28909 # Note: m4 eats our [], so we need to use [ and ] instead. 28910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28911 if test "x$has_forbidden_chars" != x; then 28912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28913 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28914 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28915 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28916 # Going to short mode and back again did indeed matter. Since short mode is 28917 # case insensitive, let's make it lowercase to improve readability. 28918 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28919 # Now convert it back to Unix-stile (cygpath) 28920 input_path=`$CYGPATH -u "$shortmode_path"` 28921 new_path="$input_path" 28922 fi 28923 fi 28924 28925 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28926 if test "x$test_cygdrive_prefix" = x; then 28927 # As a simple fix, exclude /usr/bin since it's not a real path. 28928 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28929 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28930 # a path prefixed by /cygdrive for fixpath to work. 28931 new_path="$CYGWIN_ROOT_PATH$input_path" 28932 fi 28933 fi 28934 28935 # remove trailing .exe if any 28936 new_path="${new_path/%.exe/}" 28937 28938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28939 28940 # First separate the path from the arguments. This will split at the first 28941 # space. 28942 complete="$PROPER_COMPILER_CC" 28943 path="${complete%% *}" 28944 tmp="$complete EOL" 28945 arguments="${tmp#* }" 28946 28947 # Input might be given as Windows format, start by converting to 28948 # unix format. 28949 new_path="$path" 28950 28951 windows_path="$new_path" 28952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28953 unix_path=`$CYGPATH -u "$windows_path"` 28954 new_path="$unix_path" 28955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28956 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28957 new_path="$unix_path" 28958 fi 28959 28960 28961 # Now try to locate executable using which 28962 new_path=`$WHICH "$new_path" 2> /dev/null` 28963 28964 if test "x$new_path" = x; then 28965 # Oops. Which didn't find the executable. 28966 # The splitting of arguments from the executable at a space might have been incorrect, 28967 # since paths with space are more likely in Windows. Give it another try with the whole 28968 # argument. 28969 path="$complete" 28970 arguments="EOL" 28971 new_path="$path" 28972 28973 windows_path="$new_path" 28974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28975 unix_path=`$CYGPATH -u "$windows_path"` 28976 new_path="$unix_path" 28977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28978 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28979 new_path="$unix_path" 28980 fi 28981 28982 28983 new_path=`$WHICH "$new_path" 2> /dev/null` 28984 # bat and cmd files are not always considered executable in MSYS causing which 28985 # to not find them 28986 if test "x$new_path" = x \ 28987 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28988 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28989 new_path="$path" 28990 28991 windows_path="$new_path" 28992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28993 unix_path=`$CYGPATH -u "$windows_path"` 28994 new_path="$unix_path" 28995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28997 new_path="$unix_path" 28998 fi 28999 29000 fi 29001 29002 if test "x$new_path" = x; then 29003 # It's still not found. Now this is an unrecoverable error. 29004 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 29005 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 29006 has_space=`$ECHO "$complete" | $GREP " "` 29007 if test "x$has_space" != x; then 29008 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29009 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29010 fi 29011 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 29012 fi 29013 fi 29014 29015 # Now new_path has a complete unix path to the binary 29016 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29017 # Keep paths in /bin as-is, but remove trailing .exe if any 29018 new_path="${new_path/%.exe/}" 29019 # Do not save /bin paths to all_fixpath_prefixes! 29020 else 29021 # Not in mixed or Windows style, start by that. 29022 new_path=`cmd //c echo $new_path` 29023 29024 input_path="$new_path" 29025 # Check if we need to convert this using DOS-style short mode. If the path 29026 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29027 # take no chances and rewrite it. 29028 # Note: m4 eats our [], so we need to use [ and ] instead. 29029 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29030 if test "x$has_forbidden_chars" != x; then 29031 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29032 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29033 fi 29034 29035 # Output is in $new_path 29036 29037 windows_path="$new_path" 29038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29039 unix_path=`$CYGPATH -u "$windows_path"` 29040 new_path="$unix_path" 29041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29042 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29043 new_path="$unix_path" 29044 fi 29045 29046 # remove trailing .exe if any 29047 new_path="${new_path/%.exe/}" 29048 29049 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29050 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29051 fi 29052 29053 else 29054 # We're on a unix platform. Hooray! :) 29055 # First separate the path from the arguments. This will split at the first 29056 # space. 29057 complete="$PROPER_COMPILER_CC" 29058 path="${complete%% *}" 29059 tmp="$complete EOL" 29060 arguments="${tmp#* }" 29061 29062 # Cannot rely on the command "which" here since it doesn't always work. 29063 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29064 if test -z "$is_absolute_path"; then 29065 # Path to executable is not absolute. Find it. 29066 IFS_save="$IFS" 29067 IFS=: 29068 for p in $PATH; do 29069 if test -f "$p/$path" && test -x "$p/$path"; then 29070 new_path="$p/$path" 29071 break 29072 fi 29073 done 29074 IFS="$IFS_save" 29075 else 29076 # This is an absolute path, we can use it without further modifications. 29077 new_path="$path" 29078 fi 29079 29080 if test "x$new_path" = x; then 29081 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 29082 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 29083 has_space=`$ECHO "$complete" | $GREP " "` 29084 if test "x$has_space" != x; then 29085 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29086 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29087 fi 29088 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 29089 fi 29090 fi 29091 29092 # Now join together the path and the arguments once again 29093 if test "x$arguments" != xEOL; then 29094 new_complete="$new_path ${arguments% *}" 29095 else 29096 new_complete="$new_path" 29097 fi 29098 29099 if test "x$complete" != "x$new_complete"; then 29100 PROPER_COMPILER_CC="$new_complete" 29101 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 29102 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 29103 fi 29104 fi 29105 29106 PATH="$RETRY_COMPILER_SAVED_PATH" 29107 29108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 29109 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 29110 29111 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29112 # Follow a chain of symbolic links. Use readlink 29113 # where it exists, else fall back to horribly 29114 # complicated shell code. 29115 if test "x$READLINK_TESTED" != yes; then 29116 # On MacOSX there is a readlink tool with a different 29117 # purpose than the GNU readlink tool. Check the found readlink. 29118 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29119 if test "x$ISGNU" = x; then 29120 # A readlink that we do not know how to use. 29121 # Are there other non-GNU readlinks out there? 29122 READLINK_TESTED=yes 29123 READLINK= 29124 fi 29125 fi 29126 29127 if test "x$READLINK" != x; then 29128 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 29129 else 29130 # Save the current directory for restoring afterwards 29131 STARTDIR=$PWD 29132 COUNTER=0 29133 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 29134 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 29135 cd $sym_link_dir 29136 # Use -P flag to resolve symlinks in directories. 29137 cd `$THEPWDCMD -P` 29138 sym_link_dir=`$THEPWDCMD -P` 29139 # Resolve file symlinks 29140 while test $COUNTER -lt 20; do 29141 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29142 if test "x$ISLINK" == x; then 29143 # This is not a symbolic link! We are done! 29144 break 29145 fi 29146 # Again resolve directory symlinks since the target of the just found 29147 # link could be in a different directory 29148 cd `$DIRNAME $ISLINK` 29149 sym_link_dir=`$THEPWDCMD -P` 29150 sym_link_file=`$BASENAME $ISLINK` 29151 let COUNTER=COUNTER+1 29152 done 29153 cd $STARTDIR 29154 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 29155 fi 29156 fi 29157 29158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 29159 $as_echo "$PROPER_COMPILER_CC" >&6; } 29160 CC="$PROPER_COMPILER_CC" 29161 else 29162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 29163 $as_echo "no, keeping CC" >&6; } 29164 fi 29165 29166 29167 COMPILER=$CC 29168 COMPILER_NAME=$COMPILER_NAME 29169 29170 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 29171 # cc -V output typically looks like 29172 # cc: Sun C 5.12 Linux_i386 2011/11/16 29173 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 29174 # Check that this is likely to be the Solaris Studio cc. 29175 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 29176 if test $? -ne 0; then 29177 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29178 { $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 29179 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29180 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29181 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29182 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29183 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29184 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29185 fi 29186 # Remove usage instructions (if present), and 29187 # collapse compiler output into a single line 29188 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29189 $SED -e 's/ *[Uu]sage:.*//'` 29190 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29191 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 29192 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 29193 # xlc -qversion output typically looks like 29194 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 29195 # Version: 11.01.0000.0015 29196 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 29197 # Check that this is likely to be the IBM XL C compiler. 29198 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 29199 if test $? -ne 0; then 29200 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29201 { $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 29202 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29203 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29204 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29205 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29206 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29207 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29208 fi 29209 # Collapse compiler output into a single line 29210 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29211 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29212 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 29213 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 29214 # There is no specific version flag, but all output starts with a version string. 29215 # First line typically looks something like: 29216 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 29217 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 29218 # Check that this is likely to be Microsoft CL.EXE. 29219 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 29220 if test $? -ne 0; then 29221 { $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 29222 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29223 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29224 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29225 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29226 fi 29227 # Collapse compiler output into a single line 29228 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29229 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29230 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 29231 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 29232 # gcc --version output typically looks like 29233 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 29234 # Copyright (C) 2013 Free Software Foundation, Inc. 29235 # This is free software; see the source for copying conditions. There is NO 29236 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 29237 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29238 # Check that this is likely to be GCC. 29239 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 29240 if test $? -ne 0; then 29241 { $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 29242 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29243 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 29244 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 29245 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29246 fi 29247 # Remove Copyright and legalese from version string, and 29248 # collapse into a single line 29249 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29250 $SED -e 's/ *Copyright .*//'` 29251 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29252 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 29253 elif test "x$TOOLCHAIN_TYPE" = xclang; then 29254 # clang --version output typically looks like 29255 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 29256 # clang version 3.3 (tags/RELEASE_33/final) 29257 # or 29258 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 29259 # Target: x86_64-pc-linux-gnu 29260 # Thread model: posix 29261 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29262 # Check that this is likely to be clang 29263 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 29264 if test $? -ne 0; then 29265 { $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 29266 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29267 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29268 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29269 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29270 fi 29271 # Collapse compiler output into a single line 29272 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29273 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29274 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 29275 else 29276 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 29277 fi 29278 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 29279 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 29280 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 29281 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 29282 29283 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 29284 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 29285 29286 29287 # Now that we have resolved CC ourself, let autoconf have its go at it 29288 ac_ext=c 29289 ac_cpp='$CPP $CPPFLAGS' 29290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29292 ac_compiler_gnu=$ac_cv_c_compiler_gnu 29293 if test -n "$ac_tool_prefix"; then 29294 for ac_prog in $CC 29295 do 29296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29299 $as_echo_n "checking for $ac_word... " >&6; } 29300 if ${ac_cv_prog_CC+:} false; then : 29301 $as_echo_n "(cached) " >&6 29302 else 29303 if test -n "$CC"; then 29304 ac_cv_prog_CC="$CC" # Let the user override the test. 29305 else 29306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29307 for as_dir in $PATH 29308 do 29309 IFS=$as_save_IFS 29310 test -z "$as_dir" && as_dir=. 29311 for ac_exec_ext in '' $ac_executable_extensions; do 29312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29313 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 29314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29315 break 2 29316 fi 29317 done 29318 done 29319 IFS=$as_save_IFS 29320 29321 fi 29322 fi 29323 CC=$ac_cv_prog_CC 29324 if test -n "$CC"; then 29325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29326 $as_echo "$CC" >&6; } 29327 else 29328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29329 $as_echo "no" >&6; } 29330 fi 29331 29332 29333 test -n "$CC" && break 29334 done 29335 fi 29336 if test -z "$CC"; then 29337 ac_ct_CC=$CC 29338 for ac_prog in $CC 29339 do 29340 # Extract the first word of "$ac_prog", so it can be a program name with args. 29341 set dummy $ac_prog; ac_word=$2 29342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29343 $as_echo_n "checking for $ac_word... " >&6; } 29344 if ${ac_cv_prog_ac_ct_CC+:} false; then : 29345 $as_echo_n "(cached) " >&6 29346 else 29347 if test -n "$ac_ct_CC"; then 29348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 29349 else 29350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29351 for as_dir in $PATH 29352 do 29353 IFS=$as_save_IFS 29354 test -z "$as_dir" && as_dir=. 29355 for ac_exec_ext in '' $ac_executable_extensions; do 29356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29357 ac_cv_prog_ac_ct_CC="$ac_prog" 29358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29359 break 2 29360 fi 29361 done 29362 done 29363 IFS=$as_save_IFS 29364 29365 fi 29366 fi 29367 ac_ct_CC=$ac_cv_prog_ac_ct_CC 29368 if test -n "$ac_ct_CC"; then 29369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 29370 $as_echo "$ac_ct_CC" >&6; } 29371 else 29372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29373 $as_echo "no" >&6; } 29374 fi 29375 29376 29377 test -n "$ac_ct_CC" && break 29378 done 29379 29380 if test "x$ac_ct_CC" = x; then 29381 CC="" 29382 else 29383 case $cross_compiling:$ac_tool_warned in 29384 yes:) 29385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29387 ac_tool_warned=yes ;; 29388 esac 29389 CC=$ac_ct_CC 29390 fi 29391 fi 29392 29393 29394 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29396 as_fn_error $? "no acceptable C compiler found in \$PATH 29397 See \`config.log' for more details" "$LINENO" 5; } 29398 29399 # Provide some information about the compiler. 29400 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 29401 set X $ac_compile 29402 ac_compiler=$2 29403 for ac_option in --version -v -V -qversion; do 29404 { { ac_try="$ac_compiler $ac_option >&5" 29405 case "(($ac_try" in 29406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29407 *) ac_try_echo=$ac_try;; 29408 esac 29409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29410 $as_echo "$ac_try_echo"; } >&5 29411 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29412 ac_status=$? 29413 if test -s conftest.err; then 29414 sed '10a\ 29415 ... rest of stderr output deleted ... 29416 10q' conftest.err >conftest.er1 29417 cat conftest.er1 >&5 29418 fi 29419 rm -f conftest.er1 conftest.err 29420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29421 test $ac_status = 0; } 29422 done 29423 29424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29425 /* end confdefs.h. */ 29426 29427 int 29428 main () 29429 { 29430 29431 ; 29432 return 0; 29433 } 29434 _ACEOF 29435 ac_clean_files_save=$ac_clean_files 29436 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 29437 # Try to create an executable without -o first, disregard a.out. 29438 # It will help us diagnose broken compilers, and finding out an intuition 29439 # of exeext. 29440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 29441 $as_echo_n "checking whether the C compiler works... " >&6; } 29442 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 29443 29444 # The possible output files: 29445 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 29446 29447 ac_rmfiles= 29448 for ac_file in $ac_files 29449 do 29450 case $ac_file in 29451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29452 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 29453 esac 29454 done 29455 rm -f $ac_rmfiles 29456 29457 if { { ac_try="$ac_link_default" 29458 case "(($ac_try" in 29459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29460 *) ac_try_echo=$ac_try;; 29461 esac 29462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29463 $as_echo "$ac_try_echo"; } >&5 29464 (eval "$ac_link_default") 2>&5 29465 ac_status=$? 29466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29467 test $ac_status = 0; }; then : 29468 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 29469 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 29470 # in a Makefile. We should not override ac_cv_exeext if it was cached, 29471 # so that the user can short-circuit this test for compilers unknown to 29472 # Autoconf. 29473 for ac_file in $ac_files '' 29474 do 29475 test -f "$ac_file" || continue 29476 case $ac_file in 29477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 29478 ;; 29479 [ab].out ) 29480 # We found the default executable, but exeext='' is most 29481 # certainly right. 29482 break;; 29483 *.* ) 29484 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 29485 then :; else 29486 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29487 fi 29488 # We set ac_cv_exeext here because the later test for it is not 29489 # safe: cross compilers may not add the suffix if given an `-o' 29490 # argument, so we may need to know it at that point already. 29491 # Even if this section looks crufty: it has the advantage of 29492 # actually working. 29493 break;; 29494 * ) 29495 break;; 29496 esac 29497 done 29498 test "$ac_cv_exeext" = no && ac_cv_exeext= 29499 29500 else 29501 ac_file='' 29502 fi 29503 if test -z "$ac_file"; then : 29504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29505 $as_echo "no" >&6; } 29506 $as_echo "$as_me: failed program was:" >&5 29507 sed 's/^/| /' conftest.$ac_ext >&5 29508 29509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29511 as_fn_error 77 "C compiler cannot create executables 29512 See \`config.log' for more details" "$LINENO" 5; } 29513 else 29514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29515 $as_echo "yes" >&6; } 29516 fi 29517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 29518 $as_echo_n "checking for C compiler default output file name... " >&6; } 29519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 29520 $as_echo "$ac_file" >&6; } 29521 ac_exeext=$ac_cv_exeext 29522 29523 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 29524 ac_clean_files=$ac_clean_files_save 29525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 29526 $as_echo_n "checking for suffix of executables... " >&6; } 29527 if { { ac_try="$ac_link" 29528 case "(($ac_try" in 29529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29530 *) ac_try_echo=$ac_try;; 29531 esac 29532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29533 $as_echo "$ac_try_echo"; } >&5 29534 (eval "$ac_link") 2>&5 29535 ac_status=$? 29536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29537 test $ac_status = 0; }; then : 29538 # If both `conftest.exe' and `conftest' are `present' (well, observable) 29539 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 29540 # work properly (i.e., refer to `conftest.exe'), while it won't with 29541 # `rm'. 29542 for ac_file in conftest.exe conftest conftest.*; do 29543 test -f "$ac_file" || continue 29544 case $ac_file in 29545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29546 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29547 break;; 29548 * ) break;; 29549 esac 29550 done 29551 else 29552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29554 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 29555 See \`config.log' for more details" "$LINENO" 5; } 29556 fi 29557 rm -f conftest conftest$ac_cv_exeext 29558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 29559 $as_echo "$ac_cv_exeext" >&6; } 29560 29561 rm -f conftest.$ac_ext 29562 EXEEXT=$ac_cv_exeext 29563 ac_exeext=$EXEEXT 29564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29565 /* end confdefs.h. */ 29566 #include <stdio.h> 29567 int 29568 main () 29569 { 29570 FILE *f = fopen ("conftest.out", "w"); 29571 return ferror (f) || fclose (f) != 0; 29572 29573 ; 29574 return 0; 29575 } 29576 _ACEOF 29577 ac_clean_files="$ac_clean_files conftest.out" 29578 # Check that the compiler produces executables we can run. If not, either 29579 # the compiler is broken, or we cross compile. 29580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 29581 $as_echo_n "checking whether we are cross compiling... " >&6; } 29582 if test "$cross_compiling" != yes; then 29583 { { ac_try="$ac_link" 29584 case "(($ac_try" in 29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29586 *) ac_try_echo=$ac_try;; 29587 esac 29588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29589 $as_echo "$ac_try_echo"; } >&5 29590 (eval "$ac_link") 2>&5 29591 ac_status=$? 29592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29593 test $ac_status = 0; } 29594 if { ac_try='./conftest$ac_cv_exeext' 29595 { { case "(($ac_try" in 29596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29597 *) ac_try_echo=$ac_try;; 29598 esac 29599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29600 $as_echo "$ac_try_echo"; } >&5 29601 (eval "$ac_try") 2>&5 29602 ac_status=$? 29603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29604 test $ac_status = 0; }; }; then 29605 cross_compiling=no 29606 else 29607 if test "$cross_compiling" = maybe; then 29608 cross_compiling=yes 29609 else 29610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29612 as_fn_error $? "cannot run C compiled programs. 29613 If you meant to cross compile, use \`--host'. 29614 See \`config.log' for more details" "$LINENO" 5; } 29615 fi 29616 fi 29617 fi 29618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 29619 $as_echo "$cross_compiling" >&6; } 29620 29621 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 29622 ac_clean_files=$ac_clean_files_save 29623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 29624 $as_echo_n "checking for suffix of object files... " >&6; } 29625 if ${ac_cv_objext+:} false; then : 29626 $as_echo_n "(cached) " >&6 29627 else 29628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29629 /* end confdefs.h. */ 29630 29631 int 29632 main () 29633 { 29634 29635 ; 29636 return 0; 29637 } 29638 _ACEOF 29639 rm -f conftest.o conftest.obj 29640 if { { ac_try="$ac_compile" 29641 case "(($ac_try" in 29642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29643 *) ac_try_echo=$ac_try;; 29644 esac 29645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29646 $as_echo "$ac_try_echo"; } >&5 29647 (eval "$ac_compile") 2>&5 29648 ac_status=$? 29649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29650 test $ac_status = 0; }; then : 29651 for ac_file in conftest.o conftest.obj conftest.*; do 29652 test -f "$ac_file" || continue; 29653 case $ac_file in 29654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 29655 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 29656 break;; 29657 esac 29658 done 29659 else 29660 $as_echo "$as_me: failed program was:" >&5 29661 sed 's/^/| /' conftest.$ac_ext >&5 29662 29663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29665 as_fn_error $? "cannot compute suffix of object files: cannot compile 29666 See \`config.log' for more details" "$LINENO" 5; } 29667 fi 29668 rm -f conftest.$ac_cv_objext conftest.$ac_ext 29669 fi 29670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 29671 $as_echo "$ac_cv_objext" >&6; } 29672 OBJEXT=$ac_cv_objext 29673 ac_objext=$OBJEXT 29674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 29675 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 29676 if ${ac_cv_c_compiler_gnu+:} false; then : 29677 $as_echo_n "(cached) " >&6 29678 else 29679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29680 /* end confdefs.h. */ 29681 29682 int 29683 main () 29684 { 29685 #ifndef __GNUC__ 29686 choke me 29687 #endif 29688 29689 ; 29690 return 0; 29691 } 29692 _ACEOF 29693 if ac_fn_c_try_compile "$LINENO"; then : 29694 ac_compiler_gnu=yes 29695 else 29696 ac_compiler_gnu=no 29697 fi 29698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29699 ac_cv_c_compiler_gnu=$ac_compiler_gnu 29700 29701 fi 29702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 29703 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 29704 if test $ac_compiler_gnu = yes; then 29705 GCC=yes 29706 else 29707 GCC= 29708 fi 29709 ac_test_CFLAGS=${CFLAGS+set} 29710 ac_save_CFLAGS=$CFLAGS 29711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 29712 $as_echo_n "checking whether $CC accepts -g... " >&6; } 29713 if ${ac_cv_prog_cc_g+:} false; then : 29714 $as_echo_n "(cached) " >&6 29715 else 29716 ac_save_c_werror_flag=$ac_c_werror_flag 29717 ac_c_werror_flag=yes 29718 ac_cv_prog_cc_g=no 29719 CFLAGS="-g" 29720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29721 /* end confdefs.h. */ 29722 29723 int 29724 main () 29725 { 29726 29727 ; 29728 return 0; 29729 } 29730 _ACEOF 29731 if ac_fn_c_try_compile "$LINENO"; then : 29732 ac_cv_prog_cc_g=yes 29733 else 29734 CFLAGS="" 29735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29736 /* end confdefs.h. */ 29737 29738 int 29739 main () 29740 { 29741 29742 ; 29743 return 0; 29744 } 29745 _ACEOF 29746 if ac_fn_c_try_compile "$LINENO"; then : 29747 29748 else 29749 ac_c_werror_flag=$ac_save_c_werror_flag 29750 CFLAGS="-g" 29751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29752 /* end confdefs.h. */ 29753 29754 int 29755 main () 29756 { 29757 29758 ; 29759 return 0; 29760 } 29761 _ACEOF 29762 if ac_fn_c_try_compile "$LINENO"; then : 29763 ac_cv_prog_cc_g=yes 29764 fi 29765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29766 fi 29767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29768 fi 29769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29770 ac_c_werror_flag=$ac_save_c_werror_flag 29771 fi 29772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 29773 $as_echo "$ac_cv_prog_cc_g" >&6; } 29774 if test "$ac_test_CFLAGS" = set; then 29775 CFLAGS=$ac_save_CFLAGS 29776 elif test $ac_cv_prog_cc_g = yes; then 29777 if test "$GCC" = yes; then 29778 CFLAGS="-g -O2" 29779 else 29780 CFLAGS="-g" 29781 fi 29782 else 29783 if test "$GCC" = yes; then 29784 CFLAGS="-O2" 29785 else 29786 CFLAGS= 29787 fi 29788 fi 29789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29790 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29791 if ${ac_cv_prog_cc_c89+:} false; then : 29792 $as_echo_n "(cached) " >&6 29793 else 29794 ac_cv_prog_cc_c89=no 29795 ac_save_CC=$CC 29796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29797 /* end confdefs.h. */ 29798 #include <stdarg.h> 29799 #include <stdio.h> 29800 struct stat; 29801 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29802 struct buf { int x; }; 29803 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29804 static char *e (p, i) 29805 char **p; 29806 int i; 29807 { 29808 return p[i]; 29809 } 29810 static char *f (char * (*g) (char **, int), char **p, ...) 29811 { 29812 char *s; 29813 va_list v; 29814 va_start (v,p); 29815 s = g (p, va_arg (v,int)); 29816 va_end (v); 29817 return s; 29818 } 29819 29820 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29821 function prototypes and stuff, but not '\xHH' hex character constants. 29822 These don't provoke an error unfortunately, instead are silently treated 29823 as 'x'. The following induces an error, until -std is added to get 29824 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29825 array size at least. It's necessary to write '\x00'==0 to get something 29826 that's true only with -std. */ 29827 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29828 29829 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29830 inside strings and character constants. */ 29831 #define FOO(x) 'x' 29832 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29833 29834 int test (int i, double x); 29835 struct s1 {int (*f) (int a);}; 29836 struct s2 {int (*f) (double a);}; 29837 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29838 int argc; 29839 char **argv; 29840 int 29841 main () 29842 { 29843 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29844 ; 29845 return 0; 29846 } 29847 _ACEOF 29848 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29849 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29850 do 29851 CC="$ac_save_CC $ac_arg" 29852 if ac_fn_c_try_compile "$LINENO"; then : 29853 ac_cv_prog_cc_c89=$ac_arg 29854 fi 29855 rm -f core conftest.err conftest.$ac_objext 29856 test "x$ac_cv_prog_cc_c89" != "xno" && break 29857 done 29858 rm -f conftest.$ac_ext 29859 CC=$ac_save_CC 29860 29861 fi 29862 # AC_CACHE_VAL 29863 case "x$ac_cv_prog_cc_c89" in 29864 x) 29865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29866 $as_echo "none needed" >&6; } ;; 29867 xno) 29868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29869 $as_echo "unsupported" >&6; } ;; 29870 *) 29871 CC="$CC $ac_cv_prog_cc_c89" 29872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29873 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29874 esac 29875 if test "x$ac_cv_prog_cc_c89" != xno; then : 29876 29877 fi 29878 29879 ac_ext=cpp 29880 ac_cpp='$CXXCPP $CPPFLAGS' 29881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29884 29885 29886 29887 COMPILER_NAME=C++ 29888 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29889 29890 if test "x$CXX" != x; then 29891 # User has supplied compiler name already, always let that override. 29892 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29893 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29894 if test "x`basename $CXX`" = "x$CXX"; then 29895 # A command without a complete path is provided, search $PATH. 29896 29897 for ac_prog in $CXX 29898 do 29899 # Extract the first word of "$ac_prog", so it can be a program name with args. 29900 set dummy $ac_prog; ac_word=$2 29901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29902 $as_echo_n "checking for $ac_word... " >&6; } 29903 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29904 $as_echo_n "(cached) " >&6 29905 else 29906 case $POTENTIAL_CXX in 29907 [\\/]* | ?:[\\/]*) 29908 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29909 ;; 29910 *) 29911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29912 for as_dir in $PATH 29913 do 29914 IFS=$as_save_IFS 29915 test -z "$as_dir" && as_dir=. 29916 for ac_exec_ext in '' $ac_executable_extensions; do 29917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29918 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29920 break 2 29921 fi 29922 done 29923 done 29924 IFS=$as_save_IFS 29925 29926 ;; 29927 esac 29928 fi 29929 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29930 if test -n "$POTENTIAL_CXX"; then 29931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29932 $as_echo "$POTENTIAL_CXX" >&6; } 29933 else 29934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29935 $as_echo "no" >&6; } 29936 fi 29937 29938 29939 test -n "$POTENTIAL_CXX" && break 29940 done 29941 29942 if test "x$POTENTIAL_CXX" != x; then 29943 CXX=$POTENTIAL_CXX 29944 else 29945 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29946 fi 29947 else 29948 # Otherwise it might already be a complete path 29949 if test ! -x "$CXX"; then 29950 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29951 fi 29952 fi 29953 else 29954 # No user supplied value. Locate compiler ourselves. 29955 29956 # If we are cross compiling, assume cross compilation tools follows the 29957 # cross compilation standard where they are prefixed with the autoconf 29958 # standard name for the target. For example the binary 29959 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29960 # If we are not cross compiling, then the default compiler name will be 29961 # used. 29962 29963 CXX= 29964 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 29965 # before checking the rest of the PATH. 29966 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29967 # step, this should not be necessary. 29968 if test -n "$TOOLCHAIN_PATH"; then 29969 PATH_save="$PATH" 29970 PATH="$TOOLCHAIN_PATH" 29971 for ac_prog in $SEARCH_LIST 29972 do 29973 # Extract the first word of "$ac_prog", so it can be a program name with args. 29974 set dummy $ac_prog; ac_word=$2 29975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29976 $as_echo_n "checking for $ac_word... " >&6; } 29977 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 29978 $as_echo_n "(cached) " >&6 29979 else 29980 case $TOOLCHAIN_PATH_CXX in 29981 [\\/]* | ?:[\\/]*) 29982 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 29983 ;; 29984 *) 29985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29986 for as_dir in $PATH 29987 do 29988 IFS=$as_save_IFS 29989 test -z "$as_dir" && as_dir=. 29990 for ac_exec_ext in '' $ac_executable_extensions; do 29991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29992 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 29993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29994 break 2 29995 fi 29996 done 29997 done 29998 IFS=$as_save_IFS 29999 30000 ;; 30001 esac 30002 fi 30003 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 30004 if test -n "$TOOLCHAIN_PATH_CXX"; then 30005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 30006 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 30007 else 30008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30009 $as_echo "no" >&6; } 30010 fi 30011 30012 30013 test -n "$TOOLCHAIN_PATH_CXX" && break 30014 done 30015 30016 CXX=$TOOLCHAIN_PATH_CXX 30017 PATH="$PATH_save" 30018 fi 30019 30020 # AC_PATH_PROGS can't be run multiple times with the same variable, 30021 # so create a new name for this run. 30022 if test "x$CXX" = x; then 30023 for ac_prog in $SEARCH_LIST 30024 do 30025 # Extract the first word of "$ac_prog", so it can be a program name with args. 30026 set dummy $ac_prog; ac_word=$2 30027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30028 $as_echo_n "checking for $ac_word... " >&6; } 30029 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 30030 $as_echo_n "(cached) " >&6 30031 else 30032 case $POTENTIAL_CXX in 30033 [\\/]* | ?:[\\/]*) 30034 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 30035 ;; 30036 *) 30037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30038 for as_dir in $PATH 30039 do 30040 IFS=$as_save_IFS 30041 test -z "$as_dir" && as_dir=. 30042 for ac_exec_ext in '' $ac_executable_extensions; do 30043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30044 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 30045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30046 break 2 30047 fi 30048 done 30049 done 30050 IFS=$as_save_IFS 30051 30052 ;; 30053 esac 30054 fi 30055 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 30056 if test -n "$POTENTIAL_CXX"; then 30057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 30058 $as_echo "$POTENTIAL_CXX" >&6; } 30059 else 30060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30061 $as_echo "no" >&6; } 30062 fi 30063 30064 30065 test -n "$POTENTIAL_CXX" && break 30066 done 30067 30068 CXX=$POTENTIAL_CXX 30069 fi 30070 30071 if test "x$CXX" = x; then 30072 30073 # Print a helpful message on how to acquire the necessary build dependency. 30074 # devkit is the help tag: freetype, cups, pulse, alsa etc 30075 MISSING_DEPENDENCY=devkit 30076 30077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30078 cygwin_help $MISSING_DEPENDENCY 30079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30080 msys_help $MISSING_DEPENDENCY 30081 else 30082 PKGHANDLER_COMMAND= 30083 30084 case $PKGHANDLER in 30085 apt-get) 30086 apt_help $MISSING_DEPENDENCY ;; 30087 yum) 30088 yum_help $MISSING_DEPENDENCY ;; 30089 port) 30090 port_help $MISSING_DEPENDENCY ;; 30091 pkgutil) 30092 pkgutil_help $MISSING_DEPENDENCY ;; 30093 pkgadd) 30094 pkgadd_help $MISSING_DEPENDENCY ;; 30095 esac 30096 30097 if test "x$PKGHANDLER_COMMAND" != x; then 30098 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30099 fi 30100 fi 30101 30102 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 30103 fi 30104 fi 30105 30106 # Now we have a compiler binary in CXX. Make sure it's okay. 30107 30108 # Only process if variable expands to non-empty 30109 30110 if test "x$CXX" != x; then 30111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30112 30113 # First separate the path from the arguments. This will split at the first 30114 # space. 30115 complete="$CXX" 30116 path="${complete%% *}" 30117 tmp="$complete EOL" 30118 arguments="${tmp#* }" 30119 30120 # Input might be given as Windows format, start by converting to 30121 # unix format. 30122 new_path=`$CYGPATH -u "$path"` 30123 30124 # Now try to locate executable using which 30125 new_path=`$WHICH "$new_path" 2> /dev/null` 30126 # bat and cmd files are not always considered executable in cygwin causing which 30127 # to not find them 30128 if test "x$new_path" = x \ 30129 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30130 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30131 new_path=`$CYGPATH -u "$path"` 30132 fi 30133 if test "x$new_path" = x; then 30134 # Oops. Which didn't find the executable. 30135 # The splitting of arguments from the executable at a space might have been incorrect, 30136 # since paths with space are more likely in Windows. Give it another try with the whole 30137 # argument. 30138 path="$complete" 30139 arguments="EOL" 30140 new_path=`$CYGPATH -u "$path"` 30141 new_path=`$WHICH "$new_path" 2> /dev/null` 30142 # bat and cmd files are not always considered executable in cygwin causing which 30143 # to not find them 30144 if test "x$new_path" = x \ 30145 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30146 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30147 new_path=`$CYGPATH -u "$path"` 30148 fi 30149 if test "x$new_path" = x; then 30150 # It's still not found. Now this is an unrecoverable error. 30151 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30152 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30153 has_space=`$ECHO "$complete" | $GREP " "` 30154 if test "x$has_space" != x; then 30155 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30156 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30157 fi 30158 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30159 fi 30160 fi 30161 30162 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30163 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30164 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30165 # "foo.exe" is OK but "foo" is an error. 30166 # 30167 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30168 # It is also a way to make sure we got the proper file name for the real test later on. 30169 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30170 if test "x$test_shortpath" = x; then 30171 # Short path failed, file does not exist as specified. 30172 # Try adding .exe or .cmd 30173 if test -f "${new_path}.exe"; then 30174 input_to_shortpath="${new_path}.exe" 30175 elif test -f "${new_path}.cmd"; then 30176 input_to_shortpath="${new_path}.cmd" 30177 else 30178 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 30179 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 30180 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30181 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30182 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30183 fi 30184 else 30185 input_to_shortpath="$new_path" 30186 fi 30187 30188 # Call helper function which possibly converts this using DOS-style short mode. 30189 # If so, the updated path is stored in $new_path. 30190 new_path="$input_to_shortpath" 30191 30192 input_path="$input_to_shortpath" 30193 # Check if we need to convert this using DOS-style short mode. If the path 30194 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30195 # take no chances and rewrite it. 30196 # Note: m4 eats our [], so we need to use [ and ] instead. 30197 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30198 if test "x$has_forbidden_chars" != x; then 30199 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30200 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30201 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30202 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30203 # Going to short mode and back again did indeed matter. Since short mode is 30204 # case insensitive, let's make it lowercase to improve readability. 30205 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30206 # Now convert it back to Unix-stile (cygpath) 30207 input_path=`$CYGPATH -u "$shortmode_path"` 30208 new_path="$input_path" 30209 fi 30210 fi 30211 30212 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30213 if test "x$test_cygdrive_prefix" = x; then 30214 # As a simple fix, exclude /usr/bin since it's not a real path. 30215 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30216 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30217 # a path prefixed by /cygdrive for fixpath to work. 30218 new_path="$CYGWIN_ROOT_PATH$input_path" 30219 fi 30220 fi 30221 30222 # remove trailing .exe if any 30223 new_path="${new_path/%.exe/}" 30224 30225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30226 30227 # First separate the path from the arguments. This will split at the first 30228 # space. 30229 complete="$CXX" 30230 path="${complete%% *}" 30231 tmp="$complete EOL" 30232 arguments="${tmp#* }" 30233 30234 # Input might be given as Windows format, start by converting to 30235 # unix format. 30236 new_path="$path" 30237 30238 windows_path="$new_path" 30239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30240 unix_path=`$CYGPATH -u "$windows_path"` 30241 new_path="$unix_path" 30242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30244 new_path="$unix_path" 30245 fi 30246 30247 30248 # Now try to locate executable using which 30249 new_path=`$WHICH "$new_path" 2> /dev/null` 30250 30251 if test "x$new_path" = x; then 30252 # Oops. Which didn't find the executable. 30253 # The splitting of arguments from the executable at a space might have been incorrect, 30254 # since paths with space are more likely in Windows. Give it another try with the whole 30255 # argument. 30256 path="$complete" 30257 arguments="EOL" 30258 new_path="$path" 30259 30260 windows_path="$new_path" 30261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30262 unix_path=`$CYGPATH -u "$windows_path"` 30263 new_path="$unix_path" 30264 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30265 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30266 new_path="$unix_path" 30267 fi 30268 30269 30270 new_path=`$WHICH "$new_path" 2> /dev/null` 30271 # bat and cmd files are not always considered executable in MSYS causing which 30272 # to not find them 30273 if test "x$new_path" = x \ 30274 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30275 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30276 new_path="$path" 30277 30278 windows_path="$new_path" 30279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30280 unix_path=`$CYGPATH -u "$windows_path"` 30281 new_path="$unix_path" 30282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30284 new_path="$unix_path" 30285 fi 30286 30287 fi 30288 30289 if test "x$new_path" = x; then 30290 # It's still not found. Now this is an unrecoverable error. 30291 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30292 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30293 has_space=`$ECHO "$complete" | $GREP " "` 30294 if test "x$has_space" != x; then 30295 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30296 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30297 fi 30298 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30299 fi 30300 fi 30301 30302 # Now new_path has a complete unix path to the binary 30303 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30304 # Keep paths in /bin as-is, but remove trailing .exe if any 30305 new_path="${new_path/%.exe/}" 30306 # Do not save /bin paths to all_fixpath_prefixes! 30307 else 30308 # Not in mixed or Windows style, start by that. 30309 new_path=`cmd //c echo $new_path` 30310 30311 input_path="$new_path" 30312 # Check if we need to convert this using DOS-style short mode. If the path 30313 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30314 # take no chances and rewrite it. 30315 # Note: m4 eats our [], so we need to use [ and ] instead. 30316 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30317 if test "x$has_forbidden_chars" != x; then 30318 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30319 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30320 fi 30321 30322 # Output is in $new_path 30323 30324 windows_path="$new_path" 30325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30326 unix_path=`$CYGPATH -u "$windows_path"` 30327 new_path="$unix_path" 30328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30330 new_path="$unix_path" 30331 fi 30332 30333 # remove trailing .exe if any 30334 new_path="${new_path/%.exe/}" 30335 30336 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30337 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30338 fi 30339 30340 else 30341 # We're on a unix platform. Hooray! :) 30342 # First separate the path from the arguments. This will split at the first 30343 # space. 30344 complete="$CXX" 30345 path="${complete%% *}" 30346 tmp="$complete EOL" 30347 arguments="${tmp#* }" 30348 30349 # Cannot rely on the command "which" here since it doesn't always work. 30350 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30351 if test -z "$is_absolute_path"; then 30352 # Path to executable is not absolute. Find it. 30353 IFS_save="$IFS" 30354 IFS=: 30355 for p in $PATH; do 30356 if test -f "$p/$path" && test -x "$p/$path"; then 30357 new_path="$p/$path" 30358 break 30359 fi 30360 done 30361 IFS="$IFS_save" 30362 else 30363 # This is an absolute path, we can use it without further modifications. 30364 new_path="$path" 30365 fi 30366 30367 if test "x$new_path" = x; then 30368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30369 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30370 has_space=`$ECHO "$complete" | $GREP " "` 30371 if test "x$has_space" != x; then 30372 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30373 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30374 fi 30375 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30376 fi 30377 fi 30378 30379 # Now join together the path and the arguments once again 30380 if test "x$arguments" != xEOL; then 30381 new_complete="$new_path ${arguments% *}" 30382 else 30383 new_complete="$new_path" 30384 fi 30385 30386 if test "x$complete" != "x$new_complete"; then 30387 CXX="$new_complete" 30388 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 30389 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 30390 fi 30391 fi 30392 30393 TEST_COMPILER="$CXX" 30394 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 30395 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 30396 if test "x$OPENJDK_BUILD_OS" != xaix; then 30397 # FIXME: This test should not be needed anymore; we don't do that for any platform. 30398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 30399 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 30400 30401 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30402 # Follow a chain of symbolic links. Use readlink 30403 # where it exists, else fall back to horribly 30404 # complicated shell code. 30405 if test "x$READLINK_TESTED" != yes; then 30406 # On MacOSX there is a readlink tool with a different 30407 # purpose than the GNU readlink tool. Check the found readlink. 30408 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30409 if test "x$ISGNU" = x; then 30410 # A readlink that we do not know how to use. 30411 # Are there other non-GNU readlinks out there? 30412 READLINK_TESTED=yes 30413 READLINK= 30414 fi 30415 fi 30416 30417 if test "x$READLINK" != x; then 30418 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 30419 else 30420 # Save the current directory for restoring afterwards 30421 STARTDIR=$PWD 30422 COUNTER=0 30423 sym_link_dir=`$DIRNAME $TEST_COMPILER` 30424 sym_link_file=`$BASENAME $TEST_COMPILER` 30425 cd $sym_link_dir 30426 # Use -P flag to resolve symlinks in directories. 30427 cd `$THEPWDCMD -P` 30428 sym_link_dir=`$THEPWDCMD -P` 30429 # Resolve file symlinks 30430 while test $COUNTER -lt 20; do 30431 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30432 if test "x$ISLINK" == x; then 30433 # This is not a symbolic link! We are done! 30434 break 30435 fi 30436 # Again resolve directory symlinks since the target of the just found 30437 # link could be in a different directory 30438 cd `$DIRNAME $ISLINK` 30439 sym_link_dir=`$THEPWDCMD -P` 30440 sym_link_file=`$BASENAME $ISLINK` 30441 let COUNTER=COUNTER+1 30442 done 30443 cd $STARTDIR 30444 TEST_COMPILER=$sym_link_dir/$sym_link_file 30445 fi 30446 fi 30447 30448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 30449 $as_echo "$TEST_COMPILER" >&6; } 30450 fi 30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 30452 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 30453 30454 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 30455 if test "x$COMPILER_BASENAME" = "xccache"; then 30456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 30457 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 30458 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 30459 # We want to control ccache invocation ourselves, so ignore this cc and try 30460 # searching again. 30461 30462 # Remove the path to the fake ccache cc from the PATH 30463 RETRY_COMPILER_SAVED_PATH="$PATH" 30464 COMPILER_DIRNAME=`$DIRNAME $CXX` 30465 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 30466 30467 # Try again looking for our compiler 30468 if test -n "$ac_tool_prefix"; then 30469 for ac_prog in $TOOLCHAIN_CXX_BINARY 30470 do 30471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30474 $as_echo_n "checking for $ac_word... " >&6; } 30475 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 30476 $as_echo_n "(cached) " >&6 30477 else 30478 if test -n "$PROPER_COMPILER_CXX"; then 30479 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 30480 else 30481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30482 for as_dir in $PATH 30483 do 30484 IFS=$as_save_IFS 30485 test -z "$as_dir" && as_dir=. 30486 for ac_exec_ext in '' $ac_executable_extensions; do 30487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30488 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 30489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30490 break 2 30491 fi 30492 done 30493 done 30494 IFS=$as_save_IFS 30495 30496 fi 30497 fi 30498 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 30499 if test -n "$PROPER_COMPILER_CXX"; then 30500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30501 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30502 else 30503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30504 $as_echo "no" >&6; } 30505 fi 30506 30507 30508 test -n "$PROPER_COMPILER_CXX" && break 30509 done 30510 fi 30511 if test -z "$PROPER_COMPILER_CXX"; then 30512 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 30513 for ac_prog in $TOOLCHAIN_CXX_BINARY 30514 do 30515 # Extract the first word of "$ac_prog", so it can be a program name with args. 30516 set dummy $ac_prog; ac_word=$2 30517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30518 $as_echo_n "checking for $ac_word... " >&6; } 30519 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 30520 $as_echo_n "(cached) " >&6 30521 else 30522 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30523 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 30524 else 30525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30526 for as_dir in $PATH 30527 do 30528 IFS=$as_save_IFS 30529 test -z "$as_dir" && as_dir=. 30530 for ac_exec_ext in '' $ac_executable_extensions; do 30531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30532 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 30533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30534 break 2 30535 fi 30536 done 30537 done 30538 IFS=$as_save_IFS 30539 30540 fi 30541 fi 30542 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 30543 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 30545 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 30546 else 30547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30548 $as_echo "no" >&6; } 30549 fi 30550 30551 30552 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 30553 done 30554 30555 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 30556 PROPER_COMPILER_CXX="" 30557 else 30558 case $cross_compiling:$ac_tool_warned in 30559 yes:) 30560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30562 ac_tool_warned=yes ;; 30563 esac 30564 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 30565 fi 30566 fi 30567 30568 30569 # Only process if variable expands to non-empty 30570 30571 if test "x$PROPER_COMPILER_CXX" != x; then 30572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30573 30574 # First separate the path from the arguments. This will split at the first 30575 # space. 30576 complete="$PROPER_COMPILER_CXX" 30577 path="${complete%% *}" 30578 tmp="$complete EOL" 30579 arguments="${tmp#* }" 30580 30581 # Input might be given as Windows format, start by converting to 30582 # unix format. 30583 new_path=`$CYGPATH -u "$path"` 30584 30585 # Now try to locate executable using which 30586 new_path=`$WHICH "$new_path" 2> /dev/null` 30587 # bat and cmd files are not always considered executable in cygwin causing which 30588 # to not find them 30589 if test "x$new_path" = x \ 30590 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30591 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30592 new_path=`$CYGPATH -u "$path"` 30593 fi 30594 if test "x$new_path" = x; then 30595 # Oops. Which didn't find the executable. 30596 # The splitting of arguments from the executable at a space might have been incorrect, 30597 # since paths with space are more likely in Windows. Give it another try with the whole 30598 # argument. 30599 path="$complete" 30600 arguments="EOL" 30601 new_path=`$CYGPATH -u "$path"` 30602 new_path=`$WHICH "$new_path" 2> /dev/null` 30603 # bat and cmd files are not always considered executable in cygwin causing which 30604 # to not find them 30605 if test "x$new_path" = x \ 30606 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30607 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30608 new_path=`$CYGPATH -u "$path"` 30609 fi 30610 if test "x$new_path" = x; then 30611 # It's still not found. Now this is an unrecoverable error. 30612 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30613 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30614 has_space=`$ECHO "$complete" | $GREP " "` 30615 if test "x$has_space" != x; then 30616 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30617 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30618 fi 30619 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30620 fi 30621 fi 30622 30623 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30624 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30625 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30626 # "foo.exe" is OK but "foo" is an error. 30627 # 30628 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30629 # It is also a way to make sure we got the proper file name for the real test later on. 30630 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30631 if test "x$test_shortpath" = x; then 30632 # Short path failed, file does not exist as specified. 30633 # Try adding .exe or .cmd 30634 if test -f "${new_path}.exe"; then 30635 input_to_shortpath="${new_path}.exe" 30636 elif test -f "${new_path}.cmd"; then 30637 input_to_shortpath="${new_path}.cmd" 30638 else 30639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 30640 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 30641 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30642 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30643 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30644 fi 30645 else 30646 input_to_shortpath="$new_path" 30647 fi 30648 30649 # Call helper function which possibly converts this using DOS-style short mode. 30650 # If so, the updated path is stored in $new_path. 30651 new_path="$input_to_shortpath" 30652 30653 input_path="$input_to_shortpath" 30654 # Check if we need to convert this using DOS-style short mode. If the path 30655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30656 # take no chances and rewrite it. 30657 # Note: m4 eats our [], so we need to use [ and ] instead. 30658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30659 if test "x$has_forbidden_chars" != x; then 30660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30661 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30662 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30663 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30664 # Going to short mode and back again did indeed matter. Since short mode is 30665 # case insensitive, let's make it lowercase to improve readability. 30666 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30667 # Now convert it back to Unix-stile (cygpath) 30668 input_path=`$CYGPATH -u "$shortmode_path"` 30669 new_path="$input_path" 30670 fi 30671 fi 30672 30673 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30674 if test "x$test_cygdrive_prefix" = x; then 30675 # As a simple fix, exclude /usr/bin since it's not a real path. 30676 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30677 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30678 # a path prefixed by /cygdrive for fixpath to work. 30679 new_path="$CYGWIN_ROOT_PATH$input_path" 30680 fi 30681 fi 30682 30683 # remove trailing .exe if any 30684 new_path="${new_path/%.exe/}" 30685 30686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30687 30688 # First separate the path from the arguments. This will split at the first 30689 # space. 30690 complete="$PROPER_COMPILER_CXX" 30691 path="${complete%% *}" 30692 tmp="$complete EOL" 30693 arguments="${tmp#* }" 30694 30695 # Input might be given as Windows format, start by converting to 30696 # unix format. 30697 new_path="$path" 30698 30699 windows_path="$new_path" 30700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30701 unix_path=`$CYGPATH -u "$windows_path"` 30702 new_path="$unix_path" 30703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30705 new_path="$unix_path" 30706 fi 30707 30708 30709 # Now try to locate executable using which 30710 new_path=`$WHICH "$new_path" 2> /dev/null` 30711 30712 if test "x$new_path" = x; then 30713 # Oops. Which didn't find the executable. 30714 # The splitting of arguments from the executable at a space might have been incorrect, 30715 # since paths with space are more likely in Windows. Give it another try with the whole 30716 # argument. 30717 path="$complete" 30718 arguments="EOL" 30719 new_path="$path" 30720 30721 windows_path="$new_path" 30722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30723 unix_path=`$CYGPATH -u "$windows_path"` 30724 new_path="$unix_path" 30725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30726 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30727 new_path="$unix_path" 30728 fi 30729 30730 30731 new_path=`$WHICH "$new_path" 2> /dev/null` 30732 # bat and cmd files are not always considered executable in MSYS causing which 30733 # to not find them 30734 if test "x$new_path" = x \ 30735 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30736 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30737 new_path="$path" 30738 30739 windows_path="$new_path" 30740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30741 unix_path=`$CYGPATH -u "$windows_path"` 30742 new_path="$unix_path" 30743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30745 new_path="$unix_path" 30746 fi 30747 30748 fi 30749 30750 if test "x$new_path" = x; then 30751 # It's still not found. Now this is an unrecoverable error. 30752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30753 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30754 has_space=`$ECHO "$complete" | $GREP " "` 30755 if test "x$has_space" != x; then 30756 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30757 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30758 fi 30759 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30760 fi 30761 fi 30762 30763 # Now new_path has a complete unix path to the binary 30764 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30765 # Keep paths in /bin as-is, but remove trailing .exe if any 30766 new_path="${new_path/%.exe/}" 30767 # Do not save /bin paths to all_fixpath_prefixes! 30768 else 30769 # Not in mixed or Windows style, start by that. 30770 new_path=`cmd //c echo $new_path` 30771 30772 input_path="$new_path" 30773 # Check if we need to convert this using DOS-style short mode. If the path 30774 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30775 # take no chances and rewrite it. 30776 # Note: m4 eats our [], so we need to use [ and ] instead. 30777 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30778 if test "x$has_forbidden_chars" != x; then 30779 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30780 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30781 fi 30782 30783 # Output is in $new_path 30784 30785 windows_path="$new_path" 30786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30787 unix_path=`$CYGPATH -u "$windows_path"` 30788 new_path="$unix_path" 30789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30790 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30791 new_path="$unix_path" 30792 fi 30793 30794 # remove trailing .exe if any 30795 new_path="${new_path/%.exe/}" 30796 30797 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30798 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30799 fi 30800 30801 else 30802 # We're on a unix platform. Hooray! :) 30803 # First separate the path from the arguments. This will split at the first 30804 # space. 30805 complete="$PROPER_COMPILER_CXX" 30806 path="${complete%% *}" 30807 tmp="$complete EOL" 30808 arguments="${tmp#* }" 30809 30810 # Cannot rely on the command "which" here since it doesn't always work. 30811 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30812 if test -z "$is_absolute_path"; then 30813 # Path to executable is not absolute. Find it. 30814 IFS_save="$IFS" 30815 IFS=: 30816 for p in $PATH; do 30817 if test -f "$p/$path" && test -x "$p/$path"; then 30818 new_path="$p/$path" 30819 break 30820 fi 30821 done 30822 IFS="$IFS_save" 30823 else 30824 # This is an absolute path, we can use it without further modifications. 30825 new_path="$path" 30826 fi 30827 30828 if test "x$new_path" = x; then 30829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30830 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30831 has_space=`$ECHO "$complete" | $GREP " "` 30832 if test "x$has_space" != x; then 30833 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30834 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30835 fi 30836 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30837 fi 30838 fi 30839 30840 # Now join together the path and the arguments once again 30841 if test "x$arguments" != xEOL; then 30842 new_complete="$new_path ${arguments% *}" 30843 else 30844 new_complete="$new_path" 30845 fi 30846 30847 if test "x$complete" != "x$new_complete"; then 30848 PROPER_COMPILER_CXX="$new_complete" 30849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30850 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30851 fi 30852 fi 30853 30854 PATH="$RETRY_COMPILER_SAVED_PATH" 30855 30856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30857 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30858 30859 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30860 # Follow a chain of symbolic links. Use readlink 30861 # where it exists, else fall back to horribly 30862 # complicated shell code. 30863 if test "x$READLINK_TESTED" != yes; then 30864 # On MacOSX there is a readlink tool with a different 30865 # purpose than the GNU readlink tool. Check the found readlink. 30866 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30867 if test "x$ISGNU" = x; then 30868 # A readlink that we do not know how to use. 30869 # Are there other non-GNU readlinks out there? 30870 READLINK_TESTED=yes 30871 READLINK= 30872 fi 30873 fi 30874 30875 if test "x$READLINK" != x; then 30876 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30877 else 30878 # Save the current directory for restoring afterwards 30879 STARTDIR=$PWD 30880 COUNTER=0 30881 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30882 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30883 cd $sym_link_dir 30884 # Use -P flag to resolve symlinks in directories. 30885 cd `$THEPWDCMD -P` 30886 sym_link_dir=`$THEPWDCMD -P` 30887 # Resolve file symlinks 30888 while test $COUNTER -lt 20; do 30889 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30890 if test "x$ISLINK" == x; then 30891 # This is not a symbolic link! We are done! 30892 break 30893 fi 30894 # Again resolve directory symlinks since the target of the just found 30895 # link could be in a different directory 30896 cd `$DIRNAME $ISLINK` 30897 sym_link_dir=`$THEPWDCMD -P` 30898 sym_link_file=`$BASENAME $ISLINK` 30899 let COUNTER=COUNTER+1 30900 done 30901 cd $STARTDIR 30902 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30903 fi 30904 fi 30905 30906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30907 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30908 CXX="$PROPER_COMPILER_CXX" 30909 else 30910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30911 $as_echo "no, keeping CXX" >&6; } 30912 fi 30913 30914 30915 COMPILER=$CXX 30916 COMPILER_NAME=$COMPILER_NAME 30917 30918 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30919 # cc -V output typically looks like 30920 # cc: Sun C 5.12 Linux_i386 2011/11/16 30921 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30922 # Check that this is likely to be the Solaris Studio cc. 30923 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30924 if test $? -ne 0; then 30925 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30926 { $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 30927 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30928 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30929 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30930 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30931 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30932 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30933 fi 30934 # Remove usage instructions (if present), and 30935 # collapse compiler output into a single line 30936 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30937 $SED -e 's/ *[Uu]sage:.*//'` 30938 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30939 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30940 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30941 # xlc -qversion output typically looks like 30942 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30943 # Version: 11.01.0000.0015 30944 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30945 # Check that this is likely to be the IBM XL C compiler. 30946 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30947 if test $? -ne 0; then 30948 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30949 { $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 30950 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30951 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30952 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30953 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30954 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30955 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30956 fi 30957 # Collapse compiler output into a single line 30958 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30959 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30960 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30961 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30962 # There is no specific version flag, but all output starts with a version string. 30963 # First line typically looks something like: 30964 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30965 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30966 # Check that this is likely to be Microsoft CL.EXE. 30967 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30968 if test $? -ne 0; then 30969 { $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 30970 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30971 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30972 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30973 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30974 fi 30975 # Collapse compiler output into a single line 30976 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30977 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30978 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30979 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30980 # gcc --version output typically looks like 30981 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30982 # Copyright (C) 2013 Free Software Foundation, Inc. 30983 # This is free software; see the source for copying conditions. There is NO 30984 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30985 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30986 # Check that this is likely to be GCC. 30987 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30988 if test $? -ne 0; then 30989 { $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 30990 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30991 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30992 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30993 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30994 fi 30995 # Remove Copyright and legalese from version string, and 30996 # collapse into a single line 30997 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30998 $SED -e 's/ *Copyright .*//'` 30999 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31000 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 31001 elif test "x$TOOLCHAIN_TYPE" = xclang; then 31002 # clang --version output typically looks like 31003 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 31004 # clang version 3.3 (tags/RELEASE_33/final) 31005 # or 31006 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 31007 # Target: x86_64-pc-linux-gnu 31008 # Thread model: posix 31009 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 31010 # Check that this is likely to be clang 31011 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 31012 if test $? -ne 0; then 31013 { $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 31014 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 31015 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 31016 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 31017 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 31018 fi 31019 # Collapse compiler output into a single line 31020 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 31021 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31022 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 31023 else 31024 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 31025 fi 31026 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 31027 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 31028 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 31029 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 31030 31031 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 31032 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 31033 31034 31035 # Now that we have resolved CXX ourself, let autoconf have its go at it 31036 ac_ext=cpp 31037 ac_cpp='$CXXCPP $CPPFLAGS' 31038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31041 if test -z "$CXX"; then 31042 if test -n "$CCC"; then 31043 CXX=$CCC 31044 else 31045 if test -n "$ac_tool_prefix"; then 31046 for ac_prog in $CXX 31047 do 31048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31051 $as_echo_n "checking for $ac_word... " >&6; } 31052 if ${ac_cv_prog_CXX+:} false; then : 31053 $as_echo_n "(cached) " >&6 31054 else 31055 if test -n "$CXX"; then 31056 ac_cv_prog_CXX="$CXX" # Let the user override the test. 31057 else 31058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31059 for as_dir in $PATH 31060 do 31061 IFS=$as_save_IFS 31062 test -z "$as_dir" && as_dir=. 31063 for ac_exec_ext in '' $ac_executable_extensions; do 31064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31065 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 31066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31067 break 2 31068 fi 31069 done 31070 done 31071 IFS=$as_save_IFS 31072 31073 fi 31074 fi 31075 CXX=$ac_cv_prog_CXX 31076 if test -n "$CXX"; then 31077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 31078 $as_echo "$CXX" >&6; } 31079 else 31080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31081 $as_echo "no" >&6; } 31082 fi 31083 31084 31085 test -n "$CXX" && break 31086 done 31087 fi 31088 if test -z "$CXX"; then 31089 ac_ct_CXX=$CXX 31090 for ac_prog in $CXX 31091 do 31092 # Extract the first word of "$ac_prog", so it can be a program name with args. 31093 set dummy $ac_prog; ac_word=$2 31094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31095 $as_echo_n "checking for $ac_word... " >&6; } 31096 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 31097 $as_echo_n "(cached) " >&6 31098 else 31099 if test -n "$ac_ct_CXX"; then 31100 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 31101 else 31102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31103 for as_dir in $PATH 31104 do 31105 IFS=$as_save_IFS 31106 test -z "$as_dir" && as_dir=. 31107 for ac_exec_ext in '' $ac_executable_extensions; do 31108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31109 ac_cv_prog_ac_ct_CXX="$ac_prog" 31110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31111 break 2 31112 fi 31113 done 31114 done 31115 IFS=$as_save_IFS 31116 31117 fi 31118 fi 31119 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 31120 if test -n "$ac_ct_CXX"; then 31121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 31122 $as_echo "$ac_ct_CXX" >&6; } 31123 else 31124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31125 $as_echo "no" >&6; } 31126 fi 31127 31128 31129 test -n "$ac_ct_CXX" && break 31130 done 31131 31132 if test "x$ac_ct_CXX" = x; then 31133 CXX="g++" 31134 else 31135 case $cross_compiling:$ac_tool_warned in 31136 yes:) 31137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31139 ac_tool_warned=yes ;; 31140 esac 31141 CXX=$ac_ct_CXX 31142 fi 31143 fi 31144 31145 fi 31146 fi 31147 # Provide some information about the compiler. 31148 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 31149 set X $ac_compile 31150 ac_compiler=$2 31151 for ac_option in --version -v -V -qversion; do 31152 { { ac_try="$ac_compiler $ac_option >&5" 31153 case "(($ac_try" in 31154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31155 *) ac_try_echo=$ac_try;; 31156 esac 31157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31158 $as_echo "$ac_try_echo"; } >&5 31159 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 31160 ac_status=$? 31161 if test -s conftest.err; then 31162 sed '10a\ 31163 ... rest of stderr output deleted ... 31164 10q' conftest.err >conftest.er1 31165 cat conftest.er1 >&5 31166 fi 31167 rm -f conftest.er1 conftest.err 31168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31169 test $ac_status = 0; } 31170 done 31171 31172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 31173 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 31174 if ${ac_cv_cxx_compiler_gnu+:} false; then : 31175 $as_echo_n "(cached) " >&6 31176 else 31177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31178 /* end confdefs.h. */ 31179 31180 int 31181 main () 31182 { 31183 #ifndef __GNUC__ 31184 choke me 31185 #endif 31186 31187 ; 31188 return 0; 31189 } 31190 _ACEOF 31191 if ac_fn_cxx_try_compile "$LINENO"; then : 31192 ac_compiler_gnu=yes 31193 else 31194 ac_compiler_gnu=no 31195 fi 31196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31197 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 31198 31199 fi 31200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 31201 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 31202 if test $ac_compiler_gnu = yes; then 31203 GXX=yes 31204 else 31205 GXX= 31206 fi 31207 ac_test_CXXFLAGS=${CXXFLAGS+set} 31208 ac_save_CXXFLAGS=$CXXFLAGS 31209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 31210 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 31211 if ${ac_cv_prog_cxx_g+:} false; then : 31212 $as_echo_n "(cached) " >&6 31213 else 31214 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 31215 ac_cxx_werror_flag=yes 31216 ac_cv_prog_cxx_g=no 31217 CXXFLAGS="-g" 31218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31219 /* end confdefs.h. */ 31220 31221 int 31222 main () 31223 { 31224 31225 ; 31226 return 0; 31227 } 31228 _ACEOF 31229 if ac_fn_cxx_try_compile "$LINENO"; then : 31230 ac_cv_prog_cxx_g=yes 31231 else 31232 CXXFLAGS="" 31233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31234 /* end confdefs.h. */ 31235 31236 int 31237 main () 31238 { 31239 31240 ; 31241 return 0; 31242 } 31243 _ACEOF 31244 if ac_fn_cxx_try_compile "$LINENO"; then : 31245 31246 else 31247 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 31248 CXXFLAGS="-g" 31249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31250 /* end confdefs.h. */ 31251 31252 int 31253 main () 31254 { 31255 31256 ; 31257 return 0; 31258 } 31259 _ACEOF 31260 if ac_fn_cxx_try_compile "$LINENO"; then : 31261 ac_cv_prog_cxx_g=yes 31262 fi 31263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31264 fi 31265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31266 fi 31267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31268 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 31269 fi 31270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 31271 $as_echo "$ac_cv_prog_cxx_g" >&6; } 31272 if test "$ac_test_CXXFLAGS" = set; then 31273 CXXFLAGS=$ac_save_CXXFLAGS 31274 elif test $ac_cv_prog_cxx_g = yes; then 31275 if test "$GXX" = yes; then 31276 CXXFLAGS="-g -O2" 31277 else 31278 CXXFLAGS="-g" 31279 fi 31280 else 31281 if test "$GXX" = yes; then 31282 CXXFLAGS="-O2" 31283 else 31284 CXXFLAGS= 31285 fi 31286 fi 31287 ac_ext=cpp 31288 ac_cpp='$CXXCPP $CPPFLAGS' 31289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31292 31293 31294 # 31295 # Setup the preprocessor (CPP and CXXCPP) 31296 # 31297 ac_ext=c 31298 ac_cpp='$CPP $CPPFLAGS' 31299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31301 ac_compiler_gnu=$ac_cv_c_compiler_gnu 31302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 31303 $as_echo_n "checking how to run the C preprocessor... " >&6; } 31304 # On Suns, sometimes $CPP names a directory. 31305 if test -n "$CPP" && test -d "$CPP"; then 31306 CPP= 31307 fi 31308 if test -z "$CPP"; then 31309 if ${ac_cv_prog_CPP+:} false; then : 31310 $as_echo_n "(cached) " >&6 31311 else 31312 # Double quotes because CPP needs to be expanded 31313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 31314 do 31315 ac_preproc_ok=false 31316 for ac_c_preproc_warn_flag in '' yes 31317 do 31318 # Use a header file that comes with gcc, so configuring glibc 31319 # with a fresh cross-compiler works. 31320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31321 # <limits.h> exists even on freestanding compilers. 31322 # On the NeXT, cc -E runs the code through the compiler's parser, 31323 # not just through cpp. "Syntax error" is here to catch this case. 31324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31325 /* end confdefs.h. */ 31326 #ifdef __STDC__ 31327 # include <limits.h> 31328 #else 31329 # include <assert.h> 31330 #endif 31331 Syntax error 31332 _ACEOF 31333 if ac_fn_c_try_cpp "$LINENO"; then : 31334 31335 else 31336 # Broken: fails on valid input. 31337 continue 31338 fi 31339 rm -f conftest.err conftest.i conftest.$ac_ext 31340 31341 # OK, works on sane cases. Now check whether nonexistent headers 31342 # can be detected and how. 31343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31344 /* end confdefs.h. */ 31345 #include <ac_nonexistent.h> 31346 _ACEOF 31347 if ac_fn_c_try_cpp "$LINENO"; then : 31348 # Broken: success on invalid input. 31349 continue 31350 else 31351 # Passes both tests. 31352 ac_preproc_ok=: 31353 break 31354 fi 31355 rm -f conftest.err conftest.i conftest.$ac_ext 31356 31357 done 31358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31359 rm -f conftest.i conftest.err conftest.$ac_ext 31360 if $ac_preproc_ok; then : 31361 break 31362 fi 31363 31364 done 31365 ac_cv_prog_CPP=$CPP 31366 31367 fi 31368 CPP=$ac_cv_prog_CPP 31369 else 31370 ac_cv_prog_CPP=$CPP 31371 fi 31372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 31373 $as_echo "$CPP" >&6; } 31374 ac_preproc_ok=false 31375 for ac_c_preproc_warn_flag in '' yes 31376 do 31377 # Use a header file that comes with gcc, so configuring glibc 31378 # with a fresh cross-compiler works. 31379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31380 # <limits.h> exists even on freestanding compilers. 31381 # On the NeXT, cc -E runs the code through the compiler's parser, 31382 # not just through cpp. "Syntax error" is here to catch this case. 31383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31384 /* end confdefs.h. */ 31385 #ifdef __STDC__ 31386 # include <limits.h> 31387 #else 31388 # include <assert.h> 31389 #endif 31390 Syntax error 31391 _ACEOF 31392 if ac_fn_c_try_cpp "$LINENO"; then : 31393 31394 else 31395 # Broken: fails on valid input. 31396 continue 31397 fi 31398 rm -f conftest.err conftest.i conftest.$ac_ext 31399 31400 # OK, works on sane cases. Now check whether nonexistent headers 31401 # can be detected and how. 31402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31403 /* end confdefs.h. */ 31404 #include <ac_nonexistent.h> 31405 _ACEOF 31406 if ac_fn_c_try_cpp "$LINENO"; then : 31407 # Broken: success on invalid input. 31408 continue 31409 else 31410 # Passes both tests. 31411 ac_preproc_ok=: 31412 break 31413 fi 31414 rm -f conftest.err conftest.i conftest.$ac_ext 31415 31416 done 31417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31418 rm -f conftest.i conftest.err conftest.$ac_ext 31419 if $ac_preproc_ok; then : 31420 31421 else 31422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31424 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 31425 See \`config.log' for more details" "$LINENO" 5; } 31426 fi 31427 31428 ac_ext=cpp 31429 ac_cpp='$CXXCPP $CPPFLAGS' 31430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31433 31434 31435 # Only process if variable expands to non-empty 31436 31437 if test "x$CPP" != x; then 31438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31439 31440 # First separate the path from the arguments. This will split at the first 31441 # space. 31442 complete="$CPP" 31443 path="${complete%% *}" 31444 tmp="$complete EOL" 31445 arguments="${tmp#* }" 31446 31447 # Input might be given as Windows format, start by converting to 31448 # unix format. 31449 new_path=`$CYGPATH -u "$path"` 31450 31451 # Now try to locate executable using which 31452 new_path=`$WHICH "$new_path" 2> /dev/null` 31453 # bat and cmd files are not always considered executable in cygwin causing which 31454 # to not find them 31455 if test "x$new_path" = x \ 31456 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31457 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31458 new_path=`$CYGPATH -u "$path"` 31459 fi 31460 if test "x$new_path" = x; then 31461 # Oops. Which didn't find the executable. 31462 # The splitting of arguments from the executable at a space might have been incorrect, 31463 # since paths with space are more likely in Windows. Give it another try with the whole 31464 # argument. 31465 path="$complete" 31466 arguments="EOL" 31467 new_path=`$CYGPATH -u "$path"` 31468 new_path=`$WHICH "$new_path" 2> /dev/null` 31469 # bat and cmd files are not always considered executable in cygwin causing which 31470 # to not find them 31471 if test "x$new_path" = x \ 31472 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31473 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31474 new_path=`$CYGPATH -u "$path"` 31475 fi 31476 if test "x$new_path" = x; then 31477 # It's still not found. Now this is an unrecoverable error. 31478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31479 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31480 has_space=`$ECHO "$complete" | $GREP " "` 31481 if test "x$has_space" != x; then 31482 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31483 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31484 fi 31485 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31486 fi 31487 fi 31488 31489 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31490 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31491 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31492 # "foo.exe" is OK but "foo" is an error. 31493 # 31494 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31495 # It is also a way to make sure we got the proper file name for the real test later on. 31496 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31497 if test "x$test_shortpath" = x; then 31498 # Short path failed, file does not exist as specified. 31499 # Try adding .exe or .cmd 31500 if test -f "${new_path}.exe"; then 31501 input_to_shortpath="${new_path}.exe" 31502 elif test -f "${new_path}.cmd"; then 31503 input_to_shortpath="${new_path}.cmd" 31504 else 31505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 31506 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 31507 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31508 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31509 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31510 fi 31511 else 31512 input_to_shortpath="$new_path" 31513 fi 31514 31515 # Call helper function which possibly converts this using DOS-style short mode. 31516 # If so, the updated path is stored in $new_path. 31517 new_path="$input_to_shortpath" 31518 31519 input_path="$input_to_shortpath" 31520 # Check if we need to convert this using DOS-style short mode. If the path 31521 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31522 # take no chances and rewrite it. 31523 # Note: m4 eats our [], so we need to use [ and ] instead. 31524 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31525 if test "x$has_forbidden_chars" != x; then 31526 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31527 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31528 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31529 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31530 # Going to short mode and back again did indeed matter. Since short mode is 31531 # case insensitive, let's make it lowercase to improve readability. 31532 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31533 # Now convert it back to Unix-stile (cygpath) 31534 input_path=`$CYGPATH -u "$shortmode_path"` 31535 new_path="$input_path" 31536 fi 31537 fi 31538 31539 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31540 if test "x$test_cygdrive_prefix" = x; then 31541 # As a simple fix, exclude /usr/bin since it's not a real path. 31542 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31543 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31544 # a path prefixed by /cygdrive for fixpath to work. 31545 new_path="$CYGWIN_ROOT_PATH$input_path" 31546 fi 31547 fi 31548 31549 # remove trailing .exe if any 31550 new_path="${new_path/%.exe/}" 31551 31552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31553 31554 # First separate the path from the arguments. This will split at the first 31555 # space. 31556 complete="$CPP" 31557 path="${complete%% *}" 31558 tmp="$complete EOL" 31559 arguments="${tmp#* }" 31560 31561 # Input might be given as Windows format, start by converting to 31562 # unix format. 31563 new_path="$path" 31564 31565 windows_path="$new_path" 31566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31567 unix_path=`$CYGPATH -u "$windows_path"` 31568 new_path="$unix_path" 31569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31570 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31571 new_path="$unix_path" 31572 fi 31573 31574 31575 # Now try to locate executable using which 31576 new_path=`$WHICH "$new_path" 2> /dev/null` 31577 31578 if test "x$new_path" = x; then 31579 # Oops. Which didn't find the executable. 31580 # The splitting of arguments from the executable at a space might have been incorrect, 31581 # since paths with space are more likely in Windows. Give it another try with the whole 31582 # argument. 31583 path="$complete" 31584 arguments="EOL" 31585 new_path="$path" 31586 31587 windows_path="$new_path" 31588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31589 unix_path=`$CYGPATH -u "$windows_path"` 31590 new_path="$unix_path" 31591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31592 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31593 new_path="$unix_path" 31594 fi 31595 31596 31597 new_path=`$WHICH "$new_path" 2> /dev/null` 31598 # bat and cmd files are not always considered executable in MSYS causing which 31599 # to not find them 31600 if test "x$new_path" = x \ 31601 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31602 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31603 new_path="$path" 31604 31605 windows_path="$new_path" 31606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31607 unix_path=`$CYGPATH -u "$windows_path"` 31608 new_path="$unix_path" 31609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31610 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31611 new_path="$unix_path" 31612 fi 31613 31614 fi 31615 31616 if test "x$new_path" = x; then 31617 # It's still not found. Now this is an unrecoverable error. 31618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31619 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31620 has_space=`$ECHO "$complete" | $GREP " "` 31621 if test "x$has_space" != x; then 31622 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31623 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31624 fi 31625 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31626 fi 31627 fi 31628 31629 # Now new_path has a complete unix path to the binary 31630 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31631 # Keep paths in /bin as-is, but remove trailing .exe if any 31632 new_path="${new_path/%.exe/}" 31633 # Do not save /bin paths to all_fixpath_prefixes! 31634 else 31635 # Not in mixed or Windows style, start by that. 31636 new_path=`cmd //c echo $new_path` 31637 31638 input_path="$new_path" 31639 # Check if we need to convert this using DOS-style short mode. If the path 31640 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31641 # take no chances and rewrite it. 31642 # Note: m4 eats our [], so we need to use [ and ] instead. 31643 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31644 if test "x$has_forbidden_chars" != x; then 31645 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31646 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31647 fi 31648 31649 # Output is in $new_path 31650 31651 windows_path="$new_path" 31652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31653 unix_path=`$CYGPATH -u "$windows_path"` 31654 new_path="$unix_path" 31655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31656 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31657 new_path="$unix_path" 31658 fi 31659 31660 # remove trailing .exe if any 31661 new_path="${new_path/%.exe/}" 31662 31663 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31664 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31665 fi 31666 31667 else 31668 # We're on a unix platform. Hooray! :) 31669 # First separate the path from the arguments. This will split at the first 31670 # space. 31671 complete="$CPP" 31672 path="${complete%% *}" 31673 tmp="$complete EOL" 31674 arguments="${tmp#* }" 31675 31676 # Cannot rely on the command "which" here since it doesn't always work. 31677 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31678 if test -z "$is_absolute_path"; then 31679 # Path to executable is not absolute. Find it. 31680 IFS_save="$IFS" 31681 IFS=: 31682 for p in $PATH; do 31683 if test -f "$p/$path" && test -x "$p/$path"; then 31684 new_path="$p/$path" 31685 break 31686 fi 31687 done 31688 IFS="$IFS_save" 31689 else 31690 # This is an absolute path, we can use it without further modifications. 31691 new_path="$path" 31692 fi 31693 31694 if test "x$new_path" = x; then 31695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31696 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31697 has_space=`$ECHO "$complete" | $GREP " "` 31698 if test "x$has_space" != x; then 31699 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31700 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31701 fi 31702 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31703 fi 31704 fi 31705 31706 # Now join together the path and the arguments once again 31707 if test "x$arguments" != xEOL; then 31708 new_complete="$new_path ${arguments% *}" 31709 else 31710 new_complete="$new_path" 31711 fi 31712 31713 if test "x$complete" != "x$new_complete"; then 31714 CPP="$new_complete" 31715 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 31716 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 31717 fi 31718 fi 31719 31720 ac_ext=cpp 31721 ac_cpp='$CXXCPP $CPPFLAGS' 31722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 31726 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 31727 if test -z "$CXXCPP"; then 31728 if ${ac_cv_prog_CXXCPP+:} false; then : 31729 $as_echo_n "(cached) " >&6 31730 else 31731 # Double quotes because CXXCPP needs to be expanded 31732 for CXXCPP in "$CXX -E" "/lib/cpp" 31733 do 31734 ac_preproc_ok=false 31735 for ac_cxx_preproc_warn_flag in '' yes 31736 do 31737 # Use a header file that comes with gcc, so configuring glibc 31738 # with a fresh cross-compiler works. 31739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31740 # <limits.h> exists even on freestanding compilers. 31741 # On the NeXT, cc -E runs the code through the compiler's parser, 31742 # not just through cpp. "Syntax error" is here to catch this case. 31743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31744 /* end confdefs.h. */ 31745 #ifdef __STDC__ 31746 # include <limits.h> 31747 #else 31748 # include <assert.h> 31749 #endif 31750 Syntax error 31751 _ACEOF 31752 if ac_fn_cxx_try_cpp "$LINENO"; then : 31753 31754 else 31755 # Broken: fails on valid input. 31756 continue 31757 fi 31758 rm -f conftest.err conftest.i conftest.$ac_ext 31759 31760 # OK, works on sane cases. Now check whether nonexistent headers 31761 # can be detected and how. 31762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31763 /* end confdefs.h. */ 31764 #include <ac_nonexistent.h> 31765 _ACEOF 31766 if ac_fn_cxx_try_cpp "$LINENO"; then : 31767 # Broken: success on invalid input. 31768 continue 31769 else 31770 # Passes both tests. 31771 ac_preproc_ok=: 31772 break 31773 fi 31774 rm -f conftest.err conftest.i conftest.$ac_ext 31775 31776 done 31777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31778 rm -f conftest.i conftest.err conftest.$ac_ext 31779 if $ac_preproc_ok; then : 31780 break 31781 fi 31782 31783 done 31784 ac_cv_prog_CXXCPP=$CXXCPP 31785 31786 fi 31787 CXXCPP=$ac_cv_prog_CXXCPP 31788 else 31789 ac_cv_prog_CXXCPP=$CXXCPP 31790 fi 31791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 31792 $as_echo "$CXXCPP" >&6; } 31793 ac_preproc_ok=false 31794 for ac_cxx_preproc_warn_flag in '' yes 31795 do 31796 # Use a header file that comes with gcc, so configuring glibc 31797 # with a fresh cross-compiler works. 31798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31799 # <limits.h> exists even on freestanding compilers. 31800 # On the NeXT, cc -E runs the code through the compiler's parser, 31801 # not just through cpp. "Syntax error" is here to catch this case. 31802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31803 /* end confdefs.h. */ 31804 #ifdef __STDC__ 31805 # include <limits.h> 31806 #else 31807 # include <assert.h> 31808 #endif 31809 Syntax error 31810 _ACEOF 31811 if ac_fn_cxx_try_cpp "$LINENO"; then : 31812 31813 else 31814 # Broken: fails on valid input. 31815 continue 31816 fi 31817 rm -f conftest.err conftest.i conftest.$ac_ext 31818 31819 # OK, works on sane cases. Now check whether nonexistent headers 31820 # can be detected and how. 31821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31822 /* end confdefs.h. */ 31823 #include <ac_nonexistent.h> 31824 _ACEOF 31825 if ac_fn_cxx_try_cpp "$LINENO"; then : 31826 # Broken: success on invalid input. 31827 continue 31828 else 31829 # Passes both tests. 31830 ac_preproc_ok=: 31831 break 31832 fi 31833 rm -f conftest.err conftest.i conftest.$ac_ext 31834 31835 done 31836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31837 rm -f conftest.i conftest.err conftest.$ac_ext 31838 if $ac_preproc_ok; then : 31839 31840 else 31841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31843 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31844 See \`config.log' for more details" "$LINENO" 5; } 31845 fi 31846 31847 ac_ext=cpp 31848 ac_cpp='$CXXCPP $CPPFLAGS' 31849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31852 31853 31854 # Only process if variable expands to non-empty 31855 31856 if test "x$CXXCPP" != x; then 31857 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31858 31859 # First separate the path from the arguments. This will split at the first 31860 # space. 31861 complete="$CXXCPP" 31862 path="${complete%% *}" 31863 tmp="$complete EOL" 31864 arguments="${tmp#* }" 31865 31866 # Input might be given as Windows format, start by converting to 31867 # unix format. 31868 new_path=`$CYGPATH -u "$path"` 31869 31870 # Now try to locate executable using which 31871 new_path=`$WHICH "$new_path" 2> /dev/null` 31872 # bat and cmd files are not always considered executable in cygwin causing which 31873 # to not find them 31874 if test "x$new_path" = x \ 31875 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31876 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31877 new_path=`$CYGPATH -u "$path"` 31878 fi 31879 if test "x$new_path" = x; then 31880 # Oops. Which didn't find the executable. 31881 # The splitting of arguments from the executable at a space might have been incorrect, 31882 # since paths with space are more likely in Windows. Give it another try with the whole 31883 # argument. 31884 path="$complete" 31885 arguments="EOL" 31886 new_path=`$CYGPATH -u "$path"` 31887 new_path=`$WHICH "$new_path" 2> /dev/null` 31888 # bat and cmd files are not always considered executable in cygwin causing which 31889 # to not find them 31890 if test "x$new_path" = x \ 31891 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31892 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31893 new_path=`$CYGPATH -u "$path"` 31894 fi 31895 if test "x$new_path" = x; then 31896 # It's still not found. Now this is an unrecoverable error. 31897 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31898 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31899 has_space=`$ECHO "$complete" | $GREP " "` 31900 if test "x$has_space" != x; then 31901 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31902 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31903 fi 31904 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31905 fi 31906 fi 31907 31908 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31909 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31910 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31911 # "foo.exe" is OK but "foo" is an error. 31912 # 31913 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31914 # It is also a way to make sure we got the proper file name for the real test later on. 31915 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31916 if test "x$test_shortpath" = x; then 31917 # Short path failed, file does not exist as specified. 31918 # Try adding .exe or .cmd 31919 if test -f "${new_path}.exe"; then 31920 input_to_shortpath="${new_path}.exe" 31921 elif test -f "${new_path}.cmd"; then 31922 input_to_shortpath="${new_path}.cmd" 31923 else 31924 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31925 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31926 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31927 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31928 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31929 fi 31930 else 31931 input_to_shortpath="$new_path" 31932 fi 31933 31934 # Call helper function which possibly converts this using DOS-style short mode. 31935 # If so, the updated path is stored in $new_path. 31936 new_path="$input_to_shortpath" 31937 31938 input_path="$input_to_shortpath" 31939 # Check if we need to convert this using DOS-style short mode. If the path 31940 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31941 # take no chances and rewrite it. 31942 # Note: m4 eats our [], so we need to use [ and ] instead. 31943 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31944 if test "x$has_forbidden_chars" != x; then 31945 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31946 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31947 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31948 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31949 # Going to short mode and back again did indeed matter. Since short mode is 31950 # case insensitive, let's make it lowercase to improve readability. 31951 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31952 # Now convert it back to Unix-stile (cygpath) 31953 input_path=`$CYGPATH -u "$shortmode_path"` 31954 new_path="$input_path" 31955 fi 31956 fi 31957 31958 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31959 if test "x$test_cygdrive_prefix" = x; then 31960 # As a simple fix, exclude /usr/bin since it's not a real path. 31961 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31962 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31963 # a path prefixed by /cygdrive for fixpath to work. 31964 new_path="$CYGWIN_ROOT_PATH$input_path" 31965 fi 31966 fi 31967 31968 # remove trailing .exe if any 31969 new_path="${new_path/%.exe/}" 31970 31971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31972 31973 # First separate the path from the arguments. This will split at the first 31974 # space. 31975 complete="$CXXCPP" 31976 path="${complete%% *}" 31977 tmp="$complete EOL" 31978 arguments="${tmp#* }" 31979 31980 # Input might be given as Windows format, start by converting to 31981 # unix format. 31982 new_path="$path" 31983 31984 windows_path="$new_path" 31985 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31986 unix_path=`$CYGPATH -u "$windows_path"` 31987 new_path="$unix_path" 31988 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31989 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31990 new_path="$unix_path" 31991 fi 31992 31993 31994 # Now try to locate executable using which 31995 new_path=`$WHICH "$new_path" 2> /dev/null` 31996 31997 if test "x$new_path" = x; then 31998 # Oops. Which didn't find the executable. 31999 # The splitting of arguments from the executable at a space might have been incorrect, 32000 # since paths with space are more likely in Windows. Give it another try with the whole 32001 # argument. 32002 path="$complete" 32003 arguments="EOL" 32004 new_path="$path" 32005 32006 windows_path="$new_path" 32007 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32008 unix_path=`$CYGPATH -u "$windows_path"` 32009 new_path="$unix_path" 32010 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32011 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32012 new_path="$unix_path" 32013 fi 32014 32015 32016 new_path=`$WHICH "$new_path" 2> /dev/null` 32017 # bat and cmd files are not always considered executable in MSYS causing which 32018 # to not find them 32019 if test "x$new_path" = x \ 32020 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32021 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32022 new_path="$path" 32023 32024 windows_path="$new_path" 32025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32026 unix_path=`$CYGPATH -u "$windows_path"` 32027 new_path="$unix_path" 32028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32029 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32030 new_path="$unix_path" 32031 fi 32032 32033 fi 32034 32035 if test "x$new_path" = x; then 32036 # It's still not found. Now this is an unrecoverable error. 32037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 32038 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 32039 has_space=`$ECHO "$complete" | $GREP " "` 32040 if test "x$has_space" != x; then 32041 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32042 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32043 fi 32044 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32045 fi 32046 fi 32047 32048 # Now new_path has a complete unix path to the binary 32049 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32050 # Keep paths in /bin as-is, but remove trailing .exe if any 32051 new_path="${new_path/%.exe/}" 32052 # Do not save /bin paths to all_fixpath_prefixes! 32053 else 32054 # Not in mixed or Windows style, start by that. 32055 new_path=`cmd //c echo $new_path` 32056 32057 input_path="$new_path" 32058 # Check if we need to convert this using DOS-style short mode. If the path 32059 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32060 # take no chances and rewrite it. 32061 # Note: m4 eats our [], so we need to use [ and ] instead. 32062 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32063 if test "x$has_forbidden_chars" != x; then 32064 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32065 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32066 fi 32067 32068 # Output is in $new_path 32069 32070 windows_path="$new_path" 32071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32072 unix_path=`$CYGPATH -u "$windows_path"` 32073 new_path="$unix_path" 32074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32075 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32076 new_path="$unix_path" 32077 fi 32078 32079 # remove trailing .exe if any 32080 new_path="${new_path/%.exe/}" 32081 32082 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32083 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32084 fi 32085 32086 else 32087 # We're on a unix platform. Hooray! :) 32088 # First separate the path from the arguments. This will split at the first 32089 # space. 32090 complete="$CXXCPP" 32091 path="${complete%% *}" 32092 tmp="$complete EOL" 32093 arguments="${tmp#* }" 32094 32095 # Cannot rely on the command "which" here since it doesn't always work. 32096 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32097 if test -z "$is_absolute_path"; then 32098 # Path to executable is not absolute. Find it. 32099 IFS_save="$IFS" 32100 IFS=: 32101 for p in $PATH; do 32102 if test -f "$p/$path" && test -x "$p/$path"; then 32103 new_path="$p/$path" 32104 break 32105 fi 32106 done 32107 IFS="$IFS_save" 32108 else 32109 # This is an absolute path, we can use it without further modifications. 32110 new_path="$path" 32111 fi 32112 32113 if test "x$new_path" = x; then 32114 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 32115 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 32116 has_space=`$ECHO "$complete" | $GREP " "` 32117 if test "x$has_space" != x; then 32118 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32119 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32120 fi 32121 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32122 fi 32123 fi 32124 32125 # Now join together the path and the arguments once again 32126 if test "x$arguments" != xEOL; then 32127 new_complete="$new_path ${arguments% *}" 32128 else 32129 new_complete="$new_path" 32130 fi 32131 32132 if test "x$complete" != "x$new_complete"; then 32133 CXXCPP="$new_complete" 32134 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 32135 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 32136 fi 32137 fi 32138 32139 32140 # 32141 # Setup the linker (LD) 32142 # 32143 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32144 # In the Microsoft toolchain we have a separate LD command "link". 32145 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 32146 # a cygwin program for something completely different. 32147 # Extract the first word of "link", so it can be a program name with args. 32148 set dummy link; ac_word=$2 32149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32150 $as_echo_n "checking for $ac_word... " >&6; } 32151 if ${ac_cv_prog_LD+:} false; then : 32152 $as_echo_n "(cached) " >&6 32153 else 32154 if test -n "$LD"; then 32155 ac_cv_prog_LD="$LD" # Let the user override the test. 32156 else 32157 ac_prog_rejected=no 32158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32159 for as_dir in $PATH 32160 do 32161 IFS=$as_save_IFS 32162 test -z "$as_dir" && as_dir=. 32163 for ac_exec_ext in '' $ac_executable_extensions; do 32164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32165 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 32166 ac_prog_rejected=yes 32167 continue 32168 fi 32169 ac_cv_prog_LD="link" 32170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32171 break 2 32172 fi 32173 done 32174 done 32175 IFS=$as_save_IFS 32176 32177 if test $ac_prog_rejected = yes; then 32178 # We found a bogon in the path, so make sure we never use it. 32179 set dummy $ac_cv_prog_LD 32180 shift 32181 if test $# != 0; then 32182 # We chose a different compiler from the bogus one. 32183 # However, it has the same basename, so the bogon will be chosen 32184 # first if we set LD to just the basename; use the full file name. 32185 shift 32186 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 32187 fi 32188 fi 32189 fi 32190 fi 32191 LD=$ac_cv_prog_LD 32192 if test -n "$LD"; then 32193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 32194 $as_echo "$LD" >&6; } 32195 else 32196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32197 $as_echo "no" >&6; } 32198 fi 32199 32200 32201 32202 # Only process if variable expands to non-empty 32203 32204 if test "x$LD" != x; then 32205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32206 32207 # First separate the path from the arguments. This will split at the first 32208 # space. 32209 complete="$LD" 32210 path="${complete%% *}" 32211 tmp="$complete EOL" 32212 arguments="${tmp#* }" 32213 32214 # Input might be given as Windows format, start by converting to 32215 # unix format. 32216 new_path=`$CYGPATH -u "$path"` 32217 32218 # Now try to locate executable using which 32219 new_path=`$WHICH "$new_path" 2> /dev/null` 32220 # bat and cmd files are not always considered executable in cygwin causing which 32221 # to not find them 32222 if test "x$new_path" = x \ 32223 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32224 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32225 new_path=`$CYGPATH -u "$path"` 32226 fi 32227 if test "x$new_path" = x; then 32228 # Oops. Which didn't find the executable. 32229 # The splitting of arguments from the executable at a space might have been incorrect, 32230 # since paths with space are more likely in Windows. Give it another try with the whole 32231 # argument. 32232 path="$complete" 32233 arguments="EOL" 32234 new_path=`$CYGPATH -u "$path"` 32235 new_path=`$WHICH "$new_path" 2> /dev/null` 32236 # bat and cmd files are not always considered executable in cygwin causing which 32237 # to not find them 32238 if test "x$new_path" = x \ 32239 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32240 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32241 new_path=`$CYGPATH -u "$path"` 32242 fi 32243 if test "x$new_path" = x; then 32244 # It's still not found. Now this is an unrecoverable error. 32245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32246 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32247 has_space=`$ECHO "$complete" | $GREP " "` 32248 if test "x$has_space" != x; then 32249 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32250 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32251 fi 32252 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32253 fi 32254 fi 32255 32256 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32257 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32258 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32259 # "foo.exe" is OK but "foo" is an error. 32260 # 32261 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32262 # It is also a way to make sure we got the proper file name for the real test later on. 32263 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32264 if test "x$test_shortpath" = x; then 32265 # Short path failed, file does not exist as specified. 32266 # Try adding .exe or .cmd 32267 if test -f "${new_path}.exe"; then 32268 input_to_shortpath="${new_path}.exe" 32269 elif test -f "${new_path}.cmd"; then 32270 input_to_shortpath="${new_path}.cmd" 32271 else 32272 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 32273 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 32274 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32275 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32276 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32277 fi 32278 else 32279 input_to_shortpath="$new_path" 32280 fi 32281 32282 # Call helper function which possibly converts this using DOS-style short mode. 32283 # If so, the updated path is stored in $new_path. 32284 new_path="$input_to_shortpath" 32285 32286 input_path="$input_to_shortpath" 32287 # Check if we need to convert this using DOS-style short mode. If the path 32288 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32289 # take no chances and rewrite it. 32290 # Note: m4 eats our [], so we need to use [ and ] instead. 32291 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32292 if test "x$has_forbidden_chars" != x; then 32293 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32294 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32295 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32296 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32297 # Going to short mode and back again did indeed matter. Since short mode is 32298 # case insensitive, let's make it lowercase to improve readability. 32299 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32300 # Now convert it back to Unix-stile (cygpath) 32301 input_path=`$CYGPATH -u "$shortmode_path"` 32302 new_path="$input_path" 32303 fi 32304 fi 32305 32306 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32307 if test "x$test_cygdrive_prefix" = x; then 32308 # As a simple fix, exclude /usr/bin since it's not a real path. 32309 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32310 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32311 # a path prefixed by /cygdrive for fixpath to work. 32312 new_path="$CYGWIN_ROOT_PATH$input_path" 32313 fi 32314 fi 32315 32316 # remove trailing .exe if any 32317 new_path="${new_path/%.exe/}" 32318 32319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32320 32321 # First separate the path from the arguments. This will split at the first 32322 # space. 32323 complete="$LD" 32324 path="${complete%% *}" 32325 tmp="$complete EOL" 32326 arguments="${tmp#* }" 32327 32328 # Input might be given as Windows format, start by converting to 32329 # unix format. 32330 new_path="$path" 32331 32332 windows_path="$new_path" 32333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32334 unix_path=`$CYGPATH -u "$windows_path"` 32335 new_path="$unix_path" 32336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32337 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32338 new_path="$unix_path" 32339 fi 32340 32341 32342 # Now try to locate executable using which 32343 new_path=`$WHICH "$new_path" 2> /dev/null` 32344 32345 if test "x$new_path" = x; then 32346 # Oops. Which didn't find the executable. 32347 # The splitting of arguments from the executable at a space might have been incorrect, 32348 # since paths with space are more likely in Windows. Give it another try with the whole 32349 # argument. 32350 path="$complete" 32351 arguments="EOL" 32352 new_path="$path" 32353 32354 windows_path="$new_path" 32355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32356 unix_path=`$CYGPATH -u "$windows_path"` 32357 new_path="$unix_path" 32358 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32359 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32360 new_path="$unix_path" 32361 fi 32362 32363 32364 new_path=`$WHICH "$new_path" 2> /dev/null` 32365 # bat and cmd files are not always considered executable in MSYS causing which 32366 # to not find them 32367 if test "x$new_path" = x \ 32368 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32369 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32370 new_path="$path" 32371 32372 windows_path="$new_path" 32373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32374 unix_path=`$CYGPATH -u "$windows_path"` 32375 new_path="$unix_path" 32376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32377 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32378 new_path="$unix_path" 32379 fi 32380 32381 fi 32382 32383 if test "x$new_path" = x; then 32384 # It's still not found. Now this is an unrecoverable error. 32385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32386 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32387 has_space=`$ECHO "$complete" | $GREP " "` 32388 if test "x$has_space" != x; then 32389 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32390 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32391 fi 32392 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32393 fi 32394 fi 32395 32396 # Now new_path has a complete unix path to the binary 32397 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32398 # Keep paths in /bin as-is, but remove trailing .exe if any 32399 new_path="${new_path/%.exe/}" 32400 # Do not save /bin paths to all_fixpath_prefixes! 32401 else 32402 # Not in mixed or Windows style, start by that. 32403 new_path=`cmd //c echo $new_path` 32404 32405 input_path="$new_path" 32406 # Check if we need to convert this using DOS-style short mode. If the path 32407 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32408 # take no chances and rewrite it. 32409 # Note: m4 eats our [], so we need to use [ and ] instead. 32410 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32411 if test "x$has_forbidden_chars" != x; then 32412 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32413 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32414 fi 32415 32416 # Output is in $new_path 32417 32418 windows_path="$new_path" 32419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32420 unix_path=`$CYGPATH -u "$windows_path"` 32421 new_path="$unix_path" 32422 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32423 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32424 new_path="$unix_path" 32425 fi 32426 32427 # remove trailing .exe if any 32428 new_path="${new_path/%.exe/}" 32429 32430 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32431 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32432 fi 32433 32434 else 32435 # We're on a unix platform. Hooray! :) 32436 # First separate the path from the arguments. This will split at the first 32437 # space. 32438 complete="$LD" 32439 path="${complete%% *}" 32440 tmp="$complete EOL" 32441 arguments="${tmp#* }" 32442 32443 # Cannot rely on the command "which" here since it doesn't always work. 32444 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32445 if test -z "$is_absolute_path"; then 32446 # Path to executable is not absolute. Find it. 32447 IFS_save="$IFS" 32448 IFS=: 32449 for p in $PATH; do 32450 if test -f "$p/$path" && test -x "$p/$path"; then 32451 new_path="$p/$path" 32452 break 32453 fi 32454 done 32455 IFS="$IFS_save" 32456 else 32457 # This is an absolute path, we can use it without further modifications. 32458 new_path="$path" 32459 fi 32460 32461 if test "x$new_path" = x; then 32462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32463 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32464 has_space=`$ECHO "$complete" | $GREP " "` 32465 if test "x$has_space" != x; then 32466 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32467 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32468 fi 32469 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32470 fi 32471 fi 32472 32473 # Now join together the path and the arguments once again 32474 if test "x$arguments" != xEOL; then 32475 new_complete="$new_path ${arguments% *}" 32476 else 32477 new_complete="$new_path" 32478 fi 32479 32480 if test "x$complete" != "x$new_complete"; then 32481 LD="$new_complete" 32482 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 32483 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 32484 fi 32485 fi 32486 32487 # Verify that we indeed succeeded with this trick. 32488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 32489 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 32490 "$LD" --version > /dev/null 32491 if test $? -eq 0 ; then 32492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32493 $as_echo "no" >&6; } 32494 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 32495 else 32496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32497 $as_echo "yes" >&6; } 32498 fi 32499 LDCXX="$LD" 32500 else 32501 # All other toolchains use the compiler to link. 32502 LD="$CC" 32503 LDCXX="$CXX" 32504 fi 32505 32506 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 32507 32508 32509 # 32510 # Setup the assembler (AS) 32511 # 32512 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32513 # FIXME: should this really be solaris, or solstudio? 32514 32515 32516 # Publish this variable in the help. 32517 32518 32519 if test "x$AS" = x; then 32520 # The variable is not set by user, try to locate tool using the code snippet 32521 for ac_prog in as 32522 do 32523 # Extract the first word of "$ac_prog", so it can be a program name with args. 32524 set dummy $ac_prog; ac_word=$2 32525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32526 $as_echo_n "checking for $ac_word... " >&6; } 32527 if ${ac_cv_path_AS+:} false; then : 32528 $as_echo_n "(cached) " >&6 32529 else 32530 case $AS in 32531 [\\/]* | ?:[\\/]*) 32532 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32533 ;; 32534 *) 32535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32536 for as_dir in $PATH 32537 do 32538 IFS=$as_save_IFS 32539 test -z "$as_dir" && as_dir=. 32540 for ac_exec_ext in '' $ac_executable_extensions; do 32541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32542 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32544 break 2 32545 fi 32546 done 32547 done 32548 IFS=$as_save_IFS 32549 32550 ;; 32551 esac 32552 fi 32553 AS=$ac_cv_path_AS 32554 if test -n "$AS"; then 32555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32556 $as_echo "$AS" >&6; } 32557 else 32558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32559 $as_echo "no" >&6; } 32560 fi 32561 32562 32563 test -n "$AS" && break 32564 done 32565 32566 else 32567 # The variable is set, but is it from the command line or the environment? 32568 32569 # Try to remove the string !AS! from our list. 32570 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 32571 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32572 # If it failed, the variable was not from the command line. Ignore it, 32573 # but warn the user (except for BASH, which is always set by the calling BASH). 32574 if test "xAS" != xBASH; then 32575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 32576 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 32577 fi 32578 # Try to locate tool using the code snippet 32579 for ac_prog in as 32580 do 32581 # Extract the first word of "$ac_prog", so it can be a program name with args. 32582 set dummy $ac_prog; ac_word=$2 32583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32584 $as_echo_n "checking for $ac_word... " >&6; } 32585 if ${ac_cv_path_AS+:} false; then : 32586 $as_echo_n "(cached) " >&6 32587 else 32588 case $AS in 32589 [\\/]* | ?:[\\/]*) 32590 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32591 ;; 32592 *) 32593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32594 for as_dir in $PATH 32595 do 32596 IFS=$as_save_IFS 32597 test -z "$as_dir" && as_dir=. 32598 for ac_exec_ext in '' $ac_executable_extensions; do 32599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32600 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32602 break 2 32603 fi 32604 done 32605 done 32606 IFS=$as_save_IFS 32607 32608 ;; 32609 esac 32610 fi 32611 AS=$ac_cv_path_AS 32612 if test -n "$AS"; then 32613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32614 $as_echo "$AS" >&6; } 32615 else 32616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32617 $as_echo "no" >&6; } 32618 fi 32619 32620 32621 test -n "$AS" && break 32622 done 32623 32624 else 32625 # If it succeeded, then it was overridden by the user. We will use it 32626 # for the tool. 32627 32628 # First remove it from the list of overridden variables, so we can test 32629 # for unknown variables in the end. 32630 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32631 32632 # Check if the provided tool contains a complete path. 32633 tool_specified="$AS" 32634 tool_basename="${tool_specified##*/}" 32635 if test "x$tool_basename" = "x$tool_specified"; then 32636 # A command without a complete path is provided, search $PATH. 32637 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 32638 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 32639 # Extract the first word of "$tool_basename", so it can be a program name with args. 32640 set dummy $tool_basename; ac_word=$2 32641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32642 $as_echo_n "checking for $ac_word... " >&6; } 32643 if ${ac_cv_path_AS+:} false; then : 32644 $as_echo_n "(cached) " >&6 32645 else 32646 case $AS in 32647 [\\/]* | ?:[\\/]*) 32648 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32649 ;; 32650 *) 32651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32652 for as_dir in $PATH 32653 do 32654 IFS=$as_save_IFS 32655 test -z "$as_dir" && as_dir=. 32656 for ac_exec_ext in '' $ac_executable_extensions; do 32657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32658 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32660 break 2 32661 fi 32662 done 32663 done 32664 IFS=$as_save_IFS 32665 32666 ;; 32667 esac 32668 fi 32669 AS=$ac_cv_path_AS 32670 if test -n "$AS"; then 32671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32672 $as_echo "$AS" >&6; } 32673 else 32674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32675 $as_echo "no" >&6; } 32676 fi 32677 32678 32679 if test "x$AS" = x; then 32680 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32681 fi 32682 else 32683 # Otherwise we believe it is a complete path. Use it as it is. 32684 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 32685 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 32686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 32687 $as_echo_n "checking for AS... " >&6; } 32688 if test ! -x "$tool_specified"; then 32689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32690 $as_echo "not found" >&6; } 32691 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 32692 fi 32693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32694 $as_echo "$tool_specified" >&6; } 32695 fi 32696 fi 32697 fi 32698 32699 32700 32701 # Only process if variable expands to non-empty 32702 32703 if test "x$AS" != x; then 32704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32705 32706 # First separate the path from the arguments. This will split at the first 32707 # space. 32708 complete="$AS" 32709 path="${complete%% *}" 32710 tmp="$complete EOL" 32711 arguments="${tmp#* }" 32712 32713 # Input might be given as Windows format, start by converting to 32714 # unix format. 32715 new_path=`$CYGPATH -u "$path"` 32716 32717 # Now try to locate executable using which 32718 new_path=`$WHICH "$new_path" 2> /dev/null` 32719 # bat and cmd files are not always considered executable in cygwin causing which 32720 # to not find them 32721 if test "x$new_path" = x \ 32722 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32723 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32724 new_path=`$CYGPATH -u "$path"` 32725 fi 32726 if test "x$new_path" = x; then 32727 # Oops. Which didn't find the executable. 32728 # The splitting of arguments from the executable at a space might have been incorrect, 32729 # since paths with space are more likely in Windows. Give it another try with the whole 32730 # argument. 32731 path="$complete" 32732 arguments="EOL" 32733 new_path=`$CYGPATH -u "$path"` 32734 new_path=`$WHICH "$new_path" 2> /dev/null` 32735 # bat and cmd files are not always considered executable in cygwin causing which 32736 # to not find them 32737 if test "x$new_path" = x \ 32738 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32739 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32740 new_path=`$CYGPATH -u "$path"` 32741 fi 32742 if test "x$new_path" = x; then 32743 # It's still not found. Now this is an unrecoverable error. 32744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32745 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32746 has_space=`$ECHO "$complete" | $GREP " "` 32747 if test "x$has_space" != x; then 32748 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32749 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32750 fi 32751 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32752 fi 32753 fi 32754 32755 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32756 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32757 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32758 # "foo.exe" is OK but "foo" is an error. 32759 # 32760 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32761 # It is also a way to make sure we got the proper file name for the real test later on. 32762 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32763 if test "x$test_shortpath" = x; then 32764 # Short path failed, file does not exist as specified. 32765 # Try adding .exe or .cmd 32766 if test -f "${new_path}.exe"; then 32767 input_to_shortpath="${new_path}.exe" 32768 elif test -f "${new_path}.cmd"; then 32769 input_to_shortpath="${new_path}.cmd" 32770 else 32771 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 32772 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 32773 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32774 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32775 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32776 fi 32777 else 32778 input_to_shortpath="$new_path" 32779 fi 32780 32781 # Call helper function which possibly converts this using DOS-style short mode. 32782 # If so, the updated path is stored in $new_path. 32783 new_path="$input_to_shortpath" 32784 32785 input_path="$input_to_shortpath" 32786 # Check if we need to convert this using DOS-style short mode. If the path 32787 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32788 # take no chances and rewrite it. 32789 # Note: m4 eats our [], so we need to use [ and ] instead. 32790 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32791 if test "x$has_forbidden_chars" != x; then 32792 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32793 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32794 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32795 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32796 # Going to short mode and back again did indeed matter. Since short mode is 32797 # case insensitive, let's make it lowercase to improve readability. 32798 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32799 # Now convert it back to Unix-stile (cygpath) 32800 input_path=`$CYGPATH -u "$shortmode_path"` 32801 new_path="$input_path" 32802 fi 32803 fi 32804 32805 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32806 if test "x$test_cygdrive_prefix" = x; then 32807 # As a simple fix, exclude /usr/bin since it's not a real path. 32808 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32809 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32810 # a path prefixed by /cygdrive for fixpath to work. 32811 new_path="$CYGWIN_ROOT_PATH$input_path" 32812 fi 32813 fi 32814 32815 # remove trailing .exe if any 32816 new_path="${new_path/%.exe/}" 32817 32818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32819 32820 # First separate the path from the arguments. This will split at the first 32821 # space. 32822 complete="$AS" 32823 path="${complete%% *}" 32824 tmp="$complete EOL" 32825 arguments="${tmp#* }" 32826 32827 # Input might be given as Windows format, start by converting to 32828 # unix format. 32829 new_path="$path" 32830 32831 windows_path="$new_path" 32832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32833 unix_path=`$CYGPATH -u "$windows_path"` 32834 new_path="$unix_path" 32835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32837 new_path="$unix_path" 32838 fi 32839 32840 32841 # Now try to locate executable using which 32842 new_path=`$WHICH "$new_path" 2> /dev/null` 32843 32844 if test "x$new_path" = x; then 32845 # Oops. Which didn't find the executable. 32846 # The splitting of arguments from the executable at a space might have been incorrect, 32847 # since paths with space are more likely in Windows. Give it another try with the whole 32848 # argument. 32849 path="$complete" 32850 arguments="EOL" 32851 new_path="$path" 32852 32853 windows_path="$new_path" 32854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32855 unix_path=`$CYGPATH -u "$windows_path"` 32856 new_path="$unix_path" 32857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32858 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32859 new_path="$unix_path" 32860 fi 32861 32862 32863 new_path=`$WHICH "$new_path" 2> /dev/null` 32864 # bat and cmd files are not always considered executable in MSYS causing which 32865 # to not find them 32866 if test "x$new_path" = x \ 32867 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32868 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32869 new_path="$path" 32870 32871 windows_path="$new_path" 32872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32873 unix_path=`$CYGPATH -u "$windows_path"` 32874 new_path="$unix_path" 32875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32876 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32877 new_path="$unix_path" 32878 fi 32879 32880 fi 32881 32882 if test "x$new_path" = x; then 32883 # It's still not found. Now this is an unrecoverable error. 32884 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32885 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32886 has_space=`$ECHO "$complete" | $GREP " "` 32887 if test "x$has_space" != x; then 32888 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32889 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32890 fi 32891 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32892 fi 32893 fi 32894 32895 # Now new_path has a complete unix path to the binary 32896 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32897 # Keep paths in /bin as-is, but remove trailing .exe if any 32898 new_path="${new_path/%.exe/}" 32899 # Do not save /bin paths to all_fixpath_prefixes! 32900 else 32901 # Not in mixed or Windows style, start by that. 32902 new_path=`cmd //c echo $new_path` 32903 32904 input_path="$new_path" 32905 # Check if we need to convert this using DOS-style short mode. If the path 32906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32907 # take no chances and rewrite it. 32908 # Note: m4 eats our [], so we need to use [ and ] instead. 32909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32910 if test "x$has_forbidden_chars" != x; then 32911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32912 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32913 fi 32914 32915 # Output is in $new_path 32916 32917 windows_path="$new_path" 32918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32919 unix_path=`$CYGPATH -u "$windows_path"` 32920 new_path="$unix_path" 32921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32923 new_path="$unix_path" 32924 fi 32925 32926 # remove trailing .exe if any 32927 new_path="${new_path/%.exe/}" 32928 32929 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32930 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32931 fi 32932 32933 else 32934 # We're on a unix platform. Hooray! :) 32935 # First separate the path from the arguments. This will split at the first 32936 # space. 32937 complete="$AS" 32938 path="${complete%% *}" 32939 tmp="$complete EOL" 32940 arguments="${tmp#* }" 32941 32942 # Cannot rely on the command "which" here since it doesn't always work. 32943 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32944 if test -z "$is_absolute_path"; then 32945 # Path to executable is not absolute. Find it. 32946 IFS_save="$IFS" 32947 IFS=: 32948 for p in $PATH; do 32949 if test -f "$p/$path" && test -x "$p/$path"; then 32950 new_path="$p/$path" 32951 break 32952 fi 32953 done 32954 IFS="$IFS_save" 32955 else 32956 # This is an absolute path, we can use it without further modifications. 32957 new_path="$path" 32958 fi 32959 32960 if test "x$new_path" = x; then 32961 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32962 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32963 has_space=`$ECHO "$complete" | $GREP " "` 32964 if test "x$has_space" != x; then 32965 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32966 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32967 fi 32968 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32969 fi 32970 fi 32971 32972 # Now join together the path and the arguments once again 32973 if test "x$arguments" != xEOL; then 32974 new_complete="$new_path ${arguments% *}" 32975 else 32976 new_complete="$new_path" 32977 fi 32978 32979 if test "x$complete" != "x$new_complete"; then 32980 AS="$new_complete" 32981 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32982 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32983 fi 32984 fi 32985 32986 else 32987 # FIXME: is this correct for microsoft? 32988 AS="$CC -c" 32989 fi 32990 32991 32992 # 32993 # Setup the archiver (AR) 32994 # 32995 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32996 # The corresponding ar tool is lib.exe (used to create static libraries) 32997 # Extract the first word of "lib", so it can be a program name with args. 32998 set dummy lib; ac_word=$2 32999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33000 $as_echo_n "checking for $ac_word... " >&6; } 33001 if ${ac_cv_prog_AR+:} false; then : 33002 $as_echo_n "(cached) " >&6 33003 else 33004 if test -n "$AR"; then 33005 ac_cv_prog_AR="$AR" # Let the user override the test. 33006 else 33007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33008 for as_dir in $PATH 33009 do 33010 IFS=$as_save_IFS 33011 test -z "$as_dir" && as_dir=. 33012 for ac_exec_ext in '' $ac_executable_extensions; do 33013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33014 ac_cv_prog_AR="lib" 33015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33016 break 2 33017 fi 33018 done 33019 done 33020 IFS=$as_save_IFS 33021 33022 fi 33023 fi 33024 AR=$ac_cv_prog_AR 33025 if test -n "$AR"; then 33026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33027 $as_echo "$AR" >&6; } 33028 else 33029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33030 $as_echo "no" >&6; } 33031 fi 33032 33033 33034 else 33035 33036 33037 # Publish this variable in the help. 33038 33039 33040 if test "x$AR" = x; then 33041 # The variable is not set by user, try to locate tool using the code snippet 33042 if test -n "$ac_tool_prefix"; then 33043 for ac_prog in ar 33044 do 33045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33048 $as_echo_n "checking for $ac_word... " >&6; } 33049 if ${ac_cv_prog_AR+:} false; then : 33050 $as_echo_n "(cached) " >&6 33051 else 33052 if test -n "$AR"; then 33053 ac_cv_prog_AR="$AR" # Let the user override the test. 33054 else 33055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33056 for as_dir in $PATH 33057 do 33058 IFS=$as_save_IFS 33059 test -z "$as_dir" && as_dir=. 33060 for ac_exec_ext in '' $ac_executable_extensions; do 33061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33062 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 33063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33064 break 2 33065 fi 33066 done 33067 done 33068 IFS=$as_save_IFS 33069 33070 fi 33071 fi 33072 AR=$ac_cv_prog_AR 33073 if test -n "$AR"; then 33074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33075 $as_echo "$AR" >&6; } 33076 else 33077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33078 $as_echo "no" >&6; } 33079 fi 33080 33081 33082 test -n "$AR" && break 33083 done 33084 fi 33085 if test -z "$AR"; then 33086 ac_ct_AR=$AR 33087 for ac_prog in ar 33088 do 33089 # Extract the first word of "$ac_prog", so it can be a program name with args. 33090 set dummy $ac_prog; ac_word=$2 33091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33092 $as_echo_n "checking for $ac_word... " >&6; } 33093 if ${ac_cv_prog_ac_ct_AR+:} false; then : 33094 $as_echo_n "(cached) " >&6 33095 else 33096 if test -n "$ac_ct_AR"; then 33097 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 33098 else 33099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33100 for as_dir in $PATH 33101 do 33102 IFS=$as_save_IFS 33103 test -z "$as_dir" && as_dir=. 33104 for ac_exec_ext in '' $ac_executable_extensions; do 33105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33106 ac_cv_prog_ac_ct_AR="$ac_prog" 33107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33108 break 2 33109 fi 33110 done 33111 done 33112 IFS=$as_save_IFS 33113 33114 fi 33115 fi 33116 ac_ct_AR=$ac_cv_prog_ac_ct_AR 33117 if test -n "$ac_ct_AR"; then 33118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 33119 $as_echo "$ac_ct_AR" >&6; } 33120 else 33121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33122 $as_echo "no" >&6; } 33123 fi 33124 33125 33126 test -n "$ac_ct_AR" && break 33127 done 33128 33129 if test "x$ac_ct_AR" = x; then 33130 AR="" 33131 else 33132 case $cross_compiling:$ac_tool_warned in 33133 yes:) 33134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33136 ac_tool_warned=yes ;; 33137 esac 33138 AR=$ac_ct_AR 33139 fi 33140 fi 33141 33142 else 33143 # The variable is set, but is it from the command line or the environment? 33144 33145 # Try to remove the string !AR! from our list. 33146 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 33147 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33148 # If it failed, the variable was not from the command line. Ignore it, 33149 # but warn the user (except for BASH, which is always set by the calling BASH). 33150 if test "xAR" != xBASH; then 33151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 33152 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 33153 fi 33154 # Try to locate tool using the code snippet 33155 if test -n "$ac_tool_prefix"; then 33156 for ac_prog in ar 33157 do 33158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33159 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33161 $as_echo_n "checking for $ac_word... " >&6; } 33162 if ${ac_cv_prog_AR+:} false; then : 33163 $as_echo_n "(cached) " >&6 33164 else 33165 if test -n "$AR"; then 33166 ac_cv_prog_AR="$AR" # Let the user override the test. 33167 else 33168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33169 for as_dir in $PATH 33170 do 33171 IFS=$as_save_IFS 33172 test -z "$as_dir" && as_dir=. 33173 for ac_exec_ext in '' $ac_executable_extensions; do 33174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33175 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 33176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33177 break 2 33178 fi 33179 done 33180 done 33181 IFS=$as_save_IFS 33182 33183 fi 33184 fi 33185 AR=$ac_cv_prog_AR 33186 if test -n "$AR"; then 33187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33188 $as_echo "$AR" >&6; } 33189 else 33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33191 $as_echo "no" >&6; } 33192 fi 33193 33194 33195 test -n "$AR" && break 33196 done 33197 fi 33198 if test -z "$AR"; then 33199 ac_ct_AR=$AR 33200 for ac_prog in ar 33201 do 33202 # Extract the first word of "$ac_prog", so it can be a program name with args. 33203 set dummy $ac_prog; ac_word=$2 33204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33205 $as_echo_n "checking for $ac_word... " >&6; } 33206 if ${ac_cv_prog_ac_ct_AR+:} false; then : 33207 $as_echo_n "(cached) " >&6 33208 else 33209 if test -n "$ac_ct_AR"; then 33210 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 33211 else 33212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33213 for as_dir in $PATH 33214 do 33215 IFS=$as_save_IFS 33216 test -z "$as_dir" && as_dir=. 33217 for ac_exec_ext in '' $ac_executable_extensions; do 33218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33219 ac_cv_prog_ac_ct_AR="$ac_prog" 33220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33221 break 2 33222 fi 33223 done 33224 done 33225 IFS=$as_save_IFS 33226 33227 fi 33228 fi 33229 ac_ct_AR=$ac_cv_prog_ac_ct_AR 33230 if test -n "$ac_ct_AR"; then 33231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 33232 $as_echo "$ac_ct_AR" >&6; } 33233 else 33234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33235 $as_echo "no" >&6; } 33236 fi 33237 33238 33239 test -n "$ac_ct_AR" && break 33240 done 33241 33242 if test "x$ac_ct_AR" = x; then 33243 AR="" 33244 else 33245 case $cross_compiling:$ac_tool_warned in 33246 yes:) 33247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33249 ac_tool_warned=yes ;; 33250 esac 33251 AR=$ac_ct_AR 33252 fi 33253 fi 33254 33255 else 33256 # If it succeeded, then it was overridden by the user. We will use it 33257 # for the tool. 33258 33259 # First remove it from the list of overridden variables, so we can test 33260 # for unknown variables in the end. 33261 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33262 33263 # Check if the provided tool contains a complete path. 33264 tool_specified="$AR" 33265 tool_basename="${tool_specified##*/}" 33266 if test "x$tool_basename" = "x$tool_specified"; then 33267 # A command without a complete path is provided, search $PATH. 33268 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 33269 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 33270 # Extract the first word of "$tool_basename", so it can be a program name with args. 33271 set dummy $tool_basename; ac_word=$2 33272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33273 $as_echo_n "checking for $ac_word... " >&6; } 33274 if ${ac_cv_path_AR+:} false; then : 33275 $as_echo_n "(cached) " >&6 33276 else 33277 case $AR in 33278 [\\/]* | ?:[\\/]*) 33279 ac_cv_path_AR="$AR" # Let the user override the test with a path. 33280 ;; 33281 *) 33282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33283 for as_dir in $PATH 33284 do 33285 IFS=$as_save_IFS 33286 test -z "$as_dir" && as_dir=. 33287 for ac_exec_ext in '' $ac_executable_extensions; do 33288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33289 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 33290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33291 break 2 33292 fi 33293 done 33294 done 33295 IFS=$as_save_IFS 33296 33297 ;; 33298 esac 33299 fi 33300 AR=$ac_cv_path_AR 33301 if test -n "$AR"; then 33302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33303 $as_echo "$AR" >&6; } 33304 else 33305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33306 $as_echo "no" >&6; } 33307 fi 33308 33309 33310 if test "x$AR" = x; then 33311 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33312 fi 33313 else 33314 # Otherwise we believe it is a complete path. Use it as it is. 33315 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 33316 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 33317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 33318 $as_echo_n "checking for AR... " >&6; } 33319 if test ! -x "$tool_specified"; then 33320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33321 $as_echo "not found" >&6; } 33322 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 33323 fi 33324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33325 $as_echo "$tool_specified" >&6; } 33326 fi 33327 fi 33328 fi 33329 33330 33331 fi 33332 33333 # Only process if variable expands to non-empty 33334 33335 if test "x$AR" != x; then 33336 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33337 33338 # First separate the path from the arguments. This will split at the first 33339 # space. 33340 complete="$AR" 33341 path="${complete%% *}" 33342 tmp="$complete EOL" 33343 arguments="${tmp#* }" 33344 33345 # Input might be given as Windows format, start by converting to 33346 # unix format. 33347 new_path=`$CYGPATH -u "$path"` 33348 33349 # Now try to locate executable using which 33350 new_path=`$WHICH "$new_path" 2> /dev/null` 33351 # bat and cmd files are not always considered executable in cygwin causing which 33352 # to not find them 33353 if test "x$new_path" = x \ 33354 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33355 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33356 new_path=`$CYGPATH -u "$path"` 33357 fi 33358 if test "x$new_path" = x; then 33359 # Oops. Which didn't find the executable. 33360 # The splitting of arguments from the executable at a space might have been incorrect, 33361 # since paths with space are more likely in Windows. Give it another try with the whole 33362 # argument. 33363 path="$complete" 33364 arguments="EOL" 33365 new_path=`$CYGPATH -u "$path"` 33366 new_path=`$WHICH "$new_path" 2> /dev/null` 33367 # bat and cmd files are not always considered executable in cygwin causing which 33368 # to not find them 33369 if test "x$new_path" = x \ 33370 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33371 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33372 new_path=`$CYGPATH -u "$path"` 33373 fi 33374 if test "x$new_path" = x; then 33375 # It's still not found. Now this is an unrecoverable error. 33376 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33377 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33378 has_space=`$ECHO "$complete" | $GREP " "` 33379 if test "x$has_space" != x; then 33380 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33381 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33382 fi 33383 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33384 fi 33385 fi 33386 33387 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33388 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33389 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33390 # "foo.exe" is OK but "foo" is an error. 33391 # 33392 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33393 # It is also a way to make sure we got the proper file name for the real test later on. 33394 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33395 if test "x$test_shortpath" = x; then 33396 # Short path failed, file does not exist as specified. 33397 # Try adding .exe or .cmd 33398 if test -f "${new_path}.exe"; then 33399 input_to_shortpath="${new_path}.exe" 33400 elif test -f "${new_path}.cmd"; then 33401 input_to_shortpath="${new_path}.cmd" 33402 else 33403 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 33404 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 33405 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33406 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33407 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33408 fi 33409 else 33410 input_to_shortpath="$new_path" 33411 fi 33412 33413 # Call helper function which possibly converts this using DOS-style short mode. 33414 # If so, the updated path is stored in $new_path. 33415 new_path="$input_to_shortpath" 33416 33417 input_path="$input_to_shortpath" 33418 # Check if we need to convert this using DOS-style short mode. If the path 33419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33420 # take no chances and rewrite it. 33421 # Note: m4 eats our [], so we need to use [ and ] instead. 33422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33423 if test "x$has_forbidden_chars" != x; then 33424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33425 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33426 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33427 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33428 # Going to short mode and back again did indeed matter. Since short mode is 33429 # case insensitive, let's make it lowercase to improve readability. 33430 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33431 # Now convert it back to Unix-stile (cygpath) 33432 input_path=`$CYGPATH -u "$shortmode_path"` 33433 new_path="$input_path" 33434 fi 33435 fi 33436 33437 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33438 if test "x$test_cygdrive_prefix" = x; then 33439 # As a simple fix, exclude /usr/bin since it's not a real path. 33440 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33441 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33442 # a path prefixed by /cygdrive for fixpath to work. 33443 new_path="$CYGWIN_ROOT_PATH$input_path" 33444 fi 33445 fi 33446 33447 # remove trailing .exe if any 33448 new_path="${new_path/%.exe/}" 33449 33450 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33451 33452 # First separate the path from the arguments. This will split at the first 33453 # space. 33454 complete="$AR" 33455 path="${complete%% *}" 33456 tmp="$complete EOL" 33457 arguments="${tmp#* }" 33458 33459 # Input might be given as Windows format, start by converting to 33460 # unix format. 33461 new_path="$path" 33462 33463 windows_path="$new_path" 33464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33465 unix_path=`$CYGPATH -u "$windows_path"` 33466 new_path="$unix_path" 33467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33468 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33469 new_path="$unix_path" 33470 fi 33471 33472 33473 # Now try to locate executable using which 33474 new_path=`$WHICH "$new_path" 2> /dev/null` 33475 33476 if test "x$new_path" = x; then 33477 # Oops. Which didn't find the executable. 33478 # The splitting of arguments from the executable at a space might have been incorrect, 33479 # since paths with space are more likely in Windows. Give it another try with the whole 33480 # argument. 33481 path="$complete" 33482 arguments="EOL" 33483 new_path="$path" 33484 33485 windows_path="$new_path" 33486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33487 unix_path=`$CYGPATH -u "$windows_path"` 33488 new_path="$unix_path" 33489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33490 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33491 new_path="$unix_path" 33492 fi 33493 33494 33495 new_path=`$WHICH "$new_path" 2> /dev/null` 33496 # bat and cmd files are not always considered executable in MSYS causing which 33497 # to not find them 33498 if test "x$new_path" = x \ 33499 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33500 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33501 new_path="$path" 33502 33503 windows_path="$new_path" 33504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33505 unix_path=`$CYGPATH -u "$windows_path"` 33506 new_path="$unix_path" 33507 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33508 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33509 new_path="$unix_path" 33510 fi 33511 33512 fi 33513 33514 if test "x$new_path" = x; then 33515 # It's still not found. Now this is an unrecoverable error. 33516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33517 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33518 has_space=`$ECHO "$complete" | $GREP " "` 33519 if test "x$has_space" != x; then 33520 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33521 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33522 fi 33523 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33524 fi 33525 fi 33526 33527 # Now new_path has a complete unix path to the binary 33528 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33529 # Keep paths in /bin as-is, but remove trailing .exe if any 33530 new_path="${new_path/%.exe/}" 33531 # Do not save /bin paths to all_fixpath_prefixes! 33532 else 33533 # Not in mixed or Windows style, start by that. 33534 new_path=`cmd //c echo $new_path` 33535 33536 input_path="$new_path" 33537 # Check if we need to convert this using DOS-style short mode. If the path 33538 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33539 # take no chances and rewrite it. 33540 # Note: m4 eats our [], so we need to use [ and ] instead. 33541 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33542 if test "x$has_forbidden_chars" != x; then 33543 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33544 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33545 fi 33546 33547 # Output is in $new_path 33548 33549 windows_path="$new_path" 33550 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33551 unix_path=`$CYGPATH -u "$windows_path"` 33552 new_path="$unix_path" 33553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33554 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33555 new_path="$unix_path" 33556 fi 33557 33558 # remove trailing .exe if any 33559 new_path="${new_path/%.exe/}" 33560 33561 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33562 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33563 fi 33564 33565 else 33566 # We're on a unix platform. Hooray! :) 33567 # First separate the path from the arguments. This will split at the first 33568 # space. 33569 complete="$AR" 33570 path="${complete%% *}" 33571 tmp="$complete EOL" 33572 arguments="${tmp#* }" 33573 33574 # Cannot rely on the command "which" here since it doesn't always work. 33575 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33576 if test -z "$is_absolute_path"; then 33577 # Path to executable is not absolute. Find it. 33578 IFS_save="$IFS" 33579 IFS=: 33580 for p in $PATH; do 33581 if test -f "$p/$path" && test -x "$p/$path"; then 33582 new_path="$p/$path" 33583 break 33584 fi 33585 done 33586 IFS="$IFS_save" 33587 else 33588 # This is an absolute path, we can use it without further modifications. 33589 new_path="$path" 33590 fi 33591 33592 if test "x$new_path" = x; then 33593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33594 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33595 has_space=`$ECHO "$complete" | $GREP " "` 33596 if test "x$has_space" != x; then 33597 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33598 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33599 fi 33600 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33601 fi 33602 fi 33603 33604 # Now join together the path and the arguments once again 33605 if test "x$arguments" != xEOL; then 33606 new_complete="$new_path ${arguments% *}" 33607 else 33608 new_complete="$new_path" 33609 fi 33610 33611 if test "x$complete" != "x$new_complete"; then 33612 AR="$new_complete" 33613 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 33614 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 33615 fi 33616 fi 33617 33618 33619 33620 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 33621 33622 33623 # Publish this variable in the help. 33624 33625 33626 if test "x$LIPO" = x; then 33627 # The variable is not set by user, try to locate tool using the code snippet 33628 for ac_prog in lipo 33629 do 33630 # Extract the first word of "$ac_prog", so it can be a program name with args. 33631 set dummy $ac_prog; ac_word=$2 33632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33633 $as_echo_n "checking for $ac_word... " >&6; } 33634 if ${ac_cv_path_LIPO+:} false; then : 33635 $as_echo_n "(cached) " >&6 33636 else 33637 case $LIPO in 33638 [\\/]* | ?:[\\/]*) 33639 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33640 ;; 33641 *) 33642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33643 for as_dir in $PATH 33644 do 33645 IFS=$as_save_IFS 33646 test -z "$as_dir" && as_dir=. 33647 for ac_exec_ext in '' $ac_executable_extensions; do 33648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33649 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33651 break 2 33652 fi 33653 done 33654 done 33655 IFS=$as_save_IFS 33656 33657 ;; 33658 esac 33659 fi 33660 LIPO=$ac_cv_path_LIPO 33661 if test -n "$LIPO"; then 33662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33663 $as_echo "$LIPO" >&6; } 33664 else 33665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33666 $as_echo "no" >&6; } 33667 fi 33668 33669 33670 test -n "$LIPO" && break 33671 done 33672 33673 else 33674 # The variable is set, but is it from the command line or the environment? 33675 33676 # Try to remove the string !LIPO! from our list. 33677 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33678 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33679 # If it failed, the variable was not from the command line. Ignore it, 33680 # but warn the user (except for BASH, which is always set by the calling BASH). 33681 if test "xLIPO" != xBASH; then 33682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33683 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33684 fi 33685 # Try to locate tool using the code snippet 33686 for ac_prog in lipo 33687 do 33688 # Extract the first word of "$ac_prog", so it can be a program name with args. 33689 set dummy $ac_prog; ac_word=$2 33690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33691 $as_echo_n "checking for $ac_word... " >&6; } 33692 if ${ac_cv_path_LIPO+:} false; then : 33693 $as_echo_n "(cached) " >&6 33694 else 33695 case $LIPO in 33696 [\\/]* | ?:[\\/]*) 33697 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33698 ;; 33699 *) 33700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33701 for as_dir in $PATH 33702 do 33703 IFS=$as_save_IFS 33704 test -z "$as_dir" && as_dir=. 33705 for ac_exec_ext in '' $ac_executable_extensions; do 33706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33707 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33709 break 2 33710 fi 33711 done 33712 done 33713 IFS=$as_save_IFS 33714 33715 ;; 33716 esac 33717 fi 33718 LIPO=$ac_cv_path_LIPO 33719 if test -n "$LIPO"; then 33720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33721 $as_echo "$LIPO" >&6; } 33722 else 33723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33724 $as_echo "no" >&6; } 33725 fi 33726 33727 33728 test -n "$LIPO" && break 33729 done 33730 33731 else 33732 # If it succeeded, then it was overridden by the user. We will use it 33733 # for the tool. 33734 33735 # First remove it from the list of overridden variables, so we can test 33736 # for unknown variables in the end. 33737 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33738 33739 # Check if the provided tool contains a complete path. 33740 tool_specified="$LIPO" 33741 tool_basename="${tool_specified##*/}" 33742 if test "x$tool_basename" = "x$tool_specified"; then 33743 # A command without a complete path is provided, search $PATH. 33744 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33745 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33746 # Extract the first word of "$tool_basename", so it can be a program name with args. 33747 set dummy $tool_basename; ac_word=$2 33748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33749 $as_echo_n "checking for $ac_word... " >&6; } 33750 if ${ac_cv_path_LIPO+:} false; then : 33751 $as_echo_n "(cached) " >&6 33752 else 33753 case $LIPO in 33754 [\\/]* | ?:[\\/]*) 33755 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33756 ;; 33757 *) 33758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33759 for as_dir in $PATH 33760 do 33761 IFS=$as_save_IFS 33762 test -z "$as_dir" && as_dir=. 33763 for ac_exec_ext in '' $ac_executable_extensions; do 33764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33765 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33767 break 2 33768 fi 33769 done 33770 done 33771 IFS=$as_save_IFS 33772 33773 ;; 33774 esac 33775 fi 33776 LIPO=$ac_cv_path_LIPO 33777 if test -n "$LIPO"; then 33778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33779 $as_echo "$LIPO" >&6; } 33780 else 33781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33782 $as_echo "no" >&6; } 33783 fi 33784 33785 33786 if test "x$LIPO" = x; then 33787 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33788 fi 33789 else 33790 # Otherwise we believe it is a complete path. Use it as it is. 33791 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33792 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33794 $as_echo_n "checking for LIPO... " >&6; } 33795 if test ! -x "$tool_specified"; then 33796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33797 $as_echo "not found" >&6; } 33798 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33799 fi 33800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33801 $as_echo "$tool_specified" >&6; } 33802 fi 33803 fi 33804 fi 33805 33806 33807 33808 # Only process if variable expands to non-empty 33809 33810 if test "x$LIPO" != x; then 33811 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33812 33813 # First separate the path from the arguments. This will split at the first 33814 # space. 33815 complete="$LIPO" 33816 path="${complete%% *}" 33817 tmp="$complete EOL" 33818 arguments="${tmp#* }" 33819 33820 # Input might be given as Windows format, start by converting to 33821 # unix format. 33822 new_path=`$CYGPATH -u "$path"` 33823 33824 # Now try to locate executable using which 33825 new_path=`$WHICH "$new_path" 2> /dev/null` 33826 # bat and cmd files are not always considered executable in cygwin causing which 33827 # to not find them 33828 if test "x$new_path" = x \ 33829 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33830 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33831 new_path=`$CYGPATH -u "$path"` 33832 fi 33833 if test "x$new_path" = x; then 33834 # Oops. Which didn't find the executable. 33835 # The splitting of arguments from the executable at a space might have been incorrect, 33836 # since paths with space are more likely in Windows. Give it another try with the whole 33837 # argument. 33838 path="$complete" 33839 arguments="EOL" 33840 new_path=`$CYGPATH -u "$path"` 33841 new_path=`$WHICH "$new_path" 2> /dev/null` 33842 # bat and cmd files are not always considered executable in cygwin causing which 33843 # to not find them 33844 if test "x$new_path" = x \ 33845 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33846 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33847 new_path=`$CYGPATH -u "$path"` 33848 fi 33849 if test "x$new_path" = x; then 33850 # It's still not found. Now this is an unrecoverable error. 33851 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33852 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33853 has_space=`$ECHO "$complete" | $GREP " "` 33854 if test "x$has_space" != x; then 33855 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33856 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33857 fi 33858 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33859 fi 33860 fi 33861 33862 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33863 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33864 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33865 # "foo.exe" is OK but "foo" is an error. 33866 # 33867 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33868 # It is also a way to make sure we got the proper file name for the real test later on. 33869 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33870 if test "x$test_shortpath" = x; then 33871 # Short path failed, file does not exist as specified. 33872 # Try adding .exe or .cmd 33873 if test -f "${new_path}.exe"; then 33874 input_to_shortpath="${new_path}.exe" 33875 elif test -f "${new_path}.cmd"; then 33876 input_to_shortpath="${new_path}.cmd" 33877 else 33878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33879 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33880 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33881 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33882 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33883 fi 33884 else 33885 input_to_shortpath="$new_path" 33886 fi 33887 33888 # Call helper function which possibly converts this using DOS-style short mode. 33889 # If so, the updated path is stored in $new_path. 33890 new_path="$input_to_shortpath" 33891 33892 input_path="$input_to_shortpath" 33893 # Check if we need to convert this using DOS-style short mode. If the path 33894 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33895 # take no chances and rewrite it. 33896 # Note: m4 eats our [], so we need to use [ and ] instead. 33897 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33898 if test "x$has_forbidden_chars" != x; then 33899 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33900 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33901 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33902 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33903 # Going to short mode and back again did indeed matter. Since short mode is 33904 # case insensitive, let's make it lowercase to improve readability. 33905 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33906 # Now convert it back to Unix-stile (cygpath) 33907 input_path=`$CYGPATH -u "$shortmode_path"` 33908 new_path="$input_path" 33909 fi 33910 fi 33911 33912 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33913 if test "x$test_cygdrive_prefix" = x; then 33914 # As a simple fix, exclude /usr/bin since it's not a real path. 33915 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33916 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33917 # a path prefixed by /cygdrive for fixpath to work. 33918 new_path="$CYGWIN_ROOT_PATH$input_path" 33919 fi 33920 fi 33921 33922 # remove trailing .exe if any 33923 new_path="${new_path/%.exe/}" 33924 33925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33926 33927 # First separate the path from the arguments. This will split at the first 33928 # space. 33929 complete="$LIPO" 33930 path="${complete%% *}" 33931 tmp="$complete EOL" 33932 arguments="${tmp#* }" 33933 33934 # Input might be given as Windows format, start by converting to 33935 # unix format. 33936 new_path="$path" 33937 33938 windows_path="$new_path" 33939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33940 unix_path=`$CYGPATH -u "$windows_path"` 33941 new_path="$unix_path" 33942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33943 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33944 new_path="$unix_path" 33945 fi 33946 33947 33948 # Now try to locate executable using which 33949 new_path=`$WHICH "$new_path" 2> /dev/null` 33950 33951 if test "x$new_path" = x; then 33952 # Oops. Which didn't find the executable. 33953 # The splitting of arguments from the executable at a space might have been incorrect, 33954 # since paths with space are more likely in Windows. Give it another try with the whole 33955 # argument. 33956 path="$complete" 33957 arguments="EOL" 33958 new_path="$path" 33959 33960 windows_path="$new_path" 33961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33962 unix_path=`$CYGPATH -u "$windows_path"` 33963 new_path="$unix_path" 33964 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33965 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33966 new_path="$unix_path" 33967 fi 33968 33969 33970 new_path=`$WHICH "$new_path" 2> /dev/null` 33971 # bat and cmd files are not always considered executable in MSYS causing which 33972 # to not find them 33973 if test "x$new_path" = x \ 33974 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33975 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33976 new_path="$path" 33977 33978 windows_path="$new_path" 33979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33980 unix_path=`$CYGPATH -u "$windows_path"` 33981 new_path="$unix_path" 33982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33983 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33984 new_path="$unix_path" 33985 fi 33986 33987 fi 33988 33989 if test "x$new_path" = x; then 33990 # It's still not found. Now this is an unrecoverable error. 33991 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33992 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33993 has_space=`$ECHO "$complete" | $GREP " "` 33994 if test "x$has_space" != x; then 33995 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33996 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33997 fi 33998 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33999 fi 34000 fi 34001 34002 # Now new_path has a complete unix path to the binary 34003 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34004 # Keep paths in /bin as-is, but remove trailing .exe if any 34005 new_path="${new_path/%.exe/}" 34006 # Do not save /bin paths to all_fixpath_prefixes! 34007 else 34008 # Not in mixed or Windows style, start by that. 34009 new_path=`cmd //c echo $new_path` 34010 34011 input_path="$new_path" 34012 # Check if we need to convert this using DOS-style short mode. If the path 34013 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34014 # take no chances and rewrite it. 34015 # Note: m4 eats our [], so we need to use [ and ] instead. 34016 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34017 if test "x$has_forbidden_chars" != x; then 34018 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34019 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34020 fi 34021 34022 # Output is in $new_path 34023 34024 windows_path="$new_path" 34025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34026 unix_path=`$CYGPATH -u "$windows_path"` 34027 new_path="$unix_path" 34028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34029 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34030 new_path="$unix_path" 34031 fi 34032 34033 # remove trailing .exe if any 34034 new_path="${new_path/%.exe/}" 34035 34036 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34037 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34038 fi 34039 34040 else 34041 # We're on a unix platform. Hooray! :) 34042 # First separate the path from the arguments. This will split at the first 34043 # space. 34044 complete="$LIPO" 34045 path="${complete%% *}" 34046 tmp="$complete EOL" 34047 arguments="${tmp#* }" 34048 34049 # Cannot rely on the command "which" here since it doesn't always work. 34050 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34051 if test -z "$is_absolute_path"; then 34052 # Path to executable is not absolute. Find it. 34053 IFS_save="$IFS" 34054 IFS=: 34055 for p in $PATH; do 34056 if test -f "$p/$path" && test -x "$p/$path"; then 34057 new_path="$p/$path" 34058 break 34059 fi 34060 done 34061 IFS="$IFS_save" 34062 else 34063 # This is an absolute path, we can use it without further modifications. 34064 new_path="$path" 34065 fi 34066 34067 if test "x$new_path" = x; then 34068 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34069 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34070 has_space=`$ECHO "$complete" | $GREP " "` 34071 if test "x$has_space" != x; then 34072 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34073 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34074 fi 34075 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34076 fi 34077 fi 34078 34079 # Now join together the path and the arguments once again 34080 if test "x$arguments" != xEOL; then 34081 new_complete="$new_path ${arguments% *}" 34082 else 34083 new_complete="$new_path" 34084 fi 34085 34086 if test "x$complete" != "x$new_complete"; then 34087 LIPO="$new_complete" 34088 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 34089 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 34090 fi 34091 fi 34092 34093 fi 34094 34095 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34096 # Extract the first word of "mt", so it can be a program name with args. 34097 set dummy mt; ac_word=$2 34098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34099 $as_echo_n "checking for $ac_word... " >&6; } 34100 if ${ac_cv_prog_MT+:} false; then : 34101 $as_echo_n "(cached) " >&6 34102 else 34103 if test -n "$MT"; then 34104 ac_cv_prog_MT="$MT" # Let the user override the test. 34105 else 34106 ac_prog_rejected=no 34107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34108 for as_dir in $PATH 34109 do 34110 IFS=$as_save_IFS 34111 test -z "$as_dir" && as_dir=. 34112 for ac_exec_ext in '' $ac_executable_extensions; do 34113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34114 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 34115 ac_prog_rejected=yes 34116 continue 34117 fi 34118 ac_cv_prog_MT="mt" 34119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34120 break 2 34121 fi 34122 done 34123 done 34124 IFS=$as_save_IFS 34125 34126 if test $ac_prog_rejected = yes; then 34127 # We found a bogon in the path, so make sure we never use it. 34128 set dummy $ac_cv_prog_MT 34129 shift 34130 if test $# != 0; then 34131 # We chose a different compiler from the bogus one. 34132 # However, it has the same basename, so the bogon will be chosen 34133 # first if we set MT to just the basename; use the full file name. 34134 shift 34135 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 34136 fi 34137 fi 34138 fi 34139 fi 34140 MT=$ac_cv_prog_MT 34141 if test -n "$MT"; then 34142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 34143 $as_echo "$MT" >&6; } 34144 else 34145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34146 $as_echo "no" >&6; } 34147 fi 34148 34149 34150 34151 # Only process if variable expands to non-empty 34152 34153 if test "x$MT" != x; then 34154 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34155 34156 # First separate the path from the arguments. This will split at the first 34157 # space. 34158 complete="$MT" 34159 path="${complete%% *}" 34160 tmp="$complete EOL" 34161 arguments="${tmp#* }" 34162 34163 # Input might be given as Windows format, start by converting to 34164 # unix format. 34165 new_path=`$CYGPATH -u "$path"` 34166 34167 # Now try to locate executable using which 34168 new_path=`$WHICH "$new_path" 2> /dev/null` 34169 # bat and cmd files are not always considered executable in cygwin causing which 34170 # to not find them 34171 if test "x$new_path" = x \ 34172 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34173 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34174 new_path=`$CYGPATH -u "$path"` 34175 fi 34176 if test "x$new_path" = x; then 34177 # Oops. Which didn't find the executable. 34178 # The splitting of arguments from the executable at a space might have been incorrect, 34179 # since paths with space are more likely in Windows. Give it another try with the whole 34180 # argument. 34181 path="$complete" 34182 arguments="EOL" 34183 new_path=`$CYGPATH -u "$path"` 34184 new_path=`$WHICH "$new_path" 2> /dev/null` 34185 # bat and cmd files are not always considered executable in cygwin causing which 34186 # to not find them 34187 if test "x$new_path" = x \ 34188 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34189 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34190 new_path=`$CYGPATH -u "$path"` 34191 fi 34192 if test "x$new_path" = x; then 34193 # It's still not found. Now this is an unrecoverable error. 34194 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34195 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34196 has_space=`$ECHO "$complete" | $GREP " "` 34197 if test "x$has_space" != x; then 34198 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34199 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34200 fi 34201 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34202 fi 34203 fi 34204 34205 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34206 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34207 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34208 # "foo.exe" is OK but "foo" is an error. 34209 # 34210 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34211 # It is also a way to make sure we got the proper file name for the real test later on. 34212 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34213 if test "x$test_shortpath" = x; then 34214 # Short path failed, file does not exist as specified. 34215 # Try adding .exe or .cmd 34216 if test -f "${new_path}.exe"; then 34217 input_to_shortpath="${new_path}.exe" 34218 elif test -f "${new_path}.cmd"; then 34219 input_to_shortpath="${new_path}.cmd" 34220 else 34221 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 34222 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 34223 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34224 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34225 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34226 fi 34227 else 34228 input_to_shortpath="$new_path" 34229 fi 34230 34231 # Call helper function which possibly converts this using DOS-style short mode. 34232 # If so, the updated path is stored in $new_path. 34233 new_path="$input_to_shortpath" 34234 34235 input_path="$input_to_shortpath" 34236 # Check if we need to convert this using DOS-style short mode. If the path 34237 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34238 # take no chances and rewrite it. 34239 # Note: m4 eats our [], so we need to use [ and ] instead. 34240 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34241 if test "x$has_forbidden_chars" != x; then 34242 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34243 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34244 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34245 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34246 # Going to short mode and back again did indeed matter. Since short mode is 34247 # case insensitive, let's make it lowercase to improve readability. 34248 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34249 # Now convert it back to Unix-stile (cygpath) 34250 input_path=`$CYGPATH -u "$shortmode_path"` 34251 new_path="$input_path" 34252 fi 34253 fi 34254 34255 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34256 if test "x$test_cygdrive_prefix" = x; then 34257 # As a simple fix, exclude /usr/bin since it's not a real path. 34258 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34259 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34260 # a path prefixed by /cygdrive for fixpath to work. 34261 new_path="$CYGWIN_ROOT_PATH$input_path" 34262 fi 34263 fi 34264 34265 # remove trailing .exe if any 34266 new_path="${new_path/%.exe/}" 34267 34268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34269 34270 # First separate the path from the arguments. This will split at the first 34271 # space. 34272 complete="$MT" 34273 path="${complete%% *}" 34274 tmp="$complete EOL" 34275 arguments="${tmp#* }" 34276 34277 # Input might be given as Windows format, start by converting to 34278 # unix format. 34279 new_path="$path" 34280 34281 windows_path="$new_path" 34282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34283 unix_path=`$CYGPATH -u "$windows_path"` 34284 new_path="$unix_path" 34285 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34286 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34287 new_path="$unix_path" 34288 fi 34289 34290 34291 # Now try to locate executable using which 34292 new_path=`$WHICH "$new_path" 2> /dev/null` 34293 34294 if test "x$new_path" = x; then 34295 # Oops. Which didn't find the executable. 34296 # The splitting of arguments from the executable at a space might have been incorrect, 34297 # since paths with space are more likely in Windows. Give it another try with the whole 34298 # argument. 34299 path="$complete" 34300 arguments="EOL" 34301 new_path="$path" 34302 34303 windows_path="$new_path" 34304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34305 unix_path=`$CYGPATH -u "$windows_path"` 34306 new_path="$unix_path" 34307 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34308 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34309 new_path="$unix_path" 34310 fi 34311 34312 34313 new_path=`$WHICH "$new_path" 2> /dev/null` 34314 # bat and cmd files are not always considered executable in MSYS causing which 34315 # to not find them 34316 if test "x$new_path" = x \ 34317 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34318 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34319 new_path="$path" 34320 34321 windows_path="$new_path" 34322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34323 unix_path=`$CYGPATH -u "$windows_path"` 34324 new_path="$unix_path" 34325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34326 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34327 new_path="$unix_path" 34328 fi 34329 34330 fi 34331 34332 if test "x$new_path" = x; then 34333 # It's still not found. Now this is an unrecoverable error. 34334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34335 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34336 has_space=`$ECHO "$complete" | $GREP " "` 34337 if test "x$has_space" != x; then 34338 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34339 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34340 fi 34341 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34342 fi 34343 fi 34344 34345 # Now new_path has a complete unix path to the binary 34346 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34347 # Keep paths in /bin as-is, but remove trailing .exe if any 34348 new_path="${new_path/%.exe/}" 34349 # Do not save /bin paths to all_fixpath_prefixes! 34350 else 34351 # Not in mixed or Windows style, start by that. 34352 new_path=`cmd //c echo $new_path` 34353 34354 input_path="$new_path" 34355 # Check if we need to convert this using DOS-style short mode. If the path 34356 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34357 # take no chances and rewrite it. 34358 # Note: m4 eats our [], so we need to use [ and ] instead. 34359 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34360 if test "x$has_forbidden_chars" != x; then 34361 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34362 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34363 fi 34364 34365 # Output is in $new_path 34366 34367 windows_path="$new_path" 34368 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34369 unix_path=`$CYGPATH -u "$windows_path"` 34370 new_path="$unix_path" 34371 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34372 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34373 new_path="$unix_path" 34374 fi 34375 34376 # remove trailing .exe if any 34377 new_path="${new_path/%.exe/}" 34378 34379 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34380 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34381 fi 34382 34383 else 34384 # We're on a unix platform. Hooray! :) 34385 # First separate the path from the arguments. This will split at the first 34386 # space. 34387 complete="$MT" 34388 path="${complete%% *}" 34389 tmp="$complete EOL" 34390 arguments="${tmp#* }" 34391 34392 # Cannot rely on the command "which" here since it doesn't always work. 34393 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34394 if test -z "$is_absolute_path"; then 34395 # Path to executable is not absolute. Find it. 34396 IFS_save="$IFS" 34397 IFS=: 34398 for p in $PATH; do 34399 if test -f "$p/$path" && test -x "$p/$path"; then 34400 new_path="$p/$path" 34401 break 34402 fi 34403 done 34404 IFS="$IFS_save" 34405 else 34406 # This is an absolute path, we can use it without further modifications. 34407 new_path="$path" 34408 fi 34409 34410 if test "x$new_path" = x; then 34411 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34412 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34413 has_space=`$ECHO "$complete" | $GREP " "` 34414 if test "x$has_space" != x; then 34415 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34416 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34417 fi 34418 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34419 fi 34420 fi 34421 34422 # Now join together the path and the arguments once again 34423 if test "x$arguments" != xEOL; then 34424 new_complete="$new_path ${arguments% *}" 34425 else 34426 new_complete="$new_path" 34427 fi 34428 34429 if test "x$complete" != "x$new_complete"; then 34430 MT="$new_complete" 34431 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34432 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34433 fi 34434 fi 34435 34436 # Setup the resource compiler (RC) 34437 # Extract the first word of "rc", so it can be a program name with args. 34438 set dummy rc; ac_word=$2 34439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34440 $as_echo_n "checking for $ac_word... " >&6; } 34441 if ${ac_cv_prog_RC+:} false; then : 34442 $as_echo_n "(cached) " >&6 34443 else 34444 if test -n "$RC"; then 34445 ac_cv_prog_RC="$RC" # Let the user override the test. 34446 else 34447 ac_prog_rejected=no 34448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34449 for as_dir in $PATH 34450 do 34451 IFS=$as_save_IFS 34452 test -z "$as_dir" && as_dir=. 34453 for ac_exec_ext in '' $ac_executable_extensions; do 34454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34456 ac_prog_rejected=yes 34457 continue 34458 fi 34459 ac_cv_prog_RC="rc" 34460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34461 break 2 34462 fi 34463 done 34464 done 34465 IFS=$as_save_IFS 34466 34467 if test $ac_prog_rejected = yes; then 34468 # We found a bogon in the path, so make sure we never use it. 34469 set dummy $ac_cv_prog_RC 34470 shift 34471 if test $# != 0; then 34472 # We chose a different compiler from the bogus one. 34473 # However, it has the same basename, so the bogon will be chosen 34474 # first if we set RC to just the basename; use the full file name. 34475 shift 34476 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34477 fi 34478 fi 34479 fi 34480 fi 34481 RC=$ac_cv_prog_RC 34482 if test -n "$RC"; then 34483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34484 $as_echo "$RC" >&6; } 34485 else 34486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34487 $as_echo "no" >&6; } 34488 fi 34489 34490 34491 34492 # Only process if variable expands to non-empty 34493 34494 if test "x$RC" != x; then 34495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34496 34497 # First separate the path from the arguments. This will split at the first 34498 # space. 34499 complete="$RC" 34500 path="${complete%% *}" 34501 tmp="$complete EOL" 34502 arguments="${tmp#* }" 34503 34504 # Input might be given as Windows format, start by converting to 34505 # unix format. 34506 new_path=`$CYGPATH -u "$path"` 34507 34508 # Now try to locate executable using which 34509 new_path=`$WHICH "$new_path" 2> /dev/null` 34510 # bat and cmd files are not always considered executable in cygwin causing which 34511 # to not find them 34512 if test "x$new_path" = x \ 34513 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34514 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34515 new_path=`$CYGPATH -u "$path"` 34516 fi 34517 if test "x$new_path" = x; then 34518 # Oops. Which didn't find the executable. 34519 # The splitting of arguments from the executable at a space might have been incorrect, 34520 # since paths with space are more likely in Windows. Give it another try with the whole 34521 # argument. 34522 path="$complete" 34523 arguments="EOL" 34524 new_path=`$CYGPATH -u "$path"` 34525 new_path=`$WHICH "$new_path" 2> /dev/null` 34526 # bat and cmd files are not always considered executable in cygwin causing which 34527 # to not find them 34528 if test "x$new_path" = x \ 34529 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34530 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34531 new_path=`$CYGPATH -u "$path"` 34532 fi 34533 if test "x$new_path" = x; then 34534 # It's still not found. Now this is an unrecoverable error. 34535 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34536 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34537 has_space=`$ECHO "$complete" | $GREP " "` 34538 if test "x$has_space" != x; then 34539 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34540 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34541 fi 34542 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34543 fi 34544 fi 34545 34546 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34547 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34548 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34549 # "foo.exe" is OK but "foo" is an error. 34550 # 34551 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34552 # It is also a way to make sure we got the proper file name for the real test later on. 34553 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34554 if test "x$test_shortpath" = x; then 34555 # Short path failed, file does not exist as specified. 34556 # Try adding .exe or .cmd 34557 if test -f "${new_path}.exe"; then 34558 input_to_shortpath="${new_path}.exe" 34559 elif test -f "${new_path}.cmd"; then 34560 input_to_shortpath="${new_path}.cmd" 34561 else 34562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34563 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34564 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34565 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34566 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34567 fi 34568 else 34569 input_to_shortpath="$new_path" 34570 fi 34571 34572 # Call helper function which possibly converts this using DOS-style short mode. 34573 # If so, the updated path is stored in $new_path. 34574 new_path="$input_to_shortpath" 34575 34576 input_path="$input_to_shortpath" 34577 # Check if we need to convert this using DOS-style short mode. If the path 34578 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34579 # take no chances and rewrite it. 34580 # Note: m4 eats our [], so we need to use [ and ] instead. 34581 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34582 if test "x$has_forbidden_chars" != x; then 34583 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34584 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34585 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34586 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34587 # Going to short mode and back again did indeed matter. Since short mode is 34588 # case insensitive, let's make it lowercase to improve readability. 34589 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34590 # Now convert it back to Unix-stile (cygpath) 34591 input_path=`$CYGPATH -u "$shortmode_path"` 34592 new_path="$input_path" 34593 fi 34594 fi 34595 34596 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34597 if test "x$test_cygdrive_prefix" = x; then 34598 # As a simple fix, exclude /usr/bin since it's not a real path. 34599 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34600 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34601 # a path prefixed by /cygdrive for fixpath to work. 34602 new_path="$CYGWIN_ROOT_PATH$input_path" 34603 fi 34604 fi 34605 34606 # remove trailing .exe if any 34607 new_path="${new_path/%.exe/}" 34608 34609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34610 34611 # First separate the path from the arguments. This will split at the first 34612 # space. 34613 complete="$RC" 34614 path="${complete%% *}" 34615 tmp="$complete EOL" 34616 arguments="${tmp#* }" 34617 34618 # Input might be given as Windows format, start by converting to 34619 # unix format. 34620 new_path="$path" 34621 34622 windows_path="$new_path" 34623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34624 unix_path=`$CYGPATH -u "$windows_path"` 34625 new_path="$unix_path" 34626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34627 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34628 new_path="$unix_path" 34629 fi 34630 34631 34632 # Now try to locate executable using which 34633 new_path=`$WHICH "$new_path" 2> /dev/null` 34634 34635 if test "x$new_path" = x; then 34636 # Oops. Which didn't find the executable. 34637 # The splitting of arguments from the executable at a space might have been incorrect, 34638 # since paths with space are more likely in Windows. Give it another try with the whole 34639 # argument. 34640 path="$complete" 34641 arguments="EOL" 34642 new_path="$path" 34643 34644 windows_path="$new_path" 34645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34646 unix_path=`$CYGPATH -u "$windows_path"` 34647 new_path="$unix_path" 34648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34649 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34650 new_path="$unix_path" 34651 fi 34652 34653 34654 new_path=`$WHICH "$new_path" 2> /dev/null` 34655 # bat and cmd files are not always considered executable in MSYS causing which 34656 # to not find them 34657 if test "x$new_path" = x \ 34658 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34659 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34660 new_path="$path" 34661 34662 windows_path="$new_path" 34663 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34664 unix_path=`$CYGPATH -u "$windows_path"` 34665 new_path="$unix_path" 34666 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34667 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34668 new_path="$unix_path" 34669 fi 34670 34671 fi 34672 34673 if test "x$new_path" = x; then 34674 # It's still not found. Now this is an unrecoverable error. 34675 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34676 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34677 has_space=`$ECHO "$complete" | $GREP " "` 34678 if test "x$has_space" != x; then 34679 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34680 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34681 fi 34682 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34683 fi 34684 fi 34685 34686 # Now new_path has a complete unix path to the binary 34687 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34688 # Keep paths in /bin as-is, but remove trailing .exe if any 34689 new_path="${new_path/%.exe/}" 34690 # Do not save /bin paths to all_fixpath_prefixes! 34691 else 34692 # Not in mixed or Windows style, start by that. 34693 new_path=`cmd //c echo $new_path` 34694 34695 input_path="$new_path" 34696 # Check if we need to convert this using DOS-style short mode. If the path 34697 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34698 # take no chances and rewrite it. 34699 # Note: m4 eats our [], so we need to use [ and ] instead. 34700 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34701 if test "x$has_forbidden_chars" != x; then 34702 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34703 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34704 fi 34705 34706 # Output is in $new_path 34707 34708 windows_path="$new_path" 34709 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34710 unix_path=`$CYGPATH -u "$windows_path"` 34711 new_path="$unix_path" 34712 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34713 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34714 new_path="$unix_path" 34715 fi 34716 34717 # remove trailing .exe if any 34718 new_path="${new_path/%.exe/}" 34719 34720 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34721 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34722 fi 34723 34724 else 34725 # We're on a unix platform. Hooray! :) 34726 # First separate the path from the arguments. This will split at the first 34727 # space. 34728 complete="$RC" 34729 path="${complete%% *}" 34730 tmp="$complete EOL" 34731 arguments="${tmp#* }" 34732 34733 # Cannot rely on the command "which" here since it doesn't always work. 34734 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34735 if test -z "$is_absolute_path"; then 34736 # Path to executable is not absolute. Find it. 34737 IFS_save="$IFS" 34738 IFS=: 34739 for p in $PATH; do 34740 if test -f "$p/$path" && test -x "$p/$path"; then 34741 new_path="$p/$path" 34742 break 34743 fi 34744 done 34745 IFS="$IFS_save" 34746 else 34747 # This is an absolute path, we can use it without further modifications. 34748 new_path="$path" 34749 fi 34750 34751 if test "x$new_path" = x; then 34752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34753 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34754 has_space=`$ECHO "$complete" | $GREP " "` 34755 if test "x$has_space" != x; then 34756 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34757 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34758 fi 34759 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34760 fi 34761 fi 34762 34763 # Now join together the path and the arguments once again 34764 if test "x$arguments" != xEOL; then 34765 new_complete="$new_path ${arguments% *}" 34766 else 34767 new_complete="$new_path" 34768 fi 34769 34770 if test "x$complete" != "x$new_complete"; then 34771 RC="$new_complete" 34772 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34773 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34774 fi 34775 fi 34776 34777 # Extract the first word of "dumpbin", so it can be a program name with args. 34778 set dummy dumpbin; ac_word=$2 34779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34780 $as_echo_n "checking for $ac_word... " >&6; } 34781 if ${ac_cv_prog_DUMPBIN+:} false; then : 34782 $as_echo_n "(cached) " >&6 34783 else 34784 if test -n "$DUMPBIN"; then 34785 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34786 else 34787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34788 for as_dir in $PATH 34789 do 34790 IFS=$as_save_IFS 34791 test -z "$as_dir" && as_dir=. 34792 for ac_exec_ext in '' $ac_executable_extensions; do 34793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34794 ac_cv_prog_DUMPBIN="dumpbin" 34795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34796 break 2 34797 fi 34798 done 34799 done 34800 IFS=$as_save_IFS 34801 34802 fi 34803 fi 34804 DUMPBIN=$ac_cv_prog_DUMPBIN 34805 if test -n "$DUMPBIN"; then 34806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34807 $as_echo "$DUMPBIN" >&6; } 34808 else 34809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34810 $as_echo "no" >&6; } 34811 fi 34812 34813 34814 34815 # Only process if variable expands to non-empty 34816 34817 if test "x$DUMPBIN" != x; then 34818 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34819 34820 # First separate the path from the arguments. This will split at the first 34821 # space. 34822 complete="$DUMPBIN" 34823 path="${complete%% *}" 34824 tmp="$complete EOL" 34825 arguments="${tmp#* }" 34826 34827 # Input might be given as Windows format, start by converting to 34828 # unix format. 34829 new_path=`$CYGPATH -u "$path"` 34830 34831 # Now try to locate executable using which 34832 new_path=`$WHICH "$new_path" 2> /dev/null` 34833 # bat and cmd files are not always considered executable in cygwin causing which 34834 # to not find them 34835 if test "x$new_path" = x \ 34836 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34837 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34838 new_path=`$CYGPATH -u "$path"` 34839 fi 34840 if test "x$new_path" = x; then 34841 # Oops. Which didn't find the executable. 34842 # The splitting of arguments from the executable at a space might have been incorrect, 34843 # since paths with space are more likely in Windows. Give it another try with the whole 34844 # argument. 34845 path="$complete" 34846 arguments="EOL" 34847 new_path=`$CYGPATH -u "$path"` 34848 new_path=`$WHICH "$new_path" 2> /dev/null` 34849 # bat and cmd files are not always considered executable in cygwin causing which 34850 # to not find them 34851 if test "x$new_path" = x \ 34852 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34853 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34854 new_path=`$CYGPATH -u "$path"` 34855 fi 34856 if test "x$new_path" = x; then 34857 # It's still not found. Now this is an unrecoverable error. 34858 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34859 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34860 has_space=`$ECHO "$complete" | $GREP " "` 34861 if test "x$has_space" != x; then 34862 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34863 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34864 fi 34865 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34866 fi 34867 fi 34868 34869 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34870 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34871 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34872 # "foo.exe" is OK but "foo" is an error. 34873 # 34874 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34875 # It is also a way to make sure we got the proper file name for the real test later on. 34876 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34877 if test "x$test_shortpath" = x; then 34878 # Short path failed, file does not exist as specified. 34879 # Try adding .exe or .cmd 34880 if test -f "${new_path}.exe"; then 34881 input_to_shortpath="${new_path}.exe" 34882 elif test -f "${new_path}.cmd"; then 34883 input_to_shortpath="${new_path}.cmd" 34884 else 34885 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34886 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34887 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34888 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34889 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34890 fi 34891 else 34892 input_to_shortpath="$new_path" 34893 fi 34894 34895 # Call helper function which possibly converts this using DOS-style short mode. 34896 # If so, the updated path is stored in $new_path. 34897 new_path="$input_to_shortpath" 34898 34899 input_path="$input_to_shortpath" 34900 # Check if we need to convert this using DOS-style short mode. If the path 34901 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34902 # take no chances and rewrite it. 34903 # Note: m4 eats our [], so we need to use [ and ] instead. 34904 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34905 if test "x$has_forbidden_chars" != x; then 34906 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34907 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34908 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34909 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34910 # Going to short mode and back again did indeed matter. Since short mode is 34911 # case insensitive, let's make it lowercase to improve readability. 34912 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34913 # Now convert it back to Unix-stile (cygpath) 34914 input_path=`$CYGPATH -u "$shortmode_path"` 34915 new_path="$input_path" 34916 fi 34917 fi 34918 34919 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34920 if test "x$test_cygdrive_prefix" = x; then 34921 # As a simple fix, exclude /usr/bin since it's not a real path. 34922 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34923 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34924 # a path prefixed by /cygdrive for fixpath to work. 34925 new_path="$CYGWIN_ROOT_PATH$input_path" 34926 fi 34927 fi 34928 34929 # remove trailing .exe if any 34930 new_path="${new_path/%.exe/}" 34931 34932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34933 34934 # First separate the path from the arguments. This will split at the first 34935 # space. 34936 complete="$DUMPBIN" 34937 path="${complete%% *}" 34938 tmp="$complete EOL" 34939 arguments="${tmp#* }" 34940 34941 # Input might be given as Windows format, start by converting to 34942 # unix format. 34943 new_path="$path" 34944 34945 windows_path="$new_path" 34946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34947 unix_path=`$CYGPATH -u "$windows_path"` 34948 new_path="$unix_path" 34949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34950 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34951 new_path="$unix_path" 34952 fi 34953 34954 34955 # Now try to locate executable using which 34956 new_path=`$WHICH "$new_path" 2> /dev/null` 34957 34958 if test "x$new_path" = x; then 34959 # Oops. Which didn't find the executable. 34960 # The splitting of arguments from the executable at a space might have been incorrect, 34961 # since paths with space are more likely in Windows. Give it another try with the whole 34962 # argument. 34963 path="$complete" 34964 arguments="EOL" 34965 new_path="$path" 34966 34967 windows_path="$new_path" 34968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34969 unix_path=`$CYGPATH -u "$windows_path"` 34970 new_path="$unix_path" 34971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34972 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34973 new_path="$unix_path" 34974 fi 34975 34976 34977 new_path=`$WHICH "$new_path" 2> /dev/null` 34978 # bat and cmd files are not always considered executable in MSYS causing which 34979 # to not find them 34980 if test "x$new_path" = x \ 34981 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34982 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34983 new_path="$path" 34984 34985 windows_path="$new_path" 34986 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34987 unix_path=`$CYGPATH -u "$windows_path"` 34988 new_path="$unix_path" 34989 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34990 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34991 new_path="$unix_path" 34992 fi 34993 34994 fi 34995 34996 if test "x$new_path" = x; then 34997 # It's still not found. Now this is an unrecoverable error. 34998 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34999 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35000 has_space=`$ECHO "$complete" | $GREP " "` 35001 if test "x$has_space" != x; then 35002 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35003 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35004 fi 35005 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35006 fi 35007 fi 35008 35009 # Now new_path has a complete unix path to the binary 35010 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35011 # Keep paths in /bin as-is, but remove trailing .exe if any 35012 new_path="${new_path/%.exe/}" 35013 # Do not save /bin paths to all_fixpath_prefixes! 35014 else 35015 # Not in mixed or Windows style, start by that. 35016 new_path=`cmd //c echo $new_path` 35017 35018 input_path="$new_path" 35019 # Check if we need to convert this using DOS-style short mode. If the path 35020 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35021 # take no chances and rewrite it. 35022 # Note: m4 eats our [], so we need to use [ and ] instead. 35023 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35024 if test "x$has_forbidden_chars" != x; then 35025 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35026 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35027 fi 35028 35029 # Output is in $new_path 35030 35031 windows_path="$new_path" 35032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35033 unix_path=`$CYGPATH -u "$windows_path"` 35034 new_path="$unix_path" 35035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35036 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35037 new_path="$unix_path" 35038 fi 35039 35040 # remove trailing .exe if any 35041 new_path="${new_path/%.exe/}" 35042 35043 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35044 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35045 fi 35046 35047 else 35048 # We're on a unix platform. Hooray! :) 35049 # First separate the path from the arguments. This will split at the first 35050 # space. 35051 complete="$DUMPBIN" 35052 path="${complete%% *}" 35053 tmp="$complete EOL" 35054 arguments="${tmp#* }" 35055 35056 # Cannot rely on the command "which" here since it doesn't always work. 35057 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35058 if test -z "$is_absolute_path"; then 35059 # Path to executable is not absolute. Find it. 35060 IFS_save="$IFS" 35061 IFS=: 35062 for p in $PATH; do 35063 if test -f "$p/$path" && test -x "$p/$path"; then 35064 new_path="$p/$path" 35065 break 35066 fi 35067 done 35068 IFS="$IFS_save" 35069 else 35070 # This is an absolute path, we can use it without further modifications. 35071 new_path="$path" 35072 fi 35073 35074 if test "x$new_path" = x; then 35075 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35076 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35077 has_space=`$ECHO "$complete" | $GREP " "` 35078 if test "x$has_space" != x; then 35079 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35080 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35081 fi 35082 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35083 fi 35084 fi 35085 35086 # Now join together the path and the arguments once again 35087 if test "x$arguments" != xEOL; then 35088 new_complete="$new_path ${arguments% *}" 35089 else 35090 new_complete="$new_path" 35091 fi 35092 35093 if test "x$complete" != "x$new_complete"; then 35094 DUMPBIN="$new_complete" 35095 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 35096 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 35097 fi 35098 fi 35099 35100 # We need to check for 'msbuild.exe' because at the place where we expect to 35101 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 35102 # won't find the 'msbuild.exe' executable in that case (and the 35103 # 'ac_executable_extensions' is unusable due to performance reasons). 35104 # Notice that we intentionally don't fix up the path to MSBUILD because we 35105 # will call it in a DOS shell during freetype detection on Windows (see 35106 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 35107 # Extract the first word of "msbuild.exe", so it can be a program name with args. 35108 set dummy msbuild.exe; 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_MSBUILD+:} false; then : 35112 $as_echo_n "(cached) " >&6 35113 else 35114 if test -n "$MSBUILD"; then 35115 ac_cv_prog_MSBUILD="$MSBUILD" # 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_MSBUILD="msbuild.exe" 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 MSBUILD=$ac_cv_prog_MSBUILD 35135 if test -n "$MSBUILD"; then 35136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 35137 $as_echo "$MSBUILD" >&6; } 35138 else 35139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35140 $as_echo "no" >&6; } 35141 fi 35142 35143 35144 fi 35145 35146 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35147 35148 35149 # Publish this variable in the help. 35150 35151 35152 if test "x$STRIP" = x; then 35153 # The variable is not set by user, try to locate tool using the code snippet 35154 for ac_prog in strip 35155 do 35156 # Extract the first word of "$ac_prog", so it can be a program name with args. 35157 set dummy $ac_prog; ac_word=$2 35158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35159 $as_echo_n "checking for $ac_word... " >&6; } 35160 if ${ac_cv_path_STRIP+:} false; then : 35161 $as_echo_n "(cached) " >&6 35162 else 35163 case $STRIP in 35164 [\\/]* | ?:[\\/]*) 35165 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35166 ;; 35167 *) 35168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35169 for as_dir in $PATH 35170 do 35171 IFS=$as_save_IFS 35172 test -z "$as_dir" && as_dir=. 35173 for ac_exec_ext in '' $ac_executable_extensions; do 35174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35175 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35177 break 2 35178 fi 35179 done 35180 done 35181 IFS=$as_save_IFS 35182 35183 ;; 35184 esac 35185 fi 35186 STRIP=$ac_cv_path_STRIP 35187 if test -n "$STRIP"; then 35188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35189 $as_echo "$STRIP" >&6; } 35190 else 35191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35192 $as_echo "no" >&6; } 35193 fi 35194 35195 35196 test -n "$STRIP" && break 35197 done 35198 35199 else 35200 # The variable is set, but is it from the command line or the environment? 35201 35202 # Try to remove the string !STRIP! from our list. 35203 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 35204 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35205 # If it failed, the variable was not from the command line. Ignore it, 35206 # but warn the user (except for BASH, which is always set by the calling BASH). 35207 if test "xSTRIP" != xBASH; then 35208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 35209 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 35210 fi 35211 # Try to locate tool using the code snippet 35212 for ac_prog in strip 35213 do 35214 # Extract the first word of "$ac_prog", so it can be a program name with args. 35215 set dummy $ac_prog; ac_word=$2 35216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35217 $as_echo_n "checking for $ac_word... " >&6; } 35218 if ${ac_cv_path_STRIP+:} false; then : 35219 $as_echo_n "(cached) " >&6 35220 else 35221 case $STRIP in 35222 [\\/]* | ?:[\\/]*) 35223 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35224 ;; 35225 *) 35226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35227 for as_dir in $PATH 35228 do 35229 IFS=$as_save_IFS 35230 test -z "$as_dir" && as_dir=. 35231 for ac_exec_ext in '' $ac_executable_extensions; do 35232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35233 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35235 break 2 35236 fi 35237 done 35238 done 35239 IFS=$as_save_IFS 35240 35241 ;; 35242 esac 35243 fi 35244 STRIP=$ac_cv_path_STRIP 35245 if test -n "$STRIP"; then 35246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35247 $as_echo "$STRIP" >&6; } 35248 else 35249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35250 $as_echo "no" >&6; } 35251 fi 35252 35253 35254 test -n "$STRIP" && break 35255 done 35256 35257 else 35258 # If it succeeded, then it was overridden by the user. We will use it 35259 # for the tool. 35260 35261 # First remove it from the list of overridden variables, so we can test 35262 # for unknown variables in the end. 35263 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35264 35265 # Check if the provided tool contains a complete path. 35266 tool_specified="$STRIP" 35267 tool_basename="${tool_specified##*/}" 35268 if test "x$tool_basename" = "x$tool_specified"; then 35269 # A command without a complete path is provided, search $PATH. 35270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 35271 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 35272 # Extract the first word of "$tool_basename", so it can be a program name with args. 35273 set dummy $tool_basename; ac_word=$2 35274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35275 $as_echo_n "checking for $ac_word... " >&6; } 35276 if ${ac_cv_path_STRIP+:} false; then : 35277 $as_echo_n "(cached) " >&6 35278 else 35279 case $STRIP in 35280 [\\/]* | ?:[\\/]*) 35281 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35282 ;; 35283 *) 35284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35285 for as_dir in $PATH 35286 do 35287 IFS=$as_save_IFS 35288 test -z "$as_dir" && as_dir=. 35289 for ac_exec_ext in '' $ac_executable_extensions; do 35290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35291 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35293 break 2 35294 fi 35295 done 35296 done 35297 IFS=$as_save_IFS 35298 35299 ;; 35300 esac 35301 fi 35302 STRIP=$ac_cv_path_STRIP 35303 if test -n "$STRIP"; then 35304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35305 $as_echo "$STRIP" >&6; } 35306 else 35307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35308 $as_echo "no" >&6; } 35309 fi 35310 35311 35312 if test "x$STRIP" = x; then 35313 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35314 fi 35315 else 35316 # Otherwise we believe it is a complete path. Use it as it is. 35317 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35318 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35320 $as_echo_n "checking for STRIP... " >&6; } 35321 if test ! -x "$tool_specified"; then 35322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35323 $as_echo "not found" >&6; } 35324 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35325 fi 35326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35327 $as_echo "$tool_specified" >&6; } 35328 fi 35329 fi 35330 fi 35331 35332 35333 35334 # Only process if variable expands to non-empty 35335 35336 if test "x$STRIP" != x; then 35337 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35338 35339 # First separate the path from the arguments. This will split at the first 35340 # space. 35341 complete="$STRIP" 35342 path="${complete%% *}" 35343 tmp="$complete EOL" 35344 arguments="${tmp#* }" 35345 35346 # Input might be given as Windows format, start by converting to 35347 # unix format. 35348 new_path=`$CYGPATH -u "$path"` 35349 35350 # Now try to locate executable using which 35351 new_path=`$WHICH "$new_path" 2> /dev/null` 35352 # bat and cmd files are not always considered executable in cygwin causing which 35353 # to not find them 35354 if test "x$new_path" = x \ 35355 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35356 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35357 new_path=`$CYGPATH -u "$path"` 35358 fi 35359 if test "x$new_path" = x; then 35360 # Oops. Which didn't find the executable. 35361 # The splitting of arguments from the executable at a space might have been incorrect, 35362 # since paths with space are more likely in Windows. Give it another try with the whole 35363 # argument. 35364 path="$complete" 35365 arguments="EOL" 35366 new_path=`$CYGPATH -u "$path"` 35367 new_path=`$WHICH "$new_path" 2> /dev/null` 35368 # bat and cmd files are not always considered executable in cygwin causing which 35369 # to not find them 35370 if test "x$new_path" = x \ 35371 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35372 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35373 new_path=`$CYGPATH -u "$path"` 35374 fi 35375 if test "x$new_path" = x; then 35376 # It's still not found. Now this is an unrecoverable error. 35377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35378 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35379 has_space=`$ECHO "$complete" | $GREP " "` 35380 if test "x$has_space" != x; then 35381 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35382 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35383 fi 35384 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35385 fi 35386 fi 35387 35388 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35389 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35390 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35391 # "foo.exe" is OK but "foo" is an error. 35392 # 35393 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35394 # It is also a way to make sure we got the proper file name for the real test later on. 35395 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35396 if test "x$test_shortpath" = x; then 35397 # Short path failed, file does not exist as specified. 35398 # Try adding .exe or .cmd 35399 if test -f "${new_path}.exe"; then 35400 input_to_shortpath="${new_path}.exe" 35401 elif test -f "${new_path}.cmd"; then 35402 input_to_shortpath="${new_path}.cmd" 35403 else 35404 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35405 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35406 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35407 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35408 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35409 fi 35410 else 35411 input_to_shortpath="$new_path" 35412 fi 35413 35414 # Call helper function which possibly converts this using DOS-style short mode. 35415 # If so, the updated path is stored in $new_path. 35416 new_path="$input_to_shortpath" 35417 35418 input_path="$input_to_shortpath" 35419 # Check if we need to convert this using DOS-style short mode. If the path 35420 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35421 # take no chances and rewrite it. 35422 # Note: m4 eats our [], so we need to use [ and ] instead. 35423 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35424 if test "x$has_forbidden_chars" != x; then 35425 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35426 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35427 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35428 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35429 # Going to short mode and back again did indeed matter. Since short mode is 35430 # case insensitive, let's make it lowercase to improve readability. 35431 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35432 # Now convert it back to Unix-stile (cygpath) 35433 input_path=`$CYGPATH -u "$shortmode_path"` 35434 new_path="$input_path" 35435 fi 35436 fi 35437 35438 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35439 if test "x$test_cygdrive_prefix" = x; then 35440 # As a simple fix, exclude /usr/bin since it's not a real path. 35441 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35442 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35443 # a path prefixed by /cygdrive for fixpath to work. 35444 new_path="$CYGWIN_ROOT_PATH$input_path" 35445 fi 35446 fi 35447 35448 # remove trailing .exe if any 35449 new_path="${new_path/%.exe/}" 35450 35451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35452 35453 # First separate the path from the arguments. This will split at the first 35454 # space. 35455 complete="$STRIP" 35456 path="${complete%% *}" 35457 tmp="$complete EOL" 35458 arguments="${tmp#* }" 35459 35460 # Input might be given as Windows format, start by converting to 35461 # unix format. 35462 new_path="$path" 35463 35464 windows_path="$new_path" 35465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35466 unix_path=`$CYGPATH -u "$windows_path"` 35467 new_path="$unix_path" 35468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35469 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35470 new_path="$unix_path" 35471 fi 35472 35473 35474 # Now try to locate executable using which 35475 new_path=`$WHICH "$new_path" 2> /dev/null` 35476 35477 if test "x$new_path" = x; then 35478 # Oops. Which didn't find the executable. 35479 # The splitting of arguments from the executable at a space might have been incorrect, 35480 # since paths with space are more likely in Windows. Give it another try with the whole 35481 # argument. 35482 path="$complete" 35483 arguments="EOL" 35484 new_path="$path" 35485 35486 windows_path="$new_path" 35487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35488 unix_path=`$CYGPATH -u "$windows_path"` 35489 new_path="$unix_path" 35490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35492 new_path="$unix_path" 35493 fi 35494 35495 35496 new_path=`$WHICH "$new_path" 2> /dev/null` 35497 # bat and cmd files are not always considered executable in MSYS causing which 35498 # to not find them 35499 if test "x$new_path" = x \ 35500 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35501 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35502 new_path="$path" 35503 35504 windows_path="$new_path" 35505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35506 unix_path=`$CYGPATH -u "$windows_path"` 35507 new_path="$unix_path" 35508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35509 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35510 new_path="$unix_path" 35511 fi 35512 35513 fi 35514 35515 if test "x$new_path" = x; then 35516 # It's still not found. Now this is an unrecoverable error. 35517 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35518 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35519 has_space=`$ECHO "$complete" | $GREP " "` 35520 if test "x$has_space" != x; then 35521 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35522 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35523 fi 35524 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35525 fi 35526 fi 35527 35528 # Now new_path has a complete unix path to the binary 35529 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35530 # Keep paths in /bin as-is, but remove trailing .exe if any 35531 new_path="${new_path/%.exe/}" 35532 # Do not save /bin paths to all_fixpath_prefixes! 35533 else 35534 # Not in mixed or Windows style, start by that. 35535 new_path=`cmd //c echo $new_path` 35536 35537 input_path="$new_path" 35538 # Check if we need to convert this using DOS-style short mode. If the path 35539 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35540 # take no chances and rewrite it. 35541 # Note: m4 eats our [], so we need to use [ and ] instead. 35542 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35543 if test "x$has_forbidden_chars" != x; then 35544 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35545 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35546 fi 35547 35548 # Output is in $new_path 35549 35550 windows_path="$new_path" 35551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35552 unix_path=`$CYGPATH -u "$windows_path"` 35553 new_path="$unix_path" 35554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35555 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35556 new_path="$unix_path" 35557 fi 35558 35559 # remove trailing .exe if any 35560 new_path="${new_path/%.exe/}" 35561 35562 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35563 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35564 fi 35565 35566 else 35567 # We're on a unix platform. Hooray! :) 35568 # First separate the path from the arguments. This will split at the first 35569 # space. 35570 complete="$STRIP" 35571 path="${complete%% *}" 35572 tmp="$complete EOL" 35573 arguments="${tmp#* }" 35574 35575 # Cannot rely on the command "which" here since it doesn't always work. 35576 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35577 if test -z "$is_absolute_path"; then 35578 # Path to executable is not absolute. Find it. 35579 IFS_save="$IFS" 35580 IFS=: 35581 for p in $PATH; do 35582 if test -f "$p/$path" && test -x "$p/$path"; then 35583 new_path="$p/$path" 35584 break 35585 fi 35586 done 35587 IFS="$IFS_save" 35588 else 35589 # This is an absolute path, we can use it without further modifications. 35590 new_path="$path" 35591 fi 35592 35593 if test "x$new_path" = x; then 35594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35595 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35596 has_space=`$ECHO "$complete" | $GREP " "` 35597 if test "x$has_space" != x; then 35598 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35599 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35600 fi 35601 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35602 fi 35603 fi 35604 35605 # Now join together the path and the arguments once again 35606 if test "x$arguments" != xEOL; then 35607 new_complete="$new_path ${arguments% *}" 35608 else 35609 new_complete="$new_path" 35610 fi 35611 35612 if test "x$complete" != "x$new_complete"; then 35613 STRIP="$new_complete" 35614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35615 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35616 fi 35617 fi 35618 35619 35620 35621 # Publish this variable in the help. 35622 35623 35624 if test "x$NM" = x; then 35625 # The variable is not set by user, try to locate tool using the code snippet 35626 for ac_prog in nm 35627 do 35628 # Extract the first word of "$ac_prog", so it can be a program name with args. 35629 set dummy $ac_prog; ac_word=$2 35630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35631 $as_echo_n "checking for $ac_word... " >&6; } 35632 if ${ac_cv_path_NM+:} false; then : 35633 $as_echo_n "(cached) " >&6 35634 else 35635 case $NM in 35636 [\\/]* | ?:[\\/]*) 35637 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35638 ;; 35639 *) 35640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35641 for as_dir in $PATH 35642 do 35643 IFS=$as_save_IFS 35644 test -z "$as_dir" && as_dir=. 35645 for ac_exec_ext in '' $ac_executable_extensions; do 35646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35647 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35649 break 2 35650 fi 35651 done 35652 done 35653 IFS=$as_save_IFS 35654 35655 ;; 35656 esac 35657 fi 35658 NM=$ac_cv_path_NM 35659 if test -n "$NM"; then 35660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35661 $as_echo "$NM" >&6; } 35662 else 35663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35664 $as_echo "no" >&6; } 35665 fi 35666 35667 35668 test -n "$NM" && break 35669 done 35670 35671 else 35672 # The variable is set, but is it from the command line or the environment? 35673 35674 # Try to remove the string !NM! from our list. 35675 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35676 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35677 # If it failed, the variable was not from the command line. Ignore it, 35678 # but warn the user (except for BASH, which is always set by the calling BASH). 35679 if test "xNM" != xBASH; then 35680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35681 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35682 fi 35683 # Try to locate tool using the code snippet 35684 for ac_prog in nm 35685 do 35686 # Extract the first word of "$ac_prog", so it can be a program name with args. 35687 set dummy $ac_prog; ac_word=$2 35688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35689 $as_echo_n "checking for $ac_word... " >&6; } 35690 if ${ac_cv_path_NM+:} false; then : 35691 $as_echo_n "(cached) " >&6 35692 else 35693 case $NM in 35694 [\\/]* | ?:[\\/]*) 35695 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35696 ;; 35697 *) 35698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35699 for as_dir in $PATH 35700 do 35701 IFS=$as_save_IFS 35702 test -z "$as_dir" && as_dir=. 35703 for ac_exec_ext in '' $ac_executable_extensions; do 35704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35705 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35707 break 2 35708 fi 35709 done 35710 done 35711 IFS=$as_save_IFS 35712 35713 ;; 35714 esac 35715 fi 35716 NM=$ac_cv_path_NM 35717 if test -n "$NM"; then 35718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35719 $as_echo "$NM" >&6; } 35720 else 35721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35722 $as_echo "no" >&6; } 35723 fi 35724 35725 35726 test -n "$NM" && break 35727 done 35728 35729 else 35730 # If it succeeded, then it was overridden by the user. We will use it 35731 # for the tool. 35732 35733 # First remove it from the list of overridden variables, so we can test 35734 # for unknown variables in the end. 35735 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35736 35737 # Check if the provided tool contains a complete path. 35738 tool_specified="$NM" 35739 tool_basename="${tool_specified##*/}" 35740 if test "x$tool_basename" = "x$tool_specified"; then 35741 # A command without a complete path is provided, search $PATH. 35742 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35743 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35744 # Extract the first word of "$tool_basename", so it can be a program name with args. 35745 set dummy $tool_basename; ac_word=$2 35746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35747 $as_echo_n "checking for $ac_word... " >&6; } 35748 if ${ac_cv_path_NM+:} false; then : 35749 $as_echo_n "(cached) " >&6 35750 else 35751 case $NM in 35752 [\\/]* | ?:[\\/]*) 35753 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35754 ;; 35755 *) 35756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35757 for as_dir in $PATH 35758 do 35759 IFS=$as_save_IFS 35760 test -z "$as_dir" && as_dir=. 35761 for ac_exec_ext in '' $ac_executable_extensions; do 35762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35763 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35765 break 2 35766 fi 35767 done 35768 done 35769 IFS=$as_save_IFS 35770 35771 ;; 35772 esac 35773 fi 35774 NM=$ac_cv_path_NM 35775 if test -n "$NM"; then 35776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35777 $as_echo "$NM" >&6; } 35778 else 35779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35780 $as_echo "no" >&6; } 35781 fi 35782 35783 35784 if test "x$NM" = x; then 35785 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35786 fi 35787 else 35788 # Otherwise we believe it is a complete path. Use it as it is. 35789 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35790 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35792 $as_echo_n "checking for NM... " >&6; } 35793 if test ! -x "$tool_specified"; then 35794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35795 $as_echo "not found" >&6; } 35796 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35797 fi 35798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35799 $as_echo "$tool_specified" >&6; } 35800 fi 35801 fi 35802 fi 35803 35804 35805 35806 # Only process if variable expands to non-empty 35807 35808 if test "x$NM" != x; then 35809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35810 35811 # First separate the path from the arguments. This will split at the first 35812 # space. 35813 complete="$NM" 35814 path="${complete%% *}" 35815 tmp="$complete EOL" 35816 arguments="${tmp#* }" 35817 35818 # Input might be given as Windows format, start by converting to 35819 # unix format. 35820 new_path=`$CYGPATH -u "$path"` 35821 35822 # Now try to locate executable using which 35823 new_path=`$WHICH "$new_path" 2> /dev/null` 35824 # bat and cmd files are not always considered executable in cygwin causing which 35825 # to not find them 35826 if test "x$new_path" = x \ 35827 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35828 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35829 new_path=`$CYGPATH -u "$path"` 35830 fi 35831 if test "x$new_path" = x; then 35832 # Oops. Which didn't find the executable. 35833 # The splitting of arguments from the executable at a space might have been incorrect, 35834 # since paths with space are more likely in Windows. Give it another try with the whole 35835 # argument. 35836 path="$complete" 35837 arguments="EOL" 35838 new_path=`$CYGPATH -u "$path"` 35839 new_path=`$WHICH "$new_path" 2> /dev/null` 35840 # bat and cmd files are not always considered executable in cygwin causing which 35841 # to not find them 35842 if test "x$new_path" = x \ 35843 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35844 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35845 new_path=`$CYGPATH -u "$path"` 35846 fi 35847 if test "x$new_path" = x; then 35848 # It's still not found. Now this is an unrecoverable error. 35849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35850 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35851 has_space=`$ECHO "$complete" | $GREP " "` 35852 if test "x$has_space" != x; then 35853 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35854 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35855 fi 35856 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35857 fi 35858 fi 35859 35860 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35861 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35862 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35863 # "foo.exe" is OK but "foo" is an error. 35864 # 35865 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35866 # It is also a way to make sure we got the proper file name for the real test later on. 35867 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35868 if test "x$test_shortpath" = x; then 35869 # Short path failed, file does not exist as specified. 35870 # Try adding .exe or .cmd 35871 if test -f "${new_path}.exe"; then 35872 input_to_shortpath="${new_path}.exe" 35873 elif test -f "${new_path}.cmd"; then 35874 input_to_shortpath="${new_path}.cmd" 35875 else 35876 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35877 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35878 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35879 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35880 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35881 fi 35882 else 35883 input_to_shortpath="$new_path" 35884 fi 35885 35886 # Call helper function which possibly converts this using DOS-style short mode. 35887 # If so, the updated path is stored in $new_path. 35888 new_path="$input_to_shortpath" 35889 35890 input_path="$input_to_shortpath" 35891 # Check if we need to convert this using DOS-style short mode. If the path 35892 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35893 # take no chances and rewrite it. 35894 # Note: m4 eats our [], so we need to use [ and ] instead. 35895 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35896 if test "x$has_forbidden_chars" != x; then 35897 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35898 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35899 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35900 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35901 # Going to short mode and back again did indeed matter. Since short mode is 35902 # case insensitive, let's make it lowercase to improve readability. 35903 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35904 # Now convert it back to Unix-stile (cygpath) 35905 input_path=`$CYGPATH -u "$shortmode_path"` 35906 new_path="$input_path" 35907 fi 35908 fi 35909 35910 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35911 if test "x$test_cygdrive_prefix" = x; then 35912 # As a simple fix, exclude /usr/bin since it's not a real path. 35913 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35914 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35915 # a path prefixed by /cygdrive for fixpath to work. 35916 new_path="$CYGWIN_ROOT_PATH$input_path" 35917 fi 35918 fi 35919 35920 # remove trailing .exe if any 35921 new_path="${new_path/%.exe/}" 35922 35923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35924 35925 # First separate the path from the arguments. This will split at the first 35926 # space. 35927 complete="$NM" 35928 path="${complete%% *}" 35929 tmp="$complete EOL" 35930 arguments="${tmp#* }" 35931 35932 # Input might be given as Windows format, start by converting to 35933 # unix format. 35934 new_path="$path" 35935 35936 windows_path="$new_path" 35937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35938 unix_path=`$CYGPATH -u "$windows_path"` 35939 new_path="$unix_path" 35940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35941 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35942 new_path="$unix_path" 35943 fi 35944 35945 35946 # Now try to locate executable using which 35947 new_path=`$WHICH "$new_path" 2> /dev/null` 35948 35949 if test "x$new_path" = x; then 35950 # Oops. Which didn't find the executable. 35951 # The splitting of arguments from the executable at a space might have been incorrect, 35952 # since paths with space are more likely in Windows. Give it another try with the whole 35953 # argument. 35954 path="$complete" 35955 arguments="EOL" 35956 new_path="$path" 35957 35958 windows_path="$new_path" 35959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35960 unix_path=`$CYGPATH -u "$windows_path"` 35961 new_path="$unix_path" 35962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35963 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35964 new_path="$unix_path" 35965 fi 35966 35967 35968 new_path=`$WHICH "$new_path" 2> /dev/null` 35969 # bat and cmd files are not always considered executable in MSYS causing which 35970 # to not find them 35971 if test "x$new_path" = x \ 35972 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35973 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35974 new_path="$path" 35975 35976 windows_path="$new_path" 35977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35978 unix_path=`$CYGPATH -u "$windows_path"` 35979 new_path="$unix_path" 35980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35982 new_path="$unix_path" 35983 fi 35984 35985 fi 35986 35987 if test "x$new_path" = x; then 35988 # It's still not found. Now this is an unrecoverable error. 35989 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35990 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35991 has_space=`$ECHO "$complete" | $GREP " "` 35992 if test "x$has_space" != x; then 35993 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35994 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35995 fi 35996 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35997 fi 35998 fi 35999 36000 # Now new_path has a complete unix path to the binary 36001 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36002 # Keep paths in /bin as-is, but remove trailing .exe if any 36003 new_path="${new_path/%.exe/}" 36004 # Do not save /bin paths to all_fixpath_prefixes! 36005 else 36006 # Not in mixed or Windows style, start by that. 36007 new_path=`cmd //c echo $new_path` 36008 36009 input_path="$new_path" 36010 # Check if we need to convert this using DOS-style short mode. If the path 36011 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36012 # take no chances and rewrite it. 36013 # Note: m4 eats our [], so we need to use [ and ] instead. 36014 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36015 if test "x$has_forbidden_chars" != x; then 36016 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36017 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36018 fi 36019 36020 # Output is in $new_path 36021 36022 windows_path="$new_path" 36023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36024 unix_path=`$CYGPATH -u "$windows_path"` 36025 new_path="$unix_path" 36026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36027 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36028 new_path="$unix_path" 36029 fi 36030 36031 # remove trailing .exe if any 36032 new_path="${new_path/%.exe/}" 36033 36034 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36035 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36036 fi 36037 36038 else 36039 # We're on a unix platform. Hooray! :) 36040 # First separate the path from the arguments. This will split at the first 36041 # space. 36042 complete="$NM" 36043 path="${complete%% *}" 36044 tmp="$complete EOL" 36045 arguments="${tmp#* }" 36046 36047 # Cannot rely on the command "which" here since it doesn't always work. 36048 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36049 if test -z "$is_absolute_path"; then 36050 # Path to executable is not absolute. Find it. 36051 IFS_save="$IFS" 36052 IFS=: 36053 for p in $PATH; do 36054 if test -f "$p/$path" && test -x "$p/$path"; then 36055 new_path="$p/$path" 36056 break 36057 fi 36058 done 36059 IFS="$IFS_save" 36060 else 36061 # This is an absolute path, we can use it without further modifications. 36062 new_path="$path" 36063 fi 36064 36065 if test "x$new_path" = x; then 36066 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36067 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36068 has_space=`$ECHO "$complete" | $GREP " "` 36069 if test "x$has_space" != x; then 36070 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36071 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36072 fi 36073 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36074 fi 36075 fi 36076 36077 # Now join together the path and the arguments once again 36078 if test "x$arguments" != xEOL; then 36079 new_complete="$new_path ${arguments% *}" 36080 else 36081 new_complete="$new_path" 36082 fi 36083 36084 if test "x$complete" != "x$new_complete"; then 36085 NM="$new_complete" 36086 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36087 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36088 fi 36089 fi 36090 36091 36092 36093 # Publish this variable in the help. 36094 36095 36096 if test "x$GNM" = x; then 36097 # The variable is not set by user, try to locate tool using the code snippet 36098 for ac_prog in gnm 36099 do 36100 # Extract the first word of "$ac_prog", so it can be a program name with args. 36101 set dummy $ac_prog; ac_word=$2 36102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36103 $as_echo_n "checking for $ac_word... " >&6; } 36104 if ${ac_cv_path_GNM+:} false; then : 36105 $as_echo_n "(cached) " >&6 36106 else 36107 case $GNM in 36108 [\\/]* | ?:[\\/]*) 36109 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36110 ;; 36111 *) 36112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36113 for as_dir in $PATH 36114 do 36115 IFS=$as_save_IFS 36116 test -z "$as_dir" && as_dir=. 36117 for ac_exec_ext in '' $ac_executable_extensions; do 36118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36119 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36121 break 2 36122 fi 36123 done 36124 done 36125 IFS=$as_save_IFS 36126 36127 ;; 36128 esac 36129 fi 36130 GNM=$ac_cv_path_GNM 36131 if test -n "$GNM"; then 36132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36133 $as_echo "$GNM" >&6; } 36134 else 36135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36136 $as_echo "no" >&6; } 36137 fi 36138 36139 36140 test -n "$GNM" && break 36141 done 36142 36143 else 36144 # The variable is set, but is it from the command line or the environment? 36145 36146 # Try to remove the string !GNM! from our list. 36147 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 36148 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36149 # If it failed, the variable was not from the command line. Ignore it, 36150 # but warn the user (except for BASH, which is always set by the calling BASH). 36151 if test "xGNM" != xBASH; then 36152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 36153 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 36154 fi 36155 # Try to locate tool using the code snippet 36156 for ac_prog in gnm 36157 do 36158 # Extract the first word of "$ac_prog", so it can be a program name with args. 36159 set dummy $ac_prog; ac_word=$2 36160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36161 $as_echo_n "checking for $ac_word... " >&6; } 36162 if ${ac_cv_path_GNM+:} false; then : 36163 $as_echo_n "(cached) " >&6 36164 else 36165 case $GNM in 36166 [\\/]* | ?:[\\/]*) 36167 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36168 ;; 36169 *) 36170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36171 for as_dir in $PATH 36172 do 36173 IFS=$as_save_IFS 36174 test -z "$as_dir" && as_dir=. 36175 for ac_exec_ext in '' $ac_executable_extensions; do 36176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36177 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36179 break 2 36180 fi 36181 done 36182 done 36183 IFS=$as_save_IFS 36184 36185 ;; 36186 esac 36187 fi 36188 GNM=$ac_cv_path_GNM 36189 if test -n "$GNM"; then 36190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36191 $as_echo "$GNM" >&6; } 36192 else 36193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36194 $as_echo "no" >&6; } 36195 fi 36196 36197 36198 test -n "$GNM" && break 36199 done 36200 36201 else 36202 # If it succeeded, then it was overridden by the user. We will use it 36203 # for the tool. 36204 36205 # First remove it from the list of overridden variables, so we can test 36206 # for unknown variables in the end. 36207 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36208 36209 # Check if the provided tool contains a complete path. 36210 tool_specified="$GNM" 36211 tool_basename="${tool_specified##*/}" 36212 if test "x$tool_basename" = "x$tool_specified"; then 36213 # A command without a complete path is provided, search $PATH. 36214 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 36215 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 36216 # Extract the first word of "$tool_basename", so it can be a program name with args. 36217 set dummy $tool_basename; ac_word=$2 36218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36219 $as_echo_n "checking for $ac_word... " >&6; } 36220 if ${ac_cv_path_GNM+:} false; then : 36221 $as_echo_n "(cached) " >&6 36222 else 36223 case $GNM in 36224 [\\/]* | ?:[\\/]*) 36225 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36226 ;; 36227 *) 36228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36229 for as_dir in $PATH 36230 do 36231 IFS=$as_save_IFS 36232 test -z "$as_dir" && as_dir=. 36233 for ac_exec_ext in '' $ac_executable_extensions; do 36234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36235 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36237 break 2 36238 fi 36239 done 36240 done 36241 IFS=$as_save_IFS 36242 36243 ;; 36244 esac 36245 fi 36246 GNM=$ac_cv_path_GNM 36247 if test -n "$GNM"; then 36248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36249 $as_echo "$GNM" >&6; } 36250 else 36251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36252 $as_echo "no" >&6; } 36253 fi 36254 36255 36256 if test "x$GNM" = x; then 36257 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36258 fi 36259 else 36260 # Otherwise we believe it is a complete path. Use it as it is. 36261 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 36262 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 36263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 36264 $as_echo_n "checking for GNM... " >&6; } 36265 if test ! -x "$tool_specified"; then 36266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36267 $as_echo "not found" >&6; } 36268 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 36269 fi 36270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36271 $as_echo "$tool_specified" >&6; } 36272 fi 36273 fi 36274 fi 36275 36276 36277 36278 # Only process if variable expands to non-empty 36279 36280 if test "x$GNM" != x; then 36281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36282 36283 # First separate the path from the arguments. This will split at the first 36284 # space. 36285 complete="$GNM" 36286 path="${complete%% *}" 36287 tmp="$complete EOL" 36288 arguments="${tmp#* }" 36289 36290 # Input might be given as Windows format, start by converting to 36291 # unix format. 36292 new_path=`$CYGPATH -u "$path"` 36293 36294 # Now try to locate executable using which 36295 new_path=`$WHICH "$new_path" 2> /dev/null` 36296 # bat and cmd files are not always considered executable in cygwin causing which 36297 # to not find them 36298 if test "x$new_path" = x \ 36299 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36300 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36301 new_path=`$CYGPATH -u "$path"` 36302 fi 36303 if test "x$new_path" = x; then 36304 # Oops. Which didn't find the executable. 36305 # The splitting of arguments from the executable at a space might have been incorrect, 36306 # since paths with space are more likely in Windows. Give it another try with the whole 36307 # argument. 36308 path="$complete" 36309 arguments="EOL" 36310 new_path=`$CYGPATH -u "$path"` 36311 new_path=`$WHICH "$new_path" 2> /dev/null` 36312 # bat and cmd files are not always considered executable in cygwin causing which 36313 # to not find them 36314 if test "x$new_path" = x \ 36315 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36316 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36317 new_path=`$CYGPATH -u "$path"` 36318 fi 36319 if test "x$new_path" = x; then 36320 # It's still not found. Now this is an unrecoverable error. 36321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36322 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36323 has_space=`$ECHO "$complete" | $GREP " "` 36324 if test "x$has_space" != x; then 36325 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36326 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36327 fi 36328 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36329 fi 36330 fi 36331 36332 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36333 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36334 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36335 # "foo.exe" is OK but "foo" is an error. 36336 # 36337 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36338 # It is also a way to make sure we got the proper file name for the real test later on. 36339 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36340 if test "x$test_shortpath" = x; then 36341 # Short path failed, file does not exist as specified. 36342 # Try adding .exe or .cmd 36343 if test -f "${new_path}.exe"; then 36344 input_to_shortpath="${new_path}.exe" 36345 elif test -f "${new_path}.cmd"; then 36346 input_to_shortpath="${new_path}.cmd" 36347 else 36348 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 36349 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 36350 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36351 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36352 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36353 fi 36354 else 36355 input_to_shortpath="$new_path" 36356 fi 36357 36358 # Call helper function which possibly converts this using DOS-style short mode. 36359 # If so, the updated path is stored in $new_path. 36360 new_path="$input_to_shortpath" 36361 36362 input_path="$input_to_shortpath" 36363 # Check if we need to convert this using DOS-style short mode. If the path 36364 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36365 # take no chances and rewrite it. 36366 # Note: m4 eats our [], so we need to use [ and ] instead. 36367 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36368 if test "x$has_forbidden_chars" != x; then 36369 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36370 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36371 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36372 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36373 # Going to short mode and back again did indeed matter. Since short mode is 36374 # case insensitive, let's make it lowercase to improve readability. 36375 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36376 # Now convert it back to Unix-stile (cygpath) 36377 input_path=`$CYGPATH -u "$shortmode_path"` 36378 new_path="$input_path" 36379 fi 36380 fi 36381 36382 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36383 if test "x$test_cygdrive_prefix" = x; then 36384 # As a simple fix, exclude /usr/bin since it's not a real path. 36385 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36386 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36387 # a path prefixed by /cygdrive for fixpath to work. 36388 new_path="$CYGWIN_ROOT_PATH$input_path" 36389 fi 36390 fi 36391 36392 # remove trailing .exe if any 36393 new_path="${new_path/%.exe/}" 36394 36395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36396 36397 # First separate the path from the arguments. This will split at the first 36398 # space. 36399 complete="$GNM" 36400 path="${complete%% *}" 36401 tmp="$complete EOL" 36402 arguments="${tmp#* }" 36403 36404 # Input might be given as Windows format, start by converting to 36405 # unix format. 36406 new_path="$path" 36407 36408 windows_path="$new_path" 36409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36410 unix_path=`$CYGPATH -u "$windows_path"` 36411 new_path="$unix_path" 36412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36414 new_path="$unix_path" 36415 fi 36416 36417 36418 # Now try to locate executable using which 36419 new_path=`$WHICH "$new_path" 2> /dev/null` 36420 36421 if test "x$new_path" = x; then 36422 # Oops. Which didn't find the executable. 36423 # The splitting of arguments from the executable at a space might have been incorrect, 36424 # since paths with space are more likely in Windows. Give it another try with the whole 36425 # argument. 36426 path="$complete" 36427 arguments="EOL" 36428 new_path="$path" 36429 36430 windows_path="$new_path" 36431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36432 unix_path=`$CYGPATH -u "$windows_path"` 36433 new_path="$unix_path" 36434 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36435 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36436 new_path="$unix_path" 36437 fi 36438 36439 36440 new_path=`$WHICH "$new_path" 2> /dev/null` 36441 # bat and cmd files are not always considered executable in MSYS causing which 36442 # to not find them 36443 if test "x$new_path" = x \ 36444 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36445 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36446 new_path="$path" 36447 36448 windows_path="$new_path" 36449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36450 unix_path=`$CYGPATH -u "$windows_path"` 36451 new_path="$unix_path" 36452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36453 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36454 new_path="$unix_path" 36455 fi 36456 36457 fi 36458 36459 if test "x$new_path" = x; then 36460 # It's still not found. Now this is an unrecoverable error. 36461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36462 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36463 has_space=`$ECHO "$complete" | $GREP " "` 36464 if test "x$has_space" != x; then 36465 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36466 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36467 fi 36468 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36469 fi 36470 fi 36471 36472 # Now new_path has a complete unix path to the binary 36473 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36474 # Keep paths in /bin as-is, but remove trailing .exe if any 36475 new_path="${new_path/%.exe/}" 36476 # Do not save /bin paths to all_fixpath_prefixes! 36477 else 36478 # Not in mixed or Windows style, start by that. 36479 new_path=`cmd //c echo $new_path` 36480 36481 input_path="$new_path" 36482 # Check if we need to convert this using DOS-style short mode. If the path 36483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36484 # take no chances and rewrite it. 36485 # Note: m4 eats our [], so we need to use [ and ] instead. 36486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36487 if test "x$has_forbidden_chars" != x; then 36488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36489 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36490 fi 36491 36492 # Output is in $new_path 36493 36494 windows_path="$new_path" 36495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36496 unix_path=`$CYGPATH -u "$windows_path"` 36497 new_path="$unix_path" 36498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36499 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36500 new_path="$unix_path" 36501 fi 36502 36503 # remove trailing .exe if any 36504 new_path="${new_path/%.exe/}" 36505 36506 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36507 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36508 fi 36509 36510 else 36511 # We're on a unix platform. Hooray! :) 36512 # First separate the path from the arguments. This will split at the first 36513 # space. 36514 complete="$GNM" 36515 path="${complete%% *}" 36516 tmp="$complete EOL" 36517 arguments="${tmp#* }" 36518 36519 # Cannot rely on the command "which" here since it doesn't always work. 36520 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36521 if test -z "$is_absolute_path"; then 36522 # Path to executable is not absolute. Find it. 36523 IFS_save="$IFS" 36524 IFS=: 36525 for p in $PATH; do 36526 if test -f "$p/$path" && test -x "$p/$path"; then 36527 new_path="$p/$path" 36528 break 36529 fi 36530 done 36531 IFS="$IFS_save" 36532 else 36533 # This is an absolute path, we can use it without further modifications. 36534 new_path="$path" 36535 fi 36536 36537 if test "x$new_path" = x; then 36538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36539 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36540 has_space=`$ECHO "$complete" | $GREP " "` 36541 if test "x$has_space" != x; then 36542 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36543 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36544 fi 36545 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36546 fi 36547 fi 36548 36549 # Now join together the path and the arguments once again 36550 if test "x$arguments" != xEOL; then 36551 new_complete="$new_path ${arguments% *}" 36552 else 36553 new_complete="$new_path" 36554 fi 36555 36556 if test "x$complete" != "x$new_complete"; then 36557 GNM="$new_complete" 36558 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36559 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36560 fi 36561 fi 36562 36563 36564 36565 36566 # Publish this variable in the help. 36567 36568 36569 if test "x$MCS" = x; then 36570 # The variable is not set by user, try to locate tool using the code snippet 36571 for ac_prog in mcs 36572 do 36573 # Extract the first word of "$ac_prog", so it can be a program name with args. 36574 set dummy $ac_prog; ac_word=$2 36575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36576 $as_echo_n "checking for $ac_word... " >&6; } 36577 if ${ac_cv_path_MCS+:} false; then : 36578 $as_echo_n "(cached) " >&6 36579 else 36580 case $MCS in 36581 [\\/]* | ?:[\\/]*) 36582 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36583 ;; 36584 *) 36585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36586 for as_dir in $PATH 36587 do 36588 IFS=$as_save_IFS 36589 test -z "$as_dir" && as_dir=. 36590 for ac_exec_ext in '' $ac_executable_extensions; do 36591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36592 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36594 break 2 36595 fi 36596 done 36597 done 36598 IFS=$as_save_IFS 36599 36600 ;; 36601 esac 36602 fi 36603 MCS=$ac_cv_path_MCS 36604 if test -n "$MCS"; then 36605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36606 $as_echo "$MCS" >&6; } 36607 else 36608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36609 $as_echo "no" >&6; } 36610 fi 36611 36612 36613 test -n "$MCS" && break 36614 done 36615 36616 else 36617 # The variable is set, but is it from the command line or the environment? 36618 36619 # Try to remove the string !MCS! from our list. 36620 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36621 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36622 # If it failed, the variable was not from the command line. Ignore it, 36623 # but warn the user (except for BASH, which is always set by the calling BASH). 36624 if test "xMCS" != xBASH; then 36625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36626 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36627 fi 36628 # Try to locate tool using the code snippet 36629 for ac_prog in mcs 36630 do 36631 # Extract the first word of "$ac_prog", so it can be a program name with args. 36632 set dummy $ac_prog; ac_word=$2 36633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36634 $as_echo_n "checking for $ac_word... " >&6; } 36635 if ${ac_cv_path_MCS+:} false; then : 36636 $as_echo_n "(cached) " >&6 36637 else 36638 case $MCS in 36639 [\\/]* | ?:[\\/]*) 36640 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36641 ;; 36642 *) 36643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36644 for as_dir in $PATH 36645 do 36646 IFS=$as_save_IFS 36647 test -z "$as_dir" && as_dir=. 36648 for ac_exec_ext in '' $ac_executable_extensions; do 36649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36650 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36652 break 2 36653 fi 36654 done 36655 done 36656 IFS=$as_save_IFS 36657 36658 ;; 36659 esac 36660 fi 36661 MCS=$ac_cv_path_MCS 36662 if test -n "$MCS"; then 36663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36664 $as_echo "$MCS" >&6; } 36665 else 36666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36667 $as_echo "no" >&6; } 36668 fi 36669 36670 36671 test -n "$MCS" && break 36672 done 36673 36674 else 36675 # If it succeeded, then it was overridden by the user. We will use it 36676 # for the tool. 36677 36678 # First remove it from the list of overridden variables, so we can test 36679 # for unknown variables in the end. 36680 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36681 36682 # Check if the provided tool contains a complete path. 36683 tool_specified="$MCS" 36684 tool_basename="${tool_specified##*/}" 36685 if test "x$tool_basename" = "x$tool_specified"; then 36686 # A command without a complete path is provided, search $PATH. 36687 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36688 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36689 # Extract the first word of "$tool_basename", so it can be a program name with args. 36690 set dummy $tool_basename; ac_word=$2 36691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36692 $as_echo_n "checking for $ac_word... " >&6; } 36693 if ${ac_cv_path_MCS+:} false; then : 36694 $as_echo_n "(cached) " >&6 36695 else 36696 case $MCS in 36697 [\\/]* | ?:[\\/]*) 36698 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36699 ;; 36700 *) 36701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36702 for as_dir in $PATH 36703 do 36704 IFS=$as_save_IFS 36705 test -z "$as_dir" && as_dir=. 36706 for ac_exec_ext in '' $ac_executable_extensions; do 36707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36708 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36710 break 2 36711 fi 36712 done 36713 done 36714 IFS=$as_save_IFS 36715 36716 ;; 36717 esac 36718 fi 36719 MCS=$ac_cv_path_MCS 36720 if test -n "$MCS"; then 36721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36722 $as_echo "$MCS" >&6; } 36723 else 36724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36725 $as_echo "no" >&6; } 36726 fi 36727 36728 36729 if test "x$MCS" = x; then 36730 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36731 fi 36732 else 36733 # Otherwise we believe it is a complete path. Use it as it is. 36734 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36735 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36737 $as_echo_n "checking for MCS... " >&6; } 36738 if test ! -x "$tool_specified"; then 36739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36740 $as_echo "not found" >&6; } 36741 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36742 fi 36743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36744 $as_echo "$tool_specified" >&6; } 36745 fi 36746 fi 36747 fi 36748 36749 36750 36751 # Only process if variable expands to non-empty 36752 36753 if test "x$MCS" != x; then 36754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36755 36756 # First separate the path from the arguments. This will split at the first 36757 # space. 36758 complete="$MCS" 36759 path="${complete%% *}" 36760 tmp="$complete EOL" 36761 arguments="${tmp#* }" 36762 36763 # Input might be given as Windows format, start by converting to 36764 # unix format. 36765 new_path=`$CYGPATH -u "$path"` 36766 36767 # Now try to locate executable using which 36768 new_path=`$WHICH "$new_path" 2> /dev/null` 36769 # bat and cmd files are not always considered executable in cygwin causing which 36770 # to not find them 36771 if test "x$new_path" = x \ 36772 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36773 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36774 new_path=`$CYGPATH -u "$path"` 36775 fi 36776 if test "x$new_path" = x; then 36777 # Oops. Which didn't find the executable. 36778 # The splitting of arguments from the executable at a space might have been incorrect, 36779 # since paths with space are more likely in Windows. Give it another try with the whole 36780 # argument. 36781 path="$complete" 36782 arguments="EOL" 36783 new_path=`$CYGPATH -u "$path"` 36784 new_path=`$WHICH "$new_path" 2> /dev/null` 36785 # bat and cmd files are not always considered executable in cygwin causing which 36786 # to not find them 36787 if test "x$new_path" = x \ 36788 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36789 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36790 new_path=`$CYGPATH -u "$path"` 36791 fi 36792 if test "x$new_path" = x; then 36793 # It's still not found. Now this is an unrecoverable error. 36794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36795 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36796 has_space=`$ECHO "$complete" | $GREP " "` 36797 if test "x$has_space" != x; then 36798 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36799 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36800 fi 36801 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36802 fi 36803 fi 36804 36805 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36806 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36807 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36808 # "foo.exe" is OK but "foo" is an error. 36809 # 36810 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36811 # It is also a way to make sure we got the proper file name for the real test later on. 36812 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36813 if test "x$test_shortpath" = x; then 36814 # Short path failed, file does not exist as specified. 36815 # Try adding .exe or .cmd 36816 if test -f "${new_path}.exe"; then 36817 input_to_shortpath="${new_path}.exe" 36818 elif test -f "${new_path}.cmd"; then 36819 input_to_shortpath="${new_path}.cmd" 36820 else 36821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36822 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36823 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36824 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36825 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36826 fi 36827 else 36828 input_to_shortpath="$new_path" 36829 fi 36830 36831 # Call helper function which possibly converts this using DOS-style short mode. 36832 # If so, the updated path is stored in $new_path. 36833 new_path="$input_to_shortpath" 36834 36835 input_path="$input_to_shortpath" 36836 # Check if we need to convert this using DOS-style short mode. If the path 36837 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36838 # take no chances and rewrite it. 36839 # Note: m4 eats our [], so we need to use [ and ] instead. 36840 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36841 if test "x$has_forbidden_chars" != x; then 36842 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36843 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36844 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36845 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36846 # Going to short mode and back again did indeed matter. Since short mode is 36847 # case insensitive, let's make it lowercase to improve readability. 36848 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36849 # Now convert it back to Unix-stile (cygpath) 36850 input_path=`$CYGPATH -u "$shortmode_path"` 36851 new_path="$input_path" 36852 fi 36853 fi 36854 36855 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36856 if test "x$test_cygdrive_prefix" = x; then 36857 # As a simple fix, exclude /usr/bin since it's not a real path. 36858 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36859 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36860 # a path prefixed by /cygdrive for fixpath to work. 36861 new_path="$CYGWIN_ROOT_PATH$input_path" 36862 fi 36863 fi 36864 36865 # remove trailing .exe if any 36866 new_path="${new_path/%.exe/}" 36867 36868 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36869 36870 # First separate the path from the arguments. This will split at the first 36871 # space. 36872 complete="$MCS" 36873 path="${complete%% *}" 36874 tmp="$complete EOL" 36875 arguments="${tmp#* }" 36876 36877 # Input might be given as Windows format, start by converting to 36878 # unix format. 36879 new_path="$path" 36880 36881 windows_path="$new_path" 36882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36883 unix_path=`$CYGPATH -u "$windows_path"` 36884 new_path="$unix_path" 36885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36886 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36887 new_path="$unix_path" 36888 fi 36889 36890 36891 # Now try to locate executable using which 36892 new_path=`$WHICH "$new_path" 2> /dev/null` 36893 36894 if test "x$new_path" = x; then 36895 # Oops. Which didn't find the executable. 36896 # The splitting of arguments from the executable at a space might have been incorrect, 36897 # since paths with space are more likely in Windows. Give it another try with the whole 36898 # argument. 36899 path="$complete" 36900 arguments="EOL" 36901 new_path="$path" 36902 36903 windows_path="$new_path" 36904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36905 unix_path=`$CYGPATH -u "$windows_path"` 36906 new_path="$unix_path" 36907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36908 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36909 new_path="$unix_path" 36910 fi 36911 36912 36913 new_path=`$WHICH "$new_path" 2> /dev/null` 36914 # bat and cmd files are not always considered executable in MSYS causing which 36915 # to not find them 36916 if test "x$new_path" = x \ 36917 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36918 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36919 new_path="$path" 36920 36921 windows_path="$new_path" 36922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36923 unix_path=`$CYGPATH -u "$windows_path"` 36924 new_path="$unix_path" 36925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36926 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36927 new_path="$unix_path" 36928 fi 36929 36930 fi 36931 36932 if test "x$new_path" = x; then 36933 # It's still not found. Now this is an unrecoverable error. 36934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36935 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36936 has_space=`$ECHO "$complete" | $GREP " "` 36937 if test "x$has_space" != x; then 36938 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36939 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36940 fi 36941 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36942 fi 36943 fi 36944 36945 # Now new_path has a complete unix path to the binary 36946 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36947 # Keep paths in /bin as-is, but remove trailing .exe if any 36948 new_path="${new_path/%.exe/}" 36949 # Do not save /bin paths to all_fixpath_prefixes! 36950 else 36951 # Not in mixed or Windows style, start by that. 36952 new_path=`cmd //c echo $new_path` 36953 36954 input_path="$new_path" 36955 # Check if we need to convert this using DOS-style short mode. If the path 36956 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36957 # take no chances and rewrite it. 36958 # Note: m4 eats our [], so we need to use [ and ] instead. 36959 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36960 if test "x$has_forbidden_chars" != x; then 36961 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36962 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36963 fi 36964 36965 # Output is in $new_path 36966 36967 windows_path="$new_path" 36968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36969 unix_path=`$CYGPATH -u "$windows_path"` 36970 new_path="$unix_path" 36971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36972 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36973 new_path="$unix_path" 36974 fi 36975 36976 # remove trailing .exe if any 36977 new_path="${new_path/%.exe/}" 36978 36979 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36980 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36981 fi 36982 36983 else 36984 # We're on a unix platform. Hooray! :) 36985 # First separate the path from the arguments. This will split at the first 36986 # space. 36987 complete="$MCS" 36988 path="${complete%% *}" 36989 tmp="$complete EOL" 36990 arguments="${tmp#* }" 36991 36992 # Cannot rely on the command "which" here since it doesn't always work. 36993 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36994 if test -z "$is_absolute_path"; then 36995 # Path to executable is not absolute. Find it. 36996 IFS_save="$IFS" 36997 IFS=: 36998 for p in $PATH; do 36999 if test -f "$p/$path" && test -x "$p/$path"; then 37000 new_path="$p/$path" 37001 break 37002 fi 37003 done 37004 IFS="$IFS_save" 37005 else 37006 # This is an absolute path, we can use it without further modifications. 37007 new_path="$path" 37008 fi 37009 37010 if test "x$new_path" = x; then 37011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 37012 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 37013 has_space=`$ECHO "$complete" | $GREP " "` 37014 if test "x$has_space" != x; then 37015 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37016 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37017 fi 37018 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 37019 fi 37020 fi 37021 37022 # Now join together the path and the arguments once again 37023 if test "x$arguments" != xEOL; then 37024 new_complete="$new_path ${arguments% *}" 37025 else 37026 new_complete="$new_path" 37027 fi 37028 37029 if test "x$complete" != "x$new_complete"; then 37030 MCS="$new_complete" 37031 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 37032 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 37033 fi 37034 fi 37035 37036 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 37037 # FIXME: we should unify this with the solaris case above. 37038 37039 37040 # Publish this variable in the help. 37041 37042 37043 if test "x$STRIP" = x; then 37044 # The variable is not set by user, try to locate tool using the code snippet 37045 if test -n "$ac_tool_prefix"; then 37046 for ac_prog in strip 37047 do 37048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37051 $as_echo_n "checking for $ac_word... " >&6; } 37052 if ${ac_cv_prog_STRIP+:} false; then : 37053 $as_echo_n "(cached) " >&6 37054 else 37055 if test -n "$STRIP"; then 37056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37057 else 37058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37059 for as_dir in $PATH 37060 do 37061 IFS=$as_save_IFS 37062 test -z "$as_dir" && as_dir=. 37063 for ac_exec_ext in '' $ac_executable_extensions; do 37064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37065 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37067 break 2 37068 fi 37069 done 37070 done 37071 IFS=$as_save_IFS 37072 37073 fi 37074 fi 37075 STRIP=$ac_cv_prog_STRIP 37076 if test -n "$STRIP"; then 37077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37078 $as_echo "$STRIP" >&6; } 37079 else 37080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37081 $as_echo "no" >&6; } 37082 fi 37083 37084 37085 test -n "$STRIP" && break 37086 done 37087 fi 37088 if test -z "$STRIP"; then 37089 ac_ct_STRIP=$STRIP 37090 for ac_prog in strip 37091 do 37092 # Extract the first word of "$ac_prog", so it can be a program name with args. 37093 set dummy $ac_prog; ac_word=$2 37094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37095 $as_echo_n "checking for $ac_word... " >&6; } 37096 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37097 $as_echo_n "(cached) " >&6 37098 else 37099 if test -n "$ac_ct_STRIP"; then 37100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37101 else 37102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37103 for as_dir in $PATH 37104 do 37105 IFS=$as_save_IFS 37106 test -z "$as_dir" && as_dir=. 37107 for ac_exec_ext in '' $ac_executable_extensions; do 37108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37109 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37111 break 2 37112 fi 37113 done 37114 done 37115 IFS=$as_save_IFS 37116 37117 fi 37118 fi 37119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37120 if test -n "$ac_ct_STRIP"; then 37121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37122 $as_echo "$ac_ct_STRIP" >&6; } 37123 else 37124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37125 $as_echo "no" >&6; } 37126 fi 37127 37128 37129 test -n "$ac_ct_STRIP" && break 37130 done 37131 37132 if test "x$ac_ct_STRIP" = x; then 37133 STRIP="" 37134 else 37135 case $cross_compiling:$ac_tool_warned in 37136 yes:) 37137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37139 ac_tool_warned=yes ;; 37140 esac 37141 STRIP=$ac_ct_STRIP 37142 fi 37143 fi 37144 37145 else 37146 # The variable is set, but is it from the command line or the environment? 37147 37148 # Try to remove the string !STRIP! from our list. 37149 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 37150 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37151 # If it failed, the variable was not from the command line. Ignore it, 37152 # but warn the user (except for BASH, which is always set by the calling BASH). 37153 if test "xSTRIP" != xBASH; then 37154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 37155 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 37156 fi 37157 # Try to locate tool using the code snippet 37158 if test -n "$ac_tool_prefix"; then 37159 for ac_prog in strip 37160 do 37161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37164 $as_echo_n "checking for $ac_word... " >&6; } 37165 if ${ac_cv_prog_STRIP+:} false; then : 37166 $as_echo_n "(cached) " >&6 37167 else 37168 if test -n "$STRIP"; then 37169 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37170 else 37171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37172 for as_dir in $PATH 37173 do 37174 IFS=$as_save_IFS 37175 test -z "$as_dir" && as_dir=. 37176 for ac_exec_ext in '' $ac_executable_extensions; do 37177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37178 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37180 break 2 37181 fi 37182 done 37183 done 37184 IFS=$as_save_IFS 37185 37186 fi 37187 fi 37188 STRIP=$ac_cv_prog_STRIP 37189 if test -n "$STRIP"; then 37190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37191 $as_echo "$STRIP" >&6; } 37192 else 37193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37194 $as_echo "no" >&6; } 37195 fi 37196 37197 37198 test -n "$STRIP" && break 37199 done 37200 fi 37201 if test -z "$STRIP"; then 37202 ac_ct_STRIP=$STRIP 37203 for ac_prog in strip 37204 do 37205 # Extract the first word of "$ac_prog", so it can be a program name with args. 37206 set dummy $ac_prog; ac_word=$2 37207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37208 $as_echo_n "checking for $ac_word... " >&6; } 37209 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37210 $as_echo_n "(cached) " >&6 37211 else 37212 if test -n "$ac_ct_STRIP"; then 37213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37214 else 37215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37216 for as_dir in $PATH 37217 do 37218 IFS=$as_save_IFS 37219 test -z "$as_dir" && as_dir=. 37220 for ac_exec_ext in '' $ac_executable_extensions; do 37221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37222 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37224 break 2 37225 fi 37226 done 37227 done 37228 IFS=$as_save_IFS 37229 37230 fi 37231 fi 37232 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37233 if test -n "$ac_ct_STRIP"; then 37234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37235 $as_echo "$ac_ct_STRIP" >&6; } 37236 else 37237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37238 $as_echo "no" >&6; } 37239 fi 37240 37241 37242 test -n "$ac_ct_STRIP" && break 37243 done 37244 37245 if test "x$ac_ct_STRIP" = x; then 37246 STRIP="" 37247 else 37248 case $cross_compiling:$ac_tool_warned in 37249 yes:) 37250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37252 ac_tool_warned=yes ;; 37253 esac 37254 STRIP=$ac_ct_STRIP 37255 fi 37256 fi 37257 37258 else 37259 # If it succeeded, then it was overridden by the user. We will use it 37260 # for the tool. 37261 37262 # First remove it from the list of overridden variables, so we can test 37263 # for unknown variables in the end. 37264 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37265 37266 # Check if the provided tool contains a complete path. 37267 tool_specified="$STRIP" 37268 tool_basename="${tool_specified##*/}" 37269 if test "x$tool_basename" = "x$tool_specified"; then 37270 # A command without a complete path is provided, search $PATH. 37271 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 37272 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 37273 # Extract the first word of "$tool_basename", so it can be a program name with args. 37274 set dummy $tool_basename; ac_word=$2 37275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37276 $as_echo_n "checking for $ac_word... " >&6; } 37277 if ${ac_cv_path_STRIP+:} false; then : 37278 $as_echo_n "(cached) " >&6 37279 else 37280 case $STRIP in 37281 [\\/]* | ?:[\\/]*) 37282 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37283 ;; 37284 *) 37285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37286 for as_dir in $PATH 37287 do 37288 IFS=$as_save_IFS 37289 test -z "$as_dir" && as_dir=. 37290 for ac_exec_ext in '' $ac_executable_extensions; do 37291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37292 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37294 break 2 37295 fi 37296 done 37297 done 37298 IFS=$as_save_IFS 37299 37300 ;; 37301 esac 37302 fi 37303 STRIP=$ac_cv_path_STRIP 37304 if test -n "$STRIP"; then 37305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37306 $as_echo "$STRIP" >&6; } 37307 else 37308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37309 $as_echo "no" >&6; } 37310 fi 37311 37312 37313 if test "x$STRIP" = x; then 37314 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37315 fi 37316 else 37317 # Otherwise we believe it is a complete path. Use it as it is. 37318 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 37319 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 37320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37321 $as_echo_n "checking for STRIP... " >&6; } 37322 if test ! -x "$tool_specified"; then 37323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37324 $as_echo "not found" >&6; } 37325 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37326 fi 37327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37328 $as_echo "$tool_specified" >&6; } 37329 fi 37330 fi 37331 fi 37332 37333 37334 37335 # Only process if variable expands to non-empty 37336 37337 if test "x$STRIP" != x; then 37338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37339 37340 # First separate the path from the arguments. This will split at the first 37341 # space. 37342 complete="$STRIP" 37343 path="${complete%% *}" 37344 tmp="$complete EOL" 37345 arguments="${tmp#* }" 37346 37347 # Input might be given as Windows format, start by converting to 37348 # unix format. 37349 new_path=`$CYGPATH -u "$path"` 37350 37351 # Now try to locate executable using which 37352 new_path=`$WHICH "$new_path" 2> /dev/null` 37353 # bat and cmd files are not always considered executable in cygwin causing which 37354 # to not find them 37355 if test "x$new_path" = x \ 37356 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37357 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37358 new_path=`$CYGPATH -u "$path"` 37359 fi 37360 if test "x$new_path" = x; then 37361 # Oops. Which didn't find the executable. 37362 # The splitting of arguments from the executable at a space might have been incorrect, 37363 # since paths with space are more likely in Windows. Give it another try with the whole 37364 # argument. 37365 path="$complete" 37366 arguments="EOL" 37367 new_path=`$CYGPATH -u "$path"` 37368 new_path=`$WHICH "$new_path" 2> /dev/null` 37369 # bat and cmd files are not always considered executable in cygwin causing which 37370 # to not find them 37371 if test "x$new_path" = x \ 37372 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37373 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37374 new_path=`$CYGPATH -u "$path"` 37375 fi 37376 if test "x$new_path" = x; then 37377 # It's still not found. Now this is an unrecoverable error. 37378 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37379 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37380 has_space=`$ECHO "$complete" | $GREP " "` 37381 if test "x$has_space" != x; then 37382 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37383 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37384 fi 37385 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37386 fi 37387 fi 37388 37389 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37390 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37391 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37392 # "foo.exe" is OK but "foo" is an error. 37393 # 37394 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37395 # It is also a way to make sure we got the proper file name for the real test later on. 37396 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37397 if test "x$test_shortpath" = x; then 37398 # Short path failed, file does not exist as specified. 37399 # Try adding .exe or .cmd 37400 if test -f "${new_path}.exe"; then 37401 input_to_shortpath="${new_path}.exe" 37402 elif test -f "${new_path}.cmd"; then 37403 input_to_shortpath="${new_path}.cmd" 37404 else 37405 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37406 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37407 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37408 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37409 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37410 fi 37411 else 37412 input_to_shortpath="$new_path" 37413 fi 37414 37415 # Call helper function which possibly converts this using DOS-style short mode. 37416 # If so, the updated path is stored in $new_path. 37417 new_path="$input_to_shortpath" 37418 37419 input_path="$input_to_shortpath" 37420 # Check if we need to convert this using DOS-style short mode. If the path 37421 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37422 # take no chances and rewrite it. 37423 # Note: m4 eats our [], so we need to use [ and ] instead. 37424 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37425 if test "x$has_forbidden_chars" != x; then 37426 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37427 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37428 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37429 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37430 # Going to short mode and back again did indeed matter. Since short mode is 37431 # case insensitive, let's make it lowercase to improve readability. 37432 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37433 # Now convert it back to Unix-stile (cygpath) 37434 input_path=`$CYGPATH -u "$shortmode_path"` 37435 new_path="$input_path" 37436 fi 37437 fi 37438 37439 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37440 if test "x$test_cygdrive_prefix" = x; then 37441 # As a simple fix, exclude /usr/bin since it's not a real path. 37442 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37443 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37444 # a path prefixed by /cygdrive for fixpath to work. 37445 new_path="$CYGWIN_ROOT_PATH$input_path" 37446 fi 37447 fi 37448 37449 # remove trailing .exe if any 37450 new_path="${new_path/%.exe/}" 37451 37452 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37453 37454 # First separate the path from the arguments. This will split at the first 37455 # space. 37456 complete="$STRIP" 37457 path="${complete%% *}" 37458 tmp="$complete EOL" 37459 arguments="${tmp#* }" 37460 37461 # Input might be given as Windows format, start by converting to 37462 # unix format. 37463 new_path="$path" 37464 37465 windows_path="$new_path" 37466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37467 unix_path=`$CYGPATH -u "$windows_path"` 37468 new_path="$unix_path" 37469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37471 new_path="$unix_path" 37472 fi 37473 37474 37475 # Now try to locate executable using which 37476 new_path=`$WHICH "$new_path" 2> /dev/null` 37477 37478 if test "x$new_path" = x; then 37479 # Oops. Which didn't find the executable. 37480 # The splitting of arguments from the executable at a space might have been incorrect, 37481 # since paths with space are more likely in Windows. Give it another try with the whole 37482 # argument. 37483 path="$complete" 37484 arguments="EOL" 37485 new_path="$path" 37486 37487 windows_path="$new_path" 37488 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37489 unix_path=`$CYGPATH -u "$windows_path"` 37490 new_path="$unix_path" 37491 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37492 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37493 new_path="$unix_path" 37494 fi 37495 37496 37497 new_path=`$WHICH "$new_path" 2> /dev/null` 37498 # bat and cmd files are not always considered executable in MSYS causing which 37499 # to not find them 37500 if test "x$new_path" = x \ 37501 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37502 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37503 new_path="$path" 37504 37505 windows_path="$new_path" 37506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37507 unix_path=`$CYGPATH -u "$windows_path"` 37508 new_path="$unix_path" 37509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37510 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37511 new_path="$unix_path" 37512 fi 37513 37514 fi 37515 37516 if test "x$new_path" = x; then 37517 # It's still not found. Now this is an unrecoverable error. 37518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37519 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37520 has_space=`$ECHO "$complete" | $GREP " "` 37521 if test "x$has_space" != x; then 37522 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37523 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37524 fi 37525 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37526 fi 37527 fi 37528 37529 # Now new_path has a complete unix path to the binary 37530 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37531 # Keep paths in /bin as-is, but remove trailing .exe if any 37532 new_path="${new_path/%.exe/}" 37533 # Do not save /bin paths to all_fixpath_prefixes! 37534 else 37535 # Not in mixed or Windows style, start by that. 37536 new_path=`cmd //c echo $new_path` 37537 37538 input_path="$new_path" 37539 # Check if we need to convert this using DOS-style short mode. If the path 37540 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37541 # take no chances and rewrite it. 37542 # Note: m4 eats our [], so we need to use [ and ] instead. 37543 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37544 if test "x$has_forbidden_chars" != x; then 37545 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37546 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37547 fi 37548 37549 # Output is in $new_path 37550 37551 windows_path="$new_path" 37552 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37553 unix_path=`$CYGPATH -u "$windows_path"` 37554 new_path="$unix_path" 37555 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37556 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37557 new_path="$unix_path" 37558 fi 37559 37560 # remove trailing .exe if any 37561 new_path="${new_path/%.exe/}" 37562 37563 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37564 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37565 fi 37566 37567 else 37568 # We're on a unix platform. Hooray! :) 37569 # First separate the path from the arguments. This will split at the first 37570 # space. 37571 complete="$STRIP" 37572 path="${complete%% *}" 37573 tmp="$complete EOL" 37574 arguments="${tmp#* }" 37575 37576 # Cannot rely on the command "which" here since it doesn't always work. 37577 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37578 if test -z "$is_absolute_path"; then 37579 # Path to executable is not absolute. Find it. 37580 IFS_save="$IFS" 37581 IFS=: 37582 for p in $PATH; do 37583 if test -f "$p/$path" && test -x "$p/$path"; then 37584 new_path="$p/$path" 37585 break 37586 fi 37587 done 37588 IFS="$IFS_save" 37589 else 37590 # This is an absolute path, we can use it without further modifications. 37591 new_path="$path" 37592 fi 37593 37594 if test "x$new_path" = x; then 37595 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37596 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37597 has_space=`$ECHO "$complete" | $GREP " "` 37598 if test "x$has_space" != x; then 37599 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37600 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37601 fi 37602 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37603 fi 37604 fi 37605 37606 # Now join together the path and the arguments once again 37607 if test "x$arguments" != xEOL; then 37608 new_complete="$new_path ${arguments% *}" 37609 else 37610 new_complete="$new_path" 37611 fi 37612 37613 if test "x$complete" != "x$new_complete"; then 37614 STRIP="$new_complete" 37615 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37616 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37617 fi 37618 fi 37619 37620 37621 37622 # Publish this variable in the help. 37623 37624 37625 if test "x$NM" = x; then 37626 # The variable is not set by user, try to locate tool using the code snippet 37627 if test -n "$ac_tool_prefix"; then 37628 for ac_prog in nm 37629 do 37630 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37631 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37633 $as_echo_n "checking for $ac_word... " >&6; } 37634 if ${ac_cv_prog_NM+:} false; then : 37635 $as_echo_n "(cached) " >&6 37636 else 37637 if test -n "$NM"; then 37638 ac_cv_prog_NM="$NM" # Let the user override the test. 37639 else 37640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37641 for as_dir in $PATH 37642 do 37643 IFS=$as_save_IFS 37644 test -z "$as_dir" && as_dir=. 37645 for ac_exec_ext in '' $ac_executable_extensions; do 37646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37647 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37649 break 2 37650 fi 37651 done 37652 done 37653 IFS=$as_save_IFS 37654 37655 fi 37656 fi 37657 NM=$ac_cv_prog_NM 37658 if test -n "$NM"; then 37659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37660 $as_echo "$NM" >&6; } 37661 else 37662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37663 $as_echo "no" >&6; } 37664 fi 37665 37666 37667 test -n "$NM" && break 37668 done 37669 fi 37670 if test -z "$NM"; then 37671 ac_ct_NM=$NM 37672 for ac_prog in nm 37673 do 37674 # Extract the first word of "$ac_prog", so it can be a program name with args. 37675 set dummy $ac_prog; ac_word=$2 37676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37677 $as_echo_n "checking for $ac_word... " >&6; } 37678 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37679 $as_echo_n "(cached) " >&6 37680 else 37681 if test -n "$ac_ct_NM"; then 37682 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37683 else 37684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37685 for as_dir in $PATH 37686 do 37687 IFS=$as_save_IFS 37688 test -z "$as_dir" && as_dir=. 37689 for ac_exec_ext in '' $ac_executable_extensions; do 37690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37691 ac_cv_prog_ac_ct_NM="$ac_prog" 37692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37693 break 2 37694 fi 37695 done 37696 done 37697 IFS=$as_save_IFS 37698 37699 fi 37700 fi 37701 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37702 if test -n "$ac_ct_NM"; then 37703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37704 $as_echo "$ac_ct_NM" >&6; } 37705 else 37706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37707 $as_echo "no" >&6; } 37708 fi 37709 37710 37711 test -n "$ac_ct_NM" && break 37712 done 37713 37714 if test "x$ac_ct_NM" = x; then 37715 NM="" 37716 else 37717 case $cross_compiling:$ac_tool_warned in 37718 yes:) 37719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37721 ac_tool_warned=yes ;; 37722 esac 37723 NM=$ac_ct_NM 37724 fi 37725 fi 37726 37727 else 37728 # The variable is set, but is it from the command line or the environment? 37729 37730 # Try to remove the string !NM! from our list. 37731 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37732 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37733 # If it failed, the variable was not from the command line. Ignore it, 37734 # but warn the user (except for BASH, which is always set by the calling BASH). 37735 if test "xNM" != xBASH; then 37736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37737 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37738 fi 37739 # Try to locate tool using the code snippet 37740 if test -n "$ac_tool_prefix"; then 37741 for ac_prog in nm 37742 do 37743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37746 $as_echo_n "checking for $ac_word... " >&6; } 37747 if ${ac_cv_prog_NM+:} false; then : 37748 $as_echo_n "(cached) " >&6 37749 else 37750 if test -n "$NM"; then 37751 ac_cv_prog_NM="$NM" # Let the user override the test. 37752 else 37753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37754 for as_dir in $PATH 37755 do 37756 IFS=$as_save_IFS 37757 test -z "$as_dir" && as_dir=. 37758 for ac_exec_ext in '' $ac_executable_extensions; do 37759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37760 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37762 break 2 37763 fi 37764 done 37765 done 37766 IFS=$as_save_IFS 37767 37768 fi 37769 fi 37770 NM=$ac_cv_prog_NM 37771 if test -n "$NM"; then 37772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37773 $as_echo "$NM" >&6; } 37774 else 37775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37776 $as_echo "no" >&6; } 37777 fi 37778 37779 37780 test -n "$NM" && break 37781 done 37782 fi 37783 if test -z "$NM"; then 37784 ac_ct_NM=$NM 37785 for ac_prog in nm 37786 do 37787 # Extract the first word of "$ac_prog", so it can be a program name with args. 37788 set dummy $ac_prog; ac_word=$2 37789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37790 $as_echo_n "checking for $ac_word... " >&6; } 37791 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37792 $as_echo_n "(cached) " >&6 37793 else 37794 if test -n "$ac_ct_NM"; then 37795 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37796 else 37797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37798 for as_dir in $PATH 37799 do 37800 IFS=$as_save_IFS 37801 test -z "$as_dir" && as_dir=. 37802 for ac_exec_ext in '' $ac_executable_extensions; do 37803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37804 ac_cv_prog_ac_ct_NM="$ac_prog" 37805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37806 break 2 37807 fi 37808 done 37809 done 37810 IFS=$as_save_IFS 37811 37812 fi 37813 fi 37814 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37815 if test -n "$ac_ct_NM"; then 37816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37817 $as_echo "$ac_ct_NM" >&6; } 37818 else 37819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37820 $as_echo "no" >&6; } 37821 fi 37822 37823 37824 test -n "$ac_ct_NM" && break 37825 done 37826 37827 if test "x$ac_ct_NM" = x; then 37828 NM="" 37829 else 37830 case $cross_compiling:$ac_tool_warned in 37831 yes:) 37832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37834 ac_tool_warned=yes ;; 37835 esac 37836 NM=$ac_ct_NM 37837 fi 37838 fi 37839 37840 else 37841 # If it succeeded, then it was overridden by the user. We will use it 37842 # for the tool. 37843 37844 # First remove it from the list of overridden variables, so we can test 37845 # for unknown variables in the end. 37846 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37847 37848 # Check if the provided tool contains a complete path. 37849 tool_specified="$NM" 37850 tool_basename="${tool_specified##*/}" 37851 if test "x$tool_basename" = "x$tool_specified"; then 37852 # A command without a complete path is provided, search $PATH. 37853 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37854 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37855 # Extract the first word of "$tool_basename", so it can be a program name with args. 37856 set dummy $tool_basename; ac_word=$2 37857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37858 $as_echo_n "checking for $ac_word... " >&6; } 37859 if ${ac_cv_path_NM+:} false; then : 37860 $as_echo_n "(cached) " >&6 37861 else 37862 case $NM in 37863 [\\/]* | ?:[\\/]*) 37864 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37865 ;; 37866 *) 37867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37868 for as_dir in $PATH 37869 do 37870 IFS=$as_save_IFS 37871 test -z "$as_dir" && as_dir=. 37872 for ac_exec_ext in '' $ac_executable_extensions; do 37873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37874 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37876 break 2 37877 fi 37878 done 37879 done 37880 IFS=$as_save_IFS 37881 37882 ;; 37883 esac 37884 fi 37885 NM=$ac_cv_path_NM 37886 if test -n "$NM"; then 37887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37888 $as_echo "$NM" >&6; } 37889 else 37890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37891 $as_echo "no" >&6; } 37892 fi 37893 37894 37895 if test "x$NM" = x; then 37896 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37897 fi 37898 else 37899 # Otherwise we believe it is a complete path. Use it as it is. 37900 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37901 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37903 $as_echo_n "checking for NM... " >&6; } 37904 if test ! -x "$tool_specified"; then 37905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37906 $as_echo "not found" >&6; } 37907 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37908 fi 37909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37910 $as_echo "$tool_specified" >&6; } 37911 fi 37912 fi 37913 fi 37914 37915 37916 37917 # Only process if variable expands to non-empty 37918 37919 if test "x$NM" != x; then 37920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37921 37922 # First separate the path from the arguments. This will split at the first 37923 # space. 37924 complete="$NM" 37925 path="${complete%% *}" 37926 tmp="$complete EOL" 37927 arguments="${tmp#* }" 37928 37929 # Input might be given as Windows format, start by converting to 37930 # unix format. 37931 new_path=`$CYGPATH -u "$path"` 37932 37933 # Now try to locate executable using which 37934 new_path=`$WHICH "$new_path" 2> /dev/null` 37935 # bat and cmd files are not always considered executable in cygwin causing which 37936 # to not find them 37937 if test "x$new_path" = x \ 37938 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37939 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37940 new_path=`$CYGPATH -u "$path"` 37941 fi 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=`$CYGPATH -u "$path"` 37950 new_path=`$WHICH "$new_path" 2> /dev/null` 37951 # bat and cmd files are not always considered executable in cygwin causing which 37952 # to not find them 37953 if test "x$new_path" = x \ 37954 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37955 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37956 new_path=`$CYGPATH -u "$path"` 37957 fi 37958 if test "x$new_path" = x; then 37959 # It's still not found. Now this is an unrecoverable error. 37960 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37961 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37962 has_space=`$ECHO "$complete" | $GREP " "` 37963 if test "x$has_space" != x; then 37964 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37965 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37966 fi 37967 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37968 fi 37969 fi 37970 37971 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37972 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37973 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37974 # "foo.exe" is OK but "foo" is an error. 37975 # 37976 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37977 # It is also a way to make sure we got the proper file name for the real test later on. 37978 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37979 if test "x$test_shortpath" = x; then 37980 # Short path failed, file does not exist as specified. 37981 # Try adding .exe or .cmd 37982 if test -f "${new_path}.exe"; then 37983 input_to_shortpath="${new_path}.exe" 37984 elif test -f "${new_path}.cmd"; then 37985 input_to_shortpath="${new_path}.cmd" 37986 else 37987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37988 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37989 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37990 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37991 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37992 fi 37993 else 37994 input_to_shortpath="$new_path" 37995 fi 37996 37997 # Call helper function which possibly converts this using DOS-style short mode. 37998 # If so, the updated path is stored in $new_path. 37999 new_path="$input_to_shortpath" 38000 38001 input_path="$input_to_shortpath" 38002 # Check if we need to convert this using DOS-style short mode. If the path 38003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38004 # take no chances and rewrite it. 38005 # Note: m4 eats our [], so we need to use [ and ] instead. 38006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38007 if test "x$has_forbidden_chars" != x; then 38008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38009 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38010 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38011 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38012 # Going to short mode and back again did indeed matter. Since short mode is 38013 # case insensitive, let's make it lowercase to improve readability. 38014 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38015 # Now convert it back to Unix-stile (cygpath) 38016 input_path=`$CYGPATH -u "$shortmode_path"` 38017 new_path="$input_path" 38018 fi 38019 fi 38020 38021 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38022 if test "x$test_cygdrive_prefix" = x; then 38023 # As a simple fix, exclude /usr/bin since it's not a real path. 38024 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38025 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38026 # a path prefixed by /cygdrive for fixpath to work. 38027 new_path="$CYGWIN_ROOT_PATH$input_path" 38028 fi 38029 fi 38030 38031 # remove trailing .exe if any 38032 new_path="${new_path/%.exe/}" 38033 38034 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38035 38036 # First separate the path from the arguments. This will split at the first 38037 # space. 38038 complete="$NM" 38039 path="${complete%% *}" 38040 tmp="$complete EOL" 38041 arguments="${tmp#* }" 38042 38043 # Input might be given as Windows format, start by converting to 38044 # unix format. 38045 new_path="$path" 38046 38047 windows_path="$new_path" 38048 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38049 unix_path=`$CYGPATH -u "$windows_path"` 38050 new_path="$unix_path" 38051 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38052 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38053 new_path="$unix_path" 38054 fi 38055 38056 38057 # Now try to locate executable using which 38058 new_path=`$WHICH "$new_path" 2> /dev/null` 38059 38060 if test "x$new_path" = x; then 38061 # Oops. Which didn't find the executable. 38062 # The splitting of arguments from the executable at a space might have been incorrect, 38063 # since paths with space are more likely in Windows. Give it another try with the whole 38064 # argument. 38065 path="$complete" 38066 arguments="EOL" 38067 new_path="$path" 38068 38069 windows_path="$new_path" 38070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38071 unix_path=`$CYGPATH -u "$windows_path"` 38072 new_path="$unix_path" 38073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38074 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38075 new_path="$unix_path" 38076 fi 38077 38078 38079 new_path=`$WHICH "$new_path" 2> /dev/null` 38080 # bat and cmd files are not always considered executable in MSYS causing which 38081 # to not find them 38082 if test "x$new_path" = x \ 38083 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38084 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38085 new_path="$path" 38086 38087 windows_path="$new_path" 38088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38089 unix_path=`$CYGPATH -u "$windows_path"` 38090 new_path="$unix_path" 38091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38093 new_path="$unix_path" 38094 fi 38095 38096 fi 38097 38098 if test "x$new_path" = x; then 38099 # It's still not found. Now this is an unrecoverable error. 38100 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38101 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38102 has_space=`$ECHO "$complete" | $GREP " "` 38103 if test "x$has_space" != x; then 38104 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38105 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38106 fi 38107 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38108 fi 38109 fi 38110 38111 # Now new_path has a complete unix path to the binary 38112 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38113 # Keep paths in /bin as-is, but remove trailing .exe if any 38114 new_path="${new_path/%.exe/}" 38115 # Do not save /bin paths to all_fixpath_prefixes! 38116 else 38117 # Not in mixed or Windows style, start by that. 38118 new_path=`cmd //c echo $new_path` 38119 38120 input_path="$new_path" 38121 # Check if we need to convert this using DOS-style short mode. If the path 38122 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38123 # take no chances and rewrite it. 38124 # Note: m4 eats our [], so we need to use [ and ] instead. 38125 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38126 if test "x$has_forbidden_chars" != x; then 38127 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38128 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38129 fi 38130 38131 # Output is in $new_path 38132 38133 windows_path="$new_path" 38134 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38135 unix_path=`$CYGPATH -u "$windows_path"` 38136 new_path="$unix_path" 38137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38138 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38139 new_path="$unix_path" 38140 fi 38141 38142 # remove trailing .exe if any 38143 new_path="${new_path/%.exe/}" 38144 38145 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38146 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38147 fi 38148 38149 else 38150 # We're on a unix platform. Hooray! :) 38151 # First separate the path from the arguments. This will split at the first 38152 # space. 38153 complete="$NM" 38154 path="${complete%% *}" 38155 tmp="$complete EOL" 38156 arguments="${tmp#* }" 38157 38158 # Cannot rely on the command "which" here since it doesn't always work. 38159 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38160 if test -z "$is_absolute_path"; then 38161 # Path to executable is not absolute. Find it. 38162 IFS_save="$IFS" 38163 IFS=: 38164 for p in $PATH; do 38165 if test -f "$p/$path" && test -x "$p/$path"; then 38166 new_path="$p/$path" 38167 break 38168 fi 38169 done 38170 IFS="$IFS_save" 38171 else 38172 # This is an absolute path, we can use it without further modifications. 38173 new_path="$path" 38174 fi 38175 38176 if test "x$new_path" = x; then 38177 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38178 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38179 has_space=`$ECHO "$complete" | $GREP " "` 38180 if test "x$has_space" != x; then 38181 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38182 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38183 fi 38184 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38185 fi 38186 fi 38187 38188 # Now join together the path and the arguments once again 38189 if test "x$arguments" != xEOL; then 38190 new_complete="$new_path ${arguments% *}" 38191 else 38192 new_complete="$new_path" 38193 fi 38194 38195 if test "x$complete" != "x$new_complete"; then 38196 NM="$new_complete" 38197 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 38198 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 38199 fi 38200 fi 38201 38202 GNM="$NM" 38203 38204 fi 38205 38206 # objcopy is used for moving debug symbols to separate files when 38207 # full debug symbols are enabled. 38208 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 38209 38210 38211 # Publish this variable in the help. 38212 38213 38214 if test "x$OBJCOPY" = x; then 38215 # The variable is not set by user, try to locate tool using the code snippet 38216 if test -n "$ac_tool_prefix"; then 38217 for ac_prog in gobjcopy objcopy 38218 do 38219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38222 $as_echo_n "checking for $ac_word... " >&6; } 38223 if ${ac_cv_prog_OBJCOPY+:} false; then : 38224 $as_echo_n "(cached) " >&6 38225 else 38226 if test -n "$OBJCOPY"; then 38227 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38228 else 38229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38230 for as_dir in $PATH 38231 do 38232 IFS=$as_save_IFS 38233 test -z "$as_dir" && as_dir=. 38234 for ac_exec_ext in '' $ac_executable_extensions; do 38235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38236 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38238 break 2 38239 fi 38240 done 38241 done 38242 IFS=$as_save_IFS 38243 38244 fi 38245 fi 38246 OBJCOPY=$ac_cv_prog_OBJCOPY 38247 if test -n "$OBJCOPY"; then 38248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38249 $as_echo "$OBJCOPY" >&6; } 38250 else 38251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38252 $as_echo "no" >&6; } 38253 fi 38254 38255 38256 test -n "$OBJCOPY" && break 38257 done 38258 fi 38259 if test -z "$OBJCOPY"; then 38260 ac_ct_OBJCOPY=$OBJCOPY 38261 for ac_prog in gobjcopy objcopy 38262 do 38263 # Extract the first word of "$ac_prog", so it can be a program name with args. 38264 set dummy $ac_prog; ac_word=$2 38265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38266 $as_echo_n "checking for $ac_word... " >&6; } 38267 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38268 $as_echo_n "(cached) " >&6 38269 else 38270 if test -n "$ac_ct_OBJCOPY"; then 38271 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38272 else 38273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38274 for as_dir in $PATH 38275 do 38276 IFS=$as_save_IFS 38277 test -z "$as_dir" && as_dir=. 38278 for ac_exec_ext in '' $ac_executable_extensions; do 38279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38280 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38282 break 2 38283 fi 38284 done 38285 done 38286 IFS=$as_save_IFS 38287 38288 fi 38289 fi 38290 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38291 if test -n "$ac_ct_OBJCOPY"; then 38292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38293 $as_echo "$ac_ct_OBJCOPY" >&6; } 38294 else 38295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38296 $as_echo "no" >&6; } 38297 fi 38298 38299 38300 test -n "$ac_ct_OBJCOPY" && break 38301 done 38302 38303 if test "x$ac_ct_OBJCOPY" = x; then 38304 OBJCOPY="" 38305 else 38306 case $cross_compiling:$ac_tool_warned in 38307 yes:) 38308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38310 ac_tool_warned=yes ;; 38311 esac 38312 OBJCOPY=$ac_ct_OBJCOPY 38313 fi 38314 fi 38315 38316 else 38317 # The variable is set, but is it from the command line or the environment? 38318 38319 # Try to remove the string !OBJCOPY! from our list. 38320 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 38321 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38322 # If it failed, the variable was not from the command line. Ignore it, 38323 # but warn the user (except for BASH, which is always set by the calling BASH). 38324 if test "xOBJCOPY" != xBASH; then 38325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 38326 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 38327 fi 38328 # Try to locate tool using the code snippet 38329 if test -n "$ac_tool_prefix"; then 38330 for ac_prog in gobjcopy objcopy 38331 do 38332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38335 $as_echo_n "checking for $ac_word... " >&6; } 38336 if ${ac_cv_prog_OBJCOPY+:} false; then : 38337 $as_echo_n "(cached) " >&6 38338 else 38339 if test -n "$OBJCOPY"; then 38340 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38341 else 38342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38343 for as_dir in $PATH 38344 do 38345 IFS=$as_save_IFS 38346 test -z "$as_dir" && as_dir=. 38347 for ac_exec_ext in '' $ac_executable_extensions; do 38348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38349 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38351 break 2 38352 fi 38353 done 38354 done 38355 IFS=$as_save_IFS 38356 38357 fi 38358 fi 38359 OBJCOPY=$ac_cv_prog_OBJCOPY 38360 if test -n "$OBJCOPY"; then 38361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38362 $as_echo "$OBJCOPY" >&6; } 38363 else 38364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38365 $as_echo "no" >&6; } 38366 fi 38367 38368 38369 test -n "$OBJCOPY" && break 38370 done 38371 fi 38372 if test -z "$OBJCOPY"; then 38373 ac_ct_OBJCOPY=$OBJCOPY 38374 for ac_prog in gobjcopy objcopy 38375 do 38376 # Extract the first word of "$ac_prog", so it can be a program name with args. 38377 set dummy $ac_prog; ac_word=$2 38378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38379 $as_echo_n "checking for $ac_word... " >&6; } 38380 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38381 $as_echo_n "(cached) " >&6 38382 else 38383 if test -n "$ac_ct_OBJCOPY"; then 38384 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38385 else 38386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38387 for as_dir in $PATH 38388 do 38389 IFS=$as_save_IFS 38390 test -z "$as_dir" && as_dir=. 38391 for ac_exec_ext in '' $ac_executable_extensions; do 38392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38393 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38395 break 2 38396 fi 38397 done 38398 done 38399 IFS=$as_save_IFS 38400 38401 fi 38402 fi 38403 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38404 if test -n "$ac_ct_OBJCOPY"; then 38405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38406 $as_echo "$ac_ct_OBJCOPY" >&6; } 38407 else 38408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38409 $as_echo "no" >&6; } 38410 fi 38411 38412 38413 test -n "$ac_ct_OBJCOPY" && break 38414 done 38415 38416 if test "x$ac_ct_OBJCOPY" = x; then 38417 OBJCOPY="" 38418 else 38419 case $cross_compiling:$ac_tool_warned in 38420 yes:) 38421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38423 ac_tool_warned=yes ;; 38424 esac 38425 OBJCOPY=$ac_ct_OBJCOPY 38426 fi 38427 fi 38428 38429 else 38430 # If it succeeded, then it was overridden by the user. We will use it 38431 # for the tool. 38432 38433 # First remove it from the list of overridden variables, so we can test 38434 # for unknown variables in the end. 38435 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38436 38437 # Check if the provided tool contains a complete path. 38438 tool_specified="$OBJCOPY" 38439 tool_basename="${tool_specified##*/}" 38440 if test "x$tool_basename" = "x$tool_specified"; then 38441 # A command without a complete path is provided, search $PATH. 38442 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 38443 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 38444 # Extract the first word of "$tool_basename", so it can be a program name with args. 38445 set dummy $tool_basename; ac_word=$2 38446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38447 $as_echo_n "checking for $ac_word... " >&6; } 38448 if ${ac_cv_path_OBJCOPY+:} false; then : 38449 $as_echo_n "(cached) " >&6 38450 else 38451 case $OBJCOPY in 38452 [\\/]* | ?:[\\/]*) 38453 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 38454 ;; 38455 *) 38456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38457 for as_dir in $PATH 38458 do 38459 IFS=$as_save_IFS 38460 test -z "$as_dir" && as_dir=. 38461 for ac_exec_ext in '' $ac_executable_extensions; do 38462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38463 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 38464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38465 break 2 38466 fi 38467 done 38468 done 38469 IFS=$as_save_IFS 38470 38471 ;; 38472 esac 38473 fi 38474 OBJCOPY=$ac_cv_path_OBJCOPY 38475 if test -n "$OBJCOPY"; then 38476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38477 $as_echo "$OBJCOPY" >&6; } 38478 else 38479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38480 $as_echo "no" >&6; } 38481 fi 38482 38483 38484 if test "x$OBJCOPY" = x; then 38485 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38486 fi 38487 else 38488 # Otherwise we believe it is a complete path. Use it as it is. 38489 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 38490 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 38491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38492 $as_echo_n "checking for OBJCOPY... " >&6; } 38493 if test ! -x "$tool_specified"; then 38494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38495 $as_echo "not found" >&6; } 38496 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 38497 fi 38498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38499 $as_echo "$tool_specified" >&6; } 38500 fi 38501 fi 38502 fi 38503 38504 38505 # Only call fixup if objcopy was found. 38506 if test -n "$OBJCOPY"; then 38507 38508 # Only process if variable expands to non-empty 38509 38510 if test "x$OBJCOPY" != x; then 38511 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38512 38513 # First separate the path from the arguments. This will split at the first 38514 # space. 38515 complete="$OBJCOPY" 38516 path="${complete%% *}" 38517 tmp="$complete EOL" 38518 arguments="${tmp#* }" 38519 38520 # Input might be given as Windows format, start by converting to 38521 # unix format. 38522 new_path=`$CYGPATH -u "$path"` 38523 38524 # Now try to locate executable using which 38525 new_path=`$WHICH "$new_path" 2> /dev/null` 38526 # bat and cmd files are not always considered executable in cygwin causing which 38527 # to not find them 38528 if test "x$new_path" = x \ 38529 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38530 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38531 new_path=`$CYGPATH -u "$path"` 38532 fi 38533 if test "x$new_path" = x; then 38534 # Oops. Which didn't find the executable. 38535 # The splitting of arguments from the executable at a space might have been incorrect, 38536 # since paths with space are more likely in Windows. Give it another try with the whole 38537 # argument. 38538 path="$complete" 38539 arguments="EOL" 38540 new_path=`$CYGPATH -u "$path"` 38541 new_path=`$WHICH "$new_path" 2> /dev/null` 38542 # bat and cmd files are not always considered executable in cygwin causing which 38543 # to not find them 38544 if test "x$new_path" = x \ 38545 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38546 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38547 new_path=`$CYGPATH -u "$path"` 38548 fi 38549 if test "x$new_path" = x; then 38550 # It's still not found. Now this is an unrecoverable error. 38551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38552 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38553 has_space=`$ECHO "$complete" | $GREP " "` 38554 if test "x$has_space" != x; then 38555 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38556 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38557 fi 38558 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38559 fi 38560 fi 38561 38562 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38563 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38564 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38565 # "foo.exe" is OK but "foo" is an error. 38566 # 38567 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38568 # It is also a way to make sure we got the proper file name for the real test later on. 38569 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38570 if test "x$test_shortpath" = x; then 38571 # Short path failed, file does not exist as specified. 38572 # Try adding .exe or .cmd 38573 if test -f "${new_path}.exe"; then 38574 input_to_shortpath="${new_path}.exe" 38575 elif test -f "${new_path}.cmd"; then 38576 input_to_shortpath="${new_path}.cmd" 38577 else 38578 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38579 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38580 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38581 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38582 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38583 fi 38584 else 38585 input_to_shortpath="$new_path" 38586 fi 38587 38588 # Call helper function which possibly converts this using DOS-style short mode. 38589 # If so, the updated path is stored in $new_path. 38590 new_path="$input_to_shortpath" 38591 38592 input_path="$input_to_shortpath" 38593 # Check if we need to convert this using DOS-style short mode. If the path 38594 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38595 # take no chances and rewrite it. 38596 # Note: m4 eats our [], so we need to use [ and ] instead. 38597 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38598 if test "x$has_forbidden_chars" != x; then 38599 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38600 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38601 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38602 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38603 # Going to short mode and back again did indeed matter. Since short mode is 38604 # case insensitive, let's make it lowercase to improve readability. 38605 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38606 # Now convert it back to Unix-stile (cygpath) 38607 input_path=`$CYGPATH -u "$shortmode_path"` 38608 new_path="$input_path" 38609 fi 38610 fi 38611 38612 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38613 if test "x$test_cygdrive_prefix" = x; then 38614 # As a simple fix, exclude /usr/bin since it's not a real path. 38615 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38616 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38617 # a path prefixed by /cygdrive for fixpath to work. 38618 new_path="$CYGWIN_ROOT_PATH$input_path" 38619 fi 38620 fi 38621 38622 # remove trailing .exe if any 38623 new_path="${new_path/%.exe/}" 38624 38625 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38626 38627 # First separate the path from the arguments. This will split at the first 38628 # space. 38629 complete="$OBJCOPY" 38630 path="${complete%% *}" 38631 tmp="$complete EOL" 38632 arguments="${tmp#* }" 38633 38634 # Input might be given as Windows format, start by converting to 38635 # unix format. 38636 new_path="$path" 38637 38638 windows_path="$new_path" 38639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38640 unix_path=`$CYGPATH -u "$windows_path"` 38641 new_path="$unix_path" 38642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38643 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38644 new_path="$unix_path" 38645 fi 38646 38647 38648 # Now try to locate executable using which 38649 new_path=`$WHICH "$new_path" 2> /dev/null` 38650 38651 if test "x$new_path" = x; then 38652 # Oops. Which didn't find the executable. 38653 # The splitting of arguments from the executable at a space might have been incorrect, 38654 # since paths with space are more likely in Windows. Give it another try with the whole 38655 # argument. 38656 path="$complete" 38657 arguments="EOL" 38658 new_path="$path" 38659 38660 windows_path="$new_path" 38661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38662 unix_path=`$CYGPATH -u "$windows_path"` 38663 new_path="$unix_path" 38664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38665 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38666 new_path="$unix_path" 38667 fi 38668 38669 38670 new_path=`$WHICH "$new_path" 2> /dev/null` 38671 # bat and cmd files are not always considered executable in MSYS causing which 38672 # to not find them 38673 if test "x$new_path" = x \ 38674 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38675 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38676 new_path="$path" 38677 38678 windows_path="$new_path" 38679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38680 unix_path=`$CYGPATH -u "$windows_path"` 38681 new_path="$unix_path" 38682 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38683 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38684 new_path="$unix_path" 38685 fi 38686 38687 fi 38688 38689 if test "x$new_path" = x; then 38690 # It's still not found. Now this is an unrecoverable error. 38691 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38692 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38693 has_space=`$ECHO "$complete" | $GREP " "` 38694 if test "x$has_space" != x; then 38695 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38696 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38697 fi 38698 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38699 fi 38700 fi 38701 38702 # Now new_path has a complete unix path to the binary 38703 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38704 # Keep paths in /bin as-is, but remove trailing .exe if any 38705 new_path="${new_path/%.exe/}" 38706 # Do not save /bin paths to all_fixpath_prefixes! 38707 else 38708 # Not in mixed or Windows style, start by that. 38709 new_path=`cmd //c echo $new_path` 38710 38711 input_path="$new_path" 38712 # Check if we need to convert this using DOS-style short mode. If the path 38713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38714 # take no chances and rewrite it. 38715 # Note: m4 eats our [], so we need to use [ and ] instead. 38716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38717 if test "x$has_forbidden_chars" != x; then 38718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38719 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38720 fi 38721 38722 # Output is in $new_path 38723 38724 windows_path="$new_path" 38725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38726 unix_path=`$CYGPATH -u "$windows_path"` 38727 new_path="$unix_path" 38728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38729 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38730 new_path="$unix_path" 38731 fi 38732 38733 # remove trailing .exe if any 38734 new_path="${new_path/%.exe/}" 38735 38736 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38737 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38738 fi 38739 38740 else 38741 # We're on a unix platform. Hooray! :) 38742 # First separate the path from the arguments. This will split at the first 38743 # space. 38744 complete="$OBJCOPY" 38745 path="${complete%% *}" 38746 tmp="$complete EOL" 38747 arguments="${tmp#* }" 38748 38749 # Cannot rely on the command "which" here since it doesn't always work. 38750 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38751 if test -z "$is_absolute_path"; then 38752 # Path to executable is not absolute. Find it. 38753 IFS_save="$IFS" 38754 IFS=: 38755 for p in $PATH; do 38756 if test -f "$p/$path" && test -x "$p/$path"; then 38757 new_path="$p/$path" 38758 break 38759 fi 38760 done 38761 IFS="$IFS_save" 38762 else 38763 # This is an absolute path, we can use it without further modifications. 38764 new_path="$path" 38765 fi 38766 38767 if test "x$new_path" = x; then 38768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38769 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38770 has_space=`$ECHO "$complete" | $GREP " "` 38771 if test "x$has_space" != x; then 38772 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38773 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38774 fi 38775 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38776 fi 38777 fi 38778 38779 # Now join together the path and the arguments once again 38780 if test "x$arguments" != xEOL; then 38781 new_complete="$new_path ${arguments% *}" 38782 else 38783 new_complete="$new_path" 38784 fi 38785 38786 if test "x$complete" != "x$new_complete"; then 38787 OBJCOPY="$new_complete" 38788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38789 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38790 fi 38791 fi 38792 38793 fi 38794 fi 38795 38796 38797 38798 # Publish this variable in the help. 38799 38800 38801 if test "x$OBJDUMP" = x; then 38802 # The variable is not set by user, try to locate tool using the code snippet 38803 if test -n "$ac_tool_prefix"; then 38804 for ac_prog in gobjdump objdump 38805 do 38806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38809 $as_echo_n "checking for $ac_word... " >&6; } 38810 if ${ac_cv_prog_OBJDUMP+:} false; then : 38811 $as_echo_n "(cached) " >&6 38812 else 38813 if test -n "$OBJDUMP"; then 38814 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38815 else 38816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38817 for as_dir in $PATH 38818 do 38819 IFS=$as_save_IFS 38820 test -z "$as_dir" && as_dir=. 38821 for ac_exec_ext in '' $ac_executable_extensions; do 38822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38823 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38825 break 2 38826 fi 38827 done 38828 done 38829 IFS=$as_save_IFS 38830 38831 fi 38832 fi 38833 OBJDUMP=$ac_cv_prog_OBJDUMP 38834 if test -n "$OBJDUMP"; then 38835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38836 $as_echo "$OBJDUMP" >&6; } 38837 else 38838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38839 $as_echo "no" >&6; } 38840 fi 38841 38842 38843 test -n "$OBJDUMP" && break 38844 done 38845 fi 38846 if test -z "$OBJDUMP"; then 38847 ac_ct_OBJDUMP=$OBJDUMP 38848 for ac_prog in gobjdump objdump 38849 do 38850 # Extract the first word of "$ac_prog", so it can be a program name with args. 38851 set dummy $ac_prog; ac_word=$2 38852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38853 $as_echo_n "checking for $ac_word... " >&6; } 38854 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38855 $as_echo_n "(cached) " >&6 38856 else 38857 if test -n "$ac_ct_OBJDUMP"; then 38858 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38859 else 38860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38861 for as_dir in $PATH 38862 do 38863 IFS=$as_save_IFS 38864 test -z "$as_dir" && as_dir=. 38865 for ac_exec_ext in '' $ac_executable_extensions; do 38866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38867 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38869 break 2 38870 fi 38871 done 38872 done 38873 IFS=$as_save_IFS 38874 38875 fi 38876 fi 38877 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38878 if test -n "$ac_ct_OBJDUMP"; then 38879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38880 $as_echo "$ac_ct_OBJDUMP" >&6; } 38881 else 38882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38883 $as_echo "no" >&6; } 38884 fi 38885 38886 38887 test -n "$ac_ct_OBJDUMP" && break 38888 done 38889 38890 if test "x$ac_ct_OBJDUMP" = x; then 38891 OBJDUMP="" 38892 else 38893 case $cross_compiling:$ac_tool_warned in 38894 yes:) 38895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38897 ac_tool_warned=yes ;; 38898 esac 38899 OBJDUMP=$ac_ct_OBJDUMP 38900 fi 38901 fi 38902 38903 else 38904 # The variable is set, but is it from the command line or the environment? 38905 38906 # Try to remove the string !OBJDUMP! from our list. 38907 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38908 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38909 # If it failed, the variable was not from the command line. Ignore it, 38910 # but warn the user (except for BASH, which is always set by the calling BASH). 38911 if test "xOBJDUMP" != xBASH; then 38912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38913 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38914 fi 38915 # Try to locate tool using the code snippet 38916 if test -n "$ac_tool_prefix"; then 38917 for ac_prog in gobjdump objdump 38918 do 38919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38922 $as_echo_n "checking for $ac_word... " >&6; } 38923 if ${ac_cv_prog_OBJDUMP+:} false; then : 38924 $as_echo_n "(cached) " >&6 38925 else 38926 if test -n "$OBJDUMP"; then 38927 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38928 else 38929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38930 for as_dir in $PATH 38931 do 38932 IFS=$as_save_IFS 38933 test -z "$as_dir" && as_dir=. 38934 for ac_exec_ext in '' $ac_executable_extensions; do 38935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38936 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 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 fi 38945 fi 38946 OBJDUMP=$ac_cv_prog_OBJDUMP 38947 if test -n "$OBJDUMP"; then 38948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38949 $as_echo "$OBJDUMP" >&6; } 38950 else 38951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38952 $as_echo "no" >&6; } 38953 fi 38954 38955 38956 test -n "$OBJDUMP" && break 38957 done 38958 fi 38959 if test -z "$OBJDUMP"; then 38960 ac_ct_OBJDUMP=$OBJDUMP 38961 for ac_prog in gobjdump objdump 38962 do 38963 # Extract the first word of "$ac_prog", so it can be a program name with args. 38964 set dummy $ac_prog; ac_word=$2 38965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38966 $as_echo_n "checking for $ac_word... " >&6; } 38967 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38968 $as_echo_n "(cached) " >&6 38969 else 38970 if test -n "$ac_ct_OBJDUMP"; then 38971 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38972 else 38973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38974 for as_dir in $PATH 38975 do 38976 IFS=$as_save_IFS 38977 test -z "$as_dir" && as_dir=. 38978 for ac_exec_ext in '' $ac_executable_extensions; do 38979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38980 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38982 break 2 38983 fi 38984 done 38985 done 38986 IFS=$as_save_IFS 38987 38988 fi 38989 fi 38990 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38991 if test -n "$ac_ct_OBJDUMP"; then 38992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38993 $as_echo "$ac_ct_OBJDUMP" >&6; } 38994 else 38995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38996 $as_echo "no" >&6; } 38997 fi 38998 38999 39000 test -n "$ac_ct_OBJDUMP" && break 39001 done 39002 39003 if test "x$ac_ct_OBJDUMP" = x; then 39004 OBJDUMP="" 39005 else 39006 case $cross_compiling:$ac_tool_warned in 39007 yes:) 39008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39010 ac_tool_warned=yes ;; 39011 esac 39012 OBJDUMP=$ac_ct_OBJDUMP 39013 fi 39014 fi 39015 39016 else 39017 # If it succeeded, then it was overridden by the user. We will use it 39018 # for the tool. 39019 39020 # First remove it from the list of overridden variables, so we can test 39021 # for unknown variables in the end. 39022 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39023 39024 # Check if the provided tool contains a complete path. 39025 tool_specified="$OBJDUMP" 39026 tool_basename="${tool_specified##*/}" 39027 if test "x$tool_basename" = "x$tool_specified"; then 39028 # A command without a complete path is provided, search $PATH. 39029 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 39030 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 39031 # Extract the first word of "$tool_basename", so it can be a program name with args. 39032 set dummy $tool_basename; ac_word=$2 39033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39034 $as_echo_n "checking for $ac_word... " >&6; } 39035 if ${ac_cv_path_OBJDUMP+:} false; then : 39036 $as_echo_n "(cached) " >&6 39037 else 39038 case $OBJDUMP in 39039 [\\/]* | ?:[\\/]*) 39040 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 39041 ;; 39042 *) 39043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39044 for as_dir in $PATH 39045 do 39046 IFS=$as_save_IFS 39047 test -z "$as_dir" && as_dir=. 39048 for ac_exec_ext in '' $ac_executable_extensions; do 39049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39050 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 39051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39052 break 2 39053 fi 39054 done 39055 done 39056 IFS=$as_save_IFS 39057 39058 ;; 39059 esac 39060 fi 39061 OBJDUMP=$ac_cv_path_OBJDUMP 39062 if test -n "$OBJDUMP"; then 39063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39064 $as_echo "$OBJDUMP" >&6; } 39065 else 39066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39067 $as_echo "no" >&6; } 39068 fi 39069 39070 39071 if test "x$OBJDUMP" = x; then 39072 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39073 fi 39074 else 39075 # Otherwise we believe it is a complete path. Use it as it is. 39076 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 39077 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 39078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 39079 $as_echo_n "checking for OBJDUMP... " >&6; } 39080 if test ! -x "$tool_specified"; then 39081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39082 $as_echo "not found" >&6; } 39083 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 39084 fi 39085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39086 $as_echo "$tool_specified" >&6; } 39087 fi 39088 fi 39089 fi 39090 39091 39092 if test "x$OBJDUMP" != x; then 39093 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 39094 # bails if argument is missing. 39095 39096 # Only process if variable expands to non-empty 39097 39098 if test "x$OBJDUMP" != x; then 39099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39100 39101 # First separate the path from the arguments. This will split at the first 39102 # space. 39103 complete="$OBJDUMP" 39104 path="${complete%% *}" 39105 tmp="$complete EOL" 39106 arguments="${tmp#* }" 39107 39108 # Input might be given as Windows format, start by converting to 39109 # unix format. 39110 new_path=`$CYGPATH -u "$path"` 39111 39112 # Now try to locate executable using which 39113 new_path=`$WHICH "$new_path" 2> /dev/null` 39114 # bat and cmd files are not always considered executable in cygwin causing which 39115 # to not find them 39116 if test "x$new_path" = x \ 39117 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39118 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39119 new_path=`$CYGPATH -u "$path"` 39120 fi 39121 if test "x$new_path" = x; then 39122 # Oops. Which didn't find the executable. 39123 # The splitting of arguments from the executable at a space might have been incorrect, 39124 # since paths with space are more likely in Windows. Give it another try with the whole 39125 # argument. 39126 path="$complete" 39127 arguments="EOL" 39128 new_path=`$CYGPATH -u "$path"` 39129 new_path=`$WHICH "$new_path" 2> /dev/null` 39130 # bat and cmd files are not always considered executable in cygwin causing which 39131 # to not find them 39132 if test "x$new_path" = x \ 39133 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39134 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39135 new_path=`$CYGPATH -u "$path"` 39136 fi 39137 if test "x$new_path" = x; then 39138 # It's still not found. Now this is an unrecoverable error. 39139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39140 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39141 has_space=`$ECHO "$complete" | $GREP " "` 39142 if test "x$has_space" != x; then 39143 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39144 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39145 fi 39146 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39147 fi 39148 fi 39149 39150 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39151 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39152 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39153 # "foo.exe" is OK but "foo" is an error. 39154 # 39155 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39156 # It is also a way to make sure we got the proper file name for the real test later on. 39157 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39158 if test "x$test_shortpath" = x; then 39159 # Short path failed, file does not exist as specified. 39160 # Try adding .exe or .cmd 39161 if test -f "${new_path}.exe"; then 39162 input_to_shortpath="${new_path}.exe" 39163 elif test -f "${new_path}.cmd"; then 39164 input_to_shortpath="${new_path}.cmd" 39165 else 39166 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 39167 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 39168 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39169 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39170 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39171 fi 39172 else 39173 input_to_shortpath="$new_path" 39174 fi 39175 39176 # Call helper function which possibly converts this using DOS-style short mode. 39177 # If so, the updated path is stored in $new_path. 39178 new_path="$input_to_shortpath" 39179 39180 input_path="$input_to_shortpath" 39181 # Check if we need to convert this using DOS-style short mode. If the path 39182 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39183 # take no chances and rewrite it. 39184 # Note: m4 eats our [], so we need to use [ and ] instead. 39185 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39186 if test "x$has_forbidden_chars" != x; then 39187 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39188 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39189 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39190 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39191 # Going to short mode and back again did indeed matter. Since short mode is 39192 # case insensitive, let's make it lowercase to improve readability. 39193 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39194 # Now convert it back to Unix-stile (cygpath) 39195 input_path=`$CYGPATH -u "$shortmode_path"` 39196 new_path="$input_path" 39197 fi 39198 fi 39199 39200 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39201 if test "x$test_cygdrive_prefix" = x; then 39202 # As a simple fix, exclude /usr/bin since it's not a real path. 39203 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39204 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39205 # a path prefixed by /cygdrive for fixpath to work. 39206 new_path="$CYGWIN_ROOT_PATH$input_path" 39207 fi 39208 fi 39209 39210 # remove trailing .exe if any 39211 new_path="${new_path/%.exe/}" 39212 39213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39214 39215 # First separate the path from the arguments. This will split at the first 39216 # space. 39217 complete="$OBJDUMP" 39218 path="${complete%% *}" 39219 tmp="$complete EOL" 39220 arguments="${tmp#* }" 39221 39222 # Input might be given as Windows format, start by converting to 39223 # unix format. 39224 new_path="$path" 39225 39226 windows_path="$new_path" 39227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39228 unix_path=`$CYGPATH -u "$windows_path"` 39229 new_path="$unix_path" 39230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39231 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39232 new_path="$unix_path" 39233 fi 39234 39235 39236 # Now try to locate executable using which 39237 new_path=`$WHICH "$new_path" 2> /dev/null` 39238 39239 if test "x$new_path" = x; then 39240 # Oops. Which didn't find the executable. 39241 # The splitting of arguments from the executable at a space might have been incorrect, 39242 # since paths with space are more likely in Windows. Give it another try with the whole 39243 # argument. 39244 path="$complete" 39245 arguments="EOL" 39246 new_path="$path" 39247 39248 windows_path="$new_path" 39249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39250 unix_path=`$CYGPATH -u "$windows_path"` 39251 new_path="$unix_path" 39252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39253 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39254 new_path="$unix_path" 39255 fi 39256 39257 39258 new_path=`$WHICH "$new_path" 2> /dev/null` 39259 # bat and cmd files are not always considered executable in MSYS causing which 39260 # to not find them 39261 if test "x$new_path" = x \ 39262 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39263 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39264 new_path="$path" 39265 39266 windows_path="$new_path" 39267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39268 unix_path=`$CYGPATH -u "$windows_path"` 39269 new_path="$unix_path" 39270 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39271 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39272 new_path="$unix_path" 39273 fi 39274 39275 fi 39276 39277 if test "x$new_path" = x; then 39278 # It's still not found. Now this is an unrecoverable error. 39279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39280 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39281 has_space=`$ECHO "$complete" | $GREP " "` 39282 if test "x$has_space" != x; then 39283 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39284 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39285 fi 39286 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39287 fi 39288 fi 39289 39290 # Now new_path has a complete unix path to the binary 39291 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39292 # Keep paths in /bin as-is, but remove trailing .exe if any 39293 new_path="${new_path/%.exe/}" 39294 # Do not save /bin paths to all_fixpath_prefixes! 39295 else 39296 # Not in mixed or Windows style, start by that. 39297 new_path=`cmd //c echo $new_path` 39298 39299 input_path="$new_path" 39300 # Check if we need to convert this using DOS-style short mode. If the path 39301 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39302 # take no chances and rewrite it. 39303 # Note: m4 eats our [], so we need to use [ and ] instead. 39304 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39305 if test "x$has_forbidden_chars" != x; then 39306 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39307 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39308 fi 39309 39310 # Output is in $new_path 39311 39312 windows_path="$new_path" 39313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39314 unix_path=`$CYGPATH -u "$windows_path"` 39315 new_path="$unix_path" 39316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39318 new_path="$unix_path" 39319 fi 39320 39321 # remove trailing .exe if any 39322 new_path="${new_path/%.exe/}" 39323 39324 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39325 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39326 fi 39327 39328 else 39329 # We're on a unix platform. Hooray! :) 39330 # First separate the path from the arguments. This will split at the first 39331 # space. 39332 complete="$OBJDUMP" 39333 path="${complete%% *}" 39334 tmp="$complete EOL" 39335 arguments="${tmp#* }" 39336 39337 # Cannot rely on the command "which" here since it doesn't always work. 39338 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39339 if test -z "$is_absolute_path"; then 39340 # Path to executable is not absolute. Find it. 39341 IFS_save="$IFS" 39342 IFS=: 39343 for p in $PATH; do 39344 if test -f "$p/$path" && test -x "$p/$path"; then 39345 new_path="$p/$path" 39346 break 39347 fi 39348 done 39349 IFS="$IFS_save" 39350 else 39351 # This is an absolute path, we can use it without further modifications. 39352 new_path="$path" 39353 fi 39354 39355 if test "x$new_path" = x; then 39356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39357 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39358 has_space=`$ECHO "$complete" | $GREP " "` 39359 if test "x$has_space" != x; then 39360 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39361 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39362 fi 39363 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39364 fi 39365 fi 39366 39367 # Now join together the path and the arguments once again 39368 if test "x$arguments" != xEOL; then 39369 new_complete="$new_path ${arguments% *}" 39370 else 39371 new_complete="$new_path" 39372 fi 39373 39374 if test "x$complete" != "x$new_complete"; then 39375 OBJDUMP="$new_complete" 39376 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 39377 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 39378 fi 39379 fi 39380 39381 fi 39382 39383 39384 # Restore old path. 39385 PATH="$OLD_PATH" 39386 39387 # Restore the flags to the user specified values. 39388 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 39389 CFLAGS="$ORG_CFLAGS" 39390 CXXFLAGS="$ORG_CXXFLAGS" 39391 39392 39393 # Finally do some processing after the detection phase 39394 39395 if test "x$COMPILE_TYPE" = "xcross"; then 39396 # Now we need to find a C/C++ compiler that can build executables for the 39397 # build platform. We can't use the AC_PROG_CC macro, since it can only be 39398 # used once. Also, we need to do this without adding a tools dir to the 39399 # path, otherwise we might pick up cross-compilers which don't use standard 39400 # naming. 39401 39402 # FIXME: we should list the discovered compilers as an exclude pattern! 39403 # If we do that, we can do this detection before POST_DETECTION, and still 39404 # find the build compilers in the tools dir, if needed. 39405 39406 39407 # Publish this variable in the help. 39408 39409 39410 if test "x$BUILD_CC" = x; then 39411 # The variable is not set by user, try to locate tool using the code snippet 39412 for ac_prog in cl cc gcc 39413 do 39414 # Extract the first word of "$ac_prog", so it can be a program name with args. 39415 set dummy $ac_prog; ac_word=$2 39416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39417 $as_echo_n "checking for $ac_word... " >&6; } 39418 if ${ac_cv_path_BUILD_CC+:} false; then : 39419 $as_echo_n "(cached) " >&6 39420 else 39421 case $BUILD_CC in 39422 [\\/]* | ?:[\\/]*) 39423 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39424 ;; 39425 *) 39426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39427 for as_dir in $PATH 39428 do 39429 IFS=$as_save_IFS 39430 test -z "$as_dir" && as_dir=. 39431 for ac_exec_ext in '' $ac_executable_extensions; do 39432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39433 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39435 break 2 39436 fi 39437 done 39438 done 39439 IFS=$as_save_IFS 39440 39441 ;; 39442 esac 39443 fi 39444 BUILD_CC=$ac_cv_path_BUILD_CC 39445 if test -n "$BUILD_CC"; then 39446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39447 $as_echo "$BUILD_CC" >&6; } 39448 else 39449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39450 $as_echo "no" >&6; } 39451 fi 39452 39453 39454 test -n "$BUILD_CC" && break 39455 done 39456 39457 else 39458 # The variable is set, but is it from the command line or the environment? 39459 39460 # Try to remove the string !BUILD_CC! from our list. 39461 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39462 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39463 # If it failed, the variable was not from the command line. Ignore it, 39464 # but warn the user (except for BASH, which is always set by the calling BASH). 39465 if test "xBUILD_CC" != xBASH; then 39466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39467 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39468 fi 39469 # Try to locate tool using the code snippet 39470 for ac_prog in cl cc gcc 39471 do 39472 # Extract the first word of "$ac_prog", so it can be a program name with args. 39473 set dummy $ac_prog; ac_word=$2 39474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39475 $as_echo_n "checking for $ac_word... " >&6; } 39476 if ${ac_cv_path_BUILD_CC+:} false; then : 39477 $as_echo_n "(cached) " >&6 39478 else 39479 case $BUILD_CC in 39480 [\\/]* | ?:[\\/]*) 39481 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39482 ;; 39483 *) 39484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39485 for as_dir in $PATH 39486 do 39487 IFS=$as_save_IFS 39488 test -z "$as_dir" && as_dir=. 39489 for ac_exec_ext in '' $ac_executable_extensions; do 39490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39491 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39493 break 2 39494 fi 39495 done 39496 done 39497 IFS=$as_save_IFS 39498 39499 ;; 39500 esac 39501 fi 39502 BUILD_CC=$ac_cv_path_BUILD_CC 39503 if test -n "$BUILD_CC"; then 39504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39505 $as_echo "$BUILD_CC" >&6; } 39506 else 39507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39508 $as_echo "no" >&6; } 39509 fi 39510 39511 39512 test -n "$BUILD_CC" && break 39513 done 39514 39515 else 39516 # If it succeeded, then it was overridden by the user. We will use it 39517 # for the tool. 39518 39519 # First remove it from the list of overridden variables, so we can test 39520 # for unknown variables in the end. 39521 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39522 39523 # Check if the provided tool contains a complete path. 39524 tool_specified="$BUILD_CC" 39525 tool_basename="${tool_specified##*/}" 39526 if test "x$tool_basename" = "x$tool_specified"; then 39527 # A command without a complete path is provided, search $PATH. 39528 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 39529 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 39530 # Extract the first word of "$tool_basename", so it can be a program name with args. 39531 set dummy $tool_basename; ac_word=$2 39532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39533 $as_echo_n "checking for $ac_word... " >&6; } 39534 if ${ac_cv_path_BUILD_CC+:} false; then : 39535 $as_echo_n "(cached) " >&6 39536 else 39537 case $BUILD_CC in 39538 [\\/]* | ?:[\\/]*) 39539 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39540 ;; 39541 *) 39542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39543 for as_dir in $PATH 39544 do 39545 IFS=$as_save_IFS 39546 test -z "$as_dir" && as_dir=. 39547 for ac_exec_ext in '' $ac_executable_extensions; do 39548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39549 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39551 break 2 39552 fi 39553 done 39554 done 39555 IFS=$as_save_IFS 39556 39557 ;; 39558 esac 39559 fi 39560 BUILD_CC=$ac_cv_path_BUILD_CC 39561 if test -n "$BUILD_CC"; then 39562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39563 $as_echo "$BUILD_CC" >&6; } 39564 else 39565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39566 $as_echo "no" >&6; } 39567 fi 39568 39569 39570 if test "x$BUILD_CC" = x; then 39571 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39572 fi 39573 else 39574 # Otherwise we believe it is a complete path. Use it as it is. 39575 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 39576 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 39577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 39578 $as_echo_n "checking for BUILD_CC... " >&6; } 39579 if test ! -x "$tool_specified"; then 39580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39581 $as_echo "not found" >&6; } 39582 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 39583 fi 39584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39585 $as_echo "$tool_specified" >&6; } 39586 fi 39587 fi 39588 fi 39589 39590 39591 39592 # Only process if variable expands to non-empty 39593 39594 if test "x$BUILD_CC" != x; then 39595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39596 39597 # First separate the path from the arguments. This will split at the first 39598 # space. 39599 complete="$BUILD_CC" 39600 path="${complete%% *}" 39601 tmp="$complete EOL" 39602 arguments="${tmp#* }" 39603 39604 # Input might be given as Windows format, start by converting to 39605 # unix format. 39606 new_path=`$CYGPATH -u "$path"` 39607 39608 # Now try to locate executable using which 39609 new_path=`$WHICH "$new_path" 2> /dev/null` 39610 # bat and cmd files are not always considered executable in cygwin causing which 39611 # to not find them 39612 if test "x$new_path" = x \ 39613 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39614 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39615 new_path=`$CYGPATH -u "$path"` 39616 fi 39617 if test "x$new_path" = x; then 39618 # Oops. Which didn't find the executable. 39619 # The splitting of arguments from the executable at a space might have been incorrect, 39620 # since paths with space are more likely in Windows. Give it another try with the whole 39621 # argument. 39622 path="$complete" 39623 arguments="EOL" 39624 new_path=`$CYGPATH -u "$path"` 39625 new_path=`$WHICH "$new_path" 2> /dev/null` 39626 # bat and cmd files are not always considered executable in cygwin causing which 39627 # to not find them 39628 if test "x$new_path" = x \ 39629 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39630 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39631 new_path=`$CYGPATH -u "$path"` 39632 fi 39633 if test "x$new_path" = x; then 39634 # It's still not found. Now this is an unrecoverable error. 39635 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39636 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39637 has_space=`$ECHO "$complete" | $GREP " "` 39638 if test "x$has_space" != x; then 39639 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39640 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39641 fi 39642 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39643 fi 39644 fi 39645 39646 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39647 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39648 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39649 # "foo.exe" is OK but "foo" is an error. 39650 # 39651 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39652 # It is also a way to make sure we got the proper file name for the real test later on. 39653 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39654 if test "x$test_shortpath" = x; then 39655 # Short path failed, file does not exist as specified. 39656 # Try adding .exe or .cmd 39657 if test -f "${new_path}.exe"; then 39658 input_to_shortpath="${new_path}.exe" 39659 elif test -f "${new_path}.cmd"; then 39660 input_to_shortpath="${new_path}.cmd" 39661 else 39662 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39663 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39664 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39665 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39666 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39667 fi 39668 else 39669 input_to_shortpath="$new_path" 39670 fi 39671 39672 # Call helper function which possibly converts this using DOS-style short mode. 39673 # If so, the updated path is stored in $new_path. 39674 new_path="$input_to_shortpath" 39675 39676 input_path="$input_to_shortpath" 39677 # Check if we need to convert this using DOS-style short mode. If the path 39678 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39679 # take no chances and rewrite it. 39680 # Note: m4 eats our [], so we need to use [ and ] instead. 39681 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39682 if test "x$has_forbidden_chars" != x; then 39683 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39684 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39685 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39686 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39687 # Going to short mode and back again did indeed matter. Since short mode is 39688 # case insensitive, let's make it lowercase to improve readability. 39689 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39690 # Now convert it back to Unix-stile (cygpath) 39691 input_path=`$CYGPATH -u "$shortmode_path"` 39692 new_path="$input_path" 39693 fi 39694 fi 39695 39696 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39697 if test "x$test_cygdrive_prefix" = x; then 39698 # As a simple fix, exclude /usr/bin since it's not a real path. 39699 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39700 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39701 # a path prefixed by /cygdrive for fixpath to work. 39702 new_path="$CYGWIN_ROOT_PATH$input_path" 39703 fi 39704 fi 39705 39706 # remove trailing .exe if any 39707 new_path="${new_path/%.exe/}" 39708 39709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39710 39711 # First separate the path from the arguments. This will split at the first 39712 # space. 39713 complete="$BUILD_CC" 39714 path="${complete%% *}" 39715 tmp="$complete EOL" 39716 arguments="${tmp#* }" 39717 39718 # Input might be given as Windows format, start by converting to 39719 # unix format. 39720 new_path="$path" 39721 39722 windows_path="$new_path" 39723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39724 unix_path=`$CYGPATH -u "$windows_path"` 39725 new_path="$unix_path" 39726 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39727 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39728 new_path="$unix_path" 39729 fi 39730 39731 39732 # Now try to locate executable using which 39733 new_path=`$WHICH "$new_path" 2> /dev/null` 39734 39735 if test "x$new_path" = x; then 39736 # Oops. Which didn't find the executable. 39737 # The splitting of arguments from the executable at a space might have been incorrect, 39738 # since paths with space are more likely in Windows. Give it another try with the whole 39739 # argument. 39740 path="$complete" 39741 arguments="EOL" 39742 new_path="$path" 39743 39744 windows_path="$new_path" 39745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39746 unix_path=`$CYGPATH -u "$windows_path"` 39747 new_path="$unix_path" 39748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39749 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39750 new_path="$unix_path" 39751 fi 39752 39753 39754 new_path=`$WHICH "$new_path" 2> /dev/null` 39755 # bat and cmd files are not always considered executable in MSYS causing which 39756 # to not find them 39757 if test "x$new_path" = x \ 39758 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39759 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39760 new_path="$path" 39761 39762 windows_path="$new_path" 39763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39764 unix_path=`$CYGPATH -u "$windows_path"` 39765 new_path="$unix_path" 39766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39767 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39768 new_path="$unix_path" 39769 fi 39770 39771 fi 39772 39773 if test "x$new_path" = x; then 39774 # It's still not found. Now this is an unrecoverable error. 39775 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39776 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39777 has_space=`$ECHO "$complete" | $GREP " "` 39778 if test "x$has_space" != x; then 39779 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39780 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39781 fi 39782 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39783 fi 39784 fi 39785 39786 # Now new_path has a complete unix path to the binary 39787 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39788 # Keep paths in /bin as-is, but remove trailing .exe if any 39789 new_path="${new_path/%.exe/}" 39790 # Do not save /bin paths to all_fixpath_prefixes! 39791 else 39792 # Not in mixed or Windows style, start by that. 39793 new_path=`cmd //c echo $new_path` 39794 39795 input_path="$new_path" 39796 # Check if we need to convert this using DOS-style short mode. If the path 39797 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39798 # take no chances and rewrite it. 39799 # Note: m4 eats our [], so we need to use [ and ] instead. 39800 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39801 if test "x$has_forbidden_chars" != x; then 39802 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39803 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39804 fi 39805 39806 # Output is in $new_path 39807 39808 windows_path="$new_path" 39809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39810 unix_path=`$CYGPATH -u "$windows_path"` 39811 new_path="$unix_path" 39812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39813 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39814 new_path="$unix_path" 39815 fi 39816 39817 # remove trailing .exe if any 39818 new_path="${new_path/%.exe/}" 39819 39820 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39821 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39822 fi 39823 39824 else 39825 # We're on a unix platform. Hooray! :) 39826 # First separate the path from the arguments. This will split at the first 39827 # space. 39828 complete="$BUILD_CC" 39829 path="${complete%% *}" 39830 tmp="$complete EOL" 39831 arguments="${tmp#* }" 39832 39833 # Cannot rely on the command "which" here since it doesn't always work. 39834 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39835 if test -z "$is_absolute_path"; then 39836 # Path to executable is not absolute. Find it. 39837 IFS_save="$IFS" 39838 IFS=: 39839 for p in $PATH; do 39840 if test -f "$p/$path" && test -x "$p/$path"; then 39841 new_path="$p/$path" 39842 break 39843 fi 39844 done 39845 IFS="$IFS_save" 39846 else 39847 # This is an absolute path, we can use it without further modifications. 39848 new_path="$path" 39849 fi 39850 39851 if test "x$new_path" = x; then 39852 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39853 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39854 has_space=`$ECHO "$complete" | $GREP " "` 39855 if test "x$has_space" != x; then 39856 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39857 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39858 fi 39859 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39860 fi 39861 fi 39862 39863 # Now join together the path and the arguments once again 39864 if test "x$arguments" != xEOL; then 39865 new_complete="$new_path ${arguments% *}" 39866 else 39867 new_complete="$new_path" 39868 fi 39869 39870 if test "x$complete" != "x$new_complete"; then 39871 BUILD_CC="$new_complete" 39872 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39873 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39874 fi 39875 fi 39876 39877 39878 39879 # Publish this variable in the help. 39880 39881 39882 if test "x$BUILD_CXX" = x; then 39883 # The variable is not set by user, try to locate tool using the code snippet 39884 for ac_prog in cl CC g++ 39885 do 39886 # Extract the first word of "$ac_prog", so it can be a program name with args. 39887 set dummy $ac_prog; ac_word=$2 39888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39889 $as_echo_n "checking for $ac_word... " >&6; } 39890 if ${ac_cv_path_BUILD_CXX+:} false; then : 39891 $as_echo_n "(cached) " >&6 39892 else 39893 case $BUILD_CXX in 39894 [\\/]* | ?:[\\/]*) 39895 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39896 ;; 39897 *) 39898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39899 for as_dir in $PATH 39900 do 39901 IFS=$as_save_IFS 39902 test -z "$as_dir" && as_dir=. 39903 for ac_exec_ext in '' $ac_executable_extensions; do 39904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39905 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39907 break 2 39908 fi 39909 done 39910 done 39911 IFS=$as_save_IFS 39912 39913 ;; 39914 esac 39915 fi 39916 BUILD_CXX=$ac_cv_path_BUILD_CXX 39917 if test -n "$BUILD_CXX"; then 39918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39919 $as_echo "$BUILD_CXX" >&6; } 39920 else 39921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39922 $as_echo "no" >&6; } 39923 fi 39924 39925 39926 test -n "$BUILD_CXX" && break 39927 done 39928 39929 else 39930 # The variable is set, but is it from the command line or the environment? 39931 39932 # Try to remove the string !BUILD_CXX! from our list. 39933 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39934 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39935 # If it failed, the variable was not from the command line. Ignore it, 39936 # but warn the user (except for BASH, which is always set by the calling BASH). 39937 if test "xBUILD_CXX" != xBASH; then 39938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39939 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39940 fi 39941 # Try to locate tool using the code snippet 39942 for ac_prog in cl CC g++ 39943 do 39944 # Extract the first word of "$ac_prog", so it can be a program name with args. 39945 set dummy $ac_prog; ac_word=$2 39946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39947 $as_echo_n "checking for $ac_word... " >&6; } 39948 if ${ac_cv_path_BUILD_CXX+:} false; then : 39949 $as_echo_n "(cached) " >&6 39950 else 39951 case $BUILD_CXX in 39952 [\\/]* | ?:[\\/]*) 39953 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39954 ;; 39955 *) 39956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39957 for as_dir in $PATH 39958 do 39959 IFS=$as_save_IFS 39960 test -z "$as_dir" && as_dir=. 39961 for ac_exec_ext in '' $ac_executable_extensions; do 39962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39963 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39965 break 2 39966 fi 39967 done 39968 done 39969 IFS=$as_save_IFS 39970 39971 ;; 39972 esac 39973 fi 39974 BUILD_CXX=$ac_cv_path_BUILD_CXX 39975 if test -n "$BUILD_CXX"; then 39976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39977 $as_echo "$BUILD_CXX" >&6; } 39978 else 39979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39980 $as_echo "no" >&6; } 39981 fi 39982 39983 39984 test -n "$BUILD_CXX" && break 39985 done 39986 39987 else 39988 # If it succeeded, then it was overridden by the user. We will use it 39989 # for the tool. 39990 39991 # First remove it from the list of overridden variables, so we can test 39992 # for unknown variables in the end. 39993 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39994 39995 # Check if the provided tool contains a complete path. 39996 tool_specified="$BUILD_CXX" 39997 tool_basename="${tool_specified##*/}" 39998 if test "x$tool_basename" = "x$tool_specified"; then 39999 # A command without a complete path is provided, search $PATH. 40000 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 40001 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 40002 # Extract the first word of "$tool_basename", so it can be a program name with args. 40003 set dummy $tool_basename; ac_word=$2 40004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40005 $as_echo_n "checking for $ac_word... " >&6; } 40006 if ${ac_cv_path_BUILD_CXX+:} false; then : 40007 $as_echo_n "(cached) " >&6 40008 else 40009 case $BUILD_CXX in 40010 [\\/]* | ?:[\\/]*) 40011 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 40012 ;; 40013 *) 40014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40015 for as_dir in $PATH 40016 do 40017 IFS=$as_save_IFS 40018 test -z "$as_dir" && as_dir=. 40019 for ac_exec_ext in '' $ac_executable_extensions; do 40020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40021 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40023 break 2 40024 fi 40025 done 40026 done 40027 IFS=$as_save_IFS 40028 40029 ;; 40030 esac 40031 fi 40032 BUILD_CXX=$ac_cv_path_BUILD_CXX 40033 if test -n "$BUILD_CXX"; then 40034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40035 $as_echo "$BUILD_CXX" >&6; } 40036 else 40037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40038 $as_echo "no" >&6; } 40039 fi 40040 40041 40042 if test "x$BUILD_CXX" = x; then 40043 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40044 fi 40045 else 40046 # Otherwise we believe it is a complete path. Use it as it is. 40047 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 40048 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 40049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 40050 $as_echo_n "checking for BUILD_CXX... " >&6; } 40051 if test ! -x "$tool_specified"; then 40052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40053 $as_echo "not found" >&6; } 40054 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 40055 fi 40056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40057 $as_echo "$tool_specified" >&6; } 40058 fi 40059 fi 40060 fi 40061 40062 40063 40064 # Only process if variable expands to non-empty 40065 40066 if test "x$BUILD_CXX" != x; then 40067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40068 40069 # First separate the path from the arguments. This will split at the first 40070 # space. 40071 complete="$BUILD_CXX" 40072 path="${complete%% *}" 40073 tmp="$complete EOL" 40074 arguments="${tmp#* }" 40075 40076 # Input might be given as Windows format, start by converting to 40077 # unix format. 40078 new_path=`$CYGPATH -u "$path"` 40079 40080 # Now try to locate executable using which 40081 new_path=`$WHICH "$new_path" 2> /dev/null` 40082 # bat and cmd files are not always considered executable in cygwin causing which 40083 # to not find them 40084 if test "x$new_path" = x \ 40085 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40086 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40087 new_path=`$CYGPATH -u "$path"` 40088 fi 40089 if test "x$new_path" = x; then 40090 # Oops. Which didn't find the executable. 40091 # The splitting of arguments from the executable at a space might have been incorrect, 40092 # since paths with space are more likely in Windows. Give it another try with the whole 40093 # argument. 40094 path="$complete" 40095 arguments="EOL" 40096 new_path=`$CYGPATH -u "$path"` 40097 new_path=`$WHICH "$new_path" 2> /dev/null` 40098 # bat and cmd files are not always considered executable in cygwin causing which 40099 # to not find them 40100 if test "x$new_path" = x \ 40101 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40102 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40103 new_path=`$CYGPATH -u "$path"` 40104 fi 40105 if test "x$new_path" = x; then 40106 # It's still not found. Now this is an unrecoverable error. 40107 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40108 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40109 has_space=`$ECHO "$complete" | $GREP " "` 40110 if test "x$has_space" != x; then 40111 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40112 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40113 fi 40114 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40115 fi 40116 fi 40117 40118 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40119 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40120 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40121 # "foo.exe" is OK but "foo" is an error. 40122 # 40123 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40124 # It is also a way to make sure we got the proper file name for the real test later on. 40125 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40126 if test "x$test_shortpath" = x; then 40127 # Short path failed, file does not exist as specified. 40128 # Try adding .exe or .cmd 40129 if test -f "${new_path}.exe"; then 40130 input_to_shortpath="${new_path}.exe" 40131 elif test -f "${new_path}.cmd"; then 40132 input_to_shortpath="${new_path}.cmd" 40133 else 40134 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 40135 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 40136 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40137 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40138 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40139 fi 40140 else 40141 input_to_shortpath="$new_path" 40142 fi 40143 40144 # Call helper function which possibly converts this using DOS-style short mode. 40145 # If so, the updated path is stored in $new_path. 40146 new_path="$input_to_shortpath" 40147 40148 input_path="$input_to_shortpath" 40149 # Check if we need to convert this using DOS-style short mode. If the path 40150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40151 # take no chances and rewrite it. 40152 # Note: m4 eats our [], so we need to use [ and ] instead. 40153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40154 if test "x$has_forbidden_chars" != x; then 40155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40156 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40157 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40158 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40159 # Going to short mode and back again did indeed matter. Since short mode is 40160 # case insensitive, let's make it lowercase to improve readability. 40161 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40162 # Now convert it back to Unix-stile (cygpath) 40163 input_path=`$CYGPATH -u "$shortmode_path"` 40164 new_path="$input_path" 40165 fi 40166 fi 40167 40168 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40169 if test "x$test_cygdrive_prefix" = x; then 40170 # As a simple fix, exclude /usr/bin since it's not a real path. 40171 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40172 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40173 # a path prefixed by /cygdrive for fixpath to work. 40174 new_path="$CYGWIN_ROOT_PATH$input_path" 40175 fi 40176 fi 40177 40178 # remove trailing .exe if any 40179 new_path="${new_path/%.exe/}" 40180 40181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40182 40183 # First separate the path from the arguments. This will split at the first 40184 # space. 40185 complete="$BUILD_CXX" 40186 path="${complete%% *}" 40187 tmp="$complete EOL" 40188 arguments="${tmp#* }" 40189 40190 # Input might be given as Windows format, start by converting to 40191 # unix format. 40192 new_path="$path" 40193 40194 windows_path="$new_path" 40195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40196 unix_path=`$CYGPATH -u "$windows_path"` 40197 new_path="$unix_path" 40198 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40199 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40200 new_path="$unix_path" 40201 fi 40202 40203 40204 # Now try to locate executable using which 40205 new_path=`$WHICH "$new_path" 2> /dev/null` 40206 40207 if test "x$new_path" = x; then 40208 # Oops. Which didn't find the executable. 40209 # The splitting of arguments from the executable at a space might have been incorrect, 40210 # since paths with space are more likely in Windows. Give it another try with the whole 40211 # argument. 40212 path="$complete" 40213 arguments="EOL" 40214 new_path="$path" 40215 40216 windows_path="$new_path" 40217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40218 unix_path=`$CYGPATH -u "$windows_path"` 40219 new_path="$unix_path" 40220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40221 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40222 new_path="$unix_path" 40223 fi 40224 40225 40226 new_path=`$WHICH "$new_path" 2> /dev/null` 40227 # bat and cmd files are not always considered executable in MSYS causing which 40228 # to not find them 40229 if test "x$new_path" = x \ 40230 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40231 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40232 new_path="$path" 40233 40234 windows_path="$new_path" 40235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40236 unix_path=`$CYGPATH -u "$windows_path"` 40237 new_path="$unix_path" 40238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40239 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40240 new_path="$unix_path" 40241 fi 40242 40243 fi 40244 40245 if test "x$new_path" = x; then 40246 # It's still not found. Now this is an unrecoverable error. 40247 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40248 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40249 has_space=`$ECHO "$complete" | $GREP " "` 40250 if test "x$has_space" != x; then 40251 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40252 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40253 fi 40254 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40255 fi 40256 fi 40257 40258 # Now new_path has a complete unix path to the binary 40259 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40260 # Keep paths in /bin as-is, but remove trailing .exe if any 40261 new_path="${new_path/%.exe/}" 40262 # Do not save /bin paths to all_fixpath_prefixes! 40263 else 40264 # Not in mixed or Windows style, start by that. 40265 new_path=`cmd //c echo $new_path` 40266 40267 input_path="$new_path" 40268 # Check if we need to convert this using DOS-style short mode. If the path 40269 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40270 # take no chances and rewrite it. 40271 # Note: m4 eats our [], so we need to use [ and ] instead. 40272 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40273 if test "x$has_forbidden_chars" != x; then 40274 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40275 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40276 fi 40277 40278 # Output is in $new_path 40279 40280 windows_path="$new_path" 40281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40282 unix_path=`$CYGPATH -u "$windows_path"` 40283 new_path="$unix_path" 40284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40285 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40286 new_path="$unix_path" 40287 fi 40288 40289 # remove trailing .exe if any 40290 new_path="${new_path/%.exe/}" 40291 40292 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40293 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40294 fi 40295 40296 else 40297 # We're on a unix platform. Hooray! :) 40298 # First separate the path from the arguments. This will split at the first 40299 # space. 40300 complete="$BUILD_CXX" 40301 path="${complete%% *}" 40302 tmp="$complete EOL" 40303 arguments="${tmp#* }" 40304 40305 # Cannot rely on the command "which" here since it doesn't always work. 40306 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40307 if test -z "$is_absolute_path"; then 40308 # Path to executable is not absolute. Find it. 40309 IFS_save="$IFS" 40310 IFS=: 40311 for p in $PATH; do 40312 if test -f "$p/$path" && test -x "$p/$path"; then 40313 new_path="$p/$path" 40314 break 40315 fi 40316 done 40317 IFS="$IFS_save" 40318 else 40319 # This is an absolute path, we can use it without further modifications. 40320 new_path="$path" 40321 fi 40322 40323 if test "x$new_path" = x; then 40324 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40325 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40326 has_space=`$ECHO "$complete" | $GREP " "` 40327 if test "x$has_space" != x; then 40328 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40329 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40330 fi 40331 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40332 fi 40333 fi 40334 40335 # Now join together the path and the arguments once again 40336 if test "x$arguments" != xEOL; then 40337 new_complete="$new_path ${arguments% *}" 40338 else 40339 new_complete="$new_path" 40340 fi 40341 40342 if test "x$complete" != "x$new_complete"; then 40343 BUILD_CXX="$new_complete" 40344 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 40345 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 40346 fi 40347 fi 40348 40349 40350 40351 # Publish this variable in the help. 40352 40353 40354 if test "x$BUILD_LD" = x; then 40355 # The variable is not set by user, try to locate tool using the code snippet 40356 for ac_prog in ld 40357 do 40358 # Extract the first word of "$ac_prog", so it can be a program name with args. 40359 set dummy $ac_prog; ac_word=$2 40360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40361 $as_echo_n "checking for $ac_word... " >&6; } 40362 if ${ac_cv_path_BUILD_LD+:} false; then : 40363 $as_echo_n "(cached) " >&6 40364 else 40365 case $BUILD_LD in 40366 [\\/]* | ?:[\\/]*) 40367 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40368 ;; 40369 *) 40370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40371 for as_dir in $PATH 40372 do 40373 IFS=$as_save_IFS 40374 test -z "$as_dir" && as_dir=. 40375 for ac_exec_ext in '' $ac_executable_extensions; do 40376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40377 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40379 break 2 40380 fi 40381 done 40382 done 40383 IFS=$as_save_IFS 40384 40385 ;; 40386 esac 40387 fi 40388 BUILD_LD=$ac_cv_path_BUILD_LD 40389 if test -n "$BUILD_LD"; then 40390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40391 $as_echo "$BUILD_LD" >&6; } 40392 else 40393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40394 $as_echo "no" >&6; } 40395 fi 40396 40397 40398 test -n "$BUILD_LD" && break 40399 done 40400 40401 else 40402 # The variable is set, but is it from the command line or the environment? 40403 40404 # Try to remove the string !BUILD_LD! from our list. 40405 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40406 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40407 # If it failed, the variable was not from the command line. Ignore it, 40408 # but warn the user (except for BASH, which is always set by the calling BASH). 40409 if test "xBUILD_LD" != xBASH; then 40410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40411 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40412 fi 40413 # Try to locate tool using the code snippet 40414 for ac_prog in ld 40415 do 40416 # Extract the first word of "$ac_prog", so it can be a program name with args. 40417 set dummy $ac_prog; ac_word=$2 40418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40419 $as_echo_n "checking for $ac_word... " >&6; } 40420 if ${ac_cv_path_BUILD_LD+:} false; then : 40421 $as_echo_n "(cached) " >&6 40422 else 40423 case $BUILD_LD in 40424 [\\/]* | ?:[\\/]*) 40425 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40426 ;; 40427 *) 40428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40429 for as_dir in $PATH 40430 do 40431 IFS=$as_save_IFS 40432 test -z "$as_dir" && as_dir=. 40433 for ac_exec_ext in '' $ac_executable_extensions; do 40434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40435 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40437 break 2 40438 fi 40439 done 40440 done 40441 IFS=$as_save_IFS 40442 40443 ;; 40444 esac 40445 fi 40446 BUILD_LD=$ac_cv_path_BUILD_LD 40447 if test -n "$BUILD_LD"; then 40448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40449 $as_echo "$BUILD_LD" >&6; } 40450 else 40451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40452 $as_echo "no" >&6; } 40453 fi 40454 40455 40456 test -n "$BUILD_LD" && break 40457 done 40458 40459 else 40460 # If it succeeded, then it was overridden by the user. We will use it 40461 # for the tool. 40462 40463 # First remove it from the list of overridden variables, so we can test 40464 # for unknown variables in the end. 40465 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40466 40467 # Check if the provided tool contains a complete path. 40468 tool_specified="$BUILD_LD" 40469 tool_basename="${tool_specified##*/}" 40470 if test "x$tool_basename" = "x$tool_specified"; then 40471 # A command without a complete path is provided, search $PATH. 40472 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40473 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40474 # Extract the first word of "$tool_basename", so it can be a program name with args. 40475 set dummy $tool_basename; ac_word=$2 40476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40477 $as_echo_n "checking for $ac_word... " >&6; } 40478 if ${ac_cv_path_BUILD_LD+:} false; then : 40479 $as_echo_n "(cached) " >&6 40480 else 40481 case $BUILD_LD in 40482 [\\/]* | ?:[\\/]*) 40483 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40484 ;; 40485 *) 40486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40487 for as_dir in $PATH 40488 do 40489 IFS=$as_save_IFS 40490 test -z "$as_dir" && as_dir=. 40491 for ac_exec_ext in '' $ac_executable_extensions; do 40492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40493 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40495 break 2 40496 fi 40497 done 40498 done 40499 IFS=$as_save_IFS 40500 40501 ;; 40502 esac 40503 fi 40504 BUILD_LD=$ac_cv_path_BUILD_LD 40505 if test -n "$BUILD_LD"; then 40506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40507 $as_echo "$BUILD_LD" >&6; } 40508 else 40509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40510 $as_echo "no" >&6; } 40511 fi 40512 40513 40514 if test "x$BUILD_LD" = x; then 40515 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40516 fi 40517 else 40518 # Otherwise we believe it is a complete path. Use it as it is. 40519 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 40520 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 40521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40522 $as_echo_n "checking for BUILD_LD... " >&6; } 40523 if test ! -x "$tool_specified"; then 40524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40525 $as_echo "not found" >&6; } 40526 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 40527 fi 40528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40529 $as_echo "$tool_specified" >&6; } 40530 fi 40531 fi 40532 fi 40533 40534 40535 40536 # Only process if variable expands to non-empty 40537 40538 if test "x$BUILD_LD" != x; then 40539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40540 40541 # First separate the path from the arguments. This will split at the first 40542 # space. 40543 complete="$BUILD_LD" 40544 path="${complete%% *}" 40545 tmp="$complete EOL" 40546 arguments="${tmp#* }" 40547 40548 # Input might be given as Windows format, start by converting to 40549 # unix format. 40550 new_path=`$CYGPATH -u "$path"` 40551 40552 # Now try to locate executable using which 40553 new_path=`$WHICH "$new_path" 2> /dev/null` 40554 # bat and cmd files are not always considered executable in cygwin causing which 40555 # to not find them 40556 if test "x$new_path" = x \ 40557 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40558 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40559 new_path=`$CYGPATH -u "$path"` 40560 fi 40561 if test "x$new_path" = x; then 40562 # Oops. Which didn't find the executable. 40563 # The splitting of arguments from the executable at a space might have been incorrect, 40564 # since paths with space are more likely in Windows. Give it another try with the whole 40565 # argument. 40566 path="$complete" 40567 arguments="EOL" 40568 new_path=`$CYGPATH -u "$path"` 40569 new_path=`$WHICH "$new_path" 2> /dev/null` 40570 # bat and cmd files are not always considered executable in cygwin causing which 40571 # to not find them 40572 if test "x$new_path" = x \ 40573 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40574 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40575 new_path=`$CYGPATH -u "$path"` 40576 fi 40577 if test "x$new_path" = x; then 40578 # It's still not found. Now this is an unrecoverable error. 40579 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40580 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40581 has_space=`$ECHO "$complete" | $GREP " "` 40582 if test "x$has_space" != x; then 40583 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40584 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40585 fi 40586 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40587 fi 40588 fi 40589 40590 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40591 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40592 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40593 # "foo.exe" is OK but "foo" is an error. 40594 # 40595 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40596 # It is also a way to make sure we got the proper file name for the real test later on. 40597 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40598 if test "x$test_shortpath" = x; then 40599 # Short path failed, file does not exist as specified. 40600 # Try adding .exe or .cmd 40601 if test -f "${new_path}.exe"; then 40602 input_to_shortpath="${new_path}.exe" 40603 elif test -f "${new_path}.cmd"; then 40604 input_to_shortpath="${new_path}.cmd" 40605 else 40606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 40607 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 40608 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40609 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40610 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40611 fi 40612 else 40613 input_to_shortpath="$new_path" 40614 fi 40615 40616 # Call helper function which possibly converts this using DOS-style short mode. 40617 # If so, the updated path is stored in $new_path. 40618 new_path="$input_to_shortpath" 40619 40620 input_path="$input_to_shortpath" 40621 # Check if we need to convert this using DOS-style short mode. If the path 40622 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40623 # take no chances and rewrite it. 40624 # Note: m4 eats our [], so we need to use [ and ] instead. 40625 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40626 if test "x$has_forbidden_chars" != x; then 40627 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40628 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40629 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40630 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40631 # Going to short mode and back again did indeed matter. Since short mode is 40632 # case insensitive, let's make it lowercase to improve readability. 40633 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40634 # Now convert it back to Unix-stile (cygpath) 40635 input_path=`$CYGPATH -u "$shortmode_path"` 40636 new_path="$input_path" 40637 fi 40638 fi 40639 40640 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40641 if test "x$test_cygdrive_prefix" = x; then 40642 # As a simple fix, exclude /usr/bin since it's not a real path. 40643 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40644 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40645 # a path prefixed by /cygdrive for fixpath to work. 40646 new_path="$CYGWIN_ROOT_PATH$input_path" 40647 fi 40648 fi 40649 40650 # remove trailing .exe if any 40651 new_path="${new_path/%.exe/}" 40652 40653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40654 40655 # First separate the path from the arguments. This will split at the first 40656 # space. 40657 complete="$BUILD_LD" 40658 path="${complete%% *}" 40659 tmp="$complete EOL" 40660 arguments="${tmp#* }" 40661 40662 # Input might be given as Windows format, start by converting to 40663 # unix format. 40664 new_path="$path" 40665 40666 windows_path="$new_path" 40667 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40668 unix_path=`$CYGPATH -u "$windows_path"` 40669 new_path="$unix_path" 40670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40671 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40672 new_path="$unix_path" 40673 fi 40674 40675 40676 # Now try to locate executable using which 40677 new_path=`$WHICH "$new_path" 2> /dev/null` 40678 40679 if test "x$new_path" = x; then 40680 # Oops. Which didn't find the executable. 40681 # The splitting of arguments from the executable at a space might have been incorrect, 40682 # since paths with space are more likely in Windows. Give it another try with the whole 40683 # argument. 40684 path="$complete" 40685 arguments="EOL" 40686 new_path="$path" 40687 40688 windows_path="$new_path" 40689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40690 unix_path=`$CYGPATH -u "$windows_path"` 40691 new_path="$unix_path" 40692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40693 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40694 new_path="$unix_path" 40695 fi 40696 40697 40698 new_path=`$WHICH "$new_path" 2> /dev/null` 40699 # bat and cmd files are not always considered executable in MSYS causing which 40700 # to not find them 40701 if test "x$new_path" = x \ 40702 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40703 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40704 new_path="$path" 40705 40706 windows_path="$new_path" 40707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40708 unix_path=`$CYGPATH -u "$windows_path"` 40709 new_path="$unix_path" 40710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40711 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40712 new_path="$unix_path" 40713 fi 40714 40715 fi 40716 40717 if test "x$new_path" = x; then 40718 # It's still not found. Now this is an unrecoverable error. 40719 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40720 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40721 has_space=`$ECHO "$complete" | $GREP " "` 40722 if test "x$has_space" != x; then 40723 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40724 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40725 fi 40726 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40727 fi 40728 fi 40729 40730 # Now new_path has a complete unix path to the binary 40731 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40732 # Keep paths in /bin as-is, but remove trailing .exe if any 40733 new_path="${new_path/%.exe/}" 40734 # Do not save /bin paths to all_fixpath_prefixes! 40735 else 40736 # Not in mixed or Windows style, start by that. 40737 new_path=`cmd //c echo $new_path` 40738 40739 input_path="$new_path" 40740 # Check if we need to convert this using DOS-style short mode. If the path 40741 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40742 # take no chances and rewrite it. 40743 # Note: m4 eats our [], so we need to use [ and ] instead. 40744 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40745 if test "x$has_forbidden_chars" != x; then 40746 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40747 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40748 fi 40749 40750 # Output is in $new_path 40751 40752 windows_path="$new_path" 40753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40754 unix_path=`$CYGPATH -u "$windows_path"` 40755 new_path="$unix_path" 40756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40757 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40758 new_path="$unix_path" 40759 fi 40760 40761 # remove trailing .exe if any 40762 new_path="${new_path/%.exe/}" 40763 40764 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40765 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40766 fi 40767 40768 else 40769 # We're on a unix platform. Hooray! :) 40770 # First separate the path from the arguments. This will split at the first 40771 # space. 40772 complete="$BUILD_LD" 40773 path="${complete%% *}" 40774 tmp="$complete EOL" 40775 arguments="${tmp#* }" 40776 40777 # Cannot rely on the command "which" here since it doesn't always work. 40778 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40779 if test -z "$is_absolute_path"; then 40780 # Path to executable is not absolute. Find it. 40781 IFS_save="$IFS" 40782 IFS=: 40783 for p in $PATH; do 40784 if test -f "$p/$path" && test -x "$p/$path"; then 40785 new_path="$p/$path" 40786 break 40787 fi 40788 done 40789 IFS="$IFS_save" 40790 else 40791 # This is an absolute path, we can use it without further modifications. 40792 new_path="$path" 40793 fi 40794 40795 if test "x$new_path" = x; then 40796 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40797 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40798 has_space=`$ECHO "$complete" | $GREP " "` 40799 if test "x$has_space" != x; then 40800 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40801 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40802 fi 40803 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40804 fi 40805 fi 40806 40807 # Now join together the path and the arguments once again 40808 if test "x$arguments" != xEOL; then 40809 new_complete="$new_path ${arguments% *}" 40810 else 40811 new_complete="$new_path" 40812 fi 40813 40814 if test "x$complete" != "x$new_complete"; then 40815 BUILD_LD="$new_complete" 40816 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40817 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40818 fi 40819 fi 40820 40821 else 40822 # If we are not cross compiling, use the normal target compilers for 40823 # building the build platform executables. 40824 BUILD_CC="$CC" 40825 BUILD_CXX="$CXX" 40826 BUILD_LD="$LD" 40827 fi 40828 40829 40830 40831 40832 40833 40834 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40835 # For hotspot, we need these in Windows mixed path, 40836 # so rewrite them all. Need added .exe suffix. 40837 HOTSPOT_CXX="$CXX.exe" 40838 HOTSPOT_LD="$LD.exe" 40839 HOTSPOT_MT="$MT.exe" 40840 HOTSPOT_RC="$RC.exe" 40841 40842 unix_path="$HOTSPOT_CXX" 40843 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40844 windows_path=`$CYGPATH -m "$unix_path"` 40845 HOTSPOT_CXX="$windows_path" 40846 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40847 windows_path=`cmd //c echo $unix_path` 40848 HOTSPOT_CXX="$windows_path" 40849 fi 40850 40851 40852 unix_path="$HOTSPOT_LD" 40853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40854 windows_path=`$CYGPATH -m "$unix_path"` 40855 HOTSPOT_LD="$windows_path" 40856 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40857 windows_path=`cmd //c echo $unix_path` 40858 HOTSPOT_LD="$windows_path" 40859 fi 40860 40861 40862 unix_path="$HOTSPOT_MT" 40863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40864 windows_path=`$CYGPATH -m "$unix_path"` 40865 HOTSPOT_MT="$windows_path" 40866 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40867 windows_path=`cmd //c echo $unix_path` 40868 HOTSPOT_MT="$windows_path" 40869 fi 40870 40871 40872 unix_path="$HOTSPOT_RC" 40873 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40874 windows_path=`$CYGPATH -m "$unix_path"` 40875 HOTSPOT_RC="$windows_path" 40876 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40877 windows_path=`cmd //c echo $unix_path` 40878 HOTSPOT_RC="$windows_path" 40879 fi 40880 40881 40882 40883 else 40884 HOTSPOT_CXX="$CXX" 40885 HOTSPOT_LD="$LD" 40886 fi 40887 40888 40889 40890 if test "x$TOOLCHAIN_TYPE" = xclang; then 40891 USE_CLANG=true 40892 fi 40893 40894 40895 # LDEXE is the linker to use, when creating executables. Not really used. 40896 # FIXME: These should just be removed! 40897 LDEXE="$LD" 40898 LDEXECXX="$LDCXX" 40899 40900 40901 40902 40903 40904 40905 # The package path is used only on macosx? 40906 # FIXME: clean this up, and/or move it elsewhere. 40907 PACKAGE_PATH=/opt/local 40908 40909 40910 # Check for extra potential brokenness. 40911 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40912 # On Windows, double-check that we got the right compiler. 40913 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40914 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40915 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40916 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 40917 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 40918 fi 40919 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40920 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40921 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40922 fi 40923 fi 40924 fi 40925 40926 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40927 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40928 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40929 # This is later checked when setting flags. 40930 40931 # "-Og" suppported for GCC 4.8 and later 40932 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 40933 40934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 40935 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 40936 supports=yes 40937 40938 saved_cflags="$CFLAGS" 40939 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 40940 ac_ext=c 40941 ac_cpp='$CPP $CPPFLAGS' 40942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40944 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40945 40946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40947 /* end confdefs.h. */ 40948 int i; 40949 _ACEOF 40950 if ac_fn_c_try_compile "$LINENO"; then : 40951 40952 else 40953 supports=no 40954 fi 40955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40956 ac_ext=cpp 40957 ac_cpp='$CXXCPP $CPPFLAGS' 40958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40961 40962 CFLAGS="$saved_cflags" 40963 40964 saved_cxxflags="$CXXFLAGS" 40965 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 40966 ac_ext=cpp 40967 ac_cpp='$CXXCPP $CPPFLAGS' 40968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40971 40972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40973 /* end confdefs.h. */ 40974 int i; 40975 _ACEOF 40976 if ac_fn_cxx_try_compile "$LINENO"; then : 40977 40978 else 40979 supports=no 40980 fi 40981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40982 ac_ext=cpp 40983 ac_cpp='$CXXCPP $CPPFLAGS' 40984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40987 40988 CXXFLAGS="$saved_cxxflags" 40989 40990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40991 $as_echo "$supports" >&6; } 40992 if test "x$supports" = "xyes" ; then 40993 HAS_CFLAG_OPTIMIZE_DEBUG=true 40994 else 40995 HAS_CFLAG_OPTIMIZE_DEBUG=false 40996 fi 40997 40998 40999 # "-z relro" supported in GNU binutils 2.17 and later 41000 LINKER_RELRO_FLAG="-Xlinker -z -Xlinker relro" 41001 41002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 41003 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 41004 supports=yes 41005 41006 saved_ldflags="$LDFLAGS" 41007 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 41008 ac_ext=c 41009 ac_cpp='$CPP $CPPFLAGS' 41010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41012 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41013 41014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41015 /* end confdefs.h. */ 41016 41017 int 41018 main () 41019 { 41020 41021 ; 41022 return 0; 41023 } 41024 _ACEOF 41025 if ac_fn_c_try_link "$LINENO"; then : 41026 41027 else 41028 supports=no 41029 fi 41030 rm -f core conftest.err conftest.$ac_objext \ 41031 conftest$ac_exeext conftest.$ac_ext 41032 ac_ext=cpp 41033 ac_cpp='$CXXCPP $CPPFLAGS' 41034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41037 41038 LDFLAGS="$saved_ldflags" 41039 41040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41041 $as_echo "$supports" >&6; } 41042 if test "x$supports" = "xyes" ; then 41043 HAS_LINKER_RELRO=true 41044 else 41045 HAS_LINKER_RELRO=false 41046 fi 41047 41048 41049 # "-z now" supported in GNU binutils 2.11 and later 41050 LINKER_NOW_FLAG="-Xlinker -z -Xlinker now" 41051 41052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 41053 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 41054 supports=yes 41055 41056 saved_ldflags="$LDFLAGS" 41057 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 41058 ac_ext=c 41059 ac_cpp='$CPP $CPPFLAGS' 41060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41062 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41063 41064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41065 /* end confdefs.h. */ 41066 41067 int 41068 main () 41069 { 41070 41071 ; 41072 return 0; 41073 } 41074 _ACEOF 41075 if ac_fn_c_try_link "$LINENO"; then : 41076 41077 else 41078 supports=no 41079 fi 41080 rm -f core conftest.err conftest.$ac_objext \ 41081 conftest$ac_exeext conftest.$ac_ext 41082 ac_ext=cpp 41083 ac_cpp='$CXXCPP $CPPFLAGS' 41084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41087 41088 LDFLAGS="$saved_ldflags" 41089 41090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41091 $as_echo "$supports" >&6; } 41092 if test "x$supports" = "xyes" ; then 41093 HAS_LINKER_NOW=true 41094 else 41095 HAS_LINKER_NOW=false 41096 fi 41097 41098 fi 41099 41100 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 41101 # in executable.' 41102 USING_BROKEN_SUSE_LD=no 41103 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 41104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 41105 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 41106 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 41107 $ECHO "int main() { }" > main.c 41108 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 41109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41110 $as_echo "no" >&6; } 41111 USING_BROKEN_SUSE_LD=no 41112 else 41113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41114 $as_echo "yes" >&6; } 41115 USING_BROKEN_SUSE_LD=yes 41116 fi 41117 rm -rf version-script.map main.c a.out 41118 fi 41119 41120 41121 41122 # Setup the JTReg Regression Test Harness. 41123 41124 41125 # Check whether --with-jtreg was given. 41126 if test "${with_jtreg+set}" = set; then : 41127 withval=$with_jtreg; 41128 else 41129 with_jtreg=no 41130 fi 41131 41132 41133 if test "x$with_jtreg" = xno; then 41134 # jtreg disabled 41135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41136 $as_echo_n "checking for jtreg... " >&6; } 41137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41138 $as_echo "no" >&6; } 41139 else 41140 if test "x$with_jtreg" != xyes; then 41141 # with path specified. 41142 JT_HOME="$with_jtreg" 41143 fi 41144 41145 if test "x$JT_HOME" != x; then 41146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41147 $as_echo_n "checking for jtreg... " >&6; } 41148 41149 # use JT_HOME enviroment var. 41150 41151 # Only process if variable expands to non-empty 41152 41153 if test "x$JT_HOME" != x; then 41154 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41155 41156 # Input might be given as Windows format, start by converting to 41157 # unix format. 41158 path="$JT_HOME" 41159 new_path=`$CYGPATH -u "$path"` 41160 41161 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41162 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41163 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41164 # "foo.exe" is OK but "foo" is an error. 41165 # 41166 # This test is therefore slightly more accurate than "test -f" to check for file precense. 41167 # It is also a way to make sure we got the proper file name for the real test later on. 41168 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41169 if test "x$test_shortpath" = x; then 41170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41171 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41172 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 41173 fi 41174 41175 # Call helper function which possibly converts this using DOS-style short mode. 41176 # If so, the updated path is stored in $new_path. 41177 41178 input_path="$new_path" 41179 # Check if we need to convert this using DOS-style short mode. If the path 41180 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41181 # take no chances and rewrite it. 41182 # Note: m4 eats our [], so we need to use [ and ] instead. 41183 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41184 if test "x$has_forbidden_chars" != x; then 41185 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41186 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41187 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41188 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41189 # Going to short mode and back again did indeed matter. Since short mode is 41190 # case insensitive, let's make it lowercase to improve readability. 41191 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41192 # Now convert it back to Unix-stile (cygpath) 41193 input_path=`$CYGPATH -u "$shortmode_path"` 41194 new_path="$input_path" 41195 fi 41196 fi 41197 41198 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41199 if test "x$test_cygdrive_prefix" = x; then 41200 # As a simple fix, exclude /usr/bin since it's not a real path. 41201 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 41202 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41203 # a path prefixed by /cygdrive for fixpath to work. 41204 new_path="$CYGWIN_ROOT_PATH$input_path" 41205 fi 41206 fi 41207 41208 41209 if test "x$path" != "x$new_path"; then 41210 JT_HOME="$new_path" 41211 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41212 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41213 fi 41214 41215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41216 41217 path="$JT_HOME" 41218 has_colon=`$ECHO $path | $GREP ^.:` 41219 new_path="$path" 41220 if test "x$has_colon" = x; then 41221 # Not in mixed or Windows style, start by that. 41222 new_path=`cmd //c echo $path` 41223 fi 41224 41225 41226 input_path="$new_path" 41227 # Check if we need to convert this using DOS-style short mode. If the path 41228 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41229 # take no chances and rewrite it. 41230 # Note: m4 eats our [], so we need to use [ and ] instead. 41231 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41232 if test "x$has_forbidden_chars" != x; then 41233 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41234 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41235 fi 41236 41237 41238 windows_path="$new_path" 41239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41240 unix_path=`$CYGPATH -u "$windows_path"` 41241 new_path="$unix_path" 41242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41244 new_path="$unix_path" 41245 fi 41246 41247 if test "x$path" != "x$new_path"; then 41248 JT_HOME="$new_path" 41249 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41250 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41251 fi 41252 41253 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41254 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41255 41256 else 41257 # We're on a unix platform. Hooray! :) 41258 path="$JT_HOME" 41259 has_space=`$ECHO "$path" | $GREP " "` 41260 if test "x$has_space" != x; then 41261 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41262 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41263 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 41264 fi 41265 41266 # Use eval to expand a potential ~ 41267 eval path="$path" 41268 if test ! -f "$path" && test ! -d "$path"; then 41269 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 41270 fi 41271 41272 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 41273 fi 41274 fi 41275 41276 41277 # jtreg win32 script works for everybody 41278 JTREGEXE="$JT_HOME/bin/jtreg" 41279 41280 if test ! -f "$JTREGEXE"; then 41281 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 41282 fi 41283 41284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41285 $as_echo "$JTREGEXE" >&6; } 41286 else 41287 # try to find jtreg on path 41288 41289 41290 41291 # Publish this variable in the help. 41292 41293 41294 if test "x$JTREGEXE" = x; then 41295 # The variable is not set by user, try to locate tool using the code snippet 41296 for ac_prog in jtreg 41297 do 41298 # Extract the first word of "$ac_prog", so it can be a program name with args. 41299 set dummy $ac_prog; ac_word=$2 41300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41301 $as_echo_n "checking for $ac_word... " >&6; } 41302 if ${ac_cv_path_JTREGEXE+:} false; then : 41303 $as_echo_n "(cached) " >&6 41304 else 41305 case $JTREGEXE in 41306 [\\/]* | ?:[\\/]*) 41307 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41308 ;; 41309 *) 41310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41311 for as_dir in $PATH 41312 do 41313 IFS=$as_save_IFS 41314 test -z "$as_dir" && as_dir=. 41315 for ac_exec_ext in '' $ac_executable_extensions; do 41316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41317 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41319 break 2 41320 fi 41321 done 41322 done 41323 IFS=$as_save_IFS 41324 41325 ;; 41326 esac 41327 fi 41328 JTREGEXE=$ac_cv_path_JTREGEXE 41329 if test -n "$JTREGEXE"; then 41330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41331 $as_echo "$JTREGEXE" >&6; } 41332 else 41333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41334 $as_echo "no" >&6; } 41335 fi 41336 41337 41338 test -n "$JTREGEXE" && break 41339 done 41340 41341 else 41342 # The variable is set, but is it from the command line or the environment? 41343 41344 # Try to remove the string !JTREGEXE! from our list. 41345 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 41346 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41347 # If it failed, the variable was not from the command line. Ignore it, 41348 # but warn the user (except for BASH, which is always set by the calling BASH). 41349 if test "xJTREGEXE" != xBASH; then 41350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 41351 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 41352 fi 41353 # Try to locate tool using the code snippet 41354 for ac_prog in jtreg 41355 do 41356 # Extract the first word of "$ac_prog", so it can be a program name with args. 41357 set dummy $ac_prog; ac_word=$2 41358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41359 $as_echo_n "checking for $ac_word... " >&6; } 41360 if ${ac_cv_path_JTREGEXE+:} false; then : 41361 $as_echo_n "(cached) " >&6 41362 else 41363 case $JTREGEXE in 41364 [\\/]* | ?:[\\/]*) 41365 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41366 ;; 41367 *) 41368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41369 for as_dir in $PATH 41370 do 41371 IFS=$as_save_IFS 41372 test -z "$as_dir" && as_dir=. 41373 for ac_exec_ext in '' $ac_executable_extensions; do 41374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41375 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41377 break 2 41378 fi 41379 done 41380 done 41381 IFS=$as_save_IFS 41382 41383 ;; 41384 esac 41385 fi 41386 JTREGEXE=$ac_cv_path_JTREGEXE 41387 if test -n "$JTREGEXE"; then 41388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41389 $as_echo "$JTREGEXE" >&6; } 41390 else 41391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41392 $as_echo "no" >&6; } 41393 fi 41394 41395 41396 test -n "$JTREGEXE" && break 41397 done 41398 41399 else 41400 # If it succeeded, then it was overridden by the user. We will use it 41401 # for the tool. 41402 41403 # First remove it from the list of overridden variables, so we can test 41404 # for unknown variables in the end. 41405 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41406 41407 # Check if the provided tool contains a complete path. 41408 tool_specified="$JTREGEXE" 41409 tool_basename="${tool_specified##*/}" 41410 if test "x$tool_basename" = "x$tool_specified"; then 41411 # A command without a complete path is provided, search $PATH. 41412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 41413 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 41414 # Extract the first word of "$tool_basename", so it can be a program name with args. 41415 set dummy $tool_basename; ac_word=$2 41416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41417 $as_echo_n "checking for $ac_word... " >&6; } 41418 if ${ac_cv_path_JTREGEXE+:} false; then : 41419 $as_echo_n "(cached) " >&6 41420 else 41421 case $JTREGEXE in 41422 [\\/]* | ?:[\\/]*) 41423 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41424 ;; 41425 *) 41426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41427 for as_dir in $PATH 41428 do 41429 IFS=$as_save_IFS 41430 test -z "$as_dir" && as_dir=. 41431 for ac_exec_ext in '' $ac_executable_extensions; do 41432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41433 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41435 break 2 41436 fi 41437 done 41438 done 41439 IFS=$as_save_IFS 41440 41441 ;; 41442 esac 41443 fi 41444 JTREGEXE=$ac_cv_path_JTREGEXE 41445 if test -n "$JTREGEXE"; then 41446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41447 $as_echo "$JTREGEXE" >&6; } 41448 else 41449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41450 $as_echo "no" >&6; } 41451 fi 41452 41453 41454 if test "x$JTREGEXE" = x; then 41455 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41456 fi 41457 else 41458 # Otherwise we believe it is a complete path. Use it as it is. 41459 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 41460 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 41461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41462 $as_echo_n "checking for JTREGEXE... " >&6; } 41463 if test ! -x "$tool_specified"; then 41464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41465 $as_echo "not found" >&6; } 41466 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 41467 fi 41468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41469 $as_echo "$tool_specified" >&6; } 41470 fi 41471 fi 41472 fi 41473 41474 41475 41476 if test "x$JTREGEXE" = x; then 41477 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 41478 fi 41479 41480 41481 JT_HOME="`$DIRNAME $JTREGEXE`" 41482 fi 41483 fi 41484 41485 41486 41487 41488 41489 41490 # Option used to tell the compiler whether to create 32- or 64-bit executables 41491 if test "x$TOOLCHAIN_TYPE" = xxlc; then 41492 COMPILER_TARGET_BITS_FLAG="-q" 41493 else 41494 COMPILER_TARGET_BITS_FLAG="-m" 41495 fi 41496 41497 41498 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 41499 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41500 ARFLAGS="-r" 41501 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41502 ARFLAGS="-X64" 41503 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 41504 # lib.exe is used as AR to create static libraries. 41505 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 41506 else 41507 ARFLAGS="" 41508 fi 41509 41510 41511 ## Setup strip. 41512 # FIXME: should this really be per platform, or should it be per toolchain type? 41513 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 41514 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 41515 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41516 STRIPFLAGS="-g" 41517 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 41518 STRIPFLAGS="-x" 41519 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41520 STRIPFLAGS="-S" 41521 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41522 STRIPFLAGS="-X32_64" 41523 fi 41524 41525 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41526 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 41527 fi 41528 41529 41530 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41531 # FIXME: break out into MCSFLAGS 41532 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 41533 fi 41534 41535 41536 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41537 CC_OUT_OPTION=-Fo 41538 EXE_OUT_OPTION=-out: 41539 LD_OUT_OPTION=-out: 41540 AR_OUT_OPTION=-out: 41541 else 41542 # The option used to specify the target .o,.a or .so file. 41543 # When compiling, how to specify the to be created object file. 41544 CC_OUT_OPTION='-o$(SPACE)' 41545 # When linking, how to specify the to be created executable. 41546 EXE_OUT_OPTION='-o$(SPACE)' 41547 # When linking, how to specify the to be created dynamically linkable library. 41548 LD_OUT_OPTION='-o$(SPACE)' 41549 # When archiving, how to specify the to be create static archive for object files. 41550 AR_OUT_OPTION='rcs$(SPACE)' 41551 fi 41552 41553 41554 41555 41556 41557 # On Windows, we need to set RC flags. 41558 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41559 RC_FLAGS="-nologo -l0x409" 41560 if test "x$VARIANT" = xOPT; then 41561 RC_FLAGS="$RC_FLAGS -DNDEBUG" 41562 fi 41563 41564 # The version variables used to create RC_FLAGS may be overridden 41565 # in a custom configure script, or possibly the command line. 41566 # Let those variables be expanded at make time in spec.gmk. 41567 # The \$ are escaped to the shell, and the $(...) variables 41568 # are evaluated by make. 41569 RC_FLAGS="$RC_FLAGS \ 41570 -D\"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 41571 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 41572 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 41573 -D\"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 41574 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 41575 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 41576 -D\"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 41577 fi 41578 41579 41580 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41581 # silence copyright notice and other headers. 41582 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 41583 fi 41584 41585 if test "x$SYSROOT" != "x"; then 41586 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41587 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41588 # Solaris Studio does not have a concept of sysroot. Instead we must 41589 # make sure the default include and lib dirs are appended to each 41590 # compile and link command line. 41591 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 41592 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 41593 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 41594 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 41595 fi 41596 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41597 # Apple only wants -isysroot <path>, but we also need -iframework<path>/System/Library/Frameworks 41598 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\" -iframework\"$SYSROOT/System/Library/Frameworks\"" 41599 SYSROOT_LDFLAGS=$SYSROOT_CFLAGS 41600 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41601 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 41602 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 41603 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41604 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 41605 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 41606 fi 41607 # Propagate the sysroot args to hotspot 41608 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 41609 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 41610 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 41611 fi 41612 41613 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 41614 # set this here so it doesn't have to be peppered throughout the forest 41615 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41616 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41617 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41618 fi 41619 41620 41621 41622 41623 41624 # FIXME: Currently we must test this after toolchain but before flags. Fix! 41625 41626 # Now we can test some aspects on the target using configure macros. 41627 41628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41629 $as_echo_n "checking for ANSI C header files... " >&6; } 41630 if ${ac_cv_header_stdc+:} false; then : 41631 $as_echo_n "(cached) " >&6 41632 else 41633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41634 /* end confdefs.h. */ 41635 #include <stdlib.h> 41636 #include <stdarg.h> 41637 #include <string.h> 41638 #include <float.h> 41639 41640 int 41641 main () 41642 { 41643 41644 ; 41645 return 0; 41646 } 41647 _ACEOF 41648 if ac_fn_cxx_try_compile "$LINENO"; then : 41649 ac_cv_header_stdc=yes 41650 else 41651 ac_cv_header_stdc=no 41652 fi 41653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41654 41655 if test $ac_cv_header_stdc = yes; then 41656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41658 /* end confdefs.h. */ 41659 #include <string.h> 41660 41661 _ACEOF 41662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41663 $EGREP "memchr" >/dev/null 2>&1; then : 41664 41665 else 41666 ac_cv_header_stdc=no 41667 fi 41668 rm -f conftest* 41669 41670 fi 41671 41672 if test $ac_cv_header_stdc = yes; then 41673 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41675 /* end confdefs.h. */ 41676 #include <stdlib.h> 41677 41678 _ACEOF 41679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41680 $EGREP "free" >/dev/null 2>&1; then : 41681 41682 else 41683 ac_cv_header_stdc=no 41684 fi 41685 rm -f conftest* 41686 41687 fi 41688 41689 if test $ac_cv_header_stdc = yes; then 41690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41691 if test "$cross_compiling" = yes; then : 41692 : 41693 else 41694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41695 /* end confdefs.h. */ 41696 #include <ctype.h> 41697 #include <stdlib.h> 41698 #if ((' ' & 0x0FF) == 0x020) 41699 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41700 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41701 #else 41702 # define ISLOWER(c) \ 41703 (('a' <= (c) && (c) <= 'i') \ 41704 || ('j' <= (c) && (c) <= 'r') \ 41705 || ('s' <= (c) && (c) <= 'z')) 41706 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41707 #endif 41708 41709 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41710 int 41711 main () 41712 { 41713 int i; 41714 for (i = 0; i < 256; i++) 41715 if (XOR (islower (i), ISLOWER (i)) 41716 || toupper (i) != TOUPPER (i)) 41717 return 2; 41718 return 0; 41719 } 41720 _ACEOF 41721 if ac_fn_cxx_try_run "$LINENO"; then : 41722 41723 else 41724 ac_cv_header_stdc=no 41725 fi 41726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41727 conftest.$ac_objext conftest.beam conftest.$ac_ext 41728 fi 41729 41730 fi 41731 fi 41732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41733 $as_echo "$ac_cv_header_stdc" >&6; } 41734 if test $ac_cv_header_stdc = yes; then 41735 41736 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41737 41738 fi 41739 41740 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41741 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41742 inttypes.h stdint.h unistd.h 41743 do : 41744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41745 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41746 " 41747 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41748 cat >>confdefs.h <<_ACEOF 41749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41750 _ACEOF 41751 41752 fi 41753 41754 done 41755 41756 41757 41758 ############################################################################### 41759 # 41760 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41761 # (The JVM can use 32 or 64 bit Java pointers but that decision 41762 # is made at runtime.) 41763 # 41764 41765 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41766 # Always specify -m flag on Solaris 41767 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41768 41769 # When we add flags to the "official" CFLAGS etc, we need to 41770 # keep track of these additions in ADDED_CFLAGS etc. These 41771 # will later be checked to make sure only controlled additions 41772 # have been made to CFLAGS etc. 41773 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41774 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41775 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41776 41777 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41778 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41779 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41780 41781 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41782 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41783 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41784 41785 elif test "x$COMPILE_TYPE" = xreduced; then 41786 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 41787 # Specify -m if running reduced on unix platforms 41788 41789 # When we add flags to the "official" CFLAGS etc, we need to 41790 # keep track of these additions in ADDED_CFLAGS etc. These 41791 # will later be checked to make sure only controlled additions 41792 # have been made to CFLAGS etc. 41793 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41794 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41795 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41796 41797 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41798 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41799 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41800 41801 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41802 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41803 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41804 41805 fi 41806 fi 41807 41808 # Make compilation sanity check 41809 for ac_header in stdio.h 41810 do : 41811 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41812 if test "x$ac_cv_header_stdio_h" = xyes; then : 41813 cat >>confdefs.h <<_ACEOF 41814 #define HAVE_STDIO_H 1 41815 _ACEOF 41816 41817 else 41818 41819 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41820 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41821 if test "x$COMPILE_TYPE" = xreduced; then 41822 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41823 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41824 elif test "x$COMPILE_TYPE" = xcross; then 41825 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41826 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41827 fi 41828 as_fn_error $? "Cannot continue." "$LINENO" 5 41829 41830 fi 41831 41832 done 41833 41834 41835 # The cast to long int works around a bug in the HP C Compiler 41836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41838 # This bug is HP SR number 8606223364. 41839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41840 $as_echo_n "checking size of int *... " >&6; } 41841 if ${ac_cv_sizeof_int_p+:} false; then : 41842 $as_echo_n "(cached) " >&6 41843 else 41844 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41845 41846 else 41847 if test "$ac_cv_type_int_p" = yes; then 41848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41850 as_fn_error 77 "cannot compute sizeof (int *) 41851 See \`config.log' for more details" "$LINENO" 5; } 41852 else 41853 ac_cv_sizeof_int_p=0 41854 fi 41855 fi 41856 41857 fi 41858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41859 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41860 41861 41862 41863 cat >>confdefs.h <<_ACEOF 41864 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41865 _ACEOF 41866 41867 41868 41869 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41870 if test "x$ac_cv_sizeof_int_p" = x; then 41871 # The test failed, lets stick to the assumed value. 41872 { $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 41873 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41874 else 41875 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41876 41877 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41878 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41879 # Let's try to implicitely set the compilers target architecture and retry the test 41880 { $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 41881 $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;} 41882 { $as_echo "$as_me:${as_lineno-$LINENO}: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 41883 $as_echo "$as_me: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 41884 41885 # When we add flags to the "official" CFLAGS etc, we need to 41886 # keep track of these additions in ADDED_CFLAGS etc. These 41887 # will later be checked to make sure only controlled additions 41888 # have been made to CFLAGS etc. 41889 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41890 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41891 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41892 41893 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41894 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41895 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41896 41897 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41898 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41899 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41900 41901 41902 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41903 unset ac_cv_sizeof_int_p 41904 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41905 cat >>confdefs.h <<_ACEOF 41906 #undef SIZEOF_INT_P 41907 _ACEOF 41908 41909 # The cast to long int works around a bug in the HP C Compiler 41910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41912 # This bug is HP SR number 8606223364. 41913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41914 $as_echo_n "checking size of int *... " >&6; } 41915 if ${ac_cv_sizeof_int_p+:} false; then : 41916 $as_echo_n "(cached) " >&6 41917 else 41918 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41919 41920 else 41921 if test "$ac_cv_type_int_p" = yes; then 41922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41924 as_fn_error 77 "cannot compute sizeof (int *) 41925 See \`config.log' for more details" "$LINENO" 5; } 41926 else 41927 ac_cv_sizeof_int_p=0 41928 fi 41929 fi 41930 41931 fi 41932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41933 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41934 41935 41936 41937 cat >>confdefs.h <<_ACEOF 41938 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41939 _ACEOF 41940 41941 41942 41943 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41944 41945 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41946 as_fn_error $? "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)" "$LINENO" 5 41947 fi 41948 fi 41949 fi 41950 41951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41952 $as_echo_n "checking for target address size... " >&6; } 41953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41954 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41955 41956 41957 ############################################################################### 41958 # 41959 # Is the target little of big endian? 41960 # 41961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41962 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41963 if ${ac_cv_c_bigendian+:} false; then : 41964 $as_echo_n "(cached) " >&6 41965 else 41966 ac_cv_c_bigendian=unknown 41967 # See if we're dealing with a universal compiler. 41968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41969 /* end confdefs.h. */ 41970 #ifndef __APPLE_CC__ 41971 not a universal capable compiler 41972 #endif 41973 typedef int dummy; 41974 41975 _ACEOF 41976 if ac_fn_cxx_try_compile "$LINENO"; then : 41977 41978 # Check for potential -arch flags. It is not universal unless 41979 # there are at least two -arch flags with different values. 41980 ac_arch= 41981 ac_prev= 41982 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41983 if test -n "$ac_prev"; then 41984 case $ac_word in 41985 i?86 | x86_64 | ppc | ppc64) 41986 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41987 ac_arch=$ac_word 41988 else 41989 ac_cv_c_bigendian=universal 41990 break 41991 fi 41992 ;; 41993 esac 41994 ac_prev= 41995 elif test "x$ac_word" = "x-arch"; then 41996 ac_prev=arch 41997 fi 41998 done 41999 fi 42000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42001 if test $ac_cv_c_bigendian = unknown; then 42002 # See if sys/param.h defines the BYTE_ORDER macro. 42003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42004 /* end confdefs.h. */ 42005 #include <sys/types.h> 42006 #include <sys/param.h> 42007 42008 int 42009 main () 42010 { 42011 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 42012 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 42013 && LITTLE_ENDIAN) 42014 bogus endian macros 42015 #endif 42016 42017 ; 42018 return 0; 42019 } 42020 _ACEOF 42021 if ac_fn_cxx_try_compile "$LINENO"; then : 42022 # It does; now see whether it defined to BIG_ENDIAN or not. 42023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42024 /* end confdefs.h. */ 42025 #include <sys/types.h> 42026 #include <sys/param.h> 42027 42028 int 42029 main () 42030 { 42031 #if BYTE_ORDER != BIG_ENDIAN 42032 not big endian 42033 #endif 42034 42035 ; 42036 return 0; 42037 } 42038 _ACEOF 42039 if ac_fn_cxx_try_compile "$LINENO"; then : 42040 ac_cv_c_bigendian=yes 42041 else 42042 ac_cv_c_bigendian=no 42043 fi 42044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42045 fi 42046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42047 fi 42048 if test $ac_cv_c_bigendian = unknown; then 42049 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 42050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42051 /* end confdefs.h. */ 42052 #include <limits.h> 42053 42054 int 42055 main () 42056 { 42057 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 42058 bogus endian macros 42059 #endif 42060 42061 ; 42062 return 0; 42063 } 42064 _ACEOF 42065 if ac_fn_cxx_try_compile "$LINENO"; then : 42066 # It does; now see whether it defined to _BIG_ENDIAN or not. 42067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42068 /* end confdefs.h. */ 42069 #include <limits.h> 42070 42071 int 42072 main () 42073 { 42074 #ifndef _BIG_ENDIAN 42075 not big endian 42076 #endif 42077 42078 ; 42079 return 0; 42080 } 42081 _ACEOF 42082 if ac_fn_cxx_try_compile "$LINENO"; then : 42083 ac_cv_c_bigendian=yes 42084 else 42085 ac_cv_c_bigendian=no 42086 fi 42087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42088 fi 42089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42090 fi 42091 if test $ac_cv_c_bigendian = unknown; then 42092 # Compile a test program. 42093 if test "$cross_compiling" = yes; then : 42094 # Try to guess by grepping values from an object file. 42095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42096 /* end confdefs.h. */ 42097 short int ascii_mm[] = 42098 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 42099 short int ascii_ii[] = 42100 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 42101 int use_ascii (int i) { 42102 return ascii_mm[i] + ascii_ii[i]; 42103 } 42104 short int ebcdic_ii[] = 42105 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 42106 short int ebcdic_mm[] = 42107 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 42108 int use_ebcdic (int i) { 42109 return ebcdic_mm[i] + ebcdic_ii[i]; 42110 } 42111 extern int foo; 42112 42113 int 42114 main () 42115 { 42116 return use_ascii (foo) == use_ebcdic (foo); 42117 ; 42118 return 0; 42119 } 42120 _ACEOF 42121 if ac_fn_cxx_try_compile "$LINENO"; then : 42122 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 42123 ac_cv_c_bigendian=yes 42124 fi 42125 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 42126 if test "$ac_cv_c_bigendian" = unknown; then 42127 ac_cv_c_bigendian=no 42128 else 42129 # finding both strings is unlikely to happen, but who knows? 42130 ac_cv_c_bigendian=unknown 42131 fi 42132 fi 42133 fi 42134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42135 else 42136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42137 /* end confdefs.h. */ 42138 $ac_includes_default 42139 int 42140 main () 42141 { 42142 42143 /* Are we little or big endian? From Harbison&Steele. */ 42144 union 42145 { 42146 long int l; 42147 char c[sizeof (long int)]; 42148 } u; 42149 u.l = 1; 42150 return u.c[sizeof (long int) - 1] == 1; 42151 42152 ; 42153 return 0; 42154 } 42155 _ACEOF 42156 if ac_fn_cxx_try_run "$LINENO"; then : 42157 ac_cv_c_bigendian=no 42158 else 42159 ac_cv_c_bigendian=yes 42160 fi 42161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42162 conftest.$ac_objext conftest.beam conftest.$ac_ext 42163 fi 42164 42165 fi 42166 fi 42167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 42168 $as_echo "$ac_cv_c_bigendian" >&6; } 42169 case $ac_cv_c_bigendian in #( 42170 yes) 42171 ENDIAN="big";; #( 42172 no) 42173 ENDIAN="little" ;; #( 42174 universal) 42175 ENDIAN="universal_endianness" 42176 ;; #( 42177 *) 42178 ENDIAN="unknown" ;; 42179 esac 42180 42181 42182 if test "x$ENDIAN" = xuniversal_endianness; then 42183 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 42184 fi 42185 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 42186 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 42187 fi 42188 42189 42190 # Configure flags for the tools 42191 42192 ############################################################################### 42193 # 42194 # How to compile shared libraries. 42195 # 42196 42197 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42198 PICFLAG="-fPIC" 42199 C_FLAG_REORDER='' 42200 CXX_FLAG_REORDER='' 42201 42202 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42203 # Linking is different on MacOSX 42204 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42205 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42206 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42207 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42208 SET_SHARED_LIBRARY_MAPFILE='' 42209 else 42210 # Default works for linux, might work on other platforms as well. 42211 SHARED_LIBRARY_FLAGS='-shared' 42212 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42213 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42214 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42215 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42216 fi 42217 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42218 PICFLAG='' 42219 C_FLAG_REORDER='' 42220 CXX_FLAG_REORDER='' 42221 42222 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42223 # Linking is different on MacOSX 42224 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42225 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42226 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42227 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42228 SET_SHARED_LIBRARY_MAPFILE='' 42229 else 42230 # Default works for linux, might work on other platforms as well. 42231 SHARED_LIBRARY_FLAGS='-shared' 42232 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42233 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42234 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42235 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42236 fi 42237 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42238 PICFLAG="-KPIC" 42239 C_FLAG_REORDER='-xF' 42240 CXX_FLAG_REORDER='-xF' 42241 SHARED_LIBRARY_FLAGS="-G" 42242 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 42243 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42244 SET_SHARED_LIBRARY_NAME='' 42245 SET_SHARED_LIBRARY_MAPFILE='-M$1' 42246 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42247 PICFLAG="-qpic=large" 42248 C_FLAG_REORDER='' 42249 CXX_FLAG_REORDER='' 42250 SHARED_LIBRARY_FLAGS="-qmkshrobj" 42251 SET_EXECUTABLE_ORIGIN="" 42252 SET_SHARED_LIBRARY_ORIGIN='' 42253 SET_SHARED_LIBRARY_NAME='' 42254 SET_SHARED_LIBRARY_MAPFILE='' 42255 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42256 PICFLAG="" 42257 C_FLAG_REORDER='' 42258 CXX_FLAG_REORDER='' 42259 SHARED_LIBRARY_FLAGS="-LD" 42260 SET_EXECUTABLE_ORIGIN='' 42261 SET_SHARED_LIBRARY_ORIGIN='' 42262 SET_SHARED_LIBRARY_NAME='' 42263 SET_SHARED_LIBRARY_MAPFILE='' 42264 fi 42265 42266 42267 42268 42269 42270 42271 42272 42273 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42274 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 42275 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 42276 CFLAGS_JDKLIB_EXTRA='-xstrconst' 42277 fi 42278 # The (cross) compiler is now configured, we can now test capabilities 42279 # of the target platform. 42280 42281 42282 42283 ############################################################################### 42284 # 42285 # Setup the opt flags for different compilers 42286 # and different operating systems. 42287 # 42288 42289 # FIXME: this was indirectly the old default, but just inherited. 42290 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42291 # C_FLAG_DEPS="-MMD -MF" 42292 # fi 42293 42294 # Generate make dependency files 42295 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42296 C_FLAG_DEPS="-MMD -MF" 42297 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42298 C_FLAG_DEPS="-MMD -MF" 42299 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42300 C_FLAG_DEPS="-xMMD -xMF" 42301 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42302 C_FLAG_DEPS="-qmakedep=gcc -MF" 42303 fi 42304 CXX_FLAG_DEPS="$C_FLAG_DEPS" 42305 42306 42307 42308 # Debug symbols 42309 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42310 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 42311 # reduce from default "-g2" option to save space 42312 CFLAGS_DEBUG_SYMBOLS="-g1" 42313 CXXFLAGS_DEBUG_SYMBOLS="-g1" 42314 else 42315 CFLAGS_DEBUG_SYMBOLS="-g" 42316 CXXFLAGS_DEBUG_SYMBOLS="-g" 42317 fi 42318 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42319 CFLAGS_DEBUG_SYMBOLS="-g" 42320 CXXFLAGS_DEBUG_SYMBOLS="-g" 42321 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42322 CFLAGS_DEBUG_SYMBOLS="-g -xs" 42323 # FIXME: likely a bug, this disables debug symbols rather than enables them 42324 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 42325 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42326 CFLAGS_DEBUG_SYMBOLS="-g" 42327 CXXFLAGS_DEBUG_SYMBOLS="-g" 42328 fi 42329 42330 42331 42332 # bounds, memory and behavior checking options 42333 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42334 case $DEBUG_LEVEL in 42335 release ) 42336 # no adjustment 42337 ;; 42338 fastdebug ) 42339 # no adjustment 42340 ;; 42341 slowdebug ) 42342 # Add runtime stack smashing and undefined behavior checks 42343 CFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42344 CXXFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42345 ;; 42346 esac 42347 fi 42348 42349 42350 42351 # Optimization levels 42352 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42353 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 42354 42355 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 42356 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 42357 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 42358 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 42359 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 42360 C_O_FLAG_DEBUG="-xregs=no%frameptr" 42361 C_O_FLAG_NONE="-xregs=no%frameptr" 42362 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 42363 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 42364 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 42365 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 42366 CXX_O_FLAG_NONE="-xregs=no%frameptr" 42367 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42368 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 42369 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 42370 fi 42371 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42372 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 42373 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42374 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42375 C_O_FLAG_DEBUG="" 42376 C_O_FLAG_NONE="" 42377 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 42378 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42379 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42380 C_O_FLAG_DEBUG="" 42381 CXX_O_FLAG_NONE="" 42382 fi 42383 else 42384 # The remaining toolchains share opt flags between CC and CXX; 42385 # setup for C and duplicate afterwards. 42386 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42387 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42388 # On MacOSX we optimize for size, something 42389 # we should do for all platforms? 42390 C_O_FLAG_HIGHEST="-Os" 42391 C_O_FLAG_HI="-Os" 42392 C_O_FLAG_NORM="-Os" 42393 else 42394 C_O_FLAG_HIGHEST="-O3" 42395 C_O_FLAG_HI="-O3" 42396 C_O_FLAG_NORM="-O2" 42397 fi 42398 C_O_FLAG_DEBUG="-O0" 42399 C_O_FLAG_NONE="-O0" 42400 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42401 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42402 # On MacOSX we optimize for size, something 42403 # we should do for all platforms? 42404 C_O_FLAG_HIGHEST="-Os" 42405 C_O_FLAG_HI="-Os" 42406 C_O_FLAG_NORM="-Os" 42407 else 42408 C_O_FLAG_HIGHEST="-O3" 42409 C_O_FLAG_HI="-O3" 42410 C_O_FLAG_NORM="-O2" 42411 fi 42412 C_O_FLAG_DEBUG="-O0" 42413 C_O_FLAG_NONE="-O0" 42414 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42415 C_O_FLAG_HIGHEST="-O3" 42416 C_O_FLAG_HI="-O3 -qstrict" 42417 C_O_FLAG_NORM="-O2" 42418 C_O_FLAG_DEBUG="-qnoopt" 42419 C_O_FLAG_NONE="-qnoop" 42420 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42421 C_O_FLAG_HIGHEST="-O2" 42422 C_O_FLAG_HI="-O1" 42423 C_O_FLAG_NORM="-O1" 42424 C_O_FLAG_DEBUG="-Od" 42425 C_O_FLAG_NONE="-Od" 42426 fi 42427 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 42428 CXX_O_FLAG_HI="$C_O_FLAG_HI" 42429 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 42430 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 42431 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 42432 fi 42433 42434 # Adjust optimization flags according to debug level. 42435 case $DEBUG_LEVEL in 42436 release ) 42437 # no adjustment 42438 ;; 42439 fastdebug ) 42440 # Not quite so much optimization 42441 C_O_FLAG_HI="$C_O_FLAG_NORM" 42442 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42443 ;; 42444 slowdebug ) 42445 # Disable optimization 42446 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 42447 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 42448 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 42449 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 42450 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 42451 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 42452 ;; 42453 esac 42454 42455 42456 42457 42458 42459 42460 42461 42462 42463 42464 42465 42466 42467 # Special extras... 42468 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42469 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42470 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42471 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42472 fi 42473 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 42474 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 42475 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42476 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 42477 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 42478 fi 42479 42480 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 42481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 42482 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 42483 fi 42484 42485 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 42486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 42487 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 42488 fi 42489 42490 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 42491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 42492 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 42493 fi 42494 42495 42496 # Check whether --with-extra-cflags was given. 42497 if test "${with_extra_cflags+set}" = set; then : 42498 withval=$with_extra_cflags; 42499 fi 42500 42501 42502 42503 # Check whether --with-extra-cxxflags was given. 42504 if test "${with_extra_cxxflags+set}" = set; then : 42505 withval=$with_extra_cxxflags; 42506 fi 42507 42508 42509 42510 # Check whether --with-extra-ldflags was given. 42511 if test "${with_extra_ldflags+set}" = set; then : 42512 withval=$with_extra_ldflags; 42513 fi 42514 42515 42516 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 42517 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 42518 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 42519 42520 # Hotspot needs these set in their legacy form 42521 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 42522 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 42523 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 42524 42525 42526 42527 42528 42529 ############################################################################### 42530 # 42531 # Now setup the CFLAGS and LDFLAGS for the JDK build. 42532 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 42533 # 42534 42535 # Setup compiler/platform specific flags into 42536 # CFLAGS_JDK - C Compiler flags 42537 # CXXFLAGS_JDK - C++ Compiler flags 42538 # COMMON_CCXXFLAGS_JDK - common to C and C++ 42539 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42540 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 42541 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 42542 case $OPENJDK_TARGET_CPU_ARCH in 42543 arm ) 42544 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42545 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42546 ;; 42547 ppc ) 42548 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42549 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42550 ;; 42551 * ) 42552 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 42553 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42554 ;; 42555 esac 42556 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42557 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 42558 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 42559 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42560 fi 42561 42562 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42563 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42564 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42565 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42566 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42567 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42568 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 42569 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42570 -DWIN32_LEAN_AND_MEAN \ 42571 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42572 -DWIN32 -DIAL" 42573 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42574 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42575 else 42576 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 42577 fi 42578 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 42579 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 42580 # studio. 42581 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 42582 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42583 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 42584 fi 42585 fi 42586 42587 ############################################################################### 42588 42589 # Adjust flags according to debug level. 42590 case $DEBUG_LEVEL in 42591 fastdebug | slowdebug ) 42592 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 42593 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 42594 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42595 ;; 42596 release ) 42597 ;; 42598 * ) 42599 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42600 ;; 42601 esac 42602 42603 # Setup LP64 42604 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 42605 42606 # Set some common defines. These works for all compilers, but assume 42607 # -D is universally accepted. 42608 42609 # Setup endianness 42610 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42611 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42612 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42613 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42614 # Note: -Dmacro is the same as #define macro 1 42615 # -Dmacro= is the same as #define macro 42616 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42617 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42618 else 42619 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42620 fi 42621 else 42622 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42623 # are defined in the system? 42624 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42625 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42626 else 42627 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 42628 fi 42629 fi 42630 42631 # Setup target OS define. Use OS target name but in upper case. 42632 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42633 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42634 42635 # Setup target CPU 42636 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42637 42638 # Setup debug/release defines 42639 if test "x$DEBUG_LEVEL" = xrelease; then 42640 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 42641 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42642 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 42643 fi 42644 else 42645 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 42646 fi 42647 42648 # Setup release name 42649 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42650 42651 42652 # Set some additional per-OS defines. 42653 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42654 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42655 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42656 # FIXME: PPC64 should not be here. 42657 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 42658 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42659 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42660 fi 42661 42662 # Additional macosx handling 42663 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42664 # Setting these parameters makes it an error to link to macosx APIs that are 42665 # newer than the given OS version and makes the linked binaries compatible 42666 # even if built on a newer version of the OS. 42667 # The expected format is X.Y.Z 42668 MACOSX_VERSION_MIN=10.7.0 42669 42670 42671 # The macro takes the version with no dots, ex: 1070 42672 # Let the flags variables get resolved in make for easier override on make 42673 # command line. 42674 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42675 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42676 fi 42677 42678 # Setup some hard coded includes 42679 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42680 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 42681 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 42682 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include" 42683 42684 # The shared libraries are compiled using the picflag. 42685 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42686 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 42687 42688 # Executable flags 42689 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42690 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42691 42692 42693 42694 42695 42696 42697 # Flags for compiling test libraries 42698 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42699 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 42700 42701 # Flags for compiling test executables 42702 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42703 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42704 42705 42706 42707 42708 42709 42710 # Setup LDFLAGS et al. 42711 # 42712 42713 # Now this is odd. The JDK native libraries have to link against libjvm.so 42714 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42715 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42716 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42717 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42718 # libraries will link to whatever is in memory. Yuck. 42719 # 42720 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42721 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42722 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42723 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42724 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42725 fi 42726 # TODO: make -debug optional "--disable-full-debug-symbols" 42727 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42728 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 42729 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42730 # We have previously set HAS_GNU_HASH if this is the case 42731 if test -n "$HAS_GNU_HASH"; then 42732 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both" 42733 fi 42734 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42735 # And since we now know that the linker is gnu, then add -z defs, to forbid 42736 # undefined symbols in object files. 42737 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 42738 case $DEBUG_LEVEL in 42739 release ) 42740 # tell linker to optimize libraries. 42741 # Should this be supplied to the OSS linker as well? 42742 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42743 ;; 42744 slowdebug ) 42745 if test "x$HAS_LINKER_NOW" = "xtrue"; then 42746 # do relocations at load 42747 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 42748 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 42749 fi 42750 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42751 # mark relocations read only 42752 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42753 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42754 fi 42755 ;; 42756 fastdebug ) 42757 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42758 # mark relocations read only 42759 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42760 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42761 fi 42762 ;; 42763 * ) 42764 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42765 ;; 42766 esac 42767 fi 42768 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42769 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42770 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42771 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42772 LDFLAGS_JDK="${LDFLAGS_JDK} -brtl -bnolibpath -liconv -bexpall -bernotok" 42773 fi 42774 42775 # Customize LDFLAGS for executables 42776 42777 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42778 42779 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42780 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42781 LDFLAGS_STACK_SIZE=1048576 42782 else 42783 LDFLAGS_STACK_SIZE=327680 42784 fi 42785 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 42786 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 42787 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42788 fi 42789 42790 # Customize LDFLAGS for libs 42791 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 42792 42793 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42794 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -dll -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 42795 LDFLAGS_JDKLIB_SUFFIX="" 42796 else 42797 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS} \ 42798 -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}" 42799 42800 # On some platforms (mac) the linker warns about non existing -L dirs. 42801 # Add server first if available. Linking aginst client does not always produce the same results. 42802 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42803 # Default to server for other variants. 42804 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42805 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42806 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42807 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/client" 42808 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42809 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42810 else 42811 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42812 fi 42813 42814 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42815 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42816 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42817 fi 42818 fi 42819 42820 42821 42822 42823 42824 42825 42826 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 42827 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE" 42828 LDFLAGS_TESTLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX" 42829 LDFLAGS_TESTEXE_SUFFIX="$LDFLAGS_JDKEXE_SUFFIX" 42830 42831 42832 42833 42834 42835 42836 42837 # Some Zero and Shark settings. 42838 # ZERO_ARCHFLAG tells the compiler which mode to build for 42839 case "${OPENJDK_TARGET_CPU}" in 42840 s390) 42841 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42842 ;; 42843 *) 42844 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42845 esac 42846 42847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 42848 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42849 supports=yes 42850 42851 saved_cflags="$CFLAGS" 42852 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42853 ac_ext=c 42854 ac_cpp='$CPP $CPPFLAGS' 42855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42857 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42858 42859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42860 /* end confdefs.h. */ 42861 int i; 42862 _ACEOF 42863 if ac_fn_c_try_compile "$LINENO"; then : 42864 42865 else 42866 supports=no 42867 fi 42868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42869 ac_ext=cpp 42870 ac_cpp='$CXXCPP $CPPFLAGS' 42871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42874 42875 CFLAGS="$saved_cflags" 42876 42877 saved_cxxflags="$CXXFLAGS" 42878 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42879 ac_ext=cpp 42880 ac_cpp='$CXXCPP $CPPFLAGS' 42881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42884 42885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42886 /* end confdefs.h. */ 42887 int i; 42888 _ACEOF 42889 if ac_fn_cxx_try_compile "$LINENO"; then : 42890 42891 else 42892 supports=no 42893 fi 42894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42895 ac_ext=cpp 42896 ac_cpp='$CXXCPP $CPPFLAGS' 42897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42900 42901 CXXFLAGS="$saved_cxxflags" 42902 42903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42904 $as_echo "$supports" >&6; } 42905 if test "x$supports" = "xyes" ; then 42906 : 42907 else 42908 ZERO_ARCHFLAG="" 42909 fi 42910 42911 42912 42913 # Check that the compiler supports -mX (or -qX on AIX) flags 42914 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42915 42916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42917 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42918 supports=yes 42919 42920 saved_cflags="$CFLAGS" 42921 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42922 ac_ext=c 42923 ac_cpp='$CPP $CPPFLAGS' 42924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42926 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42927 42928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42929 /* end confdefs.h. */ 42930 int i; 42931 _ACEOF 42932 if ac_fn_c_try_compile "$LINENO"; then : 42933 42934 else 42935 supports=no 42936 fi 42937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42938 ac_ext=cpp 42939 ac_cpp='$CXXCPP $CPPFLAGS' 42940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42943 42944 CFLAGS="$saved_cflags" 42945 42946 saved_cxxflags="$CXXFLAGS" 42947 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42948 ac_ext=cpp 42949 ac_cpp='$CXXCPP $CPPFLAGS' 42950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42953 42954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42955 /* end confdefs.h. */ 42956 int i; 42957 _ACEOF 42958 if ac_fn_cxx_try_compile "$LINENO"; then : 42959 42960 else 42961 supports=no 42962 fi 42963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42964 ac_ext=cpp 42965 ac_cpp='$CXXCPP $CPPFLAGS' 42966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42969 42970 CXXFLAGS="$saved_cxxflags" 42971 42972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42973 $as_echo "$supports" >&6; } 42974 if test "x$supports" = "xyes" ; then 42975 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 42976 else 42977 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 42978 fi 42979 42980 42981 42982 # Check whether --enable-warnings-as-errors was given. 42983 if test "${enable_warnings_as_errors+set}" = set; then : 42984 enableval=$enable_warnings_as_errors; 42985 fi 42986 42987 42988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 42989 $as_echo_n "checking if native warnings are errors... " >&6; } 42990 if test "x$enable_warnings_as_errors" = "xyes"; then 42991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitely set)" >&5 42992 $as_echo "yes (explicitely set)" >&6; } 42993 WARNINGS_AS_ERRORS=true 42994 elif test "x$enable_warnings_as_errors" = "xno"; then 42995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42996 $as_echo "no" >&6; } 42997 WARNINGS_AS_ERRORS=false 42998 elif test "x$enable_warnings_as_errors" = "x"; then 42999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 43000 $as_echo "yes (default)" >&6; } 43001 WARNINGS_AS_ERRORS=true 43002 else 43003 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 43004 fi 43005 43006 43007 case "${TOOLCHAIN_TYPE}" in 43008 microsoft) 43009 DISABLE_WARNING_PREFIX="-wd" 43010 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 43011 ;; 43012 solstudio) 43013 DISABLE_WARNING_PREFIX="-erroff=" 43014 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 43015 ;; 43016 gcc) 43017 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 43018 43019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 43020 $as_echo_n "checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 43021 supports=yes 43022 43023 saved_cflags="$CFLAGS" 43024 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 43025 ac_ext=c 43026 ac_cpp='$CPP $CPPFLAGS' 43027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43029 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43030 43031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43032 /* end confdefs.h. */ 43033 int i; 43034 _ACEOF 43035 if ac_fn_c_try_compile "$LINENO"; then : 43036 43037 else 43038 supports=no 43039 fi 43040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43041 ac_ext=cpp 43042 ac_cpp='$CXXCPP $CPPFLAGS' 43043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43046 43047 CFLAGS="$saved_cflags" 43048 43049 saved_cxxflags="$CXXFLAGS" 43050 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 43051 ac_ext=cpp 43052 ac_cpp='$CXXCPP $CPPFLAGS' 43053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43056 43057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43058 /* end confdefs.h. */ 43059 int i; 43060 _ACEOF 43061 if ac_fn_cxx_try_compile "$LINENO"; then : 43062 43063 else 43064 supports=no 43065 fi 43066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43067 ac_ext=cpp 43068 ac_cpp='$CXXCPP $CPPFLAGS' 43069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43072 43073 CXXFLAGS="$saved_cxxflags" 43074 43075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 43076 $as_echo "$supports" >&6; } 43077 if test "x$supports" = "xyes" ; then 43078 GCC_CAN_DISABLE_WARNINGS=true 43079 else 43080 GCC_CAN_DISABLE_WARNINGS=false 43081 43082 fi 43083 43084 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 43085 DISABLE_WARNING_PREFIX="-Wno-" 43086 else 43087 DISABLE_WARNING_PREFIX= 43088 fi 43089 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43090 ;; 43091 clang) 43092 DISABLE_WARNING_PREFIX="-Wno-" 43093 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43094 ;; 43095 esac 43096 43097 43098 43099 43100 # Setup debug symbols (need objcopy from the toolchain for that) 43101 43102 # 43103 # ENABLE_DEBUG_SYMBOLS 43104 # This must be done after the toolchain is setup, since we're looking at objcopy. 43105 # 43106 # Check whether --enable-debug-symbols was given. 43107 if test "${enable_debug_symbols+set}" = set; then : 43108 enableval=$enable_debug_symbols; 43109 fi 43110 43111 43112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 43113 $as_echo_n "checking if we should generate debug symbols... " >&6; } 43114 43115 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 43116 # explicit enabling of enable-debug-symbols and can't find objcopy 43117 # this is an error 43118 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 43119 fi 43120 43121 if test "x$enable_debug_symbols" = "xyes"; then 43122 ENABLE_DEBUG_SYMBOLS=true 43123 elif test "x$enable_debug_symbols" = "xno"; then 43124 ENABLE_DEBUG_SYMBOLS=false 43125 else 43126 # Default is on if objcopy is found 43127 if test "x$OBJCOPY" != x; then 43128 ENABLE_DEBUG_SYMBOLS=true 43129 # MacOS X and Windows don't use objcopy but default is on for those OSes 43130 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 43131 ENABLE_DEBUG_SYMBOLS=true 43132 else 43133 ENABLE_DEBUG_SYMBOLS=false 43134 fi 43135 fi 43136 43137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 43138 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 43139 43140 # 43141 # ZIP_DEBUGINFO_FILES 43142 # 43143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 43144 $as_echo_n "checking if we should zip debug-info files... " >&6; } 43145 # Check whether --enable-zip-debug-info was given. 43146 if test "${enable_zip_debug_info+set}" = set; then : 43147 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 43148 else 43149 enable_zip_debug_info="yes" 43150 fi 43151 43152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 43153 $as_echo "${enable_zip_debug_info}" >&6; } 43154 43155 if test "x${enable_zip_debug_info}" = "xno"; then 43156 ZIP_DEBUGINFO_FILES=false 43157 else 43158 ZIP_DEBUGINFO_FILES=true 43159 fi 43160 43161 43162 43163 43164 43165 # Check whether --enable-native-coverage was given. 43166 if test "${enable_native_coverage+set}" = set; then : 43167 enableval=$enable_native_coverage; 43168 fi 43169 43170 GCOV_ENABLED="false" 43171 if test "x$enable_native_coverage" = "xyes"; then 43172 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 43173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 43174 $as_echo_n "checking if native coverage is enabled... " >&6; } 43175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43176 $as_echo "yes" >&6; } 43177 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 43178 GCOV_LDFLAGS="-fprofile-arcs" 43179 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 43180 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 43181 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 43182 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 43183 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 43184 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 43185 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 43186 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 43187 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 43188 GCOV_ENABLED="true" 43189 else 43190 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 43191 fi 43192 elif test "x$enable_native_coverage" = "xno"; then 43193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 43194 $as_echo_n "checking if native coverage is enabled... " >&6; } 43195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43196 $as_echo "no" >&6; } 43197 elif test "x$enable_native_coverage" != "x"; then 43198 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 43199 fi 43200 43201 43202 43203 43204 ############################################################################### 43205 # 43206 # Check dependencies for external and internal libraries. 43207 # 43208 ############################################################################### 43209 43210 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 43211 43212 # When using cygwin or msys, we need a wrapper binary that renames 43213 # /cygdrive/c/ arguments into c:/ arguments and peeks into 43214 # @files and rewrites these too! This wrapper binary is 43215 # called fixpath. 43216 FIXPATH= 43217 if test "x$OPENJDK_BUILD_OS" = xwindows; then 43218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 43219 $as_echo_n "checking if fixpath can be created... " >&6; } 43220 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 43221 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 43222 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 43223 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 43224 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 43225 FIXPATH="$FIXPATH_BIN -c" 43226 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 43227 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 43228 # @ was chosen as separator to minimize risk of other tools messing around with it 43229 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 43230 | tr ' ' '\n' | grep '^/./' | sort | uniq` 43231 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 43232 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 43233 fi 43234 FIXPATH_SRC_W="$FIXPATH_SRC" 43235 FIXPATH_BIN_W="$FIXPATH_BIN" 43236 43237 unix_path="$FIXPATH_SRC_W" 43238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43239 windows_path=`$CYGPATH -m "$unix_path"` 43240 FIXPATH_SRC_W="$windows_path" 43241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43242 windows_path=`cmd //c echo $unix_path` 43243 FIXPATH_SRC_W="$windows_path" 43244 fi 43245 43246 43247 unix_path="$FIXPATH_BIN_W" 43248 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43249 windows_path=`$CYGPATH -m "$unix_path"` 43250 FIXPATH_BIN_W="$windows_path" 43251 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43252 windows_path=`cmd //c echo $unix_path` 43253 FIXPATH_BIN_W="$windows_path" 43254 fi 43255 43256 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 43257 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 43258 cd $FIXPATH_DIR 43259 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 43260 cd $CURDIR 43261 43262 if test ! -x $FIXPATH_BIN; then 43263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43264 $as_echo "no" >&6; } 43265 cat $FIXPATH_DIR/fixpath1.log 43266 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 43267 fi 43268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43269 $as_echo "yes" >&6; } 43270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 43271 $as_echo_n "checking if fixpath.exe works... " >&6; } 43272 cd $FIXPATH_DIR 43273 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 43274 > $FIXPATH_DIR/fixpath2.log 2>&1 43275 cd $CURDIR 43276 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 43277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43278 $as_echo "no" >&6; } 43279 cat $FIXPATH_DIR/fixpath2.log 43280 as_fn_error $? "fixpath did not work!" "$LINENO" 5 43281 fi 43282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43283 $as_echo "yes" >&6; } 43284 fi 43285 43286 43287 43288 43289 43290 43291 ############################################################################### 43292 # 43293 # OS specific settings that we never will need to probe. 43294 # 43295 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 43297 $as_echo_n "checking what is not needed on Linux?... " >&6; } 43298 PULSE_NOT_NEEDED=yes 43299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 43300 $as_echo "pulse" >&6; } 43301 fi 43302 43303 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 43305 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 43306 ALSA_NOT_NEEDED=yes 43307 PULSE_NOT_NEEDED=yes 43308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43309 $as_echo "alsa pulse" >&6; } 43310 fi 43311 43312 if test "x$OPENJDK_TARGET_OS" = xaix; then 43313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 43314 $as_echo_n "checking what is not needed on AIX?... " >&6; } 43315 ALSA_NOT_NEEDED=yes 43316 PULSE_NOT_NEEDED=yes 43317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43318 $as_echo "alsa pulse" >&6; } 43319 fi 43320 43321 43322 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 43324 $as_echo_n "checking what is not needed on Windows?... " >&6; } 43325 CUPS_NOT_NEEDED=yes 43326 ALSA_NOT_NEEDED=yes 43327 PULSE_NOT_NEEDED=yes 43328 X11_NOT_NEEDED=yes 43329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 43330 $as_echo "alsa cups pulse x11" >&6; } 43331 fi 43332 43333 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 43335 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 43336 ALSA_NOT_NEEDED=yes 43337 PULSE_NOT_NEEDED=yes 43338 X11_NOT_NEEDED=yes 43339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 43340 $as_echo "alsa pulse x11" >&6; } 43341 fi 43342 43343 if test "x$OPENJDK_TARGET_OS" = xbsd; then 43344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 43345 $as_echo_n "checking what is not needed on bsd?... " >&6; } 43346 ALSA_NOT_NEEDED=yes 43347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 43348 $as_echo "alsa" >&6; } 43349 fi 43350 43351 if test "x$OPENJDK" = "xfalse"; then 43352 FREETYPE_NOT_NEEDED=yes 43353 fi 43354 43355 if test "x$SUPPORT_HEADFUL" = xno; then 43356 X11_NOT_NEEDED=yes 43357 fi 43358 43359 43360 43361 ############################################################################### 43362 # 43363 # Check for X Windows 43364 # 43365 43366 if test "x$X11_NOT_NEEDED" = xyes; then 43367 if test "x${with_x}" != x; then 43368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 43369 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 43370 fi 43371 X_CFLAGS= 43372 X_LIBS= 43373 else 43374 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 43375 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 43376 # --x-libraries for the sysroot, if that seems to be correct. 43377 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 43378 if test "x$SYSROOT" != "x"; then 43379 if test "x$x_includes" = xNONE; then 43380 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 43381 x_includes="$SYSROOT/usr/X11R6/include" 43382 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 43383 x_includes="$SYSROOT/usr/include" 43384 fi 43385 fi 43386 if test "x$x_libraries" = xNONE; then 43387 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 43388 x_libraries="$SYSROOT/usr/X11R6/lib" 43389 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43390 x_libraries="$SYSROOT/usr/lib64" 43391 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 43392 x_libraries="$SYSROOT/usr/lib" 43393 fi 43394 fi 43395 fi 43396 fi 43397 43398 # Now let autoconf do it's magic 43399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 43400 $as_echo_n "checking for X... " >&6; } 43401 43402 43403 # Check whether --with-x was given. 43404 if test "${with_x+set}" = set; then : 43405 withval=$with_x; 43406 fi 43407 43408 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 43409 if test "x$with_x" = xno; then 43410 # The user explicitly disabled X. 43411 have_x=disabled 43412 else 43413 case $x_includes,$x_libraries in #( 43414 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 43415 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 43416 $as_echo_n "(cached) " >&6 43417 else 43418 # One or both of the vars are not set, and there is no cached value. 43419 ac_x_includes=no ac_x_libraries=no 43420 rm -f -r conftest.dir 43421 if mkdir conftest.dir; then 43422 cd conftest.dir 43423 cat >Imakefile <<'_ACEOF' 43424 incroot: 43425 @echo incroot='${INCROOT}' 43426 usrlibdir: 43427 @echo usrlibdir='${USRLIBDIR}' 43428 libdir: 43429 @echo libdir='${LIBDIR}' 43430 _ACEOF 43431 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 43432 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 43433 for ac_var in incroot usrlibdir libdir; do 43434 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 43435 done 43436 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 43437 for ac_extension in a so sl dylib la dll; do 43438 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 43439 test -f "$ac_im_libdir/libX11.$ac_extension"; then 43440 ac_im_usrlibdir=$ac_im_libdir; break 43441 fi 43442 done 43443 # Screen out bogus values from the imake configuration. They are 43444 # bogus both because they are the default anyway, and because 43445 # using them would break gcc on systems where it needs fixed includes. 43446 case $ac_im_incroot in 43447 /usr/include) ac_x_includes= ;; 43448 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 43449 esac 43450 case $ac_im_usrlibdir in 43451 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 43452 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 43453 esac 43454 fi 43455 cd .. 43456 rm -f -r conftest.dir 43457 fi 43458 43459 # Standard set of common directories for X headers. 43460 # Check X11 before X11Rn because it is often a symlink to the current release. 43461 ac_x_header_dirs=' 43462 /usr/X11/include 43463 /usr/X11R7/include 43464 /usr/X11R6/include 43465 /usr/X11R5/include 43466 /usr/X11R4/include 43467 43468 /usr/include/X11 43469 /usr/include/X11R7 43470 /usr/include/X11R6 43471 /usr/include/X11R5 43472 /usr/include/X11R4 43473 43474 /usr/local/X11/include 43475 /usr/local/X11R7/include 43476 /usr/local/X11R6/include 43477 /usr/local/X11R5/include 43478 /usr/local/X11R4/include 43479 43480 /usr/local/include/X11 43481 /usr/local/include/X11R7 43482 /usr/local/include/X11R6 43483 /usr/local/include/X11R5 43484 /usr/local/include/X11R4 43485 43486 /usr/X386/include 43487 /usr/x386/include 43488 /usr/XFree86/include/X11 43489 43490 /usr/include 43491 /usr/local/include 43492 /usr/unsupported/include 43493 /usr/athena/include 43494 /usr/local/x11r5/include 43495 /usr/lpp/Xamples/include 43496 43497 /usr/openwin/include 43498 /usr/openwin/share/include' 43499 43500 if test "$ac_x_includes" = no; then 43501 # Guess where to find include files, by looking for Xlib.h. 43502 # First, try using that file with no special directory specified. 43503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43504 /* end confdefs.h. */ 43505 #include <X11/Xlib.h> 43506 _ACEOF 43507 if ac_fn_cxx_try_cpp "$LINENO"; then : 43508 # We can compile using X headers with no special include directory. 43509 ac_x_includes= 43510 else 43511 for ac_dir in $ac_x_header_dirs; do 43512 if test -r "$ac_dir/X11/Xlib.h"; then 43513 ac_x_includes=$ac_dir 43514 break 43515 fi 43516 done 43517 fi 43518 rm -f conftest.err conftest.i conftest.$ac_ext 43519 fi # $ac_x_includes = no 43520 43521 if test "$ac_x_libraries" = no; then 43522 # Check for the libraries. 43523 # See if we find them without any special options. 43524 # Don't add to $LIBS permanently. 43525 ac_save_LIBS=$LIBS 43526 LIBS="-lX11 $LIBS" 43527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43528 /* end confdefs.h. */ 43529 #include <X11/Xlib.h> 43530 int 43531 main () 43532 { 43533 XrmInitialize () 43534 ; 43535 return 0; 43536 } 43537 _ACEOF 43538 if ac_fn_cxx_try_link "$LINENO"; then : 43539 LIBS=$ac_save_LIBS 43540 # We can link X programs with no special library path. 43541 ac_x_libraries= 43542 else 43543 LIBS=$ac_save_LIBS 43544 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 43545 do 43546 # Don't even attempt the hair of trying to link an X program! 43547 for ac_extension in a so sl dylib la dll; do 43548 if test -r "$ac_dir/libX11.$ac_extension"; then 43549 ac_x_libraries=$ac_dir 43550 break 2 43551 fi 43552 done 43553 done 43554 fi 43555 rm -f core conftest.err conftest.$ac_objext \ 43556 conftest$ac_exeext conftest.$ac_ext 43557 fi # $ac_x_libraries = no 43558 43559 case $ac_x_includes,$ac_x_libraries in #( 43560 no,* | *,no | *\'*) 43561 # Didn't find X, or a directory has "'" in its name. 43562 ac_cv_have_x="have_x=no";; #( 43563 *) 43564 # Record where we found X for the cache. 43565 ac_cv_have_x="have_x=yes\ 43566 ac_x_includes='$ac_x_includes'\ 43567 ac_x_libraries='$ac_x_libraries'" 43568 esac 43569 fi 43570 ;; #( 43571 *) have_x=yes;; 43572 esac 43573 eval "$ac_cv_have_x" 43574 fi # $with_x != no 43575 43576 if test "$have_x" != yes; then 43577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 43578 $as_echo "$have_x" >&6; } 43579 no_x=yes 43580 else 43581 # If each of the values was on the command line, it overrides each guess. 43582 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 43583 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 43584 # Update the cache value to reflect the command line values. 43585 ac_cv_have_x="have_x=yes\ 43586 ac_x_includes='$x_includes'\ 43587 ac_x_libraries='$x_libraries'" 43588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 43589 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 43590 fi 43591 43592 if test "$no_x" = yes; then 43593 # Not all programs may use this symbol, but it does not hurt to define it. 43594 43595 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 43596 43597 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 43598 else 43599 if test -n "$x_includes"; then 43600 X_CFLAGS="$X_CFLAGS -I$x_includes" 43601 fi 43602 43603 # It would also be nice to do this for all -L options, not just this one. 43604 if test -n "$x_libraries"; then 43605 X_LIBS="$X_LIBS -L$x_libraries" 43606 # For Solaris; some versions of Sun CC require a space after -R and 43607 # others require no space. Words are not sufficient . . . . 43608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 43609 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43610 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43611 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43612 ac_cxx_werror_flag=yes 43613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43614 /* end confdefs.h. */ 43615 43616 int 43617 main () 43618 { 43619 43620 ; 43621 return 0; 43622 } 43623 _ACEOF 43624 if ac_fn_cxx_try_link "$LINENO"; then : 43625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43626 $as_echo "no" >&6; } 43627 X_LIBS="$X_LIBS -R$x_libraries" 43628 else 43629 LIBS="$ac_xsave_LIBS -R $x_libraries" 43630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43631 /* end confdefs.h. */ 43632 43633 int 43634 main () 43635 { 43636 43637 ; 43638 return 0; 43639 } 43640 _ACEOF 43641 if ac_fn_cxx_try_link "$LINENO"; then : 43642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43643 $as_echo "yes" >&6; } 43644 X_LIBS="$X_LIBS -R $x_libraries" 43645 else 43646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43647 $as_echo "neither works" >&6; } 43648 fi 43649 rm -f core conftest.err conftest.$ac_objext \ 43650 conftest$ac_exeext conftest.$ac_ext 43651 fi 43652 rm -f core conftest.err conftest.$ac_objext \ 43653 conftest$ac_exeext conftest.$ac_ext 43654 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43655 LIBS=$ac_xsave_LIBS 43656 fi 43657 43658 # Check for system-dependent libraries X programs must link with. 43659 # Do this before checking for the system-independent R6 libraries 43660 # (-lICE), since we may need -lsocket or whatever for X linking. 43661 43662 if test "$ISC" = yes; then 43663 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43664 else 43665 # Martyn Johnson says this is needed for Ultrix, if the X 43666 # libraries were built with DECnet support. And Karl Berry says 43667 # the Alpha needs dnet_stub (dnet does not exist). 43668 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43670 /* end confdefs.h. */ 43671 43672 /* Override any GCC internal prototype to avoid an error. 43673 Use char because int might match the return type of a GCC 43674 builtin and then its argument prototype would still apply. */ 43675 #ifdef __cplusplus 43676 extern "C" 43677 #endif 43678 char XOpenDisplay (); 43679 int 43680 main () 43681 { 43682 return XOpenDisplay (); 43683 ; 43684 return 0; 43685 } 43686 _ACEOF 43687 if ac_fn_cxx_try_link "$LINENO"; then : 43688 43689 else 43690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43691 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43692 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43693 $as_echo_n "(cached) " >&6 43694 else 43695 ac_check_lib_save_LIBS=$LIBS 43696 LIBS="-ldnet $LIBS" 43697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43698 /* end confdefs.h. */ 43699 43700 /* Override any GCC internal prototype to avoid an error. 43701 Use char because int might match the return type of a GCC 43702 builtin and then its argument prototype would still apply. */ 43703 #ifdef __cplusplus 43704 extern "C" 43705 #endif 43706 char dnet_ntoa (); 43707 int 43708 main () 43709 { 43710 return dnet_ntoa (); 43711 ; 43712 return 0; 43713 } 43714 _ACEOF 43715 if ac_fn_cxx_try_link "$LINENO"; then : 43716 ac_cv_lib_dnet_dnet_ntoa=yes 43717 else 43718 ac_cv_lib_dnet_dnet_ntoa=no 43719 fi 43720 rm -f core conftest.err conftest.$ac_objext \ 43721 conftest$ac_exeext conftest.$ac_ext 43722 LIBS=$ac_check_lib_save_LIBS 43723 fi 43724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43725 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43726 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43727 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43728 fi 43729 43730 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43732 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43733 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43734 $as_echo_n "(cached) " >&6 43735 else 43736 ac_check_lib_save_LIBS=$LIBS 43737 LIBS="-ldnet_stub $LIBS" 43738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43739 /* end confdefs.h. */ 43740 43741 /* Override any GCC internal prototype to avoid an error. 43742 Use char because int might match the return type of a GCC 43743 builtin and then its argument prototype would still apply. */ 43744 #ifdef __cplusplus 43745 extern "C" 43746 #endif 43747 char dnet_ntoa (); 43748 int 43749 main () 43750 { 43751 return dnet_ntoa (); 43752 ; 43753 return 0; 43754 } 43755 _ACEOF 43756 if ac_fn_cxx_try_link "$LINENO"; then : 43757 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43758 else 43759 ac_cv_lib_dnet_stub_dnet_ntoa=no 43760 fi 43761 rm -f core conftest.err conftest.$ac_objext \ 43762 conftest$ac_exeext conftest.$ac_ext 43763 LIBS=$ac_check_lib_save_LIBS 43764 fi 43765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43766 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43767 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43768 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43769 fi 43770 43771 fi 43772 fi 43773 rm -f core conftest.err conftest.$ac_objext \ 43774 conftest$ac_exeext conftest.$ac_ext 43775 LIBS="$ac_xsave_LIBS" 43776 43777 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43778 # to get the SysV transport functions. 43779 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43780 # needs -lnsl. 43781 # The nsl library prevents programs from opening the X display 43782 # on Irix 5.2, according to T.E. Dickey. 43783 # The functions gethostbyname, getservbyname, and inet_addr are 43784 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43785 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43786 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43787 43788 fi 43789 43790 if test $ac_cv_func_gethostbyname = no; then 43791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43792 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43793 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43794 $as_echo_n "(cached) " >&6 43795 else 43796 ac_check_lib_save_LIBS=$LIBS 43797 LIBS="-lnsl $LIBS" 43798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43799 /* end confdefs.h. */ 43800 43801 /* Override any GCC internal prototype to avoid an error. 43802 Use char because int might match the return type of a GCC 43803 builtin and then its argument prototype would still apply. */ 43804 #ifdef __cplusplus 43805 extern "C" 43806 #endif 43807 char gethostbyname (); 43808 int 43809 main () 43810 { 43811 return gethostbyname (); 43812 ; 43813 return 0; 43814 } 43815 _ACEOF 43816 if ac_fn_cxx_try_link "$LINENO"; then : 43817 ac_cv_lib_nsl_gethostbyname=yes 43818 else 43819 ac_cv_lib_nsl_gethostbyname=no 43820 fi 43821 rm -f core conftest.err conftest.$ac_objext \ 43822 conftest$ac_exeext conftest.$ac_ext 43823 LIBS=$ac_check_lib_save_LIBS 43824 fi 43825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43826 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43827 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43828 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43829 fi 43830 43831 if test $ac_cv_lib_nsl_gethostbyname = no; then 43832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43833 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43834 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43835 $as_echo_n "(cached) " >&6 43836 else 43837 ac_check_lib_save_LIBS=$LIBS 43838 LIBS="-lbsd $LIBS" 43839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43840 /* end confdefs.h. */ 43841 43842 /* Override any GCC internal prototype to avoid an error. 43843 Use char because int might match the return type of a GCC 43844 builtin and then its argument prototype would still apply. */ 43845 #ifdef __cplusplus 43846 extern "C" 43847 #endif 43848 char gethostbyname (); 43849 int 43850 main () 43851 { 43852 return gethostbyname (); 43853 ; 43854 return 0; 43855 } 43856 _ACEOF 43857 if ac_fn_cxx_try_link "$LINENO"; then : 43858 ac_cv_lib_bsd_gethostbyname=yes 43859 else 43860 ac_cv_lib_bsd_gethostbyname=no 43861 fi 43862 rm -f core conftest.err conftest.$ac_objext \ 43863 conftest$ac_exeext conftest.$ac_ext 43864 LIBS=$ac_check_lib_save_LIBS 43865 fi 43866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43867 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43868 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43869 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43870 fi 43871 43872 fi 43873 fi 43874 43875 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43876 # socket/setsockopt and other routines are undefined under SCO ODT 43877 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43878 # on later versions), says Simon Leinen: it contains gethostby* 43879 # variants that don't use the name server (or something). -lsocket 43880 # must be given before -lnsl if both are needed. We assume that 43881 # if connect needs -lnsl, so does gethostbyname. 43882 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43883 if test "x$ac_cv_func_connect" = xyes; then : 43884 43885 fi 43886 43887 if test $ac_cv_func_connect = no; then 43888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43889 $as_echo_n "checking for connect in -lsocket... " >&6; } 43890 if ${ac_cv_lib_socket_connect+:} false; then : 43891 $as_echo_n "(cached) " >&6 43892 else 43893 ac_check_lib_save_LIBS=$LIBS 43894 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43896 /* end confdefs.h. */ 43897 43898 /* Override any GCC internal prototype to avoid an error. 43899 Use char because int might match the return type of a GCC 43900 builtin and then its argument prototype would still apply. */ 43901 #ifdef __cplusplus 43902 extern "C" 43903 #endif 43904 char connect (); 43905 int 43906 main () 43907 { 43908 return connect (); 43909 ; 43910 return 0; 43911 } 43912 _ACEOF 43913 if ac_fn_cxx_try_link "$LINENO"; then : 43914 ac_cv_lib_socket_connect=yes 43915 else 43916 ac_cv_lib_socket_connect=no 43917 fi 43918 rm -f core conftest.err conftest.$ac_objext \ 43919 conftest$ac_exeext conftest.$ac_ext 43920 LIBS=$ac_check_lib_save_LIBS 43921 fi 43922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43923 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43924 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43925 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43926 fi 43927 43928 fi 43929 43930 # Guillermo Gomez says -lposix is necessary on A/UX. 43931 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43932 if test "x$ac_cv_func_remove" = xyes; then : 43933 43934 fi 43935 43936 if test $ac_cv_func_remove = no; then 43937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43938 $as_echo_n "checking for remove in -lposix... " >&6; } 43939 if ${ac_cv_lib_posix_remove+:} false; then : 43940 $as_echo_n "(cached) " >&6 43941 else 43942 ac_check_lib_save_LIBS=$LIBS 43943 LIBS="-lposix $LIBS" 43944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43945 /* end confdefs.h. */ 43946 43947 /* Override any GCC internal prototype to avoid an error. 43948 Use char because int might match the return type of a GCC 43949 builtin and then its argument prototype would still apply. */ 43950 #ifdef __cplusplus 43951 extern "C" 43952 #endif 43953 char remove (); 43954 int 43955 main () 43956 { 43957 return remove (); 43958 ; 43959 return 0; 43960 } 43961 _ACEOF 43962 if ac_fn_cxx_try_link "$LINENO"; then : 43963 ac_cv_lib_posix_remove=yes 43964 else 43965 ac_cv_lib_posix_remove=no 43966 fi 43967 rm -f core conftest.err conftest.$ac_objext \ 43968 conftest$ac_exeext conftest.$ac_ext 43969 LIBS=$ac_check_lib_save_LIBS 43970 fi 43971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43972 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43973 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43975 fi 43976 43977 fi 43978 43979 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43980 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43981 if test "x$ac_cv_func_shmat" = xyes; then : 43982 43983 fi 43984 43985 if test $ac_cv_func_shmat = no; then 43986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43987 $as_echo_n "checking for shmat in -lipc... " >&6; } 43988 if ${ac_cv_lib_ipc_shmat+:} false; then : 43989 $as_echo_n "(cached) " >&6 43990 else 43991 ac_check_lib_save_LIBS=$LIBS 43992 LIBS="-lipc $LIBS" 43993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43994 /* end confdefs.h. */ 43995 43996 /* Override any GCC internal prototype to avoid an error. 43997 Use char because int might match the return type of a GCC 43998 builtin and then its argument prototype would still apply. */ 43999 #ifdef __cplusplus 44000 extern "C" 44001 #endif 44002 char shmat (); 44003 int 44004 main () 44005 { 44006 return shmat (); 44007 ; 44008 return 0; 44009 } 44010 _ACEOF 44011 if ac_fn_cxx_try_link "$LINENO"; then : 44012 ac_cv_lib_ipc_shmat=yes 44013 else 44014 ac_cv_lib_ipc_shmat=no 44015 fi 44016 rm -f core conftest.err conftest.$ac_objext \ 44017 conftest$ac_exeext conftest.$ac_ext 44018 LIBS=$ac_check_lib_save_LIBS 44019 fi 44020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 44021 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 44022 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 44023 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 44024 fi 44025 44026 fi 44027 fi 44028 44029 # Check for libraries that X11R6 Xt/Xaw programs need. 44030 ac_save_LDFLAGS=$LDFLAGS 44031 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 44032 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 44033 # check for ICE first), but we must link in the order -lSM -lICE or 44034 # we get undefined symbols. So assume we have SM if we have ICE. 44035 # These have to be linked with before -lX11, unlike the other 44036 # libraries we check for below, so use a different variable. 44037 # John Interrante, Karl Berry 44038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 44039 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 44040 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 44041 $as_echo_n "(cached) " >&6 44042 else 44043 ac_check_lib_save_LIBS=$LIBS 44044 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 44045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44046 /* end confdefs.h. */ 44047 44048 /* Override any GCC internal prototype to avoid an error. 44049 Use char because int might match the return type of a GCC 44050 builtin and then its argument prototype would still apply. */ 44051 #ifdef __cplusplus 44052 extern "C" 44053 #endif 44054 char IceConnectionNumber (); 44055 int 44056 main () 44057 { 44058 return IceConnectionNumber (); 44059 ; 44060 return 0; 44061 } 44062 _ACEOF 44063 if ac_fn_cxx_try_link "$LINENO"; then : 44064 ac_cv_lib_ICE_IceConnectionNumber=yes 44065 else 44066 ac_cv_lib_ICE_IceConnectionNumber=no 44067 fi 44068 rm -f core conftest.err conftest.$ac_objext \ 44069 conftest$ac_exeext conftest.$ac_ext 44070 LIBS=$ac_check_lib_save_LIBS 44071 fi 44072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 44073 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 44074 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 44075 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 44076 fi 44077 44078 LDFLAGS=$ac_save_LDFLAGS 44079 44080 fi 44081 44082 44083 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 44084 # this doesn't make sense so we remove it. 44085 if test "x$COMPILE_TYPE" = xcross; then 44086 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 44087 fi 44088 44089 if test "x$no_x" = xyes; then 44090 44091 # Print a helpful message on how to acquire the necessary build dependency. 44092 # x11 is the help tag: freetype, cups, pulse, alsa etc 44093 MISSING_DEPENDENCY=x11 44094 44095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44096 cygwin_help $MISSING_DEPENDENCY 44097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44098 msys_help $MISSING_DEPENDENCY 44099 else 44100 PKGHANDLER_COMMAND= 44101 44102 case $PKGHANDLER in 44103 apt-get) 44104 apt_help $MISSING_DEPENDENCY ;; 44105 yum) 44106 yum_help $MISSING_DEPENDENCY ;; 44107 port) 44108 port_help $MISSING_DEPENDENCY ;; 44109 pkgutil) 44110 pkgutil_help $MISSING_DEPENDENCY ;; 44111 pkgadd) 44112 pkgadd_help $MISSING_DEPENDENCY ;; 44113 esac 44114 44115 if test "x$PKGHANDLER_COMMAND" != x; then 44116 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44117 fi 44118 fi 44119 44120 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 44121 fi 44122 44123 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 44124 OPENWIN_HOME="/usr/openwin" 44125 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 44126 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44127 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 44128 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 44129 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 44130 fi 44131 44132 ac_ext=c 44133 ac_cpp='$CPP $CPPFLAGS' 44134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44136 ac_compiler_gnu=$ac_cv_c_compiler_gnu 44137 44138 OLD_CFLAGS="$CFLAGS" 44139 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 44140 44141 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 44142 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 44143 do : 44144 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44145 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 44146 # include <X11/Xlib.h> 44147 # include <X11/Xutil.h> 44148 44149 44150 " 44151 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44152 cat >>confdefs.h <<_ACEOF 44153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44154 _ACEOF 44155 X11_HEADERS_OK=yes 44156 else 44157 X11_HEADERS_OK=no; break 44158 fi 44159 44160 done 44161 44162 44163 if test "x$X11_HEADERS_OK" = xno; then 44164 44165 # Print a helpful message on how to acquire the necessary build dependency. 44166 # x11 is the help tag: freetype, cups, pulse, alsa etc 44167 MISSING_DEPENDENCY=x11 44168 44169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44170 cygwin_help $MISSING_DEPENDENCY 44171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44172 msys_help $MISSING_DEPENDENCY 44173 else 44174 PKGHANDLER_COMMAND= 44175 44176 case $PKGHANDLER in 44177 apt-get) 44178 apt_help $MISSING_DEPENDENCY ;; 44179 yum) 44180 yum_help $MISSING_DEPENDENCY ;; 44181 port) 44182 port_help $MISSING_DEPENDENCY ;; 44183 pkgutil) 44184 pkgutil_help $MISSING_DEPENDENCY ;; 44185 pkgadd) 44186 pkgadd_help $MISSING_DEPENDENCY ;; 44187 esac 44188 44189 if test "x$PKGHANDLER_COMMAND" != x; then 44190 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44191 fi 44192 fi 44193 44194 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 44195 fi 44196 44197 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 44198 # defined in libawt_xawt. 44199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 44200 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 44201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44202 /* end confdefs.h. */ 44203 #include <X11/extensions/Xrender.h> 44204 int 44205 main () 44206 { 44207 XLinearGradient x; 44208 ; 44209 return 0; 44210 } 44211 _ACEOF 44212 if ac_fn_c_try_compile "$LINENO"; then : 44213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44214 $as_echo "yes" >&6; } 44215 else 44216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44217 $as_echo "no" >&6; } 44218 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 44219 fi 44220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 44221 44222 CFLAGS="$OLD_CFLAGS" 44223 ac_ext=cpp 44224 ac_cpp='$CXXCPP $CPPFLAGS' 44225 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44226 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44227 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44228 44229 fi # X11_NOT_NEEDED 44230 44231 44232 44233 44234 44235 44236 ############################################################################### 44237 # 44238 # The common unix printing system cups is used to print from java. 44239 # 44240 44241 # Check whether --with-cups was given. 44242 if test "${with_cups+set}" = set; then : 44243 withval=$with_cups; 44244 fi 44245 44246 44247 # Check whether --with-cups-include was given. 44248 if test "${with_cups_include+set}" = set; then : 44249 withval=$with_cups_include; 44250 fi 44251 44252 44253 if test "x$CUPS_NOT_NEEDED" = xyes; then 44254 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 44255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 44256 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 44257 fi 44258 CUPS_CFLAGS= 44259 else 44260 CUPS_FOUND=no 44261 44262 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 44263 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 44264 fi 44265 44266 if test "x${with_cups}" != x; then 44267 CUPS_CFLAGS="-I${with_cups}/include" 44268 CUPS_FOUND=yes 44269 fi 44270 if test "x${with_cups_include}" != x; then 44271 CUPS_CFLAGS="-I${with_cups_include}" 44272 CUPS_FOUND=yes 44273 fi 44274 if test "x$CUPS_FOUND" = xno; then 44275 44276 44277 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44278 # Source the builddeps file again, to make sure it uses the latest variables! 44279 . $builddepsfile 44280 # Look for a target and build machine specific resource! 44281 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44282 if test "x$resource" = x; then 44283 # Ok, lets instead look for a target specific resource 44284 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 44285 fi 44286 if test "x$resource" = x; then 44287 # Ok, lets instead look for a build specific resource 44288 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 44289 fi 44290 if test "x$resource" = x; then 44291 # Ok, lets instead look for a generic resource 44292 # (The cups comes from M4 and not the shell, thus no need for eval here.) 44293 resource=${builddep_cups} 44294 fi 44295 if test "x$resource" != x; then 44296 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 44297 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 44298 # If the resource in the builddeps.conf file is an existing directory, 44299 # for example /java/linux/cups 44300 if test -d ${resource}; then 44301 depdir=${resource} 44302 else 44303 44304 # cups is for example mymodule 44305 # $resource is for example libs/general/libmymod_1_2_3.zip 44306 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44307 # $with_builddeps_dir is for example /localhome/builddeps 44308 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44309 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44310 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44311 filename=`basename $resource` 44312 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44313 filebase=${filename%%.*} 44314 extension=${filename#*.} 44315 installdir=$with_builddeps_dir/$filebase 44316 if test ! -f $installdir/$filename.unpacked; then 44317 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 44318 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44319 if test ! -d $installdir; then 44320 mkdir -p $installdir 44321 fi 44322 if test ! -d $installdir; then 44323 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44324 fi 44325 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 44326 touch $tmpfile 44327 if test ! -f $tmpfile; then 44328 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44329 fi 44330 44331 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44332 # $tmpfile is the local file name for the downloaded file. 44333 VALID_TOOL=no 44334 if test "x$BDEPS_FTP" = xwget; then 44335 VALID_TOOL=yes 44336 wget -O $tmpfile $with_builddeps_server/$resource 44337 fi 44338 if test "x$BDEPS_FTP" = xlftp; then 44339 VALID_TOOL=yes 44340 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44341 fi 44342 if test "x$BDEPS_FTP" = xftp; then 44343 VALID_TOOL=yes 44344 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44345 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44346 FTPUSERPWD=${FTPSERVER%%@*} 44347 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44348 FTPUSER=${userpwd%%:*} 44349 FTPPWD=${userpwd#*@} 44350 FTPSERVER=${FTPSERVER#*@} 44351 else 44352 FTPUSER=ftp 44353 FTPPWD=ftp 44354 fi 44355 # the "pass" command does not work on some 44356 # ftp clients (read ftp.exe) but if it works, 44357 # passive mode is better! 44358 ( \ 44359 echo "user $FTPUSER $FTPPWD" ; \ 44360 echo "pass" ; \ 44361 echo "bin" ; \ 44362 echo "get $FTPPATH $tmpfile" ; \ 44363 ) | ftp -in $FTPSERVER 44364 fi 44365 if test "x$VALID_TOOL" != xyes; then 44366 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44367 fi 44368 44369 mv $tmpfile $installdir/$filename 44370 if test ! -s $installdir/$filename; then 44371 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44372 fi 44373 case "$extension" in 44374 zip) echo "Unzipping $installdir/$filename..." 44375 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44376 ;; 44377 tar.gz) echo "Untaring $installdir/$filename..." 44378 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44379 ;; 44380 tgz) echo "Untaring $installdir/$filename..." 44381 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44382 ;; 44383 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44384 ;; 44385 esac 44386 fi 44387 if test -f $installdir/$filename.unpacked; then 44388 depdir=$installdir 44389 fi 44390 44391 fi 44392 # Source the builddeps file again, because in the previous command, the depdir 44393 # was updated to point at the current build dependency install directory. 44394 . $builddepsfile 44395 # Now extract variables from the builddeps.conf files. 44396 theroot=${builddep_cups_ROOT} 44397 thecflags=${builddep_cups_CFLAGS} 44398 thelibs=${builddep_cups_LIBS} 44399 if test "x$depdir" = x; then 44400 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 44401 fi 44402 CUPS=$depdir 44403 if test "x$theroot" != x; then 44404 CUPS="$theroot" 44405 fi 44406 if test "x$thecflags" != x; then 44407 CUPS_CFLAGS="$thecflags" 44408 fi 44409 if test "x$thelibs" != x; then 44410 CUPS_LIBS="$thelibs" 44411 fi 44412 CUPS_FOUND=yes 44413 44414 fi 44415 44416 fi 44417 44418 fi 44419 if test "x$CUPS_FOUND" = xno; then 44420 # Are the cups headers installed in the default /usr/include location? 44421 for ac_header in cups/cups.h cups/ppd.h 44422 do : 44423 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44424 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 44425 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44426 cat >>confdefs.h <<_ACEOF 44427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44428 _ACEOF 44429 44430 CUPS_FOUND=yes 44431 CUPS_CFLAGS= 44432 DEFAULT_CUPS=yes 44433 44434 44435 fi 44436 44437 done 44438 44439 fi 44440 if test "x$CUPS_FOUND" = xno; then 44441 # Getting nervous now? Lets poke around for standard Solaris third-party 44442 # package installation locations. 44443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 44444 $as_echo_n "checking for cups headers... " >&6; } 44445 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 44446 # An SFW package seems to be installed! 44447 CUPS_FOUND=yes 44448 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 44449 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 44450 # A CSW package seems to be installed! 44451 CUPS_FOUND=yes 44452 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 44453 fi 44454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 44455 $as_echo "$CUPS_FOUND" >&6; } 44456 fi 44457 if test "x$CUPS_FOUND" = xno; then 44458 44459 # Print a helpful message on how to acquire the necessary build dependency. 44460 # cups is the help tag: freetype, cups, pulse, alsa etc 44461 MISSING_DEPENDENCY=cups 44462 44463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44464 cygwin_help $MISSING_DEPENDENCY 44465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44466 msys_help $MISSING_DEPENDENCY 44467 else 44468 PKGHANDLER_COMMAND= 44469 44470 case $PKGHANDLER in 44471 apt-get) 44472 apt_help $MISSING_DEPENDENCY ;; 44473 yum) 44474 yum_help $MISSING_DEPENDENCY ;; 44475 port) 44476 port_help $MISSING_DEPENDENCY ;; 44477 pkgutil) 44478 pkgutil_help $MISSING_DEPENDENCY ;; 44479 pkgadd) 44480 pkgadd_help $MISSING_DEPENDENCY ;; 44481 esac 44482 44483 if test "x$PKGHANDLER_COMMAND" != x; then 44484 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44485 fi 44486 fi 44487 44488 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 44489 fi 44490 fi 44491 44492 44493 44494 44495 44496 44497 ############################################################################### 44498 # 44499 # The ubiquitous freetype library is used to render fonts. 44500 # 44501 44502 # Check whether --with-freetype was given. 44503 if test "${with_freetype+set}" = set; then : 44504 withval=$with_freetype; 44505 fi 44506 44507 44508 # Check whether --with-freetype-include was given. 44509 if test "${with_freetype_include+set}" = set; then : 44510 withval=$with_freetype_include; 44511 fi 44512 44513 44514 # Check whether --with-freetype-lib was given. 44515 if test "${with_freetype_lib+set}" = set; then : 44516 withval=$with_freetype_lib; 44517 fi 44518 44519 44520 # Check whether --with-freetype-src was given. 44521 if test "${with_freetype_src+set}" = set; then : 44522 withval=$with_freetype_src; 44523 fi 44524 44525 # Check whether --enable-freetype-bundling was given. 44526 if test "${enable_freetype_bundling+set}" = set; then : 44527 enableval=$enable_freetype_bundling; 44528 fi 44529 44530 44531 # Need to specify explicitly since it needs to be overridden on some versions of macosx 44532 FREETYPE_BASE_NAME=freetype 44533 FREETYPE_CFLAGS= 44534 FREETYPE_LIBS= 44535 FREETYPE_BUNDLE_LIB_PATH= 44536 44537 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 44538 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x || test "x$with_freetype_src" != x; then 44539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 44540 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 44541 fi 44542 if test "x$enable_freetype_bundling" != x; then 44543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 44544 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 44545 fi 44546 else 44547 # freetype is needed to build; go get it! 44548 44549 BUNDLE_FREETYPE="$enable_freetype_bundling" 44550 44551 if test "x$with_freetype_src" != x; then 44552 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44553 # Try to build freetype if --with-freetype-src was given on Windows 44554 44555 FREETYPE_SRC_PATH="$with_freetype_src" 44556 BUILD_FREETYPE=yes 44557 44558 # Check if the freetype sources are acessible.. 44559 if ! test -d $FREETYPE_SRC_PATH; then 44560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&5 44561 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 44562 BUILD_FREETYPE=no 44563 fi 44564 # ..and contain a vc2010 project file 44565 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 44566 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 44567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&5 44568 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 44569 BUILD_FREETYPE=no 44570 fi 44571 # Now check if configure found a version of 'msbuild.exe' 44572 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 44573 { $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 44574 $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;} 44575 BUILD_FREETYPE=no 44576 fi 44577 44578 # Ready to go.. 44579 if test "x$BUILD_FREETYPE" = xyes; then 44580 44581 # msbuild requires trailing slashes for output directories 44582 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 44583 freetype_lib_path_unix="$freetype_lib_path" 44584 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 44585 44586 unix_path="$vcxproj_path" 44587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44588 windows_path=`$CYGPATH -m "$unix_path"` 44589 vcxproj_path="$windows_path" 44590 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44591 windows_path=`cmd //c echo $unix_path` 44592 vcxproj_path="$windows_path" 44593 fi 44594 44595 44596 unix_path="$freetype_lib_path" 44597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44598 windows_path=`$CYGPATH -m "$unix_path"` 44599 freetype_lib_path="$windows_path" 44600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44601 windows_path=`cmd //c echo $unix_path` 44602 freetype_lib_path="$windows_path" 44603 fi 44604 44605 44606 unix_path="$freetype_obj_path" 44607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44608 windows_path=`$CYGPATH -m "$unix_path"` 44609 freetype_obj_path="$windows_path" 44610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44611 windows_path=`cmd //c echo $unix_path` 44612 freetype_obj_path="$windows_path" 44613 fi 44614 44615 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44616 freetype_platform=x64 44617 else 44618 freetype_platform=win32 44619 fi 44620 44621 # The original freetype project file is for VS 2010 (i.e. 'v100'), 44622 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 44623 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 44624 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 44625 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 44626 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 44627 44628 # First we try to build the freetype.dll 44629 $ECHO -e "@echo off\n"\ 44630 "$MSBUILD $vcxproj_path "\ 44631 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44632 "/p:Configuration=\"Release Multithreaded\" "\ 44633 "/p:Platform=$freetype_platform "\ 44634 "/p:ConfigurationType=DynamicLibrary "\ 44635 "/p:TargetName=freetype "\ 44636 "/p:OutDir=\"$freetype_lib_path\" "\ 44637 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44638 cmd /c freetype.bat 44639 44640 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44641 # If that succeeds we also build freetype.lib 44642 $ECHO -e "@echo off\n"\ 44643 "$MSBUILD $vcxproj_path "\ 44644 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44645 "/p:Configuration=\"Release Multithreaded\" "\ 44646 "/p:Platform=$freetype_platform "\ 44647 "/p:ConfigurationType=StaticLibrary "\ 44648 "/p:TargetName=freetype "\ 44649 "/p:OutDir=\"$freetype_lib_path\" "\ 44650 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44651 cmd /c freetype.bat 44652 44653 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44654 # Once we build both, lib and dll, set freetype lib and include path appropriately 44655 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44656 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44657 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44658 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44659 else 44660 BUILD_FREETYPE=no 44661 fi 44662 else 44663 BUILD_FREETYPE=no 44664 fi 44665 fi 44666 44667 if test "x$BUILD_FREETYPE" = xyes; then 44668 # Okay, we built it. Check that it works. 44669 44670 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44671 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44672 METHOD="--with-freetype-src" 44673 44674 # Let's start with an optimistic view of the world :-) 44675 FOUND_FREETYPE=yes 44676 44677 # First look for the canonical freetype main include file ft2build.h. 44678 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44679 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44680 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44681 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44682 # Fail. 44683 FOUND_FREETYPE=no 44684 fi 44685 fi 44686 44687 if test "x$FOUND_FREETYPE" = xyes; then 44688 # Include file found, let's continue the sanity check. 44689 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44690 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44691 44692 # Reset to default value 44693 FREETYPE_BASE_NAME=freetype 44694 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44695 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44696 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44697 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44698 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44699 # for the .6 version explicitly. 44700 FREETYPE_BASE_NAME=freetype.6 44701 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44702 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44703 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44704 else 44705 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44706 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44707 FOUND_FREETYPE=no 44708 fi 44709 else 44710 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44711 # On Windows, we will need both .lib and .dll file. 44712 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44713 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44714 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44715 FOUND_FREETYPE=no 44716 fi 44717 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44718 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44719 # Found lib in isa dir, use that instead. 44720 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44721 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44722 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44723 fi 44724 fi 44725 fi 44726 44727 if test "x$FOUND_FREETYPE" = xyes; then 44728 44729 # Only process if variable expands to non-empty 44730 44731 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 44732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44733 44734 # Input might be given as Windows format, start by converting to 44735 # unix format. 44736 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44737 new_path=`$CYGPATH -u "$path"` 44738 44739 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44740 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44741 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44742 # "foo.exe" is OK but "foo" is an error. 44743 # 44744 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44745 # It is also a way to make sure we got the proper file name for the real test later on. 44746 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44747 if test "x$test_shortpath" = x; then 44748 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44749 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44750 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44751 fi 44752 44753 # Call helper function which possibly converts this using DOS-style short mode. 44754 # If so, the updated path is stored in $new_path. 44755 44756 input_path="$new_path" 44757 # Check if we need to convert this using DOS-style short mode. If the path 44758 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44759 # take no chances and rewrite it. 44760 # Note: m4 eats our [], so we need to use [ and ] instead. 44761 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44762 if test "x$has_forbidden_chars" != x; then 44763 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44764 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44765 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44766 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44767 # Going to short mode and back again did indeed matter. Since short mode is 44768 # case insensitive, let's make it lowercase to improve readability. 44769 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44770 # Now convert it back to Unix-stile (cygpath) 44771 input_path=`$CYGPATH -u "$shortmode_path"` 44772 new_path="$input_path" 44773 fi 44774 fi 44775 44776 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44777 if test "x$test_cygdrive_prefix" = x; then 44778 # As a simple fix, exclude /usr/bin since it's not a real path. 44779 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44780 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44781 # a path prefixed by /cygdrive for fixpath to work. 44782 new_path="$CYGWIN_ROOT_PATH$input_path" 44783 fi 44784 fi 44785 44786 44787 if test "x$path" != "x$new_path"; then 44788 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44789 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44790 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44791 fi 44792 44793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44794 44795 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44796 has_colon=`$ECHO $path | $GREP ^.:` 44797 new_path="$path" 44798 if test "x$has_colon" = x; then 44799 # Not in mixed or Windows style, start by that. 44800 new_path=`cmd //c echo $path` 44801 fi 44802 44803 44804 input_path="$new_path" 44805 # Check if we need to convert this using DOS-style short mode. If the path 44806 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44807 # take no chances and rewrite it. 44808 # Note: m4 eats our [], so we need to use [ and ] instead. 44809 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44810 if test "x$has_forbidden_chars" != x; then 44811 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44812 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44813 fi 44814 44815 44816 windows_path="$new_path" 44817 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44818 unix_path=`$CYGPATH -u "$windows_path"` 44819 new_path="$unix_path" 44820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44821 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44822 new_path="$unix_path" 44823 fi 44824 44825 if test "x$path" != "x$new_path"; then 44826 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44827 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44828 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44829 fi 44830 44831 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44832 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44833 44834 else 44835 # We're on a unix platform. Hooray! :) 44836 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44837 has_space=`$ECHO "$path" | $GREP " "` 44838 if test "x$has_space" != x; then 44839 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44840 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44841 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44842 fi 44843 44844 # Use eval to expand a potential ~ 44845 eval path="$path" 44846 if test ! -f "$path" && test ! -d "$path"; then 44847 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44848 fi 44849 44850 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44851 fi 44852 fi 44853 44854 44855 # Only process if variable expands to non-empty 44856 44857 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44858 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44859 44860 # Input might be given as Windows format, start by converting to 44861 # unix format. 44862 path="$POTENTIAL_FREETYPE_LIB_PATH" 44863 new_path=`$CYGPATH -u "$path"` 44864 44865 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44866 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44867 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44868 # "foo.exe" is OK but "foo" is an error. 44869 # 44870 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44871 # It is also a way to make sure we got the proper file name for the real test later on. 44872 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44873 if test "x$test_shortpath" = x; then 44874 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44875 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44876 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44877 fi 44878 44879 # Call helper function which possibly converts this using DOS-style short mode. 44880 # If so, the updated path is stored in $new_path. 44881 44882 input_path="$new_path" 44883 # Check if we need to convert this using DOS-style short mode. If the path 44884 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44885 # take no chances and rewrite it. 44886 # Note: m4 eats our [], so we need to use [ and ] instead. 44887 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44888 if test "x$has_forbidden_chars" != x; then 44889 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44890 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44891 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44892 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44893 # Going to short mode and back again did indeed matter. Since short mode is 44894 # case insensitive, let's make it lowercase to improve readability. 44895 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44896 # Now convert it back to Unix-stile (cygpath) 44897 input_path=`$CYGPATH -u "$shortmode_path"` 44898 new_path="$input_path" 44899 fi 44900 fi 44901 44902 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44903 if test "x$test_cygdrive_prefix" = x; then 44904 # As a simple fix, exclude /usr/bin since it's not a real path. 44905 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44906 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44907 # a path prefixed by /cygdrive for fixpath to work. 44908 new_path="$CYGWIN_ROOT_PATH$input_path" 44909 fi 44910 fi 44911 44912 44913 if test "x$path" != "x$new_path"; then 44914 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44915 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44916 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44917 fi 44918 44919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44920 44921 path="$POTENTIAL_FREETYPE_LIB_PATH" 44922 has_colon=`$ECHO $path | $GREP ^.:` 44923 new_path="$path" 44924 if test "x$has_colon" = x; then 44925 # Not in mixed or Windows style, start by that. 44926 new_path=`cmd //c echo $path` 44927 fi 44928 44929 44930 input_path="$new_path" 44931 # Check if we need to convert this using DOS-style short mode. If the path 44932 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44933 # take no chances and rewrite it. 44934 # Note: m4 eats our [], so we need to use [ and ] instead. 44935 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44936 if test "x$has_forbidden_chars" != x; then 44937 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44938 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44939 fi 44940 44941 44942 windows_path="$new_path" 44943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44944 unix_path=`$CYGPATH -u "$windows_path"` 44945 new_path="$unix_path" 44946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44947 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44948 new_path="$unix_path" 44949 fi 44950 44951 if test "x$path" != "x$new_path"; then 44952 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44953 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44954 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44955 fi 44956 44957 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44958 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44959 44960 else 44961 # We're on a unix platform. Hooray! :) 44962 path="$POTENTIAL_FREETYPE_LIB_PATH" 44963 has_space=`$ECHO "$path" | $GREP " "` 44964 if test "x$has_space" != x; then 44965 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44966 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44967 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44968 fi 44969 44970 # Use eval to expand a potential ~ 44971 eval path="$path" 44972 if test ! -f "$path" && test ! -d "$path"; then 44973 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44974 fi 44975 44976 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44977 fi 44978 fi 44979 44980 44981 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44983 $as_echo_n "checking for freetype includes... " >&6; } 44984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44985 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44986 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44988 $as_echo_n "checking for freetype libraries... " >&6; } 44989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44990 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44991 fi 44992 44993 if test "x$FOUND_FREETYPE" != xyes; then 44994 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44995 fi 44996 else 44997 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44998 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44999 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 45000 fi 45001 else 45002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 45003 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 45004 fi 45005 fi 45006 45007 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 45008 # User has specified settings 45009 45010 if test "x$BUNDLE_FREETYPE" = x; then 45011 # If not specified, default is to bundle freetype 45012 BUNDLE_FREETYPE=yes 45013 fi 45014 45015 if test "x$with_freetype" != x; then 45016 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 45017 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 45018 fi 45019 45020 # Allow --with-freetype-lib and --with-freetype-include to override 45021 if test "x$with_freetype_include" != x; then 45022 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 45023 fi 45024 if test "x$with_freetype_lib" != x; then 45025 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 45026 fi 45027 45028 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 45029 # Okay, we got it. Check that it works. 45030 45031 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45032 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45033 METHOD="--with-freetype" 45034 45035 # Let's start with an optimistic view of the world :-) 45036 FOUND_FREETYPE=yes 45037 45038 # First look for the canonical freetype main include file ft2build.h. 45039 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45040 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45041 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45042 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45043 # Fail. 45044 FOUND_FREETYPE=no 45045 fi 45046 fi 45047 45048 if test "x$FOUND_FREETYPE" = xyes; then 45049 # Include file found, let's continue the sanity check. 45050 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45051 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45052 45053 # Reset to default value 45054 FREETYPE_BASE_NAME=freetype 45055 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45056 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45057 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45058 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45059 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45060 # for the .6 version explicitly. 45061 FREETYPE_BASE_NAME=freetype.6 45062 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45063 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45064 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45065 else 45066 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45067 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45068 FOUND_FREETYPE=no 45069 fi 45070 else 45071 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45072 # On Windows, we will need both .lib and .dll file. 45073 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45074 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45075 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45076 FOUND_FREETYPE=no 45077 fi 45078 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45079 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45080 # Found lib in isa dir, use that instead. 45081 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45082 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45083 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45084 fi 45085 fi 45086 fi 45087 45088 if test "x$FOUND_FREETYPE" = xyes; then 45089 45090 # Only process if variable expands to non-empty 45091 45092 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45094 45095 # Input might be given as Windows format, start by converting to 45096 # unix format. 45097 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45098 new_path=`$CYGPATH -u "$path"` 45099 45100 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45101 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45102 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45103 # "foo.exe" is OK but "foo" is an error. 45104 # 45105 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45106 # It is also a way to make sure we got the proper file name for the real test later on. 45107 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45108 if test "x$test_shortpath" = x; then 45109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45110 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45111 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45112 fi 45113 45114 # Call helper function which possibly converts this using DOS-style short mode. 45115 # If so, the updated path is stored in $new_path. 45116 45117 input_path="$new_path" 45118 # Check if we need to convert this using DOS-style short mode. If the path 45119 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45120 # take no chances and rewrite it. 45121 # Note: m4 eats our [], so we need to use [ and ] instead. 45122 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45123 if test "x$has_forbidden_chars" != x; then 45124 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45125 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45126 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45127 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45128 # Going to short mode and back again did indeed matter. Since short mode is 45129 # case insensitive, let's make it lowercase to improve readability. 45130 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45131 # Now convert it back to Unix-stile (cygpath) 45132 input_path=`$CYGPATH -u "$shortmode_path"` 45133 new_path="$input_path" 45134 fi 45135 fi 45136 45137 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45138 if test "x$test_cygdrive_prefix" = x; then 45139 # As a simple fix, exclude /usr/bin since it's not a real path. 45140 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45141 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45142 # a path prefixed by /cygdrive for fixpath to work. 45143 new_path="$CYGWIN_ROOT_PATH$input_path" 45144 fi 45145 fi 45146 45147 45148 if test "x$path" != "x$new_path"; then 45149 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45150 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45151 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45152 fi 45153 45154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45155 45156 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45157 has_colon=`$ECHO $path | $GREP ^.:` 45158 new_path="$path" 45159 if test "x$has_colon" = x; then 45160 # Not in mixed or Windows style, start by that. 45161 new_path=`cmd //c echo $path` 45162 fi 45163 45164 45165 input_path="$new_path" 45166 # Check if we need to convert this using DOS-style short mode. If the path 45167 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45168 # take no chances and rewrite it. 45169 # Note: m4 eats our [], so we need to use [ and ] instead. 45170 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45171 if test "x$has_forbidden_chars" != x; then 45172 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45173 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45174 fi 45175 45176 45177 windows_path="$new_path" 45178 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45179 unix_path=`$CYGPATH -u "$windows_path"` 45180 new_path="$unix_path" 45181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45182 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45183 new_path="$unix_path" 45184 fi 45185 45186 if test "x$path" != "x$new_path"; then 45187 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45188 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45189 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45190 fi 45191 45192 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45193 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45194 45195 else 45196 # We're on a unix platform. Hooray! :) 45197 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45198 has_space=`$ECHO "$path" | $GREP " "` 45199 if test "x$has_space" != x; then 45200 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45201 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45202 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45203 fi 45204 45205 # Use eval to expand a potential ~ 45206 eval path="$path" 45207 if test ! -f "$path" && test ! -d "$path"; then 45208 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45209 fi 45210 45211 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45212 fi 45213 fi 45214 45215 45216 # Only process if variable expands to non-empty 45217 45218 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 45219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45220 45221 # Input might be given as Windows format, start by converting to 45222 # unix format. 45223 path="$POTENTIAL_FREETYPE_LIB_PATH" 45224 new_path=`$CYGPATH -u "$path"` 45225 45226 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45227 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45228 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45229 # "foo.exe" is OK but "foo" is an error. 45230 # 45231 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45232 # It is also a way to make sure we got the proper file name for the real test later on. 45233 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45234 if test "x$test_shortpath" = x; then 45235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45236 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45237 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45238 fi 45239 45240 # Call helper function which possibly converts this using DOS-style short mode. 45241 # If so, the updated path is stored in $new_path. 45242 45243 input_path="$new_path" 45244 # Check if we need to convert this using DOS-style short mode. If the path 45245 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45246 # take no chances and rewrite it. 45247 # Note: m4 eats our [], so we need to use [ and ] instead. 45248 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45249 if test "x$has_forbidden_chars" != x; then 45250 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45251 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45252 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45253 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45254 # Going to short mode and back again did indeed matter. Since short mode is 45255 # case insensitive, let's make it lowercase to improve readability. 45256 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45257 # Now convert it back to Unix-stile (cygpath) 45258 input_path=`$CYGPATH -u "$shortmode_path"` 45259 new_path="$input_path" 45260 fi 45261 fi 45262 45263 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45264 if test "x$test_cygdrive_prefix" = x; then 45265 # As a simple fix, exclude /usr/bin since it's not a real path. 45266 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45267 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45268 # a path prefixed by /cygdrive for fixpath to work. 45269 new_path="$CYGWIN_ROOT_PATH$input_path" 45270 fi 45271 fi 45272 45273 45274 if test "x$path" != "x$new_path"; then 45275 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45276 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45277 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45278 fi 45279 45280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45281 45282 path="$POTENTIAL_FREETYPE_LIB_PATH" 45283 has_colon=`$ECHO $path | $GREP ^.:` 45284 new_path="$path" 45285 if test "x$has_colon" = x; then 45286 # Not in mixed or Windows style, start by that. 45287 new_path=`cmd //c echo $path` 45288 fi 45289 45290 45291 input_path="$new_path" 45292 # Check if we need to convert this using DOS-style short mode. If the path 45293 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45294 # take no chances and rewrite it. 45295 # Note: m4 eats our [], so we need to use [ and ] instead. 45296 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45297 if test "x$has_forbidden_chars" != x; then 45298 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45299 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45300 fi 45301 45302 45303 windows_path="$new_path" 45304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45305 unix_path=`$CYGPATH -u "$windows_path"` 45306 new_path="$unix_path" 45307 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45308 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45309 new_path="$unix_path" 45310 fi 45311 45312 if test "x$path" != "x$new_path"; then 45313 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45314 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45315 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45316 fi 45317 45318 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45319 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45320 45321 else 45322 # We're on a unix platform. Hooray! :) 45323 path="$POTENTIAL_FREETYPE_LIB_PATH" 45324 has_space=`$ECHO "$path" | $GREP " "` 45325 if test "x$has_space" != x; then 45326 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45327 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45328 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45329 fi 45330 45331 # Use eval to expand a potential ~ 45332 eval path="$path" 45333 if test ! -f "$path" && test ! -d "$path"; then 45334 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45335 fi 45336 45337 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45338 fi 45339 fi 45340 45341 45342 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45344 $as_echo_n "checking for freetype includes... " >&6; } 45345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45346 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45347 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45349 $as_echo_n "checking for freetype libraries... " >&6; } 45350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45351 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45352 fi 45353 45354 if test "x$FOUND_FREETYPE" != xyes; then 45355 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 45356 fi 45357 else 45358 # User specified only one of lib or include. This is an error. 45359 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 45360 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 45361 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 45362 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45363 else 45364 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 45365 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 45366 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45367 fi 45368 fi 45369 else 45370 # User did not specify settings, but we need freetype. Try to locate it. 45371 45372 if test "x$BUNDLE_FREETYPE" = x; then 45373 # If not specified, default is to bundle freetype only on windows 45374 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45375 BUNDLE_FREETYPE=yes 45376 else 45377 BUNDLE_FREETYPE=no 45378 fi 45379 fi 45380 45381 if test "x$FOUND_FREETYPE" != xyes; then 45382 # Check builddeps 45383 45384 45385 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 45386 # Source the builddeps file again, to make sure it uses the latest variables! 45387 . $builddepsfile 45388 # Look for a target and build machine specific resource! 45389 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 45390 if test "x$resource" = x; then 45391 # Ok, lets instead look for a target specific resource 45392 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 45393 fi 45394 if test "x$resource" = x; then 45395 # Ok, lets instead look for a build specific resource 45396 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 45397 fi 45398 if test "x$resource" = x; then 45399 # Ok, lets instead look for a generic resource 45400 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 45401 resource=${builddep_freetype2} 45402 fi 45403 if test "x$resource" != x; then 45404 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 45405 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 45406 # If the resource in the builddeps.conf file is an existing directory, 45407 # for example /java/linux/cups 45408 if test -d ${resource}; then 45409 depdir=${resource} 45410 else 45411 45412 # freetype2 is for example mymodule 45413 # $resource is for example libs/general/libmymod_1_2_3.zip 45414 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 45415 # $with_builddeps_dir is for example /localhome/builddeps 45416 # depdir is the name of the variable into which we store the depdir, eg MYMOD 45417 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 45418 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 45419 filename=`basename $resource` 45420 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 45421 filebase=${filename%%.*} 45422 extension=${filename#*.} 45423 installdir=$with_builddeps_dir/$filebase 45424 if test ! -f $installdir/$filename.unpacked; then 45425 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 45426 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 45427 if test ! -d $installdir; then 45428 mkdir -p $installdir 45429 fi 45430 if test ! -d $installdir; then 45431 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 45432 fi 45433 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 45434 touch $tmpfile 45435 if test ! -f $tmpfile; then 45436 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 45437 fi 45438 45439 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 45440 # $tmpfile is the local file name for the downloaded file. 45441 VALID_TOOL=no 45442 if test "x$BDEPS_FTP" = xwget; then 45443 VALID_TOOL=yes 45444 wget -O $tmpfile $with_builddeps_server/$resource 45445 fi 45446 if test "x$BDEPS_FTP" = xlftp; then 45447 VALID_TOOL=yes 45448 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 45449 fi 45450 if test "x$BDEPS_FTP" = xftp; then 45451 VALID_TOOL=yes 45452 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 45453 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 45454 FTPUSERPWD=${FTPSERVER%%@*} 45455 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 45456 FTPUSER=${userpwd%%:*} 45457 FTPPWD=${userpwd#*@} 45458 FTPSERVER=${FTPSERVER#*@} 45459 else 45460 FTPUSER=ftp 45461 FTPPWD=ftp 45462 fi 45463 # the "pass" command does not work on some 45464 # ftp clients (read ftp.exe) but if it works, 45465 # passive mode is better! 45466 ( \ 45467 echo "user $FTPUSER $FTPPWD" ; \ 45468 echo "pass" ; \ 45469 echo "bin" ; \ 45470 echo "get $FTPPATH $tmpfile" ; \ 45471 ) | ftp -in $FTPSERVER 45472 fi 45473 if test "x$VALID_TOOL" != xyes; then 45474 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 45475 fi 45476 45477 mv $tmpfile $installdir/$filename 45478 if test ! -s $installdir/$filename; then 45479 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 45480 fi 45481 case "$extension" in 45482 zip) echo "Unzipping $installdir/$filename..." 45483 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 45484 ;; 45485 tar.gz) echo "Untaring $installdir/$filename..." 45486 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45487 ;; 45488 tgz) echo "Untaring $installdir/$filename..." 45489 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45490 ;; 45491 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 45492 ;; 45493 esac 45494 fi 45495 if test -f $installdir/$filename.unpacked; then 45496 depdir=$installdir 45497 fi 45498 45499 fi 45500 # Source the builddeps file again, because in the previous command, the depdir 45501 # was updated to point at the current build dependency install directory. 45502 . $builddepsfile 45503 # Now extract variables from the builddeps.conf files. 45504 theroot=${builddep_freetype2_ROOT} 45505 thecflags=${builddep_freetype2_CFLAGS} 45506 thelibs=${builddep_freetype2_LIBS} 45507 if test "x$depdir" = x; then 45508 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 45509 fi 45510 FREETYPE=$depdir 45511 if test "x$theroot" != x; then 45512 FREETYPE="$theroot" 45513 fi 45514 if test "x$thecflags" != x; then 45515 FREETYPE_CFLAGS="$thecflags" 45516 fi 45517 if test "x$thelibs" != x; then 45518 FREETYPE_LIBS="$thelibs" 45519 fi 45520 FOUND_FREETYPE=yes 45521 else FOUND_FREETYPE=no 45522 45523 fi 45524 else FOUND_FREETYPE=no 45525 45526 fi 45527 45528 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45529 if test "x$FOUND_FREETYPE" = xyes; then 45530 if test "x$BUNDLE_FREETYPE" = xyes; then 45531 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 45532 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 45533 FOUND_FREETYPE=no 45534 else 45535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45536 $as_echo_n "checking for freetype... " >&6; } 45537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 45538 $as_echo "yes (using builddeps)" >&6; } 45539 fi 45540 fi 45541 fi 45542 45543 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 45544 if test "x$SYSROOT" = x; then 45545 if test "x$FOUND_FREETYPE" != xyes; then 45546 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 45547 if test "x$PKG_CONFIG" != x; then 45548 45549 pkg_failed=no 45550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 45551 $as_echo_n "checking for FREETYPE... " >&6; } 45552 45553 if test -n "$FREETYPE_CFLAGS"; then 45554 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 45555 elif test -n "$PKG_CONFIG"; then 45556 if test -n "$PKG_CONFIG" && \ 45557 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45558 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45559 ac_status=$? 45560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45561 test $ac_status = 0; }; then 45562 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 45563 else 45564 pkg_failed=yes 45565 fi 45566 else 45567 pkg_failed=untried 45568 fi 45569 if test -n "$FREETYPE_LIBS"; then 45570 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 45571 elif test -n "$PKG_CONFIG"; then 45572 if test -n "$PKG_CONFIG" && \ 45573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45574 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45575 ac_status=$? 45576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45577 test $ac_status = 0; }; then 45578 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 45579 else 45580 pkg_failed=yes 45581 fi 45582 else 45583 pkg_failed=untried 45584 fi 45585 45586 45587 45588 if test $pkg_failed = yes; then 45589 45590 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45591 _pkg_short_errors_supported=yes 45592 else 45593 _pkg_short_errors_supported=no 45594 fi 45595 if test $_pkg_short_errors_supported = yes; then 45596 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 45597 else 45598 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 45599 fi 45600 # Put the nasty error message in config.log where it belongs 45601 echo "$FREETYPE_PKG_ERRORS" >&5 45602 45603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45604 $as_echo "no" >&6; } 45605 FOUND_FREETYPE=no 45606 elif test $pkg_failed = untried; then 45607 FOUND_FREETYPE=no 45608 else 45609 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 45610 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 45611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45612 $as_echo "yes" >&6; } 45613 FOUND_FREETYPE=yes 45614 fi 45615 if test "x$FOUND_FREETYPE" = xyes; then 45616 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 45617 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 45618 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 45619 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 45620 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 45621 fi 45622 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45623 if test "x$BUNDLE_FREETYPE" = xyes; then 45624 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 45625 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 45626 FOUND_FREETYPE=no 45627 else 45628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45629 $as_echo_n "checking for freetype... " >&6; } 45630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 45631 $as_echo "yes (using pkg-config)" >&6; } 45632 fi 45633 fi 45634 fi 45635 fi 45636 fi 45637 45638 if test "x$FOUND_FREETYPE" != xyes; then 45639 # Check in well-known locations 45640 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45641 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 45642 45643 windows_path="$FREETYPE_BASE_DIR" 45644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45645 unix_path=`$CYGPATH -u "$windows_path"` 45646 FREETYPE_BASE_DIR="$unix_path" 45647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45649 FREETYPE_BASE_DIR="$unix_path" 45650 fi 45651 45652 45653 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45654 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45655 METHOD="well-known location" 45656 45657 # Let's start with an optimistic view of the world :-) 45658 FOUND_FREETYPE=yes 45659 45660 # First look for the canonical freetype main include file ft2build.h. 45661 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45662 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45663 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45664 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45665 # Fail. 45666 FOUND_FREETYPE=no 45667 fi 45668 fi 45669 45670 if test "x$FOUND_FREETYPE" = xyes; then 45671 # Include file found, let's continue the sanity check. 45672 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45673 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45674 45675 # Reset to default value 45676 FREETYPE_BASE_NAME=freetype 45677 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45678 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45679 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45680 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45681 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45682 # for the .6 version explicitly. 45683 FREETYPE_BASE_NAME=freetype.6 45684 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45685 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45686 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45687 else 45688 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45689 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45690 FOUND_FREETYPE=no 45691 fi 45692 else 45693 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45694 # On Windows, we will need both .lib and .dll file. 45695 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45696 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45697 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45698 FOUND_FREETYPE=no 45699 fi 45700 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45701 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45702 # Found lib in isa dir, use that instead. 45703 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45704 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45705 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45706 fi 45707 fi 45708 fi 45709 45710 if test "x$FOUND_FREETYPE" = xyes; then 45711 45712 # Only process if variable expands to non-empty 45713 45714 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45715 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45716 45717 # Input might be given as Windows format, start by converting to 45718 # unix format. 45719 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45720 new_path=`$CYGPATH -u "$path"` 45721 45722 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45723 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45724 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45725 # "foo.exe" is OK but "foo" is an error. 45726 # 45727 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45728 # It is also a way to make sure we got the proper file name for the real test later on. 45729 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45730 if test "x$test_shortpath" = x; then 45731 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45732 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45733 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45734 fi 45735 45736 # Call helper function which possibly converts this using DOS-style short mode. 45737 # If so, the updated path is stored in $new_path. 45738 45739 input_path="$new_path" 45740 # Check if we need to convert this using DOS-style short mode. If the path 45741 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45742 # take no chances and rewrite it. 45743 # Note: m4 eats our [], so we need to use [ and ] instead. 45744 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45745 if test "x$has_forbidden_chars" != x; then 45746 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45747 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45748 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45749 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45750 # Going to short mode and back again did indeed matter. Since short mode is 45751 # case insensitive, let's make it lowercase to improve readability. 45752 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45753 # Now convert it back to Unix-stile (cygpath) 45754 input_path=`$CYGPATH -u "$shortmode_path"` 45755 new_path="$input_path" 45756 fi 45757 fi 45758 45759 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45760 if test "x$test_cygdrive_prefix" = x; then 45761 # As a simple fix, exclude /usr/bin since it's not a real path. 45762 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45763 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45764 # a path prefixed by /cygdrive for fixpath to work. 45765 new_path="$CYGWIN_ROOT_PATH$input_path" 45766 fi 45767 fi 45768 45769 45770 if test "x$path" != "x$new_path"; then 45771 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45772 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45773 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45774 fi 45775 45776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45777 45778 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45779 has_colon=`$ECHO $path | $GREP ^.:` 45780 new_path="$path" 45781 if test "x$has_colon" = x; then 45782 # Not in mixed or Windows style, start by that. 45783 new_path=`cmd //c echo $path` 45784 fi 45785 45786 45787 input_path="$new_path" 45788 # Check if we need to convert this using DOS-style short mode. If the path 45789 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45790 # take no chances and rewrite it. 45791 # Note: m4 eats our [], so we need to use [ and ] instead. 45792 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45793 if test "x$has_forbidden_chars" != x; then 45794 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45795 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45796 fi 45797 45798 45799 windows_path="$new_path" 45800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45801 unix_path=`$CYGPATH -u "$windows_path"` 45802 new_path="$unix_path" 45803 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45804 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45805 new_path="$unix_path" 45806 fi 45807 45808 if test "x$path" != "x$new_path"; then 45809 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45810 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45811 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45812 fi 45813 45814 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45815 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45816 45817 else 45818 # We're on a unix platform. Hooray! :) 45819 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45820 has_space=`$ECHO "$path" | $GREP " "` 45821 if test "x$has_space" != x; then 45822 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45823 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45824 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45825 fi 45826 45827 # Use eval to expand a potential ~ 45828 eval path="$path" 45829 if test ! -f "$path" && test ! -d "$path"; then 45830 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45831 fi 45832 45833 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45834 fi 45835 fi 45836 45837 45838 # Only process if variable expands to non-empty 45839 45840 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 45841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45842 45843 # Input might be given as Windows format, start by converting to 45844 # unix format. 45845 path="$POTENTIAL_FREETYPE_LIB_PATH" 45846 new_path=`$CYGPATH -u "$path"` 45847 45848 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45849 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45850 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45851 # "foo.exe" is OK but "foo" is an error. 45852 # 45853 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45854 # It is also a way to make sure we got the proper file name for the real test later on. 45855 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45856 if test "x$test_shortpath" = x; then 45857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45858 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45859 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45860 fi 45861 45862 # Call helper function which possibly converts this using DOS-style short mode. 45863 # If so, the updated path is stored in $new_path. 45864 45865 input_path="$new_path" 45866 # Check if we need to convert this using DOS-style short mode. If the path 45867 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45868 # take no chances and rewrite it. 45869 # Note: m4 eats our [], so we need to use [ and ] instead. 45870 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45871 if test "x$has_forbidden_chars" != x; then 45872 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45873 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45874 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45875 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45876 # Going to short mode and back again did indeed matter. Since short mode is 45877 # case insensitive, let's make it lowercase to improve readability. 45878 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45879 # Now convert it back to Unix-stile (cygpath) 45880 input_path=`$CYGPATH -u "$shortmode_path"` 45881 new_path="$input_path" 45882 fi 45883 fi 45884 45885 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45886 if test "x$test_cygdrive_prefix" = x; then 45887 # As a simple fix, exclude /usr/bin since it's not a real path. 45888 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45889 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45890 # a path prefixed by /cygdrive for fixpath to work. 45891 new_path="$CYGWIN_ROOT_PATH$input_path" 45892 fi 45893 fi 45894 45895 45896 if test "x$path" != "x$new_path"; then 45897 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45899 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45900 fi 45901 45902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45903 45904 path="$POTENTIAL_FREETYPE_LIB_PATH" 45905 has_colon=`$ECHO $path | $GREP ^.:` 45906 new_path="$path" 45907 if test "x$has_colon" = x; then 45908 # Not in mixed or Windows style, start by that. 45909 new_path=`cmd //c echo $path` 45910 fi 45911 45912 45913 input_path="$new_path" 45914 # Check if we need to convert this using DOS-style short mode. If the path 45915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45916 # take no chances and rewrite it. 45917 # Note: m4 eats our [], so we need to use [ and ] instead. 45918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45919 if test "x$has_forbidden_chars" != x; then 45920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45921 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45922 fi 45923 45924 45925 windows_path="$new_path" 45926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45927 unix_path=`$CYGPATH -u "$windows_path"` 45928 new_path="$unix_path" 45929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45931 new_path="$unix_path" 45932 fi 45933 45934 if test "x$path" != "x$new_path"; then 45935 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45937 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45938 fi 45939 45940 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45941 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45942 45943 else 45944 # We're on a unix platform. Hooray! :) 45945 path="$POTENTIAL_FREETYPE_LIB_PATH" 45946 has_space=`$ECHO "$path" | $GREP " "` 45947 if test "x$has_space" != x; then 45948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45949 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45950 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45951 fi 45952 45953 # Use eval to expand a potential ~ 45954 eval path="$path" 45955 if test ! -f "$path" && test ! -d "$path"; then 45956 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45957 fi 45958 45959 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45960 fi 45961 fi 45962 45963 45964 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45966 $as_echo_n "checking for freetype includes... " >&6; } 45967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45968 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45969 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45971 $as_echo_n "checking for freetype libraries... " >&6; } 45972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45973 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45974 fi 45975 45976 if test "x$FOUND_FREETYPE" != xyes; then 45977 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45978 45979 windows_path="$FREETYPE_BASE_DIR" 45980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45981 unix_path=`$CYGPATH -u "$windows_path"` 45982 FREETYPE_BASE_DIR="$unix_path" 45983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45984 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45985 FREETYPE_BASE_DIR="$unix_path" 45986 fi 45987 45988 45989 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45990 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45991 METHOD="well-known location" 45992 45993 # Let's start with an optimistic view of the world :-) 45994 FOUND_FREETYPE=yes 45995 45996 # First look for the canonical freetype main include file ft2build.h. 45997 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45998 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45999 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46000 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46001 # Fail. 46002 FOUND_FREETYPE=no 46003 fi 46004 fi 46005 46006 if test "x$FOUND_FREETYPE" = xyes; then 46007 # Include file found, let's continue the sanity check. 46008 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46009 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46010 46011 # Reset to default value 46012 FREETYPE_BASE_NAME=freetype 46013 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46014 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46015 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46016 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46017 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46018 # for the .6 version explicitly. 46019 FREETYPE_BASE_NAME=freetype.6 46020 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46021 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46022 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46023 else 46024 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46025 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46026 FOUND_FREETYPE=no 46027 fi 46028 else 46029 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46030 # On Windows, we will need both .lib and .dll file. 46031 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46032 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46033 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46034 FOUND_FREETYPE=no 46035 fi 46036 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46037 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46038 # Found lib in isa dir, use that instead. 46039 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46040 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46041 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46042 fi 46043 fi 46044 fi 46045 46046 if test "x$FOUND_FREETYPE" = xyes; then 46047 46048 # Only process if variable expands to non-empty 46049 46050 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46052 46053 # Input might be given as Windows format, start by converting to 46054 # unix format. 46055 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46056 new_path=`$CYGPATH -u "$path"` 46057 46058 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46059 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46060 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46061 # "foo.exe" is OK but "foo" is an error. 46062 # 46063 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46064 # It is also a way to make sure we got the proper file name for the real test later on. 46065 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46066 if test "x$test_shortpath" = x; then 46067 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46068 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46069 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46070 fi 46071 46072 # Call helper function which possibly converts this using DOS-style short mode. 46073 # If so, the updated path is stored in $new_path. 46074 46075 input_path="$new_path" 46076 # Check if we need to convert this using DOS-style short mode. If the path 46077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46078 # take no chances and rewrite it. 46079 # Note: m4 eats our [], so we need to use [ and ] instead. 46080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46081 if test "x$has_forbidden_chars" != x; then 46082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46083 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46084 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46085 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46086 # Going to short mode and back again did indeed matter. Since short mode is 46087 # case insensitive, let's make it lowercase to improve readability. 46088 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46089 # Now convert it back to Unix-stile (cygpath) 46090 input_path=`$CYGPATH -u "$shortmode_path"` 46091 new_path="$input_path" 46092 fi 46093 fi 46094 46095 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46096 if test "x$test_cygdrive_prefix" = x; then 46097 # As a simple fix, exclude /usr/bin since it's not a real path. 46098 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46099 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46100 # a path prefixed by /cygdrive for fixpath to work. 46101 new_path="$CYGWIN_ROOT_PATH$input_path" 46102 fi 46103 fi 46104 46105 46106 if test "x$path" != "x$new_path"; then 46107 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46108 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46109 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46110 fi 46111 46112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46113 46114 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46115 has_colon=`$ECHO $path | $GREP ^.:` 46116 new_path="$path" 46117 if test "x$has_colon" = x; then 46118 # Not in mixed or Windows style, start by that. 46119 new_path=`cmd //c echo $path` 46120 fi 46121 46122 46123 input_path="$new_path" 46124 # Check if we need to convert this using DOS-style short mode. If the path 46125 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46126 # take no chances and rewrite it. 46127 # Note: m4 eats our [], so we need to use [ and ] instead. 46128 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46129 if test "x$has_forbidden_chars" != x; then 46130 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46131 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46132 fi 46133 46134 46135 windows_path="$new_path" 46136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46137 unix_path=`$CYGPATH -u "$windows_path"` 46138 new_path="$unix_path" 46139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46140 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46141 new_path="$unix_path" 46142 fi 46143 46144 if test "x$path" != "x$new_path"; then 46145 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46146 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46147 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46148 fi 46149 46150 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46151 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46152 46153 else 46154 # We're on a unix platform. Hooray! :) 46155 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46156 has_space=`$ECHO "$path" | $GREP " "` 46157 if test "x$has_space" != x; then 46158 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46159 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46160 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46161 fi 46162 46163 # Use eval to expand a potential ~ 46164 eval path="$path" 46165 if test ! -f "$path" && test ! -d "$path"; then 46166 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46167 fi 46168 46169 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46170 fi 46171 fi 46172 46173 46174 # Only process if variable expands to non-empty 46175 46176 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46178 46179 # Input might be given as Windows format, start by converting to 46180 # unix format. 46181 path="$POTENTIAL_FREETYPE_LIB_PATH" 46182 new_path=`$CYGPATH -u "$path"` 46183 46184 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46185 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46186 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46187 # "foo.exe" is OK but "foo" is an error. 46188 # 46189 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46190 # It is also a way to make sure we got the proper file name for the real test later on. 46191 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46192 if test "x$test_shortpath" = x; then 46193 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46194 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46195 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46196 fi 46197 46198 # Call helper function which possibly converts this using DOS-style short mode. 46199 # If so, the updated path is stored in $new_path. 46200 46201 input_path="$new_path" 46202 # Check if we need to convert this using DOS-style short mode. If the path 46203 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46204 # take no chances and rewrite it. 46205 # Note: m4 eats our [], so we need to use [ and ] instead. 46206 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46207 if test "x$has_forbidden_chars" != x; then 46208 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46209 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46210 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46211 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46212 # Going to short mode and back again did indeed matter. Since short mode is 46213 # case insensitive, let's make it lowercase to improve readability. 46214 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46215 # Now convert it back to Unix-stile (cygpath) 46216 input_path=`$CYGPATH -u "$shortmode_path"` 46217 new_path="$input_path" 46218 fi 46219 fi 46220 46221 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46222 if test "x$test_cygdrive_prefix" = x; then 46223 # As a simple fix, exclude /usr/bin since it's not a real path. 46224 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46225 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46226 # a path prefixed by /cygdrive for fixpath to work. 46227 new_path="$CYGWIN_ROOT_PATH$input_path" 46228 fi 46229 fi 46230 46231 46232 if test "x$path" != "x$new_path"; then 46233 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46234 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46235 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46236 fi 46237 46238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46239 46240 path="$POTENTIAL_FREETYPE_LIB_PATH" 46241 has_colon=`$ECHO $path | $GREP ^.:` 46242 new_path="$path" 46243 if test "x$has_colon" = x; then 46244 # Not in mixed or Windows style, start by that. 46245 new_path=`cmd //c echo $path` 46246 fi 46247 46248 46249 input_path="$new_path" 46250 # Check if we need to convert this using DOS-style short mode. If the path 46251 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46252 # take no chances and rewrite it. 46253 # Note: m4 eats our [], so we need to use [ and ] instead. 46254 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46255 if test "x$has_forbidden_chars" != x; then 46256 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46257 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46258 fi 46259 46260 46261 windows_path="$new_path" 46262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46263 unix_path=`$CYGPATH -u "$windows_path"` 46264 new_path="$unix_path" 46265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46266 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46267 new_path="$unix_path" 46268 fi 46269 46270 if test "x$path" != "x$new_path"; then 46271 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46272 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46273 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46274 fi 46275 46276 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46277 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46278 46279 else 46280 # We're on a unix platform. Hooray! :) 46281 path="$POTENTIAL_FREETYPE_LIB_PATH" 46282 has_space=`$ECHO "$path" | $GREP " "` 46283 if test "x$has_space" != x; then 46284 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46285 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46286 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46287 fi 46288 46289 # Use eval to expand a potential ~ 46290 eval path="$path" 46291 if test ! -f "$path" && test ! -d "$path"; then 46292 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46293 fi 46294 46295 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46296 fi 46297 fi 46298 46299 46300 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46302 $as_echo_n "checking for freetype includes... " >&6; } 46303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46304 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46305 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46307 $as_echo_n "checking for freetype libraries... " >&6; } 46308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46309 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46310 fi 46311 46312 fi 46313 else 46314 FREETYPE_BASE_DIR="$SYSROOT/usr" 46315 46316 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46317 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46318 METHOD="well-known location" 46319 46320 # Let's start with an optimistic view of the world :-) 46321 FOUND_FREETYPE=yes 46322 46323 # First look for the canonical freetype main include file ft2build.h. 46324 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46325 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46326 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46327 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46328 # Fail. 46329 FOUND_FREETYPE=no 46330 fi 46331 fi 46332 46333 if test "x$FOUND_FREETYPE" = xyes; then 46334 # Include file found, let's continue the sanity check. 46335 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46336 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46337 46338 # Reset to default value 46339 FREETYPE_BASE_NAME=freetype 46340 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46341 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46342 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46343 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46344 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46345 # for the .6 version explicitly. 46346 FREETYPE_BASE_NAME=freetype.6 46347 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46348 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46349 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46350 else 46351 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46352 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46353 FOUND_FREETYPE=no 46354 fi 46355 else 46356 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46357 # On Windows, we will need both .lib and .dll file. 46358 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46359 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46360 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46361 FOUND_FREETYPE=no 46362 fi 46363 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46364 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46365 # Found lib in isa dir, use that instead. 46366 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46367 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46368 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46369 fi 46370 fi 46371 fi 46372 46373 if test "x$FOUND_FREETYPE" = xyes; then 46374 46375 # Only process if variable expands to non-empty 46376 46377 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46379 46380 # Input might be given as Windows format, start by converting to 46381 # unix format. 46382 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46383 new_path=`$CYGPATH -u "$path"` 46384 46385 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46386 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46387 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46388 # "foo.exe" is OK but "foo" is an error. 46389 # 46390 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46391 # It is also a way to make sure we got the proper file name for the real test later on. 46392 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46393 if test "x$test_shortpath" = x; then 46394 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46395 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46396 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46397 fi 46398 46399 # Call helper function which possibly converts this using DOS-style short mode. 46400 # If so, the updated path is stored in $new_path. 46401 46402 input_path="$new_path" 46403 # Check if we need to convert this using DOS-style short mode. If the path 46404 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46405 # take no chances and rewrite it. 46406 # Note: m4 eats our [], so we need to use [ and ] instead. 46407 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46408 if test "x$has_forbidden_chars" != x; then 46409 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46410 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46411 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46412 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46413 # Going to short mode and back again did indeed matter. Since short mode is 46414 # case insensitive, let's make it lowercase to improve readability. 46415 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46416 # Now convert it back to Unix-stile (cygpath) 46417 input_path=`$CYGPATH -u "$shortmode_path"` 46418 new_path="$input_path" 46419 fi 46420 fi 46421 46422 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46423 if test "x$test_cygdrive_prefix" = x; then 46424 # As a simple fix, exclude /usr/bin since it's not a real path. 46425 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46426 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46427 # a path prefixed by /cygdrive for fixpath to work. 46428 new_path="$CYGWIN_ROOT_PATH$input_path" 46429 fi 46430 fi 46431 46432 46433 if test "x$path" != "x$new_path"; then 46434 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46435 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46436 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46437 fi 46438 46439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46440 46441 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46442 has_colon=`$ECHO $path | $GREP ^.:` 46443 new_path="$path" 46444 if test "x$has_colon" = x; then 46445 # Not in mixed or Windows style, start by that. 46446 new_path=`cmd //c echo $path` 46447 fi 46448 46449 46450 input_path="$new_path" 46451 # Check if we need to convert this using DOS-style short mode. If the path 46452 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46453 # take no chances and rewrite it. 46454 # Note: m4 eats our [], so we need to use [ and ] instead. 46455 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46456 if test "x$has_forbidden_chars" != x; then 46457 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46458 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46459 fi 46460 46461 46462 windows_path="$new_path" 46463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46464 unix_path=`$CYGPATH -u "$windows_path"` 46465 new_path="$unix_path" 46466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46467 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46468 new_path="$unix_path" 46469 fi 46470 46471 if test "x$path" != "x$new_path"; then 46472 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46473 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46474 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46475 fi 46476 46477 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46478 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46479 46480 else 46481 # We're on a unix platform. Hooray! :) 46482 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46483 has_space=`$ECHO "$path" | $GREP " "` 46484 if test "x$has_space" != x; then 46485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46486 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46487 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46488 fi 46489 46490 # Use eval to expand a potential ~ 46491 eval path="$path" 46492 if test ! -f "$path" && test ! -d "$path"; then 46493 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46494 fi 46495 46496 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46497 fi 46498 fi 46499 46500 46501 # Only process if variable expands to non-empty 46502 46503 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46505 46506 # Input might be given as Windows format, start by converting to 46507 # unix format. 46508 path="$POTENTIAL_FREETYPE_LIB_PATH" 46509 new_path=`$CYGPATH -u "$path"` 46510 46511 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46512 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46513 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46514 # "foo.exe" is OK but "foo" is an error. 46515 # 46516 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46517 # It is also a way to make sure we got the proper file name for the real test later on. 46518 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46519 if test "x$test_shortpath" = x; then 46520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46521 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46522 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46523 fi 46524 46525 # Call helper function which possibly converts this using DOS-style short mode. 46526 # If so, the updated path is stored in $new_path. 46527 46528 input_path="$new_path" 46529 # Check if we need to convert this using DOS-style short mode. If the path 46530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46531 # take no chances and rewrite it. 46532 # Note: m4 eats our [], so we need to use [ and ] instead. 46533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46534 if test "x$has_forbidden_chars" != x; then 46535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46536 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46537 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46538 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46539 # Going to short mode and back again did indeed matter. Since short mode is 46540 # case insensitive, let's make it lowercase to improve readability. 46541 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46542 # Now convert it back to Unix-stile (cygpath) 46543 input_path=`$CYGPATH -u "$shortmode_path"` 46544 new_path="$input_path" 46545 fi 46546 fi 46547 46548 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46549 if test "x$test_cygdrive_prefix" = x; then 46550 # As a simple fix, exclude /usr/bin since it's not a real path. 46551 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46552 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46553 # a path prefixed by /cygdrive for fixpath to work. 46554 new_path="$CYGWIN_ROOT_PATH$input_path" 46555 fi 46556 fi 46557 46558 46559 if test "x$path" != "x$new_path"; then 46560 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46561 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46562 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46563 fi 46564 46565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46566 46567 path="$POTENTIAL_FREETYPE_LIB_PATH" 46568 has_colon=`$ECHO $path | $GREP ^.:` 46569 new_path="$path" 46570 if test "x$has_colon" = x; then 46571 # Not in mixed or Windows style, start by that. 46572 new_path=`cmd //c echo $path` 46573 fi 46574 46575 46576 input_path="$new_path" 46577 # Check if we need to convert this using DOS-style short mode. If the path 46578 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46579 # take no chances and rewrite it. 46580 # Note: m4 eats our [], so we need to use [ and ] instead. 46581 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46582 if test "x$has_forbidden_chars" != x; then 46583 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46584 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46585 fi 46586 46587 46588 windows_path="$new_path" 46589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46590 unix_path=`$CYGPATH -u "$windows_path"` 46591 new_path="$unix_path" 46592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46594 new_path="$unix_path" 46595 fi 46596 46597 if test "x$path" != "x$new_path"; then 46598 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46599 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46600 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46601 fi 46602 46603 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46604 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46605 46606 else 46607 # We're on a unix platform. Hooray! :) 46608 path="$POTENTIAL_FREETYPE_LIB_PATH" 46609 has_space=`$ECHO "$path" | $GREP " "` 46610 if test "x$has_space" != x; then 46611 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46612 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46613 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46614 fi 46615 46616 # Use eval to expand a potential ~ 46617 eval path="$path" 46618 if test ! -f "$path" && test ! -d "$path"; then 46619 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46620 fi 46621 46622 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46623 fi 46624 fi 46625 46626 46627 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46629 $as_echo_n "checking for freetype includes... " >&6; } 46630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46631 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46632 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46634 $as_echo_n "checking for freetype libraries... " >&6; } 46635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46636 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46637 fi 46638 46639 46640 if test "x$FOUND_FREETYPE" != xyes; then 46641 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 46642 46643 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46644 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46645 METHOD="well-known location" 46646 46647 # Let's start with an optimistic view of the world :-) 46648 FOUND_FREETYPE=yes 46649 46650 # First look for the canonical freetype main include file ft2build.h. 46651 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46652 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46653 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46654 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46655 # Fail. 46656 FOUND_FREETYPE=no 46657 fi 46658 fi 46659 46660 if test "x$FOUND_FREETYPE" = xyes; then 46661 # Include file found, let's continue the sanity check. 46662 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46663 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46664 46665 # Reset to default value 46666 FREETYPE_BASE_NAME=freetype 46667 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46668 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46669 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46670 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46671 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46672 # for the .6 version explicitly. 46673 FREETYPE_BASE_NAME=freetype.6 46674 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46675 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46676 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46677 else 46678 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46679 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46680 FOUND_FREETYPE=no 46681 fi 46682 else 46683 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46684 # On Windows, we will need both .lib and .dll file. 46685 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46686 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46687 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46688 FOUND_FREETYPE=no 46689 fi 46690 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46691 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46692 # Found lib in isa dir, use that instead. 46693 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46694 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46695 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46696 fi 46697 fi 46698 fi 46699 46700 if test "x$FOUND_FREETYPE" = xyes; then 46701 46702 # Only process if variable expands to non-empty 46703 46704 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46706 46707 # Input might be given as Windows format, start by converting to 46708 # unix format. 46709 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46710 new_path=`$CYGPATH -u "$path"` 46711 46712 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46713 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46714 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46715 # "foo.exe" is OK but "foo" is an error. 46716 # 46717 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46718 # It is also a way to make sure we got the proper file name for the real test later on. 46719 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46720 if test "x$test_shortpath" = x; then 46721 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46722 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46723 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46724 fi 46725 46726 # Call helper function which possibly converts this using DOS-style short mode. 46727 # If so, the updated path is stored in $new_path. 46728 46729 input_path="$new_path" 46730 # Check if we need to convert this using DOS-style short mode. If the path 46731 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46732 # take no chances and rewrite it. 46733 # Note: m4 eats our [], so we need to use [ and ] instead. 46734 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46735 if test "x$has_forbidden_chars" != x; then 46736 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46737 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46738 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46739 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46740 # Going to short mode and back again did indeed matter. Since short mode is 46741 # case insensitive, let's make it lowercase to improve readability. 46742 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46743 # Now convert it back to Unix-stile (cygpath) 46744 input_path=`$CYGPATH -u "$shortmode_path"` 46745 new_path="$input_path" 46746 fi 46747 fi 46748 46749 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46750 if test "x$test_cygdrive_prefix" = x; then 46751 # As a simple fix, exclude /usr/bin since it's not a real path. 46752 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46753 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46754 # a path prefixed by /cygdrive for fixpath to work. 46755 new_path="$CYGWIN_ROOT_PATH$input_path" 46756 fi 46757 fi 46758 46759 46760 if test "x$path" != "x$new_path"; then 46761 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46762 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46763 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46764 fi 46765 46766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46767 46768 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46769 has_colon=`$ECHO $path | $GREP ^.:` 46770 new_path="$path" 46771 if test "x$has_colon" = x; then 46772 # Not in mixed or Windows style, start by that. 46773 new_path=`cmd //c echo $path` 46774 fi 46775 46776 46777 input_path="$new_path" 46778 # Check if we need to convert this using DOS-style short mode. If the path 46779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46780 # take no chances and rewrite it. 46781 # Note: m4 eats our [], so we need to use [ and ] instead. 46782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46783 if test "x$has_forbidden_chars" != x; then 46784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46785 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46786 fi 46787 46788 46789 windows_path="$new_path" 46790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46791 unix_path=`$CYGPATH -u "$windows_path"` 46792 new_path="$unix_path" 46793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46794 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46795 new_path="$unix_path" 46796 fi 46797 46798 if test "x$path" != "x$new_path"; then 46799 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46800 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46801 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46802 fi 46803 46804 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46805 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46806 46807 else 46808 # We're on a unix platform. Hooray! :) 46809 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46810 has_space=`$ECHO "$path" | $GREP " "` 46811 if test "x$has_space" != x; then 46812 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46813 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46814 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46815 fi 46816 46817 # Use eval to expand a potential ~ 46818 eval path="$path" 46819 if test ! -f "$path" && test ! -d "$path"; then 46820 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46821 fi 46822 46823 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46824 fi 46825 fi 46826 46827 46828 # Only process if variable expands to non-empty 46829 46830 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46832 46833 # Input might be given as Windows format, start by converting to 46834 # unix format. 46835 path="$POTENTIAL_FREETYPE_LIB_PATH" 46836 new_path=`$CYGPATH -u "$path"` 46837 46838 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46839 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46840 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46841 # "foo.exe" is OK but "foo" is an error. 46842 # 46843 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46844 # It is also a way to make sure we got the proper file name for the real test later on. 46845 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46846 if test "x$test_shortpath" = x; then 46847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46848 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46849 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46850 fi 46851 46852 # Call helper function which possibly converts this using DOS-style short mode. 46853 # If so, the updated path is stored in $new_path. 46854 46855 input_path="$new_path" 46856 # Check if we need to convert this using DOS-style short mode. If the path 46857 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46858 # take no chances and rewrite it. 46859 # Note: m4 eats our [], so we need to use [ and ] instead. 46860 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46861 if test "x$has_forbidden_chars" != x; then 46862 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46863 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46864 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46865 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46866 # Going to short mode and back again did indeed matter. Since short mode is 46867 # case insensitive, let's make it lowercase to improve readability. 46868 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46869 # Now convert it back to Unix-stile (cygpath) 46870 input_path=`$CYGPATH -u "$shortmode_path"` 46871 new_path="$input_path" 46872 fi 46873 fi 46874 46875 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46876 if test "x$test_cygdrive_prefix" = x; then 46877 # As a simple fix, exclude /usr/bin since it's not a real path. 46878 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46879 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46880 # a path prefixed by /cygdrive for fixpath to work. 46881 new_path="$CYGWIN_ROOT_PATH$input_path" 46882 fi 46883 fi 46884 46885 46886 if test "x$path" != "x$new_path"; then 46887 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46888 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46889 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46890 fi 46891 46892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46893 46894 path="$POTENTIAL_FREETYPE_LIB_PATH" 46895 has_colon=`$ECHO $path | $GREP ^.:` 46896 new_path="$path" 46897 if test "x$has_colon" = x; then 46898 # Not in mixed or Windows style, start by that. 46899 new_path=`cmd //c echo $path` 46900 fi 46901 46902 46903 input_path="$new_path" 46904 # Check if we need to convert this using DOS-style short mode. If the path 46905 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46906 # take no chances and rewrite it. 46907 # Note: m4 eats our [], so we need to use [ and ] instead. 46908 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46909 if test "x$has_forbidden_chars" != x; then 46910 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46911 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46912 fi 46913 46914 46915 windows_path="$new_path" 46916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46917 unix_path=`$CYGPATH -u "$windows_path"` 46918 new_path="$unix_path" 46919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46921 new_path="$unix_path" 46922 fi 46923 46924 if test "x$path" != "x$new_path"; then 46925 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46926 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46927 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46928 fi 46929 46930 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46931 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46932 46933 else 46934 # We're on a unix platform. Hooray! :) 46935 path="$POTENTIAL_FREETYPE_LIB_PATH" 46936 has_space=`$ECHO "$path" | $GREP " "` 46937 if test "x$has_space" != x; then 46938 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46939 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46940 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46941 fi 46942 46943 # Use eval to expand a potential ~ 46944 eval path="$path" 46945 if test ! -f "$path" && test ! -d "$path"; then 46946 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46947 fi 46948 46949 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46950 fi 46951 fi 46952 46953 46954 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46956 $as_echo_n "checking for freetype includes... " >&6; } 46957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46958 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46959 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46961 $as_echo_n "checking for freetype libraries... " >&6; } 46962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46963 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46964 fi 46965 46966 fi 46967 46968 if test "x$FOUND_FREETYPE" != xyes; then 46969 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46970 46971 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46972 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46973 METHOD="well-known location" 46974 46975 # Let's start with an optimistic view of the world :-) 46976 FOUND_FREETYPE=yes 46977 46978 # First look for the canonical freetype main include file ft2build.h. 46979 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46980 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46981 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46982 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46983 # Fail. 46984 FOUND_FREETYPE=no 46985 fi 46986 fi 46987 46988 if test "x$FOUND_FREETYPE" = xyes; then 46989 # Include file found, let's continue the sanity check. 46990 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46991 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46992 46993 # Reset to default value 46994 FREETYPE_BASE_NAME=freetype 46995 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46996 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46997 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46998 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46999 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47000 # for the .6 version explicitly. 47001 FREETYPE_BASE_NAME=freetype.6 47002 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47003 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47004 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47005 else 47006 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47007 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47008 FOUND_FREETYPE=no 47009 fi 47010 else 47011 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47012 # On Windows, we will need both .lib and .dll file. 47013 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47014 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47015 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47016 FOUND_FREETYPE=no 47017 fi 47018 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47019 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47020 # Found lib in isa dir, use that instead. 47021 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47022 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47023 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47024 fi 47025 fi 47026 fi 47027 47028 if test "x$FOUND_FREETYPE" = xyes; then 47029 47030 # Only process if variable expands to non-empty 47031 47032 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47034 47035 # Input might be given as Windows format, start by converting to 47036 # unix format. 47037 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47038 new_path=`$CYGPATH -u "$path"` 47039 47040 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47041 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47042 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47043 # "foo.exe" is OK but "foo" is an error. 47044 # 47045 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47046 # It is also a way to make sure we got the proper file name for the real test later on. 47047 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47048 if test "x$test_shortpath" = x; then 47049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47050 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47051 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47052 fi 47053 47054 # Call helper function which possibly converts this using DOS-style short mode. 47055 # If so, the updated path is stored in $new_path. 47056 47057 input_path="$new_path" 47058 # Check if we need to convert this using DOS-style short mode. If the path 47059 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47060 # take no chances and rewrite it. 47061 # Note: m4 eats our [], so we need to use [ and ] instead. 47062 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47063 if test "x$has_forbidden_chars" != x; then 47064 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47065 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47066 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47067 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47068 # Going to short mode and back again did indeed matter. Since short mode is 47069 # case insensitive, let's make it lowercase to improve readability. 47070 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47071 # Now convert it back to Unix-stile (cygpath) 47072 input_path=`$CYGPATH -u "$shortmode_path"` 47073 new_path="$input_path" 47074 fi 47075 fi 47076 47077 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47078 if test "x$test_cygdrive_prefix" = x; then 47079 # As a simple fix, exclude /usr/bin since it's not a real path. 47080 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47081 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47082 # a path prefixed by /cygdrive for fixpath to work. 47083 new_path="$CYGWIN_ROOT_PATH$input_path" 47084 fi 47085 fi 47086 47087 47088 if test "x$path" != "x$new_path"; then 47089 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47090 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47091 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47092 fi 47093 47094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47095 47096 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47097 has_colon=`$ECHO $path | $GREP ^.:` 47098 new_path="$path" 47099 if test "x$has_colon" = x; then 47100 # Not in mixed or Windows style, start by that. 47101 new_path=`cmd //c echo $path` 47102 fi 47103 47104 47105 input_path="$new_path" 47106 # Check if we need to convert this using DOS-style short mode. If the path 47107 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47108 # take no chances and rewrite it. 47109 # Note: m4 eats our [], so we need to use [ and ] instead. 47110 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47111 if test "x$has_forbidden_chars" != x; then 47112 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47113 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47114 fi 47115 47116 47117 windows_path="$new_path" 47118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47119 unix_path=`$CYGPATH -u "$windows_path"` 47120 new_path="$unix_path" 47121 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47122 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47123 new_path="$unix_path" 47124 fi 47125 47126 if test "x$path" != "x$new_path"; then 47127 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47128 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47129 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47130 fi 47131 47132 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47133 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47134 47135 else 47136 # We're on a unix platform. Hooray! :) 47137 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47138 has_space=`$ECHO "$path" | $GREP " "` 47139 if test "x$has_space" != x; then 47140 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47141 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47142 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47143 fi 47144 47145 # Use eval to expand a potential ~ 47146 eval path="$path" 47147 if test ! -f "$path" && test ! -d "$path"; then 47148 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47149 fi 47150 47151 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47152 fi 47153 fi 47154 47155 47156 # Only process if variable expands to non-empty 47157 47158 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47160 47161 # Input might be given as Windows format, start by converting to 47162 # unix format. 47163 path="$POTENTIAL_FREETYPE_LIB_PATH" 47164 new_path=`$CYGPATH -u "$path"` 47165 47166 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47167 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47168 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47169 # "foo.exe" is OK but "foo" is an error. 47170 # 47171 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47172 # It is also a way to make sure we got the proper file name for the real test later on. 47173 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47174 if test "x$test_shortpath" = x; then 47175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47176 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47177 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47178 fi 47179 47180 # Call helper function which possibly converts this using DOS-style short mode. 47181 # If so, the updated path is stored in $new_path. 47182 47183 input_path="$new_path" 47184 # Check if we need to convert this using DOS-style short mode. If the path 47185 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47186 # take no chances and rewrite it. 47187 # Note: m4 eats our [], so we need to use [ and ] instead. 47188 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47189 if test "x$has_forbidden_chars" != x; then 47190 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47191 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47192 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47193 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47194 # Going to short mode and back again did indeed matter. Since short mode is 47195 # case insensitive, let's make it lowercase to improve readability. 47196 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47197 # Now convert it back to Unix-stile (cygpath) 47198 input_path=`$CYGPATH -u "$shortmode_path"` 47199 new_path="$input_path" 47200 fi 47201 fi 47202 47203 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47204 if test "x$test_cygdrive_prefix" = x; then 47205 # As a simple fix, exclude /usr/bin since it's not a real path. 47206 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47207 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47208 # a path prefixed by /cygdrive for fixpath to work. 47209 new_path="$CYGWIN_ROOT_PATH$input_path" 47210 fi 47211 fi 47212 47213 47214 if test "x$path" != "x$new_path"; then 47215 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47216 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47217 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47218 fi 47219 47220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47221 47222 path="$POTENTIAL_FREETYPE_LIB_PATH" 47223 has_colon=`$ECHO $path | $GREP ^.:` 47224 new_path="$path" 47225 if test "x$has_colon" = x; then 47226 # Not in mixed or Windows style, start by that. 47227 new_path=`cmd //c echo $path` 47228 fi 47229 47230 47231 input_path="$new_path" 47232 # Check if we need to convert this using DOS-style short mode. If the path 47233 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47234 # take no chances and rewrite it. 47235 # Note: m4 eats our [], so we need to use [ and ] instead. 47236 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47237 if test "x$has_forbidden_chars" != x; then 47238 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47239 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47240 fi 47241 47242 47243 windows_path="$new_path" 47244 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47245 unix_path=`$CYGPATH -u "$windows_path"` 47246 new_path="$unix_path" 47247 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47248 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47249 new_path="$unix_path" 47250 fi 47251 47252 if test "x$path" != "x$new_path"; then 47253 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47254 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47255 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47256 fi 47257 47258 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47259 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47260 47261 else 47262 # We're on a unix platform. Hooray! :) 47263 path="$POTENTIAL_FREETYPE_LIB_PATH" 47264 has_space=`$ECHO "$path" | $GREP " "` 47265 if test "x$has_space" != x; then 47266 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47267 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47268 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47269 fi 47270 47271 # Use eval to expand a potential ~ 47272 eval path="$path" 47273 if test ! -f "$path" && test ! -d "$path"; then 47274 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47275 fi 47276 47277 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47278 fi 47279 fi 47280 47281 47282 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47284 $as_echo_n "checking for freetype includes... " >&6; } 47285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47286 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47287 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47289 $as_echo_n "checking for freetype libraries... " >&6; } 47290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47291 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47292 fi 47293 47294 fi 47295 47296 if test "x$FOUND_FREETYPE" != xyes; then 47297 FREETYPE_BASE_DIR="$SYSROOT/usr" 47298 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47299 47300 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47301 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 47302 METHOD="well-known location" 47303 47304 # Let's start with an optimistic view of the world :-) 47305 FOUND_FREETYPE=yes 47306 47307 # First look for the canonical freetype main include file ft2build.h. 47308 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47309 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47310 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47311 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47312 # Fail. 47313 FOUND_FREETYPE=no 47314 fi 47315 fi 47316 47317 if test "x$FOUND_FREETYPE" = xyes; then 47318 # Include file found, let's continue the sanity check. 47319 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47320 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47321 47322 # Reset to default value 47323 FREETYPE_BASE_NAME=freetype 47324 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47325 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47326 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47327 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47328 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47329 # for the .6 version explicitly. 47330 FREETYPE_BASE_NAME=freetype.6 47331 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47332 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47333 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47334 else 47335 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47336 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47337 FOUND_FREETYPE=no 47338 fi 47339 else 47340 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47341 # On Windows, we will need both .lib and .dll file. 47342 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47343 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47344 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47345 FOUND_FREETYPE=no 47346 fi 47347 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47348 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47349 # Found lib in isa dir, use that instead. 47350 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47351 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47352 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47353 fi 47354 fi 47355 fi 47356 47357 if test "x$FOUND_FREETYPE" = xyes; then 47358 47359 # Only process if variable expands to non-empty 47360 47361 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47363 47364 # Input might be given as Windows format, start by converting to 47365 # unix format. 47366 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47367 new_path=`$CYGPATH -u "$path"` 47368 47369 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47370 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47371 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47372 # "foo.exe" is OK but "foo" is an error. 47373 # 47374 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47375 # It is also a way to make sure we got the proper file name for the real test later on. 47376 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47377 if test "x$test_shortpath" = x; then 47378 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47379 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47380 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47381 fi 47382 47383 # Call helper function which possibly converts this using DOS-style short mode. 47384 # If so, the updated path is stored in $new_path. 47385 47386 input_path="$new_path" 47387 # Check if we need to convert this using DOS-style short mode. If the path 47388 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47389 # take no chances and rewrite it. 47390 # Note: m4 eats our [], so we need to use [ and ] instead. 47391 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47392 if test "x$has_forbidden_chars" != x; then 47393 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47394 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47395 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47396 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47397 # Going to short mode and back again did indeed matter. Since short mode is 47398 # case insensitive, let's make it lowercase to improve readability. 47399 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47400 # Now convert it back to Unix-stile (cygpath) 47401 input_path=`$CYGPATH -u "$shortmode_path"` 47402 new_path="$input_path" 47403 fi 47404 fi 47405 47406 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47407 if test "x$test_cygdrive_prefix" = x; then 47408 # As a simple fix, exclude /usr/bin since it's not a real path. 47409 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47410 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47411 # a path prefixed by /cygdrive for fixpath to work. 47412 new_path="$CYGWIN_ROOT_PATH$input_path" 47413 fi 47414 fi 47415 47416 47417 if test "x$path" != "x$new_path"; then 47418 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47419 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47420 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47421 fi 47422 47423 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47424 47425 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47426 has_colon=`$ECHO $path | $GREP ^.:` 47427 new_path="$path" 47428 if test "x$has_colon" = x; then 47429 # Not in mixed or Windows style, start by that. 47430 new_path=`cmd //c echo $path` 47431 fi 47432 47433 47434 input_path="$new_path" 47435 # Check if we need to convert this using DOS-style short mode. If the path 47436 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47437 # take no chances and rewrite it. 47438 # Note: m4 eats our [], so we need to use [ and ] instead. 47439 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47440 if test "x$has_forbidden_chars" != x; then 47441 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47442 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47443 fi 47444 47445 47446 windows_path="$new_path" 47447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47448 unix_path=`$CYGPATH -u "$windows_path"` 47449 new_path="$unix_path" 47450 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47451 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47452 new_path="$unix_path" 47453 fi 47454 47455 if test "x$path" != "x$new_path"; then 47456 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47457 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47458 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47459 fi 47460 47461 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47462 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47463 47464 else 47465 # We're on a unix platform. Hooray! :) 47466 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47467 has_space=`$ECHO "$path" | $GREP " "` 47468 if test "x$has_space" != x; then 47469 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47470 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47471 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47472 fi 47473 47474 # Use eval to expand a potential ~ 47475 eval path="$path" 47476 if test ! -f "$path" && test ! -d "$path"; then 47477 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47478 fi 47479 47480 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47481 fi 47482 fi 47483 47484 47485 # Only process if variable expands to non-empty 47486 47487 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47488 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47489 47490 # Input might be given as Windows format, start by converting to 47491 # unix format. 47492 path="$POTENTIAL_FREETYPE_LIB_PATH" 47493 new_path=`$CYGPATH -u "$path"` 47494 47495 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47496 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47497 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47498 # "foo.exe" is OK but "foo" is an error. 47499 # 47500 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47501 # It is also a way to make sure we got the proper file name for the real test later on. 47502 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47503 if test "x$test_shortpath" = x; then 47504 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47505 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47506 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47507 fi 47508 47509 # Call helper function which possibly converts this using DOS-style short mode. 47510 # If so, the updated path is stored in $new_path. 47511 47512 input_path="$new_path" 47513 # Check if we need to convert this using DOS-style short mode. If the path 47514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47515 # take no chances and rewrite it. 47516 # Note: m4 eats our [], so we need to use [ and ] instead. 47517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47518 if test "x$has_forbidden_chars" != x; then 47519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47520 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47521 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47522 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47523 # Going to short mode and back again did indeed matter. Since short mode is 47524 # case insensitive, let's make it lowercase to improve readability. 47525 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47526 # Now convert it back to Unix-stile (cygpath) 47527 input_path=`$CYGPATH -u "$shortmode_path"` 47528 new_path="$input_path" 47529 fi 47530 fi 47531 47532 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47533 if test "x$test_cygdrive_prefix" = x; then 47534 # As a simple fix, exclude /usr/bin since it's not a real path. 47535 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47536 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47537 # a path prefixed by /cygdrive for fixpath to work. 47538 new_path="$CYGWIN_ROOT_PATH$input_path" 47539 fi 47540 fi 47541 47542 47543 if test "x$path" != "x$new_path"; then 47544 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47545 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47546 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47547 fi 47548 47549 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47550 47551 path="$POTENTIAL_FREETYPE_LIB_PATH" 47552 has_colon=`$ECHO $path | $GREP ^.:` 47553 new_path="$path" 47554 if test "x$has_colon" = x; then 47555 # Not in mixed or Windows style, start by that. 47556 new_path=`cmd //c echo $path` 47557 fi 47558 47559 47560 input_path="$new_path" 47561 # Check if we need to convert this using DOS-style short mode. If the path 47562 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47563 # take no chances and rewrite it. 47564 # Note: m4 eats our [], so we need to use [ and ] instead. 47565 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47566 if test "x$has_forbidden_chars" != x; then 47567 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47568 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47569 fi 47570 47571 47572 windows_path="$new_path" 47573 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47574 unix_path=`$CYGPATH -u "$windows_path"` 47575 new_path="$unix_path" 47576 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47577 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47578 new_path="$unix_path" 47579 fi 47580 47581 if test "x$path" != "x$new_path"; then 47582 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47583 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47584 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47585 fi 47586 47587 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47588 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47589 47590 else 47591 # We're on a unix platform. Hooray! :) 47592 path="$POTENTIAL_FREETYPE_LIB_PATH" 47593 has_space=`$ECHO "$path" | $GREP " "` 47594 if test "x$has_space" != x; then 47595 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47596 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47597 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47598 fi 47599 47600 # Use eval to expand a potential ~ 47601 eval path="$path" 47602 if test ! -f "$path" && test ! -d "$path"; then 47603 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47604 fi 47605 47606 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47607 fi 47608 fi 47609 47610 47611 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47613 $as_echo_n "checking for freetype includes... " >&6; } 47614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47615 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47616 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47618 $as_echo_n "checking for freetype libraries... " >&6; } 47619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47620 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47621 fi 47622 47623 else 47624 47625 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47626 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 47627 METHOD="well-known location" 47628 47629 # Let's start with an optimistic view of the world :-) 47630 FOUND_FREETYPE=yes 47631 47632 # First look for the canonical freetype main include file ft2build.h. 47633 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47634 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47635 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47636 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47637 # Fail. 47638 FOUND_FREETYPE=no 47639 fi 47640 fi 47641 47642 if test "x$FOUND_FREETYPE" = xyes; then 47643 # Include file found, let's continue the sanity check. 47644 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47645 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47646 47647 # Reset to default value 47648 FREETYPE_BASE_NAME=freetype 47649 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47650 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47651 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47652 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47653 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47654 # for the .6 version explicitly. 47655 FREETYPE_BASE_NAME=freetype.6 47656 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47657 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47658 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47659 else 47660 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47661 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47662 FOUND_FREETYPE=no 47663 fi 47664 else 47665 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47666 # On Windows, we will need both .lib and .dll file. 47667 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47668 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47669 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47670 FOUND_FREETYPE=no 47671 fi 47672 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47673 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47674 # Found lib in isa dir, use that instead. 47675 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47676 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47677 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47678 fi 47679 fi 47680 fi 47681 47682 if test "x$FOUND_FREETYPE" = xyes; then 47683 47684 # Only process if variable expands to non-empty 47685 47686 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47688 47689 # Input might be given as Windows format, start by converting to 47690 # unix format. 47691 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47692 new_path=`$CYGPATH -u "$path"` 47693 47694 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47695 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47696 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47697 # "foo.exe" is OK but "foo" is an error. 47698 # 47699 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47700 # It is also a way to make sure we got the proper file name for the real test later on. 47701 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47702 if test "x$test_shortpath" = x; then 47703 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47704 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47705 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47706 fi 47707 47708 # Call helper function which possibly converts this using DOS-style short mode. 47709 # If so, the updated path is stored in $new_path. 47710 47711 input_path="$new_path" 47712 # Check if we need to convert this using DOS-style short mode. If the path 47713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47714 # take no chances and rewrite it. 47715 # Note: m4 eats our [], so we need to use [ and ] instead. 47716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47717 if test "x$has_forbidden_chars" != x; then 47718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47719 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47720 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47721 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47722 # Going to short mode and back again did indeed matter. Since short mode is 47723 # case insensitive, let's make it lowercase to improve readability. 47724 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47725 # Now convert it back to Unix-stile (cygpath) 47726 input_path=`$CYGPATH -u "$shortmode_path"` 47727 new_path="$input_path" 47728 fi 47729 fi 47730 47731 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47732 if test "x$test_cygdrive_prefix" = x; then 47733 # As a simple fix, exclude /usr/bin since it's not a real path. 47734 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47735 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47736 # a path prefixed by /cygdrive for fixpath to work. 47737 new_path="$CYGWIN_ROOT_PATH$input_path" 47738 fi 47739 fi 47740 47741 47742 if test "x$path" != "x$new_path"; then 47743 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47744 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47745 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47746 fi 47747 47748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47749 47750 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47751 has_colon=`$ECHO $path | $GREP ^.:` 47752 new_path="$path" 47753 if test "x$has_colon" = x; then 47754 # Not in mixed or Windows style, start by that. 47755 new_path=`cmd //c echo $path` 47756 fi 47757 47758 47759 input_path="$new_path" 47760 # Check if we need to convert this using DOS-style short mode. If the path 47761 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47762 # take no chances and rewrite it. 47763 # Note: m4 eats our [], so we need to use [ and ] instead. 47764 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47765 if test "x$has_forbidden_chars" != x; then 47766 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47767 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47768 fi 47769 47770 47771 windows_path="$new_path" 47772 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47773 unix_path=`$CYGPATH -u "$windows_path"` 47774 new_path="$unix_path" 47775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47776 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47777 new_path="$unix_path" 47778 fi 47779 47780 if test "x$path" != "x$new_path"; then 47781 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47782 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47783 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47784 fi 47785 47786 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47787 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47788 47789 else 47790 # We're on a unix platform. Hooray! :) 47791 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47792 has_space=`$ECHO "$path" | $GREP " "` 47793 if test "x$has_space" != x; then 47794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47795 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47796 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47797 fi 47798 47799 # Use eval to expand a potential ~ 47800 eval path="$path" 47801 if test ! -f "$path" && test ! -d "$path"; then 47802 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47803 fi 47804 47805 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47806 fi 47807 fi 47808 47809 47810 # Only process if variable expands to non-empty 47811 47812 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47814 47815 # Input might be given as Windows format, start by converting to 47816 # unix format. 47817 path="$POTENTIAL_FREETYPE_LIB_PATH" 47818 new_path=`$CYGPATH -u "$path"` 47819 47820 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47821 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47822 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47823 # "foo.exe" is OK but "foo" is an error. 47824 # 47825 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47826 # It is also a way to make sure we got the proper file name for the real test later on. 47827 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47828 if test "x$test_shortpath" = x; then 47829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47830 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47831 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47832 fi 47833 47834 # Call helper function which possibly converts this using DOS-style short mode. 47835 # If so, the updated path is stored in $new_path. 47836 47837 input_path="$new_path" 47838 # Check if we need to convert this using DOS-style short mode. If the path 47839 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47840 # take no chances and rewrite it. 47841 # Note: m4 eats our [], so we need to use [ and ] instead. 47842 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47843 if test "x$has_forbidden_chars" != x; then 47844 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47845 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47846 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47847 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47848 # Going to short mode and back again did indeed matter. Since short mode is 47849 # case insensitive, let's make it lowercase to improve readability. 47850 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47851 # Now convert it back to Unix-stile (cygpath) 47852 input_path=`$CYGPATH -u "$shortmode_path"` 47853 new_path="$input_path" 47854 fi 47855 fi 47856 47857 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47858 if test "x$test_cygdrive_prefix" = x; then 47859 # As a simple fix, exclude /usr/bin since it's not a real path. 47860 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47861 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47862 # a path prefixed by /cygdrive for fixpath to work. 47863 new_path="$CYGWIN_ROOT_PATH$input_path" 47864 fi 47865 fi 47866 47867 47868 if test "x$path" != "x$new_path"; then 47869 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47870 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47871 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47872 fi 47873 47874 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47875 47876 path="$POTENTIAL_FREETYPE_LIB_PATH" 47877 has_colon=`$ECHO $path | $GREP ^.:` 47878 new_path="$path" 47879 if test "x$has_colon" = x; then 47880 # Not in mixed or Windows style, start by that. 47881 new_path=`cmd //c echo $path` 47882 fi 47883 47884 47885 input_path="$new_path" 47886 # Check if we need to convert this using DOS-style short mode. If the path 47887 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47888 # take no chances and rewrite it. 47889 # Note: m4 eats our [], so we need to use [ and ] instead. 47890 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47891 if test "x$has_forbidden_chars" != x; then 47892 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47893 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47894 fi 47895 47896 47897 windows_path="$new_path" 47898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47899 unix_path=`$CYGPATH -u "$windows_path"` 47900 new_path="$unix_path" 47901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47902 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47903 new_path="$unix_path" 47904 fi 47905 47906 if test "x$path" != "x$new_path"; then 47907 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47908 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47909 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47910 fi 47911 47912 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47913 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47914 47915 else 47916 # We're on a unix platform. Hooray! :) 47917 path="$POTENTIAL_FREETYPE_LIB_PATH" 47918 has_space=`$ECHO "$path" | $GREP " "` 47919 if test "x$has_space" != x; then 47920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47921 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47922 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47923 fi 47924 47925 # Use eval to expand a potential ~ 47926 eval path="$path" 47927 if test ! -f "$path" && test ! -d "$path"; then 47928 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47929 fi 47930 47931 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47932 fi 47933 fi 47934 47935 47936 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47938 $as_echo_n "checking for freetype includes... " >&6; } 47939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47940 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47941 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47943 $as_echo_n "checking for freetype libraries... " >&6; } 47944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47945 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47946 fi 47947 47948 if test "x$FOUND_FREETYPE" != xyes; then 47949 47950 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47951 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47952 METHOD="well-known location" 47953 47954 # Let's start with an optimistic view of the world :-) 47955 FOUND_FREETYPE=yes 47956 47957 # First look for the canonical freetype main include file ft2build.h. 47958 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47959 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47960 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47961 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47962 # Fail. 47963 FOUND_FREETYPE=no 47964 fi 47965 fi 47966 47967 if test "x$FOUND_FREETYPE" = xyes; then 47968 # Include file found, let's continue the sanity check. 47969 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47970 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47971 47972 # Reset to default value 47973 FREETYPE_BASE_NAME=freetype 47974 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47975 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47976 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47977 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47978 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47979 # for the .6 version explicitly. 47980 FREETYPE_BASE_NAME=freetype.6 47981 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47982 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47983 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47984 else 47985 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47986 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47987 FOUND_FREETYPE=no 47988 fi 47989 else 47990 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47991 # On Windows, we will need both .lib and .dll file. 47992 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47993 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47994 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47995 FOUND_FREETYPE=no 47996 fi 47997 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47998 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47999 # Found lib in isa dir, use that instead. 48000 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 48001 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 48002 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 48003 fi 48004 fi 48005 fi 48006 48007 if test "x$FOUND_FREETYPE" = xyes; then 48008 48009 # Only process if variable expands to non-empty 48010 48011 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 48012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48013 48014 # Input might be given as Windows format, start by converting to 48015 # unix format. 48016 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48017 new_path=`$CYGPATH -u "$path"` 48018 48019 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48020 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48021 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48022 # "foo.exe" is OK but "foo" is an error. 48023 # 48024 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48025 # It is also a way to make sure we got the proper file name for the real test later on. 48026 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48027 if test "x$test_shortpath" = x; then 48028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48029 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48030 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 48031 fi 48032 48033 # Call helper function which possibly converts this using DOS-style short mode. 48034 # If so, the updated path is stored in $new_path. 48035 48036 input_path="$new_path" 48037 # Check if we need to convert this using DOS-style short mode. If the path 48038 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48039 # take no chances and rewrite it. 48040 # Note: m4 eats our [], so we need to use [ and ] instead. 48041 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48042 if test "x$has_forbidden_chars" != x; then 48043 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48044 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48045 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48046 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48047 # Going to short mode and back again did indeed matter. Since short mode is 48048 # case insensitive, let's make it lowercase to improve readability. 48049 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48050 # Now convert it back to Unix-stile (cygpath) 48051 input_path=`$CYGPATH -u "$shortmode_path"` 48052 new_path="$input_path" 48053 fi 48054 fi 48055 48056 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48057 if test "x$test_cygdrive_prefix" = x; then 48058 # As a simple fix, exclude /usr/bin since it's not a real path. 48059 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48060 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48061 # a path prefixed by /cygdrive for fixpath to work. 48062 new_path="$CYGWIN_ROOT_PATH$input_path" 48063 fi 48064 fi 48065 48066 48067 if test "x$path" != "x$new_path"; then 48068 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 48069 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48070 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48071 fi 48072 48073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48074 48075 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48076 has_colon=`$ECHO $path | $GREP ^.:` 48077 new_path="$path" 48078 if test "x$has_colon" = x; then 48079 # Not in mixed or Windows style, start by that. 48080 new_path=`cmd //c echo $path` 48081 fi 48082 48083 48084 input_path="$new_path" 48085 # Check if we need to convert this using DOS-style short mode. If the path 48086 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48087 # take no chances and rewrite it. 48088 # Note: m4 eats our [], so we need to use [ and ] instead. 48089 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48090 if test "x$has_forbidden_chars" != x; then 48091 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48092 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48093 fi 48094 48095 48096 windows_path="$new_path" 48097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48098 unix_path=`$CYGPATH -u "$windows_path"` 48099 new_path="$unix_path" 48100 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48101 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48102 new_path="$unix_path" 48103 fi 48104 48105 if test "x$path" != "x$new_path"; then 48106 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 48107 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48108 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48109 fi 48110 48111 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48112 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48113 48114 else 48115 # We're on a unix platform. Hooray! :) 48116 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48117 has_space=`$ECHO "$path" | $GREP " "` 48118 if test "x$has_space" != x; then 48119 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48120 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48121 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48122 fi 48123 48124 # Use eval to expand a potential ~ 48125 eval path="$path" 48126 if test ! -f "$path" && test ! -d "$path"; then 48127 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48128 fi 48129 48130 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48131 fi 48132 fi 48133 48134 48135 # Only process if variable expands to non-empty 48136 48137 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 48138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48139 48140 # Input might be given as Windows format, start by converting to 48141 # unix format. 48142 path="$POTENTIAL_FREETYPE_LIB_PATH" 48143 new_path=`$CYGPATH -u "$path"` 48144 48145 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48146 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48147 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48148 # "foo.exe" is OK but "foo" is an error. 48149 # 48150 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48151 # It is also a way to make sure we got the proper file name for the real test later on. 48152 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48153 if test "x$test_shortpath" = x; then 48154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48155 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48156 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 48157 fi 48158 48159 # Call helper function which possibly converts this using DOS-style short mode. 48160 # If so, the updated path is stored in $new_path. 48161 48162 input_path="$new_path" 48163 # Check if we need to convert this using DOS-style short mode. If the path 48164 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48165 # take no chances and rewrite it. 48166 # Note: m4 eats our [], so we need to use [ and ] instead. 48167 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48168 if test "x$has_forbidden_chars" != x; then 48169 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48170 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48171 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48172 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48173 # Going to short mode and back again did indeed matter. Since short mode is 48174 # case insensitive, let's make it lowercase to improve readability. 48175 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48176 # Now convert it back to Unix-stile (cygpath) 48177 input_path=`$CYGPATH -u "$shortmode_path"` 48178 new_path="$input_path" 48179 fi 48180 fi 48181 48182 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48183 if test "x$test_cygdrive_prefix" = x; then 48184 # As a simple fix, exclude /usr/bin since it's not a real path. 48185 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48186 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48187 # a path prefixed by /cygdrive for fixpath to work. 48188 new_path="$CYGWIN_ROOT_PATH$input_path" 48189 fi 48190 fi 48191 48192 48193 if test "x$path" != "x$new_path"; then 48194 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48196 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48197 fi 48198 48199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48200 48201 path="$POTENTIAL_FREETYPE_LIB_PATH" 48202 has_colon=`$ECHO $path | $GREP ^.:` 48203 new_path="$path" 48204 if test "x$has_colon" = x; then 48205 # Not in mixed or Windows style, start by that. 48206 new_path=`cmd //c echo $path` 48207 fi 48208 48209 48210 input_path="$new_path" 48211 # Check if we need to convert this using DOS-style short mode. If the path 48212 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48213 # take no chances and rewrite it. 48214 # Note: m4 eats our [], so we need to use [ and ] instead. 48215 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48216 if test "x$has_forbidden_chars" != x; then 48217 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48218 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48219 fi 48220 48221 48222 windows_path="$new_path" 48223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48224 unix_path=`$CYGPATH -u "$windows_path"` 48225 new_path="$unix_path" 48226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48227 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48228 new_path="$unix_path" 48229 fi 48230 48231 if test "x$path" != "x$new_path"; then 48232 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48234 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48235 fi 48236 48237 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48238 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48239 48240 else 48241 # We're on a unix platform. Hooray! :) 48242 path="$POTENTIAL_FREETYPE_LIB_PATH" 48243 has_space=`$ECHO "$path" | $GREP " "` 48244 if test "x$has_space" != x; then 48245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48246 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48247 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48248 fi 48249 48250 # Use eval to expand a potential ~ 48251 eval path="$path" 48252 if test ! -f "$path" && test ! -d "$path"; then 48253 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48254 fi 48255 48256 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48257 fi 48258 fi 48259 48260 48261 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 48263 $as_echo_n "checking for freetype includes... " >&6; } 48264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 48265 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 48266 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 48267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 48268 $as_echo_n "checking for freetype libraries... " >&6; } 48269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 48270 $as_echo "$FREETYPE_LIB_PATH" >&6; } 48271 fi 48272 48273 fi 48274 fi 48275 fi 48276 fi 48277 fi # end check in well-known locations 48278 48279 if test "x$FOUND_FREETYPE" != xyes; then 48280 48281 # Print a helpful message on how to acquire the necessary build dependency. 48282 # freetype is the help tag: freetype, cups, pulse, alsa etc 48283 MISSING_DEPENDENCY=freetype 48284 48285 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48286 cygwin_help $MISSING_DEPENDENCY 48287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48288 msys_help $MISSING_DEPENDENCY 48289 else 48290 PKGHANDLER_COMMAND= 48291 48292 case $PKGHANDLER in 48293 apt-get) 48294 apt_help $MISSING_DEPENDENCY ;; 48295 yum) 48296 yum_help $MISSING_DEPENDENCY ;; 48297 port) 48298 port_help $MISSING_DEPENDENCY ;; 48299 pkgutil) 48300 pkgutil_help $MISSING_DEPENDENCY ;; 48301 pkgadd) 48302 pkgadd_help $MISSING_DEPENDENCY ;; 48303 esac 48304 48305 if test "x$PKGHANDLER_COMMAND" != x; then 48306 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48307 fi 48308 fi 48309 48310 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 48311 fi 48312 fi # end user specified settings 48313 48314 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 48315 if test "x$FREETYPE_CFLAGS" = x; then 48316 48317 # Only process if variable expands to non-empty 48318 48319 if test "x$FREETYPE_INCLUDE_PATH" != x; then 48320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48321 48322 # Input might be given as Windows format, start by converting to 48323 # unix format. 48324 path="$FREETYPE_INCLUDE_PATH" 48325 new_path=`$CYGPATH -u "$path"` 48326 48327 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48328 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48329 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48330 # "foo.exe" is OK but "foo" is an error. 48331 # 48332 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48333 # It is also a way to make sure we got the proper file name for the real test later on. 48334 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48335 if test "x$test_shortpath" = x; then 48336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48337 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48338 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 48339 fi 48340 48341 # Call helper function which possibly converts this using DOS-style short mode. 48342 # If so, the updated path is stored in $new_path. 48343 48344 input_path="$new_path" 48345 # Check if we need to convert this using DOS-style short mode. If the path 48346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48347 # take no chances and rewrite it. 48348 # Note: m4 eats our [], so we need to use [ and ] instead. 48349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48350 if test "x$has_forbidden_chars" != x; then 48351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48352 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48353 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48354 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48355 # Going to short mode and back again did indeed matter. Since short mode is 48356 # case insensitive, let's make it lowercase to improve readability. 48357 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48358 # Now convert it back to Unix-stile (cygpath) 48359 input_path=`$CYGPATH -u "$shortmode_path"` 48360 new_path="$input_path" 48361 fi 48362 fi 48363 48364 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48365 if test "x$test_cygdrive_prefix" = x; then 48366 # As a simple fix, exclude /usr/bin since it's not a real path. 48367 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48368 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48369 # a path prefixed by /cygdrive for fixpath to work. 48370 new_path="$CYGWIN_ROOT_PATH$input_path" 48371 fi 48372 fi 48373 48374 48375 if test "x$path" != "x$new_path"; then 48376 FREETYPE_INCLUDE_PATH="$new_path" 48377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48378 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48379 fi 48380 48381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48382 48383 path="$FREETYPE_INCLUDE_PATH" 48384 has_colon=`$ECHO $path | $GREP ^.:` 48385 new_path="$path" 48386 if test "x$has_colon" = x; then 48387 # Not in mixed or Windows style, start by that. 48388 new_path=`cmd //c echo $path` 48389 fi 48390 48391 48392 input_path="$new_path" 48393 # Check if we need to convert this using DOS-style short mode. If the path 48394 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48395 # take no chances and rewrite it. 48396 # Note: m4 eats our [], so we need to use [ and ] instead. 48397 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48398 if test "x$has_forbidden_chars" != x; then 48399 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48400 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48401 fi 48402 48403 48404 windows_path="$new_path" 48405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48406 unix_path=`$CYGPATH -u "$windows_path"` 48407 new_path="$unix_path" 48408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48410 new_path="$unix_path" 48411 fi 48412 48413 if test "x$path" != "x$new_path"; then 48414 FREETYPE_INCLUDE_PATH="$new_path" 48415 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48416 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48417 fi 48418 48419 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48420 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48421 48422 else 48423 # We're on a unix platform. Hooray! :) 48424 path="$FREETYPE_INCLUDE_PATH" 48425 has_space=`$ECHO "$path" | $GREP " "` 48426 if test "x$has_space" != x; then 48427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48428 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48429 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48430 fi 48431 48432 # Use eval to expand a potential ~ 48433 eval path="$path" 48434 if test ! -f "$path" && test ! -d "$path"; then 48435 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48436 fi 48437 48438 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48439 fi 48440 fi 48441 48442 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 48443 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 48444 else 48445 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 48446 fi 48447 fi 48448 48449 if test "x$FREETYPE_LIBS" = x; then 48450 48451 # Only process if variable expands to non-empty 48452 48453 if test "x$FREETYPE_LIB_PATH" != x; then 48454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48455 48456 # Input might be given as Windows format, start by converting to 48457 # unix format. 48458 path="$FREETYPE_LIB_PATH" 48459 new_path=`$CYGPATH -u "$path"` 48460 48461 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48462 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48463 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48464 # "foo.exe" is OK but "foo" is an error. 48465 # 48466 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48467 # It is also a way to make sure we got the proper file name for the real test later on. 48468 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48469 if test "x$test_shortpath" = x; then 48470 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48471 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48472 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 48473 fi 48474 48475 # Call helper function which possibly converts this using DOS-style short mode. 48476 # If so, the updated path is stored in $new_path. 48477 48478 input_path="$new_path" 48479 # Check if we need to convert this using DOS-style short mode. If the path 48480 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48481 # take no chances and rewrite it. 48482 # Note: m4 eats our [], so we need to use [ and ] instead. 48483 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48484 if test "x$has_forbidden_chars" != x; then 48485 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48486 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48487 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48488 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48489 # Going to short mode and back again did indeed matter. Since short mode is 48490 # case insensitive, let's make it lowercase to improve readability. 48491 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48492 # Now convert it back to Unix-stile (cygpath) 48493 input_path=`$CYGPATH -u "$shortmode_path"` 48494 new_path="$input_path" 48495 fi 48496 fi 48497 48498 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48499 if test "x$test_cygdrive_prefix" = x; then 48500 # As a simple fix, exclude /usr/bin since it's not a real path. 48501 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48502 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48503 # a path prefixed by /cygdrive for fixpath to work. 48504 new_path="$CYGWIN_ROOT_PATH$input_path" 48505 fi 48506 fi 48507 48508 48509 if test "x$path" != "x$new_path"; then 48510 FREETYPE_LIB_PATH="$new_path" 48511 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48512 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48513 fi 48514 48515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48516 48517 path="$FREETYPE_LIB_PATH" 48518 has_colon=`$ECHO $path | $GREP ^.:` 48519 new_path="$path" 48520 if test "x$has_colon" = x; then 48521 # Not in mixed or Windows style, start by that. 48522 new_path=`cmd //c echo $path` 48523 fi 48524 48525 48526 input_path="$new_path" 48527 # Check if we need to convert this using DOS-style short mode. If the path 48528 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48529 # take no chances and rewrite it. 48530 # Note: m4 eats our [], so we need to use [ and ] instead. 48531 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48532 if test "x$has_forbidden_chars" != x; then 48533 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48534 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48535 fi 48536 48537 48538 windows_path="$new_path" 48539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48540 unix_path=`$CYGPATH -u "$windows_path"` 48541 new_path="$unix_path" 48542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48543 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48544 new_path="$unix_path" 48545 fi 48546 48547 if test "x$path" != "x$new_path"; then 48548 FREETYPE_LIB_PATH="$new_path" 48549 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48550 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48551 fi 48552 48553 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48554 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48555 48556 else 48557 # We're on a unix platform. Hooray! :) 48558 path="$FREETYPE_LIB_PATH" 48559 has_space=`$ECHO "$path" | $GREP " "` 48560 if test "x$has_space" != x; then 48561 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48562 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48563 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48564 fi 48565 48566 # Use eval to expand a potential ~ 48567 eval path="$path" 48568 if test ! -f "$path" && test ! -d "$path"; then 48569 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48570 fi 48571 48572 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48573 fi 48574 fi 48575 48576 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48577 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 48578 else 48579 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 48580 fi 48581 fi 48582 48583 # Try to compile it 48584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 48585 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 48586 ac_ext=cpp 48587 ac_cpp='$CXXCPP $CPPFLAGS' 48588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48591 48592 PREV_CXXCFLAGS="$CXXFLAGS" 48593 PREV_LIBS="$LIBS" 48594 PREV_CXX="$CXX" 48595 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 48596 LIBS="$LIBS $FREETYPE_LIBS" 48597 CXX="$FIXPATH $CXX" 48598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48599 /* end confdefs.h. */ 48600 48601 #include<ft2build.h> 48602 #include FT_FREETYPE_H 48603 int main () { 48604 FT_Init_FreeType(NULL); 48605 return 0; 48606 } 48607 48608 _ACEOF 48609 if ac_fn_cxx_try_link "$LINENO"; then : 48610 48611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48612 $as_echo "yes" >&6; } 48613 48614 else 48615 48616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48617 $as_echo "no" >&6; } 48618 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 48619 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 48620 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 48621 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 48622 48623 48624 # Print a helpful message on how to acquire the necessary build dependency. 48625 # freetype is the help tag: freetype, cups, pulse, alsa etc 48626 MISSING_DEPENDENCY=freetype 48627 48628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48629 cygwin_help $MISSING_DEPENDENCY 48630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48631 msys_help $MISSING_DEPENDENCY 48632 else 48633 PKGHANDLER_COMMAND= 48634 48635 case $PKGHANDLER in 48636 apt-get) 48637 apt_help $MISSING_DEPENDENCY ;; 48638 yum) 48639 yum_help $MISSING_DEPENDENCY ;; 48640 port) 48641 port_help $MISSING_DEPENDENCY ;; 48642 pkgutil) 48643 pkgutil_help $MISSING_DEPENDENCY ;; 48644 pkgadd) 48645 pkgadd_help $MISSING_DEPENDENCY ;; 48646 esac 48647 48648 if test "x$PKGHANDLER_COMMAND" != x; then 48649 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48650 fi 48651 fi 48652 48653 48654 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 48655 48656 48657 fi 48658 rm -f core conftest.err conftest.$ac_objext \ 48659 conftest$ac_exeext conftest.$ac_ext 48660 CXXCFLAGS="$PREV_CXXFLAGS" 48661 LIBS="$PREV_LIBS" 48662 CXX="$PREV_CXX" 48663 ac_ext=cpp 48664 ac_cpp='$CXXCPP $CPPFLAGS' 48665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48668 48669 48670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 48671 $as_echo_n "checking if we should bundle freetype... " >&6; } 48672 if test "x$BUNDLE_FREETYPE" = xyes; then 48673 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 48674 fi 48675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 48676 $as_echo "$BUNDLE_FREETYPE" >&6; } 48677 48678 fi # end freetype needed 48679 48680 48681 48682 48683 48684 48685 48686 ############################################################################### 48687 # 48688 # Check for alsa headers and libraries. Used on Linux/GNU systems. 48689 # 48690 48691 # Check whether --with-alsa was given. 48692 if test "${with_alsa+set}" = set; then : 48693 withval=$with_alsa; 48694 fi 48695 48696 48697 # Check whether --with-alsa-include was given. 48698 if test "${with_alsa_include+set}" = set; then : 48699 withval=$with_alsa_include; 48700 fi 48701 48702 48703 # Check whether --with-alsa-lib was given. 48704 if test "${with_alsa_lib+set}" = set; then : 48705 withval=$with_alsa_lib; 48706 fi 48707 48708 48709 if test "x$ALSA_NOT_NEEDED" = xyes; then 48710 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 48711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 48712 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 48713 fi 48714 ALSA_CFLAGS= 48715 ALSA_LIBS= 48716 else 48717 ALSA_FOUND=no 48718 48719 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 48720 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 48721 fi 48722 48723 if test "x${with_alsa}" != x; then 48724 ALSA_LIBS="-L${with_alsa}/lib -lasound" 48725 ALSA_CFLAGS="-I${with_alsa}/include" 48726 ALSA_FOUND=yes 48727 fi 48728 if test "x${with_alsa_include}" != x; then 48729 ALSA_CFLAGS="-I${with_alsa_include}" 48730 ALSA_FOUND=yes 48731 fi 48732 if test "x${with_alsa_lib}" != x; then 48733 ALSA_LIBS="-L${with_alsa_lib} -lasound" 48734 ALSA_FOUND=yes 48735 fi 48736 if test "x$ALSA_FOUND" = xno; then 48737 48738 48739 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 48740 # Source the builddeps file again, to make sure it uses the latest variables! 48741 . $builddepsfile 48742 # Look for a target and build machine specific resource! 48743 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 48744 if test "x$resource" = x; then 48745 # Ok, lets instead look for a target specific resource 48746 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 48747 fi 48748 if test "x$resource" = x; then 48749 # Ok, lets instead look for a build specific resource 48750 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 48751 fi 48752 if test "x$resource" = x; then 48753 # Ok, lets instead look for a generic resource 48754 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 48755 resource=${builddep_alsa} 48756 fi 48757 if test "x$resource" != x; then 48758 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 48759 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 48760 # If the resource in the builddeps.conf file is an existing directory, 48761 # for example /java/linux/cups 48762 if test -d ${resource}; then 48763 depdir=${resource} 48764 else 48765 48766 # alsa is for example mymodule 48767 # $resource is for example libs/general/libmymod_1_2_3.zip 48768 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 48769 # $with_builddeps_dir is for example /localhome/builddeps 48770 # depdir is the name of the variable into which we store the depdir, eg MYMOD 48771 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 48772 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 48773 filename=`basename $resource` 48774 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 48775 filebase=${filename%%.*} 48776 extension=${filename#*.} 48777 installdir=$with_builddeps_dir/$filebase 48778 if test ! -f $installdir/$filename.unpacked; then 48779 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 48780 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 48781 if test ! -d $installdir; then 48782 mkdir -p $installdir 48783 fi 48784 if test ! -d $installdir; then 48785 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 48786 fi 48787 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 48788 touch $tmpfile 48789 if test ! -f $tmpfile; then 48790 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 48791 fi 48792 48793 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 48794 # $tmpfile is the local file name for the downloaded file. 48795 VALID_TOOL=no 48796 if test "x$BDEPS_FTP" = xwget; then 48797 VALID_TOOL=yes 48798 wget -O $tmpfile $with_builddeps_server/$resource 48799 fi 48800 if test "x$BDEPS_FTP" = xlftp; then 48801 VALID_TOOL=yes 48802 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 48803 fi 48804 if test "x$BDEPS_FTP" = xftp; then 48805 VALID_TOOL=yes 48806 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 48807 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 48808 FTPUSERPWD=${FTPSERVER%%@*} 48809 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 48810 FTPUSER=${userpwd%%:*} 48811 FTPPWD=${userpwd#*@} 48812 FTPSERVER=${FTPSERVER#*@} 48813 else 48814 FTPUSER=ftp 48815 FTPPWD=ftp 48816 fi 48817 # the "pass" command does not work on some 48818 # ftp clients (read ftp.exe) but if it works, 48819 # passive mode is better! 48820 ( \ 48821 echo "user $FTPUSER $FTPPWD" ; \ 48822 echo "pass" ; \ 48823 echo "bin" ; \ 48824 echo "get $FTPPATH $tmpfile" ; \ 48825 ) | ftp -in $FTPSERVER 48826 fi 48827 if test "x$VALID_TOOL" != xyes; then 48828 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 48829 fi 48830 48831 mv $tmpfile $installdir/$filename 48832 if test ! -s $installdir/$filename; then 48833 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 48834 fi 48835 case "$extension" in 48836 zip) echo "Unzipping $installdir/$filename..." 48837 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 48838 ;; 48839 tar.gz) echo "Untaring $installdir/$filename..." 48840 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48841 ;; 48842 tgz) echo "Untaring $installdir/$filename..." 48843 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48844 ;; 48845 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 48846 ;; 48847 esac 48848 fi 48849 if test -f $installdir/$filename.unpacked; then 48850 depdir=$installdir 48851 fi 48852 48853 fi 48854 # Source the builddeps file again, because in the previous command, the depdir 48855 # was updated to point at the current build dependency install directory. 48856 . $builddepsfile 48857 # Now extract variables from the builddeps.conf files. 48858 theroot=${builddep_alsa_ROOT} 48859 thecflags=${builddep_alsa_CFLAGS} 48860 thelibs=${builddep_alsa_LIBS} 48861 if test "x$depdir" = x; then 48862 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 48863 fi 48864 ALSA=$depdir 48865 if test "x$theroot" != x; then 48866 ALSA="$theroot" 48867 fi 48868 if test "x$thecflags" != x; then 48869 ALSA_CFLAGS="$thecflags" 48870 fi 48871 if test "x$thelibs" != x; then 48872 ALSA_LIBS="$thelibs" 48873 fi 48874 ALSA_FOUND=yes 48875 else ALSA_FOUND=no 48876 48877 fi 48878 else ALSA_FOUND=no 48879 48880 fi 48881 48882 fi 48883 # Do not try pkg-config if we have a sysroot set. 48884 if test "x$SYSROOT" = x; then 48885 if test "x$ALSA_FOUND" = xno; then 48886 48887 pkg_failed=no 48888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 48889 $as_echo_n "checking for ALSA... " >&6; } 48890 48891 if test -n "$ALSA_CFLAGS"; then 48892 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 48893 elif test -n "$PKG_CONFIG"; then 48894 if test -n "$PKG_CONFIG" && \ 48895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48896 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48897 ac_status=$? 48898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48899 test $ac_status = 0; }; then 48900 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 48901 else 48902 pkg_failed=yes 48903 fi 48904 else 48905 pkg_failed=untried 48906 fi 48907 if test -n "$ALSA_LIBS"; then 48908 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 48909 elif test -n "$PKG_CONFIG"; then 48910 if test -n "$PKG_CONFIG" && \ 48911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48912 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48913 ac_status=$? 48914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48915 test $ac_status = 0; }; then 48916 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 48917 else 48918 pkg_failed=yes 48919 fi 48920 else 48921 pkg_failed=untried 48922 fi 48923 48924 48925 48926 if test $pkg_failed = yes; then 48927 48928 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48929 _pkg_short_errors_supported=yes 48930 else 48931 _pkg_short_errors_supported=no 48932 fi 48933 if test $_pkg_short_errors_supported = yes; then 48934 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 48935 else 48936 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 48937 fi 48938 # Put the nasty error message in config.log where it belongs 48939 echo "$ALSA_PKG_ERRORS" >&5 48940 48941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48942 $as_echo "no" >&6; } 48943 ALSA_FOUND=no 48944 elif test $pkg_failed = untried; then 48945 ALSA_FOUND=no 48946 else 48947 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 48948 ALSA_LIBS=$pkg_cv_ALSA_LIBS 48949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48950 $as_echo "yes" >&6; } 48951 ALSA_FOUND=yes 48952 fi 48953 fi 48954 fi 48955 if test "x$ALSA_FOUND" = xno; then 48956 for ac_header in alsa/asoundlib.h 48957 do : 48958 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 48959 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 48960 cat >>confdefs.h <<_ACEOF 48961 #define HAVE_ALSA_ASOUNDLIB_H 1 48962 _ACEOF 48963 48964 ALSA_FOUND=yes 48965 ALSA_CFLAGS=-Iignoreme 48966 ALSA_LIBS=-lasound 48967 DEFAULT_ALSA=yes 48968 48969 else 48970 ALSA_FOUND=no 48971 fi 48972 48973 done 48974 48975 fi 48976 if test "x$ALSA_FOUND" = xno; then 48977 48978 # Print a helpful message on how to acquire the necessary build dependency. 48979 # alsa is the help tag: freetype, cups, pulse, alsa etc 48980 MISSING_DEPENDENCY=alsa 48981 48982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48983 cygwin_help $MISSING_DEPENDENCY 48984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48985 msys_help $MISSING_DEPENDENCY 48986 else 48987 PKGHANDLER_COMMAND= 48988 48989 case $PKGHANDLER in 48990 apt-get) 48991 apt_help $MISSING_DEPENDENCY ;; 48992 yum) 48993 yum_help $MISSING_DEPENDENCY ;; 48994 port) 48995 port_help $MISSING_DEPENDENCY ;; 48996 pkgutil) 48997 pkgutil_help $MISSING_DEPENDENCY ;; 48998 pkgadd) 48999 pkgadd_help $MISSING_DEPENDENCY ;; 49000 esac 49001 49002 if test "x$PKGHANDLER_COMMAND" != x; then 49003 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 49004 fi 49005 fi 49006 49007 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 49008 fi 49009 fi 49010 49011 49012 49013 49014 49015 49016 ############################################################################### 49017 # 49018 # Check for the jpeg library 49019 # 49020 49021 49022 # Check whether --with-libjpeg was given. 49023 if test "${with_libjpeg+set}" = set; then : 49024 withval=$with_libjpeg; 49025 fi 49026 49027 49028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 49029 $as_echo_n "checking for which libjpeg to use... " >&6; } 49030 49031 # default is bundled 49032 DEFAULT_LIBJPEG=bundled 49033 49034 # 49035 # if user didn't specify, use DEFAULT_LIBJPEG 49036 # 49037 if test "x${with_libjpeg}" = "x"; then 49038 with_libjpeg=${DEFAULT_LIBJPEG} 49039 fi 49040 49041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 49042 $as_echo "${with_libjpeg}" >&6; } 49043 49044 if test "x${with_libjpeg}" = "xbundled"; then 49045 USE_EXTERNAL_LIBJPEG=false 49046 elif test "x${with_libjpeg}" = "xsystem"; then 49047 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 49048 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 49049 49050 else 49051 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 49052 fi 49053 49054 49055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 49056 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 49057 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 49058 $as_echo_n "(cached) " >&6 49059 else 49060 ac_check_lib_save_LIBS=$LIBS 49061 LIBS="-ljpeg $LIBS" 49062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49063 /* end confdefs.h. */ 49064 49065 /* Override any GCC internal prototype to avoid an error. 49066 Use char because int might match the return type of a GCC 49067 builtin and then its argument prototype would still apply. */ 49068 #ifdef __cplusplus 49069 extern "C" 49070 #endif 49071 char jpeg_CreateDecompress (); 49072 int 49073 main () 49074 { 49075 return jpeg_CreateDecompress (); 49076 ; 49077 return 0; 49078 } 49079 _ACEOF 49080 if ac_fn_cxx_try_link "$LINENO"; then : 49081 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 49082 else 49083 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 49084 fi 49085 rm -f core conftest.err conftest.$ac_objext \ 49086 conftest$ac_exeext conftest.$ac_ext 49087 LIBS=$ac_check_lib_save_LIBS 49088 fi 49089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 49090 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 49091 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 49092 cat >>confdefs.h <<_ACEOF 49093 #define HAVE_LIBJPEG 1 49094 _ACEOF 49095 49096 LIBS="-ljpeg $LIBS" 49097 49098 else 49099 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 49100 fi 49101 49102 49103 USE_EXTERNAL_LIBJPEG=true 49104 else 49105 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 49106 fi 49107 49108 49109 49110 ############################################################################### 49111 # 49112 # Check for the gif library 49113 # 49114 49115 49116 # Check whether --with-giflib was given. 49117 if test "${with_giflib+set}" = set; then : 49118 withval=$with_giflib; 49119 fi 49120 49121 49122 49123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 49124 $as_echo_n "checking for which giflib to use... " >&6; } 49125 49126 # default is bundled 49127 DEFAULT_GIFLIB=bundled 49128 49129 # 49130 # if user didn't specify, use DEFAULT_GIFLIB 49131 # 49132 if test "x${with_giflib}" = "x"; then 49133 with_giflib=${DEFAULT_GIFLIB} 49134 fi 49135 49136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 49137 $as_echo "${with_giflib}" >&6; } 49138 49139 if test "x${with_giflib}" = "xbundled"; then 49140 USE_EXTERNAL_LIBGIF=false 49141 elif test "x${with_giflib}" = "xsystem"; then 49142 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 49143 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 49144 49145 else 49146 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 49147 fi 49148 49149 49150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 49151 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 49152 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 49153 $as_echo_n "(cached) " >&6 49154 else 49155 ac_check_lib_save_LIBS=$LIBS 49156 LIBS="-lgif $LIBS" 49157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49158 /* end confdefs.h. */ 49159 49160 /* Override any GCC internal prototype to avoid an error. 49161 Use char because int might match the return type of a GCC 49162 builtin and then its argument prototype would still apply. */ 49163 #ifdef __cplusplus 49164 extern "C" 49165 #endif 49166 char DGifGetCode (); 49167 int 49168 main () 49169 { 49170 return DGifGetCode (); 49171 ; 49172 return 0; 49173 } 49174 _ACEOF 49175 if ac_fn_cxx_try_link "$LINENO"; then : 49176 ac_cv_lib_gif_DGifGetCode=yes 49177 else 49178 ac_cv_lib_gif_DGifGetCode=no 49179 fi 49180 rm -f core conftest.err conftest.$ac_objext \ 49181 conftest$ac_exeext conftest.$ac_ext 49182 LIBS=$ac_check_lib_save_LIBS 49183 fi 49184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 49185 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 49186 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 49187 cat >>confdefs.h <<_ACEOF 49188 #define HAVE_LIBGIF 1 49189 _ACEOF 49190 49191 LIBS="-lgif $LIBS" 49192 49193 else 49194 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 49195 fi 49196 49197 49198 USE_EXTERNAL_LIBGIF=true 49199 else 49200 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 49201 fi 49202 49203 49204 ############################################################################### 49205 # 49206 # Check for the lcms2 library 49207 # 49208 49209 49210 # Check whether --with-lcms was given. 49211 if test "${with_lcms+set}" = set; then : 49212 withval=$with_lcms; 49213 fi 49214 49215 49216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 49217 $as_echo_n "checking for which lcms to use... " >&6; } 49218 49219 DEFAULT_LCMS=bundled 49220 49221 # 49222 # If user didn't specify, use DEFAULT_LCMS 49223 # 49224 if test "x${with_lcms}" = "x"; then 49225 with_lcms=${DEFAULT_LCMS} 49226 fi 49227 49228 if test "x${with_lcms}" = "xbundled"; then 49229 USE_EXTERNAL_LCMS=false 49230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49231 $as_echo "bundled" >&6; } 49232 elif test "x${with_lcms}" = "xsystem"; then 49233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49234 $as_echo "system" >&6; } 49235 49236 pkg_failed=no 49237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 49238 $as_echo_n "checking for LCMS... " >&6; } 49239 49240 if test -n "$LCMS_CFLAGS"; then 49241 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 49242 elif test -n "$PKG_CONFIG"; then 49243 if test -n "$PKG_CONFIG" && \ 49244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 49245 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 49246 ac_status=$? 49247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49248 test $ac_status = 0; }; then 49249 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 49250 else 49251 pkg_failed=yes 49252 fi 49253 else 49254 pkg_failed=untried 49255 fi 49256 if test -n "$LCMS_LIBS"; then 49257 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 49258 elif test -n "$PKG_CONFIG"; then 49259 if test -n "$PKG_CONFIG" && \ 49260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 49261 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 49262 ac_status=$? 49263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49264 test $ac_status = 0; }; then 49265 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 49266 else 49267 pkg_failed=yes 49268 fi 49269 else 49270 pkg_failed=untried 49271 fi 49272 49273 49274 49275 if test $pkg_failed = yes; then 49276 49277 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49278 _pkg_short_errors_supported=yes 49279 else 49280 _pkg_short_errors_supported=no 49281 fi 49282 if test $_pkg_short_errors_supported = yes; then 49283 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 49284 else 49285 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 49286 fi 49287 # Put the nasty error message in config.log where it belongs 49288 echo "$LCMS_PKG_ERRORS" >&5 49289 49290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49291 $as_echo "no" >&6; } 49292 LCMS_FOUND=no 49293 elif test $pkg_failed = untried; then 49294 LCMS_FOUND=no 49295 else 49296 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 49297 LCMS_LIBS=$pkg_cv_LCMS_LIBS 49298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49299 $as_echo "yes" >&6; } 49300 LCMS_FOUND=yes 49301 fi 49302 if test "x${LCMS_FOUND}" = "xyes"; then 49303 USE_EXTERNAL_LCMS=true 49304 else 49305 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 49306 fi 49307 else 49308 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 49309 fi 49310 49311 49312 49313 ############################################################################### 49314 # 49315 # Check for the png library 49316 # 49317 49318 49319 # Check whether --with-libpng was given. 49320 if test "${with_libpng+set}" = set; then : 49321 withval=$with_libpng; 49322 fi 49323 49324 49325 49326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 49327 $as_echo_n "checking for which libpng to use... " >&6; } 49328 49329 # default is bundled 49330 DEFAULT_LIBPNG=bundled 49331 49332 # 49333 # if user didn't specify, use DEFAULT_LIBPNG 49334 # 49335 if test "x${with_libpng}" = "x"; then 49336 with_libpng=${DEFAULT_LIBPNG} 49337 fi 49338 49339 if test "x${with_libpng}" = "xbundled"; then 49340 USE_EXTERNAL_LIBPNG=false 49341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49342 $as_echo "bundled" >&6; } 49343 elif test "x${with_libpng}" = "xsystem"; then 49344 49345 pkg_failed=no 49346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 49347 $as_echo_n "checking for PNG... " >&6; } 49348 49349 if test -n "$PNG_CFLAGS"; then 49350 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 49351 elif test -n "$PKG_CONFIG"; then 49352 if test -n "$PKG_CONFIG" && \ 49353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49354 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49355 ac_status=$? 49356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49357 test $ac_status = 0; }; then 49358 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 49359 else 49360 pkg_failed=yes 49361 fi 49362 else 49363 pkg_failed=untried 49364 fi 49365 if test -n "$PNG_LIBS"; then 49366 pkg_cv_PNG_LIBS="$PNG_LIBS" 49367 elif test -n "$PKG_CONFIG"; then 49368 if test -n "$PKG_CONFIG" && \ 49369 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49370 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49371 ac_status=$? 49372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49373 test $ac_status = 0; }; then 49374 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 49375 else 49376 pkg_failed=yes 49377 fi 49378 else 49379 pkg_failed=untried 49380 fi 49381 49382 49383 49384 if test $pkg_failed = yes; then 49385 49386 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49387 _pkg_short_errors_supported=yes 49388 else 49389 _pkg_short_errors_supported=no 49390 fi 49391 if test $_pkg_short_errors_supported = yes; then 49392 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 49393 else 49394 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 49395 fi 49396 # Put the nasty error message in config.log where it belongs 49397 echo "$PNG_PKG_ERRORS" >&5 49398 49399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49400 $as_echo "no" >&6; } 49401 LIBPNG_FOUND=no 49402 elif test $pkg_failed = untried; then 49403 LIBPNG_FOUND=no 49404 else 49405 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 49406 PNG_LIBS=$pkg_cv_PNG_LIBS 49407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49408 $as_echo "yes" >&6; } 49409 LIBPNG_FOUND=yes 49410 fi 49411 if test "x${LIBPNG_FOUND}" = "xyes"; then 49412 USE_EXTERNAL_LIBPNG=true 49413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49414 $as_echo "system" >&6; } 49415 else 49416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49417 $as_echo "system not found" >&6; } 49418 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 49419 fi 49420 else 49421 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 49422 fi 49423 49424 49425 ############################################################################### 49426 # 49427 # Check for the zlib library 49428 # 49429 49430 49431 # Check whether --with-zlib was given. 49432 if test "${with_zlib+set}" = set; then : 49433 withval=$with_zlib; 49434 fi 49435 49436 49437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 49438 $as_echo_n "checking for compress in -lz... " >&6; } 49439 if ${ac_cv_lib_z_compress+:} false; then : 49440 $as_echo_n "(cached) " >&6 49441 else 49442 ac_check_lib_save_LIBS=$LIBS 49443 LIBS="-lz $LIBS" 49444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49445 /* end confdefs.h. */ 49446 49447 /* Override any GCC internal prototype to avoid an error. 49448 Use char because int might match the return type of a GCC 49449 builtin and then its argument prototype would still apply. */ 49450 #ifdef __cplusplus 49451 extern "C" 49452 #endif 49453 char compress (); 49454 int 49455 main () 49456 { 49457 return compress (); 49458 ; 49459 return 0; 49460 } 49461 _ACEOF 49462 if ac_fn_cxx_try_link "$LINENO"; then : 49463 ac_cv_lib_z_compress=yes 49464 else 49465 ac_cv_lib_z_compress=no 49466 fi 49467 rm -f core conftest.err conftest.$ac_objext \ 49468 conftest$ac_exeext conftest.$ac_ext 49469 LIBS=$ac_check_lib_save_LIBS 49470 fi 49471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 49472 $as_echo "$ac_cv_lib_z_compress" >&6; } 49473 if test "x$ac_cv_lib_z_compress" = xyes; then : 49474 ZLIB_FOUND=yes 49475 else 49476 ZLIB_FOUND=no 49477 fi 49478 49479 49480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 49481 $as_echo_n "checking for which zlib to use... " >&6; } 49482 49483 DEFAULT_ZLIB=bundled 49484 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49485 # 49486 # On macosx default is system...on others default is 49487 # 49488 DEFAULT_ZLIB=system 49489 fi 49490 49491 if test "x${ZLIB_FOUND}" != "xyes"; then 49492 # 49493 # If we don't find any system...set default to bundled 49494 # 49495 DEFAULT_ZLIB=bundled 49496 fi 49497 49498 # 49499 # If user didn't specify, use DEFAULT_ZLIB 49500 # 49501 if test "x${with_zlib}" = "x"; then 49502 with_zlib=${DEFAULT_ZLIB} 49503 fi 49504 49505 if test "x${with_zlib}" = "xbundled"; then 49506 USE_EXTERNAL_LIBZ=false 49507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49508 $as_echo "bundled" >&6; } 49509 elif test "x${with_zlib}" = "xsystem"; then 49510 if test "x${ZLIB_FOUND}" = "xyes"; then 49511 USE_EXTERNAL_LIBZ=true 49512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49513 $as_echo "system" >&6; } 49514 else 49515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49516 $as_echo "system not found" >&6; } 49517 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 49518 fi 49519 else 49520 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 49521 fi 49522 49523 49524 49525 ############################################################################### 49526 LIBZIP_CAN_USE_MMAP=true 49527 49528 49529 49530 ############################################################################### 49531 # 49532 # Check if altzone exists in time.h 49533 # 49534 49535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49536 /* end confdefs.h. */ 49537 #include <time.h> 49538 int 49539 main () 49540 { 49541 return (int)altzone; 49542 ; 49543 return 0; 49544 } 49545 _ACEOF 49546 if ac_fn_cxx_try_link "$LINENO"; then : 49547 has_altzone=yes 49548 else 49549 has_altzone=no 49550 fi 49551 rm -f core conftest.err conftest.$ac_objext \ 49552 conftest$ac_exeext conftest.$ac_ext 49553 if test "x$has_altzone" = xyes; then 49554 49555 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 49556 49557 fi 49558 49559 ############################################################################### 49560 # 49561 # Check the maths library 49562 # 49563 49564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 49565 $as_echo_n "checking for cos in -lm... " >&6; } 49566 if ${ac_cv_lib_m_cos+:} false; then : 49567 $as_echo_n "(cached) " >&6 49568 else 49569 ac_check_lib_save_LIBS=$LIBS 49570 LIBS="-lm $LIBS" 49571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49572 /* end confdefs.h. */ 49573 49574 /* Override any GCC internal prototype to avoid an error. 49575 Use char because int might match the return type of a GCC 49576 builtin and then its argument prototype would still apply. */ 49577 #ifdef __cplusplus 49578 extern "C" 49579 #endif 49580 char cos (); 49581 int 49582 main () 49583 { 49584 return cos (); 49585 ; 49586 return 0; 49587 } 49588 _ACEOF 49589 if ac_fn_cxx_try_link "$LINENO"; then : 49590 ac_cv_lib_m_cos=yes 49591 else 49592 ac_cv_lib_m_cos=no 49593 fi 49594 rm -f core conftest.err conftest.$ac_objext \ 49595 conftest$ac_exeext conftest.$ac_ext 49596 LIBS=$ac_check_lib_save_LIBS 49597 fi 49598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 49599 $as_echo "$ac_cv_lib_m_cos" >&6; } 49600 if test "x$ac_cv_lib_m_cos" = xyes; then : 49601 cat >>confdefs.h <<_ACEOF 49602 #define HAVE_LIBM 1 49603 _ACEOF 49604 49605 LIBS="-lm $LIBS" 49606 49607 else 49608 49609 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 49610 $as_echo "$as_me: Maths library was not found" >&6;} 49611 49612 49613 fi 49614 49615 49616 49617 ############################################################################### 49618 # 49619 # Check for libdl.so 49620 49621 save_LIBS="$LIBS" 49622 LIBS="" 49623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 49624 $as_echo_n "checking for dlopen in -ldl... " >&6; } 49625 if ${ac_cv_lib_dl_dlopen+:} false; then : 49626 $as_echo_n "(cached) " >&6 49627 else 49628 ac_check_lib_save_LIBS=$LIBS 49629 LIBS="-ldl $LIBS" 49630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49631 /* end confdefs.h. */ 49632 49633 /* Override any GCC internal prototype to avoid an error. 49634 Use char because int might match the return type of a GCC 49635 builtin and then its argument prototype would still apply. */ 49636 #ifdef __cplusplus 49637 extern "C" 49638 #endif 49639 char dlopen (); 49640 int 49641 main () 49642 { 49643 return dlopen (); 49644 ; 49645 return 0; 49646 } 49647 _ACEOF 49648 if ac_fn_cxx_try_link "$LINENO"; then : 49649 ac_cv_lib_dl_dlopen=yes 49650 else 49651 ac_cv_lib_dl_dlopen=no 49652 fi 49653 rm -f core conftest.err conftest.$ac_objext \ 49654 conftest$ac_exeext conftest.$ac_ext 49655 LIBS=$ac_check_lib_save_LIBS 49656 fi 49657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 49658 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 49659 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 49660 cat >>confdefs.h <<_ACEOF 49661 #define HAVE_LIBDL 1 49662 _ACEOF 49663 49664 LIBS="-ldl $LIBS" 49665 49666 fi 49667 49668 LIBDL="$LIBS" 49669 49670 LIBS="$save_LIBS" 49671 49672 49673 ############################################################################### 49674 # 49675 # statically link libstdc++ before C++ ABI is stablized on Linux unless 49676 # dynamic build is configured on command line. 49677 # 49678 49679 # Check whether --with-stdc++lib was given. 49680 if test "${with_stdc__lib+set}" = set; then : 49681 withval=$with_stdc__lib; 49682 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 49683 && test "x$with_stdc__lib" != xdefault; then 49684 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 49685 fi 49686 49687 else 49688 with_stdc__lib=default 49689 49690 fi 49691 49692 49693 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49694 # Test if -lstdc++ works. 49695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 49696 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 49697 ac_ext=cpp 49698 ac_cpp='$CXXCPP $CPPFLAGS' 49699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49702 49703 OLD_CXXFLAGS="$CXXFLAGS" 49704 CXXFLAGS="$CXXFLAGS -lstdc++" 49705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49706 /* end confdefs.h. */ 49707 49708 int 49709 main () 49710 { 49711 return 0; 49712 ; 49713 return 0; 49714 } 49715 _ACEOF 49716 if ac_fn_cxx_try_link "$LINENO"; then : 49717 has_dynamic_libstdcxx=yes 49718 else 49719 has_dynamic_libstdcxx=no 49720 fi 49721 rm -f core conftest.err conftest.$ac_objext \ 49722 conftest$ac_exeext conftest.$ac_ext 49723 CXXFLAGS="$OLD_CXXFLAGS" 49724 ac_ext=cpp 49725 ac_cpp='$CXXCPP $CPPFLAGS' 49726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49729 49730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 49731 $as_echo "$has_dynamic_libstdcxx" >&6; } 49732 49733 # Test if stdc++ can be linked statically. 49734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 49735 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 49736 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 49737 ac_ext=cpp 49738 ac_cpp='$CXXCPP $CPPFLAGS' 49739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49742 49743 OLD_LIBS="$LIBS" 49744 OLD_CXX="$CXX" 49745 LIBS="$STATIC_STDCXX_FLAGS" 49746 CXX="$CC" 49747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49748 /* end confdefs.h. */ 49749 49750 int 49751 main () 49752 { 49753 return 0; 49754 ; 49755 return 0; 49756 } 49757 _ACEOF 49758 if ac_fn_cxx_try_link "$LINENO"; then : 49759 has_static_libstdcxx=yes 49760 else 49761 has_static_libstdcxx=no 49762 fi 49763 rm -f core conftest.err conftest.$ac_objext \ 49764 conftest$ac_exeext conftest.$ac_ext 49765 LIBS="$OLD_LIBS" 49766 CXX="$OLD_CXX" 49767 ac_ext=cpp 49768 ac_cpp='$CXXCPP $CPPFLAGS' 49769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49772 49773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 49774 $as_echo "$has_static_libstdcxx" >&6; } 49775 49776 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 49777 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 49778 fi 49779 49780 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 49781 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 49782 fi 49783 49784 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 49785 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 49786 fi 49787 49788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 49789 $as_echo_n "checking how to link with libstdc++... " >&6; } 49790 # If dynamic was requested, it's available since it would fail above otherwise. 49791 # If dynamic wasn't requested, go with static unless it isn't available. 49792 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49793 LIBCXX="$LIBCXX -lstdc++" 49794 LDCXX="$CXX" 49795 STATIC_CXX_SETTING="STATIC_CXX=false" 49796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 49797 $as_echo "dynamic" >&6; } 49798 else 49799 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 49800 LDCXX="$CC" 49801 STATIC_CXX_SETTING="STATIC_CXX=true" 49802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 49803 $as_echo "static" >&6; } 49804 fi 49805 fi 49806 49807 49808 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49809 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 49810 49811 pkg_failed=no 49812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 49813 $as_echo_n "checking for LIBFFI... " >&6; } 49814 49815 if test -n "$LIBFFI_CFLAGS"; then 49816 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 49817 elif test -n "$PKG_CONFIG"; then 49818 if test -n "$PKG_CONFIG" && \ 49819 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49820 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49821 ac_status=$? 49822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49823 test $ac_status = 0; }; then 49824 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 49825 else 49826 pkg_failed=yes 49827 fi 49828 else 49829 pkg_failed=untried 49830 fi 49831 if test -n "$LIBFFI_LIBS"; then 49832 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 49833 elif test -n "$PKG_CONFIG"; then 49834 if test -n "$PKG_CONFIG" && \ 49835 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49836 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49837 ac_status=$? 49838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49839 test $ac_status = 0; }; then 49840 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 49841 else 49842 pkg_failed=yes 49843 fi 49844 else 49845 pkg_failed=untried 49846 fi 49847 49848 49849 49850 if test $pkg_failed = yes; then 49851 49852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49853 _pkg_short_errors_supported=yes 49854 else 49855 _pkg_short_errors_supported=no 49856 fi 49857 if test $_pkg_short_errors_supported = yes; then 49858 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 49859 else 49860 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 49861 fi 49862 # Put the nasty error message in config.log where it belongs 49863 echo "$LIBFFI_PKG_ERRORS" >&5 49864 49865 as_fn_error $? "Package requirements (libffi) were not met: 49866 49867 $LIBFFI_PKG_ERRORS 49868 49869 Consider adjusting the PKG_CONFIG_PATH environment variable if you 49870 installed software in a non-standard prefix. 49871 49872 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49873 and LIBFFI_LIBS to avoid the need to call pkg-config. 49874 See the pkg-config man page for more details. 49875 " "$LINENO" 5 49876 elif test $pkg_failed = untried; then 49877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49879 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 49880 is in your PATH or set the PKG_CONFIG environment variable to the full 49881 path to pkg-config. 49882 49883 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49884 and LIBFFI_LIBS to avoid the need to call pkg-config. 49885 See the pkg-config man page for more details. 49886 49887 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 49888 See \`config.log' for more details" "$LINENO" 5; } 49889 else 49890 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 49891 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 49892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49893 $as_echo "yes" >&6; } 49894 : 49895 fi 49896 49897 fi 49898 49899 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49900 # Extract the first word of "llvm-config", so it can be a program name with args. 49901 set dummy llvm-config; ac_word=$2 49902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49903 $as_echo_n "checking for $ac_word... " >&6; } 49904 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 49905 $as_echo_n "(cached) " >&6 49906 else 49907 if test -n "$LLVM_CONFIG"; then 49908 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 49909 else 49910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49911 for as_dir in $PATH 49912 do 49913 IFS=$as_save_IFS 49914 test -z "$as_dir" && as_dir=. 49915 for ac_exec_ext in '' $ac_executable_extensions; do 49916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49917 ac_cv_prog_LLVM_CONFIG="llvm-config" 49918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49919 break 2 49920 fi 49921 done 49922 done 49923 IFS=$as_save_IFS 49924 49925 fi 49926 fi 49927 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 49928 if test -n "$LLVM_CONFIG"; then 49929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 49930 $as_echo "$LLVM_CONFIG" >&6; } 49931 else 49932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49933 $as_echo "no" >&6; } 49934 fi 49935 49936 49937 49938 if test "x$LLVM_CONFIG" != xllvm-config; then 49939 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 49940 fi 49941 49942 llvm_components="jit mcjit engine nativecodegen native" 49943 unset LLVM_CFLAGS 49944 for flag in $("$LLVM_CONFIG" --cxxflags); do 49945 if echo "${flag}" | grep -q '^-[ID]'; then 49946 if test "${flag}" != "-D_DEBUG" ; then 49947 if test "${LLVM_CFLAGS}" != "" ; then 49948 LLVM_CFLAGS="${LLVM_CFLAGS} " 49949 fi 49950 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 49951 fi 49952 fi 49953 done 49954 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 49955 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 49956 49957 unset LLVM_LDFLAGS 49958 for flag in $("${LLVM_CONFIG}" --ldflags); do 49959 if echo "${flag}" | grep -q '^-L'; then 49960 if test "${LLVM_LDFLAGS}" != ""; then 49961 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 49962 fi 49963 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 49964 fi 49965 done 49966 49967 unset LLVM_LIBS 49968 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 49969 if echo "${flag}" | grep -q '^-l'; then 49970 if test "${LLVM_LIBS}" != ""; then 49971 LLVM_LIBS="${LLVM_LIBS} " 49972 fi 49973 LLVM_LIBS="${LLVM_LIBS}${flag}" 49974 fi 49975 done 49976 49977 49978 49979 49980 fi 49981 49982 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 49983 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 49984 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 49985 fi 49986 49987 # TODO better (platform agnostic) test 49988 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 49989 LIBCXX="-lstdc++" 49990 fi 49991 49992 49993 49994 49995 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49996 49997 49998 # Check whether --with-msvcr-dll was given. 49999 if test "${with_msvcr_dll+set}" = set; then : 50000 withval=$with_msvcr_dll; 50001 fi 50002 50003 50004 if test "x$with_msvcr_dll" != x; then 50005 # If given explicitely by user, do not probe. If not present, fail directly. 50006 50007 DLL_NAME="$DLL_NAME" 50008 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 50009 METHOD="--with-msvcr-dll" 50010 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50011 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50012 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50013 50014 # Need to check if the found msvcr is correct architecture 50015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50016 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50017 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50019 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50020 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50021 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50022 CORRECT_MSVCR_ARCH="PE32 executable" 50023 else 50024 CORRECT_MSVCR_ARCH="PE32+ executable" 50025 fi 50026 else 50027 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50028 CORRECT_MSVCR_ARCH=386 50029 else 50030 CORRECT_MSVCR_ARCH=x86-64 50031 fi 50032 fi 50033 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50035 $as_echo "ok" >&6; } 50036 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50038 $as_echo_n "checking for $DLL_NAME... " >&6; } 50039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50040 $as_echo "$MSVC_DLL" >&6; } 50041 else 50042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50043 $as_echo "incorrect, ignoring" >&6; } 50044 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50045 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50046 fi 50047 fi 50048 50049 if test "x$MSVC_DLL" = x; then 50050 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 50051 fi 50052 else 50053 50054 VAR_NAME="MSVCR_DLL" 50055 DLL_NAME="${MSVCR_NAME}" 50056 MSVC_DLL= 50057 50058 if test "x$MSVC_DLL" = x; then 50059 # Probe: Using well-known location from Visual Studio 10.0 50060 if test "x$VCINSTALLDIR" != x; then 50061 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 50062 50063 windows_path="$CYGWIN_VC_INSTALL_DIR" 50064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50065 unix_path=`$CYGPATH -u "$windows_path"` 50066 CYGWIN_VC_INSTALL_DIR="$unix_path" 50067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50068 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50069 CYGWIN_VC_INSTALL_DIR="$unix_path" 50070 fi 50071 50072 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50073 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50074 else 50075 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50076 fi 50077 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 50078 50079 DLL_NAME="$DLL_NAME" 50080 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50081 METHOD="well-known location in VCINSTALLDIR" 50082 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50083 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50084 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50085 50086 # Need to check if the found msvcr is correct architecture 50087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50088 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50089 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50090 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50091 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50092 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50093 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50094 CORRECT_MSVCR_ARCH="PE32 executable" 50095 else 50096 CORRECT_MSVCR_ARCH="PE32+ executable" 50097 fi 50098 else 50099 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50100 CORRECT_MSVCR_ARCH=386 50101 else 50102 CORRECT_MSVCR_ARCH=x86-64 50103 fi 50104 fi 50105 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50107 $as_echo "ok" >&6; } 50108 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50110 $as_echo_n "checking for $DLL_NAME... " >&6; } 50111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50112 $as_echo "$MSVC_DLL" >&6; } 50113 else 50114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50115 $as_echo "incorrect, ignoring" >&6; } 50116 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50117 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50118 fi 50119 fi 50120 50121 fi 50122 fi 50123 50124 if test "x$MSVC_DLL" = x; then 50125 # Probe: Check in the Boot JDK directory. 50126 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 50127 50128 DLL_NAME="$DLL_NAME" 50129 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50130 METHOD="well-known location in Boot JDK" 50131 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50132 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50133 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50134 50135 # Need to check if the found msvcr is correct architecture 50136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50137 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50138 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50140 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50141 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50142 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50143 CORRECT_MSVCR_ARCH="PE32 executable" 50144 else 50145 CORRECT_MSVCR_ARCH="PE32+ executable" 50146 fi 50147 else 50148 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50149 CORRECT_MSVCR_ARCH=386 50150 else 50151 CORRECT_MSVCR_ARCH=x86-64 50152 fi 50153 fi 50154 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50156 $as_echo "ok" >&6; } 50157 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50159 $as_echo_n "checking for $DLL_NAME... " >&6; } 50160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50161 $as_echo "$MSVC_DLL" >&6; } 50162 else 50163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50164 $as_echo "incorrect, ignoring" >&6; } 50165 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50166 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50167 fi 50168 fi 50169 50170 fi 50171 50172 if test "x$MSVC_DLL" = x; then 50173 # Probe: Look in the Windows system32 directory 50174 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 50175 50176 windows_path="$CYGWIN_SYSTEMROOT" 50177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50178 unix_path=`$CYGPATH -u "$windows_path"` 50179 CYGWIN_SYSTEMROOT="$unix_path" 50180 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50181 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50182 CYGWIN_SYSTEMROOT="$unix_path" 50183 fi 50184 50185 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 50186 50187 DLL_NAME="$DLL_NAME" 50188 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50189 METHOD="well-known location in SYSTEMROOT" 50190 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50191 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50192 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50193 50194 # Need to check if the found msvcr is correct architecture 50195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50196 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50197 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50198 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50199 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50200 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50201 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50202 CORRECT_MSVCR_ARCH="PE32 executable" 50203 else 50204 CORRECT_MSVCR_ARCH="PE32+ executable" 50205 fi 50206 else 50207 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50208 CORRECT_MSVCR_ARCH=386 50209 else 50210 CORRECT_MSVCR_ARCH=x86-64 50211 fi 50212 fi 50213 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50215 $as_echo "ok" >&6; } 50216 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50218 $as_echo_n "checking for $DLL_NAME... " >&6; } 50219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50220 $as_echo "$MSVC_DLL" >&6; } 50221 else 50222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50223 $as_echo "incorrect, ignoring" >&6; } 50224 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50225 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50226 fi 50227 fi 50228 50229 fi 50230 50231 if test "x$MSVC_DLL" = x; then 50232 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50233 if test "x$VS100COMNTOOLS" != x; then 50234 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50235 50236 windows_path="$CYGWIN_VS_TOOLS_DIR" 50237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50238 unix_path=`$CYGPATH -u "$windows_path"` 50239 CYGWIN_VS_TOOLS_DIR="$unix_path" 50240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50241 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50242 CYGWIN_VS_TOOLS_DIR="$unix_path" 50243 fi 50244 50245 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50246 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50247 | $GREP -i /x64/ | $HEAD --lines 1` 50248 else 50249 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50250 | $GREP -i /x86/ | $HEAD --lines 1` 50251 fi 50252 50253 DLL_NAME="$DLL_NAME" 50254 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50255 METHOD="search of VS100COMNTOOLS" 50256 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50257 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50258 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50259 50260 # Need to check if the found msvcr is correct architecture 50261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50262 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50263 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50265 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50266 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50267 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50268 CORRECT_MSVCR_ARCH="PE32 executable" 50269 else 50270 CORRECT_MSVCR_ARCH="PE32+ executable" 50271 fi 50272 else 50273 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50274 CORRECT_MSVCR_ARCH=386 50275 else 50276 CORRECT_MSVCR_ARCH=x86-64 50277 fi 50278 fi 50279 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50281 $as_echo "ok" >&6; } 50282 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50284 $as_echo_n "checking for $DLL_NAME... " >&6; } 50285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50286 $as_echo "$MSVC_DLL" >&6; } 50287 else 50288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50289 $as_echo "incorrect, ignoring" >&6; } 50290 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50291 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50292 fi 50293 fi 50294 50295 fi 50296 fi 50297 50298 if test "x$MSVC_DLL" = x; then 50299 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50300 # (This was the original behaviour; kept since it might turn something up) 50301 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50302 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50303 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50304 | $GREP x64 | $HEAD --lines 1` 50305 else 50306 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50307 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50308 if test "x$POSSIBLE_MSVC_DLL" = x; then 50309 # We're grasping at straws now... 50310 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50311 | $HEAD --lines 1` 50312 fi 50313 fi 50314 50315 50316 DLL_NAME="$DLL_NAME" 50317 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50318 METHOD="search of VCINSTALLDIR" 50319 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50320 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50321 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50322 50323 # Need to check if the found msvcr is correct architecture 50324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50325 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50326 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50328 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50329 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50330 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50331 CORRECT_MSVCR_ARCH="PE32 executable" 50332 else 50333 CORRECT_MSVCR_ARCH="PE32+ executable" 50334 fi 50335 else 50336 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50337 CORRECT_MSVCR_ARCH=386 50338 else 50339 CORRECT_MSVCR_ARCH=x86-64 50340 fi 50341 fi 50342 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50344 $as_echo "ok" >&6; } 50345 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50347 $as_echo_n "checking for $DLL_NAME... " >&6; } 50348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50349 $as_echo "$MSVC_DLL" >&6; } 50350 else 50351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50352 $as_echo "incorrect, ignoring" >&6; } 50353 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50354 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50355 fi 50356 fi 50357 50358 fi 50359 fi 50360 50361 if test "x$MSVC_DLL" = x; then 50362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50363 $as_echo_n "checking for $DLL_NAME... " >&6; } 50364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50365 $as_echo "no" >&6; } 50366 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50367 fi 50368 50369 MSVCR_DLL=$MSVC_DLL 50370 50371 # Only process if variable expands to non-empty 50372 50373 if test "x$MSVCR_DLL" != x; then 50374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50375 50376 # Input might be given as Windows format, start by converting to 50377 # unix format. 50378 path="$MSVCR_DLL" 50379 new_path=`$CYGPATH -u "$path"` 50380 50381 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50382 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50383 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50384 # "foo.exe" is OK but "foo" is an error. 50385 # 50386 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50387 # It is also a way to make sure we got the proper file name for the real test later on. 50388 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50389 if test "x$test_shortpath" = x; then 50390 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50391 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50392 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 50393 fi 50394 50395 # Call helper function which possibly converts this using DOS-style short mode. 50396 # If so, the updated path is stored in $new_path. 50397 50398 input_path="$new_path" 50399 # Check if we need to convert this using DOS-style short mode. If the path 50400 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50401 # take no chances and rewrite it. 50402 # Note: m4 eats our [], so we need to use [ and ] instead. 50403 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50404 if test "x$has_forbidden_chars" != x; then 50405 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50406 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50407 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50408 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50409 # Going to short mode and back again did indeed matter. Since short mode is 50410 # case insensitive, let's make it lowercase to improve readability. 50411 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50412 # Now convert it back to Unix-stile (cygpath) 50413 input_path=`$CYGPATH -u "$shortmode_path"` 50414 new_path="$input_path" 50415 fi 50416 fi 50417 50418 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50419 if test "x$test_cygdrive_prefix" = x; then 50420 # As a simple fix, exclude /usr/bin since it's not a real path. 50421 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50422 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50423 # a path prefixed by /cygdrive for fixpath to work. 50424 new_path="$CYGWIN_ROOT_PATH$input_path" 50425 fi 50426 fi 50427 50428 50429 if test "x$path" != "x$new_path"; then 50430 MSVCR_DLL="$new_path" 50431 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50432 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50433 fi 50434 50435 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50436 50437 path="$MSVCR_DLL" 50438 has_colon=`$ECHO $path | $GREP ^.:` 50439 new_path="$path" 50440 if test "x$has_colon" = x; then 50441 # Not in mixed or Windows style, start by that. 50442 new_path=`cmd //c echo $path` 50443 fi 50444 50445 50446 input_path="$new_path" 50447 # Check if we need to convert this using DOS-style short mode. If the path 50448 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50449 # take no chances and rewrite it. 50450 # Note: m4 eats our [], so we need to use [ and ] instead. 50451 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50452 if test "x$has_forbidden_chars" != x; then 50453 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50454 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50455 fi 50456 50457 50458 windows_path="$new_path" 50459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50460 unix_path=`$CYGPATH -u "$windows_path"` 50461 new_path="$unix_path" 50462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50463 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50464 new_path="$unix_path" 50465 fi 50466 50467 if test "x$path" != "x$new_path"; then 50468 MSVCR_DLL="$new_path" 50469 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50470 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50471 fi 50472 50473 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50474 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50475 50476 else 50477 # We're on a unix platform. Hooray! :) 50478 path="$MSVCR_DLL" 50479 has_space=`$ECHO "$path" | $GREP " "` 50480 if test "x$has_space" != x; then 50481 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50482 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50483 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50484 fi 50485 50486 # Use eval to expand a potential ~ 50487 eval path="$path" 50488 if test ! -f "$path" && test ! -d "$path"; then 50489 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50490 fi 50491 50492 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 50493 fi 50494 fi 50495 50496 MSVCR_DLL=$MSVCR_DLL 50497 50498 50499 fi 50500 50501 50502 # Check whether --with-msvcp-dll was given. 50503 if test "${with_msvcp_dll+set}" = set; then : 50504 withval=$with_msvcp_dll; 50505 fi 50506 50507 50508 if test "x$MSVCP_NAME" != "x"; then 50509 if test "x$with_msvcp_dll" != x; then 50510 # If given explicitely by user, do not probe. If not present, fail directly. 50511 50512 DLL_NAME="$DLL_NAME" 50513 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 50514 METHOD="--with-msvcp-dll" 50515 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50516 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50517 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50518 50519 # Need to check if the found msvcr is correct architecture 50520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50521 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50522 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50524 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50525 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50526 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50527 CORRECT_MSVCR_ARCH="PE32 executable" 50528 else 50529 CORRECT_MSVCR_ARCH="PE32+ executable" 50530 fi 50531 else 50532 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50533 CORRECT_MSVCR_ARCH=386 50534 else 50535 CORRECT_MSVCR_ARCH=x86-64 50536 fi 50537 fi 50538 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50540 $as_echo "ok" >&6; } 50541 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50543 $as_echo_n "checking for $DLL_NAME... " >&6; } 50544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50545 $as_echo "$MSVC_DLL" >&6; } 50546 else 50547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50548 $as_echo "incorrect, ignoring" >&6; } 50549 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50550 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50551 fi 50552 fi 50553 50554 if test "x$MSVC_DLL" = x; then 50555 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 50556 fi 50557 else 50558 50559 VAR_NAME="MSVCP_DLL" 50560 DLL_NAME="${MSVCP_NAME}" 50561 MSVC_DLL= 50562 50563 if test "x$MSVC_DLL" = x; then 50564 # Probe: Using well-known location from Visual Studio 10.0 50565 if test "x$VCINSTALLDIR" != x; then 50566 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 50567 50568 windows_path="$CYGWIN_VC_INSTALL_DIR" 50569 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50570 unix_path=`$CYGPATH -u "$windows_path"` 50571 CYGWIN_VC_INSTALL_DIR="$unix_path" 50572 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50573 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50574 CYGWIN_VC_INSTALL_DIR="$unix_path" 50575 fi 50576 50577 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50578 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50579 else 50580 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50581 fi 50582 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 50583 50584 DLL_NAME="$DLL_NAME" 50585 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50586 METHOD="well-known location in VCINSTALLDIR" 50587 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50588 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50589 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50590 50591 # Need to check if the found msvcr is correct architecture 50592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50593 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50594 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50596 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50597 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50598 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50599 CORRECT_MSVCR_ARCH="PE32 executable" 50600 else 50601 CORRECT_MSVCR_ARCH="PE32+ executable" 50602 fi 50603 else 50604 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50605 CORRECT_MSVCR_ARCH=386 50606 else 50607 CORRECT_MSVCR_ARCH=x86-64 50608 fi 50609 fi 50610 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50612 $as_echo "ok" >&6; } 50613 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50615 $as_echo_n "checking for $DLL_NAME... " >&6; } 50616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50617 $as_echo "$MSVC_DLL" >&6; } 50618 else 50619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50620 $as_echo "incorrect, ignoring" >&6; } 50621 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50622 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50623 fi 50624 fi 50625 50626 fi 50627 fi 50628 50629 if test "x$MSVC_DLL" = x; then 50630 # Probe: Check in the Boot JDK directory. 50631 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 50632 50633 DLL_NAME="$DLL_NAME" 50634 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50635 METHOD="well-known location in Boot JDK" 50636 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50637 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50638 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50639 50640 # Need to check if the found msvcr is correct architecture 50641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50642 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50643 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50645 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50646 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50647 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50648 CORRECT_MSVCR_ARCH="PE32 executable" 50649 else 50650 CORRECT_MSVCR_ARCH="PE32+ executable" 50651 fi 50652 else 50653 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50654 CORRECT_MSVCR_ARCH=386 50655 else 50656 CORRECT_MSVCR_ARCH=x86-64 50657 fi 50658 fi 50659 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50661 $as_echo "ok" >&6; } 50662 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50664 $as_echo_n "checking for $DLL_NAME... " >&6; } 50665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50666 $as_echo "$MSVC_DLL" >&6; } 50667 else 50668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50669 $as_echo "incorrect, ignoring" >&6; } 50670 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50671 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50672 fi 50673 fi 50674 50675 fi 50676 50677 if test "x$MSVC_DLL" = x; then 50678 # Probe: Look in the Windows system32 directory 50679 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 50680 50681 windows_path="$CYGWIN_SYSTEMROOT" 50682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50683 unix_path=`$CYGPATH -u "$windows_path"` 50684 CYGWIN_SYSTEMROOT="$unix_path" 50685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50686 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50687 CYGWIN_SYSTEMROOT="$unix_path" 50688 fi 50689 50690 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 50691 50692 DLL_NAME="$DLL_NAME" 50693 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50694 METHOD="well-known location in SYSTEMROOT" 50695 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50696 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50697 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50698 50699 # Need to check if the found msvcr is correct architecture 50700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50701 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50702 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50704 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50705 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50706 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50707 CORRECT_MSVCR_ARCH="PE32 executable" 50708 else 50709 CORRECT_MSVCR_ARCH="PE32+ executable" 50710 fi 50711 else 50712 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50713 CORRECT_MSVCR_ARCH=386 50714 else 50715 CORRECT_MSVCR_ARCH=x86-64 50716 fi 50717 fi 50718 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50720 $as_echo "ok" >&6; } 50721 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50723 $as_echo_n "checking for $DLL_NAME... " >&6; } 50724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50725 $as_echo "$MSVC_DLL" >&6; } 50726 else 50727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50728 $as_echo "incorrect, ignoring" >&6; } 50729 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50730 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50731 fi 50732 fi 50733 50734 fi 50735 50736 if test "x$MSVC_DLL" = x; then 50737 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50738 if test "x$VS100COMNTOOLS" != x; then 50739 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50740 50741 windows_path="$CYGWIN_VS_TOOLS_DIR" 50742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50743 unix_path=`$CYGPATH -u "$windows_path"` 50744 CYGWIN_VS_TOOLS_DIR="$unix_path" 50745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50746 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50747 CYGWIN_VS_TOOLS_DIR="$unix_path" 50748 fi 50749 50750 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50751 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50752 | $GREP -i /x64/ | $HEAD --lines 1` 50753 else 50754 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50755 | $GREP -i /x86/ | $HEAD --lines 1` 50756 fi 50757 50758 DLL_NAME="$DLL_NAME" 50759 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50760 METHOD="search of VS100COMNTOOLS" 50761 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50762 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50763 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50764 50765 # Need to check if the found msvcr is correct architecture 50766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50767 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50768 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50769 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50770 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50771 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50772 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50773 CORRECT_MSVCR_ARCH="PE32 executable" 50774 else 50775 CORRECT_MSVCR_ARCH="PE32+ executable" 50776 fi 50777 else 50778 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50779 CORRECT_MSVCR_ARCH=386 50780 else 50781 CORRECT_MSVCR_ARCH=x86-64 50782 fi 50783 fi 50784 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50786 $as_echo "ok" >&6; } 50787 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50789 $as_echo_n "checking for $DLL_NAME... " >&6; } 50790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50791 $as_echo "$MSVC_DLL" >&6; } 50792 else 50793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50794 $as_echo "incorrect, ignoring" >&6; } 50795 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50796 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50797 fi 50798 fi 50799 50800 fi 50801 fi 50802 50803 if test "x$MSVC_DLL" = x; then 50804 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50805 # (This was the original behaviour; kept since it might turn something up) 50806 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50807 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50808 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50809 | $GREP x64 | $HEAD --lines 1` 50810 else 50811 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50812 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50813 if test "x$POSSIBLE_MSVC_DLL" = x; then 50814 # We're grasping at straws now... 50815 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50816 | $HEAD --lines 1` 50817 fi 50818 fi 50819 50820 50821 DLL_NAME="$DLL_NAME" 50822 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50823 METHOD="search of VCINSTALLDIR" 50824 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50825 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50826 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50827 50828 # Need to check if the found msvcr is correct architecture 50829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50830 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50831 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50833 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50834 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50835 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50836 CORRECT_MSVCR_ARCH="PE32 executable" 50837 else 50838 CORRECT_MSVCR_ARCH="PE32+ executable" 50839 fi 50840 else 50841 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50842 CORRECT_MSVCR_ARCH=386 50843 else 50844 CORRECT_MSVCR_ARCH=x86-64 50845 fi 50846 fi 50847 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50849 $as_echo "ok" >&6; } 50850 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50852 $as_echo_n "checking for $DLL_NAME... " >&6; } 50853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50854 $as_echo "$MSVC_DLL" >&6; } 50855 else 50856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50857 $as_echo "incorrect, ignoring" >&6; } 50858 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50859 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50860 fi 50861 fi 50862 50863 fi 50864 fi 50865 50866 if test "x$MSVC_DLL" = x; then 50867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50868 $as_echo_n "checking for $DLL_NAME... " >&6; } 50869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50870 $as_echo "no" >&6; } 50871 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50872 fi 50873 50874 MSVCP_DLL=$MSVC_DLL 50875 50876 # Only process if variable expands to non-empty 50877 50878 if test "x$MSVCP_DLL" != x; then 50879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50880 50881 # Input might be given as Windows format, start by converting to 50882 # unix format. 50883 path="$MSVCP_DLL" 50884 new_path=`$CYGPATH -u "$path"` 50885 50886 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50887 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50888 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50889 # "foo.exe" is OK but "foo" is an error. 50890 # 50891 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50892 # It is also a way to make sure we got the proper file name for the real test later on. 50893 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50894 if test "x$test_shortpath" = x; then 50895 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&5 50896 $as_echo "$as_me: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&6;} 50897 as_fn_error $? "Cannot locate the the path of MSVCP_DLL" "$LINENO" 5 50898 fi 50899 50900 # Call helper function which possibly converts this using DOS-style short mode. 50901 # If so, the updated path is stored in $new_path. 50902 50903 input_path="$new_path" 50904 # Check if we need to convert this using DOS-style short mode. If the path 50905 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50906 # take no chances and rewrite it. 50907 # Note: m4 eats our [], so we need to use [ and ] instead. 50908 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50909 if test "x$has_forbidden_chars" != x; then 50910 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50911 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50912 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50913 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50914 # Going to short mode and back again did indeed matter. Since short mode is 50915 # case insensitive, let's make it lowercase to improve readability. 50916 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50917 # Now convert it back to Unix-stile (cygpath) 50918 input_path=`$CYGPATH -u "$shortmode_path"` 50919 new_path="$input_path" 50920 fi 50921 fi 50922 50923 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50924 if test "x$test_cygdrive_prefix" = x; then 50925 # As a simple fix, exclude /usr/bin since it's not a real path. 50926 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50927 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50928 # a path prefixed by /cygdrive for fixpath to work. 50929 new_path="$CYGWIN_ROOT_PATH$input_path" 50930 fi 50931 fi 50932 50933 50934 if test "x$path" != "x$new_path"; then 50935 MSVCP_DLL="$new_path" 50936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCP_DLL to \"$new_path\"" >&5 50937 $as_echo "$as_me: Rewriting MSVCP_DLL to \"$new_path\"" >&6;} 50938 fi 50939 50940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50941 50942 path="$MSVCP_DLL" 50943 has_colon=`$ECHO $path | $GREP ^.:` 50944 new_path="$path" 50945 if test "x$has_colon" = x; then 50946 # Not in mixed or Windows style, start by that. 50947 new_path=`cmd //c echo $path` 50948 fi 50949 50950 50951 input_path="$new_path" 50952 # Check if we need to convert this using DOS-style short mode. If the path 50953 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50954 # take no chances and rewrite it. 50955 # Note: m4 eats our [], so we need to use [ and ] instead. 50956 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50957 if test "x$has_forbidden_chars" != x; then 50958 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50959 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50960 fi 50961 50962 50963 windows_path="$new_path" 50964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50965 unix_path=`$CYGPATH -u "$windows_path"` 50966 new_path="$unix_path" 50967 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50968 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50969 new_path="$unix_path" 50970 fi 50971 50972 if test "x$path" != "x$new_path"; then 50973 MSVCP_DLL="$new_path" 50974 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCP_DLL to \"$new_path\"" >&5 50975 $as_echo "$as_me: Rewriting MSVCP_DLL to \"$new_path\"" >&6;} 50976 fi 50977 50978 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50979 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50980 50981 else 50982 # We're on a unix platform. Hooray! :) 50983 path="$MSVCP_DLL" 50984 has_space=`$ECHO "$path" | $GREP " "` 50985 if test "x$has_space" != x; then 50986 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&5 50987 $as_echo "$as_me: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&6;} 50988 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50989 fi 50990 50991 # Use eval to expand a potential ~ 50992 eval path="$path" 50993 if test ! -f "$path" && test ! -d "$path"; then 50994 as_fn_error $? "The path of MSVCP_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50995 fi 50996 50997 MSVCP_DLL="`cd "$path"; $THEPWDCMD -L`" 50998 fi 50999 fi 51000 51001 MSVCP_DLL=$MSVCP_DLL 51002 51003 51004 fi 51005 fi 51006 51007 51008 51009 # Check whether --with-dxsdk was given. 51010 if test "${with_dxsdk+set}" = set; then : 51011 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 51012 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 51013 fi 51014 51015 51016 51017 51018 # Check whether --with-dxsdk-lib was given. 51019 if test "${with_dxsdk_lib+set}" = set; then : 51020 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 51021 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 51022 fi 51023 51024 51025 51026 51027 # Check whether --with-dxsdk-include was given. 51028 if test "${with_dxsdk_include+set}" = set; then : 51029 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 51030 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 51031 fi 51032 51033 51034 fi 51035 51036 51037 ############################################################################### 51038 # 51039 # We need to do some final tweaking, when everything else is done. 51040 # 51041 ############################################################################### 51042 51043 51044 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 51045 51046 51047 # The name of the Service Agent jar. 51048 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 51049 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 51050 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 51051 fi 51052 51053 51054 51055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 51056 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 51057 51058 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 51059 ENABLE_INTREE_EC=yes 51060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51061 $as_echo "yes" >&6; } 51062 else 51063 ENABLE_INTREE_EC=no 51064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51065 $as_echo "no" >&6; } 51066 fi 51067 51068 51069 51070 51071 ############################################################################### 51072 # 51073 # Configure parts of the build that only affect the build performance, 51074 # not the result. 51075 # 51076 ############################################################################### 51077 51078 51079 # How many cores do we have on this build system? 51080 51081 # Check whether --with-num-cores was given. 51082 if test "${with_num_cores+set}" = set; then : 51083 withval=$with_num_cores; 51084 fi 51085 51086 if test "x$with_num_cores" = x; then 51087 # The number of cores were not specified, try to probe them. 51088 51089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 51090 $as_echo_n "checking for number of cores... " >&6; } 51091 NUM_CORES=1 51092 FOUND_CORES=no 51093 51094 if test -f /proc/cpuinfo; then 51095 # Looks like a Linux (or cygwin) system 51096 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 51097 FOUND_CORES=yes 51098 elif test -x /usr/sbin/psrinfo; then 51099 # Looks like a Solaris system 51100 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 51101 FOUND_CORES=yes 51102 elif test -x /usr/sbin/system_profiler; then 51103 # Looks like a MacOSX system 51104 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 51105 FOUND_CORES=yes 51106 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 51107 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 51108 FOUND_CORES=yes 51109 elif test -n "$NUMBER_OF_PROCESSORS"; then 51110 # On windows, look in the env 51111 NUM_CORES=$NUMBER_OF_PROCESSORS 51112 FOUND_CORES=yes 51113 fi 51114 51115 if test "x$FOUND_CORES" = xyes; then 51116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 51117 $as_echo "$NUM_CORES" >&6; } 51118 else 51119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 51120 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 51121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 51122 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 51123 fi 51124 51125 else 51126 NUM_CORES=$with_num_cores 51127 fi 51128 51129 51130 51131 # How much memory do we have on this build system? 51132 51133 # Check whether --with-memory-size was given. 51134 if test "${with_memory_size+set}" = set; then : 51135 withval=$with_memory_size; 51136 fi 51137 51138 if test "x$with_memory_size" = x; then 51139 # The memory size was not specified, try to probe it. 51140 51141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 51142 $as_echo_n "checking for memory size... " >&6; } 51143 # Default to 1024 MB 51144 MEMORY_SIZE=1024 51145 FOUND_MEM=no 51146 51147 if test -f /proc/meminfo; then 51148 # Looks like a Linux (or cygwin) system 51149 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 51150 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 51151 FOUND_MEM=yes 51152 elif test -x /usr/sbin/prtconf; then 51153 # Looks like a Solaris or AIX system 51154 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 51155 FOUND_MEM=yes 51156 elif test -x /usr/sbin/system_profiler; then 51157 # Looks like a MacOSX system 51158 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 51159 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 51160 FOUND_MEM=yes 51161 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 51162 # Windows, but without cygwin 51163 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 51164 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 51165 FOUND_MEM=yes 51166 fi 51167 51168 if test "x$FOUND_MEM" = xyes; then 51169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 51170 $as_echo "$MEMORY_SIZE MB" >&6; } 51171 else 51172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 51173 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 51174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 51175 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 51176 fi 51177 51178 else 51179 MEMORY_SIZE=$with_memory_size 51180 fi 51181 51182 51183 51184 # Provide a decent default number of parallel jobs for make depending on 51185 # number of cores, amount of memory and machine architecture. 51186 51187 # Check whether --with-jobs was given. 51188 if test "${with_jobs+set}" = set; then : 51189 withval=$with_jobs; 51190 fi 51191 51192 if test "x$with_jobs" = x; then 51193 # Number of jobs was not specified, calculate. 51194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 51195 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 51196 # Approximate memory in GB. 51197 memory_gb=`expr $MEMORY_SIZE / 1024` 51198 # Pick the lowest of memory in gb and number of cores. 51199 if test "$memory_gb" -lt "$NUM_CORES"; then 51200 JOBS="$memory_gb" 51201 else 51202 JOBS="$NUM_CORES" 51203 # On bigger machines, leave some room for other processes to run 51204 if test "$JOBS" -gt "4"; then 51205 JOBS=`expr $JOBS '*' 90 / 100` 51206 fi 51207 fi 51208 # Cap number of jobs to 16 51209 if test "$JOBS" -gt "16"; then 51210 JOBS=16 51211 fi 51212 if test "$JOBS" -eq "0"; then 51213 JOBS=1 51214 fi 51215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 51216 $as_echo "$JOBS" >&6; } 51217 else 51218 JOBS=$with_jobs 51219 fi 51220 51221 51222 51223 # Setup arguments for the boot jdk (after cores and memory have been setup) 51224 51225 ############################################################################## 51226 # 51227 # Specify jvm options for anything that is run with the Boot JDK. 51228 # Not all JVM:s accept the same arguments on the command line. 51229 # 51230 51231 # Check whether --with-boot-jdk-jvmargs was given. 51232 if test "${with_boot_jdk_jvmargs+set}" = set; then : 51233 withval=$with_boot_jdk_jvmargs; 51234 fi 51235 51236 51237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 51238 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 51239 51240 # Disable special log output when a debug build is used as Boot JDK... 51241 51242 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 51243 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 51244 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 51245 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51246 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51247 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51248 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 51249 JVM_ARG_OK=true 51250 else 51251 $ECHO "Arg failed:" >&5 51252 $ECHO "$OUTPUT" >&5 51253 JVM_ARG_OK=false 51254 fi 51255 51256 51257 # Apply user provided options. 51258 51259 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 51260 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 51261 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 51262 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51263 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51264 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51265 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 51266 JVM_ARG_OK=true 51267 else 51268 $ECHO "Arg failed:" >&5 51269 $ECHO "$OUTPUT" >&5 51270 JVM_ARG_OK=false 51271 fi 51272 51273 51274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 51275 $as_echo "$boot_jdk_jvmargs" >&6; } 51276 51277 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 51278 JAVA_FLAGS=$boot_jdk_jvmargs 51279 51280 51281 51282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 51283 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 51284 51285 # Starting amount of heap memory. 51286 51287 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 51288 $ECHO "Command: $JAVA -Xms64M -version" >&5 51289 OUTPUT=`$JAVA -Xms64M -version 2>&1` 51290 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51291 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51292 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51293 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 51294 JVM_ARG_OK=true 51295 else 51296 $ECHO "Arg failed:" >&5 51297 $ECHO "$OUTPUT" >&5 51298 JVM_ARG_OK=false 51299 fi 51300 51301 51302 # Maximum amount of heap memory. 51303 # Maximum stack size. 51304 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 51305 if test "x$BUILD_NUM_BITS" = x32; then 51306 if test "$JVM_MAX_HEAP" -gt "1100"; then 51307 JVM_MAX_HEAP=1100 51308 elif test "$JVM_MAX_HEAP" -lt "512"; then 51309 JVM_MAX_HEAP=512 51310 fi 51311 STACK_SIZE=768 51312 else 51313 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 51314 # pointers are used. Apparently, we need to increase the heap and stack 51315 # space for the jvm. More specifically, when running javac to build huge 51316 # jdk batch 51317 if test "$JVM_MAX_HEAP" -gt "1600"; then 51318 JVM_MAX_HEAP=1600 51319 elif test "$JVM_MAX_HEAP" -lt "512"; then 51320 JVM_MAX_HEAP=512 51321 fi 51322 STACK_SIZE=1536 51323 fi 51324 51325 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 51326 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 51327 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 51328 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51329 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51330 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51331 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 51332 JVM_ARG_OK=true 51333 else 51334 $ECHO "Arg failed:" >&5 51335 $ECHO "$OUTPUT" >&5 51336 JVM_ARG_OK=false 51337 fi 51338 51339 51340 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 51341 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 51342 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 51343 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51344 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51345 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51346 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 51347 JVM_ARG_OK=true 51348 else 51349 $ECHO "Arg failed:" >&5 51350 $ECHO "$OUTPUT" >&5 51351 JVM_ARG_OK=false 51352 fi 51353 51354 51355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 51356 $as_echo "$boot_jdk_jvmargs_big" >&6; } 51357 51358 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 51359 51360 51361 51362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 51363 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 51364 51365 # Use serial gc for small short lived tools if possible 51366 51367 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 51368 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 51369 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 51370 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51371 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51372 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51373 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 51374 JVM_ARG_OK=true 51375 else 51376 $ECHO "Arg failed:" >&5 51377 $ECHO "$OUTPUT" >&5 51378 JVM_ARG_OK=false 51379 fi 51380 51381 51382 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 51383 $ECHO "Command: $JAVA -Xms32M -version" >&5 51384 OUTPUT=`$JAVA -Xms32M -version 2>&1` 51385 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51386 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51387 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51388 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 51389 JVM_ARG_OK=true 51390 else 51391 $ECHO "Arg failed:" >&5 51392 $ECHO "$OUTPUT" >&5 51393 JVM_ARG_OK=false 51394 fi 51395 51396 51397 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 51398 $ECHO "Command: $JAVA -Xmx512M -version" >&5 51399 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 51400 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51401 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51402 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51403 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 51404 JVM_ARG_OK=true 51405 else 51406 $ECHO "Arg failed:" >&5 51407 $ECHO "$OUTPUT" >&5 51408 JVM_ARG_OK=false 51409 fi 51410 51411 51412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 51413 $as_echo "$boot_jdk_jvmargs_small" >&6; } 51414 51415 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 51416 51417 51418 JAVA_TOOL_FLAGS_SMALL="" 51419 for f in $JAVA_FLAGS_SMALL; do 51420 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 51421 done 51422 51423 51424 51425 # Setup smart javac (after cores and memory have been setup) 51426 51427 51428 # Check whether --with-sjavac-server-java was given. 51429 if test "${with_sjavac_server_java+set}" = set; then : 51430 withval=$with_sjavac_server_java; 51431 fi 51432 51433 51434 if test "x$with_sjavac_server_java" != x; then 51435 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 51436 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 51437 if test "x$FOUND_VERSION" = x; then 51438 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 51439 fi 51440 else 51441 SJAVAC_SERVER_JAVA="$JAVA" 51442 fi 51443 51444 51445 if test "$MEMORY_SIZE" -gt "3000"; then 51446 51447 $ECHO "Check if jvm arg is ok: -d64" >&5 51448 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 51449 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 51450 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51451 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51452 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51453 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 51454 JVM_ARG_OK=true 51455 else 51456 $ECHO "Arg failed:" >&5 51457 $ECHO "$OUTPUT" >&5 51458 JVM_ARG_OK=false 51459 fi 51460 51461 if test "$JVM_ARG_OK" = true; then 51462 JVM_64BIT=true 51463 JVM_ARG_OK=false 51464 fi 51465 fi 51466 51467 MX_VALUE=`expr $MEMORY_SIZE / 2` 51468 if test "$JVM_64BIT" = true; then 51469 # Set ms lower than mx since more than one instance of the server might 51470 # get launched at the same time before they figure out which instance won. 51471 MS_VALUE=512 51472 if test "$MX_VALUE" -gt "2048"; then 51473 MX_VALUE=2048 51474 fi 51475 else 51476 MS_VALUE=256 51477 if test "$MX_VALUE" -gt "1500"; then 51478 MX_VALUE=1500 51479 fi 51480 fi 51481 if test "$MX_VALUE" -lt "512"; then 51482 MX_VALUE=512 51483 fi 51484 51485 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 51486 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 51487 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 51488 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51489 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51490 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51491 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 51492 JVM_ARG_OK=true 51493 else 51494 $ECHO "Arg failed:" >&5 51495 $ECHO "$OUTPUT" >&5 51496 JVM_ARG_OK=false 51497 fi 51498 51499 51500 51501 # Check whether --enable-sjavac was given. 51502 if test "${enable_sjavac+set}" = set; then : 51503 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 51504 else 51505 ENABLE_SJAVAC='no' 51506 fi 51507 51508 if test "x$JVM_ARG_OK" = "xfalse"; then 51509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 51510 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 51511 ENABLE_SJAVAC=no; 51512 fi 51513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 51514 $as_echo_n "checking whether to use sjavac... " >&6; } 51515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 51516 $as_echo "$ENABLE_SJAVAC" >&6; } 51517 51518 51519 51520 # Can the C/C++ compiler use precompiled headers? 51521 51522 51523 ############################################################################### 51524 # 51525 # Can the C/C++ compiler use precompiled headers? 51526 # 51527 # Check whether --enable-precompiled-headers was given. 51528 if test "${enable_precompiled_headers+set}" = set; then : 51529 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 51530 else 51531 ENABLE_PRECOMPH=yes 51532 fi 51533 51534 51535 USE_PRECOMPILED_HEADER=1 51536 if test "x$ENABLE_PRECOMPH" = xno; then 51537 USE_PRECOMPILED_HEADER=0 51538 fi 51539 51540 if test "x$ENABLE_PRECOMPH" = xyes; then 51541 # Check that the compiler actually supports precomp headers. 51542 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 51544 $as_echo_n "checking that precompiled headers work... " >&6; } 51545 echo "int alfa();" > conftest.h 51546 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 51547 if test ! -f conftest.hpp.gch; then 51548 USE_PRECOMPILED_HEADER=0 51549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51550 $as_echo "no" >&6; } 51551 else 51552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51553 $as_echo "yes" >&6; } 51554 fi 51555 rm -f conftest.h conftest.hpp.gch 51556 fi 51557 fi 51558 51559 51560 51561 51562 # Setup use of ccache, if available 51563 51564 # Check whether --enable-ccache was given. 51565 if test "${enable_ccache+set}" = set; then : 51566 enableval=$enable_ccache; 51567 fi 51568 51569 51570 CCACHE= 51571 CCACHE_STATUS= 51572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 51573 $as_echo_n "checking is ccache enabled... " >&6; } 51574 if test "x$enable_ccache" = xyes; then 51575 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 51576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51577 $as_echo "yes" >&6; } 51578 OLD_PATH="$PATH" 51579 if test "x$TOOLCHAIN_PATH" != x; then 51580 PATH=$TOOLCHAIN_PATH:$PATH 51581 fi 51582 51583 51584 51585 # Publish this variable in the help. 51586 51587 51588 if test "x$CCACHE" = x; then 51589 # The variable is not set by user, try to locate tool using the code snippet 51590 for ac_prog in ccache 51591 do 51592 # Extract the first word of "$ac_prog", so it can be a program name with args. 51593 set dummy $ac_prog; ac_word=$2 51594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51595 $as_echo_n "checking for $ac_word... " >&6; } 51596 if ${ac_cv_path_CCACHE+:} false; then : 51597 $as_echo_n "(cached) " >&6 51598 else 51599 case $CCACHE in 51600 [\\/]* | ?:[\\/]*) 51601 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51602 ;; 51603 *) 51604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51605 for as_dir in $PATH 51606 do 51607 IFS=$as_save_IFS 51608 test -z "$as_dir" && as_dir=. 51609 for ac_exec_ext in '' $ac_executable_extensions; do 51610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51611 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51613 break 2 51614 fi 51615 done 51616 done 51617 IFS=$as_save_IFS 51618 51619 ;; 51620 esac 51621 fi 51622 CCACHE=$ac_cv_path_CCACHE 51623 if test -n "$CCACHE"; then 51624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51625 $as_echo "$CCACHE" >&6; } 51626 else 51627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51628 $as_echo "no" >&6; } 51629 fi 51630 51631 51632 test -n "$CCACHE" && break 51633 done 51634 51635 else 51636 # The variable is set, but is it from the command line or the environment? 51637 51638 # Try to remove the string !CCACHE! from our list. 51639 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 51640 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 51641 # If it failed, the variable was not from the command line. Ignore it, 51642 # but warn the user (except for BASH, which is always set by the calling BASH). 51643 if test "xCCACHE" != xBASH; then 51644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 51645 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 51646 fi 51647 # Try to locate tool using the code snippet 51648 for ac_prog in ccache 51649 do 51650 # Extract the first word of "$ac_prog", so it can be a program name with args. 51651 set dummy $ac_prog; ac_word=$2 51652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51653 $as_echo_n "checking for $ac_word... " >&6; } 51654 if ${ac_cv_path_CCACHE+:} false; then : 51655 $as_echo_n "(cached) " >&6 51656 else 51657 case $CCACHE in 51658 [\\/]* | ?:[\\/]*) 51659 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51660 ;; 51661 *) 51662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51663 for as_dir in $PATH 51664 do 51665 IFS=$as_save_IFS 51666 test -z "$as_dir" && as_dir=. 51667 for ac_exec_ext in '' $ac_executable_extensions; do 51668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51669 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51671 break 2 51672 fi 51673 done 51674 done 51675 IFS=$as_save_IFS 51676 51677 ;; 51678 esac 51679 fi 51680 CCACHE=$ac_cv_path_CCACHE 51681 if test -n "$CCACHE"; then 51682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51683 $as_echo "$CCACHE" >&6; } 51684 else 51685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51686 $as_echo "no" >&6; } 51687 fi 51688 51689 51690 test -n "$CCACHE" && break 51691 done 51692 51693 else 51694 # If it succeeded, then it was overridden by the user. We will use it 51695 # for the tool. 51696 51697 # First remove it from the list of overridden variables, so we can test 51698 # for unknown variables in the end. 51699 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 51700 51701 # Check if the provided tool contains a complete path. 51702 tool_specified="$CCACHE" 51703 tool_basename="${tool_specified##*/}" 51704 if test "x$tool_basename" = "x$tool_specified"; then 51705 # A command without a complete path is provided, search $PATH. 51706 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 51707 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 51708 # Extract the first word of "$tool_basename", so it can be a program name with args. 51709 set dummy $tool_basename; ac_word=$2 51710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51711 $as_echo_n "checking for $ac_word... " >&6; } 51712 if ${ac_cv_path_CCACHE+:} false; then : 51713 $as_echo_n "(cached) " >&6 51714 else 51715 case $CCACHE in 51716 [\\/]* | ?:[\\/]*) 51717 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51718 ;; 51719 *) 51720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51721 for as_dir in $PATH 51722 do 51723 IFS=$as_save_IFS 51724 test -z "$as_dir" && as_dir=. 51725 for ac_exec_ext in '' $ac_executable_extensions; do 51726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51727 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51729 break 2 51730 fi 51731 done 51732 done 51733 IFS=$as_save_IFS 51734 51735 ;; 51736 esac 51737 fi 51738 CCACHE=$ac_cv_path_CCACHE 51739 if test -n "$CCACHE"; then 51740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51741 $as_echo "$CCACHE" >&6; } 51742 else 51743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51744 $as_echo "no" >&6; } 51745 fi 51746 51747 51748 if test "x$CCACHE" = x; then 51749 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 51750 fi 51751 else 51752 # Otherwise we believe it is a complete path. Use it as it is. 51753 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 51754 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 51755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 51756 $as_echo_n "checking for CCACHE... " >&6; } 51757 if test ! -x "$tool_specified"; then 51758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 51759 $as_echo "not found" >&6; } 51760 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 51761 fi 51762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 51763 $as_echo "$tool_specified" >&6; } 51764 fi 51765 fi 51766 fi 51767 51768 51769 51770 if test "x$CCACHE" = x; then 51771 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 51772 fi 51773 51774 51775 PATH="$OLD_PATH" 51776 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 51777 CCACHE_STATUS="Active ($CCACHE_VERSION)" 51778 else 51779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51780 $as_echo "no" >&6; } 51781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 51782 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 51783 fi 51784 elif test "x$enable_ccache" = xno; then 51785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 51786 $as_echo "no, explicitly disabled" >&6; } 51787 CCACHE_STATUS="Disabled" 51788 elif test "x$enable_ccache" = x; then 51789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51790 $as_echo "no" >&6; } 51791 else 51792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 51793 $as_echo "unknown" >&6; } 51794 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 51795 fi 51796 51797 51798 51799 # Check whether --with-ccache-dir was given. 51800 if test "${with_ccache_dir+set}" = set; then : 51801 withval=$with_ccache_dir; 51802 fi 51803 51804 51805 if test "x$with_ccache_dir" != x; then 51806 # When using a non home ccache directory, assume the use is to share ccache files 51807 # with other users. Thus change the umask. 51808 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 51809 if test "x$CCACHE" = x; then 51810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 51811 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 51812 fi 51813 fi 51814 51815 if test "x$CCACHE" != x; then 51816 51817 if test "x$CCACHE" != x; then 51818 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 51819 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 51820 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 51821 if test "x$HAS_BAD_CCACHE" != "x"; then 51822 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 51823 fi 51824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 51825 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 51826 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 51827 PUSHED_FLAGS="$CXXFLAGS" 51828 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 51829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51830 /* end confdefs.h. */ 51831 51832 int 51833 main () 51834 { 51835 51836 ; 51837 return 0; 51838 } 51839 _ACEOF 51840 if ac_fn_cxx_try_compile "$LINENO"; then : 51841 CC_KNOWS_CCACHE_TRICK=yes 51842 else 51843 CC_KNOWS_CCACHE_TRICK=no 51844 fi 51845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51846 CXXFLAGS="$PUSHED_FLAGS" 51847 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 51848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51849 $as_echo "yes" >&6; } 51850 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 51851 51852 CCACHE_SLOPPINESS=pch_defines,time_macros 51853 else 51854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51855 $as_echo "no" >&6; } 51856 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 51857 fi 51858 fi 51859 51860 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 51861 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 51862 51863 if test "x$SET_CCACHE_DIR" != x; then 51864 mkdir -p $CCACHE_DIR > /dev/null 2>&1 51865 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 51866 fi 51867 fi 51868 51869 fi 51870 51871 51872 ############################################################################### 51873 # 51874 # And now the finish... 51875 # 51876 ############################################################################### 51877 51878 # Check for some common pitfalls 51879 51880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51881 file_to_test="$SRC_ROOT/LICENSE" 51882 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 51883 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 51884 fi 51885 fi 51886 51887 51888 # Did user specify any unknown variables? 51889 51890 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 51891 # Replace the separating ! with spaces before presenting for end user. 51892 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 51893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 51894 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 51895 fi 51896 51897 51898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 51899 $as_echo_n "checking if build directory is on local disk... " >&6; } 51900 51901 # df -l lists only local disks; if the given directory is not found then 51902 # a non-zero exit code is given 51903 if test "x$DF" = x; then 51904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51905 # msys does not have df; use Windows "net use" instead. 51906 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 51907 if test "x$IS_NETWORK_DISK" = x; then 51908 OUTPUT_DIR_IS_LOCAL="yes" 51909 else 51910 OUTPUT_DIR_IS_LOCAL="no" 51911 fi 51912 else 51913 # No df here, say it's local 51914 OUTPUT_DIR_IS_LOCAL="yes" 51915 fi 51916 else 51917 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 51918 OUTPUT_DIR_IS_LOCAL="yes" 51919 else 51920 OUTPUT_DIR_IS_LOCAL="no" 51921 fi 51922 fi 51923 51924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 51925 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 51926 51927 51928 51929 # Check if the user has any old-style ALT_ variables set. 51930 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 51931 51932 # Before generating output files, test if they exist. If they do, this is a reconfigure. 51933 # Since we can't properly handle the dependencies for this, warn the user about the situation 51934 if test -e $OUTPUT_ROOT/spec.gmk; then 51935 IS_RECONFIGURE=yes 51936 else 51937 IS_RECONFIGURE=no 51938 fi 51939 51940 51941 # At the end, call the custom hook. (Dummy macro if no custom sources available) 51942 51943 51944 # We're messing a bit with internal autoconf variables to put the config.status 51945 # in the output directory instead of the current directory. 51946 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 51947 51948 # Create the actual output files. Now the main work of configure is done. 51949 cat >confcache <<\_ACEOF 51950 # This file is a shell script that caches the results of configure 51951 # tests run on this system so they can be shared between configure 51952 # scripts and configure runs, see configure's option --config-cache. 51953 # It is not useful on other systems. If it contains results you don't 51954 # want to keep, you may remove or edit it. 51955 # 51956 # config.status only pays attention to the cache file if you give it 51957 # the --recheck option to rerun configure. 51958 # 51959 # `ac_cv_env_foo' variables (set or unset) will be overridden when 51960 # loading this file, other *unset* `ac_cv_foo' will be assigned the 51961 # following values. 51962 51963 _ACEOF 51964 51965 # The following way of writing the cache mishandles newlines in values, 51966 # but we know of no workaround that is simple, portable, and efficient. 51967 # So, we kill variables containing newlines. 51968 # Ultrix sh set writes to stderr and can't be redirected directly, 51969 # and sets the high bit in the cache file unless we assign to the vars. 51970 ( 51971 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 51972 eval ac_val=\$$ac_var 51973 case $ac_val in #( 51974 *${as_nl}*) 51975 case $ac_var in #( 51976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 51977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 51978 esac 51979 case $ac_var in #( 51980 _ | IFS | as_nl) ;; #( 51981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 51982 *) { eval $ac_var=; unset $ac_var;} ;; 51983 esac ;; 51984 esac 51985 done 51986 51987 (set) 2>&1 | 51988 case $as_nl`(ac_space=' '; set) 2>&1` in #( 51989 *${as_nl}ac_space=\ *) 51990 # `set' does not quote correctly, so add quotes: double-quote 51991 # substitution turns \\\\ into \\, and sed turns \\ into \. 51992 sed -n \ 51993 "s/'/'\\\\''/g; 51994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 51995 ;; #( 51996 *) 51997 # `set' quotes correctly as required by POSIX, so do not add quotes. 51998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 51999 ;; 52000 esac | 52001 sort 52002 ) | 52003 sed ' 52004 /^ac_cv_env_/b end 52005 t clear 52006 :clear 52007 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 52008 t end 52009 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 52010 :end' >>confcache 52011 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 52012 if test -w "$cache_file"; then 52013 if test "x$cache_file" != "x/dev/null"; then 52014 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 52015 $as_echo "$as_me: updating cache $cache_file" >&6;} 52016 if test ! -f "$cache_file" || test -h "$cache_file"; then 52017 cat confcache >"$cache_file" 52018 else 52019 case $cache_file in #( 52020 */* | ?:*) 52021 mv -f confcache "$cache_file"$$ && 52022 mv -f "$cache_file"$$ "$cache_file" ;; #( 52023 *) 52024 mv -f confcache "$cache_file" ;; 52025 esac 52026 fi 52027 fi 52028 else 52029 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 52030 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 52031 fi 52032 fi 52033 rm -f confcache 52034 52035 test "x$prefix" = xNONE && prefix=$ac_default_prefix 52036 # Let make expand exec_prefix. 52037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 52038 52039 # Transform confdefs.h into DEFS. 52040 # Protect against shell expansion while executing Makefile rules. 52041 # Protect against Makefile macro expansion. 52042 # 52043 # If the first sed substitution is executed (which looks for macros that 52044 # take arguments), then branch to the quote section. Otherwise, 52045 # look for a macro that doesn't take arguments. 52046 ac_script=' 52047 :mline 52048 /\\$/{ 52049 N 52050 s,\\\n,, 52051 b mline 52052 } 52053 t clear 52054 :clear 52055 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 52056 t quote 52057 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 52058 t quote 52059 b any 52060 :quote 52061 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 52062 s/\[/\\&/g 52063 s/\]/\\&/g 52064 s/\$/$$/g 52065 H 52066 :any 52067 ${ 52068 g 52069 s/^\n// 52070 s/\n/ /g 52071 p 52072 } 52073 ' 52074 DEFS=`sed -n "$ac_script" confdefs.h` 52075 52076 52077 ac_libobjs= 52078 ac_ltlibobjs= 52079 U= 52080 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 52081 # 1. Remove the extension, and $U if already installed. 52082 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 52083 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 52084 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 52085 # will be set to the directory where LIBOBJS objects are built. 52086 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 52087 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 52088 done 52089 LIBOBJS=$ac_libobjs 52090 52091 LTLIBOBJS=$ac_ltlibobjs 52092 52093 52094 52095 : "${CONFIG_STATUS=./config.status}" 52096 ac_write_fail=0 52097 ac_clean_files_save=$ac_clean_files 52098 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 52099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 52100 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 52101 as_write_fail=0 52102 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 52103 #! $SHELL 52104 # Generated by $as_me. 52105 # Run this file to recreate the current configuration. 52106 # Compiler output produced by configure, useful for debugging 52107 # configure, is in config.log if it exists. 52108 52109 debug=false 52110 ac_cs_recheck=false 52111 ac_cs_silent=false 52112 52113 SHELL=\${CONFIG_SHELL-$SHELL} 52114 export SHELL 52115 _ASEOF 52116 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 52117 ## -------------------- ## 52118 ## M4sh Initialization. ## 52119 ## -------------------- ## 52120 52121 # Be more Bourne compatible 52122 DUALCASE=1; export DUALCASE # for MKS sh 52123 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 52124 emulate sh 52125 NULLCMD=: 52126 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 52127 # is contrary to our usage. Disable this feature. 52128 alias -g '${1+"$@"}'='"$@"' 52129 setopt NO_GLOB_SUBST 52130 else 52131 case `(set -o) 2>/dev/null` in #( 52132 *posix*) : 52133 set -o posix ;; #( 52134 *) : 52135 ;; 52136 esac 52137 fi 52138 52139 52140 as_nl=' 52141 ' 52142 export as_nl 52143 # Printing a long string crashes Solaris 7 /usr/bin/printf. 52144 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 52145 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 52146 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 52147 # Prefer a ksh shell builtin over an external printf program on Solaris, 52148 # but without wasting forks for bash or zsh. 52149 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52150 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 52151 as_echo='print -r --' 52152 as_echo_n='print -rn --' 52153 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52154 as_echo='printf %s\n' 52155 as_echo_n='printf %s' 52156 else 52157 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52158 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 52159 as_echo_n='/usr/ucb/echo -n' 52160 else 52161 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 52162 as_echo_n_body='eval 52163 arg=$1; 52164 case $arg in #( 52165 *"$as_nl"*) 52166 expr "X$arg" : "X\\(.*\\)$as_nl"; 52167 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 52168 esac; 52169 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 52170 ' 52171 export as_echo_n_body 52172 as_echo_n='sh -c $as_echo_n_body as_echo' 52173 fi 52174 export as_echo_body 52175 as_echo='sh -c $as_echo_body as_echo' 52176 fi 52177 52178 # The user is always right. 52179 if test "${PATH_SEPARATOR+set}" != set; then 52180 PATH_SEPARATOR=: 52181 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 52182 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 52183 PATH_SEPARATOR=';' 52184 } 52185 fi 52186 52187 52188 # IFS 52189 # We need space, tab and new line, in precisely that order. Quoting is 52190 # there to prevent editors from complaining about space-tab. 52191 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 52192 # splitting by setting IFS to empty value.) 52193 IFS=" "" $as_nl" 52194 52195 # Find who we are. Look in the path if we contain no directory separator. 52196 as_myself= 52197 case $0 in #(( 52198 *[\\/]* ) as_myself=$0 ;; 52199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52200 for as_dir in $PATH 52201 do 52202 IFS=$as_save_IFS 52203 test -z "$as_dir" && as_dir=. 52204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 52205 done 52206 IFS=$as_save_IFS 52207 52208 ;; 52209 esac 52210 # We did not find ourselves, most probably we were run as `sh COMMAND' 52211 # in which case we are not to be found in the path. 52212 if test "x$as_myself" = x; then 52213 as_myself=$0 52214 fi 52215 if test ! -f "$as_myself"; then 52216 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 52217 exit 1 52218 fi 52219 52220 # Unset variables that we do not need and which cause bugs (e.g. in 52221 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 52222 # suppresses any "Segmentation fault" message there. '((' could 52223 # trigger a bug in pdksh 5.2.14. 52224 for as_var in BASH_ENV ENV MAIL MAILPATH 52225 do eval test x\${$as_var+set} = xset \ 52226 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 52227 done 52228 PS1='$ ' 52229 PS2='> ' 52230 PS4='+ ' 52231 52232 # NLS nuisances. 52233 LC_ALL=C 52234 export LC_ALL 52235 LANGUAGE=C 52236 export LANGUAGE 52237 52238 # CDPATH. 52239 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 52240 52241 52242 # as_fn_error STATUS ERROR [LINENO LOG_FD] 52243 # ---------------------------------------- 52244 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 52245 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 52246 # script with STATUS, using 1 if that was 0. 52247 as_fn_error () 52248 { 52249 as_status=$1; test $as_status -eq 0 && as_status=1 52250 if test "$4"; then 52251 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 52252 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 52253 fi 52254 $as_echo "$as_me: error: $2" >&2 52255 as_fn_exit $as_status 52256 } # as_fn_error 52257 52258 52259 # as_fn_set_status STATUS 52260 # ----------------------- 52261 # Set $? to STATUS, without forking. 52262 as_fn_set_status () 52263 { 52264 return $1 52265 } # as_fn_set_status 52266 52267 # as_fn_exit STATUS 52268 # ----------------- 52269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 52270 as_fn_exit () 52271 { 52272 set +e 52273 as_fn_set_status $1 52274 exit $1 52275 } # as_fn_exit 52276 52277 # as_fn_unset VAR 52278 # --------------- 52279 # Portably unset VAR. 52280 as_fn_unset () 52281 { 52282 { eval $1=; unset $1;} 52283 } 52284 as_unset=as_fn_unset 52285 # as_fn_append VAR VALUE 52286 # ---------------------- 52287 # Append the text in VALUE to the end of the definition contained in VAR. Take 52288 # advantage of any shell optimizations that allow amortized linear growth over 52289 # repeated appends, instead of the typical quadratic growth present in naive 52290 # implementations. 52291 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 52292 eval 'as_fn_append () 52293 { 52294 eval $1+=\$2 52295 }' 52296 else 52297 as_fn_append () 52298 { 52299 eval $1=\$$1\$2 52300 } 52301 fi # as_fn_append 52302 52303 # as_fn_arith ARG... 52304 # ------------------ 52305 # Perform arithmetic evaluation on the ARGs, and store the result in the 52306 # global $as_val. Take advantage of shells that can avoid forks. The arguments 52307 # must be portable across $(()) and expr. 52308 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 52309 eval 'as_fn_arith () 52310 { 52311 as_val=$(( $* )) 52312 }' 52313 else 52314 as_fn_arith () 52315 { 52316 as_val=`expr "$@" || test $? -eq 1` 52317 } 52318 fi # as_fn_arith 52319 52320 52321 if expr a : '\(a\)' >/dev/null 2>&1 && 52322 test "X`expr 00001 : '.*\(...\)'`" = X001; then 52323 as_expr=expr 52324 else 52325 as_expr=false 52326 fi 52327 52328 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 52329 as_basename=basename 52330 else 52331 as_basename=false 52332 fi 52333 52334 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 52335 as_dirname=dirname 52336 else 52337 as_dirname=false 52338 fi 52339 52340 as_me=`$as_basename -- "$0" || 52341 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 52342 X"$0" : 'X\(//\)$' \| \ 52343 X"$0" : 'X\(/\)' \| . 2>/dev/null || 52344 $as_echo X/"$0" | 52345 sed '/^.*\/\([^/][^/]*\)\/*$/{ 52346 s//\1/ 52347 q 52348 } 52349 /^X\/\(\/\/\)$/{ 52350 s//\1/ 52351 q 52352 } 52353 /^X\/\(\/\).*/{ 52354 s//\1/ 52355 q 52356 } 52357 s/.*/./; q'` 52358 52359 # Avoid depending upon Character Ranges. 52360 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 52361 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 52362 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 52363 as_cr_digits='0123456789' 52364 as_cr_alnum=$as_cr_Letters$as_cr_digits 52365 52366 ECHO_C= ECHO_N= ECHO_T= 52367 case `echo -n x` in #((((( 52368 -n*) 52369 case `echo 'xy\c'` in 52370 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 52371 xy) ECHO_C='\c';; 52372 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 52373 ECHO_T=' ';; 52374 esac;; 52375 *) 52376 ECHO_N='-n';; 52377 esac 52378 52379 rm -f conf$$ conf$$.exe conf$$.file 52380 if test -d conf$$.dir; then 52381 rm -f conf$$.dir/conf$$.file 52382 else 52383 rm -f conf$$.dir 52384 mkdir conf$$.dir 2>/dev/null 52385 fi 52386 if (echo >conf$$.file) 2>/dev/null; then 52387 if ln -s conf$$.file conf$$ 2>/dev/null; then 52388 as_ln_s='ln -s' 52389 # ... but there are two gotchas: 52390 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 52391 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 52392 # In both cases, we have to default to `cp -pR'. 52393 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 52394 as_ln_s='cp -pR' 52395 elif ln conf$$.file conf$$ 2>/dev/null; then 52396 as_ln_s=ln 52397 else 52398 as_ln_s='cp -pR' 52399 fi 52400 else 52401 as_ln_s='cp -pR' 52402 fi 52403 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 52404 rmdir conf$$.dir 2>/dev/null 52405 52406 52407 # as_fn_mkdir_p 52408 # ------------- 52409 # Create "$as_dir" as a directory, including parents if necessary. 52410 as_fn_mkdir_p () 52411 { 52412 52413 case $as_dir in #( 52414 -*) as_dir=./$as_dir;; 52415 esac 52416 test -d "$as_dir" || eval $as_mkdir_p || { 52417 as_dirs= 52418 while :; do 52419 case $as_dir in #( 52420 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 52421 *) as_qdir=$as_dir;; 52422 esac 52423 as_dirs="'$as_qdir' $as_dirs" 52424 as_dir=`$as_dirname -- "$as_dir" || 52425 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52426 X"$as_dir" : 'X\(//\)[^/]' \| \ 52427 X"$as_dir" : 'X\(//\)$' \| \ 52428 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 52429 $as_echo X"$as_dir" | 52430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52431 s//\1/ 52432 q 52433 } 52434 /^X\(\/\/\)[^/].*/{ 52435 s//\1/ 52436 q 52437 } 52438 /^X\(\/\/\)$/{ 52439 s//\1/ 52440 q 52441 } 52442 /^X\(\/\).*/{ 52443 s//\1/ 52444 q 52445 } 52446 s/.*/./; q'` 52447 test -d "$as_dir" && break 52448 done 52449 test -z "$as_dirs" || eval "mkdir $as_dirs" 52450 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 52451 52452 52453 } # as_fn_mkdir_p 52454 if mkdir -p . 2>/dev/null; then 52455 as_mkdir_p='mkdir -p "$as_dir"' 52456 else 52457 test -d ./-p && rmdir ./-p 52458 as_mkdir_p=false 52459 fi 52460 52461 52462 # as_fn_executable_p FILE 52463 # ----------------------- 52464 # Test if FILE is an executable regular file. 52465 as_fn_executable_p () 52466 { 52467 test -f "$1" && test -x "$1" 52468 } # as_fn_executable_p 52469 as_test_x='test -x' 52470 as_executable_p=as_fn_executable_p 52471 52472 # Sed expression to map a string onto a valid CPP name. 52473 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 52474 52475 # Sed expression to map a string onto a valid variable name. 52476 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 52477 52478 52479 exec 6>&1 52480 ## ----------------------------------- ## 52481 ## Main body of $CONFIG_STATUS script. ## 52482 ## ----------------------------------- ## 52483 _ASEOF 52484 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 52485 52486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52487 # Save the log message, to keep $0 and so on meaningful, and to 52488 # report actual input values of CONFIG_FILES etc. instead of their 52489 # values after options handling. 52490 ac_log=" 52491 This file was extended by OpenJDK $as_me jdk9, which was 52492 generated by GNU Autoconf 2.69. Invocation command line was 52493 52494 CONFIG_FILES = $CONFIG_FILES 52495 CONFIG_HEADERS = $CONFIG_HEADERS 52496 CONFIG_LINKS = $CONFIG_LINKS 52497 CONFIG_COMMANDS = $CONFIG_COMMANDS 52498 $ $0 $@ 52499 52500 on `(hostname || uname -n) 2>/dev/null | sed 1q` 52501 " 52502 52503 _ACEOF 52504 52505 case $ac_config_files in *" 52506 "*) set x $ac_config_files; shift; ac_config_files=$*;; 52507 esac 52508 52509 52510 52511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52512 # Files that config.status was made for. 52513 config_files="$ac_config_files" 52514 52515 _ACEOF 52516 52517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52518 ac_cs_usage="\ 52519 \`$as_me' instantiates files and other configuration actions 52520 from templates according to the current configuration. Unless the files 52521 and actions are specified as TAGs, all are instantiated by default. 52522 52523 Usage: $0 [OPTION]... [TAG]... 52524 52525 -h, --help print this help, then exit 52526 -V, --version print version number and configuration settings, then exit 52527 --config print configuration, then exit 52528 -q, --quiet, --silent 52529 do not print progress messages 52530 -d, --debug don't remove temporary files 52531 --recheck update $as_me by reconfiguring in the same conditions 52532 --file=FILE[:TEMPLATE] 52533 instantiate the configuration file FILE 52534 52535 Configuration files: 52536 $config_files 52537 52538 Report bugs to <build-dev@openjdk.java.net>. 52539 OpenJDK home page: <http://openjdk.java.net>." 52540 52541 _ACEOF 52542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52543 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 52544 ac_cs_version="\\ 52545 OpenJDK config.status jdk9 52546 configured by $0, generated by GNU Autoconf 2.69, 52547 with options \\"\$ac_cs_config\\" 52548 52549 Copyright (C) 2012 Free Software Foundation, Inc. 52550 This config.status script is free software; the Free Software Foundation 52551 gives unlimited permission to copy, distribute and modify it." 52552 52553 ac_pwd='$ac_pwd' 52554 srcdir='$srcdir' 52555 AWK='$AWK' 52556 test -n "\$AWK" || AWK=awk 52557 _ACEOF 52558 52559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52560 # The default lists apply if the user does not specify any file. 52561 ac_need_defaults=: 52562 while test $# != 0 52563 do 52564 case $1 in 52565 --*=?*) 52566 ac_option=`expr "X$1" : 'X\([^=]*\)='` 52567 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 52568 ac_shift=: 52569 ;; 52570 --*=) 52571 ac_option=`expr "X$1" : 'X\([^=]*\)='` 52572 ac_optarg= 52573 ac_shift=: 52574 ;; 52575 *) 52576 ac_option=$1 52577 ac_optarg=$2 52578 ac_shift=shift 52579 ;; 52580 esac 52581 52582 case $ac_option in 52583 # Handling of the options. 52584 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 52585 ac_cs_recheck=: ;; 52586 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 52587 $as_echo "$ac_cs_version"; exit ;; 52588 --config | --confi | --conf | --con | --co | --c ) 52589 $as_echo "$ac_cs_config"; exit ;; 52590 --debug | --debu | --deb | --de | --d | -d ) 52591 debug=: ;; 52592 --file | --fil | --fi | --f ) 52593 $ac_shift 52594 case $ac_optarg in 52595 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 52596 '') as_fn_error $? "missing file argument" ;; 52597 esac 52598 as_fn_append CONFIG_FILES " '$ac_optarg'" 52599 ac_need_defaults=false;; 52600 --he | --h | --help | --hel | -h ) 52601 $as_echo "$ac_cs_usage"; exit ;; 52602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 52603 | -silent | --silent | --silen | --sile | --sil | --si | --s) 52604 ac_cs_silent=: ;; 52605 52606 # This is an error. 52607 -*) as_fn_error $? "unrecognized option: \`$1' 52608 Try \`$0 --help' for more information." ;; 52609 52610 *) as_fn_append ac_config_targets " $1" 52611 ac_need_defaults=false ;; 52612 52613 esac 52614 shift 52615 done 52616 52617 ac_configure_extra_args= 52618 52619 if $ac_cs_silent; then 52620 exec 6>/dev/null 52621 ac_configure_extra_args="$ac_configure_extra_args --silent" 52622 fi 52623 52624 _ACEOF 52625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52626 if \$ac_cs_recheck; then 52627 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 52628 shift 52629 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 52630 CONFIG_SHELL='$SHELL' 52631 export CONFIG_SHELL 52632 exec "\$@" 52633 fi 52634 52635 _ACEOF 52636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52637 exec 5>>config.log 52638 { 52639 echo 52640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 52641 ## Running $as_me. ## 52642 _ASBOX 52643 $as_echo "$ac_log" 52644 } >&5 52645 52646 _ACEOF 52647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52648 _ACEOF 52649 52650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52651 52652 # Handling of arguments. 52653 for ac_config_target in $ac_config_targets 52654 do 52655 case $ac_config_target in 52656 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 52657 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 52658 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 52659 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 52660 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 52661 52662 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 52663 esac 52664 done 52665 52666 52667 # If the user did not use the arguments to specify the items to instantiate, 52668 # then the envvar interface is used. Set only those that are not. 52669 # We use the long form for the default assignment because of an extremely 52670 # bizarre bug on SunOS 4.1.3. 52671 if $ac_need_defaults; then 52672 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 52673 fi 52674 52675 # Have a temporary directory for convenience. Make it in the build tree 52676 # simply because there is no reason against having it here, and in addition, 52677 # creating and moving files from /tmp can sometimes cause problems. 52678 # Hook for its removal unless debugging. 52679 # Note that there is a small window in which the directory will not be cleaned: 52680 # after its creation but before its name has been assigned to `$tmp'. 52681 $debug || 52682 { 52683 tmp= ac_tmp= 52684 trap 'exit_status=$? 52685 : "${ac_tmp:=$tmp}" 52686 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 52687 ' 0 52688 trap 'as_fn_exit 1' 1 2 13 15 52689 } 52690 # Create a (secure) tmp directory for tmp files. 52691 52692 { 52693 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 52694 test -d "$tmp" 52695 } || 52696 { 52697 tmp=./conf$$-$RANDOM 52698 (umask 077 && mkdir "$tmp") 52699 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 52700 ac_tmp=$tmp 52701 52702 # Set up the scripts for CONFIG_FILES section. 52703 # No need to generate them if there are no CONFIG_FILES. 52704 # This happens for instance with `./config.status config.h'. 52705 if test -n "$CONFIG_FILES"; then 52706 52707 52708 ac_cr=`echo X | tr X '\015'` 52709 # On cygwin, bash can eat \r inside `` if the user requested igncr. 52710 # But we know of no other shell where ac_cr would be empty at this 52711 # point, so we can use a bashism as a fallback. 52712 if test "x$ac_cr" = x; then 52713 eval ac_cr=\$\'\\r\' 52714 fi 52715 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 52716 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 52717 ac_cs_awk_cr='\\r' 52718 else 52719 ac_cs_awk_cr=$ac_cr 52720 fi 52721 52722 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 52723 _ACEOF 52724 52725 52726 { 52727 echo "cat >conf$$subs.awk <<_ACEOF" && 52728 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 52729 echo "_ACEOF" 52730 } >conf$$subs.sh || 52731 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52732 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 52733 ac_delim='%!_!# ' 52734 for ac_last_try in false false false false false :; do 52735 . ./conf$$subs.sh || 52736 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52737 52738 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 52739 if test $ac_delim_n = $ac_delim_num; then 52740 break 52741 elif $ac_last_try; then 52742 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52743 else 52744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 52745 fi 52746 done 52747 rm -f conf$$subs.sh 52748 52749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52750 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 52751 _ACEOF 52752 sed -n ' 52753 h 52754 s/^/S["/; s/!.*/"]=/ 52755 p 52756 g 52757 s/^[^!]*!// 52758 :repl 52759 t repl 52760 s/'"$ac_delim"'$// 52761 t delim 52762 :nl 52763 h 52764 s/\(.\{148\}\)..*/\1/ 52765 t more1 52766 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 52767 p 52768 n 52769 b repl 52770 :more1 52771 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 52772 p 52773 g 52774 s/.\{148\}// 52775 t nl 52776 :delim 52777 h 52778 s/\(.\{148\}\)..*/\1/ 52779 t more2 52780 s/["\\]/\\&/g; s/^/"/; s/$/"/ 52781 p 52782 b 52783 :more2 52784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 52785 p 52786 g 52787 s/.\{148\}// 52788 t delim 52789 ' <conf$$subs.awk | sed ' 52790 /^[^""]/{ 52791 N 52792 s/\n// 52793 } 52794 ' >>$CONFIG_STATUS || ac_write_fail=1 52795 rm -f conf$$subs.awk 52796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52797 _ACAWK 52798 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 52799 for (key in S) S_is_set[key] = 1 52800 FS = "" 52801 52802 } 52803 { 52804 line = $ 0 52805 nfields = split(line, field, "@") 52806 substed = 0 52807 len = length(field[1]) 52808 for (i = 2; i < nfields; i++) { 52809 key = field[i] 52810 keylen = length(key) 52811 if (S_is_set[key]) { 52812 value = S[key] 52813 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 52814 len += length(value) + length(field[++i]) 52815 substed = 1 52816 } else 52817 len += 1 + keylen 52818 } 52819 52820 print line 52821 } 52822 52823 _ACAWK 52824 _ACEOF 52825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52826 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 52827 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 52828 else 52829 cat 52830 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 52831 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 52832 _ACEOF 52833 52834 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 52835 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 52836 # trailing colons and then remove the whole line if VPATH becomes empty 52837 # (actually we leave an empty line to preserve line numbers). 52838 if test "x$srcdir" = x.; then 52839 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 52840 h 52841 s/// 52842 s/^/:/ 52843 s/[ ]*$/:/ 52844 s/:\$(srcdir):/:/g 52845 s/:\${srcdir}:/:/g 52846 s/:@srcdir@:/:/g 52847 s/^:*// 52848 s/:*$// 52849 x 52850 s/\(=[ ]*\).*/\1/ 52851 G 52852 s/\n// 52853 s/^[^=]*=[ ]*$// 52854 }' 52855 fi 52856 52857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52858 fi # test -n "$CONFIG_FILES" 52859 52860 52861 eval set X " :F $CONFIG_FILES " 52862 shift 52863 for ac_tag 52864 do 52865 case $ac_tag in 52866 :[FHLC]) ac_mode=$ac_tag; continue;; 52867 esac 52868 case $ac_mode$ac_tag in 52869 :[FHL]*:*);; 52870 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 52871 :[FH]-) ac_tag=-:-;; 52872 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 52873 esac 52874 ac_save_IFS=$IFS 52875 IFS=: 52876 set x $ac_tag 52877 IFS=$ac_save_IFS 52878 shift 52879 ac_file=$1 52880 shift 52881 52882 case $ac_mode in 52883 :L) ac_source=$1;; 52884 :[FH]) 52885 ac_file_inputs= 52886 for ac_f 52887 do 52888 case $ac_f in 52889 -) ac_f="$ac_tmp/stdin";; 52890 *) # Look for the file first in the build tree, then in the source tree 52891 # (if the path is not absolute). The absolute path cannot be DOS-style, 52892 # because $ac_f cannot contain `:'. 52893 test -f "$ac_f" || 52894 case $ac_f in 52895 [\\/$]*) false;; 52896 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 52897 esac || 52898 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 52899 esac 52900 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 52901 as_fn_append ac_file_inputs " '$ac_f'" 52902 done 52903 52904 # Let's still pretend it is `configure' which instantiates (i.e., don't 52905 # use $as_me), people would be surprised to read: 52906 # /* config.h. Generated by config.status. */ 52907 configure_input='Generated from '` 52908 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 52909 `' by configure.' 52910 if test x"$ac_file" != x-; then 52911 configure_input="$ac_file. $configure_input" 52912 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 52913 $as_echo "$as_me: creating $ac_file" >&6;} 52914 fi 52915 # Neutralize special characters interpreted by sed in replacement strings. 52916 case $configure_input in #( 52917 *\&* | *\|* | *\\* ) 52918 ac_sed_conf_input=`$as_echo "$configure_input" | 52919 sed 's/[\\\\&|]/\\\\&/g'`;; #( 52920 *) ac_sed_conf_input=$configure_input;; 52921 esac 52922 52923 case $ac_tag in 52924 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 52925 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 52926 esac 52927 ;; 52928 esac 52929 52930 ac_dir=`$as_dirname -- "$ac_file" || 52931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52932 X"$ac_file" : 'X\(//\)[^/]' \| \ 52933 X"$ac_file" : 'X\(//\)$' \| \ 52934 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 52935 $as_echo X"$ac_file" | 52936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52937 s//\1/ 52938 q 52939 } 52940 /^X\(\/\/\)[^/].*/{ 52941 s//\1/ 52942 q 52943 } 52944 /^X\(\/\/\)$/{ 52945 s//\1/ 52946 q 52947 } 52948 /^X\(\/\).*/{ 52949 s//\1/ 52950 q 52951 } 52952 s/.*/./; q'` 52953 as_dir="$ac_dir"; as_fn_mkdir_p 52954 ac_builddir=. 52955 52956 case "$ac_dir" in 52957 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 52958 *) 52959 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 52960 # A ".." for each directory in $ac_dir_suffix. 52961 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 52962 case $ac_top_builddir_sub in 52963 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 52964 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 52965 esac ;; 52966 esac 52967 ac_abs_top_builddir=$ac_pwd 52968 ac_abs_builddir=$ac_pwd$ac_dir_suffix 52969 # for backward compatibility: 52970 ac_top_builddir=$ac_top_build_prefix 52971 52972 case $srcdir in 52973 .) # We are building in place. 52974 ac_srcdir=. 52975 ac_top_srcdir=$ac_top_builddir_sub 52976 ac_abs_top_srcdir=$ac_pwd ;; 52977 [\\/]* | ?:[\\/]* ) # Absolute name. 52978 ac_srcdir=$srcdir$ac_dir_suffix; 52979 ac_top_srcdir=$srcdir 52980 ac_abs_top_srcdir=$srcdir ;; 52981 *) # Relative name. 52982 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 52983 ac_top_srcdir=$ac_top_build_prefix$srcdir 52984 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 52985 esac 52986 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 52987 52988 52989 case $ac_mode in 52990 :F) 52991 # 52992 # CONFIG_FILE 52993 # 52994 52995 _ACEOF 52996 52997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52998 # If the template does not know about datarootdir, expand it. 52999 # FIXME: This hack should be removed a few years after 2.60. 53000 ac_datarootdir_hack=; ac_datarootdir_seen= 53001 ac_sed_dataroot=' 53002 /datarootdir/ { 53003 p 53004 q 53005 } 53006 /@datadir@/p 53007 /@docdir@/p 53008 /@infodir@/p 53009 /@localedir@/p 53010 /@mandir@/p' 53011 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 53012 *datarootdir*) ac_datarootdir_seen=yes;; 53013 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 53014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 53015 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 53016 _ACEOF 53017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53018 ac_datarootdir_hack=' 53019 s&@datadir@&$datadir&g 53020 s&@docdir@&$docdir&g 53021 s&@infodir@&$infodir&g 53022 s&@localedir@&$localedir&g 53023 s&@mandir@&$mandir&g 53024 s&\\\${datarootdir}&$datarootdir&g' ;; 53025 esac 53026 _ACEOF 53027 53028 # Neutralize VPATH when `$srcdir' = `.'. 53029 # Shell code in configure.ac might set extrasub. 53030 # FIXME: do we really want to maintain this feature? 53031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 53032 ac_sed_extra="$ac_vpsub 53033 $extrasub 53034 _ACEOF 53035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 53036 :t 53037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 53038 s|@configure_input@|$ac_sed_conf_input|;t t 53039 s&@top_builddir@&$ac_top_builddir_sub&;t t 53040 s&@top_build_prefix@&$ac_top_build_prefix&;t t 53041 s&@srcdir@&$ac_srcdir&;t t 53042 s&@abs_srcdir@&$ac_abs_srcdir&;t t 53043 s&@top_srcdir@&$ac_top_srcdir&;t t 53044 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 53045 s&@builddir@&$ac_builddir&;t t 53046 s&@abs_builddir@&$ac_abs_builddir&;t t 53047 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 53048 $ac_datarootdir_hack 53049 " 53050 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 53051 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 53052 53053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 53054 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 53055 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 53056 "$ac_tmp/out"`; test -z "$ac_out"; } && 53057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 53058 which seems to be undefined. Please make sure it is defined" >&5 53059 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 53060 which seems to be undefined. Please make sure it is defined" >&2;} 53061 53062 rm -f "$ac_tmp/stdin" 53063 case $ac_file in 53064 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 53065 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 53066 esac \ 53067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 53068 ;; 53069 53070 53071 53072 esac 53073 53074 done # for ac_tag 53075 53076 53077 as_fn_exit 0 53078 _ACEOF 53079 ac_clean_files=$ac_clean_files_save 53080 53081 test $ac_write_fail = 0 || 53082 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 53083 53084 53085 # configure is writing to config.log, and then calls config.status. 53086 # config.status does its own redirection, appending to config.log. 53087 # Unfortunately, on DOS this fails, as config.log is still kept open 53088 # by configure, so config.status won't be able to write to it; its 53089 # output is simply discarded. So we exec the FD to /dev/null, 53090 # effectively closing config.log, so it can be properly (re)opened and 53091 # appended to by config.status. When coming back to configure, we 53092 # need to make the FD available again. 53093 if test "$no_create" != yes; then 53094 ac_cs_success=: 53095 ac_config_status_args= 53096 test "$silent" = yes && 53097 ac_config_status_args="$ac_config_status_args --quiet" 53098 exec 5>/dev/null 53099 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 53100 exec 5>>config.log 53101 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 53102 # would make configure fail if this is the last instruction. 53103 $ac_cs_success || as_fn_exit 1 53104 fi 53105 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 53106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 53107 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 53108 fi 53109 53110 53111 53112 # Try to move the config.log file to the output directory. 53113 if test -e ./config.log; then 53114 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 53115 fi 53116 53117 # Make the compare script executable 53118 $CHMOD +x $OUTPUT_ROOT/compare.sh 53119 53120 # Finally output some useful information to the user 53121 53122 # Finally output some useful information to the user 53123 53124 printf "\n" 53125 printf "====================================================\n" 53126 if test "x$no_create" != "xyes"; then 53127 if test "x$IS_RECONFIGURE" != "xyes"; then 53128 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 53129 else 53130 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 53131 fi 53132 else 53133 if test "x$IS_RECONFIGURE" != "xyes"; then 53134 printf "A configuration has been successfully checked but not created\n" 53135 else 53136 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 53137 fi 53138 fi 53139 if test "x$CONFIGURE_COMMAND_LINE" != x; then 53140 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 53141 else 53142 printf "using default settings.\n" 53143 fi 53144 53145 printf "\n" 53146 printf "Configuration summary:\n" 53147 printf "* Debug level: $DEBUG_LEVEL\n" 53148 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 53149 printf "* JDK variant: $JDK_VARIANT\n" 53150 printf "* JVM variants: $with_jvm_variants\n" 53151 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 53152 53153 printf "\n" 53154 printf "Tools summary:\n" 53155 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 53156 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 53157 fi 53158 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 53159 if test "x$TOOLCHAIN_VERSION" != "x"; then 53160 print_version=" $TOOLCHAIN_VERSION" 53161 fi 53162 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 53163 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 53164 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 53165 53166 printf "\n" 53167 printf "Build performance summary:\n" 53168 printf "* Cores to use: $JOBS\n" 53169 printf "* Memory limit: $MEMORY_SIZE MB\n" 53170 if test "x$CCACHE_STATUS" != "x"; then 53171 printf "* ccache status: $CCACHE_STATUS\n" 53172 fi 53173 printf "\n" 53174 53175 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 53176 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 53177 printf "will result in longer build times.\n" 53178 printf "\n" 53179 fi 53180 53181 if test "x$FOUND_ALT_VARIABLES" != "x"; then 53182 printf "WARNING: You have old-style ALT_ environment variables set.\n" 53183 printf "These are not respected, and will be ignored. It is recommended\n" 53184 printf "that you clean your environment. The following variables are set:\n" 53185 printf "$FOUND_ALT_VARIABLES\n" 53186 printf "\n" 53187 fi 53188 53189 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 53190 printf "WARNING: Your build output directory is not on a local disk.\n" 53191 printf "This will severely degrade build performance!\n" 53192 printf "It is recommended that you create an output directory on a local disk,\n" 53193 printf "and run the configure script again from that directory.\n" 53194 printf "\n" 53195 fi 53196 53197 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 53198 printf "WARNING: The result of this configuration has overridden an older\n" 53199 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 53200 printf "proper build. Failure to do so might result in strange build problems.\n" 53201 printf "\n" 53202 fi 53203 53204 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 53205 printf "WARNING: The result of this configuration was not saved.\n" 53206 printf "You should run without '--no-create | -n' to create the configuration.\n" 53207 printf "\n" 53208 fi 53209 53210 53211 53212 if test -e "$OUTPUT_ROOT/config.log"; then 53213 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" > /dev/null 2>&1 53214 if test $? -eq 0; then 53215 printf "The following warnings were produced. Repeated here for convenience:\n" 53216 # We must quote sed expression (using []) to stop m4 from eating the []. 53217 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" | $SED -e 's/^configure:[0-9]*: //' 53218 printf "\n" 53219 fi 53220 fi 53221 53222